public long[] getValues() { finish(); return values.toArray(); }
public MPSIndex serialize() { List<MPSStreamIndex> streamsIndices = new ArrayList<MPSStreamIndex>(); Set<Entry<Integer, BaseAnalyser>> entrySet = analyzers.entrySet(); for (Entry<Integer, BaseAnalyser> entry : entrySet) { streamsIndices.add(entry.getValue().serialize(entry.getKey())); } return new MPSIndex(tokens.toArray(), streams, streamsIndices.toArray(new MPSStreamIndex[0])); }
stbl.add(new SampleSizesBox(frameSize, totalFrames)); stbl.add(new TimeToSampleBox(new TimeToSampleEntry[] { new TimeToSampleEntry(totalFrames, frameDuration) })); stbl.add(new ChunkOffsets64Box(chunkOffsets.toArray()));
stbl.add(new SampleSizesBox(frameSize, totalFrames)); stbl.add(new TimeToSampleBox(new TimeToSampleEntry[] { new TimeToSampleEntry(totalFrames, frameDuration) })); stbl.add(new ChunkOffsets64Box(chunkOffsets.toArray()));
stbl.add(new SampleSizesBox(sampleSizes.toArray())); stbl.add(new TimeToSampleBox(sampleDurations.toArray(new TimeToSampleEntry[] {}))); stbl.add(new ChunkOffsets64Box(chunkOffsets.toArray())); if (!allIframes && iframes.size() > 0) stbl.add(new SyncSamplesBox(iframes.toArray()));
stbl.add(new SampleSizesBox(sampleSizes.toArray())); stbl.add(new TimeToSampleBox(sampleDurations.toArray(new TimeToSampleEntry[] {}))); stbl.add(new ChunkOffsets64Box(chunkOffsets.toArray())); if (!allIframes && iframes.size() > 0) stbl.add(new SyncSamplesBox(iframes.toArray()));
stbl.add(TimeToSampleBox .createTimeToSampleBox(new TimeToSampleEntry[] { new TimeToSampleEntry(totalFrames, frameDuration) })); stbl.add(ChunkOffsets64Box.createChunkOffsets64Box(chunkOffsets.toArray()));
stbl.add(SampleSizesBox.createSampleSizesBox2(sampleSizes.toArray())); stbl.add(TimeToSampleBox.createTimeToSampleBox(sampleDurations.toArray(new TimeToSampleEntry[] {}))); stbl.add(ChunkOffsets64Box.createChunkOffsets64Box(chunkOffsets.toArray())); if (!allIframes && iframes.size() > 0) stbl.add(SyncSamplesBox.createSyncSamplesBox(iframes.toArray()));