com.googlecode.mp4parser.authoring.builder
Class TwoSecondIntersectionFinder
java.lang.Object
com.googlecode.mp4parser.authoring.builder.TwoSecondIntersectionFinder
- All Implemented Interfaces:
- FragmentIntersectionFinder
public class TwoSecondIntersectionFinder
- extends Object
- implements FragmentIntersectionFinder
This FragmentIntersectionFinder
cuts the input movie in 2 second
snippets.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TwoSecondIntersectionFinder
public TwoSecondIntersectionFinder()
getDuration
protected long getDuration(Track track)
sampleNumbers
public long[] sampleNumbers(Track track,
Movie movie)
- Gets the ordinal number of the samples which will be the first sample
in each fragment.
- Specified by:
sampleNumbers
in interface FragmentIntersectionFinder
- Parameters:
track
- concerned trackmovie
- the context of the track
- Returns:
- an array containing the ordinal of each fragment's first sample
Copyright © 2012. All Rights Reserved.