diff options
author | Peter Ross <pross@xvid.org> | 2008-11-08 00:38:10 +0000 |
---|---|---|
committer | Peter Ross <pross@xvid.org> | 2008-11-08 00:38:10 +0000 |
commit | 28245435d9b732fbb28102de46bed7d678e33d02 (patch) | |
tree | b911396ec8b7ae3db01b8b4626aafeb9324ead54 /libavcodec/dsputil.c | |
parent | 42b30357bea2ced2caf659cb9ba5c154f39c83c7 (diff) | |
download | ffmpeg-streaming-28245435d9b732fbb28102de46bed7d678e33d02.zip ffmpeg-streaming-28245435d9b732fbb28102de46bed7d678e33d02.tar.gz |
Electronic Arts TGQ/TQI/MAD IDCT algorithm
Originally committed as revision 15790 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dsputil.c')
-rw-r--r-- | libavcodec/dsputil.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c index 65d884f..9a73e74 100644 --- a/libavcodec/dsputil.c +++ b/libavcodec/dsputil.c @@ -50,6 +50,9 @@ void ff_flac_compute_autocorr(const int32_t *data, int len, int lag, double *aut /* 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 @@ void dsputil_init(DSPContext* c, AVCodecContext *avctx) 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; |