aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/alpha
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-01-18 05:52:12 +0000
committerMåns Rullgård <mans@mansr.com>2009-01-18 05:52:12 +0000
commit74c474634487696fa0cca055cb8694d0e4bc1329 (patch)
tree7053ebb58fb85e1f9fbd0d3c14407b8a2e2dc534 /libavcodec/alpha
parentc2fbf89398bcb3e8b652c23a18200d79cac84fc2 (diff)
downloadffmpeg-74c474634487696fa0cca055cb8694d0e4bc1329.tar.gz
Alpha: proper IDCT selection
Only select the Alpha IDCT if auto or explicitly requested. Also disable it in lowres mode. Originally committed as revision 16666 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/alpha')
-rw-r--r--libavcodec/alpha/dsputil_alpha.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/alpha/dsputil_alpha.c b/libavcodec/alpha/dsputil_alpha.c
index c1500b11f9..905137edf2 100644
--- a/libavcodec/alpha/dsputil_alpha.c
+++ b/libavcodec/alpha/dsputil_alpha.c
@@ -356,7 +356,11 @@ void dsputil_init_alpha(DSPContext* c, AVCodecContext *avctx)
put_pixels_clamped_axp_p = c->put_pixels_clamped;
add_pixels_clamped_axp_p = c->add_pixels_clamped;
+ if (!avctx->lowres &&
+ (avctx->idct_algo == FF_IDCT_AUTO ||
+ avctx->idct_algo == FF_IDCT_SIMPLEALPHA)) {
c->idct_put = simple_idct_put_axp;
c->idct_add = simple_idct_add_axp;
c->idct = simple_idct_axp;
+ }
}