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 aSurfaceand supporting information.
-
-
Field Summary
Fields Modifier and Type Field Description intheightDeprecated.The height of frames rendered to thesurface, in pixels.intorientationDegreesDeprecated.A counter-clockwise rotation to apply to frames before rendering them to thesurface.SurfacesurfaceDeprecated.TheSurface.intwidthDeprecated.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 booleanequals(Object o)Deprecated.inthashCode()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.
-
-