[svn] / trunk / xvidcore / src / motion / motion_comp.c Repository:
ViewVC logotype

Diff of /trunk/xvidcore/src/motion/motion_comp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1382, Mon Mar 22 22:36:25 2004 UTC revision 1530, Tue Aug 10 21:58:55 2004 UTC
# Line 20  Line 20 
20   *  along with this program ; if not, write to the Free Software   *  along with this program ; if not, write to the Free Software
21   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
22   *   *
23   * $Id: motion_comp.c,v 1.20 2004-03-22 22:36:24 edgomez Exp $   * $Id: motion_comp.c,v 1.21 2004-08-10 21:58:55 edgomez Exp $
24   *   *
25   ****************************************************************************/   ****************************************************************************/
26    
# Line 119  Line 119 
119    
120                  if(quarterpel) {                  if(quarterpel) {
121                          if ((dx&3) | (dy&3)) {                          if ((dx&3) | (dy&3)) {
 #if defined(ARCH_IS_IA32) /* new_interpolate is only faster on x86 (MMX) machines */  
                                 new_interpolate16x16_quarterpel(tmp - y * stride - x,  
                                                                                         (uint8_t *) ref, tmp + 32,  
                                                                                         tmp + 64, tmp + 96, x, y, dx, dy, stride, rounding);  
 #else  
122                                  interpolate16x16_quarterpel(tmp - y * stride - x,                                  interpolate16x16_quarterpel(tmp - y * stride - x,
123                                                                                          (uint8_t *) ref, tmp + 32,                                                                                          (uint8_t *) ref, tmp + 32,
124                                                                                          tmp + 64, tmp + 96, x, y, dx, dy, stride, rounding);                                                                                          tmp + 64, tmp + 96, x, y, dx, dy, stride, rounding);
 #endif  
125                                  ptr = tmp;                                  ptr = tmp;
126                          } else ptr =  ref + (y + dy/4)*stride + x + dx/4; /* fullpixel position */                          } else ptr =  ref + (y + dy/4)*stride + x + dx/4; /* fullpixel position */
127    
# Line 187  Line 181 
181    
182                  if(quarterpel) {                  if(quarterpel) {
183                          if ((dx&3) | (dy&3)) {                          if ((dx&3) | (dy&3)) {
 #if defined(ARCH_IS_IA32) /* new_interpolate is only faster on x86 (MMX) machines */  
                                 new_interpolate8x8_quarterpel(tmp - y*stride - x,  
                                                                                 (uint8_t *) ref, tmp + 32,  
                                                                                 tmp + 64, tmp + 96, x, y, dx, dy, stride, rounding);  
 #else  
184                                  interpolate8x8_quarterpel(tmp - y*stride - x,                                  interpolate8x8_quarterpel(tmp - y*stride - x,
185                                                                                  (uint8_t *) ref, tmp + 32,                                                                                  (uint8_t *) ref, tmp + 32,
186                                                                                  tmp + 64, tmp + 96, x, y, dx, dy, stride, rounding);                                                                                  tmp + 64, tmp + 96, x, y, dx, dy, stride, rounding);
 #endif  
187                                  ptr = tmp;                                  ptr = tmp;
188                          } else ptr = ref + (y + dy/4)*stride + x + dx/4; /* fullpixel position */                          } else ptr = ref + (y + dy/4)*stride + x + dx/4; /* fullpixel position */
189                  } else ptr = get_ref(ref, refh, refv, refhv, x, y, 1, dx, dy, stride);                  } else ptr = get_ref(ref, refh, refv, refhv, x, y, 1, dx, dy, stride);

Legend:
Removed from v.1382  
changed lines
  Added in v.1530

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4