| 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 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 typedef unsigned int(*vpx_sad_fn_t)( | 23 typedef unsigned int(*vpx_sad_fn_t)( |
| 24 const uint8_t *src_ptr, | 24 const uint8_t *src_ptr, |
| 25 int source_stride, | 25 int source_stride, |
| 26 const uint8_t *ref_ptr, | 26 const uint8_t *ref_ptr, |
| 27 int ref_stride); | 27 int ref_stride); |
| 28 | 28 |
| 29 typedef void (*vp8_copy32xn_fn_t)( | 29 typedef void (*vp8_copy32xn_fn_t)( |
| 30 const unsigned char *src_ptr, | 30 const unsigned char *src_ptr, |
| 31 int source_stride, | 31 int source_stride, |
| 32 const unsigned char *ref_ptr, | 32 unsigned char *ref_ptr, |
| 33 int ref_stride, | 33 int ref_stride, |
| 34 int n); | 34 int n); |
| 35 | 35 |
| 36 typedef void (*vpx_sad_multi_fn_t)( | 36 typedef void (*vpx_sad_multi_fn_t)( |
| 37 const unsigned char *src_ptr, | 37 const unsigned char *src_ptr, |
| 38 int source_stride, | 38 int source_stride, |
| 39 const unsigned char *ref_array, | 39 const unsigned char *ref_array, |
| 40 int ref_stride, | 40 int ref_stride, |
| 41 unsigned int *sad_array); | 41 unsigned int *sad_array); |
| 42 |
| 42 typedef void (*vpx_sad_multi_d_fn_t) | 43 typedef void (*vpx_sad_multi_d_fn_t) |
| 43 ( | 44 ( |
| 44 const unsigned char *src_ptr, | 45 const unsigned char *src_ptr, |
| 45 int source_stride, | 46 int source_stride, |
| 46 const unsigned char * const ref_array[], | 47 const unsigned char * const ref_array[], |
| 47 int ref_stride, | 48 int ref_stride, |
| 48 unsigned int *sad_array | 49 unsigned int *sad_array |
| 49 ); | 50 ); |
| 50 | 51 |
| 51 typedef unsigned int (*vp8_variance_fn_t) | 52 typedef unsigned int (*vpx_variance_fn_t) |
| 52 ( | 53 ( |
| 53 const unsigned char *src_ptr, | 54 const unsigned char *src_ptr, |
| 54 int source_stride, | 55 int source_stride, |
| 55 const unsigned char *ref_ptr, | 56 const unsigned char *ref_ptr, |
| 56 int ref_stride, | 57 int ref_stride, |
| 57 unsigned int *sse | 58 unsigned int *sse |
| 58 ); | 59 ); |
| 59 | 60 |
| 60 typedef unsigned int (*vp8_subpixvariance_fn_t) | 61 typedef unsigned int (*vp8_subpixvariance_fn_t) |
| 61 ( | 62 ( |
| 62 const unsigned char *src_ptr, | 63 const unsigned char *src_ptr, |
| 63 int source_stride, | 64 int source_stride, |
| 64 int xoffset, | 65 int xoffset, |
| 65 int yoffset, | 66 int yoffset, |
| 66 const unsigned char *ref_ptr, | 67 const unsigned char *ref_ptr, |
| 67 int Refstride, | 68 int Refstride, |
| 68 unsigned int *sse | 69 unsigned int *sse |
| 69 ); | 70 ); |
| 70 | 71 |
| 71 typedef void (*vp8_ssimpf_fn_t) | |
| 72 ( | |
| 73 unsigned char *s, | |
| 74 int sp, | |
| 75 unsigned char *r, | |
| 76 int rp, | |
| 77 unsigned long *sum_s, | |
| 78 unsigned long *sum_r, | |
| 79 unsigned long *sum_sq_s, | |
| 80 unsigned long *sum_sq_r, | |
| 81 unsigned long *sum_sxr | |
| 82 ); | |
| 83 | |
| 84 typedef unsigned int (*vp8_getmbss_fn_t)(const short *); | |
| 85 | |
| 86 typedef unsigned int (*vp8_get16x16prederror_fn_t) | |
| 87 ( | |
| 88 const unsigned char *src_ptr, | |
| 89 int source_stride, | |
| 90 const unsigned char *ref_ptr, | |
| 91 int ref_stride | |
| 92 ); | |
| 93 | |
| 94 typedef struct variance_vtable | 72 typedef struct variance_vtable |
| 95 { | 73 { |
| 96 vpx_sad_fn_t sdf; | 74 vpx_sad_fn_t sdf; |
| 97 vp8_variance_fn_t vf; | 75 vpx_variance_fn_t vf; |
| 98 vp8_subpixvariance_fn_t svf; | 76 vp8_subpixvariance_fn_t svf; |
| 99 vp8_variance_fn_t svf_halfpix_h; | 77 vpx_variance_fn_t svf_halfpix_h; |
| 100 vp8_variance_fn_t svf_halfpix_v; | 78 vpx_variance_fn_t svf_halfpix_v; |
| 101 vp8_variance_fn_t svf_halfpix_hv; | 79 vpx_variance_fn_t svf_halfpix_hv; |
| 102 vpx_sad_multi_fn_t sdx3f; | 80 vpx_sad_multi_fn_t sdx3f; |
| 103 vpx_sad_multi_fn_t sdx8f; | 81 vpx_sad_multi_fn_t sdx8f; |
| 104 vpx_sad_multi_d_fn_t sdx4df; | 82 vpx_sad_multi_d_fn_t sdx4df; |
| 105 #if ARCH_X86 || ARCH_X86_64 | 83 #if ARCH_X86 || ARCH_X86_64 |
| 106 vp8_copy32xn_fn_t copymem; | 84 vp8_copy32xn_fn_t copymem; |
| 107 #endif | 85 #endif |
| 108 } vp8_variance_fn_ptr_t; | 86 } vp8_variance_fn_ptr_t; |
| 109 | 87 |
| 110 #ifdef __cplusplus | 88 #ifdef __cplusplus |
| 111 } // extern "C" | 89 } // extern "C" |
| 112 #endif | 90 #endif |
| 113 | 91 |
| 114 #endif // VP8_COMMON_VARIANCE_H_ | 92 #endif // VP8_COMMON_VARIANCE_H_ |
| OLD | NEW |