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

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

Issue 341293003: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_variance.h ('k') | source/libvpx/vp9/encoder/x86/vp9_dct_sse2.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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 var_filter_block2d_bil_first_pass(src, fdata3, src_stride, 1, H + 1, W, \ 149 var_filter_block2d_bil_first_pass(src, fdata3, src_stride, 1, H + 1, W, \
150 BILINEAR_FILTERS_2TAP(xoffset)); \ 150 BILINEAR_FILTERS_2TAP(xoffset)); \
151 var_filter_block2d_bil_second_pass(fdata3, temp2, W, W, H, W, \ 151 var_filter_block2d_bil_second_pass(fdata3, temp2, W, W, H, W, \
152 BILINEAR_FILTERS_2TAP(yoffset)); \ 152 BILINEAR_FILTERS_2TAP(yoffset)); \
153 \ 153 \
154 vp9_comp_avg_pred(temp3, second_pred, W, H, temp2, W); \ 154 vp9_comp_avg_pred(temp3, second_pred, W, H, temp2, W); \
155 \ 155 \
156 return vp9_variance##W##x##H##_c(temp3, W, dst, dst_stride, sse); \ 156 return vp9_variance##W##x##H##_c(temp3, W, dst, dst_stride, sse); \
157 } 157 }
158 158
159 void vp9_get16x16var_c(const uint8_t *src_ptr, int source_stride,
160 const uint8_t *ref_ptr, int ref_stride,
161 unsigned int *sse, int *sum) {
162 variance(src_ptr, source_stride, ref_ptr, ref_stride, 16, 16, sse, sum);
163 }
164
165 void vp9_get8x8var_c(const uint8_t *src_ptr, int source_stride,
166 const uint8_t *ref_ptr, int ref_stride,
167 unsigned int *sse, int *sum) {
168 variance(src_ptr, source_stride, ref_ptr, ref_stride, 8, 8, sse, sum);
169 }
170
159 unsigned int vp9_mse16x16_c(const uint8_t *src, int src_stride, 171 unsigned int vp9_mse16x16_c(const uint8_t *src, int src_stride,
160 const uint8_t *ref, int ref_stride, 172 const uint8_t *ref, int ref_stride,
161 unsigned int *sse) { 173 unsigned int *sse) {
162 int sum; 174 int sum;
163 variance(src, src_stride, ref, ref_stride, 16, 16, sse, &sum); 175 variance(src, src_stride, ref, ref_stride, 16, 16, sse, &sum);
164 return *sse; 176 return *sse;
165 } 177 }
166 178
167 unsigned int vp9_mse16x8_c(const uint8_t *src, int src_stride, 179 unsigned int vp9_mse16x8_c(const uint8_t *src, int src_stride,
168 const uint8_t *ref, int ref_stride, 180 const uint8_t *ref, int ref_stride,
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 for (i = 0; i < height; i++) { 259 for (i = 0; i < height; i++) {
248 for (j = 0; j < width; j++) { 260 for (j = 0; j < width; j++) {
249 const int tmp = pred[j] + ref[j]; 261 const int tmp = pred[j] + ref[j];
250 comp_pred[j] = ROUND_POWER_OF_TWO(tmp, 1); 262 comp_pred[j] = ROUND_POWER_OF_TWO(tmp, 1);
251 } 263 }
252 comp_pred += width; 264 comp_pred += width;
253 pred += width; 265 pred += width;
254 ref += ref_stride; 266 ref += ref_stride;
255 } 267 }
256 } 268 }
OLDNEW
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_variance.h ('k') | source/libvpx/vp9/encoder/x86/vp9_dct_sse2.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698