public class SampleOffsetUtils extends Object
Constructor and Description |
---|
SampleOffsetUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
getChunkBySample(int sampleOfInterest,
ChunkOffsetsBox stco,
SampleToChunkBox stsc) |
static int |
getFirstSampleAtChunk(int chunk,
SampleToChunkBox stsc,
ChunkOffsetsBox stco) |
static ByteBuffer |
getSampleData(int sample,
File file) |
static long |
getSampleOffset(int sample,
SampleToChunkBox stsc,
ChunkOffsetsBox stco,
SampleSizesBox stsz) |
static int |
getSamplesInChunk(int chunk,
SampleToChunkBox stsc) |
public static ByteBuffer getSampleData(int sample, File file) throws IOException
IOException
public static long getSampleOffset(int sample, SampleToChunkBox stsc, ChunkOffsetsBox stco, SampleSizesBox stsz)
public static int getFirstSampleAtChunk(int chunk, SampleToChunkBox stsc, ChunkOffsetsBox stco)
public static int getChunkBySample(int sampleOfInterest, ChunkOffsetsBox stco, SampleToChunkBox stsc)
public static int getSamplesInChunk(int chunk, SampleToChunkBox stsc)
Copyright © 2019. All rights reserved.