|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.googlecode.mp4parser.authoring.builder.SyncSampleIntersectFinderImpl
public class SyncSampleIntersectFinderImpl
This FragmentIntersectionFinder
cuts the input movie video tracks in
fragments of the same length exactly before the sync samples. Audio tracks are cut
into pieces of similar length.
Constructor Summary | |
---|---|
SyncSampleIntersectFinderImpl()
|
|
SyncSampleIntersectFinderImpl(int minFragmentDurationSeconds)
Creates a SyncSampleIntersectFinderImpl that will not create any fragment
smaller than the given minFragmentDurationSeconds |
Method Summary | |
---|---|
long[] |
getCommonIndices(long[] syncSamples,
long[] syncSampleTimes,
long timeScale,
long[]... otherTracksTimes)
|
static List<long[]> |
getSyncSamplesTimestamps(Movie movie,
Track track)
Calculates the timestamp of all tracks' sync samples. |
long[] |
sampleNumbers(Track track,
Movie movie)
Gets an array of sample numbers that are meant to be the first sample of each chunk or fragment. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SyncSampleIntersectFinderImpl()
public SyncSampleIntersectFinderImpl(int minFragmentDurationSeconds)
SyncSampleIntersectFinderImpl
that will not create any fragment
smaller than the given minFragmentDurationSeconds
minFragmentDurationSeconds
- the smallest allowable duration of a fragment.Method Detail |
---|
public long[] sampleNumbers(Track track, Movie movie)
sampleNumbers
in interface FragmentIntersectionFinder
track
- concerned trackmovie
- the context of the track
public static List<long[]> getSyncSamplesTimestamps(Movie movie, Track track)
movie
- track
-
public long[] getCommonIndices(long[] syncSamples, long[] syncSampleTimes, long timeScale, long[]... otherTracksTimes)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |