summaryrefslogtreecommitdiff
path: root/jddctmgr.c
diff options
context:
space:
mode:
authorDRC <dcommander@users.sourceforge.net>2013-09-27 17:51:08 +0000
committerDRC <dcommander@users.sourceforge.net>2013-09-27 17:51:08 +0000
commite500591710cd1ee2a8dabb0e291a31448ace7077 (patch)
tree3a0edd10698929d846fd906616623ae1f3100613 /jddctmgr.c
parent2ccf4d1a70d6311484f2f8aeb386b2ed747ad95c (diff)
SIMD-accelerated 3/4 and 3/2 decompression scaling for MIPS DSPr2
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1047 632fc199-4ca6-4c93-a231-07263d6284db
Diffstat (limited to 'jddctmgr.c')
-rw-r--r--jddctmgr.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/jddctmgr.c b/jddctmgr.c
index 2bb70a1..e3fabe2 100644
--- a/jddctmgr.c
+++ b/jddctmgr.c
@@ -133,6 +133,11 @@ start_pass (j_decompress_ptr cinfo)
method = JDCT_ISLOW; /* jidctint uses islow-style table */
break;
case 6:
+#if defined(__mips__)
+ if (jsimd_can_idct_6x6())
+ method_ptr = jsimd_idct_6x6;
+ else
+#endif
method_ptr = jpeg_idct_6x6;
method = JDCT_ISLOW; /* jidctint uses islow-style table */
break;
@@ -188,6 +193,11 @@ start_pass (j_decompress_ptr cinfo)
method = JDCT_ISLOW; /* jidctint uses islow-style table */
break;
case 12:
+#if defined(__mips__)
+ if (jsimd_can_idct_12x12())
+ method_ptr = jsimd_idct_12x12;
+ else
+#endif
method_ptr = jpeg_idct_12x12;
method = JDCT_ISLOW; /* jidctint uses islow-style table */
break;