public class BufferInfo extends Object
SystemCapability.Multimedia#MEDIA| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
BUFFER_TYPE_CODEC_CONFIG |
Indicates the codec initialization data or non-media data.
|
static int |
BUFFER_TYPE_END_OF_STREAM |
Indicates the end of a data stream.
|
static int |
BUFFER_TYPE_KEY_FRAME |
Indicates that buffer data is key frames.
|
static int |
BUFFER_TYPE_MUXER_DATA |
Indicates that the buffer contains non-media data processed by a muxer.
|
static int |
BUFFER_TYPE_PARTIAL_FRAME |
Indicates that the buffer contains only a part of a frame.
|
int |
bufferType |
Indicates the buffer data type.
|
int |
index |
Indicates the buffer index.
|
int |
offset |
Indicates the buffer data offset.
|
int |
size |
Indicates the buffer data size.
|
long |
timeStamp |
Indicates the buffer data timestamp (in microseconds).
|
| 构造器 | 说明 |
|---|---|
BufferInfo() |
public static final int BUFFER_TYPE_CODEC_CONFIG
public static final int BUFFER_TYPE_END_OF_STREAM
public static final int BUFFER_TYPE_KEY_FRAME
public static final int BUFFER_TYPE_MUXER_DATA
public static final int BUFFER_TYPE_PARTIAL_FRAME
public int bufferType
BUFFER_TYPE_KEY_FRAME or BUFFER_TYPE_MUXER_DATA.public int index
public int offset
public int size
public long timeStamp
public void setInfo(int offset,
int size,
long timeStamp,
int bufferType)
offset - Indicates the start offset of buffer data.size - Indicates the buffer data size.timeStamp - Indicates the buffer data timestamp.bufferType - Indicates the buffer data type.public void setInfo(int offset,
int size,
long timeStamp,
int bufferType,
int index)
offset - Indicates the start offset of buffer data.size - Indicates the buffer data size.timeStamp - Indicates the buffer data timestamp.bufferType - Indicates the buffer data type.index - Indicates the buffer index.