Class SimpleDecoderOutputBuffer


  • @Deprecated
    public class SimpleDecoderOutputBuffer
    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.
    Buffer for SimpleDecoder output.
    • Field Detail

      • data

        @Nullable
        public ByteBuffer data
        Deprecated.
    • Method Detail

      • init

        public ByteBuffer init​(long timeUs,
                               int size)
        Deprecated.
        Initializes the buffer.
        Parameters:
        timeUs - The presentation timestamp for the buffer, in microseconds.
        size - An upper bound on the size of the data that will be written to the buffer.
        Returns:
        The data buffer, for convenience.
      • clear

        public void clear()
        Deprecated.
        Description copied from class: Buffer
        Clears the buffer.
        Overrides:
        clear in class Buffer
      • 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