[SCM] mjpegtools/master: Add 07_yuvdenoise_disable_sse2.patch: do not compile SSE2-dependent code in yuvdenoise

lucidfox-guest at users.alioth.debian.org lucidfox-guest at users.alioth.debian.org
Sun May 1 05:17:56 UTC 2011


The following commit has been merged in the master branch:
commit 5c023a56f81d4e869e45b79f693d471e6a676be0
Author: Maia Kozheva <sikon at ubuntu.com>
Date:   Sun May 1 12:10:46 2011 +0700

    Add 07_yuvdenoise_disable_sse2.patch: do not compile SSE2-dependent code in yuvdenoise

diff --git a/debian/patches/07_yuvdenoise_disable_sse2.patch b/debian/patches/07_yuvdenoise_disable_sse2.patch
new file mode 100644
index 0000000..d130d36
--- /dev/null
+++ b/debian/patches/07_yuvdenoise_disable_sse2.patch
@@ -0,0 +1,44 @@
+Index: mjpegtools/yuvdenoise/main.c
+===================================================================
+--- mjpegtools.orig/yuvdenoise/main.c	2011-05-01 12:08:35.039149565 +0700
++++ mjpegtools/yuvdenoise/main.c	2011-05-01 12:08:58.319149555 +0700
+@@ -28,12 +28,6 @@
+ #include "cpu_accel.h"
+ #include "motionsearch.h"
+ 
+-#if defined(__SSE3__)
+-# include <pmmintrin.h>
+-#elif defined(__SSE2__)
+-# include <emmintrin.h>
+-#endif
+-
+ int verbose = 1;
+ int width = 0;
+ int height = 0;
+@@ -447,7 +441,7 @@
+ 	*(frame+i)=(*(frame+i)*(255-level)+random[i&8191]*level)/255;
+ }
+ 
+-#if defined(__SSE2__)
++#if 0
+ 
+ static inline __m128i tf0(const __m128i mask, const __m128i l0, const __m128i vt, const __m128i vc, const __m128i vb) {
+ 	__m128i k0, k1, k2, k3, d0; /* temp storage, pixel surroundings, 16-bit words */
+@@ -806,7 +800,7 @@
+ 	}
+ }
+ 
+-#if defined(__SSE2__)
++#if 0
+ /* 4 to 5 times faster */
+ void filter_plane_median_sse2(uint8_t *plane, int w, int h, int level) {
+ 	int i;
+@@ -1328,7 +1322,7 @@
+ 	temporal_filter_planes = temporal_filter_planes_p;
+ 	uint32_t tmp;
+ 
+-#if defined(__SSE2__)
++#if 0
+ 	int d = 0;
+ /*	__asm__ volatile("cpuid" : "=d"(d) : "a"(1) : "ebx", "ecx"); */
+ 	__asm__ volatile("movl %%ebx, %1; cpuid; movl %1, %%ebx" : "=d"(d), "=&g"(tmp) : "a"(1) : "ecx");
diff --git a/debian/patches/series b/debian/patches/series
index d35c08d..f3adddd 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@
 04_manpage-syntax.patch
 05_ignore_videodev.h_error.patch
 06_link_pthread.patch
+07_yuvdenoise_disable_sse2.patch

-- 
mjpegtools packaging



More information about the pkg-multimedia-commits mailing list