diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-11-17 00:09:01 +0100 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-11-18 16:21:59 +0100 |
commit | 4e264d1c79cfae8c3e05aacf77e350ed1b6d7e4b (patch) | |
tree | 745265ba310e0ddd1fb030883555229811d0be39 /libpostproc/postprocess_template.c | |
parent | f6be711a69edd9f717e1728d04334d280dfd559a (diff) | |
download | ffmpeg-4e264d1c79cfae8c3e05aacf77e350ed1b6d7e4b.tar.gz |
pp: add support for SSE2.
Diffstat (limited to 'libpostproc/postprocess_template.c')
-rw-r--r-- | libpostproc/postprocess_template.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libpostproc/postprocess_template.c b/libpostproc/postprocess_template.c index 22c6e5a741..dc63032792 100644 --- a/libpostproc/postprocess_template.c +++ b/libpostproc/postprocess_template.c @@ -64,6 +64,16 @@ # define TEMPLATE_PP_3DNOW 0 #endif +#ifdef TEMPLATE_PP_SSE2 +# undef TEMPLATE_PP_MMX +# define TEMPLATE_PP_MMX 1 +# undef TEMPLATE_PP_MMXEXT +# define TEMPLATE_PP_MMXEXT 1 +# define RENAME(a) a ## _SSE2 +#else +# define TEMPLATE_PP_SSE2 0 +#endif + #undef REAL_PAVGB #undef PAVGB #undef PMINUB @@ -3675,3 +3685,4 @@ static void RENAME(postProcess)(const uint8_t src[], int srcStride, uint8_t dst[ #undef TEMPLATE_PP_MMX #undef TEMPLATE_PP_MMXEXT #undef TEMPLATE_PP_3DNOW +#undef TEMPLATE_PP_SSE2 |