public class ChangeTimeScaleTrack extends Object implements Track
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
List<CompositionTimeToSample.Entry> |
getCompositionTimeEntries() |
long |
getDuration()
The duration of the track in track timescale.
|
List<Edit> |
getEdits() |
String |
getHandler() |
String |
getName()
A name for identification purposes.
|
List<SampleDependencyTypeBox.Entry> |
getSampleDependencies() |
SampleDescriptionBox |
getSampleDescriptionBox() |
long[] |
getSampleDurations()
Each samples is covers a small time span in a video.
|
Map<GroupEntry,long[]> |
getSampleGroups() |
List<Sample> |
getSamples()
The list of all samples.
|
SubSampleInformationBox |
getSubsampleInformationBox() |
long[] |
getSyncSamples() |
TrackMetaData |
getTrackMetaData() |
String |
toString() |
public ChangeTimeScaleTrack(Track source, long targetTimeScale, long[] syncSamples)
source - the source tracktargetTimeScale - the resulting time scale of this track.syncSamples - at these sync points where rounding error are corrected.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic SampleDescriptionBox getSampleDescriptionBox()
getSampleDescriptionBox in interface Trackpublic long[] getSampleDurations()
TrackTrack.getSamples() contains.getSampleDurations in interface Trackpublic List<CompositionTimeToSample.Entry> getCompositionTimeEntries()
getCompositionTimeEntries in interface Trackpublic long[] getSyncSamples()
getSyncSamples in interface Trackpublic List<SampleDependencyTypeBox.Entry> getSampleDependencies()
getSampleDependencies in interface Trackpublic TrackMetaData getTrackMetaData()
getTrackMetaData in interface Trackpublic String getHandler()
getHandler in interface Trackpublic List<Sample> getSamples()
TrackgetSamples in interface Trackpublic SubSampleInformationBox getSubsampleInformationBox()
getSubsampleInformationBox in interface Trackpublic long getDuration()
TrackgetDuration in interface Trackpublic String getName()
Trackpublic Map<GroupEntry,long[]> getSampleGroups()
getSampleGroups in interface TrackCopyright © 2016. All rights reserved.