Back to Exoplayer

SurfaceInfo (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/util/SurfaceInfo.html

latest4.3 KB
Original Source

Package com.google.android.exoplayer2.util

Class SurfaceInfo


[@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.

Field Summary

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. |

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. |

- 

Methods inherited from class java.lang.Object

clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

Field Detail

- 

surface

public final[Surface](https://developer.android.com/reference/android/view/Surface.html "class or interface in android.view")surface

Deprecated.

The Surface.

- 

width

public final int width

Deprecated.

The width of frames rendered to the surface, in pixels.

- 

height

public final int height

Deprecated.

The height of frames rendered to the surface, in pixels.

- 

orientationDegrees

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.

Constructor Detail

- 

SurfaceInfo

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.

- 

SurfaceInfo

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.

Method Detail

- 

equals

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

- 

hashCode

public int hashCode()

Deprecated. Overrides:hashCode in class Object