[FFmpeg-devel] [PATCH 2/3] Create a public API for FFT family of functions
Michael Niedermayer
michaelni
Sat Mar 6 17:44:34 CET 2010
On Sat, Mar 06, 2010 at 03:38:06AM +0000, Mans Rullgard wrote:
> ---
> libavcodec/Makefile | 4 +-
> libavcodec/avfft.c | 142 +++++++++++++++++++++++++++++++++++++++++++++++++++
> libavcodec/avfft.h | 89 ++++++++++++++++++++++++++++++++
> libavcodec/fft.h | 28 +++--------
> 4 files changed, 240 insertions(+), 23 deletions(-)
[...]
> +FFTContext *av_fft_init(int nbits, int inverse)
> +{
> + FFTContext *s = av_malloc(sizeof(*s));
> +
> + if (s)
> + ff_fft_init(s, nbits, inverse);
> +
> + return s;
> +}
ff_fft_init() could be changed to this API and renamed to av_
[...]
> +void av_fft_end(FFTContext *s)
> +{
> + if (s) {
> + ff_fft_end(s);
> + av_free(s);
> + }
> +}
> +
> +#if CONFIG_MDCT
> +
> +FFTContext *av_mdct_init(int nbits, int inverse, double scale)
> +{
> + FFTContext *s = av_malloc(sizeof(*s));
> +
> + if (s)
> + ff_mdct_init(s, nbits, inverse, scale);
> +
> + return s;
> +}
same for the 2 above
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
The worst form of inequality is to try to make unequal things equal.
-- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100306/4edd043b/attachment.pgp>
More information about the ffmpeg-devel
mailing list