diff options
author | Thomas Klausner <tk@giga.or.at> | 2014-05-18 23:25:45 +0300 |
---|---|---|
committer | Thomas Klausner <tk@giga.or.at> | 2014-05-18 23:25:45 +0300 |
commit | a03461a652590c2e341bcd034eb539640599f09e (patch) | |
tree | a08cfda0c7f56beb3b874e5b0e2ed8133c305afe /src | |
parent | cf8acf219726f5c1ebf3c6a37c3122637f0ae12e (diff) | |
download | xine-lib-a03461a652590c2e341bcd034eb539640599f09e.tar.gz xine-lib-a03461a652590c2e341bcd034eb539640599f09e.tar.bz2 |
Only compile MMX/SSE code on x86/x86_64.
The greedy2frame code uses MMX or SSE instructions. Only compile this code on architectures where they exist.
Diffstat (limited to 'src')
-rw-r--r-- | src/post/deinterlace/plugins/greedy2frame.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/post/deinterlace/plugins/greedy2frame.c b/src/post/deinterlace/plugins/greedy2frame.c index 964c490a9..f2cd2a6ea 100644 --- a/src/post/deinterlace/plugins/greedy2frame.c +++ b/src/post/deinterlace/plugins/greedy2frame.c @@ -59,6 +59,8 @@ static void DeinterlaceGreedy2Frame(uint8_t *output, int outstride, int bottom_field, int second_field, int width, int height ) { +#if defined(ARCH_X86) || defined(ARCH_X86_64) + if (xine_mm_accel() & MM_ACCEL_X86_SSE2) { if (((uintptr_t)output & 15) || (outstride & 15) || width & 7 || @@ -82,6 +84,7 @@ static void DeinterlaceGreedy2Frame(uint8_t *output, int outstride, bottom_field, second_field, width, height ); /* could fall back to 3dnow/mmx here too */ } +#endif /*ARCH_X86 */ } |