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_sse2(const uint8_t *src_ptr, int source_stride, const uint8
_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum); |
| 26 void vpx_get16x16var_avx2(const uint8_t *src_ptr, int source_stride, const uint8
_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum); |
| 27 RTCD_EXTERN void (*vpx_get16x16var)(const uint8_t *src_ptr, int source_stride, c
onst uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum); |
| 28 |
| 29 unsigned int vpx_get4x4sse_cs_c(const unsigned char *src_ptr, int source_stride,
const unsigned char *ref_ptr, int ref_stride); |
| 30 #define vpx_get4x4sse_cs vpx_get4x4sse_cs_c |
| 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_mmx(const uint8_t *src_ptr, int source_stride, const uint8_t
*ref_ptr, int ref_stride, unsigned int *sse, int *sum); |
| 34 void vpx_get8x8var_sse2(const uint8_t *src_ptr, int source_stride, const uint8_t
*ref_ptr, int ref_stride, unsigned int *sse, int *sum); |
| 35 RTCD_EXTERN void (*vpx_get8x8var)(const uint8_t *src_ptr, int source_stride, con
st uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum); |
| 36 |
| 37 unsigned int vpx_get_mb_ss_c(const int16_t *); |
| 38 unsigned int vpx_get_mb_ss_mmx(const int16_t *); |
| 39 unsigned int vpx_get_mb_ss_sse2(const int16_t *); |
| 40 RTCD_EXTERN unsigned int (*vpx_get_mb_ss)(const int16_t *); |
| 41 |
| 42 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); |
| 43 unsigned int vpx_mse16x16_mmx(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int recon_stride, unsigned int *sse); |
| 44 unsigned int vpx_mse16x16_sse2(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int recon_stride, unsigned int *sse); |
| 45 unsigned int vpx_mse16x16_avx2(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int recon_stride, unsigned int *sse); |
| 46 RTCD_EXTERN unsigned int (*vpx_mse16x16)(const uint8_t *src_ptr, int source_str
ide, const uint8_t *ref_ptr, int recon_stride, unsigned int *sse); |
| 47 |
| 48 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); |
| 49 unsigned int vpx_mse16x8_sse2(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int recon_stride, unsigned int *sse); |
| 50 RTCD_EXTERN unsigned int (*vpx_mse16x8)(const uint8_t *src_ptr, int source_stri
de, const uint8_t *ref_ptr, int recon_stride, unsigned int *sse); |
| 51 |
| 52 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); |
| 53 unsigned int vpx_mse8x16_sse2(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int recon_stride, unsigned int *sse); |
| 54 RTCD_EXTERN unsigned int (*vpx_mse8x16)(const uint8_t *src_ptr, int source_stri
de, const uint8_t *ref_ptr, int recon_stride, unsigned int *sse); |
| 55 |
| 56 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); |
| 57 unsigned int vpx_mse8x8_sse2(const uint8_t *src_ptr, int source_stride, const u
int8_t *ref_ptr, int recon_stride, unsigned int *sse); |
| 58 RTCD_EXTERN unsigned int (*vpx_mse8x8)(const uint8_t *src_ptr, int source_strid
e, const uint8_t *ref_ptr, int recon_stride, unsigned int *sse); |
| 59 |
21 unsigned int vpx_sad16x16_c(const uint8_t *src_ptr, int src_stride, const uint8_
t *ref_ptr, int ref_stride); | 60 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_mmx(const uint8_t *src_ptr, int src_stride, const uint
8_t *ref_ptr, int ref_stride); | 61 unsigned int vpx_sad16x16_mmx(const uint8_t *src_ptr, int src_stride, const uint
8_t *ref_ptr, int ref_stride); |
23 unsigned int vpx_sad16x16_sse2(const uint8_t *src_ptr, int src_stride, const uin
t8_t *ref_ptr, int ref_stride); | 62 unsigned int vpx_sad16x16_sse2(const uint8_t *src_ptr, int src_stride, const uin
t8_t *ref_ptr, int ref_stride); |
24 RTCD_EXTERN unsigned int (*vpx_sad16x16)(const uint8_t *src_ptr, int src_stride,
const uint8_t *ref_ptr, int ref_stride); | 63 RTCD_EXTERN unsigned int (*vpx_sad16x16)(const uint8_t *src_ptr, int src_stride,
const uint8_t *ref_ptr, int ref_stride); |
25 | 64 |
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); | 65 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 unsigned int vpx_sad16x16_avg_sse2(const uint8_t *src_ptr, int src_stride, const
uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); | 66 unsigned int vpx_sad16x16_avg_sse2(const uint8_t *src_ptr, int src_stride, const
uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); |
28 RTCD_EXTERN unsigned int (*vpx_sad16x16_avg)(const uint8_t *src_ptr, int src_str
ide, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); | 67 RTCD_EXTERN unsigned int (*vpx_sad16x16_avg)(const uint8_t *src_ptr, int src_str
ide, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); |
29 | 68 |
30 void vpx_sad16x16x3_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref
_ptr, int ref_stride, uint32_t *sad_array); | 69 void vpx_sad16x16x3_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref
_ptr, int ref_stride, uint32_t *sad_array); |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 RTCD_EXTERN void (*vpx_sad8x8x3)(const uint8_t *src_ptr, int src_stride, const u
int8_t *ref_ptr, int ref_stride, uint32_t *sad_array); | 283 RTCD_EXTERN void (*vpx_sad8x8x3)(const uint8_t *src_ptr, int src_stride, const u
int8_t *ref_ptr, int ref_stride, uint32_t *sad_array); |
245 | 284 |
246 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); | 285 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); |
247 void vpx_sad8x8x4d_sse2(const uint8_t *src_ptr, int src_stride, const uint8_t *
const ref_ptr[], int ref_stride, uint32_t *sad_array); | 286 void vpx_sad8x8x4d_sse2(const uint8_t *src_ptr, int src_stride, const uint8_t *
const ref_ptr[], int ref_stride, uint32_t *sad_array); |
248 RTCD_EXTERN void (*vpx_sad8x8x4d)(const uint8_t *src_ptr, int src_stride, const
uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array); | 287 RTCD_EXTERN void (*vpx_sad8x8x4d)(const uint8_t *src_ptr, int src_stride, const
uint8_t * const ref_ptr[], int ref_stride, uint32_t *sad_array); |
249 | 288 |
250 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); | 289 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); |
251 void vpx_sad8x8x8_sse4_1(const uint8_t *src_ptr, int src_stride, const uint8_t *
ref_ptr, int ref_stride, uint32_t *sad_array); | 290 void vpx_sad8x8x8_sse4_1(const uint8_t *src_ptr, int src_stride, const uint8_t *
ref_ptr, int ref_stride, uint32_t *sad_array); |
252 RTCD_EXTERN void (*vpx_sad8x8x8)(const uint8_t *src_ptr, int src_stride, const u
int8_t *ref_ptr, int ref_stride, uint32_t *sad_array); | 291 RTCD_EXTERN void (*vpx_sad8x8x8)(const uint8_t *src_ptr, int src_stride, const u
int8_t *ref_ptr, int ref_stride, uint32_t *sad_array); |
253 | 292 |
| 293 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); |
| 294 unsigned int vpx_variance16x16_mmx(const uint8_t *src_ptr, int source_stride, co
nst uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 295 unsigned int vpx_variance16x16_sse2(const uint8_t *src_ptr, int source_stride, c
onst uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 296 unsigned int vpx_variance16x16_avx2(const uint8_t *src_ptr, int source_stride, c
onst uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 297 RTCD_EXTERN unsigned int (*vpx_variance16x16)(const uint8_t *src_ptr, int source
_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 298 |
| 299 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); |
| 300 unsigned int vpx_variance16x32_sse2(const uint8_t *src_ptr, int source_stride, c
onst uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 301 RTCD_EXTERN unsigned int (*vpx_variance16x32)(const uint8_t *src_ptr, int source
_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 302 |
| 303 unsigned int vpx_variance16x8_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 304 unsigned int vpx_variance16x8_mmx(const uint8_t *src_ptr, int source_stride, con
st uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 305 unsigned int vpx_variance16x8_sse2(const uint8_t *src_ptr, int source_stride, co
nst uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 306 RTCD_EXTERN unsigned int (*vpx_variance16x8)(const uint8_t *src_ptr, int source_
stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 307 |
| 308 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); |
| 309 unsigned int vpx_variance32x16_sse2(const uint8_t *src_ptr, int source_stride, c
onst uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 310 unsigned int vpx_variance32x16_avx2(const uint8_t *src_ptr, int source_stride, c
onst uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 311 RTCD_EXTERN unsigned int (*vpx_variance32x16)(const uint8_t *src_ptr, int source
_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 312 |
| 313 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); |
| 314 unsigned int vpx_variance32x32_sse2(const uint8_t *src_ptr, int source_stride, c
onst uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 315 unsigned int vpx_variance32x32_avx2(const uint8_t *src_ptr, int source_stride, c
onst uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 316 RTCD_EXTERN unsigned int (*vpx_variance32x32)(const uint8_t *src_ptr, int source
_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 317 |
| 318 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); |
| 319 unsigned int vpx_variance32x64_sse2(const uint8_t *src_ptr, int source_stride, c
onst uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 320 RTCD_EXTERN unsigned int (*vpx_variance32x64)(const uint8_t *src_ptr, int source
_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 321 |
| 322 unsigned int vpx_variance4x4_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 323 unsigned int vpx_variance4x4_mmx(const uint8_t *src_ptr, int source_stride, cons
t uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 324 unsigned int vpx_variance4x4_sse2(const uint8_t *src_ptr, int source_stride, con
st uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 325 RTCD_EXTERN unsigned int (*vpx_variance4x4)(const uint8_t *src_ptr, int source_s
tride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 326 |
| 327 unsigned int vpx_variance4x8_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 328 unsigned int vpx_variance4x8_sse2(const uint8_t *src_ptr, int source_stride, con
st uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 329 RTCD_EXTERN unsigned int (*vpx_variance4x8)(const uint8_t *src_ptr, int source_s
tride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 330 |
| 331 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); |
| 332 unsigned int vpx_variance64x32_sse2(const uint8_t *src_ptr, int source_stride, c
onst uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 333 unsigned int vpx_variance64x32_avx2(const uint8_t *src_ptr, int source_stride, c
onst uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 334 RTCD_EXTERN unsigned int (*vpx_variance64x32)(const uint8_t *src_ptr, int source
_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 335 |
| 336 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); |
| 337 unsigned int vpx_variance64x64_sse2(const uint8_t *src_ptr, int source_stride, c
onst uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 338 unsigned int vpx_variance64x64_avx2(const uint8_t *src_ptr, int source_stride, c
onst uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 339 RTCD_EXTERN unsigned int (*vpx_variance64x64)(const uint8_t *src_ptr, int source
_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 340 |
| 341 unsigned int vpx_variance8x16_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 342 unsigned int vpx_variance8x16_mmx(const uint8_t *src_ptr, int source_stride, con
st uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 343 unsigned int vpx_variance8x16_sse2(const uint8_t *src_ptr, int source_stride, co
nst uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 344 RTCD_EXTERN unsigned int (*vpx_variance8x16)(const uint8_t *src_ptr, int source_
stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 345 |
| 346 unsigned int vpx_variance8x4_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 347 unsigned int vpx_variance8x4_sse2(const uint8_t *src_ptr, int source_stride, con
st uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 348 RTCD_EXTERN unsigned int (*vpx_variance8x4)(const uint8_t *src_ptr, int source_s
tride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 349 |
| 350 unsigned int vpx_variance8x8_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 351 unsigned int vpx_variance8x8_mmx(const uint8_t *src_ptr, int source_stride, cons
t uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 352 unsigned int vpx_variance8x8_sse2(const uint8_t *src_ptr, int source_stride, con
st uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 353 RTCD_EXTERN unsigned int (*vpx_variance8x8)(const uint8_t *src_ptr, int source_s
tride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 354 |
254 void vpx_dsp_rtcd(void); | 355 void vpx_dsp_rtcd(void); |
255 | 356 |
256 #ifdef RTCD_C | 357 #ifdef RTCD_C |
257 #include "vpx_ports/x86.h" | 358 #include "vpx_ports/x86.h" |
258 static void setup_rtcd_internal(void) | 359 static void setup_rtcd_internal(void) |
259 { | 360 { |
260 int flags = x86_simd_caps(); | 361 int flags = x86_simd_caps(); |
261 | 362 |
262 (void)flags; | 363 (void)flags; |
263 | 364 |
| 365 vpx_get16x16var = vpx_get16x16var_c; |
| 366 if (flags & HAS_SSE2) vpx_get16x16var = vpx_get16x16var_sse2; |
| 367 if (flags & HAS_AVX2) vpx_get16x16var = vpx_get16x16var_avx2; |
| 368 vpx_get8x8var = vpx_get8x8var_c; |
| 369 if (flags & HAS_MMX) vpx_get8x8var = vpx_get8x8var_mmx; |
| 370 if (flags & HAS_SSE2) vpx_get8x8var = vpx_get8x8var_sse2; |
| 371 vpx_get_mb_ss = vpx_get_mb_ss_c; |
| 372 if (flags & HAS_MMX) vpx_get_mb_ss = vpx_get_mb_ss_mmx; |
| 373 if (flags & HAS_SSE2) vpx_get_mb_ss = vpx_get_mb_ss_sse2; |
| 374 vpx_mse16x16 = vpx_mse16x16_c; |
| 375 if (flags & HAS_MMX) vpx_mse16x16 = vpx_mse16x16_mmx; |
| 376 if (flags & HAS_SSE2) vpx_mse16x16 = vpx_mse16x16_sse2; |
| 377 if (flags & HAS_AVX2) vpx_mse16x16 = vpx_mse16x16_avx2; |
| 378 vpx_mse16x8 = vpx_mse16x8_c; |
| 379 if (flags & HAS_SSE2) vpx_mse16x8 = vpx_mse16x8_sse2; |
| 380 vpx_mse8x16 = vpx_mse8x16_c; |
| 381 if (flags & HAS_SSE2) vpx_mse8x16 = vpx_mse8x16_sse2; |
| 382 vpx_mse8x8 = vpx_mse8x8_c; |
| 383 if (flags & HAS_SSE2) vpx_mse8x8 = vpx_mse8x8_sse2; |
264 vpx_sad16x16 = vpx_sad16x16_c; | 384 vpx_sad16x16 = vpx_sad16x16_c; |
265 if (flags & HAS_MMX) vpx_sad16x16 = vpx_sad16x16_mmx; | 385 if (flags & HAS_MMX) vpx_sad16x16 = vpx_sad16x16_mmx; |
266 if (flags & HAS_SSE2) vpx_sad16x16 = vpx_sad16x16_sse2; | 386 if (flags & HAS_SSE2) vpx_sad16x16 = vpx_sad16x16_sse2; |
267 vpx_sad16x16_avg = vpx_sad16x16_avg_c; | 387 vpx_sad16x16_avg = vpx_sad16x16_avg_c; |
268 if (flags & HAS_SSE2) vpx_sad16x16_avg = vpx_sad16x16_avg_sse2; | 388 if (flags & HAS_SSE2) vpx_sad16x16_avg = vpx_sad16x16_avg_sse2; |
269 vpx_sad16x16x3 = vpx_sad16x16x3_c; | 389 vpx_sad16x16x3 = vpx_sad16x16x3_c; |
270 if (flags & HAS_SSE3) vpx_sad16x16x3 = vpx_sad16x16x3_sse3; | 390 if (flags & HAS_SSE3) vpx_sad16x16x3 = vpx_sad16x16x3_sse3; |
271 if (flags & HAS_SSSE3) vpx_sad16x16x3 = vpx_sad16x16x3_ssse3; | 391 if (flags & HAS_SSSE3) vpx_sad16x16x3 = vpx_sad16x16x3_ssse3; |
272 vpx_sad16x16x4d = vpx_sad16x16x4d_c; | 392 vpx_sad16x16x4d = vpx_sad16x16x4d_c; |
273 if (flags & HAS_SSE2) vpx_sad16x16x4d = vpx_sad16x16x4d_sse2; | 393 if (flags & HAS_SSE2) vpx_sad16x16x4d = vpx_sad16x16x4d_sse2; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 if (flags & HAS_MMX) vpx_sad8x8 = vpx_sad8x8_mmx; | 491 if (flags & HAS_MMX) vpx_sad8x8 = vpx_sad8x8_mmx; |
372 if (flags & HAS_SSE2) vpx_sad8x8 = vpx_sad8x8_sse2; | 492 if (flags & HAS_SSE2) vpx_sad8x8 = vpx_sad8x8_sse2; |
373 vpx_sad8x8_avg = vpx_sad8x8_avg_c; | 493 vpx_sad8x8_avg = vpx_sad8x8_avg_c; |
374 if (flags & HAS_SSE2) vpx_sad8x8_avg = vpx_sad8x8_avg_sse2; | 494 if (flags & HAS_SSE2) vpx_sad8x8_avg = vpx_sad8x8_avg_sse2; |
375 vpx_sad8x8x3 = vpx_sad8x8x3_c; | 495 vpx_sad8x8x3 = vpx_sad8x8x3_c; |
376 if (flags & HAS_SSE3) vpx_sad8x8x3 = vpx_sad8x8x3_sse3; | 496 if (flags & HAS_SSE3) vpx_sad8x8x3 = vpx_sad8x8x3_sse3; |
377 vpx_sad8x8x4d = vpx_sad8x8x4d_c; | 497 vpx_sad8x8x4d = vpx_sad8x8x4d_c; |
378 if (flags & HAS_SSE2) vpx_sad8x8x4d = vpx_sad8x8x4d_sse2; | 498 if (flags & HAS_SSE2) vpx_sad8x8x4d = vpx_sad8x8x4d_sse2; |
379 vpx_sad8x8x8 = vpx_sad8x8x8_c; | 499 vpx_sad8x8x8 = vpx_sad8x8x8_c; |
380 if (flags & HAS_SSE4_1) vpx_sad8x8x8 = vpx_sad8x8x8_sse4_1; | 500 if (flags & HAS_SSE4_1) vpx_sad8x8x8 = vpx_sad8x8x8_sse4_1; |
| 501 vpx_variance16x16 = vpx_variance16x16_c; |
| 502 if (flags & HAS_MMX) vpx_variance16x16 = vpx_variance16x16_mmx; |
| 503 if (flags & HAS_SSE2) vpx_variance16x16 = vpx_variance16x16_sse2; |
| 504 if (flags & HAS_AVX2) vpx_variance16x16 = vpx_variance16x16_avx2; |
| 505 vpx_variance16x32 = vpx_variance16x32_c; |
| 506 if (flags & HAS_SSE2) vpx_variance16x32 = vpx_variance16x32_sse2; |
| 507 vpx_variance16x8 = vpx_variance16x8_c; |
| 508 if (flags & HAS_MMX) vpx_variance16x8 = vpx_variance16x8_mmx; |
| 509 if (flags & HAS_SSE2) vpx_variance16x8 = vpx_variance16x8_sse2; |
| 510 vpx_variance32x16 = vpx_variance32x16_c; |
| 511 if (flags & HAS_SSE2) vpx_variance32x16 = vpx_variance32x16_sse2; |
| 512 if (flags & HAS_AVX2) vpx_variance32x16 = vpx_variance32x16_avx2; |
| 513 vpx_variance32x32 = vpx_variance32x32_c; |
| 514 if (flags & HAS_SSE2) vpx_variance32x32 = vpx_variance32x32_sse2; |
| 515 if (flags & HAS_AVX2) vpx_variance32x32 = vpx_variance32x32_avx2; |
| 516 vpx_variance32x64 = vpx_variance32x64_c; |
| 517 if (flags & HAS_SSE2) vpx_variance32x64 = vpx_variance32x64_sse2; |
| 518 vpx_variance4x4 = vpx_variance4x4_c; |
| 519 if (flags & HAS_MMX) vpx_variance4x4 = vpx_variance4x4_mmx; |
| 520 if (flags & HAS_SSE2) vpx_variance4x4 = vpx_variance4x4_sse2; |
| 521 vpx_variance4x8 = vpx_variance4x8_c; |
| 522 if (flags & HAS_SSE2) vpx_variance4x8 = vpx_variance4x8_sse2; |
| 523 vpx_variance64x32 = vpx_variance64x32_c; |
| 524 if (flags & HAS_SSE2) vpx_variance64x32 = vpx_variance64x32_sse2; |
| 525 if (flags & HAS_AVX2) vpx_variance64x32 = vpx_variance64x32_avx2; |
| 526 vpx_variance64x64 = vpx_variance64x64_c; |
| 527 if (flags & HAS_SSE2) vpx_variance64x64 = vpx_variance64x64_sse2; |
| 528 if (flags & HAS_AVX2) vpx_variance64x64 = vpx_variance64x64_avx2; |
| 529 vpx_variance8x16 = vpx_variance8x16_c; |
| 530 if (flags & HAS_MMX) vpx_variance8x16 = vpx_variance8x16_mmx; |
| 531 if (flags & HAS_SSE2) vpx_variance8x16 = vpx_variance8x16_sse2; |
| 532 vpx_variance8x4 = vpx_variance8x4_c; |
| 533 if (flags & HAS_SSE2) vpx_variance8x4 = vpx_variance8x4_sse2; |
| 534 vpx_variance8x8 = vpx_variance8x8_c; |
| 535 if (flags & HAS_MMX) vpx_variance8x8 = vpx_variance8x8_mmx; |
| 536 if (flags & HAS_SSE2) vpx_variance8x8 = vpx_variance8x8_sse2; |
381 } | 537 } |
382 #endif | 538 #endif |
383 | 539 |
384 #ifdef __cplusplus | 540 #ifdef __cplusplus |
385 } // extern "C" | 541 } // extern "C" |
386 #endif | 542 #endif |
387 | 543 |
388 #endif | 544 #endif |
OLD | NEW |