Class VideoDecoderOutputBuffer


  • @Deprecated
    public class VideoDecoderOutputBuffer
    extends DecoderOutputBuffer
    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.
    • Field Detail

      • COLORSPACE_UNKNOWN

        public static final int COLORSPACE_UNKNOWN
        Deprecated.
        See Also:
        Constant Field Values
      • COLORSPACE_BT2020

        public static final int COLORSPACE_BT2020
        Deprecated.
        See Also:
        Constant Field Values
      • decoderPrivate

        public int decoderPrivate
        Deprecated.
        Decoder private data. Used from native code.
      • mode

        public @com.google.android.exoplayer2.C.VideoOutputMode int mode
        Deprecated.
        Output mode.
      • data

        @Nullable
        public ByteBuffer data
        Deprecated.
        RGB buffer for RGB mode.
      • width

        public int width
        Deprecated.
      • height

        public int height
        Deprecated.
      • format

        @Nullable
        public Format format
        Deprecated.
        The format of the input from which this output buffer was decoded.
      • yuvPlanes

        @Nullable
        public ByteBuffer[] yuvPlanes
        Deprecated.
        YUV planes for YUV mode.
      • yuvStrides

        @Nullable
        public int[] yuvStrides
        Deprecated.
      • colorspace

        public int colorspace
        Deprecated.
      • supplementalData

        @Nullable
        public ByteBuffer 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.
    • Method Detail

      • release

        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
      • init

        public void init​(long timeUs,
                         @com.google.android.exoplayer2.C.VideoOutputMode int mode,
                         @Nullable
                         ByteBuffer 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.
      • initForYuvFrame

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

        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.