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

Side by Side 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, 3 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2015 The WebM project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef VPX_DSP_VPX_FILTER_H_ 11 #include "vpx_dsp/mips/common_dspr2.h"
12 #define VPX_DSP_VPX_FILTER_H_
13 12
14 #include "vpx/vpx_integer.h" 13 #if HAVE_DSPR2
14 uint8_t vpx_ff_cropTbl_a[256 + 2 * CROP_WIDTH];
15 uint8_t *vpx_ff_cropTbl;
15 16
17 void vpx_dsputil_static_init(void) {
18 int i;
16 19
17 #ifdef __cplusplus 20 for (i = 0; i < 256; i++) vpx_ff_cropTbl_a[i + CROP_WIDTH] = i;
18 extern "C" { 21
22 for (i = 0; i < CROP_WIDTH; i++) {
23 vpx_ff_cropTbl_a[i] = 0;
24 vpx_ff_cropTbl_a[i + CROP_WIDTH + 256] = 255;
25 }
26
27 vpx_ff_cropTbl = &vpx_ff_cropTbl_a[CROP_WIDTH];
28 }
29
19 #endif 30 #endif
20
21 #define FILTER_BITS 7
22
23 #define SUBPEL_BITS 4
24 #define SUBPEL_MASK ((1 << SUBPEL_BITS) - 1)
25 #define SUBPEL_SHIFTS (1 << SUBPEL_BITS)
26 #define SUBPEL_TAPS 8
27
28 typedef int16_t InterpKernel[SUBPEL_TAPS];
29
30 #ifdef __cplusplus
31 } // extern "C"
32 #endif
33
34 #endif // VPX_DSP_VPX_FILTER_H_
OLDNEW
« 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