public SampleDescriptionBox getSampleDescriptionBox() { for (Box box : getBoxes()) { if (box instanceof SampleDescriptionBox) { return (SampleDescriptionBox) box; } } return null; }
public ChunkOffsetBox getChunkOffsetBox() { for (Box box : getBoxes()) { if (box instanceof ChunkOffsetBox) { return (ChunkOffsetBox) box; } } return null; }
public SampleDependencyTypeBox getSampleDependencyTypeBox() { for (Box box : getBoxes()) { if (box instanceof SampleDependencyTypeBox) { return (SampleDependencyTypeBox) box; } } return null; }
public SampleSizeBox getSampleSizeBox() { for (Box box : getBoxes()) { if (box instanceof SampleSizeBox) { return (SampleSizeBox) box; } } return null; }
public TimeToSampleBox getTimeToSampleBox() { for (Box box : getBoxes()) { if (box instanceof TimeToSampleBox) { return (TimeToSampleBox) box; } } return null; }
public CompositionTimeToSample getCompositionTimeToSample() { for (Box box : getBoxes()) { if (box instanceof CompositionTimeToSample) { return (CompositionTimeToSample) box; } } return null; }
public SampleToChunkBox getSampleToChunkBox() { if (sampleToChunkBox != null) { return sampleToChunkBox; } for (Box box : getBoxes()) { if (box instanceof SampleToChunkBox) { sampleToChunkBox = (SampleToChunkBox) box; return sampleToChunkBox; } } return null; }
public SyncSampleBox getSyncSampleBox() { for (Box box : getBoxes()) { if (box instanceof SyncSampleBox) { return (SyncSampleBox) box; } } return null; }
if (traf.getTrackFragmentHeaderBox().getTrackId() == trackId) { sampleGroups = getSampleGroups( stbl.getBoxes(SampleGroupDescriptionBox.class), // global descriptions Path.<SampleGroupDescriptionBox>getPaths((Container) traf, "sgpd"), // local description Path.<SampleToGroupBox>getPaths((Container) traf, "sbgp"), sampleGroups = getSampleGroups(stbl.getBoxes(SampleGroupDescriptionBox.class), null, stbl.getBoxes(SampleToGroupBox.class), sampleGroups, 0);