Files
pkgsrc-ng/multimedia/xine-lib/patches/patch-src-post-planar-eq.c
2016-01-21 23:40:00 +01:00

41 lines
1.3 KiB
C

$NetBSD: patch-src-post-planar-eq.c,v 1.3 2014/06/27 12:17:22 jperkin Exp $
https://bugs.xine-project.org/show_bug.cgi?id=524
Disable MMX sections on SunOS.
--- src/post/planar/eq.c.orig 2013-09-18 10:04:54.000000000 +0000
+++ src/post/planar/eq.c
@@ -31,7 +31,7 @@
#include <pthread.h>
-#if defined(ARCH_X86) || defined(ARCH_X86_64)
+#if (defined(ARCH_X86) || defined(ARCH_X86_64)) && !defined(__sun)
static void process_MMX(unsigned char *dest, int dstride, unsigned char *src, int sstride,
int w, int h, int brightness, int contrast)
{
@@ -138,9 +138,11 @@ typedef struct eq_parameters_s {
* description of params struct
*/
START_PARAM_DESCR( eq_parameters_t )
-PARAM_ITEM( POST_PARAM_TYPE_INT, brightness, NULL, -100, 100, 0,
+PARAM_ITEM( eq_parameters_t,
+ POST_PARAM_TYPE_INT, brightness, NULL, -100, 100, 0,
"brightness" )
-PARAM_ITEM( POST_PARAM_TYPE_INT, contrast, NULL, -100, 100, 0,
+PARAM_ITEM( eq_parameters_t,
+ POST_PARAM_TYPE_INT, contrast, NULL, -100, 100, 0,
"contrast" )
END_PARAM_DESCR( param_descr )
@@ -259,7 +261,7 @@ static post_plugin_t *eq_open_plugin(pos
}
process = process_C;
-#if defined(ARCH_X86) || defined(ARCH_X86_64)
+#if (defined(ARCH_X86) || defined(ARCH_X86_64)) && !defined(__sun)
if( xine_mm_accel() & MM_ACCEL_X86_MMX )
process = process_MMX;
#endif