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 |
List<ItemLocationBox.Item> |
items |
int |
lengthSize |
int |
offsetSize |
static String |
TYPE |
content, type
Constructor and Description |
---|
ItemLocationBox() |
Modifier and Type | Method and Description |
---|---|
void |
_parseDetails(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,
List<ItemLocationBox.Extent> extents) |
int |
getBaseOffsetSize() |
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.
|
int |
getIndexSize() |
List<ItemLocationBox.Item> |
getItems() |
int |
getLengthSize() |
int |
getOffsetSize() |
void |
setBaseOffsetSize(int baseOffsetSize) |
void |
setIndexSize(int indexSize) |
void |
setItems(List<ItemLocationBox.Item> items) |
void |
setLengthSize(int lengthSize) |
void |
setOffsetSize(int offsetSize) |
getFlags, getVersion, parseVersionAndFlags, setFlags, setVersion, writeVersionAndFlags
getBox, getSize, getType, getUserType, isParsed, parse, parseDetails
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parse
public static final String TYPE
public int offsetSize
public int lengthSize
public int baseOffsetSize
public int indexSize
public List<ItemLocationBox.Item> items
protected long getContentSize()
AbstractBox
getContent(ByteBuffer)
writes.getContentSize
in class AbstractBox
AbstractBox.getContent(java.nio.ByteBuffer)
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 contentpublic void _parseDetails(ByteBuffer content)
AbstractBox
_parseDetails
in class AbstractBox
content
- 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 List<ItemLocationBox.Item> getItems()
public void setItems(List<ItemLocationBox.Item> items)
public ItemLocationBox.Item createItem(int itemId, int constructionMethod, int dataReferenceIndex, long baseOffset, List<ItemLocationBox.Extent> extents)
public ItemLocationBox.Extent createExtent(long extentOffset, long extentLength, long extentIndex)
Copyright © 2019. All rights reserved.