Class SurfaceInfo
- java.lang.Object
-
- com.google.android.exoplayer2.util.SurfaceInfo
-
@Deprecated public final class SurfaceInfo extends Object
Deprecated.com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.Immutable value class for aSurface
and supporting information.
-
-
Field Summary
Fields Modifier and Type Field Description int
height
Deprecated.The height of frames rendered to thesurface
, in pixels.int
orientationDegrees
Deprecated.A counter-clockwise rotation to apply to frames before rendering them to thesurface
.Surface
surface
Deprecated.TheSurface
.int
width
Deprecated.The width of frames rendered to thesurface
, in pixels.
-
Constructor Summary
Constructors Constructor Description SurfaceInfo(Surface surface, int width, int height)
Deprecated.Creates a new instance.SurfaceInfo(Surface surface, int width, int height, int orientationDegrees)
Deprecated.Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object o)
Deprecated.int
hashCode()
Deprecated.
-
-
-
Field Detail
-
width
public final int width
Deprecated.The width of frames rendered to thesurface
, in pixels.
-
height
public final int height
Deprecated.The height of frames rendered to thesurface
, in pixels.
-
orientationDegrees
public final int orientationDegrees
Deprecated.A counter-clockwise rotation to apply to frames before rendering them to thesurface
.Must be 0, 90, 180, or 270 degrees. Default is 0.
-
-