hbVPRoiResize

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

Parameters of the RoiResize operator.

  • Member

    Member NameDescription
    interpolationInterpolation types support the NEAREST and LINEAR types in hbVPInterpolationType.
    paddingValue[4]Padding values, each channel corresponds to one value, filled according to the actual usage of the channel. The value range is from 0 to the maximum value of the corresponding data type.
int32_t hbVPRoiResize(hbUCPTaskHandle_t *taskHandle, 
                      hbVPImage *dstImg, 
                      hbVPImage const *srcImg,
                      hbVPRoi const *roi,
                      hbVPRoiResizeParam const *roiResizeParam);

The API for calling the RoiResize, when the image format is NV12, the effective scaling range of its length and width is [1/4, 4], and when it is other supported formats, the effective scaling range of its length and width is [1/32, 32]. Both the minimum width and height of the image are 2 pixels.

  • 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, format supports Y and nv12 when type is U8C1, format supports rgb_p and bgr_p when type is S16C1.
    • [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.