Class SurfaceInfo
- java.lang.Object
-
- com.google.android.exoplayer2.util.SurfaceInfo
-
-
Field Summary
Fields Modifier and Type Field Description int
height
The height of frames rendered to thesurface
, in pixels.int
orientationDegrees
A counter-clockwise rotation to apply to frames before rendering them to thesurface
.Surface
surface
TheSurface
.int
width
The width of frames rendered to thesurface
, in pixels.
-
Constructor Summary
Constructors Constructor Description SurfaceInfo(Surface surface, int width, int height)
Creates a new instance.SurfaceInfo(Surface surface, int width, int height, int orientationDegrees)
Creates a new instance.
-
-
-
Field Detail
-
width
public final int width
The width of frames rendered to thesurface
, in pixels.
-
height
public final int height
The height of frames rendered to thesurface
, in pixels.
-
orientationDegrees
public final int orientationDegrees
A counter-clockwise rotation to apply to frames before rendering them to thesurface
.Must be 0, 90, 180, or 270 degrees. Default is 0.
-
-