Function: venc_set_channel_desc_pic_format

C Prototype

aclError aclvencSetChannelDescPicFormat(aclvencChannelDesc *channelDesc, acldvppPixelFormat picFormat);

Python Function

ret = acl.media.venc_set_channel_desc_pic_format(venc_channel_desc, venc_format)

Function Usage

Sets the encoding channel description attribute: input image format.

The Atlas Training Series Product does not support this API.

Input Description

venc_channel_desc: int, pointer address of the description of a video encoding channel.

Call acl.media.venc_create_channel_desc to create data of the aclvencChannelDesc type in advance.

venc_format: int, input image format. The following formats are supported:

  • PIXEL_FORMAT_YUV_SEMIPLANAR_420
  • PIXEL_FORMAT_YVU_SEMIPLANAR_420

Return Value

ret: int, error code.