Hi Brad,

Yes I agreeTIFF Image can be decoded without using internal structures but I
want to decode just CCITT G3/G4 formats.

As you suggest for decoding just CCITT format libtiff might not be a good
choice.
Is there any other library which provides support for CCITT compression? I
searched for it but couldn't find one.

I will look into KDE okular code though.

Thanks and Regards,
Vivek Paradkar

On Sat, Dec 13, 2008 at 4:15 AM, Brad Hards <[email protected]> wrote:

> 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