hi_vpc_crop_resize_paste_region

Function

Defines the parameters for VPC cropping, resizing, and pasting.

Definition

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_crop_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_info

Image resizing information. For details, see hi_vpc_resize_info.

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 Atlas inference products, the left offset is 16-pixel aligned.