hi_img_info

Description

Defines the image information.

Prototype

hi_img_info = {"width": width,
               "height": height,
               "width_stride": width_stride,
               "height_stride": height_stride,
               "img_buf_size": img_buf_size,
               "pixel_format": hi_jpeg_raw_format/hi_png_color_format,
               "reserved": [4]}

Members

Member

Description

width

Int, image width.

height

Int, image height.

width_stride

Int, image width stride.

height_stride

Int, image height stride.

img_buf_size

Int, image buffer size, in bytes.

pixel_format

Int, image format.

reserved

This parameter is reserved. In the current version, set this parameter to an all-zero list and do not explicitly use it.