public static class MXFDemuxer.MXFDemuxerTrack extends Object implements SeekableDemuxerTrack
Constructor and Description |
---|
MXFDemuxerTrack(MXFDemuxer demuxer,
UL essenceUL,
TimelineTrack track,
GenericDescriptor descriptor) |
Modifier and Type | Method and Description |
---|---|
MXFCodec |
getCodec() |
long |
getCurFrame()
Gets an index of the frame that the next call to 'nextFrame' will return,
zero based.
|
GenericDescriptor |
getDescriptor() |
double |
getDuration() |
Rational |
getEditRate() |
UL |
getEssenceUL() |
DemuxerTrackMeta |
getMeta() |
String |
getName() |
int |
getNumFrames() |
int |
getTrackId() |
boolean |
gotoFrame(long frameNo)
Goes to exactly frameNo.
|
boolean |
gotoSyncFrame(long frameNo)
Goes to a a frame that's a sync frame (key frame) and is prior or at
frame frameNo.
|
boolean |
isAudio() |
boolean |
isVideo() |
Packet |
nextFrame() |
MXFDemuxer.MXFPacket |
readPacket(long off,
int len,
long pts,
int timescale,
int duration,
int frameNo,
boolean kf) |
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 MXFDemuxerTrack(MXFDemuxer demuxer, UL essenceUL, TimelineTrack track, GenericDescriptor descriptor) throws IOException
IOException
public boolean isAudio()
public boolean isVideo()
public double getDuration()
public int getNumFrames()
public String getName()
public Packet nextFrame() throws IOException
nextFrame
in interface DemuxerTrack
IOException
public MXFDemuxer.MXFPacket readPacket(long off, int len, long pts, int timescale, int duration, int frameNo, boolean kf) throws IOException
IOException
public boolean gotoFrame(long frameNo)
SeekableDemuxerTrack
gotoFrame
in interface SeekableDemuxerTrack
frameNo
- Frame number, zero based, to go to.public boolean gotoSyncFrame(long frameNo)
SeekableDemuxerTrack
gotoSyncFrame
in interface SeekableDemuxerTrack
frameNo
- Frame number, zero based, related to which a sync frame will
be selected.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 UL getEssenceUL()
public GenericDescriptor getDescriptor()
public MXFCodec getCodec()
public int getTrackId()
public DemuxerTrackMeta getMeta()
getMeta
in interface DemuxerTrack
public Rational getEditRate()
Copyright © 2019. All rights reserved.