docs/doc/reference/com/google/android/exoplayer2/effect/TextureOverlay.html
Package com.google.android.exoplayer2.effect
Direct Known Subclasses:BitmapOverlay
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public abstract classTextureOverlayextends[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.
Creates overlays from OpenGL textures.
Constructors | Constructor | Description |
| --- | --- |
| TextureOverlay() |
Deprecated.
|
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| void | configure(Size videoSize) |
Deprecated.
Set up resources for the overlay given the input video’s dimensions.
|
| OverlaySettings | getOverlaySettings(long presentationTimeUs) |
Deprecated.
Returns the OverlaySettings controlling how the overlay is displayed at the specified timestamp.
|
| abstract int | getTextureId(long presentationTimeUs) |
Deprecated.
Returns the overlay texture identifier displayed at the specified timestamp.
|
| abstract Size | getTextureSize(long presentationTimeUs) |
Deprecated.
Returns the pixel width and height of the overlay texture displayed at the specified timestamp. |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public TextureOverlay()
Deprecated.
-
public abstract int getTextureId(long presentationTimeUs)
throws[VideoFrameProcessingException](../util/VideoFrameProcessingException.html "class in com.google.android.exoplayer2.util")
Deprecated.
Returns the overlay texture identifier displayed at the specified timestamp.
Parameters:presentationTimeUs - The presentation timestamp of the current frame, in microseconds.Throws:VideoFrameProcessingException - If an error occurs while processing or drawing the frame.
-
public abstract[Size](../util/Size.html "class in com.google.android.exoplayer2.util")getTextureSize(long presentationTimeUs)
Deprecated.
Returns the pixel width and height of the overlay texture displayed at the specified timestamp.
This method must be called after getTextureId(long).
Parameters:presentationTimeUs - The presentation timestamp of the current frame, in microseconds.
-
public void configure([Size](../util/Size.html "class in com.google.android.exoplayer2.util")videoSize)
Deprecated.
Set up resources for the overlay given the input video’s dimensions.
This method will be called before drawing the first frame and before drawing subsequent frames with different input dimensions.
Parameters:videoSize - The width and height of the input video, in pixels.
-
public[OverlaySettings](OverlaySettings.html "class in com.google.android.exoplayer2.effect")getOverlaySettings(long presentationTimeUs)
Deprecated.
Returns the OverlaySettings controlling how the overlay is displayed at the specified timestamp.
Parameters:presentationTimeUs - The presentation timestamp of the current frame, in microseconds.