[Gdal-dev] update TIFF compressed files in place
Julien Demaria
dem at acri-st.fr
Mon Sep 27 10:58:21 EDT 2004
Andrey,
I work with CVS GDAL and play with the new feature "update TIFF compressed
files in place" with gdalwarp ; my little tests work well except with a RGB
file with JPEG compression :
Warning 1: JPEGLib:Application transferred too many scanlines
ERROR 1: JPEGLib:Improper call to JPEG library in state 101
Warning 1: JPEGLib:Application transferred too many scanlines
ERROR 1: JPEGLib:Improper call to JPEG library in state 101
Warning 1: JPEGLib:Application transferred too many scanlines
and the resulting file is wrong.
If I want to create a pixel interleaved file (-co INTERLEAVE=PIXEL) I have
another error :
Warning 1: JPEGLib:Application transferred too many scanlines
gdalwarp: tif_jpeg.c:651: JPEGPreDecode: Assertion
`sp->cinfo.comm.is_decompressor' failed.
and the resulting file is all black...
Thanks in advance,
Julien
At 23:58 24/09/2004, Andrey Kiselev wrote:
>On Thu, Sep 23, 2004 at 01:41:31PM -0400, Larry Grill wrote:
> > I'm seeing a large performance hit with 3.7b vs. 3.6.1 compiled under
> > MS VC7 or VC6. Our the code section loops through rows doing,
> > TIFFReadEncodedStrip and TIFFWriteScanline. The perfomance difference
> > is approximately 30% and I can compare with a simple recompile of our
> > application linking one version of the library vs. the other.
>
>Larry,
>
>I think I know why the new libtiff is slower than the older one. I have
>implemented a new feature (update compressed files in place), but this
>results in perfomance degradation. I know how to improve things, so the
>fix will come shortly.
>
> Andrey
>--
>Andrey V. Kiselev
>Home phone: +7 812 5274898 ICQ# 26871517
>_______________________________________________
>Tiff mailing list
>Tiff at remotesensing.org
>http://xserve.flids.com/mailman/listinfo/tiff
More information about the Gdal-dev
mailing list