Package org.mp4parser.muxer.tracks.mjpeg
Class OneJpegPerIframe
- java.lang.Object
-
- org.mp4parser.muxer.AbstractTrack
-
- org.mp4parser.muxer.tracks.mjpeg.OneJpegPerIframe
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Track
public class OneJpegPerIframe extends AbstractTrack
Created by sannies on 13.02.2015.
-
-
Constructor Summary
Constructors Constructor Description OneJpegPerIframe(String name, File[] jpegs, Track alignTo)
-
Method Summary
Modifier and Type Method Description voidclose()StringgetHandler()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()TrackMetaDatagetTrackMetaData()-
Methods inherited from class org.mp4parser.muxer.AbstractTrack
getCompositionTimeEntries, getDuration, getEdits, getName, getSampleDependencies, getSampleGroups, getSubsampleInformationBox
-
-
-
-
Constructor Detail
-
OneJpegPerIframe
public OneJpegPerIframe(String name, File[] jpegs, Track alignTo) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getSampleEntries
public List<SampleEntry> getSampleEntries()
-
getSampleDurations
public long[] getSampleDurations()
Description copied from interface:TrackEach 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
-
getTrackMetaData
public TrackMetaData getTrackMetaData()
-
getHandler
public String getHandler()
-
getSyncSamples
public long[] getSyncSamples()
- Specified by:
getSyncSamplesin interfaceTrack- Overrides:
getSyncSamplesin classAbstractTrack
-
getSamples
public List<Sample> getSamples()
Description copied from interface:TrackThe list of all samples.- Returns:
- this track's samples
-
close
public void close() throws IOException- Throws:
IOException
-
-