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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 #define vp9_iht16x16_256_add vp9_iht16x16_256_add_sse2 | 379 #define vp9_iht16x16_256_add vp9_iht16x16_256_add_sse2 |
380 | 380 |
381 void vp9_iht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride
, int tx_type); | 381 void vp9_iht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride
, int tx_type); |
382 void vp9_iht4x4_16_add_sse2(const tran_low_t *input, uint8_t *dest, int dest_str
ide, int tx_type); | 382 void vp9_iht4x4_16_add_sse2(const tran_low_t *input, uint8_t *dest, int dest_str
ide, int tx_type); |
383 #define vp9_iht4x4_16_add vp9_iht4x4_16_add_sse2 | 383 #define vp9_iht4x4_16_add vp9_iht4x4_16_add_sse2 |
384 | 384 |
385 void vp9_iht8x8_64_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride
, int tx_type); | 385 void vp9_iht8x8_64_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride
, int tx_type); |
386 void vp9_iht8x8_64_add_sse2(const tran_low_t *input, uint8_t *dest, int dest_str
ide, int tx_type); | 386 void vp9_iht8x8_64_add_sse2(const tran_low_t *input, uint8_t *dest, int dest_str
ide, int tx_type); |
387 #define vp9_iht8x8_64_add vp9_iht8x8_64_add_sse2 | 387 #define vp9_iht8x8_64_add vp9_iht8x8_64_add_sse2 |
388 | 388 |
| 389 int16_t vp9_int_pro_col_c(uint8_t const *ref, const int width); |
| 390 int16_t vp9_int_pro_col_sse2(uint8_t const *ref, const int width); |
| 391 #define vp9_int_pro_col vp9_int_pro_col_sse2 |
| 392 |
| 393 void vp9_int_pro_row_c(int16_t *hbuf, uint8_t const *ref, const int ref_stride,
const int height); |
| 394 void vp9_int_pro_row_sse2(int16_t *hbuf, uint8_t const *ref, const int ref_strid
e, const int height); |
| 395 #define vp9_int_pro_row vp9_int_pro_row_sse2 |
| 396 |
389 void vp9_iwht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int dest_strid
e); | 397 void vp9_iwht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int dest_strid
e); |
390 #define vp9_iwht4x4_16_add vp9_iwht4x4_16_add_c | 398 #define vp9_iwht4x4_16_add vp9_iwht4x4_16_add_c |
391 | 399 |
392 void vp9_iwht4x4_1_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride
); | 400 void vp9_iwht4x4_1_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride
); |
393 #define vp9_iwht4x4_1_add vp9_iwht4x4_1_add_c | 401 #define vp9_iwht4x4_1_add vp9_iwht4x4_1_add_c |
394 | 402 |
395 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); | 403 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); |
396 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); | 404 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); |
397 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); | 405 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); |
398 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); | 406 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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
919 #define vp9_variance8x16 vp9_variance8x16_sse2 | 927 #define vp9_variance8x16 vp9_variance8x16_sse2 |
920 | 928 |
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); | 929 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); | 930 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 #define vp9_variance8x4 vp9_variance8x4_sse2 | 931 #define vp9_variance8x4 vp9_variance8x4_sse2 |
924 | 932 |
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); | 933 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); | 934 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 #define vp9_variance8x8 vp9_variance8x8_sse2 | 935 #define vp9_variance8x8 vp9_variance8x8_sse2 |
928 | 936 |
| 937 int vp9_vector_sad_c(int16_t const *ref, int16_t const *src, const int width); |
| 938 int vp9_vector_sad_sse2(int16_t const *ref, int16_t const *src, const int width)
; |
| 939 #define vp9_vector_sad vp9_vector_sad_sse2 |
| 940 |
929 void vp9_rtcd(void); | 941 void vp9_rtcd(void); |
930 | 942 |
931 #ifdef RTCD_C | 943 #ifdef RTCD_C |
932 #include "vpx_ports/x86.h" | 944 #include "vpx_ports/x86.h" |
933 static void setup_rtcd_internal(void) | 945 static void setup_rtcd_internal(void) |
934 { | 946 { |
935 int flags = x86_simd_caps(); | 947 int flags = x86_simd_caps(); |
936 | 948 |
937 (void)flags; | 949 (void)flags; |
938 | 950 |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1127 vp9_variance64x64 = vp9_variance64x64_sse2; | 1139 vp9_variance64x64 = vp9_variance64x64_sse2; |
1128 if (flags & HAS_AVX2) vp9_variance64x64 = vp9_variance64x64_avx2; | 1140 if (flags & HAS_AVX2) vp9_variance64x64 = vp9_variance64x64_avx2; |
1129 } | 1141 } |
1130 #endif | 1142 #endif |
1131 | 1143 |
1132 #ifdef __cplusplus | 1144 #ifdef __cplusplus |
1133 } // extern "C" | 1145 } // extern "C" |
1134 #endif | 1146 #endif |
1135 | 1147 |
1136 #endif | 1148 #endif |
OLD | NEW |