hi_vdec_get_tmv_buf_size

Applicable Products

Product

Supported

Ascend 950PR / Ascend 950DT

√

Atlas A3 training products / Atlas A3 inference products

√

Atlas A2 training products / Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

√

Atlas inference products

√

Atlas training products

☓

Function

Obtains the requested TMV buffer allocation.

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

Decode type.

width

Input

Width of the decoded picture.

height

Input

Height of the decoded picture.

Returns

Size of the TMV buffer.

Reference

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