[poppler] [RFC] Add option to keep alpha channel to Qt frontends
Adam Reichold
adam.reichold at t-online.de
Fri Jul 3 17:09:30 PDT 2015
Hello again,
Am 04.07.2015 um 01:58 schrieb Albert Astals Cid:
> But i guess feeding that to QImage won't be nice since it basically means
> reconstructing a XRGB8 buffer with the RGB8 buffer and the alpha channel, is
> that right?
Exactly, you still get the RGB8 and alpah channel buffers from Splash,
but you really have to convert RGB8 to XBGR8 again to make use of the
alpha channel so it seems more sensible to render within XBGR8 from the
beginning if you intend you have an alpha channel available to QImage in
the end. (As just inserting the alpha channel into XBGR8 images is
almost as slow as RGB8 rendering, I cannot imagine rendering RGB8 and
then transfering this into a ARGB32 QImage using the additional alpha
channel being any faster than rendering XBGR8 in the first place?)
Best regards, Adam.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20150704/b5ee6849/attachment.sig>
More information about the poppler
mailing list