org.mobicents.media.server.impl.resource.mediaplayer.mpeg
Class SampleSizeBox
java.lang.Object
org.mobicents.media.server.impl.resource.mediaplayer.mpeg.Box
org.mobicents.media.server.impl.resource.mediaplayer.mpeg.FullBox
org.mobicents.media.server.impl.resource.mediaplayer.mpeg.SampleSizeBox
public class SampleSizeBox
- extends FullBox
8.7.3.1 Definition
- Box Type: �?stsz’, �?stz2’
- Container: Sample Table Box (�?stbl’)
- Mandatory: Yes
- Quantity: Exactly one variant must be present
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
| 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 |
SampleSizeBox
public SampleSizeBox(long size)
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.