summaryrefslogtreecommitdiff
path: root/multimedia/mjpegtools/files/patch-gcc3-yuvdenoise::motion.c
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2004-06-26 04:31:08 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2004-06-26 04:31:08 +0000
commit4a1c26719da23793e3188acb55d46d1310dd7cbd (patch)
treeacc7974a1fe3331d1b94928ec3e5de3433008277 /multimedia/mjpegtools/files/patch-gcc3-yuvdenoise::motion.c
parentAdd support for a mime database in ${X11BASE} as well as ${LOCALBASE}. (diff)
Update to 1.6.2
PR: 64721 Submitted by: Koop Mast <kwm@rainbow-runner.nl>
Notes
Notes: svn path=/head/; revision=112295
Diffstat (limited to 'multimedia/mjpegtools/files/patch-gcc3-yuvdenoise::motion.c')
-rw-r--r--multimedia/mjpegtools/files/patch-gcc3-yuvdenoise::motion.c60
1 files changed, 0 insertions, 60 deletions
diff --git a/multimedia/mjpegtools/files/patch-gcc3-yuvdenoise::motion.c b/multimedia/mjpegtools/files/patch-gcc3-yuvdenoise::motion.c
deleted file mode 100644
index e93d36a07ec9..000000000000
--- a/multimedia/mjpegtools/files/patch-gcc3-yuvdenoise::motion.c
+++ /dev/null
@@ -1,60 +0,0 @@
-diff -uNr yuvdenoise/motion.c yuvdenoise/motion.c.orig
---- yuvdenoise/motion.c 2002-05-06 04:13:37.000000000 -0400
-+++ yuvdenoise/motion.c.orig 2003-07-25 01:52:38.339744992 -0400
-@@ -251,6 +251,9 @@
- " movl %1 , %%eax; /* load frameadress into eax */\n"
- " movl %2 , %%ebx; /* load frameadress into ebx */\n"
- " movl %3 , %%ecx; /* load width into ecx */\n"
-+ " shrl $1 , %%ecx; /* shift width to scale it in the asm. */\n"
-+ " /* why? we need an lvalue as input... gcc33... */\n"
-+ " /* (carrbc1@wfu.edu) */\n"
- " /* */\n"
- ".rept 4 ; /* Loop for 4 lines */\n"
- " movd (%%eax), %%mm1; /* 4 Pixels from filtered frame to mm1 */\n"
-@@ -270,7 +273,7 @@
- " /* */\n"
- " movq %%mm0 , %0 ; /* make mm0 available to gcc ... */\n"
- :"=m" (a)
-- :"m" (frm), "m" (ref), "m" (denoiser.frame.w/2)
-+ :"m" (frm), "m" (ref), "m" (denoiser.frame.w)
- :"%eax", "%ebx", "%ecx"
- );
- #endif
-@@ -295,7 +298,10 @@
- " movl %1 , %%eax; /* load frameadress into eax */\n"
- " movl %2 , %%ebx; /* load frameadress into ebx */\n"
- " movl %3 , %%ecx; /* load width into ecx */\n"
-- " ; /* */\n"
-+ " shrl $1 , %%ecx; /* shift width to scale it in the asm. */\n"
-+ " /* why? we need an lvalue as input... gcc33... */\n"
-+ " /* (carrbc1@wfu.edu) */\n"
-+ " /* */\n"
- " .rept 4 ; /* */\n"
- " movd (%%eax), %%mm1; /* 4 Pixels from filtered frame to mm1 */\n"
- " movd (%%ebx), %%mm2; /* 4 Pixels from filtered frame to mm2 */\n"
-@@ -307,7 +313,7 @@
- " /* */\n"
- " movq %%mm0 , %0 ; /* make mm0 available to gcc ... */\n"
- :"=m" (a)
-- :"m" (frm), "m" (ref), "m" (denoiser.frame.w/2)
-+ :"m" (frm), "m" (ref), "m" (denoiser.frame.w)
- :"%eax", "%ebx", "%ecx"
- );
- #endif
-@@ -349,6 +355,7 @@
- static uint32_t a;
- #ifdef HAVE_ASM_MMX
- static uint32_t bit_mask[2] = {0x7f7f7f7f,0x7f7f7f7f};
-+ static uint32_t* bit_mask_addr = bit_mask;
-
- __asm__ __volatile__
- (
-@@ -380,7 +387,7 @@
- " /* */"
- " movq %%mm0 , %0 ; /* make mm0 available to gcc ... */"
- :"=m" (a)
-- :"m" (frm1),"m" (frm2), "m" (ref), "m" (denoiser.frame.w), "m" (bit_mask)
-+ :"m" (frm1),"m" (frm2), "m" (ref), "m" (denoiser.frame.w), "m" (bit_mask_addr)
- :"%eax", "%ebx", "%ecx", "%edx"
- );
- #endif