com.openpcl.pclrenderimage.render
Class PriDecompressPclBytes

java.lang.Object
  extended by com.openpcl.pclrenderimage.render.PriDecompressPclBytes

public class PriDecompressPclBytes
extends Object

Decompress raster bytes to a byte array.

Version:
Created 6/6/2006
Author:
howard

Constructor Summary
PriDecompressPclBytes()
           
 
Method Summary
 byte[] decompressDR(byte[] data, int startOffset, int width, int count)
          Returns decompressed Delra Row data.
 byte[] decompressPlain(byte[] data, int startOffset, int width, int count)
          Decompress Plain.
 byte[] decompressRL(byte[] data, int startOffset, int width, int count)
          Returns decompressed Run Lenght data.
 byte[] decompressTIFF(byte[] data, int startOffset, int width, int count)
          Decompress Tiff.
 int getmMaxUncompressedByteCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PriDecompressPclBytes

public PriDecompressPclBytes()
Method Detail

getmMaxUncompressedByteCount

public int getmMaxUncompressedByteCount()

decompressPlain

public byte[] decompressPlain(byte[] data,
                              int startOffset,
                              int width,
                              int count)
Decompress Plain. Returns the same data because it isn't compressed.

Parameters:
data - = data to decompress
startOffset - = data start offset
width - = data width
count - = data element count
Returns:
Decompressed data in all cases is the same data.

decompressTIFF

public byte[] decompressTIFF(byte[] data,
                             int startOffset,
                             int width,
                             int count)
Decompress Tiff. Returns decompressed Tiff data.

Parameters:
data - = data to decompress
startOffset - = data start offset
width - = data width
count - = data element count
Returns:
Decompressed data

decompressRL

public byte[] decompressRL(byte[] data,
                           int startOffset,
                           int width,
                           int count)
Returns decompressed Run Lenght data.

Parameters:
data - data to decompress
startOffset - data start offset
width - data width
count - data element count
Returns:
Decompressed data.

decompressDR

public byte[] decompressDR(byte[] data,
                           int startOffset,
                           int width,
                           int count)
Returns decompressed Delra Row data.

Parameters:
data - data to decompress
startOffset - data start offset
width - data width
count - data element count
Returns:
Decompressed data.


OpenPCL http://www.openpcl.com