org.mobicents.media.server.impl.resource.mediaplayer.mpeg
Class SampleToChunkBox
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.SampleToChunkBox
public class SampleToChunkBox
- extends FullBox
8.7.4.1 Definition
- Box Type: �?stsc’
- Container:
SampleTableBox (�?stbl’)
- Mandatory: Yes
- Quantity: Exactly one
Samples within the media data are grouped into chunks. Chunks can be of different sizes, and the samples within a
chunk can have different sizes. This table can be used to find the chunk that contains a sample, its position, and
the associated sample description.
The table is compactly coded. Each entry gives the index of the first chunk of a run of chunks with the same
characteristics. By subtracting one entry here from the previous one, you can compute how many chunks are in this
run. You can convert this to a sample count by multiplying by the appropriate samples-per-chunk.
- 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 |
SampleToChunkBox
public SampleToChunkBox(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.
getFirstChunk
public long[] getFirstChunk()
getSamplesPerChunk
public long[] getSamplesPerChunk()
getSampleDescriptionIndex
public long[] getSampleDescriptionIndex()
Copyright © 2010. All Rights Reserved.