hi_transform_config

Description

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

Prototype

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

Members

Member

Description

interpolation

Resizing algorithm. The options are as follows:

  • 0: the conventional bilinear algorithm
  • 1: the conventional nearest neighbor algorithm
  • 2: the conventional bicubic algorithm.

border_type

Border making 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.

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.