Top Fields Constructors Methods
org.eclipse.swt.internal.image

pack-priv final Class LZWCodec

extends Object
Class Inheritance
Imports
org.eclipse.swt.*, org.eclipse.swt.graphics.*

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv int
pack-priv byte[]
pack-priv int
pack-priv int
pack-priv int
pack-priv int
pack-priv int
pack-priv int
pack-priv int
pack-priv int
pack-priv ImageData
pack-priv int
pack-priv int
pack-priv int
pack-priv int
pack-priv LEDataInputStream
pack-priv boolean
pack-priv int
pack-priv byte[]
pack-priv ImageLoader
pack-priv static final int[]
pack-priv int
pack-priv LZWNode[]
pack-priv LEDataOutputStream
pack-priv int
pack-priv int[]
pack-priv int[]
pack-priv int[]
pack-priv int

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
copyRow(byte[] buf, int copies)

Copy duplicate rows of pixel values to the image.

pack-priv void
decode()

Decode the input.

public void
decode(LEDataInputStream inputStream, ImageLoader loader, ImageData image, boolean interlaced, int depth)

Decode the LZW-encoded bytes in the given byte stream into the given DeviceIndependentImage.

pack-priv void
encode()

Encode the image.

public void
encode(LEDataOutputStream byteStream, ImageData image)

Encode the bytes into the given byte stream from the given DeviceIndependentImage.

pack-priv int
encodeLoop()

Encoding loop broken out to allow early return.

pack-priv void
initializeForDecoding()

Initialize the receiver for decoding the given byte array.

pack-priv void
initializeForEncoding()

Initialize the receiver for encoding the given byte array.

pack-priv int
nextCode()

Answer the next code from the input byte array.

pack-priv int
nextPixel()

Answer the next pixel to encode in the image

pack-priv void
nextPixels(byte[] buf, int lineWidth)

Copy a row of pixel values from the image.

pack-priv void
nextPutCode(int aCode)

Output aCode to the output stream.

pack-priv void
nextPutPixels(byte[] buf)

Copy a row of pixel values to the image.

pack-priv int
readBlock()

Read a block from the byte stream.

pack-priv void
writeBlock()

Write a block to the byte stream.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bitsLeftback to summary
pack-priv int bitsLeft
bitsPerPixelback to summary
pack-priv int bitsPerPixel
blockback to summary
pack-priv byte[] block
blockIndexback to summary
pack-priv int blockIndex
blockSizeback to summary
pack-priv int blockSize
clearCodeback to summary
pack-priv int clearCode
codeMaskback to summary
pack-priv int codeMask
codeSizeback to summary
pack-priv int codeSize
currentByteback to summary
pack-priv int currentByte
currentSlotback to summary
pack-priv int currentSlot
endCodeback to summary
pack-priv int endCode
imageback to summary
pack-priv ImageData image
imageHeightback to summary
pack-priv int imageHeight
imageWidthback to summary
pack-priv int imageWidth
imageXback to summary
pack-priv int imageX
imageYback to summary
pack-priv int imageY
inputStreamback to summary
pack-priv LEDataInputStream inputStream
interlacedback to summary
pack-priv boolean interlaced
lineback to summary
pack-priv int line
lineArrayback to summary
pack-priv byte[] lineArray
loaderback to summary
pack-priv ImageLoader loader
MASK_TABLEback to summary
pack-priv static final int[] MASK_TABLE
newCodesback to summary
pack-priv int newCodes
nodeStackback to summary
pack-priv LZWNode[] nodeStack
outputStreamback to summary
pack-priv LEDataOutputStream outputStream
passback to summary
pack-priv int pass
prefixback to summary
pack-priv int[] prefix
stackback to summary
pack-priv int[] stack
suffixback to summary
pack-priv int[] suffix
topSlotback to summary
pack-priv int topSlot

Constructor Detail

LZWCodecback to summary
pack-priv LZWCodec()

Method Detail

copyRowback to summary
pack-priv void copyRow(byte[] buf, int copies)

Copy duplicate rows of pixel values to the image. This is to fill in rows if the image is interlaced.

decodeback to summary
pack-priv void decode()

Decode the input.

decodeback to summary
public void decode(LEDataInputStream inputStream, ImageLoader loader, ImageData image, boolean interlaced, int depth)

Decode the LZW-encoded bytes in the given byte stream into the given DeviceIndependentImage.

encodeback to summary
pack-priv void encode()

Encode the image.

encodeback to summary
public void encode(LEDataOutputStream byteStream, ImageData image)

Encode the bytes into the given byte stream from the given DeviceIndependentImage.

encodeLoopback to summary
pack-priv int encodeLoop()

Encoding loop broken out to allow early return.

initializeForDecodingback to summary
pack-priv void initializeForDecoding()

Initialize the receiver for decoding the given byte array.

initializeForEncodingback to summary
pack-priv void initializeForEncoding()

Initialize the receiver for encoding the given byte array.

nextCodeback to summary
pack-priv int nextCode()

Answer the next code from the input byte array.

nextPixelback to summary
pack-priv int nextPixel()

Answer the next pixel to encode in the image

nextPixelsback to summary
pack-priv void nextPixels(byte[] buf, int lineWidth)

Copy a row of pixel values from the image.

nextPutCodeback to summary
pack-priv void nextPutCode(int aCode)

Output aCode to the output stream.

nextPutPixelsback to summary
pack-priv void nextPutPixels(byte[] buf)

Copy a row of pixel values to the image.

readBlockback to summary
pack-priv int readBlock()

Read a block from the byte stream. Return the number of bytes read. Throw an exception if the block could not be read.

writeBlockback to summary
pack-priv void writeBlock()

Write a block to the byte stream. Throw an exception if the block could not be written.