public class SimpleOutputBuffer extends OutputBuffer
SimpleDecoder output.OutputBuffer.Owner<S extends OutputBuffer>| Modifier and Type | Field | Description |
|---|---|---|
ByteBuffer |
data |
skippedOutputBufferCount, timeUs| Constructor | Description |
|---|---|
SimpleOutputBuffer(OutputBuffer.Owner<SimpleOutputBuffer> owner) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
Clears the buffer.
|
ByteBuffer |
init(long timeUs,
int size) |
Initializes the buffer.
|
void |
release() |
Releases the output buffer for reuse.
|
addFlag, clearFlag, getFlag, hasSupplementalData, isDecodeOnly, isEndOfStream, isKeyFrame, setFlags@Nullable public ByteBuffer data
public SimpleOutputBuffer(OutputBuffer.Owner<SimpleOutputBuffer> owner)
public ByteBuffer init(long timeUs, int size)
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.data buffer, for convenience.public void clear()
Bufferpublic void release()
OutputBufferrelease in class OutputBuffer