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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 RTCD_EXTERN void (*vp9_iht16x16_256_add)(const tran_low_t *input, uint8_t *outpu
t, int pitch, int tx_type); | 376 RTCD_EXTERN void (*vp9_iht16x16_256_add)(const tran_low_t *input, uint8_t *outpu
t, int pitch, int tx_type); |
377 | 377 |
378 void vp9_iht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride
, int tx_type); | 378 void vp9_iht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride
, int tx_type); |
379 void vp9_iht4x4_16_add_sse2(const tran_low_t *input, uint8_t *dest, int dest_str
ide, int tx_type); | 379 void vp9_iht4x4_16_add_sse2(const tran_low_t *input, uint8_t *dest, int dest_str
ide, int tx_type); |
380 RTCD_EXTERN void (*vp9_iht4x4_16_add)(const tran_low_t *input, uint8_t *dest, in
t dest_stride, int tx_type); | 380 RTCD_EXTERN void (*vp9_iht4x4_16_add)(const tran_low_t *input, uint8_t *dest, in
t dest_stride, int tx_type); |
381 | 381 |
382 void vp9_iht8x8_64_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride
, int tx_type); | 382 void vp9_iht8x8_64_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride
, int tx_type); |
383 void vp9_iht8x8_64_add_sse2(const tran_low_t *input, uint8_t *dest, int dest_str
ide, int tx_type); | 383 void vp9_iht8x8_64_add_sse2(const tran_low_t *input, uint8_t *dest, int dest_str
ide, int tx_type); |
384 RTCD_EXTERN void (*vp9_iht8x8_64_add)(const tran_low_t *input, uint8_t *dest, in
t dest_stride, int tx_type); | 384 RTCD_EXTERN void (*vp9_iht8x8_64_add)(const tran_low_t *input, uint8_t *dest, in
t dest_stride, int tx_type); |
385 | 385 |
| 386 int16_t vp9_int_pro_col_c(uint8_t const *ref, const int width); |
| 387 int16_t vp9_int_pro_col_sse2(uint8_t const *ref, const int width); |
| 388 RTCD_EXTERN int16_t (*vp9_int_pro_col)(uint8_t const *ref, const int width); |
| 389 |
| 390 void vp9_int_pro_row_c(int16_t *hbuf, uint8_t const *ref, const int ref_stride,
const int height); |
| 391 void vp9_int_pro_row_sse2(int16_t *hbuf, uint8_t const *ref, const int ref_strid
e, const int height); |
| 392 RTCD_EXTERN void (*vp9_int_pro_row)(int16_t *hbuf, uint8_t const *ref, const int
ref_stride, const int height); |
| 393 |
386 void vp9_iwht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int dest_strid
e); | 394 void vp9_iwht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int dest_strid
e); |
387 #define vp9_iwht4x4_16_add vp9_iwht4x4_16_add_c | 395 #define vp9_iwht4x4_16_add vp9_iwht4x4_16_add_c |
388 | 396 |
389 void vp9_iwht4x4_1_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride
); | 397 void vp9_iwht4x4_1_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride
); |
390 #define vp9_iwht4x4_1_add vp9_iwht4x4_1_add_c | 398 #define vp9_iwht4x4_1_add vp9_iwht4x4_1_add_c |
391 | 399 |
392 void vp9_lpf_horizontal_16_c(uint8_t *s, int pitch, const uint8_t *blimit, const
uint8_t *limit, const uint8_t *thresh, int count); | 400 void vp9_lpf_horizontal_16_c(uint8_t *s, int pitch, const uint8_t *blimit, const
uint8_t *limit, const uint8_t *thresh, int count); |
393 void vp9_lpf_horizontal_16_sse2(uint8_t *s, int pitch, const uint8_t *blimit, co
nst uint8_t *limit, const uint8_t *thresh, int count); | 401 void vp9_lpf_horizontal_16_sse2(uint8_t *s, int pitch, const uint8_t *blimit, co
nst uint8_t *limit, const uint8_t *thresh, int count); |
394 void vp9_lpf_horizontal_16_avx2(uint8_t *s, int pitch, const uint8_t *blimit, co
nst uint8_t *limit, const uint8_t *thresh, int count); | 402 void vp9_lpf_horizontal_16_avx2(uint8_t *s, int pitch, const uint8_t *blimit, co
nst uint8_t *limit, const uint8_t *thresh, int count); |
395 RTCD_EXTERN void (*vp9_lpf_horizontal_16)(uint8_t *s, int pitch, const uint8_t *
blimit, const uint8_t *limit, const uint8_t *thresh, int count); | 403 RTCD_EXTERN void (*vp9_lpf_horizontal_16)(uint8_t *s, int pitch, const uint8_t *
blimit, const uint8_t *limit, const uint8_t *thresh, int count); |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
911 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); |
912 | 920 |
913 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); |
914 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); |
915 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); |
916 | 924 |
917 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); |
918 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); |
919 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); |
920 | 928 |
| 929 int vp9_vector_sad_c(int16_t const *ref, int16_t const *src, const int width); |
| 930 int vp9_vector_sad_sse2(int16_t const *ref, int16_t const *src, const int width)
; |
| 931 RTCD_EXTERN int (*vp9_vector_sad)(int16_t const *ref, int16_t const *src, const
int width); |
| 932 |
921 void vp9_rtcd(void); | 933 void vp9_rtcd(void); |
922 | 934 |
923 #ifdef RTCD_C | 935 #ifdef RTCD_C |
924 #include "vpx_ports/x86.h" | 936 #include "vpx_ports/x86.h" |
925 static void setup_rtcd_internal(void) | 937 static void setup_rtcd_internal(void) |
926 { | 938 { |
927 int flags = x86_simd_caps(); | 939 int flags = x86_simd_caps(); |
928 | 940 |
929 (void)flags; | 941 (void)flags; |
930 | 942 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1072 vp9_idct8x8_1_add = vp9_idct8x8_1_add_c; | 1084 vp9_idct8x8_1_add = vp9_idct8x8_1_add_c; |
1073 if (flags & HAS_SSE2) vp9_idct8x8_1_add = vp9_idct8x8_1_add_sse2; | 1085 if (flags & HAS_SSE2) vp9_idct8x8_1_add = vp9_idct8x8_1_add_sse2; |
1074 vp9_idct8x8_64_add = vp9_idct8x8_64_add_c; | 1086 vp9_idct8x8_64_add = vp9_idct8x8_64_add_c; |
1075 if (flags & HAS_SSE2) vp9_idct8x8_64_add = vp9_idct8x8_64_add_sse2; | 1087 if (flags & HAS_SSE2) vp9_idct8x8_64_add = vp9_idct8x8_64_add_sse2; |
1076 vp9_iht16x16_256_add = vp9_iht16x16_256_add_c; | 1088 vp9_iht16x16_256_add = vp9_iht16x16_256_add_c; |
1077 if (flags & HAS_SSE2) vp9_iht16x16_256_add = vp9_iht16x16_256_add_sse2; | 1089 if (flags & HAS_SSE2) vp9_iht16x16_256_add = vp9_iht16x16_256_add_sse2; |
1078 vp9_iht4x4_16_add = vp9_iht4x4_16_add_c; | 1090 vp9_iht4x4_16_add = vp9_iht4x4_16_add_c; |
1079 if (flags & HAS_SSE2) vp9_iht4x4_16_add = vp9_iht4x4_16_add_sse2; | 1091 if (flags & HAS_SSE2) vp9_iht4x4_16_add = vp9_iht4x4_16_add_sse2; |
1080 vp9_iht8x8_64_add = vp9_iht8x8_64_add_c; | 1092 vp9_iht8x8_64_add = vp9_iht8x8_64_add_c; |
1081 if (flags & HAS_SSE2) vp9_iht8x8_64_add = vp9_iht8x8_64_add_sse2; | 1093 if (flags & HAS_SSE2) vp9_iht8x8_64_add = vp9_iht8x8_64_add_sse2; |
| 1094 vp9_int_pro_col = vp9_int_pro_col_c; |
| 1095 if (flags & HAS_SSE2) vp9_int_pro_col = vp9_int_pro_col_sse2; |
| 1096 vp9_int_pro_row = vp9_int_pro_row_c; |
| 1097 if (flags & HAS_SSE2) vp9_int_pro_row = vp9_int_pro_row_sse2; |
1082 vp9_lpf_horizontal_16 = vp9_lpf_horizontal_16_c; | 1098 vp9_lpf_horizontal_16 = vp9_lpf_horizontal_16_c; |
1083 if (flags & HAS_SSE2) vp9_lpf_horizontal_16 = vp9_lpf_horizontal_16_sse2; | 1099 if (flags & HAS_SSE2) vp9_lpf_horizontal_16 = vp9_lpf_horizontal_16_sse2; |
1084 if (flags & HAS_AVX2) vp9_lpf_horizontal_16 = vp9_lpf_horizontal_16_avx2; | 1100 if (flags & HAS_AVX2) vp9_lpf_horizontal_16 = vp9_lpf_horizontal_16_avx2; |
1085 vp9_lpf_horizontal_4 = vp9_lpf_horizontal_4_c; | 1101 vp9_lpf_horizontal_4 = vp9_lpf_horizontal_4_c; |
1086 if (flags & HAS_MMX) vp9_lpf_horizontal_4 = vp9_lpf_horizontal_4_mmx; | 1102 if (flags & HAS_MMX) vp9_lpf_horizontal_4 = vp9_lpf_horizontal_4_mmx; |
1087 vp9_lpf_horizontal_4_dual = vp9_lpf_horizontal_4_dual_c; | 1103 vp9_lpf_horizontal_4_dual = vp9_lpf_horizontal_4_dual_c; |
1088 if (flags & HAS_SSE2) vp9_lpf_horizontal_4_dual = vp9_lpf_horizontal_4_dual_
sse2; | 1104 if (flags & HAS_SSE2) vp9_lpf_horizontal_4_dual = vp9_lpf_horizontal_4_dual_
sse2; |
1089 vp9_lpf_horizontal_8 = vp9_lpf_horizontal_8_c; | 1105 vp9_lpf_horizontal_8 = vp9_lpf_horizontal_8_c; |
1090 if (flags & HAS_SSE2) vp9_lpf_horizontal_8 = vp9_lpf_horizontal_8_sse2; | 1106 if (flags & HAS_SSE2) vp9_lpf_horizontal_8 = vp9_lpf_horizontal_8_sse2; |
1091 vp9_lpf_horizontal_8_dual = vp9_lpf_horizontal_8_dual_c; | 1107 vp9_lpf_horizontal_8_dual = vp9_lpf_horizontal_8_dual_c; |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1341 if (flags & HAS_AVX2) vp9_variance64x32 = vp9_variance64x32_avx2; | 1357 if (flags & HAS_AVX2) vp9_variance64x32 = vp9_variance64x32_avx2; |
1342 vp9_variance64x64 = vp9_variance64x64_c; | 1358 vp9_variance64x64 = vp9_variance64x64_c; |
1343 if (flags & HAS_SSE2) vp9_variance64x64 = vp9_variance64x64_sse2; | 1359 if (flags & HAS_SSE2) vp9_variance64x64 = vp9_variance64x64_sse2; |
1344 if (flags & HAS_AVX2) vp9_variance64x64 = vp9_variance64x64_avx2; | 1360 if (flags & HAS_AVX2) vp9_variance64x64 = vp9_variance64x64_avx2; |
1345 vp9_variance8x16 = vp9_variance8x16_c; | 1361 vp9_variance8x16 = vp9_variance8x16_c; |
1346 if (flags & HAS_SSE2) vp9_variance8x16 = vp9_variance8x16_sse2; | 1362 if (flags & HAS_SSE2) vp9_variance8x16 = vp9_variance8x16_sse2; |
1347 vp9_variance8x4 = vp9_variance8x4_c; | 1363 vp9_variance8x4 = vp9_variance8x4_c; |
1348 if (flags & HAS_SSE2) vp9_variance8x4 = vp9_variance8x4_sse2; | 1364 if (flags & HAS_SSE2) vp9_variance8x4 = vp9_variance8x4_sse2; |
1349 vp9_variance8x8 = vp9_variance8x8_c; | 1365 vp9_variance8x8 = vp9_variance8x8_c; |
1350 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; |
| 1368 if (flags & HAS_SSE2) vp9_vector_sad = vp9_vector_sad_sse2; |
1351 } | 1369 } |
1352 #endif | 1370 #endif |
1353 | 1371 |
1354 #ifdef __cplusplus | 1372 #ifdef __cplusplus |
1355 } // extern "C" | 1373 } // extern "C" |
1356 #endif | 1374 #endif |
1357 | 1375 |
1358 #endif | 1376 #endif |
OLD | NEW |