跳到主要内容

hi_point_pair_info

hi_vpc_workspace_param

说明

定义设置系统内部临时缓存相关的参数结构体。

定义

type struct {
hi_workspace_func func;
hi_u32 max_source_pic_width;
hi_u32 max_source_pic_height;
hi_u32 max_dest_pic_width;
hi_u32 max_dest_pic_height;
hi_u64 reserved;
} hi_vpc_workspace_param;

成员

Atlas 200/500 A2推理产品,输入、输出图片分辨率的取值范围为:10*6~4096*8192。

参数名输入/输出说明
func输入指定为哪种功能申请临时缓存。
max_source_pic_width输入输入图片的最大宽度。
max_source_pic_height输入输入图片的最大高度。
max_dest_pic_width输入输出图片的最大宽度。
max_dest_pic_height输入输出图片的最大高度。
reserved输入预留参数,为保证后续版本兼容性,请务必使用memset结构体方式进行清零初始化,在代码中必须避免显式对reserved字段进行访问。

父主题: VPC图像处理

hi_workspace_func

说明

定义需申请临时缓存的功能枚举。

定义

typedef enum {
REMAP = 0,
AFFINE,
} hi_workspace_func;

父主题: VPC图像处理

hi_remap_lut

说明

定义像素位置重映射表信息。

定义

typedef struct {
hi_u32 src_pic_width;
hi_u32 src_pic_height;
hi_u32 dest_pic_width;
hi_u32 dest_pic_height;
hi_void *lut;
hi_u32 lut_size;
hi_u64 reserved;
} hi_remap_lut;

成员

Atlas 200/500 A2推理产品,输入、输出图片分辨率的取值范围为:10*6~4096*8192。

成员名称描述
src_pic_width输入图片宽度。
src_pic_height输入图片高度。
dest_pic_width输出图片宽度。
dest_pic_height输出图片高度。
lut_size像素位置重映射表的内存大小,单位Byte。 可调用hi_mpi_vpc_get_lut_mem_size接口获取内存大小。
lut像素位置重映射表的内存地址指针。 该内存需由用户提前调用hi_mpi_dvpp_malloc接口申请。
reserved预留参数,为保证后续版本兼容性,请务必使用memset结构体方式进行清零初始化,在代码中必须避免显式对reserved字段进行访问。

父主题: VPC图像处理

hi_point_pair_info

说明

定义输入、输出图片中的像素点坐标信息的结构体。

定义

typedef struct {
hi_float_point src_point[4];
hi_u32 src_point_count;
hi_float_point dest_point[4];
hi_u32 dest_point_count;
} hi_point_pair_info;

成员

成员名称描述
src_point输入图片像素点坐标。
src_point_count输入图片像素点坐标数量。
dest_point输出图片像素点坐标。
dest_point_count输出图片像素点坐标数量。

父主题: VPC图像处理

hi_float_point

说明

定义坐标信息的结构体。

定义

typedef struct {
hi_float x;
hi_float y;
} hi_float_point;

成员

成员名称描述
x像素点x坐标。
y像素点y坐标。

父主题: VPC图像处理

hi_map_param

说明

定义用户原始map表信息的结构体。

定义

typedef struct {
hi_void *map1;
hi_void *map2;
hi_u32 map_size;
hi_u32 src_pic_width;
hi_u32 src_pic_height;
hi_u32 dest_pic_width;
hi_u32 dest_pic_height;
hi_u64 reserved;
} hi_map_param;

成员

成员名称描述
map1Remap变换使用的map1表, 表示(x,y)坐标的x,类型为hi_float, 大小为: dest_pic_width * dest_pic_height *sizeof(hi_float)
map2Remap变换使用的map2表, 表示(x,y)坐标的y,类型为hi_float, 大小为: dest_pic_width * dest_pic_height *sizeof(hi_float)
map_sizemap1或map2的内存大小,map1表和map2表的内存大小一样,单位Byte。
src_pic_widthmap表对应的输入图片的宽度。
src_pic_heightmap表对应的输入图片的高度。
dest_pic_widthmap表对应的输出图像的宽度。
dest_pic_heightmap表对应的输出图像的高度。
reserved预留参数,为保证后续版本兼容性,请务必使用memset结构体方式进行清零初始化,在代码中必须避免显式对reserved字段进行访问。

父主题: VPC图像处理

hi_warp_transform_param

说明

定义Remap变换参数结构体。

定义

typedef struct {
hi_vpc_pic_info src;
hi_vpc_pic_info dst;
hi_transform_config transform_config;
} hi_warp_transform_param;

成员

成员名称描述
src输入图片信息
dst输出图片信息。
transform_config仿射/透视/Remap变换配置信息。

父主题: VPC图像处理

在线提单