ftp.nice.ch/pub/next/developer/resources/libraries/SurfImage.1.0.NIHS.b.tar.gz#/SurfImage/Documentation/Classes/LWZDecoder.rtf

This is LWZDecoder.rtf in view mode; [Download] [Up]

paperh18648 margl-907 margr0 margt0 margb0fi0 ri0 ql sb0 f1 fs24 Copyright f3 'e3f1 1995 by Netsurfer, Inc., All Rights Reserved.  

pard s0 li2116 fi0 ri1007 ql tx2494 tx2872 tx3250 f1 fs28 fs16 
fs28 
fs16 
fs28 pard s5 li2116 fi0 ri1007 ql f0 b fs56 SurfGIFSupport.subproj/LWZDecoder 
fs16 





fs56 pard s17 li4888 fi-2771 ri1007 ql tx4888 f1 b0 fs28 fs16 fs28 f0 b fs28 Resource Collection 
fs16 s10 fs16 fs28 f0 b fs28 Declared In:	b0 fs28 f1 SurfGIFSupport.subproj/LWZDecoder
fs16 
fs28 pard s13 li1360 fi0 ri1007 ql f0 b fs36 fs16 




fs36 Defined Types
fs16  SYNOPSIS 
	code_sizeb0	typedef struct __LWZState {	
			/*" state used by LWZReadByte "*/
			int b code_sizeb0;
pard fs16 li2116 fi-389 tx2116 fc0 cf0 
f0 b fs20 DESCRIPTIONb0 fs28 	Lempel-Welch-Ziv decompression state (rather large). 
s13 li1360 fi0 ri1007 ql f0 b fs36 fs16 




fs36 Symbolic Constants
fs16  SYNOPSIS 
	MAX_LWZ_BITSb0	12
	FALSEb0	NO
	TRUEb0	YES
	LWZ_NO_ERRORb0	0
	LWZ_DONEb0	-1
	LWZ_NO_EODb0	-2
	LWZ_CIRCULAR_ERRb0	-3
	LWZ_BIT_OVERRUNb0	-4
	LWZ_DATA_BLOCK_ERRb0	-5
pard fs16 li2116 fi-389 tx2116 fc0 cf0 
f0 b fs20 DESCRIPTIONb0 fs28 	Maximum number of bits present in any single LWZ code. 
s13 li1360 fi0 ri1007 ql f0 b fs36 fs16 




fs36 Functions
fs16  SYNOPSIS 
	b LWZInitState(b0id decoder, LWZState *state, unsigned char codeSizeb )b0
pard fs16 li2116 fi-389 tx2116 fc0 cf0 
f0 b fs20 DESCRIPTIONb0 fs28 	Initialize decompressor. 


pardtx2116tx6148tx6794tx7440tx8086tx9378fs20li6148fi-4421fc0cf0 SYNOPSIS 
	b LWZReadByte(b0id decoder, LWZState *state, NXStream *streamb )b0
pard fs16 li2116 fi-389 tx2116 fc0 cf0 
f0 b fs20 DESCRIPTIONb0 fs28 	Decompress a single byte. 


pardtx2116tx6148tx6794tx7440tx8086tx9378fs20li6148fi-4421fc0cf0 SYNOPSIS 
	b GetDataBlock(b0id decoder, LWZState *state,NXStream *stream, unsigned char *bufb )b0
pard fs16 li2116 fi-389 tx2116 fc0 cf0 
f0 b fs20 DESCRIPTIONb0 fs28 	Read a block of compressed image data 


pardtx2116tx6148tx6794tx7440tx8086tx9378fs20li6148fi-4421fc0cf0 SYNOPSIS 
	b GetCode(b0id decoder, LWZState *state, NXStream *streamb )b0
pard fs16 li2116 fi-389 tx2116 fc0 cf0 
f0 b fs20 DESCRIPTIONb0 fs28 	Retrieve a single compression code. 

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.