AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2002.09.05 09:56 "Decode group4", by Jan Edmundson
2002.09.05 10:21 "Re: Decode group4", by Frank D. Cringle
2002.09.05 11:56 "Re: Decode group4", by Scott Wagner
2002.09.05 16:34 "Re: Decode group4", by Lee Howard
2002.09.05 17:45 "Re: Decode group4", by Frank D. Cringle
2002.09.05 18:02 "Re: Decode group4", by Lee Howard
2002.09.09 12:27 "Re: Decode group4", by Jan Edmundson
2002.09.05 13:16 "Re: Decode group4", by Peter Nielsen

2002.09.05 10:21 "Re: Decode group4", by Frank D. Cringle

I am currently in the process of creating a class implementation of the fax group 4 codec.

In which language? C++?

I have a class namned CCodec with 2 methods Decode and Encode. I am focusing on the decoding bit at the moment. I have a hypothesis that the Decode method would be sufficently declared as follows:

Decode( BYTE* pDest, DWORD dwDestSize, BYTE* pSrc, DWORD dwSrcSize, DWORD dwRowSize );

Dest should be uncompressed and Src should be compressed.

That assumes you will always be decoding the entire image. You need a different interface if line-at-a-time decoding is or becomes a requirement.

Is there someone out there that has a special intrest in the tiff decoding?

The roots of the libtiff g3/g4 decoder go back to my code in viewfax.

I have ripped code out of libtiff but would like to get a clearer picture of what some of the variables is for in libtiff group 4 decoding.

Feel free to ask questions. Note that the code was originally developed in the era of 16MHz machines and the aim was to display faxes at acceptable interactive rates, rather than maintainability or understandability.

Frank Cringle,      fdc@cliwe.ping.de
voice: (+49 7745) 928759; fax: 928761