public class SubSampleInformationBox extends AbstractFullBox
aligned(8) class SubSampleInformationBox extends FullBox('subs', version, 0) { unsigned int(32) entry_count; int i,j; for (i=0; i < entry_count; i++) { unsigned int(32) sample_delta; unsigned int(16) subsample_count; if (subsample_count > 0) { for (j=0; j < subsample_count; j++) { if(version == 1) { unsigned int(32) subsample_size; } else { unsigned int(16) subsample_size; } unsigned int(8) subsample_priority; unsigned int(8) discardable; unsigned int(32) reserved = 0; } } } }
Modifier and Type | Class and Description |
---|---|
static class |
SubSampleInformationBox.SubSampleEntry |
Modifier and Type | Field and Description |
---|---|
static String |
TYPE |
type
Constructor and Description |
---|
SubSampleInformationBox() |
Modifier and Type | Method and Description |
---|---|
void |
_parseDetails(ByteBuffer content)
Parse the box's fields and child boxes if any.
|
protected void |
getContent(ByteBuffer byteBuffer)
Write the box's content into the given
ByteBuffer . |
protected long |
getContentSize()
Get the box's content size without its header.
|
List<SubSampleInformationBox.SubSampleEntry> |
getEntries() |
void |
setEntries(List<SubSampleInformationBox.SubSampleEntry> entries) |
String |
toString() |
getFlags, getVersion, parseVersionAndFlags, setFlags, setVersion, writeVersionAndFlags
getBox, getOffset, getParent, getPath, getSize, getType, getUserType, isParsed, parse, parseDetails, setDeadBytes, setParent
public static final String TYPE
public List<SubSampleInformationBox.SubSampleEntry> getEntries()
public void setEntries(List<SubSampleInformationBox.SubSampleEntry> entries)
protected long getContentSize()
AbstractBox
getContent(ByteBuffer)
writes.getContentSize
in class AbstractBox
AbstractBox.getContent(java.nio.ByteBuffer)
public void _parseDetails(ByteBuffer content)
AbstractBox
_parseDetails
in class AbstractBox
content
- the box's raw content beginning after the 4-cc field.protected void getContent(ByteBuffer byteBuffer)
AbstractBox
ByteBuffer
. This must include flags
and version in case of a full box. byteBuffer
has been initialized with
getSize()
bytes.getContent
in class AbstractBox
byteBuffer
- the sink for the box's contentCopyright © 2014. All rights reserved.