Package com.sinch.android.rtc.video
Class VideoFrame.DefaultVideoFrame
- java.lang.Object
-
- com.sinch.android.rtc.video.VideoFrame.DefaultVideoFrame
-
- All Implemented Interfaces:
VideoFrame
- Enclosing interface:
- VideoFrame
public static class VideoFrame.DefaultVideoFrame extends java.lang.Object implements VideoFrame
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.sinch.android.rtc.video.VideoFrame
VideoFrame.DefaultVideoFrame
-
-
Constructor Summary
Constructors Constructor Description DefaultVideoFrame(java.nio.ByteBuffer[] yuvPlanes, int[] yuvStrides, int width, int height, int rotationDegreesCW, int colorFormat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColorFormat()
int
getRotation()
int
height()
int
width()
java.nio.ByteBuffer[]
yuvPlanes()
int[]
yuvStrides()
-
-
-
Method Detail
-
width
public int width()
- Specified by:
width
in interfaceVideoFrame
- Returns:
- The frame width.
-
height
public int height()
- Specified by:
height
in interfaceVideoFrame
- Returns:
- The frame height.
-
yuvStrides
public int[] yuvStrides()
- Specified by:
yuvStrides
in interfaceVideoFrame
- Returns:
- The frame strides for each plane.
-
yuvPlanes
public java.nio.ByteBuffer[] yuvPlanes()
- Specified by:
yuvPlanes
in interfaceVideoFrame
- Returns:
- The Y, U and V planes array.
-
getColorFormat
public int getColorFormat()
- Specified by:
getColorFormat
in interfaceVideoFrame
- Returns:
- color format of YUV frame as in
ImageFormat
.
-
getRotation
public int getRotation()
- Specified by:
getRotation
in interfaceVideoFrame
- Returns:
- the degree that the frame must be rotated clockwisely to be rendered correctly.
-
-