[Ffmpeg-devel] ac3enc.c modifications
Michael Niedermayer
michaelni
Mon May 23 03:08:02 CEST 2005
Hi
On Sunday 15 May 2005 23:53, Justin Ruggles wrote:
> Hello,
>
> Simone Karin Lehmann wrote:
> > block switching to a 256 mdct (but this still gives some high
> > frequency artefacts....hmm, why?)
>
> Here is my patch for block switching (with no other modifications). It
> might produce artefacts as well, but I don't really know what to listen
> for. The only part of the patch that I'm a bit unsure about whether
> it's 100% correct or not is the transient detection function. I'd be
> interested to hear any comments/critiques/suggestions.
> -
> for(i=0;i<(n/2);i++) {
> alpha = 2 * M_PI * (float)i / (float)n;
> costab[i] = fix15(cos(alpha));
> sintab[i] = fix15(sin(alpha));
> }
> -
> for(i=0;i<n;i++) {
> m=0;
> for(j=0;j<ln;j++) {
cosmetics
> + dct4(coef_a, in, 8);
> +
> + int16_t xx[256];
> + for(i=0; i<128; i++) {
breaks gcc 2.95
[...]
--
Michael
More information about the ffmpeg-devel
mailing list