hi_vpc_crop_resize_resize_paste_region
Function
Defines the parameters for VPC cropping, resizing, and pasting to a specific area. Two resizing operations are supported.
Definition
typedef struct {
hi_vpc_pic_info dest_pic_info;
hi_vpc_crop_region crop_region;
hi_vpc_resize_info resize_info1;
hi_vpc_resize_info resize_info2;
hi_u32 dest_top_offset;
hi_u32 dest_left_offset;
hi_u32 reserved[2];
} hi_vpc_crop_resize_resize_paste_region;
For details about basic data type hi_u32, see Basic Data Types.
Members
Member |
Description |
|---|---|
dest_pic_info |
Information about the destination image. For details, see hi_vpc_pic_info. |
crop_region |
Information about the crop ROI. For details, see hi_vpc_crop_region. |
resize_info1 |
Information about the first image resizing. For details, see hi_vpc_resize_info. The width and height alignment requirements of the resized image must be the same as those of the output image. For details, see VPC Restrictions. |
resize_info2 |
Information about the second image resizing. For details, see hi_vpc_resize_info. The width and height alignment requirements of the resized image must be the same as those of the output image. For details, see VPC Restrictions. |
dest_top_offset |
Top offset of the paste ROI on the destination image. |
dest_left_offset |
Left offset of the paste ROI on the destination image. Note: On the |
reserved |
Reserved. To ensure compatibility in later versions, use the memset structure for resetting and initialization. Do not explicitly access the reserved field in the code. |