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

Side by Side Diff: source/libvpx/vp8/common/variance.h

Issue 1124333011: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: only update to last nights LKGR Created 5 years, 7 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
« no previous file with comments | « source/libvpx/vp8/common/setupintrarecon.c ('k') | source/libvpx/vp8/common/x86/copy_sse2.asm » ('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
11 11
12 #ifndef VP8_COMMON_VARIANCE_H_ 12 #ifndef VP8_COMMON_VARIANCE_H_
13 #define VP8_COMMON_VARIANCE_H_ 13 #define VP8_COMMON_VARIANCE_H_
14 14
15 #include "vpx_config.h" 15 #include "vpx_config.h"
16 16
17 #include "vpx/vpx_integer.h"
18
17 #ifdef __cplusplus 19 #ifdef __cplusplus
18 extern "C" { 20 extern "C" {
19 #endif 21 #endif
20 22
21 typedef unsigned int(*vp8_sad_fn_t)( 23 typedef unsigned int(*vpx_sad_fn_t)(
22 const unsigned char *src_ptr, 24 const uint8_t *src_ptr,
23 int source_stride, 25 int source_stride,
24 const unsigned char *ref_ptr, 26 const uint8_t *ref_ptr,
25 int ref_stride, 27 int ref_stride);
26 unsigned int max_sad);
27 28
28 typedef void (*vp8_copy32xn_fn_t)( 29 typedef void (*vp8_copy32xn_fn_t)(
29 const unsigned char *src_ptr, 30 const unsigned char *src_ptr,
30 int source_stride, 31 int source_stride,
31 const unsigned char *ref_ptr, 32 const unsigned char *ref_ptr,
32 int ref_stride, 33 int ref_stride,
33 int n); 34 int n);
34 35
35 typedef void (*vp8_sad_multi_fn_t)( 36 typedef void (*vpx_sad_multi_fn_t)(
36 const unsigned char *src_ptr, 37 const unsigned char *src_ptr,
37 int source_stride, 38 int source_stride,
38 const unsigned char *ref_ptr, 39 const unsigned char *ref_array,
39 int ref_stride, 40 int ref_stride,
40 unsigned int *sad_array); 41 unsigned int *sad_array);
41 42 typedef void (*vpx_sad_multi_d_fn_t)
42 typedef void (*vp8_sad_multi1_fn_t)
43 ( 43 (
44 const unsigned char *src_ptr, 44 const unsigned char *src_ptr,
45 int source_stride, 45 int source_stride,
46 const unsigned char *ref_ptr, 46 const unsigned char * const ref_array[],
47 int ref_stride,
48 unsigned short *sad_array
49 );
50
51 typedef void (*vp8_sad_multi_d_fn_t)
52 (
53 const unsigned char *src_ptr,
54 int source_stride,
55 const unsigned char * const ref_ptr[],
56 int ref_stride, 47 int ref_stride,
57 unsigned int *sad_array 48 unsigned int *sad_array
58 ); 49 );
59 50
60 typedef unsigned int (*vp8_variance_fn_t) 51 typedef unsigned int (*vp8_variance_fn_t)
61 ( 52 (
62 const unsigned char *src_ptr, 53 const unsigned char *src_ptr,
63 int source_stride, 54 int source_stride,
64 const unsigned char *ref_ptr, 55 const unsigned char *ref_ptr,
65 int ref_stride, 56 int ref_stride,
(...skipping 29 matching lines...) Expand all
95 typedef unsigned int (*vp8_get16x16prederror_fn_t) 86 typedef unsigned int (*vp8_get16x16prederror_fn_t)
96 ( 87 (
97 const unsigned char *src_ptr, 88 const unsigned char *src_ptr,
98 int source_stride, 89 int source_stride,
99 const unsigned char *ref_ptr, 90 const unsigned char *ref_ptr,
100 int ref_stride 91 int ref_stride
101 ); 92 );
102 93
103 typedef struct variance_vtable 94 typedef struct variance_vtable
104 { 95 {
105 vp8_sad_fn_t sdf; 96 vpx_sad_fn_t sdf;
106 vp8_variance_fn_t vf; 97 vp8_variance_fn_t vf;
107 vp8_subpixvariance_fn_t svf; 98 vp8_subpixvariance_fn_t svf;
108 vp8_variance_fn_t svf_halfpix_h; 99 vp8_variance_fn_t svf_halfpix_h;
109 vp8_variance_fn_t svf_halfpix_v; 100 vp8_variance_fn_t svf_halfpix_v;
110 vp8_variance_fn_t svf_halfpix_hv; 101 vp8_variance_fn_t svf_halfpix_hv;
111 vp8_sad_multi_fn_t sdx3f; 102 vpx_sad_multi_fn_t sdx3f;
112 vp8_sad_multi1_fn_t sdx8f; 103 vpx_sad_multi_fn_t sdx8f;
113 vp8_sad_multi_d_fn_t sdx4df; 104 vpx_sad_multi_d_fn_t sdx4df;
114 #if ARCH_X86 || ARCH_X86_64 105 #if ARCH_X86 || ARCH_X86_64
115 vp8_copy32xn_fn_t copymem; 106 vp8_copy32xn_fn_t copymem;
116 #endif 107 #endif
117 } vp8_variance_fn_ptr_t; 108 } vp8_variance_fn_ptr_t;
118 109
119 #ifdef __cplusplus 110 #ifdef __cplusplus
120 } // extern "C" 111 } // extern "C"
121 #endif 112 #endif
122 113
123 #endif // VP8_COMMON_VARIANCE_H_ 114 #endif // VP8_COMMON_VARIANCE_H_
OLDNEW
« no previous file with comments | « source/libvpx/vp8/common/setupintrarecon.c ('k') | source/libvpx/vp8/common/x86/copy_sse2.asm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698