Fix the build on non-x86 architectures.

ok ajacoutot@
This commit is contained in:
brad 2012-12-08 09:03:18 +00:00
parent 01ba45e2f4
commit 4448c8d0b6
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-src_post_deinterlace_plugins_greedy2frame_template_c,v 1.1 2012/12/08 09:03:18 brad Exp $
--- src/post/deinterlace/plugins/greedy2frame_template.c.orig Thu Nov 29 23:56:24 2012
+++ src/post/deinterlace/plugins/greedy2frame_template.c Thu Nov 29 23:56:46 2012
@@ -85,12 +85,14 @@
*/
+#if defined(ARCH_X86) || defined(ARCH_X86_64)
#if !defined(MASKS_DEFINED)
#define MASKS_DEFINED
static const mmx_t Mask = { uq: 0x7f7f7f7f7f7f7f7fll };
#define TP GREEDYTWOFRAMETHRESHOLD, GREEDYTWOFRAMETHRESHOLD2
static const mmx_t GreedyTwoFrameThreshold = { ub: {TP, TP, TP, TP} };
#undef TP
+#endif
#endif
#if defined(IS_MMXEXT)

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-src_post_deinterlace_plugins_greedy2frame_template_sse2_c,v 1.1 2012/12/08 09:03:18 brad Exp $
--- src/post/deinterlace/plugins/greedy2frame_template_sse2.c.orig Sat May 26 16:49:59 2012
+++ src/post/deinterlace/plugins/greedy2frame_template_sse2.c Sat Dec 8 03:18:14 2012
@@ -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
static void DeinterlaceGreedy2Frame_SSE2(uint8_t *output, int outstride,
deinterlace_frame_data_t *data,