|
From: | Vivek Paradkar |
Subject: | Re: [pdf-devel] CCITT Filters |
Date: | Sun, 7 Dec 2008 23:03:03 -0500 |
Hi,
TIFFClientOpen can be used in case of encoding data.
Panda is using TIFFClientOpen for encoding TIFF image.
But for decoding TIFFClientOpen calls TIFFReadDirectory for initialising internal TIFFDirectory structure. The structure data is used in TIFFReadEncodedStrip function
which decodes the input data into user buffer.
I can call TIFFClientOpen initially with write mode so that TIFFReadDirectory will not be called and change the mode to read for decoding later. Not all fields of structure TIFFDirectory can be updated through TIFFSetField function like td_nstrips etc.
which are used in TIFFReadEncodedStrip.
I checked code for fax2tiff utility which reads fax data and converts it into TIFF image, but in that they are directly accessing internal structures and directly calling decode function, instead of calling TIFFReadEncodedStrip.
Any suggestions.
Thanks and Rgrds,
Vivek ParadkarOn Fri, Dec 5, 2008 at 11:55 PM, Vivek Paradkar <address@hidden> wrote:
Hi Brad,Yes TIFFClientOpen can be used.
TIFFClientOpen is probably what you are looking for. That will allow you to
use your own file-like routines instead of operating on an actual file.
Thanks for suggestion
VivekOn Fri, Dec 5, 2008 at 6:25 PM, Brad Hards <address@hidden> wrote:
On Friday 05 December 2008 04:26:40 pm address@hidden wrote:TIFFClientOpen is probably what you are looking for. That will allow you to
> Current implementation of libTiff only supports encoding/decoding of TIFF
> Images
> read from a file.
>
> I will look into how panda is using libtiff library and will find out other
> alternative of using libTiff
> for applying filter on arbitrary array without integrating if possible.
use your own file-like routines instead of operating on an actual file.
Brad
fax2tiff.c
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |