| OLD | NEW |
| 1 #ifndef VP9_RTCD_H_ | 1 #ifndef VP9_RTCD_H_ |
| 2 #define VP9_RTCD_H_ | 2 #define VP9_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 /* |
| (...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 919 RTCD_EXTERN unsigned int (*vp9_variance8x16)(const uint8_t *src_ptr, int source_
stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); | 919 RTCD_EXTERN unsigned int (*vp9_variance8x16)(const uint8_t *src_ptr, int source_
stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 920 | 920 |
| 921 unsigned int vp9_variance8x4_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, unsigned int *sse); | 921 unsigned int vp9_variance8x4_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 922 unsigned int vp9_variance8x4_sse2(const uint8_t *src_ptr, int source_stride, con
st uint8_t *ref_ptr, int ref_stride, unsigned int *sse); | 922 unsigned int vp9_variance8x4_sse2(const uint8_t *src_ptr, int source_stride, con
st uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 923 RTCD_EXTERN unsigned int (*vp9_variance8x4)(const uint8_t *src_ptr, int source_s
tride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); | 923 RTCD_EXTERN unsigned int (*vp9_variance8x4)(const uint8_t *src_ptr, int source_s
tride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 924 | 924 |
| 925 unsigned int vp9_variance8x8_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, unsigned int *sse); | 925 unsigned int vp9_variance8x8_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 926 unsigned int vp9_variance8x8_sse2(const uint8_t *src_ptr, int source_stride, con
st uint8_t *ref_ptr, int ref_stride, unsigned int *sse); | 926 unsigned int vp9_variance8x8_sse2(const uint8_t *src_ptr, int source_stride, con
st uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 927 RTCD_EXTERN unsigned int (*vp9_variance8x8)(const uint8_t *src_ptr, int source_s
tride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); | 927 RTCD_EXTERN unsigned int (*vp9_variance8x8)(const uint8_t *src_ptr, int source_s
tride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
| 928 | 928 |
| 929 int vp9_vector_sad_c(int16_t const *ref, int16_t const *src, const int width); | 929 int vp9_vector_var_c(int16_t const *ref, int16_t const *src, const int bwl); |
| 930 int vp9_vector_sad_sse2(int16_t const *ref, int16_t const *src, const int width)
; | 930 int vp9_vector_var_sse2(int16_t const *ref, int16_t const *src, const int bwl); |
| 931 RTCD_EXTERN int (*vp9_vector_sad)(int16_t const *ref, int16_t const *src, const
int width); | 931 RTCD_EXTERN int (*vp9_vector_var)(int16_t const *ref, int16_t const *src, const
int bwl); |
| 932 | 932 |
| 933 void vp9_rtcd(void); | 933 void vp9_rtcd(void); |
| 934 | 934 |
| 935 #ifdef RTCD_C | 935 #ifdef RTCD_C |
| 936 #include "vpx_ports/x86.h" | 936 #include "vpx_ports/x86.h" |
| 937 static void setup_rtcd_internal(void) | 937 static void setup_rtcd_internal(void) |
| 938 { | 938 { |
| 939 int flags = x86_simd_caps(); | 939 int flags = x86_simd_caps(); |
| 940 | 940 |
| 941 (void)flags; | 941 (void)flags; |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1357 if (flags & HAS_AVX2) vp9_variance64x32 = vp9_variance64x32_avx2; | 1357 if (flags & HAS_AVX2) vp9_variance64x32 = vp9_variance64x32_avx2; |
| 1358 vp9_variance64x64 = vp9_variance64x64_c; | 1358 vp9_variance64x64 = vp9_variance64x64_c; |
| 1359 if (flags & HAS_SSE2) vp9_variance64x64 = vp9_variance64x64_sse2; | 1359 if (flags & HAS_SSE2) vp9_variance64x64 = vp9_variance64x64_sse2; |
| 1360 if (flags & HAS_AVX2) vp9_variance64x64 = vp9_variance64x64_avx2; | 1360 if (flags & HAS_AVX2) vp9_variance64x64 = vp9_variance64x64_avx2; |
| 1361 vp9_variance8x16 = vp9_variance8x16_c; | 1361 vp9_variance8x16 = vp9_variance8x16_c; |
| 1362 if (flags & HAS_SSE2) vp9_variance8x16 = vp9_variance8x16_sse2; | 1362 if (flags & HAS_SSE2) vp9_variance8x16 = vp9_variance8x16_sse2; |
| 1363 vp9_variance8x4 = vp9_variance8x4_c; | 1363 vp9_variance8x4 = vp9_variance8x4_c; |
| 1364 if (flags & HAS_SSE2) vp9_variance8x4 = vp9_variance8x4_sse2; | 1364 if (flags & HAS_SSE2) vp9_variance8x4 = vp9_variance8x4_sse2; |
| 1365 vp9_variance8x8 = vp9_variance8x8_c; | 1365 vp9_variance8x8 = vp9_variance8x8_c; |
| 1366 if (flags & HAS_SSE2) vp9_variance8x8 = vp9_variance8x8_sse2; | 1366 if (flags & HAS_SSE2) vp9_variance8x8 = vp9_variance8x8_sse2; |
| 1367 vp9_vector_sad = vp9_vector_sad_c; | 1367 vp9_vector_var = vp9_vector_var_c; |
| 1368 if (flags & HAS_SSE2) vp9_vector_sad = vp9_vector_sad_sse2; | 1368 if (flags & HAS_SSE2) vp9_vector_var = vp9_vector_var_sse2; |
| 1369 } | 1369 } |
| 1370 #endif | 1370 #endif |
| 1371 | 1371 |
| 1372 #ifdef __cplusplus | 1372 #ifdef __cplusplus |
| 1373 } // extern "C" | 1373 } // extern "C" |
| 1374 #endif | 1374 #endif |
| 1375 | 1375 |
| 1376 #endif | 1376 #endif |
| OLD | NEW |