org.mobicents.media.server.impl.resource.mediaplayer.mpeg
Class SampleTableBox

java.lang.Object
  extended by org.mobicents.media.server.impl.resource.mediaplayer.mpeg.Box
      extended by org.mobicents.media.server.impl.resource.mediaplayer.mpeg.SampleTableBox

public class SampleTableBox
extends Box

8.5.1.1 Definition

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

Field Summary
 
Fields inherited from class org.mobicents.media.server.impl.resource.mediaplayer.mpeg.Box
bytetoTypeMap
 
Constructor Summary
SampleTableBox(long size)
           
 
Method Summary
 ChunkOffsetBox getChunkOffsetBox()
           
 CompositionOffsetBox getCompositionOffsetBox()
           
 SampleDescriptionBox getSampleDescription()
           
 SampleSizeBox getSampleSizeBox()
           
 SampleToChunkBox getSampleToChunkBox()
           
 SyncSampleBox getSyncSampleBox()
           
 TimeToSampleBox getTimeToSampleBox()
           
protected  int load(java.io.DataInputStream fin)
          Loads Box from stream.
 
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
 

Constructor Detail

SampleTableBox

public SampleTableBox(long size)
Method Detail

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.