hi_transform_config

Function

Defines the affine transformation, perspective transformation, or remapping configuration.

Definition

typedef struct {
    hi_u32 interpolation;
    hi_vpc_bord_type  border_type;
    hi_vpc_scalar    scalar_value;
} hi_transform_config;

For details about basic data type hi_u32, see Basic Data Types.

Members

Member

Description

interpolation

Resizing algorithm. The options are as follows:

  • 0: the conventional bilinear algorithm
  • 1: the conventional nearest neighbor algorithm

border_type

Border making type. For details, see hi_vpc_bord_type.

The options are as follows:

  • 0: fixed value of the register
  • 1: border replication mode

scalar_value

Pixel value for image padding. Only three channels are supported. For details, see hi_vpc_scalar.

If the input image format is YUV400, val[0] stores the Y component. val[1], val[2], and val[3] are reserved and need to be initialized to 0.