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

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

Issue 232133009: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 8 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_rdopt.c ('k') | source/libvpx/vp9/encoder/vp9_segmentation.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 26 matching lines...) Expand all
37 unsigned int vp9_sad##m##x##n##_c(const uint8_t *src_ptr, int src_stride, \ 37 unsigned int vp9_sad##m##x##n##_c(const uint8_t *src_ptr, int src_stride, \
38 const uint8_t *ref_ptr, int ref_stride, \ 38 const uint8_t *ref_ptr, int ref_stride, \
39 unsigned int max_sad) { \ 39 unsigned int max_sad) { \
40 return sad(src_ptr, src_stride, ref_ptr, ref_stride, m, n); \ 40 return sad(src_ptr, src_stride, ref_ptr, ref_stride, m, n); \
41 } \ 41 } \
42 unsigned int vp9_sad##m##x##n##_avg_c(const uint8_t *src_ptr, int src_stride, \ 42 unsigned int vp9_sad##m##x##n##_avg_c(const uint8_t *src_ptr, int src_stride, \
43 const uint8_t *ref_ptr, int ref_stride, \ 43 const uint8_t *ref_ptr, int ref_stride, \
44 const uint8_t *second_pred, \ 44 const uint8_t *second_pred, \
45 unsigned int max_sad) { \ 45 unsigned int max_sad) { \
46 uint8_t comp_pred[m * n]; \ 46 uint8_t comp_pred[m * n]; \
47 comp_avg_pred(comp_pred, second_pred, m, n, ref_ptr, ref_stride); \ 47 vp9_comp_avg_pred(comp_pred, second_pred, m, n, ref_ptr, ref_stride); \
48 return sad(src_ptr, src_stride, comp_pred, m, m, n); \ 48 return sad(src_ptr, src_stride, comp_pred, m, m, n); \
49 } 49 }
50 50
51 sad_mxn_func(64, 64) 51 sad_mxn_func(64, 64)
52 sad_mxn_func(64, 32) 52 sad_mxn_func(64, 32)
53 sad_mxn_func(32, 64) 53 sad_mxn_func(32, 64)
54 sad_mxn_func(32, 32) 54 sad_mxn_func(32, 32)
55 sad_mxn_func(32, 16) 55 sad_mxn_func(32, 16)
56 sad_mxn_func(16, 32) 56 sad_mxn_func(16, 32)
57 sad_mxn_func(16, 16) 57 sad_mxn_func(16, 16)
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 } 315 }
316 316
317 void vp9_sad4x4x4d_c(const uint8_t *src_ptr, int src_stride, 317 void vp9_sad4x4x4d_c(const uint8_t *src_ptr, int src_stride,
318 const uint8_t* const ref_ptr[], int ref_stride, 318 const uint8_t* const ref_ptr[], int ref_stride,
319 unsigned int *sad_array) { 319 unsigned int *sad_array) {
320 int i; 320 int i;
321 for (i = 0; i < 4; ++i) 321 for (i = 0; i < 4; ++i)
322 sad_array[i] = vp9_sad4x4(src_ptr, src_stride, ref_ptr[i], ref_stride, 322 sad_array[i] = vp9_sad4x4(src_ptr, src_stride, ref_ptr[i], ref_stride,
323 0x7fffffff); 323 0x7fffffff);
324 } 324 }
OLDNEW
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_rdopt.c ('k') | source/libvpx/vp9/encoder/vp9_segmentation.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698