Mercurial > libavcodec.hg
comparison ppc/dsputil_ppc.c @ 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 | fac626a2b73b |
children | ef2149182f1c |
comparison
equal
deleted
inserted
replaced
2777:09108466b7d0 | 2778:4c0ab7ed2642 |
---|---|
303 { | 303 { |
304 c->fdct = fdct_altivec; | 304 c->fdct = fdct_altivec; |
305 } | 305 } |
306 #endif //CONFIG_ENCODERS | 306 #endif //CONFIG_ENCODERS |
307 | 307 |
308 if (avctx->lowres==0) | |
309 { | |
308 if ((avctx->idct_algo == FF_IDCT_AUTO) || | 310 if ((avctx->idct_algo == FF_IDCT_AUTO) || |
309 (avctx->idct_algo == FF_IDCT_ALTIVEC)) | 311 (avctx->idct_algo == FF_IDCT_ALTIVEC)) |
310 { | 312 { |
311 c->idct_put = idct_put_altivec; | 313 c->idct_put = idct_put_altivec; |
312 c->idct_add = idct_add_altivec; | 314 c->idct_add = idct_add_altivec; |
314 c->idct_permutation_type = FF_TRANSPOSE_IDCT_PERM; | 316 c->idct_permutation_type = FF_TRANSPOSE_IDCT_PERM; |
315 #else /* ALTIVEC_USE_REFERENCE_C_CODE */ | 317 #else /* ALTIVEC_USE_REFERENCE_C_CODE */ |
316 c->idct_permutation_type = FF_NO_IDCT_PERM; | 318 c->idct_permutation_type = FF_NO_IDCT_PERM; |
317 #endif /* ALTIVEC_USE_REFERENCE_C_CODE */ | 319 #endif /* ALTIVEC_USE_REFERENCE_C_CODE */ |
318 } | 320 } |
321 } | |
319 | 322 |
320 #ifdef POWERPC_PERFORMANCE_REPORT | 323 #ifdef POWERPC_PERFORMANCE_REPORT |
321 { | 324 { |
322 int i, j; | 325 int i, j; |
323 for (i = 0 ; i < powerpc_perf_total ; i++) | 326 for (i = 0 ; i < powerpc_perf_total ; i++) |