ImageOutputBuffer


@UnstableApi
abstract class ImageOutputBuffer : DecoderOutputBuffer


Output buffer for ImageDecoder instances.

Summary

Public constructors

Public functions

Unit

Clears the buffer.

Public properties

Bitmap?

The decoded Bitmap.

Inherited functions

From androidx.media3.decoder.Buffer
Unit

Adds the flag to this buffer's flags.

Unit

Removes the flag from this buffer's flags, if it is set.

Boolean

Returns whether the specified flag has been set on this buffer.

Boolean

Returns whether the BUFFER_FLAG_HAS_SUPPLEMENTAL_DATA flag is set.

Boolean

Returns whether the BUFFER_FLAG_END_OF_STREAM flag is set.

Boolean

Returns whether the BUFFER_FLAG_FIRST_SAMPLE flag is set.

Boolean

Returns whether the BUFFER_FLAG_KEY_FRAME flag is set.

Boolean

Returns whether the BUFFER_FLAG_LAST_SAMPLE flag is set.

Boolean

Returns whether the BUFFER_FLAG_NOT_DEPENDED_ON flag is set.

Unit

Replaces this buffer's flags with flags.

From androidx.media3.decoder.DecoderOutputBuffer
abstract Unit

Releases the output buffer for reuse.

Inherited properties

From androidx.media3.decoder.DecoderOutputBuffer
Boolean

Whether this buffer should be skipped, usually because the decoding process generated no data or invalid data.

Int

The number of buffers immediately prior to this one that were skipped in the Decoder.

Long

The presentation timestamp for the buffer, in microseconds.

Public constructors

ImageOutputBuffer

ImageOutputBuffer()

Public functions

clear

@CallSuper
fun clear(): Unit

Clears the buffer.

Public properties

bitmap

val bitmapBitmap?

The decoded Bitmap.