hbVPRotate

typedef enum { HB_VP_ROTATE_90_CLOCKWISE = 0, // Rotate 90 degrees clockwise HB_VP_ROTATE_180_CLOCKWISE, // Rotate 180 degrees clockwise HB_VP_ROTATE_90_COUNTERCLOCKWISE,// Rotate 90 degrees counterclockwise } hbVPRotateDegree;

Rotate operator parameter。

int32_t hbVPRotate(hbUCPTaskHandle_t *taskHandle, hbVPImage *dstImg, hbVPImage const *srcImg, hbVPRotateDegree rotateDegree);

The API for calling the Rotate.

  • Parameter
    • [out] taskHandle Task handles are responsible for the interaction of the operator with the UCP architecture.
    • [out] dstImg The output picture, type and format are the same as the input picture, and its size is decided according to the rotation angle and the size of the input picture.
    • [in] srcImg The input picture type supports U8C1 and format supports Y and nv12.
    • [in] rotateDegree Operator parameter, picture rotation angle.
  • Return Value
    • Return 0 means the API was successfully executed, otherwise the execution failed.