Skip to main content

hi_video_size

hi_coefficient

说明

定义色域转换矩阵参数。

定义

typedef struct {
hi_double csc_matrix_r0_c0;
hi_double csc_matrix_r0_c1;
hi_double csc_matrix_r0_c2;
hi_double csc_matrix_r1_c0;
hi_double csc_matrix_r1_c1;
hi_double csc_matrix_r1_c2;
hi_double csc_matrix_r2_c0;
hi_double csc_matrix_r2_c1;
hi_double csc_matrix_r2_c2;
hi_double csc_bias_r0;
hi_double csc_bias_r1;
hi_double csc_bias_r2;
} hi_coefficient;

成员

成员名称描述
csc_matrix_r0_c0设置色域转换矩阵参数R0C0。
csc_matrix_r0_c1设置色域转换矩阵参数R0C1。
csc_matrix_r0_c2设置色域转换矩阵参数R0C2。
csc_matrix_r1_c0设置色域转换矩阵参数R1C0。
csc_matrix_r1_c1设置色域转换矩阵参数R1C1。
csc_matrix_r1_c2设置色域转换矩阵参数R1C2。
csc_matrix_r2_c0设置色域转换矩阵参数R2C0。
csc_matrix_r2_c1设置色域转换矩阵参数R2C1。
csc_matrix_r2_c2设置色域转换矩阵参数R2C2。
csc_bias_r0设置偏移R0。
csc_bias_r1设置偏移R1。
csc_bias_r2设置偏移R2。

父主题: 公共

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图片格式。

父主题: 公共

在线提单