public interface AVAssetTrackOutputSouce
限定符和类型 | 方法和说明 |
---|---|
boolean |
advance()
移动数据到下一帧
|
long |
calOutputTimeUs(long inputTimeUs)
根据输入时间计算输出时间
|
long |
durationTimeUs()
输出总时长 单位 us
|
AVAssetTrack |
inputTrack()
正在解码的轨道信息
|
boolean |
isDecodeOnly(long inputTimeUs)
验证是否只用于解码,不需要要渲染
|
boolean |
isOutputDone()
是否已读取到末尾
|
boolean |
lowFrameRateVideo()
是否为低帧率视频
|
long |
outputTimeUs()
当前输出时间 单位 us
|
AVSampleBuffer |
readSampleBuffer(int offset)
读取分离数据
void
|
void |
reset()
重置数据源
|
boolean |
seekTo(long timeUs,
int mode)
移动至 timeUs 最接近的关键帧位置
|
void |
setAlwaysCopiesSampleData(boolean alwaysCopiesSampleData)
读取数据时是否 copy 数据
|
boolean |
setTimeRange(AVTimeRange timeRange)
设置裁剪时间
|
boolean |
supportSeek()
是否支持seek
|
boolean seekTo(long timeUs, int mode)
timeUs
- 时间mode
- 模式
SEEK_TO_PREVIOUS_SYNC,
SEEK_TO_NEXT_SYNC,
SEEK_TO_CLOSEST_SYNC,AVSampleBuffer readSampleBuffer(int offset)
offset
- 偏移量boolean setTimeRange(AVTimeRange timeRange)
boolean advance()
boolean isDecodeOnly(long inputTimeUs)
boolean isOutputDone()
void reset()
void setAlwaysCopiesSampleData(boolean alwaysCopiesSampleData)
alwaysCopiesSampleData
- true 禁用帧缓存AVAssetTrack inputTrack()
long durationTimeUs()
long outputTimeUs()
long calOutputTimeUs(long inputTimeUs)
inputTimeUs
- boolean lowFrameRateVideo()
boolean supportSeek()