1 #ifndef VPX_DSP_RTCD_H_
2 #define VPX_DSP_RTCD_H_
3 
4 #ifdef RTCD_C
5 #define RTCD_EXTERN
6 #else
7 #define RTCD_EXTERN extern
8 #endif
9 
10 /*
11  * DSP
12  */
13 
14 #include "vpx/vpx_integer.h"
15 
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 void vpx_comp_avg_pred_c(uint8_t *comp_pred, const uint8_t *pred, int width, int height, const uint8_t *ref, int ref_stride);
22 #define vpx_comp_avg_pred vpx_comp_avg_pred_c
23 
24 void vpx_get16x16var_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum);
25 #define vpx_get16x16var vpx_get16x16var_c
26 
27 unsigned int vpx_get4x4sse_cs_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride);
28 #define vpx_get4x4sse_cs vpx_get4x4sse_cs_c
29 
30 void vpx_get8x8var_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum);
31 #define vpx_get8x8var vpx_get8x8var_c
32 
33 unsigned int vpx_get_mb_ss_c(const int16_t *);
34 #define vpx_get_mb_ss vpx_get_mb_ss_c
35 
36 unsigned int vpx_mse16x16_c(const uint8_t *src_ptr, int  source_stride, const uint8_t *ref_ptr, int  recon_stride, unsigned int *sse);
37 #define vpx_mse16x16 vpx_mse16x16_c
38 
39 unsigned int vpx_mse16x8_c(const uint8_t *src_ptr, int  source_stride, const uint8_t *ref_ptr, int  recon_stride, unsigned int *sse);
40 #define vpx_mse16x8 vpx_mse16x8_c
41 
42 unsigned int vpx_mse8x16_c(const uint8_t *src_ptr, int  source_stride, const uint8_t *ref_ptr, int  recon_stride, unsigned int *sse);
43 #define vpx_mse8x16 vpx_mse8x16_c
44 
45 unsigned int vpx_mse8x8_c(const uint8_t *src_ptr, int  source_stride, const uint8_t *ref_ptr, int  recon_stride, unsigned int *sse);
46 #define vpx_mse8x8 vpx_mse8x8_c
virtio_net_pci_realize(VirtIOPCIProxy * vpci_dev,Error ** errp)47 
48 unsigned int vpx_sad16x16_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride);
49 #define vpx_sad16x16 vpx_sad16x16_c
50 
51 unsigned int vpx_sad16x16_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred);
52 #define vpx_sad16x16_avg vpx_sad16x16_avg_c
53 
54 void vpx_sad16x16x3_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array);
55 #define vpx_sad16x16x3 vpx_sad16x16x3_c
56 
57 void vpx_sad16x16x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array);
58 #define vpx_sad16x16x4d vpx_sad16x16x4d_c
virtio_net_pci_class_init(ObjectClass * klass,void * data)59 
60 void vpx_sad16x16x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array);
61 #define vpx_sad16x16x8 vpx_sad16x16x8_c
62 
63 unsigned int vpx_sad16x32_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride);
64 #define vpx_sad16x32 vpx_sad16x32_c
65 
66 unsigned int vpx_sad16x32_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred);
67 #define vpx_sad16x32_avg vpx_sad16x32_avg_c
68 
69 void vpx_sad16x32x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array);
70 #define vpx_sad16x32x4d vpx_sad16x32x4d_c
71 
72 unsigned int vpx_sad16x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride);
73 #define vpx_sad16x8 vpx_sad16x8_c
74 
virtio_net_pci_instance_init(Object * obj)75 unsigned int vpx_sad16x8_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred);
76 #define vpx_sad16x8_avg vpx_sad16x8_avg_c
77 
78 void vpx_sad16x8x3_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array);
79 #define vpx_sad16x8x3 vpx_sad16x8x3_c
80 
81 void vpx_sad16x8x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array);
82 #define vpx_sad16x8x4d vpx_sad16x8x4d_c
83 
84 void vpx_sad16x8x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array);
85 #define vpx_sad16x8x8 vpx_sad16x8x8_c
86 
87 unsigned int vpx_sad32x16_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride);
88 #define vpx_sad32x16 vpx_sad32x16_c
89 
90 unsigned int vpx_sad32x16_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred);
91 #define vpx_sad32x16_avg vpx_sad32x16_avg_c
92 
93 void vpx_sad32x16x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array);
94 #define vpx_sad32x16x4d vpx_sad32x16x4d_c
virtio_net_pci_register(void)95 
96 unsigned int vpx_sad32x32_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride);
97 #define vpx_sad32x32 vpx_sad32x32_c
98 
99 unsigned int vpx_sad32x32_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred);
100 #define vpx_sad32x32_avg vpx_sad32x32_avg_c
101 
102 void vpx_sad32x32x3_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array);
103 #define vpx_sad32x32x3 vpx_sad32x32x3_c
104 
105 void vpx_sad32x32x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array);
106 #define vpx_sad32x32x4d vpx_sad32x32x4d_c
107 
108 void vpx_sad32x32x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array);
109 #define vpx_sad32x32x8 vpx_sad32x32x8_c
110 
111 unsigned int vpx_sad32x64_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride);
112 #define vpx_sad32x64 vpx_sad32x64_c
113 
114 unsigned int vpx_sad32x64_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred);
115 #define vpx_sad32x64_avg vpx_sad32x64_avg_c
116 
117 void vpx_sad32x64x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array);
118 #define vpx_sad32x64x4d vpx_sad32x64x4d_c
119 
120 unsigned int vpx_sad4x4_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride);
121 #define vpx_sad4x4 vpx_sad4x4_c
122 
123 unsigned int vpx_sad4x4_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred);
124 #define vpx_sad4x4_avg vpx_sad4x4_avg_c
125 
126 void vpx_sad4x4x3_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array);
127 #define vpx_sad4x4x3 vpx_sad4x4x3_c
128 
129 void vpx_sad4x4x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array);
130 #define vpx_sad4x4x4d vpx_sad4x4x4d_c
131 
132 void vpx_sad4x4x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array);
133 #define vpx_sad4x4x8 vpx_sad4x4x8_c
134 
135 unsigned int vpx_sad4x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride);
136 #define vpx_sad4x8 vpx_sad4x8_c
137 
138 unsigned int vpx_sad4x8_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred);
139 #define vpx_sad4x8_avg vpx_sad4x8_avg_c
140 
141 void vpx_sad4x8x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array);
142 #define vpx_sad4x8x4d vpx_sad4x8x4d_c
143 
144 void vpx_sad4x8x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array);
145 #define vpx_sad4x8x8 vpx_sad4x8x8_c
146 
147 unsigned int vpx_sad64x32_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride);
148 #define vpx_sad64x32 vpx_sad64x32_c
149 
150 unsigned int vpx_sad64x32_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred);
151 #define vpx_sad64x32_avg vpx_sad64x32_avg_c
152 
153 void vpx_sad64x32x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array);
154 #define vpx_sad64x32x4d vpx_sad64x32x4d_c
155 
156 unsigned int vpx_sad64x64_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride);
157 #define vpx_sad64x64 vpx_sad64x64_c
158 
159 unsigned int vpx_sad64x64_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred);
160 #define vpx_sad64x64_avg vpx_sad64x64_avg_c
161 
162 void vpx_sad64x64x3_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array);
163 #define vpx_sad64x64x3 vpx_sad64x64x3_c
164 
165 void vpx_sad64x64x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array);
166 #define vpx_sad64x64x4d vpx_sad64x64x4d_c
167 
168 void vpx_sad64x64x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array);
169 #define vpx_sad64x64x8 vpx_sad64x64x8_c
170 
171 unsigned int vpx_sad8x16_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride);
172 #define vpx_sad8x16 vpx_sad8x16_c
173 
174 unsigned int vpx_sad8x16_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred);
175 #define vpx_sad8x16_avg vpx_sad8x16_avg_c
176 
177 void vpx_sad8x16x3_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array);
178 #define vpx_sad8x16x3 vpx_sad8x16x3_c
179 
180 void vpx_sad8x16x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array);
181 #define vpx_sad8x16x4d vpx_sad8x16x4d_c
182 
183 void vpx_sad8x16x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array);
184 #define vpx_sad8x16x8 vpx_sad8x16x8_c
185 
186 unsigned int vpx_sad8x4_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride);
187 #define vpx_sad8x4 vpx_sad8x4_c
188 
189 unsigned int vpx_sad8x4_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred);
190 #define vpx_sad8x4_avg vpx_sad8x4_avg_c
191 
192 void vpx_sad8x4x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array);
193 #define vpx_sad8x4x4d vpx_sad8x4x4d_c
194 
195 void vpx_sad8x4x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array);
196 #define vpx_sad8x4x8 vpx_sad8x4x8_c
197 
198 unsigned int vpx_sad8x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride);
199 #define vpx_sad8x8 vpx_sad8x8_c
200 
201 unsigned int vpx_sad8x8_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred);
202 #define vpx_sad8x8_avg vpx_sad8x8_avg_c
203 
204 void vpx_sad8x8x3_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array);
205 #define vpx_sad8x8x3 vpx_sad8x8x3_c
206 
207 void vpx_sad8x8x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array);
208 #define vpx_sad8x8x4d vpx_sad8x8x4d_c
209 
210 void vpx_sad8x8x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array);
211 #define vpx_sad8x8x8 vpx_sad8x8x8_c
212 
213 unsigned int vpx_variance16x16_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
214 #define vpx_variance16x16 vpx_variance16x16_c
215 
216 unsigned int vpx_variance16x32_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
217 #define vpx_variance16x32 vpx_variance16x32_c
218 
219 unsigned int vpx_variance16x8_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
220 #define vpx_variance16x8 vpx_variance16x8_c
221 
222 unsigned int vpx_variance32x16_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
223 #define vpx_variance32x16 vpx_variance32x16_c
224 
225 unsigned int vpx_variance32x32_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
226 #define vpx_variance32x32 vpx_variance32x32_c
227 
228 unsigned int vpx_variance32x64_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
229 #define vpx_variance32x64 vpx_variance32x64_c
230 
231 unsigned int vpx_variance4x4_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
232 #define vpx_variance4x4 vpx_variance4x4_c
233 
234 unsigned int vpx_variance4x8_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
235 #define vpx_variance4x8 vpx_variance4x8_c
236 
237 unsigned int vpx_variance64x32_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
238 #define vpx_variance64x32 vpx_variance64x32_c
239 
240 unsigned int vpx_variance64x64_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
241 #define vpx_variance64x64 vpx_variance64x64_c
242 
243 unsigned int vpx_variance8x16_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
244 #define vpx_variance8x16 vpx_variance8x16_c
245 
246 unsigned int vpx_variance8x4_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
247 #define vpx_variance8x4 vpx_variance8x4_c
248 
249 unsigned int vpx_variance8x8_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
250 #define vpx_variance8x8 vpx_variance8x8_c
251 
252 void vpx_dsp_rtcd(void);
253 
254 #include "vpx_config.h"
255 
256 #ifdef RTCD_C
257 static void setup_rtcd_internal(void)
258 {
259 }
260 #endif
261 
262 #ifdef __cplusplus
263 }  // extern "C"
264 #endif
265 
266 #endif
267