[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec/ppc dsputil_ppc.c, 1.31, 1.32 mpegvideo_ppc.c, 1.11, 1.12

Michael Niedermayer CVS michael
Fri Jul 1 11:37:38 CEST 2005


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec/ppc
In directory mail:/var2/tmp/cvs-serv22579

Modified Files:
	dsputil_ppc.c mpegvideo_ppc.c 
Log Message:
Disable AltiVec IDCT for lowres decoding in lavc patch by (Sigbj?rn Skj?ret: cisc, broadpark no)


Index: dsputil_ppc.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/ppc/dsputil_ppc.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- dsputil_ppc.c	11 Oct 2004 22:47:09 -0000	1.31
+++ dsputil_ppc.c	1 Jul 2005 09:37:35 -0000	1.32
@@ -305,6 +305,8 @@
 	}
 #endif //CONFIG_ENCODERS
 
+      if (avctx->lowres==0)
+      {
         if ((avctx->idct_algo == FF_IDCT_AUTO) ||
                 (avctx->idct_algo == FF_IDCT_ALTIVEC))
         {
@@ -316,6 +318,7 @@
             c->idct_permutation_type = FF_NO_IDCT_PERM;
 #endif /* ALTIVEC_USE_REFERENCE_C_CODE */
         }
+      }
         
 #ifdef POWERPC_PERFORMANCE_REPORT
         {

Index: mpegvideo_ppc.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/ppc/mpegvideo_ppc.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- mpegvideo_ppc.c	16 Apr 2004 12:47:37 -0000	1.11
+++ mpegvideo_ppc.c	1 Jul 2005 09:37:35 -0000	1.12
@@ -39,6 +39,8 @@
 #ifdef HAVE_ALTIVEC
     if (has_altivec())
     {
+      if (s->avctx->lowres==0)
+      {
         if ((s->avctx->idct_algo == FF_IDCT_AUTO) ||
                 (s->avctx->idct_algo == FF_IDCT_ALTIVEC))
         {
@@ -50,6 +52,7 @@
             s->dsp.idct_permutation_type = FF_NO_IDCT_PERM;
 #endif /* ALTIVEC_USE_REFERENCE_C_CODE */
         }
+      }
 
         // Test to make sure that the dct required alignments are met.
         if ((((long)(s->q_intra_matrix) & 0x0f) != 0) ||





More information about the ffmpeg-cvslog mailing list