pdf-devel
[Top][All Lists]
Advanced

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

[pdf-devel] JBIG2 unit tests


From: Georg Gottleuber
Subject: [pdf-devel] JBIG2 unit tests
Date: Wed, 14 Dec 2011 19:20:17 +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 composed unit test cases for JBIG2:

1) test stream from ISO/IEC 14492 draft annex H with Huffman & MMR
coding: this fails because of missing halftone support from jbig2dec
2) test stream from ISO/IEC 14492 draft annex H with arithmetic coding
(equal to torture/testdata/TD0000{1,2,3}): fails too (same reason)

Because the above test cases with halftones will fail as long as
jbig2dec (library we use) is unable to handle halftones, further tests
are separated as different test cases. So the additional test cases
are sensitive while first two are failing:

3) same as 2) but without halftone segment: checks ok
4) invalid streams (exchanged global and page segments): at the moment
they fail because of a NULL-pointer dereference from jbig2dec. I
reported a bug (http://bugs.ghostscript.com/show_bug.cgi?id=692743)
and hope my patch is merged soon.

A patch for the JBIG2 unit test cases is attached. Please comment or
merge it.

Regards,
Georg

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

iEYEARECAAYFAk7o6OEACgkQ5sLITM1qIaKGtACcCmQAfGuCJdPoz/xAgLvcmRCK
h0QAn2obmyLEk2eD71LbCmnKCBv+J/R7
=SaPN
-----END PGP SIGNATURE-----

Attachment: jbig2_unit_tests.patch
Description: Text Data


reply via email to

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