Parameter for Video decoding.
Member
| Member Name | Description |
|---|---|
pixelFormat | The pixel format of the input image. The HB_VP_IMAGE_FORMAT_NV12 and HB_VP_IMAGE_FORMAT_YUV420 formats are currently supported. |
inBufSize | Specifies the size of the internal input buffer of VPU, its size needs to satisfy 1024 alignment. Value range [1024, 2^31-1], default value 10 * 1024 * 1024. |
outBufCount | Specifies the count of output buffers the VPU. Value range [1, 31], default value 5. |
videoType | The type of encoding protocol. |
Get the decoder's default decoding parameter.
param Decode the parameter pointer.0 means the API was successfully executed, otherwise the execution failed.The API for calling to create decoder context and initialize context to nullptr in advance before creation.
context Decoder context pointer.param Decode the parameter pointer.0 means the API was successfully executed, otherwise the execution failed.The API for calling to release the decoder context.
context Decoder context pointer.0 means the API was successfully executed, otherwise the execution failed.The API for calling the VPU decoding
taskHandle Task handles are responsible for the interaction of the operator with the UCP architecture.srcBuf Pointer the memory address where the H.264 or H.265 data is stored.context Decoder context pointer.0 means the API was successfully executed, otherwise the execution failed.The API calling for to get the decoded data buffer.
taskHandle Task handles are responsible for the interaction of the operator with the UCP architecture.outBuf Pointer the memory address that holds the decoded data.0 means the API was successfully executed, otherwise the execution failed.outBuf is requested internally by the VPU.