OSDN Git Service

improve fir tool: cleanup, better default, bug fixes
authorPixelflinger <mathias.agopian@gmail.com>
Fri, 26 Oct 2012 02:43:49 +0000 (19:43 -0700)
committerMathias Agopian <mathias@google.com>
Fri, 26 Oct 2012 20:17:37 +0000 (13:17 -0700)
commit59195326e49ca39db6ab663b985cd925afb046f0
treec1dfc423197af89ba889672b8c486cbfb75e8b78
parentbd37975395b6517e155f6195d2300872bc26ee70
improve fir tool: cleanup, better default, bug fixes

- all parameters can be changed on the command-line
- added float output
- added debug option
- added an option to generate a polyphase filter coefficients
- added an attenuation option in dBFS
- added a lot of comments and references
- fixed kaiser window parameter

also the default should generate a filter with 80 dB rejection
(of the 24 KHz aliasing) above 20 KHz and a 15 KHz transition
band around ~20 KHz (for 48 KHz sampling rate).
It's not very good but corresponds to the current code.
tools/resampler_tools/fir.cpp