diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2006-09-02 23:24:42 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2006-09-02 23:24:42 +0000 |
commit | 672b9c317e0596ad5ed385fa2b48b5053ca4d451 (patch) | |
tree | e516fdb7fe353fe9c1fe873547be6f4e79f39e32 /media-libs/mlt/files | |
parent | Fix ~x86-fbsd keywording. (diff) | |
download | gentoo-2-672b9c317e0596ad5ed385fa2b48b5053ca4d451.tar.gz gentoo-2-672b9c317e0596ad5ed385fa2b48b5053ca4d451.tar.bz2 gentoo-2-672b9c317e0596ad5ed385fa2b48b5053ca4d451.zip |
Motion estimation on non x86 arches
(Portage version: 2.1.1_rc1-r2)
Diffstat (limited to 'media-libs/mlt/files')
-rw-r--r-- | media-libs/mlt/files/mlt-0.2.2-motion-est-nonx86.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/media-libs/mlt/files/mlt-0.2.2-motion-est-nonx86.patch b/media-libs/mlt/files/mlt-0.2.2-motion-est-nonx86.patch new file mode 100644 index 000000000000..96501a279e44 --- /dev/null +++ b/media-libs/mlt/files/mlt-0.2.2-motion-est-nonx86.patch @@ -0,0 +1,37 @@ +SSE isn't available on any PPC platform, not just Darwin. + +Donnie Berkholz <dberkholz@gentoo.org> + +SSE isn't available on any platform but the ones supporting SSE + +Luca Barbato <lu_zero@gentoo.org> + +--- mlt-0.2.2.orig/src/modules/motion_est/filter_motion_est.c 2006-08-21 16:55:50.000000000 -0700 ++++ mlt-0.2.2/src/modules/motion_est/filter_motion_est.c 2006-08-21 16:55:26.000000000 -0700 +@@ -34,7 +34,7 @@ + #include <sys/time.h> + #include <unistd.h> + +-#ifndef __DARWIN__ ++#ifdef __SSE__ + #include "sad_sse.h" + #endif + +@@ -612,7 +612,7 @@ + } /* End column loop */ + } /* End row loop */ + +-#ifndef __DARWIN__ ++#ifdef __SSE__ + asm volatile ( "emms" ); + #endif + +@@ -656,7 +656,7 @@ + static void init_optimizations( struct motion_est_context_s *c ) + { + switch(c->mb_w){ +-#ifndef __DARWIN__ ++#ifdef __SSE__ + case 4: if(c->mb_h == 4) c->compare_optimized = sad_sse_422_luma_4x4; + else c->compare_optimized = sad_sse_422_luma_4w; + break; |