Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Unified Diff: source/libvpx/vpx_dsp/mips/common_dspr2.c

Issue 1302353004: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/libvpx/vpx_dsp/inv_txfm.c ('k') | source/libvpx/vpx_dsp/mips/convolve2_avg_dspr2.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « source/libvpx/vpx_dsp/inv_txfm.c ('k') | source/libvpx/vpx_dsp/mips/convolve2_avg_dspr2.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698