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

Side by Side Diff: source/libvpx/vp9/encoder/vp9_variance.h

Issue 17009012: libvpx: Pull from upstream (Closed) Base URL: http://src.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 years, 6 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/vp9/encoder/vp9_encodemb.c ('k') | source/libvpx/vp9/encoder/vp9_variance_c.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) 2010 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2010 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
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 vp9_subpixvariance_fn_t svf; 79 vp9_subpixvariance_fn_t svf;
80 vp9_subp_avg_variance_fn_t svaf; 80 vp9_subp_avg_variance_fn_t svaf;
81 vp9_variance_fn_t svf_halfpix_h; 81 vp9_variance_fn_t svf_halfpix_h;
82 vp9_variance_fn_t svf_halfpix_v; 82 vp9_variance_fn_t svf_halfpix_v;
83 vp9_variance_fn_t svf_halfpix_hv; 83 vp9_variance_fn_t svf_halfpix_hv;
84 vp9_sad_multi_fn_t sdx3f; 84 vp9_sad_multi_fn_t sdx3f;
85 vp9_sad_multi1_fn_t sdx8f; 85 vp9_sad_multi1_fn_t sdx8f;
86 vp9_sad_multi_d_fn_t sdx4df; 86 vp9_sad_multi_d_fn_t sdx4df;
87 } vp9_variance_fn_ptr_t; 87 } vp9_variance_fn_ptr_t;
88 88
89 static void comp_avg_pred(uint8_t *comp_pred, const uint8_t *pred, int weight, 89 static void comp_avg_pred(uint8_t *comp_pred, const uint8_t *pred, int width,
90 int height, uint8_t *ref, int ref_stride) { 90 int height, uint8_t *ref, int ref_stride) {
91 int i, j; 91 int i, j;
92 92
93 for (i = 0; i < height; i++) { 93 for (i = 0; i < height; i++) {
94 for (j = 0; j < weight; j++) { 94 for (j = 0; j < width; j++) {
95 int tmp; 95 int tmp;
96 tmp = pred[j] + ref[j]; 96 tmp = pred[j] + ref[j];
97 comp_pred[j] = (tmp + 1) >> 1; 97 comp_pred[j] = (tmp + 1) >> 1;
98 } 98 }
99 comp_pred += weight; 99 comp_pred += width;
100 pred += weight; 100 pred += width;
101 ref += ref_stride; 101 ref += ref_stride;
102 } 102 }
103 } 103 }
104 #endif // VP9_ENCODER_VP9_VARIANCE_H_ 104 #endif // VP9_ENCODER_VP9_VARIANCE_H_
OLDNEW
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_encodemb.c ('k') | source/libvpx/vp9/encoder/vp9_variance_c.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698