From: dezeroex Date: Fri, 28 Oct 2005 06:59:28 +0000 (+0000) Subject: x86 doesn't play well with ppc X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=944372119577c5de81153ca1b8d3e1da0240c4ab;p=melted x86 doesn't play well with ppc git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@859 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/src/modules/motion_est/filter_motion_est.c b/src/modules/motion_est/filter_motion_est.c index a6afa66..15e4be4 100644 --- a/src/modules/motion_est/filter_motion_est.c +++ b/src/modules/motion_est/filter_motion_est.c @@ -3,7 +3,7 @@ * /author Zachary Drew, Copyright 2005 * * Currently only uses Gamma data for comparisonon (bug or feature?) - * Vector optimization coming soon. + * SSE optimized where available. * * Vector orientation: The vector data that is generated for the current frame specifies * the motion from the previous frame to the current frame. To know how a macroblock @@ -34,7 +34,9 @@ #include #include +#ifndef __DARWIN__ #include "sad_sse.h" +#endif #define NDEBUG #include @@ -288,6 +290,8 @@ static inline void diamond_search( // Keep track of best and former best candidates motion_vector best, former; + former.dx = 0; + former.dy = 0; // The direction of the refinement needs to be known motion_vector current; @@ -608,7 +612,9 @@ static void motion_search( uint8_t *from, //mb_w){ +#ifndef __DARWIN__ 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; @@ -664,6 +671,7 @@ static void init_optimizations( struct motion_est_context_s *c ) break; case 64: c->compare_optimized = sad_sse_422_luma_64w; break; +#endif default: c->compare_optimized = sad_reference; break; }