[Poppler-bugs] [Bug 58906] 0.22.0 does not find openjpeg-2.0.0

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Sep 3 05:38:48 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=58906

--- Comment #2 from Thomas Freitag <Thomas.Freitag at alfa.de> ---
Created attachment 85114
  --> https://bugs.freedesktop.org/attachment.cgi?id=85114&action=edit
new attempt for openjpeg2 support

When try to render  when rendering
http://www.eci.org/_media/downloads/altona_test_suite/eci_altona-test-suite-v2_technical2_x4.pdf
with Your patch for openjpeg2, I got a huge number of error messages and no one
of the jp2 compressed images were shown. I tried it also with the actual master
version of openjpeg 2.x available over svn, but then I got immediately an
assert.

1. I looked a little bit around and found out, that we have to set the
user_data_length with opj_stream_set_user_data_length to avoid the assert,
therefore I went back to read the complete jp2 stream into memory first to get
a correct length for the stream.
2. Then I discovered that we have to implement the skip_function and have to
return always the input value, even if it tries to skip over the end of the
stream.

With these corrections I was able to render the PDF nearly completely, only two
images are missing in the rendered output. But these two images are images in
LAB colorspace, and it seems, as if openjpeg has no support for LAB images. 

@Adrian: I don't know which PDFs causes Your regressions, but I think that
there is a great chance that my patch solves that, too. So it would be nice if
You can tell me what are the problematic PDFs and / or test my patch with these
PDF again.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20130903/e28e91a4/attachment.html>


More information about the Poppler-bugs mailing list