| OLD | NEW |
| 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 |
| 11 | 11 |
| 12 #include <stdlib.h> | 12 #include <stdlib.h> |
| 13 #include "vp9/common/vp9_sadmxn.h" | 13 #include "./vp9_rtcd.h" |
| 14 #include "./vpx_config.h" |
| 15 #include "vp9/encoder/vp9_sadmxn.h" |
| 14 #include "vp9/encoder/vp9_variance.h" | 16 #include "vp9/encoder/vp9_variance.h" |
| 15 #include "./vpx_config.h" | |
| 16 #include "vpx/vpx_integer.h" | 17 #include "vpx/vpx_integer.h" |
| 17 #include "./vp9_rtcd.h" | |
| 18 | 18 |
| 19 #define sad_mxn_func(m, n) \ | 19 #define sad_mxn_func(m, n) \ |
| 20 unsigned int vp9_sad##m##x##n##_c(const uint8_t *src_ptr, \ | 20 unsigned int vp9_sad##m##x##n##_c(const uint8_t *src_ptr, \ |
| 21 int src_stride, \ | 21 int src_stride, \ |
| 22 const uint8_t *ref_ptr, \ | 22 const uint8_t *ref_ptr, \ |
| 23 int ref_stride, \ | 23 int ref_stride, \ |
| 24 unsigned int max_sad) { \ | 24 unsigned int max_sad) { \ |
| 25 return sad_mx_n_c(src_ptr, src_stride, ref_ptr, ref_stride, m, n); \ | 25 return sad_mx_n_c(src_ptr, src_stride, ref_ptr, ref_stride, m, n); \ |
| 26 } \ | 26 } \ |
| 27 unsigned int vp9_sad##m##x##n##_avg_c(const uint8_t *src_ptr, \ | 27 unsigned int vp9_sad##m##x##n##_avg_c(const uint8_t *src_ptr, \ |
| (...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 unsigned int *sad_array) { | 606 unsigned int *sad_array) { |
| 607 sad_array[0] = vp9_sad4x4(src_ptr, src_stride, | 607 sad_array[0] = vp9_sad4x4(src_ptr, src_stride, |
| 608 ref_ptr[0], ref_stride, 0x7fffffff); | 608 ref_ptr[0], ref_stride, 0x7fffffff); |
| 609 sad_array[1] = vp9_sad4x4(src_ptr, src_stride, | 609 sad_array[1] = vp9_sad4x4(src_ptr, src_stride, |
| 610 ref_ptr[1], ref_stride, 0x7fffffff); | 610 ref_ptr[1], ref_stride, 0x7fffffff); |
| 611 sad_array[2] = vp9_sad4x4(src_ptr, src_stride, | 611 sad_array[2] = vp9_sad4x4(src_ptr, src_stride, |
| 612 ref_ptr[2], ref_stride, 0x7fffffff); | 612 ref_ptr[2], ref_stride, 0x7fffffff); |
| 613 sad_array[3] = vp9_sad4x4(src_ptr, src_stride, | 613 sad_array[3] = vp9_sad4x4(src_ptr, src_stride, |
| 614 ref_ptr[3], ref_stride, 0x7fffffff); | 614 ref_ptr[3], ref_stride, 0x7fffffff); |
| 615 } | 615 } |
| OLD | NEW |