History log of /frameworks/av/tools/resampler_tools/fir.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bf5d0666b803921541e6a5d6abae05316e533855 02-Mar-2015 Glenn Kasten <gkasten@google.com> Minor fixes to fir generator

Initialize variable with "= false", and remove trailing space in comment

Change-Id: I51135c1b6275e910155a0331b741e7d11b03fae2
/frameworks/av/tools/resampler_tools/fir.cpp
e1984fc72d9f814461992b9f5b1e5f9d45ce7afa 18-Feb-2015 Glenn Kasten <gkasten@google.com> Revert "Indent by 8 spaces to match existing code"

This reverts commit 8dde8ce528504c209904a2479f42c8bd7f7bff15.
/frameworks/av/tools/resampler_tools/fir.cpp
9c380ac229c5815437819b346fb468655a423747 17-Feb-2015 Glenn Kasten <gkasten@google.com> Remove spaces at end of line to match existing code

Change-Id: Ib0903c11ac360682f2023f99532fb4b2e9fba66c
/frameworks/av/tools/resampler_tools/fir.cpp
5e83ef573a311a1f564d88d681d1022826729da5 17-Feb-2015 Glenn Kasten <gkasten@google.com> Indent by 8 spaces to match existing code

Change-Id: I1aeb747654b1372473bb2f44319985682381971f
/frameworks/av/tools/resampler_tools/fir.cpp
393d4d2082351b0f63ff19fbe82308481e508b3e 17-Feb-2015 Glenn Kasten <gkasten@google.com> Command line display now includes name of program

Change-Id: I0d20924c3b3de24d88f7524693dc997231e92023
/frameworks/av/tools/resampler_tools/fir.cpp
6506d19004ce9d6943b80721c37e26532c6e6bdf 17-Feb-2015 Glenn Kasten <gkasten@google.com> Add -D option to generate extra declarations

Change-Id: Ia2b932746cd62af68781a6c953f1e3e3a25f8f49
/frameworks/av/tools/resampler_tools/fir.cpp
904e982b8ec64df6646a61823199ce22c0674826 17-Feb-2015 Glenn Kasten <gkasten@google.com> FIx typo in help for -f option

Change-Id: Iefbc0c9947ea0d58733f27252211063b35195ab3
/frameworks/av/tools/resampler_tools/fir.cpp
a4ebf1324ac7d8fa1a5ec77bd7f27d124ede67d6 10-Mar-2014 Glenn Kasten <gkasten@android.com> Fix build warnings in fir

Change-Id: I75b34cc30998bd7d018cf8de68d1cbb8870bb994
/frameworks/av/tools/resampler_tools/fir.cpp
523476a40b40857ca44cb6fab933469cd3598425 30-Dec-2013 Andy Hung <hunga@google.com> Fix for Change 396851

Fix a typo in a variable name.

Change-Id: I2555f729fc22b9c158ae488c8cefde029fa244cb
Signed-off-by: Andy Hung <hunga@google.com>
/frameworks/av/tools/resampler_tools/fir.cpp
86eae0e5931103e040ac2cdd023ef5db252e09f6 09-Dec-2013 Andy Hung <hunga@google.com> Audio resampler update to add S16 filters

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>
/frameworks/av/tools/resampler_tools/fir.cpp
46afbec3743f1d799f185273ff897d1f8e0175dd 04-Nov-2012 Mathias Agopian <mathias@google.com> change how we store the FIR coefficients

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
/frameworks/av/tools/resampler_tools/fir.cpp
d88a051aff15fdf5c57e1e5a4083bbd9635af3ad 30-Oct-2012 Mathias Agopian <mathias@google.com> fix another issue with generating FIR coefficients

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
/frameworks/av/tools/resampler_tools/fir.cpp
b4b75b47c2a4248e60bbc3229d6acc4d5f872431 30-Oct-2012 Mathias Agopian <mathias@google.com> fir a typo that caused up-sampling coefficiens to be wrong

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
/frameworks/av/tools/resampler_tools/fir.cpp
73e90268adf4c9638b8d820a802e5e9a8ebe6597 26-Oct-2012 Pixelflinger <mathias.agopian@gmail.com> 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.
/frameworks/av/tools/resampler_tools/fir.cpp
4cb4f7ce9184de9a221239c28afcf912e7e1ed43 03-Oct-2008 Dan Bornstein <danfuzz@google.com> Manually merge change #111620 from tc3 to mainline, to keep the

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>
/frameworks/av/tools/resampler_tools/fir.cpp
4b61366dedf8536679083004ce0b6ac2b7e52fc2 30-Oct-2007 Mathias Agopian <mathias@google.com> Tweak the SINC resampler parameters and double the performance. It's using about 10% CPU in the worse case now.

Change-Id: I50ac7e6c6702a427fa36ab6d976c507155057507
Signed-off-by: Glenn Kasten <gkasten@google.com>
/frameworks/av/tools/resampler_tools/fir.cpp
2a967b3fff07b8711aef41f839ad7521323bb64d 29-Oct-2007 Mathias Agopian <mathias@google.com> A sinc resampler for Audioflinger. It's not enabled yet, but fully 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>
/frameworks/av/tools/resampler_tools/fir.cpp
65682fb8e99ab2f1d2ad6a44ed507e78e757ffa9 24-Aug-2007 Mathias Agopian <mathias@google.com> fix a few small typos in the FIR computation

Change-Id: I6e56b514fe520f30f7487f85c64ea5d2a7c19b40
Signed-off-by: Glenn Kasten <gkasten@google.com>
/frameworks/av/tools/resampler_tools/fir.cpp
4b8a3d8a89814dc3fb365f18d01733e26eb495a1 23-Aug-2007 Mathias Agopian <mathias@google.com> This is a tool to compute the the reconstruction filter coefficients for a sinc audio resampler.

Change-Id: I99be2505139b8e0e7647200e1647509d4f7e6067
Signed-off-by: Glenn Kasten <gkasten@google.com>
/frameworks/av/tools/resampler_tools/fir.cpp