diff options
author | jdc <jdc> | 2012-08-15 18:34:36 +0000 |
---|---|---|
committer | jdc <jdc> | 2012-08-15 18:34:36 +0000 |
commit | f718fff61686534f7089a25627b54913d5f6ffd1 (patch) | |
tree | cf96b392009d6cc4e58a9b7ce8b82b097e09f760 /multimedia | |
parent | ef1b04d435be299e2ba56b5c77c6e3de3ee28321 (diff) | |
download | pkgsrc-f718fff61686534f7089a25627b54913d5f6ffd1.tar.gz |
Only compile MMX/SSE code on x86/x86_64).
Diffstat (limited to 'multimedia')
3 files changed, 58 insertions, 0 deletions
diff --git a/multimedia/xine-lib/patches/patch-src-post-deinterlace-plugins-greedy2frame.c b/multimedia/xine-lib/patches/patch-src-post-deinterlace-plugins-greedy2frame.c new file mode 100644 index 00000000000..05f7a75f7e2 --- /dev/null +++ b/multimedia/xine-lib/patches/patch-src-post-deinterlace-plugins-greedy2frame.c @@ -0,0 +1,21 @@ +$NetBSD: patch-src-post-deinterlace-plugins-greedy2frame.c,v 1.1 2012/08/15 18:34:36 jdc Exp $ + +--- src/post/deinterlace/plugins/greedy2frame.c.orig 2012-05-26 21:49:59.000000000 +0100 ++++ src/post/deinterlace/plugins/greedy2frame.c 2012-08-15 08:08:27.000000000 +0100 +@@ -59,6 +59,8 @@ + 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 @@ + bottom_field, second_field, width, height ); + /* could fall back to 3dnow/mmx here too */ + } ++#endif /*ARCH_X86 */ + } + + diff --git a/multimedia/xine-lib/patches/patch-src-post-deinterlace-plugins-greedy2frame_template.c b/multimedia/xine-lib/patches/patch-src-post-deinterlace-plugins-greedy2frame_template.c new file mode 100644 index 00000000000..0ad080b6e68 --- /dev/null +++ b/multimedia/xine-lib/patches/patch-src-post-deinterlace-plugins-greedy2frame_template.c @@ -0,0 +1,20 @@ +$NetBSD: patch-src-post-deinterlace-plugins-greedy2frame_template.c,v 1.1 2012/08/15 18:34:36 jdc Exp $ + +--- src/post/deinterlace/plugins/greedy2frame_template.c.orig 2012-05-26 21:49:59.000000000 +0100 ++++ src/post/deinterlace/plugins/greedy2frame_template.c 2012-08-15 09:46:37.000000000 +0100 +@@ -85,6 +85,7 @@ + */ + + ++#if defined(ARCH_X86) || defined(ARCH_X86_64) + #if !defined(MASKS_DEFINED) + #define MASKS_DEFINED + static const mmx_t Mask = { uq: 0x7f7f7f7f7f7f7f7fll }; +@@ -92,6 +93,7 @@ + static const mmx_t GreedyTwoFrameThreshold = { ub: {TP, TP, TP, TP} }; + #undef TP + #endif ++#endif /*ARCH_X86 */ + + #if defined(IS_MMXEXT) + static void DeinterlaceGreedy2Frame_MMXEXT(uint8_t *output, int outstride, diff --git a/multimedia/xine-lib/patches/patch-src-post-deinterlace-plugins-greedy2frame_template_sse2.c b/multimedia/xine-lib/patches/patch-src-post-deinterlace-plugins-greedy2frame_template_sse2.c new file mode 100644 index 00000000000..ba053893891 --- /dev/null +++ b/multimedia/xine-lib/patches/patch-src-post-deinterlace-plugins-greedy2frame_template_sse2.c @@ -0,0 +1,17 @@ +$NetBSD: patch-src-post-deinterlace-plugins-greedy2frame_template_sse2.c,v 1.1 2012/08/15 18:34:36 jdc Exp $ + +--- src/post/deinterlace/plugins/greedy2frame_template_sse2.c.orig 2012-08-14 12:47:20.000000000 +0100 ++++ src/post/deinterlace/plugins/greedy2frame_template_sse2.c 2012-08-15 09:47:02.000000000 +0100 +@@ -85,10 +85,12 @@ + */ + + ++#if defined(ARCH_X86) || defined(ARCH_X86_64) + static const sse_t Mask128 = { uq: { 0x7f7f7f7f7f7f7f7fll, 0x7f7f7f7f7f7f7f7fll} }; + #define TP GREEDYTWOFRAMETHRESHOLD, GREEDYTWOFRAMETHRESHOLD2 + static const sse_t GreedyTwoFrameThreshold128 = { ub: {TP, TP, TP, TP, TP, TP, TP, TP} }; + #undef TP ++#endif /*ARCH_X86 */ + + static void DeinterlaceGreedy2Frame_SSE2(uint8_t *output, int outstride, + deinterlace_frame_data_t *data, |