Lines Matching refs:encoder
22 - Due to limited hardware encoder resources, you must call **OH_VideoEncoder_Destroy** to destroy e…
37 …PushInputBuffer** to input data. In surface mode, the caller, before the encoder is ready, calls *…
38 …and the encoder stops when it reads the last frame. In surface mode, the caller calls **OH_VideoEn…
48 1. An encoder enters the Initialized state in either of the following ways:
49 - When an encoder instance is initially created, the encoder enters the Initialized state.
50 …- When **OH_VideoEncoder_Reset** is called in any state, the encoder returns to the Initialized st…
52 … the encoder is in the Initialized state, you can call **OH_VideoEncoder_Configure** to configure …
53 3. When the encoder is in the Configured state, you can call **OH_VideoEncoder_Prepare()** to switc…
54 4. When the encoder is in the Prepared state, you can call **OH_VideoEncoder_Start** to switch it t…
55 …- When the encoder is in the Executing state, you can call **OH_VideoEncoder_Stop** to switch it b…
57 5. In rare cases, the encoder may encounter an error and enter the Error state. If this is the case…
58 …- When the encoder is in the Error state, you can either call **OH_VideoEncoder_Reset** to switch …
61 - After **OH_VideoEncoder_Start** is called, the encoder enters the Running substate immediately.
62 …- When the encoder is in the Executing state, you can call **OH_VideoEncoder_Flush** to switch it …
63 …encoder, the [AVCODEC_BUFFER_FLAGS_EOS](../../reference/apis-avcodec-kit/_core.md#oh_avcodecbuffer…
65 7. When the encoder is no longer needed, you must call **OH_VideoEncoder_Destroy** to destroy the e…
106 2. Define the information about the encoder callback buffer.
183 // Pointer to the encoder instance.
210 2. Create an encoder instance.
212 …You can create an encoder by name or MIME type. In the code snippet below, the following variables…
214 - **videoEnc**: pointer to the video encoder instance.
215 - **capability**: pointer to the encoder's capability.
221 …// Create an encoder by name. If your application has special requirements, for example, expecting…
223 // Create a hardware encoder instance.
230 …// Create an encoder by MIME type. Only specific codecs recommended by the system can be created i…
331 5. Call **OH_VideoEncoder_Configure()** to configure the encoder.
400 …Obtain the OHNativeWindow in surface mode. The surface must be obtained before the encoder is prep…
414 7. Call **OH_VideoEncoder_Prepare()** to prepare internal resources for the encoder.
423 8. Call **OH_VideoEncoder_Start()** to start the encoder.
430 // Start the encoder.
437 9. (Optional) Call **OH_VideoEncoder_SetParameter()** to dynamically configure encoder parameters d…
459 11. (Optional) Call **OH_VideoEncoder_PushInputParameter()** to notify the encoder that the frame-s…
482 12. Call **OH_VideoEncoder_NotifyEndOfStream()** to notify the encoder of EOS.
485 // In surface mode, you only need to call this API to notify the encoder of EOS.
486 …C_BUFFER_FLAGS_EOS flag and then call OH_VideoEncoder_PushInputBuffer to notify the encoder of EOS.
521 14. (Optional) Call **OH_VideoEncoder_Flush()** to refresh the encoder.
523 …ed, the encoder remains in the Running state, but the input and output data and parameter set (suc…
529 // Refresh the encoder.
543 15. (Optional) Call **OH_VideoEncoder_Reset()** to reset the encoder.
545 …After **OH_VideoEncoder_Reset** is called, the encoder returns to the Initialized state. To contin…
549 // Reset the encoder.
556 // Reconfigure the encoder.
561 // The encoder is ready again.
568 16. (Optional) Call **OH_VideoEncoder_Stop()** to stop the encoder.
570 …After **OH_VideoEncoder_Stop** is called, the encoder retains the encoding instance and releases t…
576 // Stop the encoder.
585 17. Call **OH_VideoEncoder_Destroy()** to destroy the encoder instance and release resources.
590 …> After the call, you must set the encoder to NULL to prevent program errors caused by wild pointe…
599 // Call OH_VideoEncoder_Destroy to destroy the encoder.
628 2. Create an encoder instance.
633 …// Create an encoder by name. If your application has special requirements, for example, expecting…
640 …// Create an encoder by MIME type. Only specific codecs recommended by the system can be created i…
641 …o be created, create hardware encoder instances first. If the hardware resources are insufficient,…
650 …r**, a callback used to report input data required, which means that the encoder is ready for rece…
653 You need to process the callback functions to ensure that the encoder runs properly.
730 4. Call **OH_VideoEncoder_Configure()** to configure the encoder.
740 // Configure the encoder.
748 5. Call **OH_VideoEncoder_Prepare()** to prepare internal resources for the encoder.
759 6. Call **OH_VideoEncoder_Start()** to start the encoder.
761 …As soon as the encoder starts, the callback functions will be triggered to respond to events. Ther…
771 // Start the encoder.
778 7. (Optional) Dynamically configure encoder parameters during running.
914 9. Notify the encoder of EOS.
920 …The API **OH_VideoEncoder_PushInputBuffer** is used to notify the encoder of EOS. This API is also…
968 The subsequent processes (including refreshing, resetting, stopping, and destroying the encoder) ar…