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