[FFmpeg-soc] [soc]: r523 - in eac3: ac3tab.c ac3tab.h eac3.h eac3_parser.c

Justin Ruggles justinruggles at bellsouth.net
Tue Jul 24 22:46:37 CEST 2007


bwolowiec wrote:
> +        if(s->chahtinu[ch] != 0){
> +            // TODO fast DCT
> +            int bin;
> +            float tmp;
> +            for(bin=0; bin<s->nchmant[ch]; bin++){
> +                tmp = 0;
> +                for(i=0; i<6; i++){
> +                    tmp += (i?sqrt(2):1) * s->pre_chmant[i][ch][bin] * cos(M_PI*i*(2*blk + 1)/12);

One thing you could do in the meantime to make the AHT transform a bit 
faster would be to pre-calculate the 36 cosine values at runtime.

-Justin



More information about the FFmpeg-soc mailing list