Hey list, I'd like to use libav for some Discrete Fourier Transform work. Specifically, I'd like to generate the following kind of transform in FFTW, but with libav (if possible). The documentation for libav's DFT functions are scant, so I figured I'd ask.
If I were using FFTW, I would accomplish what I am attempting to do
like so with a real to real single dimensional transform on single
precision floating point data.
http://www.fftw.org/doc/The-Halfcomplex_002dformat-DFT.html
This is how:
float *Input = new float[WindowSize];
float *Output = fftwf_malloc(sizeof(float) * WindowSize);
plan = fftwf_plan_r2r_1d(WindowSize, Input, Output, FFTW_R2HC, ...);
while(MoreSignal())
{
memcpy(Input, NewSignal, sizeof(float) * WindowSize);
fftwf_execute(plan);
...do something with Output...
}
fftwf_destroy_plan(plan);
Any help appreciated.
Regards,
--
Kip Warner -- Senior Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
signature.asc
Description: This is a digitally signed message part
_______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
