# HG changeset patch # User michael # Date 1120210655 0 # Node ID 4c0ab7ed2642ebf212465fe644efcb530487dc5c # Parent 09108466b7d0f2829d049dbf26133c46b8d9ece1 Disable AltiVec IDCT for lowres decoding in lavc patch by (Sigbjrn Skjret: cisc, broadpark no) diff -r 09108466b7d0 -r 4c0ab7ed2642 ppc/dsputil_ppc.c --- 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 { diff -r 09108466b7d0 -r 4c0ab7ed2642 ppc/mpegvideo_ppc.c --- 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) ||