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 #ifdef __cplusplus | 10 #ifdef __cplusplus |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 256 |
257 int vp9_full_range_search_c(const struct macroblock *x, const struct search_site
_config *cfg, struct mv *ref_mv, struct mv *best_mv, int search_param, int sad_p
er_bit, int *num00, const struct vp9_variance_vtable *fn_ptr, const struct mv *c
enter_mv); | 257 int vp9_full_range_search_c(const struct macroblock *x, const struct search_site
_config *cfg, struct mv *ref_mv, struct mv *best_mv, int search_param, int sad_p
er_bit, int *num00, const struct vp9_variance_vtable *fn_ptr, const struct mv *c
enter_mv); |
258 #define vp9_full_range_search vp9_full_range_search_c | 258 #define vp9_full_range_search vp9_full_range_search_c |
259 | 259 |
260 int vp9_full_search_sad_c(const struct macroblock *x, const struct mv *ref_mv, i
nt sad_per_bit, int distance, const struct vp9_variance_vtable *fn_ptr, const st
ruct mv *center_mv, struct mv *best_mv); | 260 int vp9_full_search_sad_c(const struct macroblock *x, const struct mv *ref_mv, i
nt sad_per_bit, int distance, const struct vp9_variance_vtable *fn_ptr, const st
ruct mv *center_mv, struct mv *best_mv); |
261 int vp9_full_search_sadx3(const struct macroblock *x, const struct mv *ref_mv, i
nt sad_per_bit, int distance, const struct vp9_variance_vtable *fn_ptr, const st
ruct mv *center_mv, struct mv *best_mv); | 261 int vp9_full_search_sadx3(const struct macroblock *x, const struct mv *ref_mv, i
nt sad_per_bit, int distance, const struct vp9_variance_vtable *fn_ptr, const st
ruct mv *center_mv, struct mv *best_mv); |
262 int vp9_full_search_sadx8(const struct macroblock *x, const struct mv *ref_mv, i
nt sad_per_bit, int distance, const struct vp9_variance_vtable *fn_ptr, const st
ruct mv *center_mv, struct mv *best_mv); | 262 int vp9_full_search_sadx8(const struct macroblock *x, const struct mv *ref_mv, i
nt sad_per_bit, int distance, const struct vp9_variance_vtable *fn_ptr, const st
ruct mv *center_mv, struct mv *best_mv); |
263 RTCD_EXTERN int (*vp9_full_search_sad)(const struct macroblock *x, const struct
mv *ref_mv, int sad_per_bit, int distance, const struct vp9_variance_vtable *fn_
ptr, const struct mv *center_mv, struct mv *best_mv); | 263 RTCD_EXTERN int (*vp9_full_search_sad)(const struct macroblock *x, const struct
mv *ref_mv, int sad_per_bit, int distance, const struct vp9_variance_vtable *fn_
ptr, const struct mv *center_mv, struct mv *best_mv); |
264 | 264 |
265 void vp9_fwht4x4_c(const int16_t *input, int16_t *output, int stride); | 265 void vp9_fwht4x4_c(const int16_t *input, int16_t *output, int stride); |
266 #define vp9_fwht4x4 vp9_fwht4x4_c | 266 void vp9_fwht4x4_mmx(const int16_t *input, int16_t *output, int stride); |
| 267 RTCD_EXTERN void (*vp9_fwht4x4)(const int16_t *input, int16_t *output, int strid
e); |
267 | 268 |
268 unsigned int vp9_get_mb_ss_c(const int16_t *); | 269 unsigned int vp9_get_mb_ss_c(const int16_t *); |
269 unsigned int vp9_get_mb_ss_mmx(const int16_t *); | 270 unsigned int vp9_get_mb_ss_mmx(const int16_t *); |
270 unsigned int vp9_get_mb_ss_sse2(const int16_t *); | 271 unsigned int vp9_get_mb_ss_sse2(const int16_t *); |
271 RTCD_EXTERN unsigned int (*vp9_get_mb_ss)(const int16_t *); | 272 RTCD_EXTERN unsigned int (*vp9_get_mb_ss)(const int16_t *); |
272 | 273 |
273 void vp9_h_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *ab
ove, const uint8_t *left); | 274 void vp9_h_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *ab
ove, const uint8_t *left); |
274 void vp9_h_predictor_16x16_ssse3(uint8_t *dst, ptrdiff_t y_stride, const uint8_t
*above, const uint8_t *left); | 275 void vp9_h_predictor_16x16_ssse3(uint8_t *dst, ptrdiff_t y_stride, const uint8_t
*above, const uint8_t *left); |
275 RTCD_EXTERN void (*vp9_h_predictor_16x16)(uint8_t *dst, ptrdiff_t y_stride, cons
t uint8_t *above, const uint8_t *left); | 276 RTCD_EXTERN void (*vp9_h_predictor_16x16)(uint8_t *dst, ptrdiff_t y_stride, cons
t uint8_t *above, const uint8_t *left); |
276 | 277 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 RTCD_EXTERN void (*vp9_idct32x32_34_add)(const int16_t *input, uint8_t *dest, in
t dest_stride); | 312 RTCD_EXTERN void (*vp9_idct32x32_34_add)(const int16_t *input, uint8_t *dest, in
t dest_stride); |
312 | 313 |
313 void vp9_idct4x4_16_add_c(const int16_t *input, uint8_t *dest, int dest_stride); | 314 void vp9_idct4x4_16_add_c(const int16_t *input, uint8_t *dest, int dest_stride); |
314 void vp9_idct4x4_16_add_sse2(const int16_t *input, uint8_t *dest, int dest_strid
e); | 315 void vp9_idct4x4_16_add_sse2(const int16_t *input, uint8_t *dest, int dest_strid
e); |
315 RTCD_EXTERN void (*vp9_idct4x4_16_add)(const int16_t *input, uint8_t *dest, int
dest_stride); | 316 RTCD_EXTERN void (*vp9_idct4x4_16_add)(const int16_t *input, uint8_t *dest, int
dest_stride); |
316 | 317 |
317 void vp9_idct4x4_1_add_c(const int16_t *input, uint8_t *dest, int dest_stride); | 318 void vp9_idct4x4_1_add_c(const int16_t *input, uint8_t *dest, int dest_stride); |
318 void vp9_idct4x4_1_add_sse2(const int16_t *input, uint8_t *dest, int dest_stride
); | 319 void vp9_idct4x4_1_add_sse2(const int16_t *input, uint8_t *dest, int dest_stride
); |
319 RTCD_EXTERN void (*vp9_idct4x4_1_add)(const int16_t *input, uint8_t *dest, int d
est_stride); | 320 RTCD_EXTERN void (*vp9_idct4x4_1_add)(const int16_t *input, uint8_t *dest, int d
est_stride); |
320 | 321 |
321 void vp9_idct8x8_10_add_c(const int16_t *input, uint8_t *dest, int dest_stride); | 322 void vp9_idct8x8_12_add_c(const int16_t *input, uint8_t *dest, int dest_stride); |
322 void vp9_idct8x8_10_add_sse2(const int16_t *input, uint8_t *dest, int dest_strid
e); | 323 void vp9_idct8x8_12_add_sse2(const int16_t *input, uint8_t *dest, int dest_strid
e); |
323 RTCD_EXTERN void (*vp9_idct8x8_10_add)(const int16_t *input, uint8_t *dest, int
dest_stride); | 324 RTCD_EXTERN void (*vp9_idct8x8_12_add)(const int16_t *input, uint8_t *dest, int
dest_stride); |
324 | 325 |
325 void vp9_idct8x8_1_add_c(const int16_t *input, uint8_t *dest, int dest_stride); | 326 void vp9_idct8x8_1_add_c(const int16_t *input, uint8_t *dest, int dest_stride); |
326 void vp9_idct8x8_1_add_sse2(const int16_t *input, uint8_t *dest, int dest_stride
); | 327 void vp9_idct8x8_1_add_sse2(const int16_t *input, uint8_t *dest, int dest_stride
); |
327 RTCD_EXTERN void (*vp9_idct8x8_1_add)(const int16_t *input, uint8_t *dest, int d
est_stride); | 328 RTCD_EXTERN void (*vp9_idct8x8_1_add)(const int16_t *input, uint8_t *dest, int d
est_stride); |
328 | 329 |
329 void vp9_idct8x8_64_add_c(const int16_t *input, uint8_t *dest, int dest_stride); | 330 void vp9_idct8x8_64_add_c(const int16_t *input, uint8_t *dest, int dest_stride); |
330 void vp9_idct8x8_64_add_sse2(const int16_t *input, uint8_t *dest, int dest_strid
e); | 331 void vp9_idct8x8_64_add_sse2(const int16_t *input, uint8_t *dest, int dest_strid
e); |
331 RTCD_EXTERN void (*vp9_idct8x8_64_add)(const int16_t *input, uint8_t *dest, int
dest_stride); | 332 RTCD_EXTERN void (*vp9_idct8x8_64_add)(const int16_t *input, uint8_t *dest, int
dest_stride); |
332 | 333 |
333 void vp9_iht16x16_256_add_c(const int16_t *input, uint8_t *output, int pitch, in
t tx_type); | 334 void vp9_iht16x16_256_add_c(const int16_t *input, uint8_t *output, int pitch, in
t tx_type); |
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
944 if (flags & HAS_SSE2) vp9_fdct8x8 = vp9_fdct8x8_sse2; | 945 if (flags & HAS_SSE2) vp9_fdct8x8 = vp9_fdct8x8_sse2; |
945 vp9_fht16x16 = vp9_fht16x16_c; | 946 vp9_fht16x16 = vp9_fht16x16_c; |
946 if (flags & HAS_SSE2) vp9_fht16x16 = vp9_fht16x16_sse2; | 947 if (flags & HAS_SSE2) vp9_fht16x16 = vp9_fht16x16_sse2; |
947 vp9_fht4x4 = vp9_fht4x4_c; | 948 vp9_fht4x4 = vp9_fht4x4_c; |
948 if (flags & HAS_SSE2) vp9_fht4x4 = vp9_fht4x4_sse2; | 949 if (flags & HAS_SSE2) vp9_fht4x4 = vp9_fht4x4_sse2; |
949 vp9_fht8x8 = vp9_fht8x8_c; | 950 vp9_fht8x8 = vp9_fht8x8_c; |
950 if (flags & HAS_SSE2) vp9_fht8x8 = vp9_fht8x8_sse2; | 951 if (flags & HAS_SSE2) vp9_fht8x8 = vp9_fht8x8_sse2; |
951 vp9_full_search_sad = vp9_full_search_sad_c; | 952 vp9_full_search_sad = vp9_full_search_sad_c; |
952 if (flags & HAS_SSE3) vp9_full_search_sad = vp9_full_search_sadx3; | 953 if (flags & HAS_SSE3) vp9_full_search_sad = vp9_full_search_sadx3; |
953 if (flags & HAS_SSE4_1) vp9_full_search_sad = vp9_full_search_sadx8; | 954 if (flags & HAS_SSE4_1) vp9_full_search_sad = vp9_full_search_sadx8; |
| 955 vp9_fwht4x4 = vp9_fwht4x4_c; |
| 956 if (flags & HAS_MMX) vp9_fwht4x4 = vp9_fwht4x4_mmx; |
954 vp9_get_mb_ss = vp9_get_mb_ss_c; | 957 vp9_get_mb_ss = vp9_get_mb_ss_c; |
955 if (flags & HAS_MMX) vp9_get_mb_ss = vp9_get_mb_ss_mmx; | 958 if (flags & HAS_MMX) vp9_get_mb_ss = vp9_get_mb_ss_mmx; |
956 if (flags & HAS_SSE2) vp9_get_mb_ss = vp9_get_mb_ss_sse2; | 959 if (flags & HAS_SSE2) vp9_get_mb_ss = vp9_get_mb_ss_sse2; |
957 vp9_h_predictor_16x16 = vp9_h_predictor_16x16_c; | 960 vp9_h_predictor_16x16 = vp9_h_predictor_16x16_c; |
958 if (flags & HAS_SSSE3) vp9_h_predictor_16x16 = vp9_h_predictor_16x16_ssse3; | 961 if (flags & HAS_SSSE3) vp9_h_predictor_16x16 = vp9_h_predictor_16x16_ssse3; |
959 vp9_h_predictor_32x32 = vp9_h_predictor_32x32_c; | 962 vp9_h_predictor_32x32 = vp9_h_predictor_32x32_c; |
960 if (flags & HAS_SSSE3) vp9_h_predictor_32x32 = vp9_h_predictor_32x32_ssse3; | 963 if (flags & HAS_SSSE3) vp9_h_predictor_32x32 = vp9_h_predictor_32x32_ssse3; |
961 vp9_h_predictor_4x4 = vp9_h_predictor_4x4_c; | 964 vp9_h_predictor_4x4 = vp9_h_predictor_4x4_c; |
962 if (flags & HAS_SSSE3) vp9_h_predictor_4x4 = vp9_h_predictor_4x4_ssse3; | 965 if (flags & HAS_SSSE3) vp9_h_predictor_4x4 = vp9_h_predictor_4x4_ssse3; |
963 vp9_h_predictor_8x8 = vp9_h_predictor_8x8_c; | 966 vp9_h_predictor_8x8 = vp9_h_predictor_8x8_c; |
964 if (flags & HAS_SSSE3) vp9_h_predictor_8x8 = vp9_h_predictor_8x8_ssse3; | 967 if (flags & HAS_SSSE3) vp9_h_predictor_8x8 = vp9_h_predictor_8x8_ssse3; |
965 vp9_idct16x16_10_add = vp9_idct16x16_10_add_c; | 968 vp9_idct16x16_10_add = vp9_idct16x16_10_add_c; |
966 if (flags & HAS_SSE2) vp9_idct16x16_10_add = vp9_idct16x16_10_add_sse2; | 969 if (flags & HAS_SSE2) vp9_idct16x16_10_add = vp9_idct16x16_10_add_sse2; |
967 vp9_idct16x16_1_add = vp9_idct16x16_1_add_c; | 970 vp9_idct16x16_1_add = vp9_idct16x16_1_add_c; |
968 if (flags & HAS_SSE2) vp9_idct16x16_1_add = vp9_idct16x16_1_add_sse2; | 971 if (flags & HAS_SSE2) vp9_idct16x16_1_add = vp9_idct16x16_1_add_sse2; |
969 vp9_idct16x16_256_add = vp9_idct16x16_256_add_c; | 972 vp9_idct16x16_256_add = vp9_idct16x16_256_add_c; |
970 if (flags & HAS_SSE2) vp9_idct16x16_256_add = vp9_idct16x16_256_add_sse2; | 973 if (flags & HAS_SSE2) vp9_idct16x16_256_add = vp9_idct16x16_256_add_sse2; |
971 vp9_idct32x32_1024_add = vp9_idct32x32_1024_add_c; | 974 vp9_idct32x32_1024_add = vp9_idct32x32_1024_add_c; |
972 if (flags & HAS_SSE2) vp9_idct32x32_1024_add = vp9_idct32x32_1024_add_sse2; | 975 if (flags & HAS_SSE2) vp9_idct32x32_1024_add = vp9_idct32x32_1024_add_sse2; |
973 vp9_idct32x32_1_add = vp9_idct32x32_1_add_c; | 976 vp9_idct32x32_1_add = vp9_idct32x32_1_add_c; |
974 if (flags & HAS_SSE2) vp9_idct32x32_1_add = vp9_idct32x32_1_add_sse2; | 977 if (flags & HAS_SSE2) vp9_idct32x32_1_add = vp9_idct32x32_1_add_sse2; |
975 vp9_idct32x32_34_add = vp9_idct32x32_34_add_c; | 978 vp9_idct32x32_34_add = vp9_idct32x32_34_add_c; |
976 if (flags & HAS_SSE2) vp9_idct32x32_34_add = vp9_idct32x32_34_add_sse2; | 979 if (flags & HAS_SSE2) vp9_idct32x32_34_add = vp9_idct32x32_34_add_sse2; |
977 vp9_idct4x4_16_add = vp9_idct4x4_16_add_c; | 980 vp9_idct4x4_16_add = vp9_idct4x4_16_add_c; |
978 if (flags & HAS_SSE2) vp9_idct4x4_16_add = vp9_idct4x4_16_add_sse2; | 981 if (flags & HAS_SSE2) vp9_idct4x4_16_add = vp9_idct4x4_16_add_sse2; |
979 vp9_idct4x4_1_add = vp9_idct4x4_1_add_c; | 982 vp9_idct4x4_1_add = vp9_idct4x4_1_add_c; |
980 if (flags & HAS_SSE2) vp9_idct4x4_1_add = vp9_idct4x4_1_add_sse2; | 983 if (flags & HAS_SSE2) vp9_idct4x4_1_add = vp9_idct4x4_1_add_sse2; |
981 vp9_idct8x8_10_add = vp9_idct8x8_10_add_c; | 984 vp9_idct8x8_12_add = vp9_idct8x8_12_add_c; |
982 if (flags & HAS_SSE2) vp9_idct8x8_10_add = vp9_idct8x8_10_add_sse2; | 985 if (flags & HAS_SSE2) vp9_idct8x8_12_add = vp9_idct8x8_12_add_sse2; |
983 vp9_idct8x8_1_add = vp9_idct8x8_1_add_c; | 986 vp9_idct8x8_1_add = vp9_idct8x8_1_add_c; |
984 if (flags & HAS_SSE2) vp9_idct8x8_1_add = vp9_idct8x8_1_add_sse2; | 987 if (flags & HAS_SSE2) vp9_idct8x8_1_add = vp9_idct8x8_1_add_sse2; |
985 vp9_idct8x8_64_add = vp9_idct8x8_64_add_c; | 988 vp9_idct8x8_64_add = vp9_idct8x8_64_add_c; |
986 if (flags & HAS_SSE2) vp9_idct8x8_64_add = vp9_idct8x8_64_add_sse2; | 989 if (flags & HAS_SSE2) vp9_idct8x8_64_add = vp9_idct8x8_64_add_sse2; |
987 vp9_iht16x16_256_add = vp9_iht16x16_256_add_c; | 990 vp9_iht16x16_256_add = vp9_iht16x16_256_add_c; |
988 if (flags & HAS_SSE2) vp9_iht16x16_256_add = vp9_iht16x16_256_add_sse2; | 991 if (flags & HAS_SSE2) vp9_iht16x16_256_add = vp9_iht16x16_256_add_sse2; |
989 vp9_iht4x4_16_add = vp9_iht4x4_16_add_c; | 992 vp9_iht4x4_16_add = vp9_iht4x4_16_add_c; |
990 if (flags & HAS_SSE2) vp9_iht4x4_16_add = vp9_iht4x4_16_add_sse2; | 993 if (flags & HAS_SSE2) vp9_iht4x4_16_add = vp9_iht4x4_16_add_sse2; |
991 vp9_iht8x8_64_add = vp9_iht8x8_64_add_c; | 994 vp9_iht8x8_64_add = vp9_iht8x8_64_add_c; |
992 if (flags & HAS_SSE2) vp9_iht8x8_64_add = vp9_iht8x8_64_add_sse2; | 995 if (flags & HAS_SSE2) vp9_iht8x8_64_add = vp9_iht8x8_64_add_sse2; |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1240 if (flags & HAS_MMX) vp9_variance8x8 = vp9_variance8x8_mmx; | 1243 if (flags & HAS_MMX) vp9_variance8x8 = vp9_variance8x8_mmx; |
1241 if (flags & HAS_SSE2) vp9_variance8x8 = vp9_variance8x8_sse2; | 1244 if (flags & HAS_SSE2) vp9_variance8x8 = vp9_variance8x8_sse2; |
1242 } | 1245 } |
1243 #endif | 1246 #endif |
1244 | 1247 |
1245 #ifdef __cplusplus | 1248 #ifdef __cplusplus |
1246 } // extern "C" | 1249 } // extern "C" |
1247 #endif | 1250 #endif |
1248 | 1251 |
1249 #endif | 1252 #endif |
OLD | NEW |