CreateVdecApi
Syntax |
int CreateVdecApi(IDVPPAPI*& pIDVPPAPI, int singleton) |
---|---|
Function |
Obtains a VDEC API instance, which is equivalent to the handle to the VDEC executor. The caller can use the obtained VDEC API instance to call CreateVdecApi for video decoding. Cross-function calling and cross-thread calling are supported. |
Input |
|
Output |
IDVPPAPI pointer reference. The output pointer may be or may not be NULL. If a DVPP API instance fails to be obtained, the output pointer is NULL. If a DVPP API instance is successfully obtained, the output pointer is not NULL. |
Return Value |
|
Instructions |
The caller creates the IDVPPAPI object pointer, which is initialized to NULL. The IDVPPAPI object pointer is passed by calling the CreateVdecApi function. If the application is successful, CreateVdecApi returns the DvppApi instance. Otherwise, NULL is returned. The caller needs to verify the return value. |
Restriction |
The caller is responsible for the life cycle of the VDEC API instance, including the application and release, which are implemented by using CreateVdecApi and DestroyVdecApi, respectively. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot