Methods Summary |
---|
public void | _parseDetails(java.nio.ByteBuffer content)
parseVersionAndFlags(content);
int entryCount = l2i(IsoTypeReader.readUInt32(content));
entries = new ArrayList<Entry>(entryCount);
for (int i = 0; i < entryCount; i++) {
entries.add(new Entry(IsoTypeReader.readUInt32(content), IsoTypeReader.readUInt32(content)));
}
|
public static long[] | blowupTimeToSamples(java.util.List entries)Decompresses the list of entries and returns the list of decoding times.
long numOfSamples = 0;
for (TimeToSampleBox.Entry entry : entries) {
numOfSamples += entry.getCount();
}
assert numOfSamples <= Integer.MAX_VALUE;
long[] decodingTime = new long[(int) numOfSamples];
int current = 0;
for (TimeToSampleBox.Entry entry : entries) {
for (int i = 0; i < entry.getCount(); i++) {
decodingTime[current++] = entry.getDelta();
}
}
return decodingTime;
|
protected void | getContent(java.nio.ByteBuffer byteBuffer)
writeVersionAndFlags(byteBuffer);
IsoTypeWriter.writeUInt32(byteBuffer, entries.size());
for (Entry entry : entries) {
IsoTypeWriter.writeUInt32(byteBuffer, entry.getCount());
IsoTypeWriter.writeUInt32(byteBuffer, entry.getDelta());
}
|
protected long | getContentSize()
return 8 + entries.size() * 8;
|
public java.util.List | getEntries()
return entries;
|
public void | setEntries(java.util.List entries)
this.entries = entries;
|
public java.lang.String | toString()
return "TimeToSampleBox[entryCount=" + entries.size() + "]";
|