public class SampleToChunkBox extends FullBox
SampleTableBox (�?stbl’)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.
bytetoTypeMap| Constructor and Description |
|---|
SampleToChunkBox(long size) |
| Modifier and Type | Method and Description |
|---|---|
long[] |
getFirstChunk() |
long[] |
getSampleDescriptionIndex() |
long[] |
getSamplesPerChunk() |
protected int |
load(DataInputStream fin)
Loads Box from stream.
|
getFlags, getVersion, read64protected int load(DataInputStream fin) throws IOException
Boxload in class FullBoxfin - the stream to load box fromIOException - if some I/O error occured.public long[] getFirstChunk()
public long[] getSamplesPerChunk()
public long[] getSampleDescriptionIndex()
Copyright © 2017 TeleStax, Inc.. All Rights Reserved.