org.mobicents.media.server.impl.resource.mediaplayer.mpeg
Class SampleTableBox
java.lang.Object
org.mobicents.media.server.impl.resource.mediaplayer.mpeg.Box
org.mobicents.media.server.impl.resource.mediaplayer.mpeg.SampleTableBox
public class SampleTableBox
- extends Box
8.5.1.1 Definition
- Box Type: �?stbl’
- Container:
MediaInformationBox (�?minf’)
- Mandatory: Yes
- Quantity: Exactly one
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.
- Author:
- kulikov, amit bhayani
| Fields inherited from class org.mobicents.media.server.impl.resource.mediaplayer.mpeg.Box |
bytetoTypeMap |
| Methods inherited from class org.mobicents.media.server.impl.resource.mediaplayer.mpeg.Box |
comparebytes, getSize, getType, read, read16, read24, read32, readFixedPoint1616, readText, readType, readU32, readU64 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SampleTableBox
public SampleTableBox(long size)
load
protected int load(java.io.DataInputStream fin)
throws java.io.IOException
- Description copied from class:
Box
- Loads Box from stream.
- Specified by:
load in class Box
- Parameters:
fin - the stream to load box from
- Returns:
- the number of bytes readed from stream; *
- Throws:
java.io.IOException - if some I/O error occured.
getSampleDescription
public SampleDescriptionBox getSampleDescription()
getTimeToSampleBox
public TimeToSampleBox getTimeToSampleBox()
getSampleToChunkBox
public SampleToChunkBox getSampleToChunkBox()
getSampleSizeBox
public SampleSizeBox getSampleSizeBox()
getChunkOffsetBox
public ChunkOffsetBox getChunkOffsetBox()
getSyncSampleBox
public SyncSampleBox getSyncSampleBox()
getCompositionOffsetBox
public CompositionOffsetBox getCompositionOffsetBox()
Copyright © 2010. All Rights Reserved.