vdec_get_tmv_buf_size

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product / Atlas A3 inference product

Atlas A2 training product / Atlas A2 inference product

Atlas training product

x

Atlas inference product

Atlas 200I/500 A2 inference product

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 Value

Return Value

Description

ret

int, size of the vector prediction buffer required for image storage.

Restrictions

This API calculates the requested TMV buffer allocation so that the corresponding parameters can be initialized during channel creation.

Reference

For details about the API call sequence and sample code, see VDEC.