On Monday 08 December 2008 03:03:03 pm Vivek Paradkar wrote:
> The problem in case of decoding as mentioned in my previous mail is that
> all  it's internal structure won't get initialised properly since we are
> not working with proper TIFF Image  format.
> libTiff is designed to decode a TIFF image, if we want to decode non TIFF
> source then we will have to access it's internal structures.
I'm sure I'm not following this too well (been on holidays, my mind is too 
relaxed :-)) Are you saying that you can't decode any TIFF image without 
using internal structures? Or are you saying you want to use libtiff to 
decode just the CCITT G3/G4 formats?

If you just want something that can do G3/G4 format, perhaps libtiff might not 
be the right answer. KDE's okular viewer has code extracted from the viewfax 
utility. See faxexpand.cpp and faxexpand.h in 
http://websvn.kde.org/trunk/KDE/kdegraphics/okular/generators/fax/
(it isn't really C++ though).

[There is a serious problem with copying internal libtiff headers - they 
aren't stable. If you want to copy the headers, you'll have to fork the 
library and include the whole thing.]

Brad





Reply via email to