com.googlecode.mp4parser.authoring.builder
Class SyncSampleIntersectFinderImpl

java.lang.Object
  extended by com.googlecode.mp4parser.authoring.builder.SyncSampleIntersectFinderImpl
All Implemented Interfaces:
FragmentIntersectionFinder

public class SyncSampleIntersectFinderImpl
extends Object
implements FragmentIntersectionFinder

This FragmentIntersectionFinder cuts the input movie exactly before the sync samples. Each fragment starts with a sync sample.


Constructor Summary
SyncSampleIntersectFinderImpl()
           
 
Method Summary
 int[] 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

SyncSampleIntersectFinderImpl

public SyncSampleIntersectFinderImpl()
Method Detail

sampleNumbers

public int[] sampleNumbers(Track track,
                           Movie movie)
Description copied from interface: FragmentIntersectionFinder
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.