hi_hdmi_vendorspec_infoframe
hi_hdmi_vendorspec_infoframe
说明
定义HDMI定制化信息帧单元结构体。
定义
typedef struct {
hi_u8 data_len;
hi_u8 user_data[HI_HDMI_VENDOR_USER_DATA_MAX_LEN];
} hi_hdmi_vendorspec_infoframe;
成员
| 成员名称 | 描述 |
|---|---|
| data_len | IEEE(Institute of Electrical and Electronics Engineers)注册码数组长度,最大值为22。 |
| user_data | IEEE注册码,当前版本暂不支持使用。 text<br>#define HI_HDMI_VENDOR_USER_DATA_MAX_LEN 22<br> |
:::note 说明 当前版本中该结构体暂未使用,不可赋值,否则属于未定义行为。 :::
父主题: HDMI外设
hi_hdmi_infoframe_unit
说明
定义HDMI信息帧类型结构。
定义
typedef union {
hi_hdmi_avi_infoframe avi_infoframe;
hi_hdmi_audio_infoframe audio_infoframe;
hi_hdmi_vendorspec_infoframe vendor_spec_infoframe;
} hi_hdmi_infoframe_unit;
成员
| 成员名称 | 描述 |
|---|---|
| avi_infoframe | 显示信息帧单元。 |
| audio_infoframe | 音频信息帧单元。 |
| vendor_spec_infoframe | 供应商定制信息帧单元。当前版本不支持。 |
父主题: HDMI外设
hi_hdmi_infoframe
说明
定义HDMI输出信息帧结构体。
定义
typedef struct {
hi_hdmi_infoframe_type infoframe_type;
hi_hdmi_infoframe_unit infoframe_unit;
} hi_hdmi_infoframe;
成员
| 成员名称 | 描述 |
|---|---|
| infoframe_type | 信息帧类型,仅支持HI_INFOFRAME_TYPE_AUDIO和HI_INFOFRAME_TYPE_AVI信息帧。 |
| infoframe_unit | 信息帧单元(内容)结构体。 |
父主题: HDMI外设
hi_vpc_chn
说明
描述图片处理通道号。
定义
typedef hi_s32 hi_vpc_chn;
父主题: VPC图像处理
hi_vpc_pic_info
说明
图像信息结构体,用来描述VPC功能输入和输出图片信息。
定义
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_vpc_pic_info;
成员
| 成员名称 | 描述 |
|---|---|
| picture_address | 存放图片数据的Device地址。 |
| picture_buffer_size | 存放图片数据的缓冲区大小。 |
| picture_width | 图片真实宽。 |
| picture_height | 图片真实高。 |
| picture_width_stride | 图片宽stride。 |
| picture_height_stride | 图片高stride。 |
| picture_format | 目标图片的格式。 |
父主题: VPC图像处理
hi_vpc_crop_region
说明
VPC抠图功能需要的参数。
定义
typedef struct {
hi_u32 top_offset;
hi_u32 left_offset;
hi_u32 crop_width;
hi_u32 crop_height;
} hi_vpc_crop_region;
成员
| 成员名称 | 描述 |
|---|---|
| top_offset | 上偏移。 |
| left_offset | 左偏移。 |
| crop_width | 抠图区域宽。 |
| crop_height | 抠图区域高。 |
父主题: VPC图像处理
hi_vpc_resize_info
说明
VPC缩放功能需要的参数。
定义
typedef struct {
hi_u32 resize_width;
hi_u32 resize_height;
hi_u32 interpolation;
} hi_vpc_resize_info;
成员
| 成员名称 | 描述 |
|---|---|
| resize_width | 缩放之后的宽。 |
| resize_height | 缩放之后的高。 |
| interpolation | 缩放算法。 Atlas 200/500 A2推理产品,支持如下缩放算法: - 0:业界通用的Bilinear算法(与OpenCV-3.4.2版本算法的计算结果相同) - 1:业界通用的Nearest neighbor 算法(与OpenCV-3.4.2版本算法的计算结果相同) |
父主题: VPC图像处理
在线提单