org.jcodec.containers.mkv.elements
Class BlockElement
java.lang.Object
org.jcodec.containers.mkv.ebml.Element
org.jcodec.containers.mkv.ebml.BinaryElement
org.jcodec.containers.mkv.elements.BlockElement
public class BlockElement
- extends BinaryElement
frameOffsets
public long[] frameOffsets
frameSizes
public long[] frameSizes
trackNumber
public long trackNumber
timecode
public int timecode
absoluteTimecode
public long absoluteTimecode
keyFrame
public boolean keyFrame
headerSize
public int headerSize
lacing
public String lacing
discardable
public boolean discardable
lacingPresent
public boolean lacingPresent
BlockElement
public BlockElement(byte[] type)
copy
public static BlockElement copy(BlockElement old)
keyFrame
public static BlockElement keyFrame(long trackNumber,
int timecode,
byte[] frame)
readData
public void readData(FileChannel source)
throws IOException
- Description copied from class:
Element
- Read the element data
- Overrides:
readData in class Element
- Throws:
IOException
readXiphLaceSizes
public static int readXiphLaceSizes(ByteBuffer bb,
long[] sizes,
int size,
int preLacingHeaderSize)
readEBMLLaceSizes
public static int readEBMLLaceSizes(ByteBuffer source,
long[] sizes,
int size,
int preLacingHeaderSize)
toString
public String toString()
- Overrides:
toString in class Object
getFrames
public byte[][] getFrames(FileChannel source)
throws IOException
- Throws:
IOException
readFrames
public void readFrames(FileChannel source)
throws IOException
- Throws:
IOException
mux
public ByteBuffer mux()
- Overrides:
mux in class Element
seekAndReadContent
public void seekAndReadContent(FileChannel source)
throws IOException
- Throws:
IOException
getSize
public long getSize()
- Get the total size of this element
- Overrides:
getSize in class Element
getDataSize
public long getDataSize()
calcEbmlLacingDiffs
public static long[] calcEbmlLacingDiffs(long[] laceSizes)
muxEbmlLacing
public static byte[] muxEbmlLacing(long[] laceSizes)
muxXiphLacing
public static byte[] muxXiphLacing(long[] laceSizes)
Copyright © 2013. All Rights Reserved.