com.googlecode.mp4parser.authoring.tracks
Class ChangeTimeScaleTrack
java.lang.Object
com.googlecode.mp4parser.authoring.tracks.ChangeTimeScaleTrack
- All Implemented Interfaces:
- Track
public class ChangeTimeScaleTrack
- extends Object
- implements Track
Changes the timescale of a track by wrapping the track.
Constructor Summary |
ChangeTimeScaleTrack(Track source,
long targetTimeScale,
long[] syncSamples)
Changes the time scale of the source track to the target time scale and makes sure
that any rounding errors that may have summed are corrected exactly before the syncSamples. |
ChangeTimeScaleTrack
public ChangeTimeScaleTrack(Track source,
long targetTimeScale,
long[] syncSamples)
- Changes the time scale of the source track to the target time scale and makes sure
that any rounding errors that may have summed are corrected exactly before the syncSamples.
- Parameters:
source
- the source tracktargetTimeScale
- the resulting time scale of this track.syncSamples
- at these sync points where rounding error are corrected.
getSampleDescriptionBox
public SampleDescriptionBox getSampleDescriptionBox()
- Specified by:
getSampleDescriptionBox
in interface Track
getDecodingTimeEntries
public List<TimeToSampleBox.Entry> getDecodingTimeEntries()
- Specified by:
getDecodingTimeEntries
in interface Track
getCompositionTimeEntries
public List<CompositionTimeToSample.Entry> getCompositionTimeEntries()
- Specified by:
getCompositionTimeEntries
in interface Track
getSyncSamples
public long[] getSyncSamples()
- Specified by:
getSyncSamples
in interface Track
getSampleDependencies
public List<SampleDependencyTypeBox.Entry> getSampleDependencies()
- Specified by:
getSampleDependencies
in interface Track
getTrackMetaData
public TrackMetaData getTrackMetaData()
- Specified by:
getTrackMetaData
in interface Track
getHandler
public String getHandler()
- Specified by:
getHandler
in interface Track
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interface Track
isInMovie
public boolean isInMovie()
- Specified by:
isInMovie
in interface Track
isInPreview
public boolean isInPreview()
- Specified by:
isInPreview
in interface Track
isInPoster
public boolean isInPoster()
- Specified by:
isInPoster
in interface Track
getSamples
public List<ByteBuffer> getSamples()
- Specified by:
getSamples
in interface Track
getMediaHeaderBox
public Box getMediaHeaderBox()
- Specified by:
getMediaHeaderBox
in interface Track
getSubsampleInformationBox
public SubSampleInformationBox getSubsampleInformationBox()
- Specified by:
getSubsampleInformationBox
in interface Track
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012. All Rights Reserved.