hbVPResize

int32_t hbVPResize(hbUCPTaskHandle_t *taskHandle, 
                   hbVPImage *dstImg, 
                   hbVPImage const *srcImg,
                   hbVPInterpolationType interpolation);

The API for calling the Resize. When the image format is Y, the effective scaling range of the length and width is [1/4, 4], and when the image format is NV12, the effective scaling range of the length and width is (1/4, 4].

  • 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 picture size can be calculated from the input picture and the zoom ratio.
    • [in] srcImg The input picture type supports U8C1 and format supports Y and nv12.
    • [in] interpolation Operator interpolation type.
  • Return Value
    • Return 0 means the API was successfully executed, otherwise the execution failed.