Package org.mp4parser.muxer.tracks
Class DTSTrackImpl
- java.lang.Object
-
- org.mp4parser.muxer.AbstractTrack
-
- org.mp4parser.muxer.tracks.DTSTrackImpl
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Track
public class DTSTrackImpl extends AbstractTrack
-
-
Constructor Summary
Constructors Constructor Description DTSTrackImpl(DataSource dataSource)
DTSTrackImpl(DataSource dataSource, String lang)
-
Method Summary
Modifier and Type Method Description void
close()
List<CompositionTimeToSample.Entry>
getCompositionTimeEntries()
String
getHandler()
List<SampleDependencyTypeBox.Entry>
getSampleDependencies()
long[]
getSampleDurations()
Each samples is covers a small time span in a video.List<SampleEntry>
getSampleEntries()
List<Sample>
getSamples()
The list of all samples.long[]
getSyncSamples()
TrackMetaData
getTrackMetaData()
-
Methods inherited from class org.mp4parser.muxer.AbstractTrack
getDuration, getEdits, getName, getSampleGroups, getSubsampleInformationBox
-
-
-
-
Constructor Detail
-
DTSTrackImpl
public DTSTrackImpl(DataSource dataSource, String lang) throws IOException
- Throws:
IOException
-
DTSTrackImpl
public DTSTrackImpl(DataSource dataSource) throws IOException
- Throws:
IOException
-
-
Method Detail
-
close
public void close() throws IOException
- Throws:
IOException
-
getSamples
public List<Sample> getSamples()
Description copied from interface:Track
The list of all samples.- Returns:
- this track's samples
-
getSampleEntries
public List<SampleEntry> getSampleEntries()
-
getSampleDurations
public long[] getSampleDurations()
Description copied from interface:Track
Each samples is covers a small time span in a video. This method returns the duration for each sample in track timescale. The array must contain exactly as many samples asTrack.getSamples()
contains.- Returns:
- an array of ticks
-
getCompositionTimeEntries
public List<CompositionTimeToSample.Entry> getCompositionTimeEntries()
- Specified by:
getCompositionTimeEntries
in interfaceTrack
- Overrides:
getCompositionTimeEntries
in classAbstractTrack
-
getSyncSamples
public long[] getSyncSamples()
- Specified by:
getSyncSamples
in interfaceTrack
- Overrides:
getSyncSamples
in classAbstractTrack
-
getSampleDependencies
public List<SampleDependencyTypeBox.Entry> getSampleDependencies()
- Specified by:
getSampleDependencies
in interfaceTrack
- Overrides:
getSampleDependencies
in classAbstractTrack
-
getTrackMetaData
public TrackMetaData getTrackMetaData()
-
getHandler
public String getHandler()
-
-