*TFDPACK*


Files:

AR.H
TFDPACK.C
IO.C
MAKETBL.C
MAKETREE.C
HUF.C
ENCODE.C
DECODE.C

Executable: TFDPACK.EXE

This programme was written as a beginner's exercise in 'C' programming.
It has been compiled with an old Borland C++ 4.5 compiler as  DOS using a Compact Model.

The type definitions are based on the original AR002 version for a 16bit model and
compiling with a Win32 model gives lots of warnings about conversion and loss of digits.
This is probably not critical but I don't yet fancy the challenge of restructuring the 
Huffman sections of the code. Defining the types will probably resolve this.

The programme is based on AR002 by Haruhiko Okumura. Only the main file has been rewritten and
commented to provide a suitable link to the encode and decode routines.

Firebird provided the detailed analysis of the file structure for the TF5### series of
PVRs which helped considerably.

Please free to rewrite, modify, recompile or distribute this programme.


email: dww @ berkswich.co.uk
or personal message via dwright on www.toppy.org.uk.


Version 1.3  Option to set block type and block size.


Make file :

OBJECTS = decode.o encode.o huf.o io.o maketbl.o maketree.o tfdpack.o

tfdpack.exe : $(OBJECTS)
	gcc -o tfdpack.exe $(OBJECTS) -lgcc -lc -lm 

clean:
	rm -f *.o
	
install: tfdpack.exe
	cp tfdpack.exe /usr/local/bin

decode.o	: decode.c
encode.o	: encode.c
huf.o		: huf.c
io.o		: io.c
maketbl.o	: maketbl.c
maketree.o	: maketree.c
tfdpack.o	: tfdpack.c




David Wright

Milford,Stafford,UK  03/03/2006