aclvdecGetChannelDesc Series

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function

Obtains the description of a video decoding channel.

Prototype

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
uint32_t aclvdecGetChannelDescChannelId(const aclvdecChannelDesc *channelDesc)
uint32_t aclvdecGetChannelDescThreadId(const aclvdecChannelDesc *channelDesc)
aclvdecCallback aclvdecGetChannelDescCallback(const aclvdecChannelDesc *channelDesc)
acldvppStreamFormat aclvdecGetChannelDescEnType(const aclvdecChannelDesc *channelDesc)
acldvppPixelFormat aclvdecGetChannelDescOutPicFormat(const aclvdecChannelDesc *channelDesc)
uint32_t aclvdecGetChannelDescOutPicWidth(const aclvdecChannelDesc *channelDesc)
uint32_t aclvdecGetChannelDescOutPicHeight(const aclvdecChannelDesc *channelDesc)
uint32_t aclvdecGetChannelDescRefFrameNum(const aclvdecChannelDesc *channelDesc)
uint32_t aclvdecGetChannelDescOutMode(const aclvdecChannelDesc *channelDesc)
uint32_t aclvdecGetChannelDescBitDepth(const aclvdecChannelDesc *channelDesc)

Parameters

Parameter

Input/Output

Description

channelDesc

Input

Pointer to the description of a video decoding channel.

Call the aclvdecCreateChannelDesc API to create data of the aclvdecChannelDesc type and call the aclvdecSetChannelDesc series APIs to set the attribute value of the video decoding channel description in advance.

Returns

Parameter

Description

channelId

VDEC channel ID

For the Atlas training product, the value range is [0, 31].

For the Atlas inference product, the value range is [0, 255].

For the Atlas 200I/500 A2 inference product, the value range is [0, 255].

For the Atlas A2 training product/Atlas A2 inference product, the value range is [0, 255].

For the Atlas A3 training product/Atlas A3 inference product, the value range is [0, 255].

threadId

Callback thread ID.

callback

Callback function.

For details, see aclvdecCallback.

enType

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 about the type definition, see acldvppStreamFormat.

outPicFormat

YUV image storage format. For details about the type definition, see acldvppPixelFormat.

outPicWidth

Image width.

outPicHeight

Image height.

refFrameNum

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

For the Atlas training product, the value of this parameter is invalid in the current version and cannot be obtained.

outMode

Whether to output frames in real time (that is, one frame is sent and decoded without depending on the input of subsequent frames). The options are as follows:

  • 0: delayed frame output mode. VDEC starts to output the decode result only after receiving multiple frames in the stream.
  • 1: real-time frame output mode. VDEC starts to output the decode result in real time after receiving one 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).

bitDepth

Video bit width.

Value range:

  • 0: 8-bit
  • 1: 10-bit

For the Atlas training product, the value of this parameter is invalid in the current version and cannot be obtained.