public class Mp4StcoBox extends AbstractMp4Box
Modifier and Type | Field and Description |
---|---|
static int |
NO_OF_OFFSETS_LENGTH |
static int |
NO_OF_OFFSETS_POS |
static int |
OFFSET_LENGTH |
static int |
OTHER_FLAG_LENGTH |
static int |
OTHER_FLAG_POS |
static int |
VERSION_FLAG_LENGTH |
static int |
VERSION_FLAG_POS |
dataBuffer, header
Constructor and Description |
---|
Mp4StcoBox(Mp4BoxHeader header,
ByteBuffer buffer)
Construct box from data and show contents
|
Mp4StcoBox(Mp4BoxHeader header,
ByteBuffer originalDataBuffer,
int adjustment)
Construct box from data and adjust offets accordingly
|
Modifier and Type | Method and Description |
---|---|
void |
adjustOffsets(int adjustment) |
static void |
debugShowStcoInfo(RandomAccessFile raf) |
int |
getFirstOffSet()
The value of the first offset
|
int |
getNoOfOffSets()
The number of offsets
|
static Mp4StcoBox |
getStco(RandomAccessFile raf) |
void |
printAllOffsets()
Show All offsets, useful for debugging
|
void |
printTotalOffset() |
getData, getHeader
public static final int VERSION_FLAG_POS
public static final int OTHER_FLAG_POS
public static final int NO_OF_OFFSETS_POS
public static final int VERSION_FLAG_LENGTH
public static final int OTHER_FLAG_LENGTH
public static final int NO_OF_OFFSETS_LENGTH
public static final int OFFSET_LENGTH
public Mp4StcoBox(Mp4BoxHeader header, ByteBuffer buffer)
header
- header infobuffer
- data of box (doesnt include header data)public Mp4StcoBox(Mp4BoxHeader header, ByteBuffer originalDataBuffer, int adjustment)
header
- header infooriginalDataBuffer
- data of box (doesnt include header data)adjustment
- public void printTotalOffset()
public void printAllOffsets()
public void adjustOffsets(int adjustment)
public int getNoOfOffSets()
public int getFirstOffSet()
public static Mp4StcoBox getStco(RandomAccessFile raf) throws IOException, CannotReadException
IOException
CannotReadException
public static void debugShowStcoInfo(RandomAccessFile raf) throws IOException, CannotReadException
IOException
CannotReadException
Copyright © 2005–2020 jthink.net. All rights reserved.