aclvdecChannelDescParamType

Data Format

Description

ACL_VDEC_CSC_MATRIX_UINT32 = 0

CSC matrix attribute. For details about the attribute values, see acldvppCscMatrix.

The Atlas training products does not support this mode.

ACL_VDEC_OUT_MODE_UINT32 = 1

Frame output mode, to set whether to output frames in real time.

The options are as follows:

  • 0: delayed frame output mode. VDEC starts to output the decoding result only after receiving multiple frames in the stream.

  • 1: real-time frame output mode. The VDEC starts to output the decoding result in real time after obtaining a frame in the stream. Only H.264/H.265 standard streams with simple reference relationships are supported (no long-term reference frames or B-frames).

ACL_VDEC_THREAD_ID_UINT64 = 2

Callback thread ID.

NOTE:

It is not allowed to 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 = 3

Decoding callback function. The format is as follows:

def vdec_call_back_func(dvpp_stream_desc, dvpp_pic_desc, user_data):
pass

ACL_VDEC_CHANNEL_ID_UINT32 = 4

Channel ID.

Must be in the range of [0, 31] for the Atlas training products.

Must be in the range of [0, 255] for the Atlas 200I/500 A2 inference products.

Atlas A2 training products/Atlas A2 inference products

Must be in the range of [0, 255] for the Atlas inference products.

Must be in the range of [0, 255] for the Atlas A3 training products/Atlas A3 inference products.

ACL_VDEC_ENCODE_TYPE_UINT32 = 5

Video coding protocol.

For details, see acldvppStreamFormat.

ACL_VDEC_OUT_PIC_FORMAT_UINT32 = 6

YUV image storage format. For details, see Table 1.

If the output format is not specified, YUV420SP NV12 is used by default.

ACL_VDEC_OUT_PIC_WIDTH_UINT32 = 7

Maximum output width.

Atlas training products: Defaults to 1920.

Atlas 200I/500 A2 inference products: Defaults to 4096.

Atlas A2 training products/Atlas A2 inference products: Defaults to 4096.

Atlas inference products: Defaults to 4096.

Atlas A3 training products/Atlas A3 inference products: Defaults to 4096.

ACL_VDEC_OUT_PIC_HEIGHT_UINT32 = 8

Maximum output height.

Atlas training products: Defaults to 1120.

Atlas 200I/500 A2 inference products: Defaults to 4096.

Atlas A2 training products/Atlas A2 inference products: Defaults to 4096.

Atlas inference products: Defaults to 4096.

Atlas A3 training products/Atlas A3 inference products: Defaults to 4096.

ACL_VDEC_REF_FRAME_NUM_UINT32 = 9

Number of reference frames. Must be in the range of [0, 16].

Atlas training products: Not configurable in the current version.

Atlas 200I/500 A2 inference products: Defaults to 4096.

Atlas A2 training products/Atlas A2 inference products: Defaults to 8.

Atlas inference products: Defaults to 8.

Atlas A3 training products/Atlas A3 inference products: Defaults to 8.

ACL_VDEC_BIT_DEPTH_UINT32 = 10

Video bit depth.

Value range:
  • 0: 8-bit
  • 1: 10-bit (default)

Atlas training products: Not configurable in the current version.