[FFmpeg-devel] [PATCH] Move Kaiser-Bessel Derived window to mdct.c

Robert Swain robert.swain
Thu Jan 10 17:38:16 CET 2008


Hello,

The SoC AAC code uses a slightly more flexible version (variable
alpha, window size, iterations) of the Kaiser-Bessel Derived window
used in libavcodec/ac3dec.c. It is desirable to have the code shared
between ac3dec.c and aac.c rather than duplicated. I extended the
capability of the code in ac3dec.c and moved it to mdct.c. Please find
a patch for this attached.

It seems that gcc -O3 optimises away local_window[] (I stumbled upon
this while debugging) and I wasn't sure whether to retain the use of
doubles for the calculations or to remove local_window[], use window[]
for temporary storage and change types of variables from double to
float. Any advice on what to consider for this would be appreciated.

Best regards,
Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20080110-move_kaiser.diff
Type: application/octet-stream
Size: 2834 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080110/24c18a05/attachment.obj>



More information about the ffmpeg-devel mailing list