public class SimpleOutputBuffer extends OutputBuffer
SimpleDecoder output.| Modifier and Type | Field and Description |
|---|---|
java.nio.ByteBuffer |
data |
skippedOutputBufferCount, timeUs| Constructor and Description |
|---|
SimpleOutputBuffer(SimpleDecoder<?,SimpleOutputBuffer,?> owner) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the buffer.
|
java.nio.ByteBuffer |
init(long timeUs,
int size)
Initializes the buffer.
|
void |
release()
Releases the output buffer for reuse.
|
addFlag, clearFlag, getFlag, isDecodeOnly, isEndOfStream, isKeyFrame, setFlagspublic SimpleOutputBuffer(SimpleDecoder<?,SimpleOutputBuffer,?> owner)
public java.nio.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