Updated on 2022-03-13 GMT+08:00

DestroyVdecApi

Syntax

int DestroyVdecApi(IDVPPAPI*& pIDVPPAPI, int singleton)

Function

Releases the VDEC API instance created by CreateVdecApi and closes the VDEC executor.

Input

IDVPPAPI pointer reference.

The singleton is reserved for internal use to implement a single pIDVPPAPI instance in the future. It is recommended that the caller set the parameter to 0 currently.

Output

None

Return Value

  • 0: success
  • –1: failure

Instructions

None

Restriction

To continue to invoke the VDEC after DestroyVdecApi is called, create a VDEC API instance.