com.coremedia.iso.boxes
Class SampleTableBox

java.lang.Object
  extended by com.coremedia.iso.boxes.AbstractBox
      extended by com.coremedia.iso.boxes.AbstractContainerBox
          extended by 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.


Field Summary
static String TYPE
           
 
Fields inherited from class com.coremedia.iso.boxes.AbstractContainerBox
boxes, boxParser
 
Fields inherited from class com.coremedia.iso.boxes.AbstractBox
deadBytes, type
 
Constructor Summary
SampleTableBox()
           
 
Method Summary
 ChunkOffsetBox getChunkOffsetBox()
           
 CompositionTimeToSample getCompositionTimeToSample()
           
 SampleDependencyTypeBox getSampleDependencyTypeBox()
           
 SampleDescriptionBox getSampleDescriptionBox()
           
 SampleSizeBox getSampleSizeBox()
           
 SampleToChunkBox getSampleToChunkBox()
           
 SyncSampleBox getSyncSampleBox()
           
 TimeToSampleBox getTimeToSampleBox()
           
 void setChunkOffsetBox(ChunkOffsetBox b)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.coremedia.iso.boxes.ContainerBox
getIsoFile, getParent
 
Methods inherited from interface com.coremedia.iso.boxes.Box
getBox, getSize, getType, setParent
 

Field Detail

TYPE

public static final String TYPE
See Also:
Constant Field Values
Constructor Detail

SampleTableBox

public SampleTableBox()
Method Detail

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.