summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorjdc <jdc@pkgsrc.org>2012-08-15 18:34:36 +0000
committerjdc <jdc@pkgsrc.org>2012-08-15 18:34:36 +0000
commita362dc2b654e4bb4ffa0bf564b2546f04349a71d (patch)
treecf96b392009d6cc4e58a9b7ce8b82b097e09f760 /multimedia
parente1e01df11d300c94724092ebfe5f18ab2c1ddd35 (diff)
downloadpkgsrc-a362dc2b654e4bb4ffa0bf564b2546f04349a71d.tar.gz
Only compile MMX/SSE code on x86/x86_64).
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/xine-lib/patches/patch-src-post-deinterlace-plugins-greedy2frame.c21
-rw-r--r--multimedia/xine-lib/patches/patch-src-post-deinterlace-plugins-greedy2frame_template.c20
-rw-r--r--multimedia/xine-lib/patches/patch-src-post-deinterlace-plugins-greedy2frame_template_sse2.c17
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,