跳到主要内容

hi_img_stream

hi_csc_coefficient

说明

定义色域转换矩阵参数的结构体。

定义

typedef struct {
hi_coefficient yuv_to_rgb_coefficient;
hi_coefficient rgb_to_yuv_coefficient;
} hi_csc_coefficient;

成员

成员名称描述
yuv_to_rgb_coefficientyuv转rgb的色域转换参数。
rgb_to_yuv_coefficientrgb转yuv的色域转换参数。

父主题: 公共

hi_video_size

说明

预留结构体,暂不支持。

定义

typedef struct {
hi_u32 width;
hi_u32 height;
} hi_video_size;

父主题: 公共

hi_img_stream

说明

定义图片码流信息。

定义

typedef struct {
hi_payload_type type;
hi_u8 *ATTRIBUTE addr;
hi_u32 len;
hi_u64 pts;
hi_s32 reserved[2];
} hi_img_stream;

成员

成员名称描述
type图片类型。
addr图片在内存中的起始虚拟地址。
len存放图片的内存大小,单位Byte。
pts图片时间戳,预留参数。
reserved预留参数,为保证后续版本兼容性,请务必使用memset结构体方式进行清零初始化,在代码中必须避免显式对reserved字段进行访问。

父主题: 公共

hi_pic_info

说明

定义图片信息。

定义

typedef struct {
hi_void* picture_address;
hi_u32 picture_buffer_size;
hi_u32 picture_width;
hi_u32 picture_height;
hi_u32 picture_width_stride;
hi_u32 picture_height_stride;
hi_pixel_format picture_format;
} hi_pic_info;

成员

成员名称描述
picture_address图片在Device内存中的起始虚拟地址。
picture_buffer_size存放图片的内存大小,单位Byte。
picture_width图片宽。
picture_height图片高。
picture_width_stride图片宽stride。
picture_height_stride图片高stride。
picture_format图片格式。

父主题: 公共

hi_png_color_format

说明

定义PNG源图片格式的枚举。

定义

typedef enum {
HI_PNG_COLOR_FORMAT_GRAY = 0x0, // gray bitmap
HI_PNG_COLOR_FORMAT_RGB = 0x2, // RGB bitmap
HI_PNG_COLOR_FORMAT_CLUT = 0x3, // PLTE调色板数据
HI_PNG_COLOR_FORMAT_AGRAY = 0x4, // gray bitmap with alpha
HI_PNG_COLOR_FORMAT_ARGB = 0x6, // RGB bitmap with alpha
HI_PNG_COLOR_FORMAT_BUTT = 0x100
} hi_png_color_format;

父主题: 公共

在线提单