aclvencChannelDescParamType

The Atlas training products do not support this enumeration.

The Atlas A2 training products/Atlas A2 inference products do not support this enumeration.

The Atlas A3 training products/Atlas A3 inference products do not support this enumeration.

VENC Channel Attribute Type

Description

ACL_VENC_THREAD_ID_UINT64 = 0

Callback thread ID

Do not pass the same thread ID for subscribing to VENC callback functions on different devices in the same process.

ACL_VENC_CALLBACK_PTR = 1

Callback function.

ACL_VENC_PIXEL_FORMAT_UINT32 = 2

Image format.

  • PIXEL_FORMAT_YUV_SEMIPLANAR_420
  • PIXEL_FORMAT_YVU_SEMIPLANAR_420

ACL_VENC_ENCODE_TYPE_UINT32 = 3

Video coding protocol.

For details, see acldvppStreamFormat.

ACL_VENC_PIC_WIDTH_UINT32 = 4

Input image width.

ACL_VENC_PIC_HEIGHT_UINT32 = 5

Input image height.

ACL_VENC_KEY_FRAME_INTERVAL_UINT32 = 6

Key frame interval. Must be in the range of [1, 65536].

ACL_VENC_BUF_ADDR_PTR = 7

Pointer address of the encoding output buffer.

ACL_VENC_BUF_SIZE_UINT32 = 8

Size of the encoding output buffer, in bytes.
NOTE:

For the Atlas inference products, if this parameter is not specified, the default value 8 MB is used. The minimum value is 5 MB.

For the Atlas 200I/500 A2 inference products, if this parameter is not specified, the default value 8 MB is used. The minimum value is 5 MB.

ACL_VENC_RC_MODE_UINT32 = 9

Bit rate control mode.
  • 0: default value, CBR mode.
  • 1: variable bit rate (VBR) mode

  • 2: constant bit rate (CBR) mode

    NOTE:

    If this attribute is not set, the default value 0 is used.

    For the Atlas 200I/500 A2 inference products, the default value 0 indicates the VBR mode.

    For the Atlas inference products, the default value 0 indicates the VBR mode.

ACL_VENC_SRC_RATE_UINT32 = 10

Frame rate of the input stream (FPS).

For the Atlas 200I/500 A2 inference products, the value is 0 or in the range of [1, 240].

For the Atlas inference products, the value is 0 or in the range of [1, 240].

If it is not set or set to 0, the default value 30 is used. If the difference between the value of this parameter and the actual frame rate of the input stream is too large, the output bit rate is affected.

ACL_VENC_MAX_BITRATE_UINT32 = 11

Output bit rate (kbit/s).

For the Atlas 200I/500 A2 inference products, the value range is [2, 614400]. The default value is 2000. If it is set to 0, the default value 2000 is used.

For the Atlas inference products, the value range is [2, 614400]. The default value is 2000. If it is set to 0, the default value 2000 is used.

ACL_VENC_MAX_IP_PROP_UINT32 = 12

I-frame to P-frame bit allocation ratio within a GOP. Must be 0 or within the range of [1, 100]. The default value is 80 in VBR mode or 70 in CBR mode. If it is set to 0, the default value is used.