Index: source/libvpx/vpx_dsp/mips/common_dspr2.c |
diff --git a/source/libvpx/vpx_dsp/vpx_filter.h b/source/libvpx/vpx_dsp/mips/common_dspr2.c |
similarity index 50% |
copy from source/libvpx/vpx_dsp/vpx_filter.h |
copy to source/libvpx/vpx_dsp/mips/common_dspr2.c |
index 2617febf3b3d506bf77b90df47f58ed30b09766c..b22f084a02319a79f626f86b760797d903e10fc5 100644 |
--- a/source/libvpx/vpx_dsp/vpx_filter.h |
+++ b/source/libvpx/vpx_dsp/mips/common_dspr2.c |
@@ -8,27 +8,23 @@ |
* be found in the AUTHORS file in the root of the source tree. |
*/ |
-#ifndef VPX_DSP_VPX_FILTER_H_ |
-#define VPX_DSP_VPX_FILTER_H_ |
+#include "vpx_dsp/mips/common_dspr2.h" |
-#include "vpx/vpx_integer.h" |
+#if HAVE_DSPR2 |
+uint8_t vpx_ff_cropTbl_a[256 + 2 * CROP_WIDTH]; |
+uint8_t *vpx_ff_cropTbl; |
+void vpx_dsputil_static_init(void) { |
+ int i; |
-#ifdef __cplusplus |
-extern "C" { |
-#endif |
- |
-#define FILTER_BITS 7 |
+ for (i = 0; i < 256; i++) vpx_ff_cropTbl_a[i + CROP_WIDTH] = i; |
-#define SUBPEL_BITS 4 |
-#define SUBPEL_MASK ((1 << SUBPEL_BITS) - 1) |
-#define SUBPEL_SHIFTS (1 << SUBPEL_BITS) |
-#define SUBPEL_TAPS 8 |
+ for (i = 0; i < CROP_WIDTH; i++) { |
+ vpx_ff_cropTbl_a[i] = 0; |
+ vpx_ff_cropTbl_a[i + CROP_WIDTH + 256] = 255; |
+ } |
-typedef int16_t InterpKernel[SUBPEL_TAPS]; |
+ vpx_ff_cropTbl = &vpx_ff_cropTbl_a[CROP_WIDTH]; |
+} |
-#ifdef __cplusplus |
-} // extern "C" |
#endif |
- |
-#endif // VPX_DSP_VPX_FILTER_H_ |