Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
libjpeg-turbo
/
f57bae0dddcdd5b30f9ce97b45436a585159af7a
/
jdmrg565.c
72a3cc0
Fix issues with RGB565 color conversion on big endian machines. The RGB565 routines are now abstracted in a separate file, with separate little-endian and big-endian versions defined at compile time through the use of macros (this is similar to how the colorspace extension routines work.) This allows big-endian machines to take advantage of the same performance optimizations as little-endian machines, and it retains the performance on little-endian machines, since the conditional branch for endianness is at a very coarse-grained level.
by DRC
ยท 10 years ago