[cairo] Trouble displaying a jpeg image
Siarhei Siamashka
siarhei.siamashka at gmail.com
Sat Jan 7 20:10:05 PST 2012
On Sun, Jan 8, 2012 at 5:14 AM, Jeffrey Britton <jeffb0098 at gmail.com> wrote:
> Thanks.
>
> In case it helps anybody, the following ended up being the fastest and most
> direct method that I could work out.
> Nonetheless, the conversion from rgb to bgra is quite slow(150ms on my
> single core 2.9Ghz machine) and should be done in 'C'.
> I tried Cython with no signifcant improvement.
Or if the performance actually does matter, then BGRA should be
directly converted from the decoded YUV data without the mostly
useless intermediate 24-bit RGB representation. Like libjpeg-turbo can
do with JCS extensions.
--
Best regards,
Siarhei Siamashka
More information about the cairo
mailing list