venc_get_h264_vui

Applicability

Product

Supported (√/x)

Atlas A3 training products/Atlas A3 inference products

x

Atlas A2 training products/Atlas A2 inference products

x

Atlas training products

x

Atlas inference products

Atlas 200I/500 A2 inference products

Function Usage

Obtains the VUI configurations of an H.264 encoding channel.

Prototype

  • C Prototype
    1
    hi_s32 hi_mpi_venc_get_h264_vui(hi_venc_chn chn, hi_venc_h264_vui *h264_vui)
    
  • Python Function
    1
    h264_vui, ret = acl.himpi.venc_get_h264_vui(chn)
    

Parameter Description

Parameter

Description

chn

Int, encoding channel ID.

  • Atlas inference products: The value range of the encoding channel ID is [0, 256). The JPEGE and VENC functions share the same channels, and the maximum number of channels is 256.
  • Atlas 200I/500 A2 inference products: The value range of the encoding channel ID is [0, 128). The JPEGE and VENC functions share the same channels, and the maximum number of channels is 128.

Return Value Description

Return Value

Description

h264_vui

Dict, VUI attributes of an H.264 encoding channel. For details, see hi_venc_h264_vui.

ret

Int, error code.

Restrictions

  • This API is used to obtain the VUI configurations of an H.264 encoding channel.
  • Call this API after an encoding channel is created and before the channel is destroyed.
  • You are advised to call this MPI after creating a channel but before starting encoding. This reduces the number of times of calling this MPI during encoding.
  • Call this API only in an H.264 encoding channel.