pjsua_vid_win_rotate method

int pjsua_vid_win_rotate(
  1. int wid,
  2. int angle
)

Rotate the video window. This function will change the video orientation and also possibly the video window size (width and height get swapped). This operation is not valid for native windows (pjsua_vid_win_info.is_native =PJ_TRUE), on which native windowing API must be used instead.

@param wid The video window ID. @param angle The rotation angle in degrees, must be multiple of 90. Specify positive value for clockwise rotation or negative value for counter-clockwise rotation.

@return PJ_SUCCESS on success, or the appropriate error code.

Implementation

int pjsua_vid_win_rotate(
  int wid,
  int angle,
) {
  return _pjsua_vid_win_rotate(
    wid,
    angle,
  );
}