aboutsummaryrefslogtreecommitdiff
path: root/Android.mk
diff options
context:
space:
mode:
authorChia-chi Yeh <chiachi@android.com>2010-12-10 18:11:00 +0800
committerChia-chi Yeh <chiachi@android.com>2010-12-10 20:52:30 +0800
commit4736a38e2514bfe50b0241d2053befea82822944 (patch)
treede1f050754123013663bae7c0794afbe27b512b8 /Android.mk
parentc2cf571b568278c7a347e656bfd2522378b7112d (diff)
downloadjpeg-4736a38e2514bfe50b0241d2053befea82822944.tar.gz
libjpeg: Use the new fast-and-accurate IDCT method for ARMv6+ devices.
As another AA&N implementation, it runs 9-10% faster than jidctfst.S and 11-15% faster than jidctfst.c. As another IDCT method, it runs 17-20% faster than JDCT_ISLOW method and provides the same accuracy or even better. Change-Id: I81783c310d6dac5aaf84c03a4cf20662f466564c
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk
index 1b2399d..2670652 100644
--- a/Android.mk
+++ b/Android.mk
@@ -11,7 +11,7 @@ LOCAL_SRC_FILES := \
jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c \
jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c \
jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c \
- jquant2.c jutils.c jmemmgr.c
+ jquant2.c jutils.c jmemmgr.c armv6_idct.S
# use ashmem as libjpeg decoder's backing store
LOCAL_CFLAGS += -DUSE_ANDROID_ASHMEM
@@ -30,6 +30,9 @@ LOCAL_CFLAGS += -O3 -fstrict-aliasing -fprefetch-loop-arrays
# enable tile based decode
LOCAL_CFLAGS += -DANDROID_TILE_BASED_DECODE
+# enable armv6 idct assembly
+LOCAL_CFLAGS += -DANDROID_ARMV6_IDCT
+
LOCAL_MODULE:= libjpeg
LOCAL_SHARED_LIBRARIES := \