public class AVSampleBuffer
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static int |
AV_BUFFER_FLAG_DATA |
static int |
AV_BUFFER_FLAG_DECODE_ONLY |
static int |
AV_BUFFER_FLAG_FORMAT |
static int |
AV_BUFFER_FLAG_NONE |
限定符和类型 | 方法和说明 |
---|---|
java.nio.ByteBuffer |
buffer()
数据
|
android.media.MediaFormat |
format()
当前格式信息
|
android.media.MediaCodec.BufferInfo |
info()
帧信息
|
boolean |
isData()
是否为数据
|
boolean |
isDecodeOnly()
标识是否只用与解码
|
boolean |
isFormat()
格式信息
|
boolean |
isKeyFrame()
判断当前是否为关键帧
|
boolean |
isRenered()
该帧是否已经渲染
|
boolean |
makeRendered()
标记该帧已渲染
|
int |
renderIndex()
获取解码器渲染索引 如果该帧渲染返回 -1
|
long |
renderTimeUs()
呈现时间
|
void |
setFlag(int flag) |
void |
setRenderIndex(int renderIndex)
设置解码器渲染索引
|
void |
setRenderTimeUs(long renderTimeUs)
设置呈现时间
|
public static final int AV_BUFFER_FLAG_NONE
public static final int AV_BUFFER_FLAG_DATA
public static final int AV_BUFFER_FLAG_FORMAT
public static final int AV_BUFFER_FLAG_DECODE_ONLY
public void setRenderTimeUs(long renderTimeUs)
renderTimeUs
- public void setRenderIndex(int renderIndex)
renderIndex
- 解码器渲染索引public int renderIndex()
public boolean makeRendered()
public boolean isRenered()
public long renderTimeUs()
public android.media.MediaFormat format()
public java.nio.ByteBuffer buffer()
public android.media.MediaCodec.BufferInfo info()
public boolean isKeyFrame()
public void setFlag(int flag)
public boolean isDecodeOnly()
public boolean isFormat()
public boolean isData()