hi_img_info
说明
定义图片信息的结构体。
定义
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;
成员
成员名称  | 
描述  | 
|---|---|
width  | 
图片宽。  | 
height  | 
图片高。  | 
width_stride  | 
图片宽stride。  | 
height_stride  | 
图片高stride。  | 
img_buf_size  | 
存放图片的内存大小,单位是Byte。  | 
pixel_format  | 
JPEGD图片格式。  | 
png_pixel_format  | 
PNGD图片格式。  | 
img_pixel_format  | 
通用图片格式。  | 
reserved  | 
预留参数,为保证后续版本兼容性,请务必使用memset结构体方式进行清零初始化,在代码中必须避免显式对reserved字段进行访问。  | 
父主题: 公共