hi_tde_none_src
hi_tde_surface
说明
位图信息结构体。
定义
typedef struct {
hi_u64 phys_addr;
hi_u32 phys_len;
hi_tde_color_format color_format;
hi_u32 height;
hi_u32 width;
hi_u32 stride;
hi_bool is_ycbcr_clut;
hi_bool alpha_max_is_255;
hi_u8 alpha0;
hi_u8 alpha1;
hi_u64 cbcr_phys_addr;
hi_u32 cbcr_phys_len;
hi_u32 cbcr_stride;
hi_u64 clut_phys_addr;
hi_u32 clut_phys_len;
} hi_tde_surface;
成员
| 成员名称 | 描述 |
|---|---|
| phys_addr | 位图或Y分量的起始地址。 |
| phys_len | 物理地址长度。 |
| color_format | 颜色格式。 |
| height | 位图高度。 |
| width | 位图宽度。 |
| stride | 位图或Y分量的步长。 |
| is_ycbcr_clut | CLUT是否在YCbCr空间中。Atlas 200/500 A2推理产品不支持。 |
| alpha_max_is_255 | alpha最大值是128还是255。Atlas 200/500 A2推理产品不支持。 |
| support_alpha_ex_1555 | ARGB1555位图中是否支持alpha扩展。Atlas 200/500 A2推理产品不支持。 |
| alpha0 | alpha0,用于ARGB1555 format。Atlas 200/500 A2推理产品不支持。 |
| alpha1 | alpha1,用于ARGB1555 format。Atlas 200/500 A2推理产品不支持。 |
| cbcr_phys_addr | CbCr分量的地址。Atlas 200/500 A2推理产品不支持。 |
| cbcr_phys_len | CbCr分量的地址长度。Atlas 200/500 A2推理产品不支持。 |
| cbcr_stride | CbCr分量的步长。Atlas 200/500 A2推理产品不支持。 |
| clut_phys_addr | Clut表的地址。Atlas 200/500 A2推理产品不支持。 |
| clut_phys_len | Clut表的地址长度。Atlas 200/500 A2推理产品不支持。 |
父主题: TDE图形绘制
hi_tde_rect
说明
矩形信息结构体。
定义
typedef struct {
hi_s32 pos_x;
hi_s32 pos_y;
hi_u32 width;
hi_u32 height;
} hi_tde_rect;
成员
| 成员名称 | 描述 |
|---|---|
| pos_x | 水平坐标。 |
| pos_y | 垂直坐标。 |
| width | 宽度。 |
| height | 高度。 |
父主题: TDE图形绘制
hi_tde_none_src
说明
无源位图操作区域位图信息结构体,当前在快速填充功能中作为入参使用。
定义
typedef struct {
hi_tde_surface *dst_surface;
hi_tde_rect *dst_rect;
} hi_tde_none_src;
成员
| 成员名称 | 描述 |
|---|---|
| dst_surface | 目标位图。 |
| dst_rect | 目标位图操作区域。 |
父主题: TDE图形绘制
hi_tde_single_src
说明
单源位图区域信息和目标位图区域信息结构体,当前在快速拷贝功能中作为入参使用。
定义
typedef struct {
hi_tde_surface *src_surface;
hi_tde_surface *dst_surface;
hi_tde_rect *src_rect;
hi_tde_rect *dst_rect;
} hi_tde_single_src;
成员
| 成员名称 | 描述 |
|---|---|
| src_surface | 源位图。 |
| dst_surface | 目标位图。 |
| src_rect | 源位图操作区域。 |
| dst_rect | 目标位图操作区域。 |
父主题: TDE图形绘制
hi_tde_double_src
说明
双源位图区域信息和目标位图区域信息结构体,当前在模式填充中使用。
定义
typedef struct {
hi_tde_surface *bg_surface;
hi_tde_surface *fg_surface;
hi_tde_surface *dst_surface;
hi_tde_rect *bg_rect;
hi_tde_rect *fg_rect;
hi_tde_rect *dst_rect;
} hi_tde_double_src;
成员
| 成员名称 | 描述 |
|---|---|
| bg_surface | 背景位图。 |
| fg_surface | 前景位图。 |
| dst_surface | 目标位图。 |
| bg_rect | 背景位图操作区域。 |
| fg_rect | 前景位图操作区域。 |
| dst_rect | 目标位图操作区域。 |
父主题: TDE图形绘制
hi_tde_fill_color
说明
填充颜色信息结构体。
定义
typedef struct {
hi_tde_color_format color_format;
hi_u32 color_value;
} hi_tde_fill_color;
成员
| 成员名称 | 描述 |
|---|---|
| color_format | 颜色格式。 |
| color_value | 颜色数据。 |
父主题: TDE图形绘制
在线提单