hi_vpc_crop_resize_resize_paste_region

Description

Crops, resizes, and pastes an ROI to a specific area. Two resizing operations are supported.

Prototype

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;

Members

Member

Description

dest_pic_info

Information about the destination image.

crop_region

Information about the crop ROI.

resize_info1

Information about the first image resizing.

The width and height alignment requirements of the resized image must be the same as those of the output image. For details, see Table 2.

resize_info2

Information about the second image resizing.

The width and height alignment requirements of the resized image must be the same as those of the output image. For details, see Table 2.

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.

reserved

Reserved. To ensure compatibility in later versions, use the memset struct for resetting and initialization. Do not explicitly access the reserved field in the code.