hi_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 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function Description

Obtains the size of the TMV buffer.

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

Prototype

hi_u32 hi_vdec_get_tmv_buf_size(hi_payload_type type, hi_u32 width, hi_u32 height)

Parameters

Parameter

Input/Output

Description

type

Input

Decoded video type.

width

Input

Width of the decoded picture

height

Input

Height of the decoded picture

Returns

Size of the TMV buffer.

See Also

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