Home
last modified time | relevance | path

Searched refs:encoding (Results 1 – 25 of 594) sorted by relevance

12345678910>>...24

/ohos5.0/commonlibrary/ets_utils/js_util_module/stream/src/
H A Dstream_js.ts426 if (!encoding) {
433 encoding = 'utf-8';
644 if (encoding) {
894 if (encoding) {
916 flag = this.writeUint8Array(chunk, encoding ?? this.encoding, callback);
918 flag = this.writeString(chunk!, encoding ?? this.encoding, callback);
956 this.buffer.push({ chunk: chunk, encoding: encoding, callback: fnBack });
998 this.buffer.push({ chunk: chunk, encoding: encoding, callback: fb });
1001 this.buffer.push({ chunk: chunk, encoding: encoding, callback: fb });
1157 if (!encoding) {
[all …]
/ohos5.0/docs/en/application-dev/media/image/
H A Dimage-encoding-native.md20 … to complete the entire image encoding process, including creating an encoder, initializing resour…
24 The figure below shows the call relationship of image encoding.
26 ![Call relationship of image encoding](figures/image-encode-native.png)
63 4. Perform encoding.
65 The following input parameters are provided for the encoding APIs:
71 - Encoding parameters, including the encoding format and encoding quality
84 // (Mandatory) Configure the encoding format.
86 // (Mandatory) Configure the encoding quality.
90 // Apply for a buffer for image encoding.
101 // (Mandatory) Configure the encoding format.
[all …]
H A Dimage-picture-encoding.md3 Image encoding refers to the process of encoding a picture into an archived image in different form…
7 …e](../../reference/apis-image-kit/js-apis-image.md#imagepacker) for APIs related to image encoding.
20 2. Set the encoding output stream and encoding parameters.
22 …**format** indicates the image encoding format, and **quality** indicates the image quality. The v…
26 … MIME protocol, the standard encoding format is image/jpeg. When the APIs provided by the image mo…
51 During encoding, you can pass in a file path so that the encoded memory data is directly written to…
H A Dimage-encoding.md3 Image encoding refers to the process of encoding a PixelMap into an archived image in different for…
7 …e](../../reference/apis-image-kit/js-apis-image.md#imagepacker) for APIs related to image encoding.
20 2. Set the encoding output stream and encoding parameters.
22 …- **format** indicates the image encoding format, and **quality** indicates the image quality. The…
26 … MIME protocol, the standard encoding format is image/jpeg. When the APIs provided by the image mo…
41 Method 1: Use **PixelMap** for encoding.
52 Method 2: Use **ImageSource** for encoding.
65 During encoding, you can pass in a file path so that the encoded memory data is directly written to…
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/text/
H A Dtext_blob.cpp30 const Font& font, TextEncoding encoding) in MakeFromText() argument
32 return StaticFactory::MakeFromText(text, byteLength, font, encoding); in MakeFromText()
36 const Point pos[], const Font& font, TextEncoding encoding) in MakeFromPosText() argument
38 return StaticFactory::MakeFromPosText(text, byteLength, pos, font, encoding); in MakeFromPosText()
41 …ed_ptr<TextBlob> TextBlob::MakeFromString(const char* str, const Font& font, TextEncoding encoding) in MakeFromString() argument
46 return MakeFromText(str, strlen(str), font, encoding); in MakeFromString()
50 const RSXform xform[], const Font& font, TextEncoding encoding) in MakeFromRSXform() argument
52 return StaticFactory::MakeFromRSXform(text, byteLength, xform, font, encoding); in MakeFromRSXform()
H A Dfont.cpp173 int Font::TextToGlyphs(const void* text, size_t byteLength, TextEncoding encoding, in TextToGlyphs() argument
176 return fontImpl_->TextToGlyphs(text, byteLength, encoding, glyphs, maxGlyphCount); in TextToGlyphs()
179 scalar Font::MeasureText(const void* text, size_t byteLength, TextEncoding encoding, Rect* bounds) … in MeasureText() argument
181 return fontImpl_->MeasureText(text, byteLength, encoding, bounds); in MeasureText()
226 int Font::CountText(const void* text, size_t byteLength, TextEncoding encoding) const in CountText()
228 return fontImpl_->CountText(text, byteLength, encoding); in CountText()
/ohos5.0/commonlibrary/ets_utils/platform/
H A Dutil_helper.h51encoding(encodingStr) in TextEcodeInfo()
55 std::string encoding; member
72 InputBufferInfo(std::string InputEncoding, size_t charSize): encoding(InputEncoding), in InputBufferInfo()
75 std::string encoding; member
80 void EncodeIntoChinese(napi_env env, napi_value src, std::string encoding, std::string& buffer);
81 std::string UnicodeConversion(std::string encoding, char16_t* originalBuffer, size_t inputSize);
84 std::string encoding);
86 int GetMaxByteSize(std::string encoding);
90 …code(napi_env env, napi_value src, napi_value* arrayBuffer, size_t &outLens, std::string encoding);
/ohos5.0/commonlibrary/ets_utils/js_api_module/buffer/src/
H A Djs_buffer.ts594 encoding = 'utf8';
598 encoding = offset;
603 encoding = end;
628 encoding = 'utf8';
1671 encoding = 'utf8';
1708 encoding = encodingTypeErrorCheck(encoding);
1751 encoding = encodingTypeErrorCheck(encoding);
1775 encoding = 'utf8';
1777 encoding = encodingTypeErrorCheck(encoding);
1987 if (encoding === undefined || encoding === null) {
[all …]
/ohos5.0/docs/en/application-dev/media/avcodec/
H A Davcodec-kit-intro.md8encoding: Audio applications (such as audio calling and audio recording applications) can send unc…
9encoding: Video applications (such as video calling and video recording applications) can send unc…
23 - Audio and video encoding: process of converting uncompressed audio and video data into another fo…
38 The input of video encoding and the output of video decoding are in surface mode.
40 …During encoding and decoding, an application is notified of the data processing status through a c…
42 The following figure shows the video encoding and decoding logic.
46 …decoding.md#surface-output) and [Video Encoding in Surface Input](video-encoding.md#surface-input).
50 The input of audio encoding and the output of audio decoding are in PCM format.
52 …During encoding and decoding, an application is notified of the data processing status through a c…
54 The following figure shows the audio encoding and decoding logic.
[all …]
H A Daudio-encoding.md7 …details about the supported encoding capabilities, see [AVCodec Supported Formats](avcodec-support…
29 The figure below shows the call relationship of audio encoding.
35 ![Call relationship of audio encoding](figures/audio-codec.png)
72 // Specify whether encoding is used. The value true means encoding.
159 For FLAC encoding, the compliance level and sampling precision are also mandatory.
161 The sample below lists the value range of each audio encoding type.
203 The following shows the API call process in the case of FLAC encoding.
257 // Start encoding.
268 For FLAC encoding, set **SAMPLES_PER_FRAME** based on the table below.
347 To continue encoding, you must call **OH_AudioCodec_Start()** again.
[all …]
/ohos5.0/commonlibrary/ets_utils/platform/ohos/
H A Dutil_helper.cpp55 engine->EncodeToChinese(src, buffer, encoding); in EncodeIntoChinese()
62 UConverter* converter = ucnv_open(encoding.c_str(), &codeflag); in UnicodeConversion()
110 if (encodeInfo.encoding == "utf-16be" || encodeInfo.encoding == "utf-16le") { in EncodeToUtf8()
119 if (encoding == "utf-16le") { in EncodeConversion()
130 } else if (encoding == "utf-16be") { in EncodeConversion()
143 OtherEncode(env, src, arrayBuffer, outLens, encoding); in EncodeConversion()
147 int GetMaxByteSize(std::string encoding) in GetMaxByteSize() argument
150 UConverter* converter = ucnv_open(encoding.c_str(), &codeflag); in GetMaxByteSize()
257 outLen = static_cast<size_t>(GetMaxByteSize(encoding)) * inputSize; in OtherEncode()
368 InputBufferInfo inputInfo(encodeInfo.encoding, inputSize); in OtherEncodeUtf8()
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-arkgraphics2d/
H A Djs-apis-colorSpaceManager.md27 … | DCI-P3.<br>The conversion function is of the Gamma 2.6 type.<br>The encoding range is of the F…
28 … | Display P3.<br>The conversion function is of the SRGB type.<br>The encoding range is of the F…
31 …6 | BT709.<br>The conversion function is of the BT709 type.<br>The encoding range is of the F…
32 … | BT601_P.<br>The conversion function is of the BT709 type.<br>The encoding range is of the F…
33 … | BT601_N.<br>The conversion function is of the BT709 type.<br>The encoding range is of the F…
34 … 9 | BT2020.<br>The conversion function is of the HLG type.<br>The encoding range is of the F…
35 …| 10 | BT2020.<br>The conversion function is of the PQ type.<br>The encoding range is of the F…
40 …| 15 | SRGB.<br>The conversion function is of the SRGB type.<br>The encoding range is of the L…
41 …16 | BT709.<br>The conversion function is of the BT709 type.<br>The encoding range is of the L…
44 … 19 | BT2020.<br>The conversion function is of the HLG type.<br>The encoding range is of the L…
[all …]
/ohos5.0/build/test/example/
H A Dmylogger.py30 def __init__(self, filename, mode="a", encoding="utf-8", delay=0, suffix="%Y-%m-%d_%H"): argument
32 encoding = None
34 FileHandler.__init__(self, filename + "." + current_time, mode, encoding, delay)
39 self.encoding = encoding
78 stat.S_IWUSR | stat.S_IRUSR), self.mode, encoding=self.encoding) as f:
109 stat.S_IWUSR | stat.S_IRUSR), "r", encoding="utf-8") as json_file:
/ohos5.0/build/lite/
H A Dutils.py27 def encode(data, encoding: str = 'utf-8'):
29 return data.encode(encoding)
33 def decode(data, encoding: str = 'utf-8'):
35 return data.decode(encoding)
56 with open(log_path, 'at', encoding='utf-8') as log_file:
60 encoding='utf-8',
70 with open(log_path, 'at', encoding='utf-8') as log_file:
/ohos5.0/docs/en/application-dev/reference/apis-image-kit/
H A Dimage__packer__native_8h.md6 The **image_packer_native.h** file declares the APIs for image encoding.
25 …s](_image___native_module.md#oh_packingoptions) | Defines a struct for image encoding parameters.|
26 …dule.md#oh_packingoptionsforsequence) | Defines a struct for image sequence encoding parameters. |
33 …AUTO = 0,<br>IMAGE_PACKER_DYNAMIC_RANGE_SDR = 1<br>} | Enumerates the dynamic range for encoding.|
43 …ative_module.md#oh_packingoptions) \*options, uint32_t \*quality) | Obtains the encoding quality.|
44 …e___native_module.md#oh_packingoptions) \*options, uint32_t quality) | Sets the encoding quality.|
45 …s) \*options, int32_t \*desiredDynamicRange) | Obtains the desired dynamic range during encoding.|
46 …ptions) \*options, int32_t desiredDynamicRange) | Sets the desired dynamic range during encoding.|
49 …quence) \*options, uint32_t frameCount) | Sets the number of frames for image sequence encoding. |
55 …sequence) \*options, uint32_t loopCount) | Sets the number of loops for image sequence encoding. |
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkts/
H A Djs-apis-stream.md96 doWrite(chunk: string | Uint8Array, encoding: string, callback: Function) {
147 doWrite(chunk: string | Uint8Array, encoding: string, callback: Function) {
166 setDefaultEncoding(encoding?: string): boolean
419 super.doWrite(chunk, encoding, callback);
596 encoding : 'utf-8'
719 setEncoding(encoding?: string): boolean
1104 push(chunk: Uint8Array | string | null, encoding?: string): boolean
1303 setDefaultEncoding(encoding?: string): boolean
1541 doTransform(chunk: string, encoding: string, callback: Function): void
1573 doTransform(chunk: string, encoding: string, callback: Function) {
[all …]
/ohos5.0/docs/zh-cn/application-dev/media/avcodec/
H A DReadme-CN.md7 - [音频编码](audio-encoding.md)
9 - [视频编码](video-encoding.md)
10 - [时域可分层视频编码](video-encoding-temporal-scalability.md)
11 - [典型场景的视频编码配置](video-encoding-configuration-typical-scenarios.md)
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_5.0.0.42/
H A Dchangelogs-arkts.md11 When TextEncoder uses the utf-16le or utf-16be encoding format, the encoded data obtained is incorr…
13 The utf-16le encoding format uses little-endian. However, the encoded data is in big-endian format.
15 The utf-16be encoding format uses big-endian. However, the encoded data is in little-endian format.
25 The utf-16le encoding format uses little-endian. However, the encoded data is in big-endian format.
27 The utf-16be encoding format uses big-endian. However, the encoded data is in little-endian format.
31 The utf-16le encoding format uses little-endian, and the encoded data is in little-endian format.
33 The utf-16be encoding format uses big-endian, and the encoded data is in big-endian format.
/ohos5.0/build/toolchain/
H A Dmini_debug_info.py27 with os.fdopen(os.open(tmp_file, os.O_RDWR | os.O_CREAT), 'w', encoding='utf-8') as output_file:
31 …with os.fdopen(os.open(symbols_path, os.O_RDWR | os.O_CREAT), 'w', encoding='utf-8') as output_fil…
70 … with os.fdopen(os.open(tmp_file1, os.O_RDWR | os.O_CREAT), 'w', encoding='utf-8') as output_file:
73 … with os.fdopen(os.open(tmp_file1, os.O_RDWR | os.O_CREAT), 'r', encoding='utf-8') as output_file:
88 … with os.fdopen(os.open(tmp_file1, os.O_RDWR | os.O_CREAT), 'w', encoding='utf-8') as output_file:
91 … with os.fdopen(os.open(tmp_file1, os.O_RDWR | os.O_CREAT), 'r', encoding='utf-8') as output_file:
104 … with os.fdopen(os.open(keep_path, os.O_RDWR | os.O_CREAT), 'w', encoding='utf-8') as output_file:
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_5.0.1.1/
H A Dchangelogs-arkts.md46 '<?xml version="1.0" encoding="utf-8"?>' +
69 …the value of result is {"_declaration":{"_attributes":{"version":"1.0","encoding":"utf-8"}},"_elem…
71 …the value of result is {"_declaration":{"_attributes":{"version":"1.0","encoding":"utf-8"}},"_elem…
86 When TextEncoder uses the utf-16le or utf-16be encoding format, the encoded data obtained is incorr…
88 The utf-16le encoding format uses little-endian. However, the encoded data is in big-endian format.
90 The utf-16be encoding format uses big-endian. However, the encoded data is in little-endian format.
100 - The utf-16le encoding format uses little-endian. However, the encoded data is in big-endian forma…
101 - The utf-16be encoding format uses big-endian. However, the encoded data is in little-endian forma…
105 - The utf-16le encoding format uses little-endian, and the encoded data is in little-endian format.
106 - The utf-16be encoding format uses big-endian, and the encoded data is in big-endian format.
/ohos5.0/build/hb/util/
H A Dlog_util.py85 with open(log_path, 'at', encoding='utf-8') as log_file:
93 with open(error_log, 'rt', encoding='utf-8') as log_file:
123 with open(log_path, 'rt', encoding='utf-8') as log_file:
133 with open(error_log, 'at', encoding='utf-8') as log_file:
145 with open(log_path, 'rt', encoding='utf-8') as log_file:
153 with open(error_log, 'at', encoding='utf-8') as log_file:
165 with open(log_path, 'rt', encoding='utf-8') as log_file:
176 with open(error_log, 'at', encoding='utf-8') as log_file:
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
H A Ddfx_memory.cpp228 size_t DfxMemory::GetEncodedSize(uint8_t encoding) in GetEncodedSize() argument
230 switch (encoding & 0x0f) { in GetEncodedSize()
252 uintptr_t DfxMemory::ReadEncodedValue(uintptr_t& addr, uint8_t encoding) in ReadEncodedValue() argument
256 if (encoding == DW_EH_PE_omit) { in ReadEncodedValue()
258 } else if (encoding == DW_EH_PE_aligned) { in ReadEncodedValue()
267 switch (encoding & DW_EH_PE_FORMAT_MASK) { in ReadEncodedValue()
326 LOGW("Unexpected encoding format 0x%x", encoding & DW_EH_PE_FORMAT_MASK); in ReadEncodedValue()
330 switch (encoding & DW_EH_PE_APPL_MASK) { in ReadEncodedValue()
347 if (encoding & DW_EH_PE_indirect) { in ReadEncodedValue()
/ohos5.0/docs/zh-cn/release-notes/changelogs/v3.2-beta5/
H A Dchangelogs-filemanagement.md174 …dText(filePath: string, options?: { position?: number; length?: number; encoding?: string; }, call…
175 …tSync(filePath: string, options?: { position?: number; length?: number; encoding?: string; }): str…
176 …eadText(filePath: string, options?: { offset?: number; length?: number; encoding?: string; }, call…
177 …extSync(filePath: string, options?: { offset?: number; length?: number; encoding?: string; }): str…
182 …tring, options?: { offset?: number; length?: number; position?: number; encoding?: string; }, call…
183 …tring, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): num…
184 …r: ArrayBuffer \| string, options?: { offset?: number; length?: number; encoding?: string; }, call…
185 …r: ArrayBuffer \| string, options?: { offset?: number; length?: number; encoding?: string; }): num…
/ohos5.0/foundation/ai/ai_engine/services/server/plugin_manager/
H A Dget_config_ini.py66 def get_ini_object(config_file_path, encoding=None): argument
78 if encoding is None:
81 config.read(config_file_path, encoding=code)
89 config.read(config_file_path, encoding=encoding)
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta3/
H A Djs-apidiff-compiler-and-runtime.md37 | ohos.buffer | Buffer | write(str: string, offset?: number, length?: number, encoding?: strin…
38 | ohos.buffer | Buffer | toString(encoding?: string, start?: number, end?: number): string; …
66 …f(value: string \| number \| Buffer \| Uint8Array, byteOffset?: number, encoding?: BufferEncoding)…
70 …f(value: string \| number \| Buffer \| Uint8Array, byteOffset?: number, encoding?: BufferEncoding)…
71 …s(value: string \| number \| Buffer \| Uint8Array, byteOffset?: number, encoding?: BufferEncoding)…
75 …tring \| Buffer \| Uint8Array \| number, offset?: number, end?: number, encoding?: BufferEncoding)…
81 | ohos.buffer | buffer | function isEncoding(encoding: string):boolean; …
83 …er \| string, length: number): Buffer;<br>function from(string: String, encoding?: BufferEncoding)…
85 …| Buffer \| TypedArray \| DataView \| ArrayBuffer \| SharedArrayBuffer, encoding?: BufferEncoding)…
88 … | function alloc(size: number, fill?: string \| Buffer \| number, encoding?: BufferEncoding)…

12345678910>>...24