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

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

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

revision 1709, Wed Jun 14 21:44:07 2006 UTC revision 1711, Sat Jun 17 13:08:05 2006 UTC
# Line 19  Line 19 
19   *  along with this program ; if not, write to the Free Software   *  along with this program ; if not, write to the Free Software
20   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21   *   *
22   * $Id: gmc.c,v 1.5 2006-06-14 21:44:07 Skal Exp $   * $Id: gmc.c,v 1.6 2006-06-17 13:07:55 Isibaar Exp $
23   *   *
24   ****************************************************************************/   ****************************************************************************/
25    
# Line 467  Line 467 
467          Offsets[   i] = u;          Offsets[   i] = u;
468          Offsets[16+i] = v;          Offsets[16+i] = v;
469        }        }
470    
471              {
472            // batch 8 input pixels when linearity says it's ok            // batch 8 input pixels when linearity says it's ok
473        uint32_t UV1, UV2;        uint32_t UV1, UV2;
474        UV1 = (Offsets[0] | (Offsets[16]<<16)) & 0xfff0fff0U;        UV1 = (Offsets[0] | (Offsets[16]<<16)) & 0xfff0fff0U;
# Line 482  Line 484 
484        else        else
485          GMC_Core_Non_Lin_8(dst+8, Offsets+8, src, srcstride, Rounder);          GMC_Core_Non_Lin_8(dst+8, Offsets+8, src, srcstride, Rounder);
486      }      }
487            }
488      else      else
489      {      {
490        for(i=0; i<16; ++i)        for(i=0; i<16; ++i)
# Line 540  Line 543 
543          Offsets[   i] = u;          Offsets[   i] = u;
544          Offsets[16+i] = v;          Offsets[16+i] = v;
545        }        }
546    
547              {
548          // batch 8 input pixels when linearity says it's ok          // batch 8 input pixels when linearity says it's ok
549        const uint32_t UV1 = (Offsets[ 0] | (Offsets[16]<<16)) & 0xfff0fff0U;        const uint32_t UV1 = (Offsets[ 0] | (Offsets[16]<<16)) & 0xfff0fff0U;
550        const uint32_t UV2 = (Offsets[ 7] | (Offsets[23]<<16)) & 0xfff0fff0U;        const uint32_t UV2 = (Offsets[ 7] | (Offsets[23]<<16)) & 0xfff0fff0U;
# Line 554  Line 559 
559          GMC_Core_Non_Lin_8(vDst, Offsets, vSrc, srcstride, Rounder);          GMC_Core_Non_Lin_8(vDst, Offsets, vSrc, srcstride, Rounder);
560        }        }
561      }      }
562        }
563      else      else
564      {      {
565        for(i=0; i<8; ++i)        for(i=0; i<8; ++i)
# Line 583  Line 589 
589        Predict_16x16_func = Predict_16x16_C;        Predict_16x16_func = Predict_16x16_C;
590        Predict_8x8_func   = Predict_8x8_C;        Predict_8x8_func   = Predict_8x8_C;
591    
592  #if 0 // #if defined(ARCH_IS_IA32)  #if defined(ARCH_IS_IA32)
593        if ((cpu_flags & XVID_CPU_MMX)   || (cpu_flags & XVID_CPU_MMXEXT)   ||        if ((cpu_flags & XVID_CPU_MMX)   || (cpu_flags & XVID_CPU_MMXEXT)   ||
594            (cpu_flags & XVID_CPU_3DNOW) || (cpu_flags & XVID_CPU_3DNOWEXT) ||            (cpu_flags & XVID_CPU_3DNOW) || (cpu_flags & XVID_CPU_3DNOWEXT) ||
595            (cpu_flags & XVID_CPU_SSE)   || (cpu_flags & XVID_CPU_SSE2))            (cpu_flags & XVID_CPU_SSE)   || (cpu_flags & XVID_CPU_SSE2))

Legend:
Removed from v.1709  
changed lines
  Added in v.1711

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