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
diff --git a/jddctmgr.c b/jddctmgr.c
index 2bb70a1..e3fabe2 100644
--- a/jddctmgr.c
+++ b/jddctmgr.c
@@ -133,6 +133,11 @@
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 @@
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;