aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-09-04 19:18:45 -0700
committerMathias Agopian <mathias@google.com>2009-09-04 19:18:45 -0700
commit4e7198a44d57ac3d4a3220c3ba671362fa8b46c9 (patch)
treeb98e2b81198a37bacd603c2328eddfa2d26f8d24
parent9e8ea14087bf3715d2f19a8a850100b1e25a9987 (diff)
downloadjpeg-4e7198a44d57ac3d4a3220c3ba671362fa8b46c9.tar.gz
-rw-r--r--jmorecfg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/jmorecfg.h b/jmorecfg.h
index d699a2c..236bbcb 100644
--- a/jmorecfg.h
+++ b/jmorecfg.h
@@ -20,7 +20,7 @@
#define ANDROID_RGB
#ifdef ANDROID_RGB
-#define PACK_SHORT_565(r,g,b) ((((r)<<8)&0xf800)|(((g)<<3)&0x7C0)|((b)>>3))
+#define PACK_SHORT_565(r,g,b) ((((r)<<8)&0xf800)|(((g)<<3)&0x7E0)|((b)>>3))
#define PACK_TWO_PIXELS(l,r) ((r<<16) | l)
#define PACK_NEED_ALIGNMENT(ptr) (((int)(ptr))&3)
#define WRITE_TWO_PIXELS(addr, pixels) do { \