hi_vpc_crop_resize_border_region
Description
Defines the VPC cropping, resizing, and border making information.
Prototype
typedef struct {
hi_vpc_pic_info dest_pic_info;
hi_vpc_crop_region crop_region;
hi_vpc_resize_info resize_info;
hi_u32 dest_top_offset;
hi_u32 dest_left_offset;
hi_vpc_bord_type border_type;
hi_vpc_scalar scalar_value;
} hi_vpc_crop_resize_border_region;
Members
Member |
Description |
|---|---|
dest_pic_info |
Information about the destination image. |
crop_region |
Information about the crop ROI. |
resize_info |
Image cropping and resizing information. |
dest_top_offset |
Top offset of the paste ROI. |
dest_left_offset |
Left offset of the paste ROI. |
border_type |
Border type. |
scalar_value |
Border color. Valid only when the border type is HI_BORDER_CONSTANT. You can set the values of the RGB or YUV components in sequence. If both the input and output are in YUV format, the YUV component values are used. Otherwise, the RGB component values are used. |
Restrictions
By default, the cropped image is converted into the format of the destination image before it is resized and padded to the size of the destination image.