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; // First bilinear core resize info
    hi_vpc_resize_info resize_info2; // Second bilinear core resize info
    hi_u32 dest_top_offset;
    hi_u32 dest_left_offset;
    hi_u32 reserved[2]; // RW; reserved init 0
} 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.

resize_info2

Information about the second image resizing.

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: The left offset is 16-pixel aligned.

reserved

This parameter is reserved and must be initialized to 0 to ensure compatibility in later versions.