Methods Summary |
---|
public java.util.List | getCompositionTimeEntries()
// AMF0 tracks do not have Composition Time
return null;
|
public java.util.List | getDecodingTimeEntries()
LinkedList<TimeToSampleBox.Entry> timesToSample = new LinkedList<TimeToSampleBox.Entry>();
LinkedList<Long> keys = new LinkedList<Long>(rawSamples.keySet());
Collections.sort(keys);
long lastTimeStamp = 0;
for (Long key : keys) {
long delta = key - lastTimeStamp;
if (timesToSample.size() > 0 && timesToSample.peek().getDelta() == delta) {
timesToSample.peek().setCount(timesToSample.peek().getCount() + 1);
} else {
timesToSample.add(new TimeToSampleBox.Entry(1, delta));
}
lastTimeStamp = key;
}
return timesToSample;
|
public java.lang.String | getHandler()
return "data";
|
public Box | getMediaHeaderBox()
return new NullMediaHeaderBox();
|
public java.util.List | getSampleDependencies()
// AMF0 tracks do not have Sample Dependencies
return null;
|
public SampleDescriptionBox | getSampleDescriptionBox()
SampleDescriptionBox stsd = new SampleDescriptionBox();
ActionMessageFormat0SampleEntryBox amf0 = new ActionMessageFormat0SampleEntryBox();
amf0.setDataReferenceIndex(1);
stsd.addBox(amf0);
return stsd;
|
public java.util.List | getSamples()
LinkedList<ByteBuffer> samples = new LinkedList<ByteBuffer>();
for (byte[] bytes : rawSamples.values()) {
samples.add(ByteBuffer.wrap(bytes));
}
return samples;
|
public SubSampleInformationBox | getSubsampleInformationBox()
return null;
|
public long[] | getSyncSamples()
// AMF0 tracks do not have Sync Samples
return null;
|
public com.googlecode.mp4parser.authoring.TrackMetaData | getTrackMetaData()
return trackMetaData; //To change body of implemented methods use File | Settings | File Templates.
|