comparison dsputil.c @ 1557:5d53c03186a1 libavcodec

floating point AAN DCT
author michael
date Wed, 22 Oct 2003 18:26:38 +0000
parents 8ffd0c00e6df
children e08df4d22d27
comparison
equal deleted inserted replaced
1556:5ebb4ae753d3 1557:5d53c03186a1
26 26
27 #include "avcodec.h" 27 #include "avcodec.h"
28 #include "dsputil.h" 28 #include "dsputil.h"
29 #include "mpegvideo.h" 29 #include "mpegvideo.h"
30 #include "simple_idct.h" 30 #include "simple_idct.h"
31 31 #include "faandct.h"
32 32
33 uint8_t cropTbl[256 + 2 * MAX_NEG_CROP]; 33 uint8_t cropTbl[256 + 2 * MAX_NEG_CROP];
34 uint32_t squareTbl[512]; 34 uint32_t squareTbl[512];
35 35
36 const uint8_t ff_zigzag_direct[64] = { 36 const uint8_t ff_zigzag_direct[64] = {
2869 int i; 2869 int i;
2870 2870
2871 #ifdef CONFIG_ENCODERS 2871 #ifdef CONFIG_ENCODERS
2872 if(avctx->dct_algo==FF_DCT_FASTINT) 2872 if(avctx->dct_algo==FF_DCT_FASTINT)
2873 c->fdct = fdct_ifast; 2873 c->fdct = fdct_ifast;
2874 else if(avctx->dct_algo==FF_DCT_FAAN)
2875 c->fdct = ff_faandct;
2874 else 2876 else
2875 c->fdct = ff_jpeg_fdct_islow; //slow/accurate/default 2877 c->fdct = ff_jpeg_fdct_islow; //slow/accurate/default
2876 #endif //CONFIG_ENCODERS 2878 #endif //CONFIG_ENCODERS
2877 2879
2878 if(avctx->idct_algo==FF_IDCT_INT){ 2880 if(avctx->idct_algo==FF_IDCT_INT){