hbVPRotate

typedef enum {
  HB_VP_ROTATE_90_CLOCKWISE = 0,
  HB_VP_ROTATE_180_CLOCKWISE,
  HB_VP_ROTATE_90_COUNTERCLOCKWISE,
} hbVPRotateDegree;

Rotate operator parameter.

  • Member

    Member NameDescription
    HB_VP_ROTATE_90_CLOCKWISERotate 90 degrees clockwise.
    HB_VP_ROTATE_180_CLOCKWISERotate 180 degrees clockwise.
    HB_VP_ROTATE_90_COUNTERCLOCKWISERotate 90 degrees counterclockwise.
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.