public class SampleTableBox extends Box
MediaInformationBox (�?minf’)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 SampleTableBox is contained in does reference data, then the following sub-boxes are required:SampleDescriptionBox, SampleSizeBox, SampleToChunkBox, and ChunkOffsetBox.
Further, the SampleDescriptionBox shall contain at least one entry. A SampleDescriptionBox 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.bytetoTypeMap| Constructor and Description |
|---|
SampleTableBox(long size) |
| Modifier and Type | Method and Description |
|---|---|
ChunkOffsetBox |
getChunkOffsetBox() |
CompositionOffsetBox |
getCompositionOffsetBox() |
SampleDescriptionBox |
getSampleDescription() |
SampleSizeBox |
getSampleSizeBox() |
SampleToChunkBox |
getSampleToChunkBox() |
SyncSampleBox |
getSyncSampleBox() |
TimeToSampleBox |
getTimeToSampleBox() |
protected int |
load(DataInputStream fin)
Loads Box from stream.
|
protected int load(DataInputStream fin) throws IOException
Boxload in class Boxfin - the stream to load box fromIOException - if some I/O error occured.public SampleDescriptionBox getSampleDescription()
public TimeToSampleBox getTimeToSampleBox()
public SampleToChunkBox getSampleToChunkBox()
public SampleSizeBox getSampleSizeBox()
public ChunkOffsetBox getChunkOffsetBox()
public SyncSampleBox getSyncSampleBox()
public CompositionOffsetBox getCompositionOffsetBox()
Copyright © 2017 TeleStax, Inc.. All Rights Reserved.