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 Closeable
close
in interface AutoCloseable
IOException
public SampleDescriptionBox getSampleDescriptionBox()
getSampleDescriptionBox
in interface Track
public long[] getSampleDurations()
Track
Track.getSamples()
contains.getSampleDurations
in interface Track
public List<CompositionTimeToSample.Entry> getCompositionTimeEntries()
getCompositionTimeEntries
in interface Track
public long[] getSyncSamples()
getSyncSamples
in interface Track
public List<SampleDependencyTypeBox.Entry> getSampleDependencies()
getSampleDependencies
in interface Track
public TrackMetaData getTrackMetaData()
getTrackMetaData
in interface Track
public String getHandler()
getHandler
in interface Track
public List<Sample> getSamples()
Track
getSamples
in interface Track
public SubSampleInformationBox getSubsampleInformationBox()
getSubsampleInformationBox
in interface Track
public long getDuration()
Track
getDuration
in interface Track
public String getName()
Track
public Map<GroupEntry,long[]> getSampleGroups()
getSampleGroups
in interface Track
Copyright © 2017. All rights reserved.