com.coremedia.iso.boxes
Class SampleTableBox
java.lang.Object
com.coremedia.iso.boxes.AbstractBox
com.coremedia.iso.boxes.AbstractContainerBox
com.coremedia.iso.boxes.SampleTableBox
- All Implemented Interfaces:
- Box, ContainerBox
public class SampleTableBox
- extends AbstractContainerBox
The sample table contains all the time and data indexing of the media samples in a track. Using the tables
here, it is possible to locate samples in time, determine their type (e.g. I-frame or not), and determine their
size, container, and offset into that container.
If the track that contains the Sample Table Box references no data, then the Sample Table Box does not need
to contain any sub-boxes (this is not a very useful media track).
If the track that the Sample Table Box is contained in does reference data, then the following sub-boxes are
required: Sample Description, Sample Size, Sample To Chunk, and Chunk Offset. Further, the Sample
Description Box shall contain at least one entry. A Sample Description Box is required because it contains the
data reference index field which indicates which Data Reference Box to use to retrieve the media samples.
Without the Sample Description, it is not possible to determine where the media samples are stored. The Sync
Sample Box is optional. If the Sync Sample Box is not present, all samples are sync samples.
Annex A provides a narrative description of random access using the structures defined in the Sample Table
Box.
Methods inherited from class com.coremedia.iso.boxes.AbstractContainerBox |
_parseDetails, addBox, getBoxes, getBoxes, getBoxes, getContent, getContentSize, getNumOfBytesToFirstChild, parse, parseChildBoxes, removeBox, setBoxes, toString, writeChildBoxes |
Methods inherited from class com.coremedia.iso.boxes.AbstractBox |
getBox, getDeadBytes, getHeader, getIsoFile, getParent, getSize, getType, getUserType, isParsed, parseDetails, setDeadBytes, setParent, setUserType |
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
SampleTableBox
public SampleTableBox()
getSampleDescriptionBox
public SampleDescriptionBox getSampleDescriptionBox()
getSampleSizeBox
public SampleSizeBox getSampleSizeBox()
getSampleToChunkBox
public SampleToChunkBox getSampleToChunkBox()
getChunkOffsetBox
public ChunkOffsetBox getChunkOffsetBox()
setChunkOffsetBox
public void setChunkOffsetBox(ChunkOffsetBox b)
getTimeToSampleBox
public TimeToSampleBox getTimeToSampleBox()
getSyncSampleBox
public SyncSampleBox getSyncSampleBox()
getCompositionTimeToSample
public CompositionTimeToSample getCompositionTimeToSample()
getSampleDependencyTypeBox
public SampleDependencyTypeBox getSampleDependencyTypeBox()
Copyright © 2012. All Rights Reserved.