bits
Class JbigBitSequenceCompressor

java.lang.Object
  extended by bits.JbigBitSequenceCompressor

public class JbigBitSequenceCompressor
extends java.lang.Object

Author:
Jonathan L Dautrich Jr.

Constructor Summary
JbigBitSequenceCompressor()
           
 
Method Summary
static BitSequence compress(BitSequence sequence, int pixelHeight, int pixelWidth)
          Compresses the specified BitSequence, interpreted as a pixelWidth x pixelHeight monochrome bitmap, using the JBIG2 compressor.
static BitSequence decompress(BitSequence sequence)
          Decompresses the specified JBIG2 bit sequence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JbigBitSequenceCompressor

public JbigBitSequenceCompressor()
Method Detail

compress

public static BitSequence compress(BitSequence sequence,
                                   int pixelHeight,
                                   int pixelWidth)
Compresses the specified BitSequence, interpreted as a pixelWidth x pixelHeight monochrome bitmap, using the JBIG2 compressor. Creates a monochrome bitmap, writes it to file, and then runs an executable to perform JBIG2 compression.

Parameters:
sequence -
pixelWidth -
pixelHeight -
Returns:

decompress

public static BitSequence decompress(BitSequence sequence)
Decompresses the specified JBIG2 bit sequence.

Parameters:
sequence -
pixelHeight -
pixelWidth -
Returns: