Lines Matching refs:encoder
25 …encoder, setting encoding parameters (such as the sampling rate, bit rate, and number of audio cha…
58 2. Create an encoder instance. In the code snippet below, **OH_AVCodec *** is the pointer to the en…
60 You can create an encoder by name or MIME type.
65 // Create an encoder by name.
74 // Create an encoder by MIME type.
102 …r**, a callback used to report input data required, which means that the encoder is ready for rece…
105 You need to process the callback functions to ensure that the encoder runs properly.
153 4. Call **OH_AudioCodec_Configure** to configure the encoder.
196 // Configure the encoder.
230 // Configure the encoder.
239 5. Call **OH_AudioCodec_Prepare()** to prepare internal resources for the encoder.
248 6. Call **OH_AudioCodec_Start()** to start the encoder.
343 9. (Optional) Call **OH_AudioCodec_Flush()** to refresh the encoder.
355 // Refresh the encoder.
367 10. (Optional) Call **OH_AudioCodec_Reset()** to reset the encoder.
369 …After **OH_AudioCodec_Reset()** is called, the encoder returns to the initialized state. To contin…
372 // Reset the encoder.
377 // Reconfigure the encoder.
384 11. Call **OH_AudioCodec_Stop()** to stop the encoder.
387 // Stop the encoder.
394 12. Call **OH_AudioCodec_Destroy()** to destroy the encoder instance and release resources.
401 // Call OH_AudioCodec_Destroy to destroy the encoder.
406 audioEnc_ = NULL; // The encoder cannot be destroyed repeatedly.