DecoderInputBuffer, OutputBufferpublic abstract class Buffer extends Object
| Constructor | Description |
|---|---|
Buffer() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addFlag(int flag) |
Adds the
flag to this buffer's flags. |
void |
clear() |
Clears the buffer.
|
void |
clearFlag(int flag) |
Removes the
flag from this buffer's flags, if it is set. |
protected boolean |
getFlag(int flag) |
Returns whether the specified flag has been set on this buffer.
|
boolean |
hasSupplementalData() |
Returns whether the
C.BUFFER_FLAG_HAS_SUPPLEMENTAL_DATA flag is set. |
boolean |
isDecodeOnly() |
Returns whether the
C.BUFFER_FLAG_DECODE_ONLY flag is set. |
boolean |
isEndOfStream() |
Returns whether the
C.BUFFER_FLAG_END_OF_STREAM flag is set. |
boolean |
isKeyFrame() |
Returns whether the
C.BUFFER_FLAG_KEY_FRAME flag is set. |
void |
setFlags(int flags) |
Replaces this buffer's flags with
flags. |
public void clear()
public final boolean isDecodeOnly()
C.BUFFER_FLAG_DECODE_ONLY flag is set.public final boolean isEndOfStream()
C.BUFFER_FLAG_END_OF_STREAM flag is set.public final boolean isKeyFrame()
C.BUFFER_FLAG_KEY_FRAME flag is set.public final boolean hasSupplementalData()
C.BUFFER_FLAG_HAS_SUPPLEMENTAL_DATA flag is set.public final void setFlags(@BufferFlags int flags)
flags.flags - The flags to set, which should be a combination of the C.BUFFER_FLAG_*
constants.public final void addFlag(@BufferFlags int flag)
flag to this buffer's flags.flag - The flag to add to this buffer's flags, which should be one of the
C.BUFFER_FLAG_* constants.public final void clearFlag(@BufferFlags int flag)
flag from this buffer's flags, if it is set.flag - The flag to remove.protected final boolean getFlag(@BufferFlags int flag)
flag - The flag to check.