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
IOExceptionpublic boolean isAudio()
public boolean isVideo()
public double getDuration()
public int getNumFrames()
public String getName()
public Packet nextFrame() throws IOException
nextFrame in interface DemuxerTrackIOExceptionpublic MXFDemuxer.MXFPacket readPacket(long off, int len, long pts, int timescale, int duration, int frameNo, boolean kf) throws IOException
IOExceptionpublic boolean gotoFrame(long frameNo)
SeekableDemuxerTrackgotoFrame in interface SeekableDemuxerTrackframeNo - Frame number, zero based, to go to.public boolean gotoSyncFrame(long frameNo)
SeekableDemuxerTrackgotoSyncFrame in interface SeekableDemuxerTrackframeNo - Frame number, zero based, related to which a sync frame will
be selected.public long getCurFrame()
SeekableDemuxerTrackgetCurFrame in interface SeekableDemuxerTrackpublic void seek(double second)
SeekableDemuxerTrackseek in interface SeekableDemuxerTracksecond - A second to seek to.public UL getEssenceUL()
public GenericDescriptor getDescriptor()
public MXFCodec getCodec()
public int getTrackId()
public DemuxerTrackMeta getMeta()
getMeta in interface DemuxerTrackpublic Rational getEditRate()
Copyright © 2019. All rights reserved.