Maven module :un.storage : media-mpeg4 :
Class : un.storage.media.mp4.boxes.impl.ItemLocationBox
Extends/Implements : un.storage.media.mp4.boxes.FullBox
Subclasses : -

The item location box provides a directory of resources in this or other
files, by locating their containing file, their offset within that file, and
their length. Placing this in binary format enables common handling of this
data, even by systems which do not understand the particular metadata system
(handler) used. For example, a system might integrate all the externally
referenced metadata resources into one file, re-adjusting file offsets and
file references accordingly.

Items may be stored fragmented into extents, e.g. to enable interleaving. An
extent is a contiguous subset of the bytes of the resource; the resource is
formed by concatenating the extents. If only one extent is used then either
or both of the offset and length may be implied:


Variables : -
Functions : ItemLocationBox, decode, getItemID, getDataReferenceIndex, getBaseOffset, getExtentOffset, getExtentLength



public void ItemLocationBox ()

public void decode (MP4InputStream in)


The item ID is an arbitrary integer 'name' for this resource which can be
used to refer to it (e.g. in a URL).

@return the item ID
public int[] getItemID ()


The data reference index is either zero ('this file') or a 1-based index
into the data references in the data information box.

@return the data reference index
public int[] getDataReferenceIndex ()


The base offset provides a base value for offset calculations within the
referenced data.
return  the base offsets for all items
public long[] getBaseOffset ()


The extent offset provides the absolute offset in bytes from the
beginning of the containing file, of this item.
return  the offsets for all extents in all items
public long[][] getExtentOffset ()


The extends length provides the absolute length in bytes of this metadata
item. If the value is 0, then length of the item is the length of the
entire referenced file.
return  the lengths for all extends in all items
public long[][] getExtentLength ()