docs/doc/reference/com/google/android/exoplayer2/util/SurfaceInfo.html
Package com.google.android.exoplayer2.util
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classSurfaceInfoextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
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 a Surface and supporting information.
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| int | height |
Deprecated.
The height of frames rendered to the surface, in pixels.
|
| int | orientationDegrees |
Deprecated.
A counter-clockwise rotation to apply to frames before rendering them to the surface.
|
| Surface | surface |
Deprecated.
The Surface.
|
| int | width |
Deprecated.
The width of frames rendered to the surface, in pixels.
|
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. |
All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| boolean | equals(Object o) |
Deprecated.
|
| int | hashCode() |
Deprecated.
|
-
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
public final[Surface](https://developer.android.com/reference/android/view/Surface.html "class or interface in android.view")surface
Deprecated.
The Surface.
-
public final int width
Deprecated.
The width of frames rendered to the surface, in pixels.
-
public final int height
Deprecated.
The height of frames rendered to the surface, in pixels.
-
public final int orientationDegrees
Deprecated.
A counter-clockwise rotation to apply to frames before rendering them to the surface.
Must be 0, 90, 180, or 270 degrees. Default is 0.
-
public SurfaceInfo([Surface](https://developer.android.com/reference/android/view/Surface.html "class or interface in android.view")surface,
int width,
int height)
Deprecated.
Creates a new instance.
-
public SurfaceInfo([Surface](https://developer.android.com/reference/android/view/Surface.html "class or interface in android.view")surface,
int width,
int height,
int orientationDegrees)
Deprecated.
Creates a new instance.
-
public boolean equals(@Nullable[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")o)
Deprecated.
Overrides:equals in class Object
-
public int hashCode()
Deprecated.
Overrides:hashCode in class Object