venc_get_h265_vui

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

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

√

Description

Obtains the VUI parameter settings of an H.265 channel.

Prototype

  • C Prototype
    1
    hi_s32 hi_mpi_venc_get_h265_vui(hi_venc_chn chn, hi_venc_h265_vui *h265_vui)
    
  • Python Function
    1
    h265_vui, ret = acl.himpi.venc_get_h265_vui(chn)
    

Parameters

Parameter

Description

chn

Int, encoding channel ID.

  • Atlas inference products: The value range of this parameter 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 this parameter is [0, 128). The JPEGE and VENC functions share the same channels, and the maximum number of channels is 128.

Return Value

Return Value

Description

h265_vui

Dict, dictionary of VUI attributes of an H.265 encoding channel. See hi_venc_h265_vui.

ret

Int, error code.

Restrictions

  • This API is used to obtain the VUI parameter settings of an H.265 VENC channel.
  • Call this API after an encoding channel is created and before the channel is destroyed.
  • You are advised to call this API after creating a channel but before starting encoding. This reduces the number of times of calling this API during encoding.
  • It is recommended that this API be called only in an H.265 encoding channel.