SimpleDecoderOutputBuffer
@UnstableApi
class SimpleDecoderOutputBuffer : DecoderOutputBuffer
| kotlin.Any | |||
| ↳ | androidx.media3.decoder.Buffer | ||
| ↳ | androidx.media3.decoder.DecoderOutputBuffer | ||
| ↳ | androidx.media3.decoder.SimpleDecoderOutputBuffer |
Buffer for SimpleDecoder output.
Summary
Public constructors |
|---|
Public functions |
|
|---|---|
Unit |
clear()Clears the buffer. |
ByteBuffer! |
Grows the buffer to a new size. |
ByteBuffer! |
Initializes the buffer. |
Unit |
release()Releases the output buffer for reuse. |
Public properties |
|
|---|---|
ByteBuffer? |
Inherited functions |
||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Inherited properties |
|---|
Public constructors
SimpleDecoderOutputBuffer
SimpleDecoderOutputBuffer(
owner: DecoderOutputBuffer.Owner<SimpleDecoderOutputBuffer!>!
)
Public functions
grow
fun grow(newSize: Int): ByteBuffer!
Grows the buffer to a new size.
Existing data is copied to the new buffer, and position is preserved.
| Parameters | |
|---|---|
newSize: Int |
New size of the buffer. |
| Returns | |
|---|---|
ByteBuffer! |
The |
init
fun init(timeUs: Long, size: Int): ByteBuffer!
Initializes the buffer.
| Parameters | |
|---|---|
timeUs: Long |
The presentation timestamp for the buffer, in microseconds. |
size: Int |
An upper bound on the size of the data that will be written to the buffer. |
| Returns | |
|---|---|
ByteBuffer! |
The |