aclvdecSetChannelDesc Series
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
☓ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function
Sets the description of a video decoding channel.
Prototype
1 2 3 4 5 6 7 8 9 10 | aclError aclvdecSetChannelDescChannelId(aclvdecChannelDesc *channelDesc, uint32_t channelId) aclError aclvdecSetChannelDescThreadId(aclvdecChannelDesc *channelDesc, uint64_t threadId) aclError aclvdecSetChannelDescCallback(aclvdecChannelDesc *channelDesc, aclvdecCallback callback) aclError aclvdecSetChannelDescEnType(aclvdecChannelDesc *channelDesc, acldvppStreamFormat enType) aclError aclvdecSetChannelDescOutPicFormat(aclvdecChannelDesc *channelDesc, acldvppPixelFormat outPicFormat) aclError aclvdecSetChannelDescOutPicWidth(aclvdecChannelDesc *channelDesc, uint32_t outPicWidth) aclError aclvdecSetChannelDescOutPicHeight(aclvdecChannelDesc *channelDesc, uint32_t outPicHeight) aclError aclvdecSetChannelDescRefFrameNum(aclvdecChannelDesc *channelDesc, uint32_t refFrameNum) aclError aclvdecSetChannelDescOutMode(aclvdecChannelDesc *channelDesc, uint32_t outMode) aclError aclvdecSetChannelDescBitDepth(aclvdecChannelDesc *channelDesc, uint32_t bitDepth) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
channelDesc |
Output |
Pointer to the description of a video decoding channel. Call the aclvdecCreateChannelDesc API to create data of the aclvdecChannelDesc type in advance. |
channelId |
Input |
Indicates the channel ID. For the For the For the For the For the |
threadId |
Input |
Callback thread ID. 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 decoding channels. Compared with the scenario where each VDEC decoding channel is processed by a separate thread, VDEC is less performant when multiple VDEC decoding channels are processed in serial in a single thread. |
callback |
Input |
Decoding callback function. For details, see aclvdecCallback. |
enType |
Input |
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 |
Input |
Storage format of the output image. For details about the type definition, see acldvppPixelFormat. For details about the supported formats, see Restrictions on Stream/Image Formats, Width and Height Alignment, and Buffers. Defaults to YUV420SP NV12. |
outPicWidth |
Input |
Maximum output width For the For the For the For the For the |
outPicHeight |
Input |
Maximum output height For the For the For the For the For the |
refFrameNum |
Input |
Number of reference frames. Must be in the range of [0, 16]. For the For the For the For the For the |
outMode |
Input |
Sets whether to output frames in real time. (That is, one frame is sent and decoded without depending on the input of subsequent frames.) Value range:
|
bitDepth |
Input |
Sets the video bit width. The default value is 10 bits. Value range:
For the |
Returns
0 on success; otherwise, failure. For details, see aclError.