Lines Matching refs:codec
32 …odec_createbymime) (const char \*mime, bool isEncoder) | Creates an audio codec instance based on …
33 …iocodec_createbyname) (const char \*name) | Creates an audio codec instance based on a codec name.…
34 …VCodec](_codec_base.md#oh_avcodec) \*codec) | Clears the internal resources of an audio codec and …
35 …codec, [OH_AVCodecCallback](_o_h___a_v_codec_callback.md) callback, void \*userData) | Sets an asy…
36 …ec](_codec_base.md#oh_avcodec) \*codec, const OH_AVFormat \*format) | Configures the audio descrip…
37 …pare) ([OH_AVCodec](_codec_base.md#oh_avcodec) \*codec) | Prepares internal resources for an audio…
38 …audiocodec_start) ([OH_AVCodec](_codec_base.md#oh_avcodec) \*codec) | Starts an audio codec after …
39 …p](#oh_audiocodec_stop) ([OH_AVCodec](_codec_base.md#oh_avcodec) \*codec) | Stops an audio codec.|
40 …odec](_codec_base.md#oh_avcodec) \*codec) | Clears the input and output data in the internal buffe…
41 ….md#oh_avcodec) \*codec) | Resets an audio codec. To continue encoding or decoding, you must call …
42 …dec](_codec_base.md#oh_avcodec) \*codec) | Obtains the description information about the output da…
43 …VCodec](_codec_base.md#oh_avcodec) \*codec, const OH_AVFormat \*format) | Sets dynamic parameters …
44 …odec](_codec_base.md#oh_avcodec) \*codec, uint32_t index) | Pushes the input buffer filled with da…
45 … ([OH_AVCodec](_codec_base.md#oh_avcodec) \*codec, uint32_t index) | Frees an output buffer of an …
46 …md#oh_avcodec) \*codec, bool \*isValid) | Checks whether an audio codec instance is valid.<br>This…
47 …udiocodec_setdecryptionconfig) ([OH_AVCodec](_codec_base.md#oh_avcodec) \*codec, MediaKeySession \…
56 OH_AVErrCode OH_AudioCodec_Configure (OH_AVCodec *codec, const OH_AVFormat *format)
61 Configures the audio description. The audio codec is usually configured based on the audio descript…
71 | codec | Pointer to an **OH_AVCodec** instance.|
87 Creates an audio codec instance based on a MIME type. This function is recommended in most cases.
113 Creates an audio codec instance based on a codec name. To use this function, you must know the exac…
123 | name | Pointer to an audio codec name.|
133 OH_AVErrCode OH_AudioCodec_Destroy (OH_AVCodec *codec)
138 Clears the internal resources of an audio codec and destroys the codec instance.
148 | codec | Pointer to an **OH_AVCodec** instance. |
158 OH_AVErrCode OH_AudioCodec_Flush (OH_AVCodec *codec)
163 Clears the input and output data in the internal buffer of an audio codec.
175 | codec | Pointer to an **OH_AVCodec** instance.|
185 OH_AVErrCode OH_AudioCodec_FreeOutputBuffer (OH_AVCodec *codec, uint32_t index)
190 Frees an output buffer of an audio codec.
200 | codec | Pointer to an **OH_AVCodec** instance.|
211 OH_AVFormat* OH_AudioCodec_GetOutputDescription (OH_AVCodec *codec)
216 Obtains the description information about the output data of an audio codec.
229 | codec | Pointer to an **OH_AVCodec** instance.|
239 OH_AVErrCode OH_AudioCodec_IsValid (OH_AVCodec *codec, bool *isValid)
244 Checks whether an audio codec instance is valid.<br>This function is used to detect the codec statu…
254 | codec | Pointer to an **OH_AVCodec** instance.|
255 …ter to an instance of the Boolean type. The value **true** means that the codec instance is valid,…
265 OH_AVErrCode OH_AudioCodec_Prepare (OH_AVCodec *codec)
270 Prepares internal resources for an audio codec. This function must be called after **Configure**.
280 | codec | Pointer to an **OH_AVCodec** instance.|
290 OH_AVErrCode OH_AudioCodec_PushInputBuffer (OH_AVCodec *codec, uint32_t index)
295 Pushes the input buffer filled with data to an audio codec.
297 …ports the available input buffer and the index. After being pushed to the codec, a buffer is not a…
299 In addition, some codecs require the input of codec-specific data to initialize the encoding or dec…
309 | codec | Pointer to an **OH_AVCodec** instance.|
320 OH_AVErrCode OH_AudioCodec_RegisterCallback (OH_AVCodec *codec, OH_AVCodecCallback callback, void *…
325 …back so that your application can respond to events generated by an audio codec. This function mus…
335 | codec | Pointer to an **OH_AVCodec** instance.|
347 OH_AVErrCode OH_AudioCodec_Reset (OH_AVCodec *codec)
352 Resets an audio codec. To continue encoding or decoding, you must call **Configure** to configure t…
362 | codec | Pointer to an **OH_AVCodec** instance. |
372 OH_AVErrCode OH_AudioCodec_SetDecryptionConfig (OH_AVCodec *codec, MediaKeySession *mediaKeySession…
387 | codec | Pointer to an **OH_AVCodec** instance. |
405 OH_AVErrCode OH_AudioCodec_SetParameter (OH_AVCodec *codec, const OH_AVFormat *format)
410 Sets dynamic parameters for an audio codec.
412 This function can be called only after the codec is started. Incorrect parameter settings may cause…
422 | codec | Pointer to an **OH_AVCodec** instance.|
433 OH_AVErrCode OH_AudioCodec_Start (OH_AVCodec *codec)
438 Starts an audio codec after it is prepared successfully. After being started, the codec starts to r…
448 | codec | Pointer to an **OH_AVCodec** instance.|
458 OH_AVErrCode OH_AudioCodec_Stop (OH_AVCodec *codec)
463 Stops an audio codec.
465 After the codec is stopped, you can call **Start** to start it again. If you have passed specific d…
475 | codec | Pointer to an **OH_AVCodec** instance.|