com.googlecode.mp4parser.authoring.builder
Class TwoSecondIntersectionFinder

java.lang.Object
  extended by 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.


Constructor Summary
TwoSecondIntersectionFinder()
           
 
Method Summary
protected  long getDuration(Track track)
           
 long[] sampleNumbers(Track track, Movie movie)
          Gets the ordinal number of the samples which will be the first sample in each fragment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwoSecondIntersectionFinder

public TwoSecondIntersectionFinder()
Method Detail

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 track
movie - the context of the track
Returns:
an array containing the ordinal of each fragment's first sample


Copyright © 2012. All Rights Reserved.