public class ItemLocationBox extends AbstractFullBox
aligned(8) class ItemLocationBox extends FullBox('iloc', version, 0) {
unsigned int(4) offset_size;
unsigned int(4) length_size;
unsigned int(4) base_offset_size;
if (version == 1)
unsigned int(4) index_size;
else
unsigned int(4) reserved;
unsigned int(16) item_count;
for (i=0; i<item_count; i++) {
unsigned int(16) item_ID;
if (version == 1) {
unsigned int(12) reserved = 0;
unsigned int(4) construction_method;
}
unsigned int(16) data_reference_index;
unsigned int(base_offset_size*8) base_offset;
unsigned int(16) extent_count;
for (j=0; j<extent_count; j++) {
if ((version == 1) && (index_size > 0)) {
unsigned int(index_size*8) extent_index;
}
unsigned int(offset_size*8) extent_offset;
unsigned int(length_size*8) extent_length;
}
}
}
| Modifier and Type | Class and Description |
|---|---|
class |
ItemLocationBox.Extent |
class |
ItemLocationBox.Item |
| Modifier and Type | Field and Description |
|---|---|
int |
baseOffsetSize |
int |
indexSize |
java.util.List<ItemLocationBox.Item> |
items |
int |
lengthSize |
int |
offsetSize |
static java.lang.String |
TYPE |
content, type| Constructor and Description |
|---|
ItemLocationBox() |
| Modifier and Type | Method and Description |
|---|---|
void |
_parseDetails(java.nio.ByteBuffer content)
Parse the box's fields and child boxes if any.
|
ItemLocationBox.Extent |
createExtent(long extentOffset,
long extentLength,
long extentIndex) |
ItemLocationBox.Item |
createItem(int itemId,
int constructionMethod,
int dataReferenceIndex,
long baseOffset,
java.util.List<ItemLocationBox.Extent> extents) |
int |
getBaseOffsetSize() |
protected void |
getContent(java.nio.ByteBuffer byteBuffer)
Write the box's content into the given
ByteBuffer. |
protected long |
getContentSize()
Get the box's content size without its header.
|
int |
getIndexSize() |
java.util.List<ItemLocationBox.Item> |
getItems() |
int |
getLengthSize() |
int |
getOffsetSize() |
void |
setBaseOffsetSize(int baseOffsetSize) |
void |
setIndexSize(int indexSize) |
void |
setItems(java.util.List<ItemLocationBox.Item> items) |
void |
setLengthSize(int lengthSize) |
void |
setOffsetSize(int offsetSize) |
getFlags, getVersion, parseVersionAndFlags, setFlags, setVersion, writeVersionAndFlagsgetBox, getSize, getType, getUserType, isParsed, parse, parseDetailsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparsepublic static final java.lang.String TYPE
public int offsetSize
public int lengthSize
public int baseOffsetSize
public int indexSize
public java.util.List<ItemLocationBox.Item> items
protected long getContentSize()
AbstractBoxgetContent(ByteBuffer) writes.getContentSize in class AbstractBoxAbstractBox.getContent(java.nio.ByteBuffer)protected void getContent(java.nio.ByteBuffer byteBuffer)
AbstractBoxByteBuffer. This must include flags
and version in case of a full box. byteBuffer has been initialized with
getSize() bytes.getContent in class AbstractBoxbyteBuffer - the sink for the box's contentpublic void _parseDetails(java.nio.ByteBuffer content)
AbstractBox_parseDetails in class AbstractBoxcontent - the box's raw content beginning after the 4-cc field.public int getOffsetSize()
public void setOffsetSize(int offsetSize)
public int getLengthSize()
public void setLengthSize(int lengthSize)
public int getBaseOffsetSize()
public void setBaseOffsetSize(int baseOffsetSize)
public int getIndexSize()
public void setIndexSize(int indexSize)
public java.util.List<ItemLocationBox.Item> getItems()
public void setItems(java.util.List<ItemLocationBox.Item> items)
public ItemLocationBox.Item createItem(int itemId, int constructionMethod, int dataReferenceIndex, long baseOffset, java.util.List<ItemLocationBox.Extent> extents)
public ItemLocationBox.Extent createExtent(long extentOffset, long extentLength, long extentIndex)
Copyright © 2020. All rights reserved.