changeset 2778:4c0ab7ed2642 libavcodec

Disable AltiVec IDCT for lowres decoding in lavc patch by (Sigbjrn Skjret: cisc, broadpark no)
author michael
date Fri, 01 Jul 2005 09:37:35 +0000
parents 09108466b7d0
children e65877799a09
files ppc/dsputil_ppc.c ppc/mpegvideo_ppc.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ppc/dsputil_ppc.c	Wed Jun 29 08:41:01 2005 +0000
+++ b/ppc/dsputil_ppc.c	Fri Jul 01 09:37:35 2005 +0000
@@ -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
         {
--- a/ppc/mpegvideo_ppc.c	Wed Jun 29 08:41:01 2005 +0000
+++ b/ppc/mpegvideo_ppc.c	Fri Jul 01 09:37:35 2005 +0000
@@ -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) ||