[xiph-commits] r14730 - trunk/theora/lib/dec/x86_vc

giles at svn.xiph.org giles at svn.xiph.org
Mon Apr 14 11:16:07 PDT 2008


Author: giles
Date: 2008-04-14 11:16:06 -0700 (Mon, 14 Apr 2008)
New Revision: 14730

Modified:
   trunk/theora/lib/dec/x86_vc/mmxstate.c
Log:
Update the MSVC asm for a recent api change. Patch from Andrew Chew.


Modified: trunk/theora/lib/dec/x86_vc/mmxstate.c
===================================================================
--- trunk/theora/lib/dec/x86_vc/mmxstate.c	2008-04-14 16:19:26 UTC (rev 14729)
+++ trunk/theora/lib/dec/x86_vc/mmxstate.c	2008-04-14 18:16:06 UTC (rev 14730)
@@ -5,13 +5,13 @@
  * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
  * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *
  *                                                                  *
- * THE Theora SOURCE CODE IS COPYRIGHT (C) 2002-2007                *
+ * THE Theora SOURCE CODE IS COPYRIGHT (C) 2002-2008                *
  * by the Xiph.Org Foundation http://www.xiph.org/                  *
  *                                                                  *
  ********************************************************************
 
   function:
-    last mod: $Id:
+    last mod: $Id:$
 
  ********************************************************************/
 
@@ -146,19 +146,18 @@
   else{
     int ref_framei;
     int ref_ystride;
-    int mvoffset0;
-    int mvoffset1;
+    int mvoffsets[2];
     ref_framei=_state->ref_frame_idx[OC_FRAME_FOR_MODE[_frag->mbmode]];
     ref_ystride=_state->ref_frame_bufs[ref_framei][_pli].stride;
-    if(oc_state_get_mv_offsets(_state,&mvoffset0,&mvoffset1,_frag->mv[0],
+    if(oc_state_get_mv_offsets(_state,mvoffsets,_frag->mv[0],
      _frag->mv[1],ref_ystride,_pli)>1){
       oc_frag_recon_inter2_mmx(_frag->buffer[dst_framei],dst_ystride,
-       _frag->buffer[ref_framei]+mvoffset0,ref_ystride,
-       _frag->buffer[ref_framei]+mvoffset1,ref_ystride,res_buf);
+       _frag->buffer[ref_framei]+mvoffset[0],ref_ystride,
+       _frag->buffer[ref_framei]+mvoffset[1],ref_ystride,res_buf);
     }
     else{
 			oc_frag_recon_inter_mmx(_frag->buffer[dst_framei],dst_ystride,
-       _frag->buffer[ref_framei]+mvoffset0,ref_ystride,res_buf);
+       _frag->buffer[ref_framei]+mvoffset[0],ref_ystride,res_buf);
     }
   }
 
@@ -187,4 +186,4 @@
   _m_empty();
 }
 
-#endif
\ No newline at end of file
+#endif



More information about the commits mailing list