summaryrefslogtreecommitdiff
path: root/multimedia/xine-lib/patches/patch-src-post-planar-noise.c
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/xine-lib/patches/patch-src-post-planar-noise.c')
-rw-r--r--multimedia/xine-lib/patches/patch-src-post-planar-noise.c44
1 files changed, 13 insertions, 31 deletions
diff --git a/multimedia/xine-lib/patches/patch-src-post-planar-noise.c b/multimedia/xine-lib/patches/patch-src-post-planar-noise.c
index 2c608e25aab..169b1be3d1f 100644
--- a/multimedia/xine-lib/patches/patch-src-post-planar-noise.c
+++ b/multimedia/xine-lib/patches/patch-src-post-planar-noise.c
@@ -1,30 +1,12 @@
-$NetBSD: patch-src-post-planar-noise.c,v 1.5 2018/11/19 12:48:32 jperkin Exp $
+$NetBSD: patch-src-post-planar-noise.c,v 1.6 2020/04/02 15:52:46 nia Exp $
https://bugs.xine-project.org/show_bug.cgi?id=524
Disable MMX sections on SunOS.
---- src/post/planar/noise.c.orig 2018-01-11 12:49:47.000000000 +0000
+--- src/post/planar/noise.c.orig 2019-12-13 20:47:50.000000000 +0000
+++ src/post/planar/noise.c
-@@ -141,7 +141,7 @@ static inline void lineNoise_C(uint8_t *
- }
- }
-
--#ifdef ARCH_X86
-+#if defined(ARCH_X86) && !defined(__sun)
-
- #if defined(ARCH_X86_64)
- # define TYPEA int64_t
-@@ -231,7 +231,7 @@ static inline void lineNoiseAvg_C(uint8_
- }
- }
-
--#ifdef ARCH_X86
-+#if defined(ARCH_X86) && !defined(__sun)
-
- static inline void lineNoiseAvg_MMX(uint8_t *dst, uint8_t *src, int len, int8_t **shift){
- TYPEA mmx_len = len & (~7);
-@@ -340,15 +340,20 @@ static const char *const enum_quality[]
+@@ -220,15 +220,20 @@ static const char *const enum_quality[]
* description of params struct
*/
START_PARAM_DESCR( noise_parameters_t )
@@ -50,16 +32,7 @@ Disable MMX sections on SunOS.
"Mix random noise with a (semi)regular pattern" )
END_PARAM_DESCR( param_descr )
-@@ -467,7 +472,7 @@ void *noise_init_plugin(xine_t *xine, vo
- class->description = N_("Adds noise");
- class->dispose = default_post_class_dispose;
-
--#ifdef ARCH_X86
-+#if defined(ARCH_X86) && !defined(__sun)
- if (xine_mm_accel() & MM_ACCEL_X86_MMX) {
- lineNoise = lineNoise_MMX;
- lineNoiseAvg = lineNoiseAvg_MMX;
-@@ -587,7 +592,7 @@ static int noise_draw(vo_frame_t *frame,
+@@ -372,7 +377,7 @@ static int noise_draw(vo_frame_t *frame,
frame->width * 2, frame->height, &this->params[0]);
}
@@ -68,3 +41,12 @@ Disable MMX sections on SunOS.
if (xine_mm_accel() & MM_ACCEL_X86_MMX)
__asm__ __volatile__ ("emms\n\t");
if (xine_mm_accel() & MM_ACCEL_X86_MMXEXT)
+@@ -447,7 +452,7 @@ static post_plugin_t *noise_open_plugin(
+
+ this->params[0].lineNoise = lineNoise_C;
+ this->params[0].lineNoiseAvg = lineNoiseAvg_C;
+-#ifdef ARCH_X86
++#if defined(ARCH_X86) && !defined(__sun)
+ if (xine_mm_accel() & MM_ACCEL_X86_MMX) {
+ this->params[0].lineNoise = lineNoise_MMX;
+ this->params[0].lineNoiseAvg = lineNoiseAvg_MMX;