class VideoSizeCalculatorUtil
class VideoSizeCalculatorUtil
|
Description:
Utility class for calculating the appropriate size of the video based on screen type and video type defined by aircraft's mode and resolution settings
Class Members:
method setListener
void setListener(VideoSizeListener listener)
|
Description:
Set a listener of the VideoSizeListener interface.
Set Video Type By Size
method
method setVideoTypeBySize
void setVideoTypeBySize(int videoWidth, int videoHeight, int cameraIndex)
|
Description:
Set Video type by video size and camera index.
int videoWidth | Width of the video as received from the DJICodecManager. |
int videoHeight | Height of the video as received from the DJICodecManager. |
int cameraIndex | Index of the camera which is the source of the video. |
Set Video Is Rotated
method
method setVideoIsRotated
void setVideoIsRotated(boolean isRotated)
|
Description:
Set video orientation.
boolean isRotated | true for portrait orientation and False for landscape. |
Set Screen Type By Size
method
method setScreenTypeBySize
void setScreenTypeBySize(int viewWidth, int viewHeight)
|
Description:
Set screen type by screen size using the view width and height.
int viewWidth | Width of the view in which the video is being displayed. |
int viewHeight | Height of the view in which the video is being displayed. |
Calculate Video Size
method
method calculateVideoSize
void calculateVideoSize()
|
Description:
Calculate the video size with the set options.