hi_vpc_resize_info

Description

Defines the parameters for VPC resizing.

Prototype

typedef struct {
    hi_u32 resize_width;
    hi_u32 resize_height;
    hi_u32 interpolation;
} hi_vpc_resize_info;

Members

Member

Description

resize_width

Destination width.

resize_height

Destination height.

interpolation

Resizing algorithm.

The following resizing algorithms are supported:
  • 0: conventional bilinear algorithm, whose compute process is close to that of OpenCV. When the input and output images are both in RGB format and the resizing range is [1/32, 512], the maximum value difference of a single pixel from OpenCV is ±1.
  • 1: conventional nearest neighbor algorithm, whose compute process is close to that of OpenCV.