| 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 | 
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 54             diff = src_ptr[j] - ref_ptr[j]; | 54             diff = src_ptr[j] - ref_ptr[j]; | 
| 55             *sum += diff; | 55             *sum += diff; | 
| 56             *sse += diff * diff; | 56             *sse += diff * diff; | 
| 57         } | 57         } | 
| 58 | 58 | 
| 59         src_ptr += source_stride; | 59         src_ptr += source_stride; | 
| 60         ref_ptr += recon_stride; | 60         ref_ptr += recon_stride; | 
| 61     } | 61     } | 
| 62 } | 62 } | 
| 63 | 63 | 
| 64 unsigned int |  | 
| 65 vp8_get8x8var_c |  | 
| 66 ( |  | 
| 67     const unsigned char *src_ptr, |  | 
| 68     int  source_stride, |  | 
| 69     const unsigned char *ref_ptr, |  | 
| 70     int  recon_stride, |  | 
| 71     unsigned int *SSE, |  | 
| 72     int *Sum |  | 
| 73 ) |  | 
| 74 { |  | 
| 75 |  | 
| 76     variance(src_ptr, source_stride, ref_ptr, recon_stride, 8, 8, SSE, Sum); |  | 
| 77     return (*SSE - (((*Sum) * (*Sum)) >> 6)); |  | 
| 78 } |  | 
| 79 |  | 
| 80 unsigned int |  | 
| 81 vp8_get16x16var_c |  | 
| 82 ( |  | 
| 83     const unsigned char *src_ptr, |  | 
| 84     int  source_stride, |  | 
| 85     const unsigned char *ref_ptr, |  | 
| 86     int  recon_stride, |  | 
| 87     unsigned int *SSE, |  | 
| 88     int *Sum |  | 
| 89 ) |  | 
| 90 { |  | 
| 91 |  | 
| 92     variance(src_ptr, source_stride, ref_ptr, recon_stride, 16, 16, SSE, Sum); |  | 
| 93     return (*SSE - (((*Sum) * (*Sum)) >> 8)); |  | 
| 94 |  | 
| 95 } |  | 
| 96 |  | 
| 97 |  | 
| 98 | 64 | 
| 99 unsigned int vp8_variance16x16_c( | 65 unsigned int vp8_variance16x16_c( | 
| 100     const unsigned char *src_ptr, | 66     const unsigned char *src_ptr, | 
| 101     int  source_stride, | 67     int  source_stride, | 
| 102     const unsigned char *ref_ptr, | 68     const unsigned char *ref_ptr, | 
| 103     int  recon_stride, | 69     int  recon_stride, | 
| 104     unsigned int *sse) | 70     unsigned int *sse) | 
| 105 { | 71 { | 
| 106     unsigned int var; | 72     unsigned int var; | 
| 107     int avg; | 73     int avg; | 
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 483 | 449 | 
| 484     HFilter = vp8_bilinear_filters[xoffset]; | 450     HFilter = vp8_bilinear_filters[xoffset]; | 
| 485     VFilter = vp8_bilinear_filters[yoffset]; | 451     VFilter = vp8_bilinear_filters[yoffset]; | 
| 486 | 452 | 
| 487 | 453 | 
| 488     var_filter_block2d_bil_first_pass(src_ptr, FData3, src_pixels_per_line, 1, 1
     7, 8, HFilter); | 454     var_filter_block2d_bil_first_pass(src_ptr, FData3, src_pixels_per_line, 1, 1
     7, 8, HFilter); | 
| 489     var_filter_block2d_bil_second_pass(FData3, temp2, 8, 8, 16, 8, VFilter); | 455     var_filter_block2d_bil_second_pass(FData3, temp2, 8, 8, 16, 8, VFilter); | 
| 490 | 456 | 
| 491     return vp8_variance8x16_c(temp2, 8, dst_ptr, dst_pixels_per_line, sse); | 457     return vp8_variance8x16_c(temp2, 8, dst_ptr, dst_pixels_per_line, sse); | 
| 492 } | 458 } | 
| OLD | NEW | 
|---|