public static class MKVDemuxer.VideoTrack extends Object implements SeekableDemuxerTrack
Modifier and Type | Field and Description |
---|---|
int |
trackNo |
Constructor and Description |
---|
VideoTrack(MKVDemuxer demuxer,
int trackNo,
ByteBuffer state,
Codec codec) |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
getCodecState() |
long |
getCurFrame()
Gets an index of the frame that the next call to 'nextFrame' will return,
zero based.
|
int |
getFrameCount() |
DemuxerTrackMeta |
getMeta() |
boolean |
gotoFrame(long i)
Goes to exactly frameNo.
|
boolean |
gotoSyncFrame(long i)
Goes to a a frame that's a sync frame (key frame) and is prior or at
frame frameNo.
|
Packet |
nextFrame() |
void |
seek(double second)
Seeks this container to the second provided so that the next call to
nextFrame will return a frame at that second.
|
public VideoTrack(MKVDemuxer demuxer, int trackNo, ByteBuffer state, Codec codec)
public Packet nextFrame() throws IOException
nextFrame
in interface DemuxerTrack
IOException
public boolean gotoFrame(long i)
SeekableDemuxerTrack
gotoFrame
in interface SeekableDemuxerTrack
i
- Frame number, zero based, to go to.public long getCurFrame()
SeekableDemuxerTrack
getCurFrame
in interface SeekableDemuxerTrack
public void seek(double second)
SeekableDemuxerTrack
seek
in interface SeekableDemuxerTrack
second
- A second to seek to.public int getFrameCount()
public ByteBuffer getCodecState()
public DemuxerTrackMeta getMeta()
getMeta
in interface DemuxerTrack
public boolean gotoSyncFrame(long i)
SeekableDemuxerTrack
gotoSyncFrame
in interface SeekableDemuxerTrack
i
- Frame number, zero based, related to which a sync frame will
be selected.Copyright © 2019. All rights reserved.