acl.himpi.vdec_get_tmv_buf_size

C Prototype

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

Python Function

ret = acl.himpi.vdec_get_tmv_buf_size(type, width, height)

Function Usage

Obtains the requested TMV buffer allocation.

The Atlas 200/300/500 Inference Product does not support this API in the current version.

The Atlas Training Series Product does not support this API in the current version.

Input Description

type: int, decoding video type. For details, see hi_payload_type.

width: int, width of the decoded image.

height: int, height of the decoded image.

Return Value

Size of the TMV buffer.

Restrictions

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