summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Fix build warnings in firGlenn Kasten2014-03-101-19/+19
| | | | Change-Id: I75b34cc30998bd7d018cf8de68d1cbb8870bb994
* Fix for Change 396851Andy Hung2013-12-301-1/+1
| | | | | | | Fix a typo in a variable name. Change-Id: I2555f729fc22b9c158ae488c8cefde029fa244cb Signed-off-by: Andy Hung <hunga@google.com>
* Audio resampler update to add S16 filtersAndy Hung2013-12-271-28/+56
| | | | | | | | | | | | This does not affect the existing resamplers. New resampler accessed through additional quality settings: DYN_LOW_QUALITY = 5 DYN_MED_QUALITY = 6 DYN_HIGH_QUALITY = 7 Change-Id: Iebbd31871e808a4a6dee3f3abfd7e9dcf77c48e1 Signed-off-by: Andy Hung <hunga@google.com>
* change how we store the FIR coefficientsMathias Agopian2012-11-051-20/+19
| | | | | | | | | | | | | | | | | The coefficient table is now transposed and shows much better its polyphase nature: we now have a FIR per line, each line corresponding to a phase. This doesn't change at all the results produced by the filter, but allows us to make slightly better use of the data cache and improves performance a bit (although not as much as I thought it would). The main benefit is that it is the first step before we can make much larger optimizations (like using NEON). Change-Id: Iebf7695825dcbd41f25861efcaefbaa3365ecb43
* fix another issue with generating FIR coefficientsMathias Agopian2012-10-301-2/+2
| | | | | | | | the impulse response of a low-pass is 2*f*sinc(2*pi*f*k), we were missing the 2*f scale factor. This explains why we were seeing clipping and had to manually scale the filter down. Change-Id: I86d0bb82ecdd99681c8ba5a8112a8257bf6f0186
* fir a typo that caused up-sampling coefficiens to be wrongMathias Agopian2012-10-291-1/+1
| | | | | | | | | | up-sample coefficient were generated with a cut-off frequency of 24KHz intead of ~20KHz, which caused more aliasing in the audible band. also increased the attenuation to 1.3 dB on both up and down sampling coefficient to avoid clipping. Change-Id: Ie8aeecf1429190541b656810c6716b6aae5ece2e
* improve fir tool: cleanup, better default, bug fixesPixelflinger2012-10-261-51/+212
| | | | | | | | | | | | | | | - 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.
* Manually merge change #111620 from tc3 to mainline, to keep theDan Bornstein2012-10-172-3/+3
| | | | | | | | | | | | | | | | | automerger from choking on it. p4 sync p4 integrate -r -b android_to_tc3 //...@111620,111620 p4 resolve -a p4 resolve # resolve a couple merge travesties PRESUBMIT=passed BUG=1399648 TBR=edheyl OCL=111902 Change-Id: I854b01553dd92bbf9c864f5a9bd51a3d665f0ac2 Signed-off-by: Glenn Kasten <gkasten@google.com>
* Rename "Makefile" to "Android.mk" throughout the tree.Dave Bort2012-10-171-1/+1
| | | | | | | | | | | | | | | | For <http://b/issue?id=960416>. I've tested this as much as I can, but 1500 open files = easy to mess things up. Please let me know if there's a problem rather than rolling back this change. PRESUBMIT=passed BUG=960416 TBR=joeo OCL=46537 Change-Id: I5a404caf0f398a7afa7ae7abaf2f2a1c6ab490eb Signed-off-by: Glenn Kasten <gkasten@google.com>
* Rename "TARGET" to "MODULE" in the build system.Dave Bort2012-10-171-1/+1
| | | | | | | | | | | | | | | Part one of the grand renaming. API_CHANGE: Third parties may need to update their makefiles. Any variables with "LOCAL" and "TARGET" in their names should now use "MODULE" instead of "TARGET"; e.g., LOCAL_MODULE, LOCAL_MODULE_TAGS. PRESUBMIT=passed OCL=39840 Change-Id: Ica9a7937d3d9552ab84db46ac6eea8a290e404fe Signed-off-by: Glenn Kasten <gkasten@google.com>
* Tweak the SINC resampler parameters and double the performance. It's using ↵Mathias Agopian2012-10-171-3/+3
| | | | | | | about 10% CPU in the worse case now. Change-Id: I50ac7e6c6702a427fa36ab6d976c507155057507 Signed-off-by: Glenn Kasten <gkasten@google.com>
* A sinc resampler for Audioflinger. It's not enabled yet, but fully ↵Mathias Agopian2012-10-171-13/+29
| | | | | | | functional and apparently working. It need more "quality" tests. In the 48->44 KHz, it takes about 25% of the CPU time. Change-Id: I80eb5185e13ebdb907e0b85c49ba1272c23d60ec Signed-off-by: Glenn Kasten <gkasten@google.com>
* fix a few small typos in the FIR computationMathias Agopian2012-10-171-6/+2
| | | | | Change-Id: I6e56b514fe520f30f7487f85c64ea5d2a7c19b40 Signed-off-by: Glenn Kasten <gkasten@google.com>
* This is a tool to compute the the reconstruction filter coefficients for a ↵Mathias Agopian2012-10-172-0/+126
sinc audio resampler. Change-Id: I99be2505139b8e0e7647200e1647509d4f7e6067 Signed-off-by: Glenn Kasten <gkasten@google.com>