Mercurial > libavcodec.hg
diff dsputil.c @ 8120:3d4e01bcd2a5 libavcodec
Electronic Arts TGQ/TQI/MAD IDCT algorithm
author | pross |
---|---|
date | Sat, 08 Nov 2008 00:38:10 +0000 |
parents | 1fbfce20cb79 |
children | 520a6e56b8c0 |
line wrap: on
line diff
--- a/dsputil.c Sat Nov 08 00:29:22 2008 +0000 +++ b/dsputil.c Sat Nov 08 00:38:10 2008 +0000 @@ -50,6 +50,9 @@ /* pngdec.c */ void ff_add_png_paeth_prediction(uint8_t *dst, uint8_t *src, uint8_t *top, int w, int bpp); +/* eaidct.c */ +void ff_ea_idct_put_c(uint8_t *dest, int linesize, DCTELEM *block); + uint8_t ff_cropTbl[256 + 2 * MAX_NEG_CROP] = {0, }; uint32_t ff_squareTbl[512] = {0, }; @@ -4240,6 +4243,9 @@ c->idct_add= ff_faanidct_add; c->idct = ff_faanidct; c->idct_permutation_type= FF_NO_IDCT_PERM; + }else if(ENABLE_EATGQ_DECODER && avctx->idct_algo==FF_IDCT_EA) { + c->idct_put= ff_ea_idct_put_c; + c->idct_permutation_type= FF_NO_IDCT_PERM; }else{ //accurate/default c->idct_put= ff_simple_idct_put; c->idct_add= ff_simple_idct_add;