hi_img_info

Description

Defines the image information.

Prototype

typedef struct {
    hi_u32 width;
    hi_u32 height;
    hi_u32 width_stride;
    hi_u32 height_stride;
    hi_u32 img_buf_size;
    union {
        hi_jpeg_raw_format pixel_format;
        hi_png_color_format png_pixel_format;
        hi_pixel_format img_pixel_format;
    };
    hi_u32 reserved[4];
} hi_img_info;

Members

Member

Description

width

Image width.

height

Image height.

width_stride

Image width stride.

height_stride

Image height stride.

img_buf_size

Image buffer size, in bytes.

pixel_format

JPEGD image format.

png_pixel_format

PNGD image format.

img_pixel_format

Common image format.

reserved

Reserved. To ensure compatibility in later versions, use the memset struct for resetting and initialization. Do not explicitly access the reserved field in the code.