docs/doc/reference/com/google/android/exoplayer2/video/VideoSize.html
Package com.google.android.exoplayer2.video
All Implemented Interfaces:Bundleable
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classVideoSizeextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[Bundleable](../Bundleable.html "interface in com.google.android.exoplayer2")
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.
Represents the video size.
-
Bundleable.Creator<T extends Bundleable>
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| static Bundleable.Creator<VideoSize> | CREATOR |
Deprecated.
|
| int | height |
Deprecated.
The video height in pixels, 0 when unknown.
|
| float | pixelWidthHeightRatio |
Deprecated.
The width to height ratio of each pixel, 1 if unknown.
|
| int | unappliedRotationDegrees |
Deprecated.
Clockwise rotation in degrees that the application should apply for the video for it to be rendered in the correct orientation.
|
| static VideoSize | UNKNOWN |
Deprecated.
|
| int | width |
Deprecated.
The video width in pixels, 0 when unknown. |
Constructors | Constructor | Description |
| --- | --- |
| VideoSize(int width, int height) |
Deprecated.
Creates a VideoSize without unapplied rotation or anamorphic content.
|
| VideoSize(int width, int height, int unappliedRotationDegrees, float pixelWidthHeightRatio) |
Deprecated.
Creates a new instance. |
All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| boolean | equals(Object obj) |
Deprecated.
|
| int | hashCode() |
Deprecated.
|
| Bundle | toBundle() |
Deprecated.
Returns a Bundle representing the information stored in this object.
|
-
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
public static final[VideoSize](VideoSize.html "class in com.google.android.exoplayer2.video")UNKNOWN
Deprecated.
-
@IntRange(from=0L)
public final int width
Deprecated.
The video width in pixels, 0 when unknown.
-
@IntRange(from=0L)
public final int height
Deprecated.
The video height in pixels, 0 when unknown.
-
@IntRange(from=0L,
to=359L)
public final int unappliedRotationDegrees
Deprecated.
Clockwise rotation in degrees that the application should apply for the video for it to be rendered in the correct orientation.
Is 0 if unknown or if no rotation is needed.
Player should apply video rotation internally, in which case unappliedRotationDegrees is 0. But when a player can't apply the rotation, for example before API level 21, the unapplied rotation is reported by this field for application to handle.
Applications that use TextureView can apply the rotation by calling TextureView.setTransform(android.graphics.Matrix).
-
@FloatRange(from=0.0,
fromInclusive=false)
public final float pixelWidthHeightRatio
Deprecated.
The width to height ratio of each pixel, 1 if unknown.
For the normal case of square pixels this will be equal to 1.0. Different values are indicative of anamorphic content.
-
public static final[Bundleable.Creator](../Bundleable.Creator.html "interface in com.google.android.exoplayer2")<[VideoSize](VideoSize.html "class in com.google.android.exoplayer2.video")> CREATOR
Deprecated.
-
public VideoSize(@IntRange(from=0L)
int width,
@IntRange(from=0L)
int height)
Deprecated.
Creates a VideoSize without unapplied rotation or anamorphic content.
Parameters:width - The video width in pixels.height - The video height in pixels.
-
public VideoSize(@IntRange(from=0L)
int width,
@IntRange(from=0L)
int height,
@IntRange(from=0L,to=359L)
int unappliedRotationDegrees,
@FloatRange(from=0.0,fromInclusive=false)
float pixelWidthHeightRatio)
Deprecated.
Creates a new instance.
Parameters:width - The video width in pixels.height - The video height in pixels.unappliedRotationDegrees - Clockwise rotation in degrees that the application should apply for the video for it to be rendered in the correct orientation. See unappliedRotationDegrees.pixelWidthHeightRatio - The width to height ratio of each pixel. For the normal case of square pixels this will be equal to 1.0. Different values are indicative of anamorphic content.
-
public boolean equals(@Nullable[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")obj)
Deprecated.
Overrides:equals in class Object
-
public int hashCode()
Deprecated.
Overrides:hashCode in class Object
-
public[Bundle](https://developer.android.com/reference/android/os/Bundle.html "class or interface in android.os")toBundle()
Deprecated.
Description copied from interface: Bundleable
Returns a Bundle representing the information stored in this object.
Specified by:toBundle in interface Bundleable