public class MkvBlock extends EbmlBin
Modifier and Type | Field and Description |
---|---|
boolean |
_keyFrame |
long |
absoluteTimecode |
static byte[] |
BLOCK_ID |
boolean |
discardable |
int[] |
frameOffsets |
ByteBuffer[] |
frames |
int[] |
frameSizes |
int |
headerSize |
String |
lacing |
boolean |
lacingPresent |
static byte[] |
SIMPLEBLOCK_ID |
int |
timecode |
long |
trackNumber |
dataLen, dataOffset, id, offset, parent, type, typeSizeLength
Constructor and Description |
---|
MkvBlock(byte[] type) |
Modifier and Type | Method and Description |
---|---|
static long[] |
calcEbmlLacingDiffs(int[] laceSizes) |
static MkvBlock |
copy(MkvBlock old) |
static long |
ebmlDecode(ByteBuffer bb) |
static long |
ebmlDecodeSigned(ByteBuffer source) |
ByteBuffer |
getData() |
int |
getDataSize() |
ByteBuffer[] |
getFrames(ByteBuffer source) |
static MkvBlock |
keyFrame(long trackNumber,
int timecode,
ByteBuffer frame) |
static byte[] |
muxEbmlLacing(int[] laceSizes) |
static byte[] |
muxXiphLacing(int[] laceSizes) |
void |
read(ByteBuffer source) |
void |
readChannel(SeekableByteChannel is) |
static int |
readEBMLLaceSizes(ByteBuffer source,
int[] sizes,
int size,
int preLacingHeaderSize) |
void |
readFrames(ByteBuffer source) |
static int |
readXiphLaceSizes(ByteBuffer bb,
int[] sizes,
int size,
int preLacingHeaderSize) |
void |
seekAndReadContent(FileChannel source) |
long |
size()
Get the total size of this element
|
String |
toString() |
public int[] frameOffsets
public int[] frameSizes
public long trackNumber
public int timecode
public long absoluteTimecode
public boolean _keyFrame
public int headerSize
public String lacing
public boolean discardable
public boolean lacingPresent
public ByteBuffer[] frames
public static final byte[] BLOCK_ID
public static final byte[] SIMPLEBLOCK_ID
public static MkvBlock keyFrame(long trackNumber, int timecode, ByteBuffer frame)
public void readChannel(SeekableByteChannel is) throws IOException
readChannel
in class EbmlBin
IOException
public void read(ByteBuffer source)
public static int readXiphLaceSizes(ByteBuffer bb, int[] sizes, int size, int preLacingHeaderSize)
public static int readEBMLLaceSizes(ByteBuffer source, int[] sizes, int size, int preLacingHeaderSize)
public ByteBuffer[] getFrames(ByteBuffer source) throws IOException
IOException
public void readFrames(ByteBuffer source) throws IOException
IOException
public ByteBuffer getData()
public void seekAndReadContent(FileChannel source) throws IOException
IOException
public int getDataSize()
public static long ebmlDecode(ByteBuffer bb)
public static long ebmlDecodeSigned(ByteBuffer source)
public static long[] calcEbmlLacingDiffs(int[] laceSizes)
public static byte[] muxEbmlLacing(int[] laceSizes)
public static byte[] muxXiphLacing(int[] laceSizes)
Copyright © 2019. All rights reserved.