hbVPRoiResize

typedef struct { int8_t interpolation; uint8_t paddingValue[4]; } hbVPRoiResizeParam;

Parameters of the RoiResize operator with an effective scaling range of [0.25, 4] for the length and width.

  • Member

    Member NameDescription
    interpolationInterpolation types support the NEAREST and LINEAR types in hbVPInterpolationType.
    paddingValue[4]Padding values, each channel corresponds to one value, NV12 uses three channels.
int32_t hbVPRoiResize(hbUCPTaskHandle_t *taskHandle, hbVPImage *dstImg, hbVPImage const *srcImg, hbVPRoi const *roi, hbVPRoiResizeParam const *roiResizeParam);

The API for calling the RoiResize.

  • 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.
    • [in] srcImg The input picture type supports U8C1 and format supports Y adn nv12.
    • [in] roi ROI region, the valid range takes the intersection of the ROI region and srcImg.
    • [in] roiResizeParam Operator parameter.
  • Return Value
    • Return 0 means the API was successfully executed, otherwise the execution failed.