Methods Summary |
---|
protected void | _parseDetails(java.nio.ByteBuffer content)
parseVersionAndFlags(content);
groupingType = IsoTypeReader.read4cc(content);
if (this.getVersion() == 1) {
groupingTypeParameter = IsoTypeReader.read4cc(content);
}
long entryCount = IsoTypeReader.readUInt32(content);
while (entryCount-- > 0) {
entries.add(new Entry(l2i(IsoTypeReader.readUInt32(content)), l2i(IsoTypeReader.readUInt32(content))));
}
|
protected void | getContent(java.nio.ByteBuffer byteBuffer)
writeVersionAndFlags(byteBuffer);
byteBuffer.put(groupingType.getBytes());
if (this.getVersion() == 1) {
byteBuffer.put(groupingTypeParameter.getBytes());
}
IsoTypeWriter.writeUInt32(byteBuffer, entries.size());
for (Entry entry : entries) {
IsoTypeWriter.writeUInt32(byteBuffer, entry.getSampleCount());
IsoTypeWriter.writeUInt32(byteBuffer, entry.getGroupDescriptionIndex());
}
|
protected long | getContentSize()
return this.getVersion() == 1 ? entries.size() * 8 + 16 : entries.size() * 8 + 12;
|
public java.util.List | getEntries()
return entries;
|
public java.lang.String | getGroupingType()
return groupingType;
|
public java.lang.String | getGroupingTypeParameter()
return groupingTypeParameter;
|
public void | setEntries(java.util.List entries)
this.entries = entries;
|
public void | setGroupingType(java.lang.String groupingType)
this.groupingType = groupingType;
|
public void | setGroupingTypeParameter(java.lang.String groupingTypeParameter)
this.groupingTypeParameter = groupingTypeParameter;
|