Methods Summary |
---|
public long | getOffset()
Box b = this;
long offset = 0;
while (b.getParent() != null) {
for (Box box : b.getParent().getBoxes()) {
if (b == box) {
break;
}
offset += box.getSize();
}
b = b.getParent();
}
return offset;
|
public java.util.List | getSyncSamples(com.coremedia.iso.boxes.SampleDependencyTypeBox sdtp)
List<Long> result = new ArrayList<Long>();
final List<SampleDependencyTypeBox.Entry> sampleEntries = sdtp.getEntries();
long i = 1;
for (SampleDependencyTypeBox.Entry sampleEntry : sampleEntries) {
if (sampleEntry.getSampleDependsOn() == 2) {
result.add(i);
}
i++;
}
return result;
|
public int | getTrackCount()
return getBoxes(TrackFragmentBox.class, false).size();
|
public java.util.List | getTrackFragmentHeaderBoxes()
return getBoxes(TrackFragmentHeaderBox.class, true);
|
public long[] | getTrackNumbers()Returns the track numbers associated with this MovieBox .
List<TrackFragmentBox> trackBoxes = this.getBoxes(TrackFragmentBox.class, false);
long[] trackNumbers = new long[trackBoxes.size()];
for (int trackCounter = 0; trackCounter < trackBoxes.size(); trackCounter++) {
TrackFragmentBox trackBoxe = trackBoxes.get(trackCounter);
trackNumbers[trackCounter] = trackBoxe.getTrackFragmentHeaderBox().getTrackId();
}
return trackNumbers;
|
public java.util.List | getTrackRunBoxes()
return getBoxes(TrackRunBox.class, true);
|