docs/doc/reference/com/google/android/exoplayer2/decoder/VideoDecoderOutputBuffer.html
Package com.google.android.exoplayer2.decoder
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public classVideoDecoderOutputBufferextends[DecoderOutputBuffer](DecoderOutputBuffer.html "class in com.google.android.exoplayer2.decoder")
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.
Video decoder output buffer containing video frame data.
-
DecoderOutputBuffer.Owner<S extends DecoderOutputBuffer>
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| int | colorspace |
Deprecated.
|
| static int | COLORSPACE_BT2020 |
Deprecated.
|
| static int | COLORSPACE_BT601 |
Deprecated.
|
| static int | COLORSPACE_BT709 |
Deprecated.
|
| static int | COLORSPACE_UNKNOWN |
Deprecated.
|
| ByteBuffer | data |
Deprecated.
RGB buffer for RGB mode.
|
| int | decoderPrivate |
Deprecated.
Decoder private data.
|
| Format | format |
Deprecated.
The format of the input from which this output buffer was decoded.
|
| int | height |
Deprecated.
|
| @com.google.android.exoplayer2.C.VideoOutputMode int | mode |
Deprecated.
Output mode.
|
| ByteBuffer | supplementalData |
Deprecated.
Supplemental data related to the output frame, if Buffer.hasSupplementalData() returns true.
|
| int | width |
Deprecated.
|
| ByteBuffer[] | yuvPlanes |
Deprecated.
YUV planes for YUV mode.
|
| int[] | yuvStrides |
Deprecated.
|
-
skippedOutputBufferCount, timeUs
Constructors | Constructor | Description |
| --- | --- |
| VideoDecoderOutputBuffer(DecoderOutputBuffer.Owner<VideoDecoderOutputBuffer> owner) |
Deprecated.
Creates VideoDecoderOutputBuffer. |
All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| void | init(long timeUs, @com.google.android.exoplayer2.C.VideoOutputMode int mode, ByteBuffer supplementalData) |
Deprecated.
Initializes the buffer.
|
| void | initForPrivateFrame(int width, int height) |
Deprecated.
Configures the buffer for the given frame dimensions when passing actual frame data via decoderPrivate.
|
| boolean | initForYuvFrame(int width, int height, int yStride, int uvStride, int colorspace) |
Deprecated.
Resizes the buffer based on the given stride.
|
| void | release() |
Deprecated.
Releases the output buffer for reuse. |
-
addFlag, clear, clearFlag, getFlag, hasSupplementalData, isDecodeOnly, isEndOfStream, isFirstSample, isKeyFrame, isLastSample, setFlags
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public static final int COLORSPACE_UNKNOWN
Deprecated. See Also:Constant Field Values
-
public static final int COLORSPACE_BT601
Deprecated. See Also:Constant Field Values
-
public static final int COLORSPACE_BT709
Deprecated. See Also:Constant Field Values
-
public static final int COLORSPACE_BT2020
Deprecated. See Also:Constant Field Values
-
public int decoderPrivate
Deprecated.
Decoder private data. Used from native code.
-
public @com.google.android.exoplayer2.C.VideoOutputMode int mode
Deprecated.
Output mode.
-
@Nullable
public[ByteBuffer](https://developer.android.com/reference/java/nio/ByteBuffer.html "class or interface in java.nio")data
Deprecated.
RGB buffer for RGB mode.
-
public int width
Deprecated.
-
public int height
Deprecated.
-
@Nullable
public[Format](../Format.html "class in com.google.android.exoplayer2")format
Deprecated.
The format of the input from which this output buffer was decoded.
-
@Nullable
public[ByteBuffer](https://developer.android.com/reference/java/nio/ByteBuffer.html "class or interface in java.nio")[] yuvPlanes
Deprecated.
YUV planes for YUV mode.
-
@Nullable
public int[] yuvStrides
Deprecated.
-
public int colorspace
Deprecated.
-
@Nullable
public[ByteBuffer](https://developer.android.com/reference/java/nio/ByteBuffer.html "class or interface in java.nio")supplementalData
Deprecated.
Supplemental data related to the output frame, if Buffer.hasSupplementalData() returns true. If present, the buffer is populated with supplemental data from position 0 to its limit.
-
public VideoDecoderOutputBuffer([DecoderOutputBuffer.Owner](DecoderOutputBuffer.Owner.html "interface in com.google.android.exoplayer2.decoder")<[VideoDecoderOutputBuffer](VideoDecoderOutputBuffer.html "class in com.google.android.exoplayer2.decoder")> owner)
Deprecated.
Creates VideoDecoderOutputBuffer.
Parameters:owner - Buffer owner.
-
public void release()
Deprecated.
Description copied from class: DecoderOutputBuffer
Releases the output buffer for reuse. Must be called when the buffer is no longer needed.
Specified by:release in class DecoderOutputBuffer
-
public void init(long timeUs,
@com.google.android.exoplayer2.C.VideoOutputMode int mode,
@Nullable[ByteBuffer](https://developer.android.com/reference/java/nio/ByteBuffer.html "class or interface in java.nio")supplementalData)
Deprecated.
Initializes the buffer.
Parameters:timeUs - The presentation timestamp for the buffer, in microseconds.mode - The output mode. One of C.VIDEO_OUTPUT_MODE_NONE, C.VIDEO_OUTPUT_MODE_YUV and C.VIDEO_OUTPUT_MODE_SURFACE_YUV.supplementalData - Supplemental data associated with the frame, or null if not present. It is safe to reuse the provided buffer after this method returns.
-
public boolean initForYuvFrame(int width,
int height,
int yStride,
int uvStride,
int colorspace)
Deprecated.
Resizes the buffer based on the given stride. Called via JNI after decoding completes. Returns:Whether the buffer was resized successfully.
-
public void initForPrivateFrame(int width,
int height)
Deprecated.
Configures the buffer for the given frame dimensions when passing actual frame data via decoderPrivate. Called via JNI after decoding completes.