OLD | NEW |
1 #ifndef VPX_DSP_RTCD_H_ | 1 #ifndef VPX_DSP_RTCD_H_ |
2 #define VPX_DSP_RTCD_H_ | 2 #define VPX_DSP_RTCD_H_ |
3 | 3 |
4 #ifdef RTCD_C | 4 #ifdef RTCD_C |
5 #define RTCD_EXTERN | 5 #define RTCD_EXTERN |
6 #else | 6 #else |
7 #define RTCD_EXTERN extern | 7 #define RTCD_EXTERN extern |
8 #endif | 8 #endif |
9 | 9 |
10 /* | 10 /* |
11 * DSP | 11 * DSP |
12 */ | 12 */ |
13 | 13 |
14 #include "vpx/vpx_integer.h" | 14 #include "vpx/vpx_integer.h" |
15 | 15 |
16 | 16 |
17 #ifdef __cplusplus | 17 #ifdef __cplusplus |
18 extern "C" { | 18 extern "C" { |
19 #endif | 19 #endif |
20 | 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 void vpx_get16x16var_neon(const uint8_t *src_ptr, int source_stride, const uint8
_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum); |
| 26 #define vpx_get16x16var vpx_get16x16var_neon |
| 27 |
| 28 unsigned int vpx_get4x4sse_cs_c(const unsigned char *src_ptr, int source_stride,
const unsigned char *ref_ptr, int ref_stride); |
| 29 unsigned int vpx_get4x4sse_cs_neon(const unsigned char *src_ptr, int source_stri
de, const unsigned char *ref_ptr, int ref_stride); |
| 30 #define vpx_get4x4sse_cs vpx_get4x4sse_cs_neon |
| 31 |
| 32 void vpx_get8x8var_c(const uint8_t *src_ptr, int source_stride, const uint8_t *r
ef_ptr, int ref_stride, unsigned int *sse, int *sum); |
| 33 void vpx_get8x8var_neon(const uint8_t *src_ptr, int source_stride, const uint8_t
*ref_ptr, int ref_stride, unsigned int *sse, int *sum); |
| 34 #define vpx_get8x8var vpx_get8x8var_neon |
| 35 |
| 36 unsigned int vpx_get_mb_ss_c(const int16_t *); |
| 37 #define vpx_get_mb_ss vpx_get_mb_ss_c |
| 38 |
| 39 unsigned int vpx_mse16x16_c(const uint8_t *src_ptr, int source_stride, const ui
nt8_t *ref_ptr, int recon_stride, unsigned int *sse); |
| 40 unsigned int vpx_mse16x16_media(const uint8_t *src_ptr, int source_stride, cons
t uint8_t *ref_ptr, int recon_stride, unsigned int *sse); |
| 41 unsigned int vpx_mse16x16_neon(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int recon_stride, unsigned int *sse); |
| 42 #define vpx_mse16x16 vpx_mse16x16_neon |
| 43 |
| 44 unsigned int vpx_mse16x8_c(const uint8_t *src_ptr, int source_stride, const uin
t8_t *ref_ptr, int recon_stride, unsigned int *sse); |
| 45 #define vpx_mse16x8 vpx_mse16x8_c |
| 46 |
| 47 unsigned int vpx_mse8x16_c(const uint8_t *src_ptr, int source_stride, const uin
t8_t *ref_ptr, int recon_stride, unsigned int *sse); |
| 48 #define vpx_mse8x16 vpx_mse8x16_c |
| 49 |
| 50 unsigned int vpx_mse8x8_c(const uint8_t *src_ptr, int source_stride, const uint
8_t *ref_ptr, int recon_stride, unsigned int *sse); |
| 51 #define vpx_mse8x8 vpx_mse8x8_c |
| 52 |
21 unsigned int vpx_sad16x16_c(const uint8_t *src_ptr, int src_stride, const uint8_
t *ref_ptr, int ref_stride); | 53 unsigned int vpx_sad16x16_c(const uint8_t *src_ptr, int src_stride, const uint8_
t *ref_ptr, int ref_stride); |
22 unsigned int vpx_sad16x16_media(const uint8_t *src_ptr, int src_stride, const ui
nt8_t *ref_ptr, int ref_stride); | 54 unsigned int vpx_sad16x16_media(const uint8_t *src_ptr, int src_stride, const ui
nt8_t *ref_ptr, int ref_stride); |
23 unsigned int vpx_sad16x16_neon(const uint8_t *src_ptr, int src_stride, const uin
t8_t *ref_ptr, int ref_stride); | 55 unsigned int vpx_sad16x16_neon(const uint8_t *src_ptr, int src_stride, const uin
t8_t *ref_ptr, int ref_stride); |
24 #define vpx_sad16x16 vpx_sad16x16_neon | 56 #define vpx_sad16x16 vpx_sad16x16_neon |
25 | 57 |
26 unsigned int vpx_sad16x16_avg_c(const uint8_t *src_ptr, int src_stride, const ui
nt8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); | 58 unsigned int vpx_sad16x16_avg_c(const uint8_t *src_ptr, int src_stride, const ui
nt8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); |
27 #define vpx_sad16x16_avg vpx_sad16x16_avg_c | 59 #define vpx_sad16x16_avg vpx_sad16x16_avg_c |
28 | 60 |
29 void vpx_sad16x16x3_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref
_ptr, int ref_stride, uint32_t *sad_array); | 61 void vpx_sad16x16x3_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref
_ptr, int ref_stride, uint32_t *sad_array); |
30 #define vpx_sad16x16x3 vpx_sad16x16x3_c | 62 #define vpx_sad16x16x3 vpx_sad16x16x3_c |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 | 219 |
188 void vpx_sad8x8x3_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_p
tr, int ref_stride, uint32_t *sad_array); | 220 void vpx_sad8x8x3_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_p
tr, int ref_stride, uint32_t *sad_array); |
189 #define vpx_sad8x8x3 vpx_sad8x8x3_c | 221 #define vpx_sad8x8x3 vpx_sad8x8x3_c |
190 | 222 |
191 void vpx_sad8x8x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t * con
st ref_ptr[], int ref_stride, uint32_t *sad_array); | 223 void vpx_sad8x8x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t * con
st ref_ptr[], int ref_stride, uint32_t *sad_array); |
192 #define vpx_sad8x8x4d vpx_sad8x8x4d_c | 224 #define vpx_sad8x8x4d vpx_sad8x8x4d_c |
193 | 225 |
194 void vpx_sad8x8x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_p
tr, int ref_stride, uint32_t *sad_array); | 226 void vpx_sad8x8x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_p
tr, int ref_stride, uint32_t *sad_array); |
195 #define vpx_sad8x8x8 vpx_sad8x8x8_c | 227 #define vpx_sad8x8x8 vpx_sad8x8x8_c |
196 | 228 |
| 229 unsigned int vpx_variance16x16_c(const uint8_t *src_ptr, int source_stride, cons
t uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 230 unsigned int vpx_variance16x16_media(const uint8_t *src_ptr, int source_stride,
const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 231 unsigned int vpx_variance16x16_neon(const uint8_t *src_ptr, int source_stride, c
onst uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 232 #define vpx_variance16x16 vpx_variance16x16_neon |
| 233 |
| 234 unsigned int vpx_variance16x32_c(const uint8_t *src_ptr, int source_stride, cons
t uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 235 #define vpx_variance16x32 vpx_variance16x32_c |
| 236 |
| 237 unsigned int vpx_variance16x8_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 238 unsigned int vpx_variance16x8_neon(const uint8_t *src_ptr, int source_stride, co
nst uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 239 #define vpx_variance16x8 vpx_variance16x8_neon |
| 240 |
| 241 unsigned int vpx_variance32x16_c(const uint8_t *src_ptr, int source_stride, cons
t uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 242 #define vpx_variance32x16 vpx_variance32x16_c |
| 243 |
| 244 unsigned int vpx_variance32x32_c(const uint8_t *src_ptr, int source_stride, cons
t uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 245 unsigned int vpx_variance32x32_neon(const uint8_t *src_ptr, int source_stride, c
onst uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 246 #define vpx_variance32x32 vpx_variance32x32_neon |
| 247 |
| 248 unsigned int vpx_variance32x64_c(const uint8_t *src_ptr, int source_stride, cons
t uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 249 unsigned int vpx_variance32x64_neon(const uint8_t *src_ptr, int source_stride, c
onst uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 250 #define vpx_variance32x64 vpx_variance32x64_neon |
| 251 |
| 252 unsigned int vpx_variance4x4_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 253 #define vpx_variance4x4 vpx_variance4x4_c |
| 254 |
| 255 unsigned int vpx_variance4x8_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 256 #define vpx_variance4x8 vpx_variance4x8_c |
| 257 |
| 258 unsigned int vpx_variance64x32_c(const uint8_t *src_ptr, int source_stride, cons
t uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 259 unsigned int vpx_variance64x32_neon(const uint8_t *src_ptr, int source_stride, c
onst uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 260 #define vpx_variance64x32 vpx_variance64x32_neon |
| 261 |
| 262 unsigned int vpx_variance64x64_c(const uint8_t *src_ptr, int source_stride, cons
t uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 263 unsigned int vpx_variance64x64_neon(const uint8_t *src_ptr, int source_stride, c
onst uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 264 #define vpx_variance64x64 vpx_variance64x64_neon |
| 265 |
| 266 unsigned int vpx_variance8x16_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 267 unsigned int vpx_variance8x16_neon(const uint8_t *src_ptr, int source_stride, co
nst uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 268 #define vpx_variance8x16 vpx_variance8x16_neon |
| 269 |
| 270 unsigned int vpx_variance8x4_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 271 #define vpx_variance8x4 vpx_variance8x4_c |
| 272 |
| 273 unsigned int vpx_variance8x8_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 274 unsigned int vpx_variance8x8_media(const uint8_t *src_ptr, int source_stride, co
nst uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 275 unsigned int vpx_variance8x8_neon(const uint8_t *src_ptr, int source_stride, con
st uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 276 #define vpx_variance8x8 vpx_variance8x8_neon |
| 277 |
197 void vpx_dsp_rtcd(void); | 278 void vpx_dsp_rtcd(void); |
198 | 279 |
199 #include "vpx_config.h" | 280 #include "vpx_config.h" |
200 | 281 |
201 #ifdef RTCD_C | 282 #ifdef RTCD_C |
202 #include "vpx_ports/arm.h" | 283 #include "vpx_ports/arm.h" |
203 static void setup_rtcd_internal(void) | 284 static void setup_rtcd_internal(void) |
204 { | 285 { |
205 int flags = arm_cpu_caps(); | 286 int flags = arm_cpu_caps(); |
206 | 287 |
207 (void)flags; | 288 (void)flags; |
208 | 289 |
209 } | 290 } |
210 #endif | 291 #endif |
211 | 292 |
212 #ifdef __cplusplus | 293 #ifdef __cplusplus |
213 } // extern "C" | 294 } // extern "C" |
214 #endif | 295 #endif |
215 | 296 |
216 #endif | 297 #endif |
OLD | NEW |