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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 | 257 |
258 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 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); |
259 #define vp9_full_range_search vp9_full_range_search_c | 259 #define vp9_full_range_search vp9_full_range_search_c |
260 | 260 |
261 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_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); |
262 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_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); |
263 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 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); |
264 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 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); |
265 | 265 |
266 void vp9_fwht4x4_c(const int16_t *input, int16_t *output, int stride); | 266 void vp9_fwht4x4_c(const int16_t *input, int16_t *output, int stride); |
267 #define vp9_fwht4x4 vp9_fwht4x4_c | 267 void vp9_fwht4x4_mmx(const int16_t *input, int16_t *output, int stride); |
| 268 #define vp9_fwht4x4 vp9_fwht4x4_mmx |
268 | 269 |
269 unsigned int vp9_get_mb_ss_c(const int16_t *); | 270 unsigned int vp9_get_mb_ss_c(const int16_t *); |
270 unsigned int vp9_get_mb_ss_mmx(const int16_t *); | 271 unsigned int vp9_get_mb_ss_mmx(const int16_t *); |
271 unsigned int vp9_get_mb_ss_sse2(const int16_t *); | 272 unsigned int vp9_get_mb_ss_sse2(const int16_t *); |
272 #define vp9_get_mb_ss vp9_get_mb_ss_sse2 | 273 #define vp9_get_mb_ss vp9_get_mb_ss_sse2 |
273 | 274 |
274 void vp9_h_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *ab
ove, const uint8_t *left); | 275 void vp9_h_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *ab
ove, 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); | 276 void vp9_h_predictor_16x16_ssse3(uint8_t *dst, ptrdiff_t y_stride, const 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); | 277 RTCD_EXTERN void (*vp9_h_predictor_16x16)(uint8_t *dst, ptrdiff_t y_stride, cons
t uint8_t *above, const uint8_t *left); |
277 | 278 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 #define vp9_idct32x32_34_add vp9_idct32x32_34_add_sse2 | 313 #define vp9_idct32x32_34_add vp9_idct32x32_34_add_sse2 |
313 | 314 |
314 void vp9_idct4x4_16_add_c(const int16_t *input, uint8_t *dest, int dest_stride); | 315 void vp9_idct4x4_16_add_c(const int16_t *input, uint8_t *dest, int dest_stride); |
315 void vp9_idct4x4_16_add_sse2(const int16_t *input, uint8_t *dest, int dest_strid
e); | 316 void vp9_idct4x4_16_add_sse2(const int16_t *input, uint8_t *dest, int dest_strid
e); |
316 #define vp9_idct4x4_16_add vp9_idct4x4_16_add_sse2 | 317 #define vp9_idct4x4_16_add vp9_idct4x4_16_add_sse2 |
317 | 318 |
318 void vp9_idct4x4_1_add_c(const int16_t *input, uint8_t *dest, int dest_stride); | 319 void vp9_idct4x4_1_add_c(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
); | 320 void vp9_idct4x4_1_add_sse2(const int16_t *input, uint8_t *dest, int dest_stride
); |
320 #define vp9_idct4x4_1_add vp9_idct4x4_1_add_sse2 | 321 #define vp9_idct4x4_1_add vp9_idct4x4_1_add_sse2 |
321 | 322 |
322 void vp9_idct8x8_10_add_c(const int16_t *input, uint8_t *dest, int dest_stride); | 323 void vp9_idct8x8_12_add_c(const int16_t *input, uint8_t *dest, int dest_stride); |
323 void vp9_idct8x8_10_add_sse2(const int16_t *input, uint8_t *dest, int dest_strid
e); | 324 void vp9_idct8x8_12_add_sse2(const int16_t *input, uint8_t *dest, int dest_strid
e); |
324 #define vp9_idct8x8_10_add vp9_idct8x8_10_add_sse2 | 325 void vp9_idct8x8_12_add_ssse3(const int16_t *input, uint8_t *dest, int dest_stri
de); |
| 326 RTCD_EXTERN void (*vp9_idct8x8_12_add)(const int16_t *input, uint8_t *dest, int
dest_stride); |
325 | 327 |
326 void vp9_idct8x8_1_add_c(const int16_t *input, uint8_t *dest, int dest_stride); | 328 void vp9_idct8x8_1_add_c(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
); | 329 void vp9_idct8x8_1_add_sse2(const int16_t *input, uint8_t *dest, int dest_stride
); |
328 #define vp9_idct8x8_1_add vp9_idct8x8_1_add_sse2 | 330 #define vp9_idct8x8_1_add vp9_idct8x8_1_add_sse2 |
329 | 331 |
330 void vp9_idct8x8_64_add_c(const int16_t *input, uint8_t *dest, int dest_stride); | 332 void vp9_idct8x8_64_add_c(const int16_t *input, uint8_t *dest, int dest_stride); |
331 void vp9_idct8x8_64_add_sse2(const int16_t *input, uint8_t *dest, int dest_strid
e); | 333 void vp9_idct8x8_64_add_sse2(const int16_t *input, uint8_t *dest, int dest_strid
e); |
332 void vp9_idct8x8_64_add_ssse3(const int16_t *input, uint8_t *dest, int dest_stri
de); | 334 void vp9_idct8x8_64_add_ssse3(const int16_t *input, uint8_t *dest, int dest_stri
de); |
333 RTCD_EXTERN void (*vp9_idct8x8_64_add)(const int16_t *input, uint8_t *dest, int
dest_stride); | 335 RTCD_EXTERN void (*vp9_idct8x8_64_add)(const int16_t *input, uint8_t *dest, int
dest_stride); |
334 | 336 |
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
923 if (flags & HAS_SSE3) vp9_full_search_sad = vp9_full_search_sadx3; | 925 if (flags & HAS_SSE3) vp9_full_search_sad = vp9_full_search_sadx3; |
924 if (flags & HAS_SSE4_1) vp9_full_search_sad = vp9_full_search_sadx8; | 926 if (flags & HAS_SSE4_1) vp9_full_search_sad = vp9_full_search_sadx8; |
925 vp9_h_predictor_16x16 = vp9_h_predictor_16x16_c; | 927 vp9_h_predictor_16x16 = vp9_h_predictor_16x16_c; |
926 if (flags & HAS_SSSE3) vp9_h_predictor_16x16 = vp9_h_predictor_16x16_ssse3; | 928 if (flags & HAS_SSSE3) vp9_h_predictor_16x16 = vp9_h_predictor_16x16_ssse3; |
927 vp9_h_predictor_32x32 = vp9_h_predictor_32x32_c; | 929 vp9_h_predictor_32x32 = vp9_h_predictor_32x32_c; |
928 if (flags & HAS_SSSE3) vp9_h_predictor_32x32 = vp9_h_predictor_32x32_ssse3; | 930 if (flags & HAS_SSSE3) vp9_h_predictor_32x32 = vp9_h_predictor_32x32_ssse3; |
929 vp9_h_predictor_4x4 = vp9_h_predictor_4x4_c; | 931 vp9_h_predictor_4x4 = vp9_h_predictor_4x4_c; |
930 if (flags & HAS_SSSE3) vp9_h_predictor_4x4 = vp9_h_predictor_4x4_ssse3; | 932 if (flags & HAS_SSSE3) vp9_h_predictor_4x4 = vp9_h_predictor_4x4_ssse3; |
931 vp9_h_predictor_8x8 = vp9_h_predictor_8x8_c; | 933 vp9_h_predictor_8x8 = vp9_h_predictor_8x8_c; |
932 if (flags & HAS_SSSE3) vp9_h_predictor_8x8 = vp9_h_predictor_8x8_ssse3; | 934 if (flags & HAS_SSSE3) vp9_h_predictor_8x8 = vp9_h_predictor_8x8_ssse3; |
| 935 vp9_idct8x8_12_add = vp9_idct8x8_12_add_sse2; |
| 936 if (flags & HAS_SSSE3) vp9_idct8x8_12_add = vp9_idct8x8_12_add_ssse3; |
933 vp9_idct8x8_64_add = vp9_idct8x8_64_add_sse2; | 937 vp9_idct8x8_64_add = vp9_idct8x8_64_add_sse2; |
934 if (flags & HAS_SSSE3) vp9_idct8x8_64_add = vp9_idct8x8_64_add_ssse3; | 938 if (flags & HAS_SSSE3) vp9_idct8x8_64_add = vp9_idct8x8_64_add_ssse3; |
935 vp9_quantize_b = vp9_quantize_b_c; | 939 vp9_quantize_b = vp9_quantize_b_c; |
936 if (flags & HAS_SSSE3) vp9_quantize_b = vp9_quantize_b_ssse3; | 940 if (flags & HAS_SSSE3) vp9_quantize_b = vp9_quantize_b_ssse3; |
937 vp9_quantize_b_32x32 = vp9_quantize_b_32x32_c; | 941 vp9_quantize_b_32x32 = vp9_quantize_b_32x32_c; |
938 if (flags & HAS_SSSE3) vp9_quantize_b_32x32 = vp9_quantize_b_32x32_ssse3; | 942 if (flags & HAS_SSSE3) vp9_quantize_b_32x32 = vp9_quantize_b_32x32_ssse3; |
939 vp9_refining_search_sad = vp9_refining_search_sad_c; | 943 vp9_refining_search_sad = vp9_refining_search_sad_c; |
940 if (flags & HAS_SSE3) vp9_refining_search_sad = vp9_refining_search_sadx4; | 944 if (flags & HAS_SSE3) vp9_refining_search_sad = vp9_refining_search_sadx4; |
941 vp9_sad16x16x3 = vp9_sad16x16x3_c; | 945 vp9_sad16x16x3 = vp9_sad16x16x3_c; |
942 if (flags & HAS_SSE3) vp9_sad16x16x3 = vp9_sad16x16x3_sse3; | 946 if (flags & HAS_SSE3) vp9_sad16x16x3 = vp9_sad16x16x3_sse3; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1003 vp9_sub_pixel_variance8x8 = vp9_sub_pixel_variance8x8_sse2; | 1007 vp9_sub_pixel_variance8x8 = vp9_sub_pixel_variance8x8_sse2; |
1004 if (flags & HAS_SSSE3) vp9_sub_pixel_variance8x8 = vp9_sub_pixel_variance8x8
_ssse3; | 1008 if (flags & HAS_SSSE3) vp9_sub_pixel_variance8x8 = vp9_sub_pixel_variance8x8
_ssse3; |
1005 } | 1009 } |
1006 #endif | 1010 #endif |
1007 | 1011 |
1008 #ifdef __cplusplus | 1012 #ifdef __cplusplus |
1009 } // extern "C" | 1013 } // extern "C" |
1010 #endif | 1014 #endif |
1011 | 1015 |
1012 #endif | 1016 #endif |
OLD | NEW |