BufferInfo
@UnstableApi
public final class BufferInfo
Contains metadata of a sample ByteBuffer.
Summary
Public fields |
|
|---|---|
final int |
The buffer flags, which should be a combination of the |
final long |
The presentation timestamp of sample (in microseconds). |
final int |
The amount of data (in bytes) in the buffer. |
Public constructors |
|---|
BufferInfo(long presentationTimeUs, int size, @C.BufferFlags int flags)Creates an instance. |
Public fields
flags
@C.BufferFlags
public final int flags
The buffer flags, which should be a combination of the C.BUFFER_FLAG_*.
presentationTimeUs
public final long presentationTimeUs
The presentation timestamp of sample (in microseconds).
Public constructors
BufferInfo
public BufferInfo(long presentationTimeUs, int size, @C.BufferFlags int flags)
Creates an instance.
| Parameters | |
|---|---|
long presentationTimeUs |
The presentation timestamp of sample (in microseconds). |
int size |
The amount of data (in bytes) in the buffer. |
@C.BufferFlags int flags |
The buffer flags, which should be a combination of the |