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

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

public class SampleSizeBox
extends FullBox

8.7.3.1 Definition

This box contains the sample count and a table giving the size in bytes of each sample. This allows the media data itself to be unframed. The total number of samples in the media is always indicated in the sample count.

There are two variants of the sample size box. The first variant has a fixed size 32-bit field for representing the sample sizes; it permits defining a constant size for all samples in a track. The second variant permits smaller size fields, to save space when the sizes are varying but small. One of these boxes must be present; the first version is preferred for maximum compatibility

Author:
amit bhayani

Field Summary
 
Fields inherited from class org.mobicents.media.server.impl.resource.mediaplayer.mpeg.Box
bytetoTypeMap
 
Constructor Summary
SampleSizeBox(long size)
           
 
Method Summary
 long[] getEntrySize()
           
 long getSampleCount()
           
 long getSampleSize()
           
protected  int load(java.io.DataInputStream fin)
          Loads Box from stream.
 
Methods inherited from class org.mobicents.media.server.impl.resource.mediaplayer.mpeg.FullBox
getFlags, getVersion, read64
 
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

SampleSizeBox

public SampleSizeBox(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.

Overrides:
load in class FullBox
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.

getSampleSize

public long getSampleSize()

getSampleCount

public long getSampleCount()

getEntrySize

public long[] getEntrySize()


Copyright © 2010. All Rights Reserved.