pdf-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pdf-devel] Bugfix in prediction filter


From: Georg Gottleuber
Subject: [pdf-devel] Bugfix in prediction filter
Date: Thu, 10 Nov 2011 12:08:56 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20111101 Thunderbird/7.0.1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I used prediction filtering with real images and found a great
mistake: parameters for predictor types inside PDFs are
1,2,10,11,...,14 (see ISO 32000-1) but values for writing inside the
PNG stream are 0,1,2,3,4 (see RFC-2083).

So we have to add/substract 10 (or PDF_STM_F_PREDDEC_PNG_NONE, which
is defined to 10).

A patch for this bug is attached. Please merge it.

Regards,
Georg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk67sMcACgkQ5sLITM1qIaJhAwCbBBcok7aJHN8RzNe/UoZ+zrdS
RlMAniWDuPo8gK15cCqaScMmB84WOTig
=aTJW
-----END PGP SIGNATURE-----

Attachment: pdf-stm-f-pred.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]