public class Mp4StcoBox extends AbstractMp4Box
Modifier and Type | Field and Description |
---|---|
private int |
firstOffSet |
static int |
NO_OF_OFFSETS_LENGTH |
static int |
NO_OF_OFFSETS_POS |
private int |
noOfOffSets |
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,
java.nio.ByteBuffer buffer)
Construct box from data and show contents
|
Mp4StcoBox(Mp4BoxHeader header,
java.nio.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(java.io.RandomAccessFile raf) |
int |
getFirstOffSet()
The value of the first offset
|
int |
getNoOfOffSets()
The number of offsets
|
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
private int noOfOffSets
private int firstOffSet
public Mp4StcoBox(Mp4BoxHeader header, java.nio.ByteBuffer buffer)
header
- header infobuffer
- data of box (doesnt include header data)public Mp4StcoBox(Mp4BoxHeader header, java.nio.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 void debugShowStcoInfo(java.io.RandomAccessFile raf) throws java.io.IOException, CannotReadException
java.io.IOException
CannotReadException
Copyright © 2005-2013 java.net. All Rights Reserved.