aboutsummaryrefslogtreecommitdiff
path: root/vp8/decoder/mips/mips_dsystemdependent.c
diff options
context:
space:
mode:
Diffstat (limited to 'vp8/decoder/mips/mips_dsystemdependent.c')
-rwxr-xr-xvp8/decoder/mips/mips_dsystemdependent.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/vp8/decoder/mips/mips_dsystemdependent.c b/vp8/decoder/mips/mips_dsystemdependent.c
new file mode 100755
index 000000000..bb20cc7ec
--- /dev/null
+++ b/vp8/decoder/mips/mips_dsystemdependent.c
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree. An additional intellectual property rights grant can be found
+ * in the file PATENTS. All contributing project authors may
+ * be found in the AUTHORS file in the root of the source tree.
+ */
+
+
+#include "vpx_ports/config.h"
+#include "blockd.h"
+#include "pragmas.h"
+#include "postproc.h"
+#include "dboolhuff.h"
+#include "dequantize.h"
+#include "onyxd_int.h"
+
+void vp8_arch_mips_decode_init(VP8D_COMP *pbi)
+{
+#if CONFIG_RUNTIME_CPU_DETECT
+
+#ifdef MIPS_DSP_REV
+#if (MIPS_DSP_REV>=2)
+
+ pbi->dequant.idct_add = vp8_dequant_idct_add_mips;
+ pbi->dequant.dc_idct_add = vp8_dequant_dc_idct_add_mips;
+ pbi->dequant.dc_idct_add_y_block = vp8_dequant_dc_idct_add_y_block_mips;
+ pbi->dequant.idct_add_y_block = vp8_dequant_idct_add_y_block_mips;
+ pbi->dequant.idct_add_uv_block = vp8_dequant_idct_add_uv_block_mips;
+
+#endif
+#endif
+#endif
+}