net.sf.ext.mediamanager.ebm.matroska
Class MatroskaBlock

java.lang.Object
  extended by net.sf.ext.mediamanager.ebml.Element
      extended by net.sf.ext.mediamanager.ebml.BinaryElement
          extended by net.sf.ext.mediamanager.ebm.matroska.MatroskaBlock

public class MatroskaBlock
extends BinaryElement

Title: JEBML

Description: Java Classes to Read EBML Elements

Copyright: Copyright (c) 2004 Jory Stone

Version:
1.0
Author:
jcsston

Field Summary
protected  int BlockTimecode
           
protected  int HeaderSize
           
protected  int[] Sizes
           
protected  int TrackNo
           
 
Fields inherited from class net.sf.ext.mediamanager.ebml.Element
data, dataRead, parent, size, type, typeInfo
 
Constructor Summary
MatroskaBlock(byte[] type)
           
 
Method Summary
 long getAdjustedBlockTimecode(long ClusterTimecode, long TimecodeScale)
           
 int getBlockTimecode()
           
 byte[] getFrame(int frame)
           
 int getFrameCount()
           
 int getTrackNo()
           
 void parseBlock(DataSource source)
           
 void readData(DataSource source)
           
 int[] readEBMLLaceSizes(DataSource source, short LaceCount)
           
 int[] readXiphLaceSizes(DataSource source, short LaceCount)
           
 
Methods inherited from class net.sf.ext.mediamanager.ebml.BinaryElement
codedSizeLength, getData, getMinByteSize, getMinByteSizeUnsigned, getMinSizeLength, getSize, getType, makeEbmlCode, makeEbmlCodedSize, packInt, packIntUnsigned, setData, setMinSizeLength, setSize, setType, toByteArray
 
Methods inherited from class net.sf.ext.mediamanager.ebml.Element
EBMLCodedSizeLength, EBMLSignedCodedSizeLength, equals, equals, getElementType, getParent, setElementType, setParent, skipData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Sizes

protected int[] Sizes

HeaderSize

protected int HeaderSize

BlockTimecode

protected int BlockTimecode

TrackNo

protected int TrackNo
Constructor Detail

MatroskaBlock

public MatroskaBlock(byte[] type)
Method Detail

readData

public void readData(DataSource source)
Overrides:
readData in class Element

parseBlock

public void parseBlock(DataSource source)

readEBMLLaceSizes

public int[] readEBMLLaceSizes(DataSource source,
                               short LaceCount)

readXiphLaceSizes

public int[] readXiphLaceSizes(DataSource source,
                               short LaceCount)

getFrameCount

public int getFrameCount()

getFrame

public byte[] getFrame(int frame)

getAdjustedBlockTimecode

public long getAdjustedBlockTimecode(long ClusterTimecode,
                                     long TimecodeScale)

getTrackNo

public int getTrackNo()

getBlockTimecode

public int getBlockTimecode()