Mercurial > libavcodec.hg
comparison alpha/dsputil_alpha.c @ 8619:ce9b3d6a0abf libavcodec
Alpha: proper IDCT selection
Only select the Alpha IDCT if auto or explicitly requested. Also
disable it in lowres mode.
author | mru |
---|---|
date | Sun, 18 Jan 2009 05:52:12 +0000 |
parents | cf4d575b1982 |
children | 3d2806d0390a |
comparison
equal
deleted
inserted
replaced
8618:178755e9663d | 8619:ce9b3d6a0abf |
---|---|
354 } | 354 } |
355 | 355 |
356 put_pixels_clamped_axp_p = c->put_pixels_clamped; | 356 put_pixels_clamped_axp_p = c->put_pixels_clamped; |
357 add_pixels_clamped_axp_p = c->add_pixels_clamped; | 357 add_pixels_clamped_axp_p = c->add_pixels_clamped; |
358 | 358 |
359 if (!avctx->lowres && | |
360 (avctx->idct_algo == FF_IDCT_AUTO || | |
361 avctx->idct_algo == FF_IDCT_SIMPLEALPHA)) { | |
359 c->idct_put = simple_idct_put_axp; | 362 c->idct_put = simple_idct_put_axp; |
360 c->idct_add = simple_idct_add_axp; | 363 c->idct_add = simple_idct_add_axp; |
361 c->idct = simple_idct_axp; | 364 c->idct = simple_idct_axp; |
362 } | 365 } |
366 } |