hbVPWarpAffine

typedef struct { float transformMatrix[6]; int8_t interpolation; int8_t borderType; uint8_t borderValue; int8_t isInverse; } hbVPAffineParam;

WarpAffine operator parameter.

  • Member

    Member NameDescription
    transformMatrix[6]WarpAffine transformation matrix (dst->src), 2X3 matrix.
    interpolationInterpolation types in WarpAffine, only support NEAREST and LINEAR types in hbVPInterpolationType.
    borderTypeReserved parameter.
    borderValueReserved parameter.
    isInverseFlag whether transformMatrix is an inverse matrix, non-zero means inverse matrix (src = M * dst), 0 means positive matrix (dst = M * src)
int32_t hbVPWarpAffine(hbUCPTaskHandle_t *taskHandle, hbVPImage *dstImg, hbVPImage const *srcImg, hbVPAffineParam const *affineParam);

The API calling the WarpAffine.

  • Parameter
    • [out] taskHandle Task handles are responsible for the interaction of the operator with the UCP architecture.
    • [out] dstImg The output picture, type, format and size are the same as the input picture, the dimensional size is calculated from the conversion matrix.
    • [in] srcImg The input picture type supports U8C1 and format supports Y and nv12.
    • [in] affineParam Operator parameter pointer.
  • Return Value
    • Return 0 means the API was successfully executed, otherwise the execution failed.