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

Side by Side Diff: source/libvpx/vp9/common/mips/dspr2/vp9_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
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2013 The WebM project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #include "vp9/common/mips/dspr2/vp9_common_dspr2.h"
12 #include "vpx_dsp/vpx_dsp_common.h"
13 #include "vpx_ports/mem.h"
14
15 #if HAVE_DSPR2
16 uint8_t vp9_ff_cropTbl_a[256 + 2 * CROP_WIDTH];
17 uint8_t *vp9_ff_cropTbl;
18
19 void vp9_dsputil_static_init(void) {
20 int i;
21
22 for (i = 0; i < 256; i++) vp9_ff_cropTbl_a[i + CROP_WIDTH] = i;
23
24 for (i = 0; i < CROP_WIDTH; i++) {
25 vp9_ff_cropTbl_a[i] = 0;
26 vp9_ff_cropTbl_a[i + CROP_WIDTH + 256] = 255;
27 }
28
29 vp9_ff_cropTbl = &vp9_ff_cropTbl_a[CROP_WIDTH];
30 }
31
32 #endif
OLDNEW
« no previous file with comments | « source/libvpx/vp9/common/mips/dspr2/vp9_common_dspr2.h ('k') | source/libvpx/vp9/common/mips/dspr2/vp9_itrans16_dspr2.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698