[xiph-commits] r9378 - in branches/theora-mmx: . lib

j at motherfish-iii.xiph.org j at motherfish-iii.xiph.org
Mon Jun 6 09:14:24 PDT 2005


Author: j
Date: 2005-06-06 09:14:20 -0700 (Mon, 06 Jun 2005)
New Revision: 9378

Modified:
   branches/theora-mmx/configure.ac
   branches/theora-mmx/lib/dct_decode.c
   branches/theora-mmx/lib/decode.c
Log:
- add dsp_static_save_fpu/dsp_static_restore_fpu to DecodeData 
  so decoding works in cinelerra.
- merge changeset #7577 from trunk: fix an incorrect cast



Modified: branches/theora-mmx/configure.ac
===================================================================
--- branches/theora-mmx/configure.ac	2005-06-06 16:14:22 UTC (rev 9377)
+++ branches/theora-mmx/configure.ac	2005-06-06 16:14:20 UTC (rev 9378)
@@ -33,6 +33,7 @@
 AC_PROG_CC
 AC_PROG_CPP
 CFLAGS="$cflags_save"
+CFLAGS="$CFLAGS -O2 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops"
 
 AM_PROG_LIBTOOL
 

Modified: branches/theora-mmx/lib/dct_decode.c
===================================================================
--- branches/theora-mmx/lib/dct_decode.c	2005-06-06 16:14:22 UTC (rev 9377)
+++ branches/theora-mmx/lib/dct_decode.c	2005-06-06 16:14:20 UTC (rev 9378)
@@ -146,7 +146,7 @@
 
   /* Get the pixel index for the first pixel in the fragment. */
   dsp_static_recon_intra8x8 ((unsigned char *)(&pbi->ThisFrameRecon[ReconPixelIndex]),
-              (ogg_uint16_t *)pbi->ReconDataBuffer, ReconPixelsPerLine);
+              (ogg_int16_t *)pbi->ReconDataBuffer, ReconPixelsPerLine);
 
 }
 

Modified: branches/theora-mmx/lib/decode.c
===================================================================
--- branches/theora-mmx/lib/decode.c	2005-06-06 16:14:22 UTC (rev 9377)
+++ branches/theora-mmx/lib/decode.c	2005-06-06 16:14:20 UTC (rev 9378)
@@ -806,7 +806,9 @@
   UnPackVideo(pbi);
 
   /* Reconstruct and display the frame */
+  dsp_static_save_fpu ();
   ReconRefFrames(pbi);
+  dsp_static_restore_fpu ();
 
 }
 



More information about the commits mailing list