vdec_get_tmv_buf_size

Applicable Products

Product

Supported (√/x)

Ascend 950PR&950DT products

√

Atlas A3 products

√

Atlas A2 products

√

Atlas training products

x

Atlas inference products

√

Atlas 200I/500 A2 inference products

√

Description

Obtains the requested TMV buffer allocation.

Prototype

  • C Prototype
    1
    hi_u32 hi_vdec_get_tmv_buf_size(hi_payload_type type, hi_u32 width, hi_u32 height);
    
  • Python Function
    1
    ret = acl.himpi.vdec_get_tmv_buf_size(type, width, height)
    

Parameters

Parameter

Description

type

Int, decoding video type. For details, see hi_payload_type.

width

Int, input image width.

height

Int, input image height.

Return Values

Return Value

Description

ret

Int, size of the TMV buffer.

Constraints

This API is provided to calculate the requested TMV buffer allocation so that the corresponding parameters can be initialized during channel creation.

Reference

For the API call sequence and examples, see VDEC.