Created attachment 40801 [details] [review] use A1 instead of A8 in drawImageMask Poppler is using an A8 image surface to store an A1 mask. The cairo PDF surface can use an A1 mask a lot more efficiently as it can output a stencil mask instead of a softmask.
I'm a bit concerned about WORDS_BIGENDIAN, where is supposed to be defined?
(In reply to comment #1) > I'm a bit concerned about WORDS_BIGENDIAN, where is supposed to be defined? I found it is defined by autoconf. I had a look to see if there is a cmake equivalent. According to the cmake manual something like this should work: test_big_endian(WORDS_BIGENDIAN) but as I don't have any big endian machines I can't test it.
Created attachment 41095 [details] [review] use A1 instead of A8 for imagemask Updated patch with autoconf and cmake tests for WORDS_BIGENDIAN.
@Carlos: Tested the pdf rendering (to png) and the results are the same as expected.
Pushed to git master, thanks Adrian!
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.