hi_mpi_dvpp_get_image_info

Description

Obtains the output width, height, width stride, height stride, and buffer size as well as the source image format when the source image format is retained after decoding.

This API checks whether the image format supports decoding. For an unsupported stream, the API returns the error code HI_ERR_SYS_NOT_SUPPORT. For details, see Common Return Codes.

The Ascend 310 AI Processor does not support this API in the current version.

The Ascend 910 AI Processor does not support this API in the current version.

Prototype

hi_s32 hi_mpi_dvpp_get_image_info(hi_payload_type img_type, const hi_vdec_stream *stream, hi_img_info *img_info);

Parameters

Parameter

Input/Output

Description

img_type

Input

Type of the stream to parse.

Currently, the stream type can only be HI_PT_JPEG.

stream

Input

Pointer to the input stream information.

In standard form, when this API is called on the host, the configured addr must be a buffer address on the host.

img_info

Output

Pointer to the image information.

Returns