Obtains the description of a video decoding channel. This API is synchronous.
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)
Parameter |
Input/Output |
Description |
|---|---|---|
channelDesc |
Input |
Pointer to the description of a video decoding channel. Call aclvdecCreateChannelDesc to create data of the aclvdecChannelDesc type and call aclvdecSetChannelDesc series to set the description of a video decoding channel in advance. |
Parameter |
Description |
|---|---|
channelId |
Decoding channel ID. Must be in the range of [0, 31] for the Ascend 310 AI Processor. Ascend 910 AI Processor: Must be in the range of [0, 31]. Ascend 310P AI Processor: Must be in the range of [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). |
outPicFormat |
YUV image storage format. |
outPicWidth |
Image width. |
outPicHeight |
Image height. |
refFrameNum |
Number of reference frames. Must be in the range of [0, 16]. In the current version of the Ascend 310 AI Processor, it is not supported to obtain this parameter. The value obtained is invalid. In the current version of the Ascend 910 AI Processor, it is not supported to obtain this parameter. The value obtained is invalid. |
outMode |
Frame output mode.
|
bitDepth |
Video bit width. The options are as follows:
In the current version of the Ascend 310 AI Processor, it is not supported to obtain this parameter. The value obtained is invalid. In the current version of the Ascend 910 AI Processor, it is not supported to obtain this parameter. The value obtained is invalid. |