venc_get_qpmap_size

Applicable Products

Product

Supported (√/x)

Ascend 950PR&950DT products

x

Atlas A3 products

x

Atlas A2 products

x

Atlas training products

x

Atlas inference products

√

Atlas 200I/500 A2 inference products

x

Description

Obtains the size of the QpMap table. Only H.264/H.265 encoding channels are supported.

Prototype

  • C Prototype
    1
    hi_s32 hi_mpi_venc_get_qpmap_size(hi_payload_type type, hi_u32 width, hi_u32 height)
    
  • Python Function
    1
    size = acl.himpi.venc_get_qpmap_size(type, width, height)
    

Parameters

Parameter

Description

type

Int, encoding protocol type. For details, see hi_payload_type.

width

Int, width of the encoded image.

height

Int, height of the encoded image.

Return Values

Return Value

Description

size

Int.

  • 0: failure
  • Non-zero: success