public class SimpleOutputBuffer extends OutputBuffer
SimpleDecoder
output.Modifier and Type | Field and Description |
---|---|
ByteBuffer |
data |
skippedOutputBufferCount, timeUs
Constructor and Description |
---|
SimpleOutputBuffer(SimpleDecoder<?,SimpleOutputBuffer,?> owner) |
Modifier and Type | Method and 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, isDecodeOnly, isEndOfStream, isKeyFrame, setFlags
public ByteBuffer data
public SimpleOutputBuffer(SimpleDecoder<?,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()
Buffer
public void release()
OutputBuffer
release
in class OutputBuffer