enum aclvdecChannelDescParamType {
ACL_VDEC_CSC_MATRIX_UINT32 = 0, //CSC matrix attribute. The value is of the uint32_t type.
ACL_VDEC_OUT_MODE_UINT32, //Real-time frame output. The value is of the uint32_t type.
ACL_VDEC_THREAD_ID_UINT64, //Callback thread ID. The value is of the uint64_t type.
ACL_VDEC_CALLBACK_PTR, //Callback function. The value is a memory pointer.
ACL_VDEC_CHANNEL_ID_UINT32, //Channel ID. The value is of the uint32_t type.
ACL_VDEC_ENCODE_TYPE_UINT32, //Video coding protocol. The value is of the uint32_t type.
ACL_VDEC_OUT_PIC_FORMAT_UINT32, //Output image format. The value is of the uint32_t type.
ACL_VDEC_OUT_PIC_WIDTH_UINT32, //Maximum width of the decoding stream. The value is of the uint32_t type.
ACL_VDEC_OUT_PIC_HEIGHT_UINT32, //Maximum height of the decoding stream. The value is of the uint32_t type.
ACL_VDEC_REF_FRAME_NUM_UINT32, //Number of reference frames. The value is of the uint32_t type.
ACL_VDEC_BIT_DEPTH_UINT32 //Video bit width. The value is of the uint32_t type.
}
Attribute |
Description |
|---|---|
ACL_VDEC_CSC_MATRIX_UINT32 |
CSC matrix attribute. For details about the attribute values, see acldvppCscMatrix. The Ascend 310 AI Processor does not support this option. The Ascend 910 AI Processor does not support this option. |
ACL_VDEC_OUT_MODE_UINT32 |
Frame output mode.
The options are as follows:
|
ACL_VDEC_THREAD_ID_UINT64 |
Callback thread ID.
NOTE:
Do not pass the same thread ID for subscribing to VDEC callback functions on different devices in the same process. On a single device, the same thread ID can be specified for multiple VDEC channels. Compared with the scenario where each VDEC channel is processed by a separate thread, VDEC is less performant when multiple VDEC channels are processed in serial in a single thread. |
ACL_VDEC_CALLBACK_PTR |
Decoding callback function. For details, see aclvdecCallback. |
ACL_VDEC_CHANNEL_ID_UINT32 |
Channel ID. Must be in the range of [0, 31] for the Ascend 310 AI Processor. Must be in the range of [0, 31] for the Ascend 910 AI Processor. Must be in the range of [0, 255] for the Ascend 310P AI Processor. |
ACL_VDEC_ENCODE_TYPE_UINT32 |
Video coding protocol: H.265 main level (0), H.264 baseline level (1), H.264 main level (2), or H.264 high level (3). For details, see acldvppStreamFormat. |
ACL_VDEC_OUT_PIC_FORMAT_UINT32 |
YUV image format.
Defaults to YUV420SP NV12. |
ACL_VDEC_OUT_PIC_WIDTH_UINT32 |
Maximum output width. Defaults to 1920 for the Ascend 310 AI Processor. Defaults to 1920 for the Ascend 310 AI Processor. Defaults to 4096 for the Ascend 610 AI Processor. |
ACL_VDEC_OUT_PIC_HEIGHT_UINT32 |
Maximum output height Defaults to 1120 for the Ascend 310 AI Processor. Defaults to 1120 for the Ascend 310 AI Processor. Defaults to 4096 for the Ascend 610 AI Processor. |
ACL_VDEC_REF_FRAME_NUM_UINT32 |
Number of reference frames. Must be in the range of [0, 16]. Not configurable for the Ascend 310 AI Processor in the current version. Not configurable for the Ascend 910 AI Processor in the current version. Defaults to 8 for the Ascend 610 AI Processor. |
ACL_VDEC_BIT_DEPTH_UINT32 |
Video bit depth.
The options are as follows:
Not configurable for the Ascend 310 AI Processor in the current version. Not configurable for the Ascend 910 AI Processor in the current version. |