summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* Rename TrackBase::mFrameCount to mStepCountGlenn Kasten2012-11-132-9/+10
| | | | | | | This prepares for adding a new field TrackBase::mFrameCount with a different meaning. Change-Id: I6bbe2c59f2a882be57caeec2e2e06f439a0e9e83
* Move frame size out of the control blockGlenn Kasten2012-11-122-25/+28
| | | | | | This is part of a series to clean up the control block. Change-Id: Ifab1c42ac0f8be704e571b292713cd2250d12a3f
* Merge "Move buffers pointer out of the control block"Glenn Kasten2012-11-082-3/+4
|\
| * Move buffers pointer out of the control blockGlenn Kasten2012-11-082-3/+4
| | | | | | | | | | | | This is part of a series to clean up the control block. Change-Id: Ie474557db7cb360f2d9a0f11600a68f5a3d46f07
* | NEON optimized SINC resamplerMathias Agopian2012-11-082-11/+166
| | | | | | | | | | | | | | this currently gives us a 60% to 80% boost depending on the quality level selected. Change-Id: I7db385007e811ed7bffe5fd3403b44e300894f5b
* | minor cleanupsMathias Agopian2012-11-081-41/+39
|/ | | | Change-Id: Ia12ee4fb59e90221761bec85e6450db29197591f
* Remove CBLK_DIRECTION from control block flagsGlenn Kasten2012-11-072-8/+23
| | | | | | This is part of a series to clean up the control block. Change-Id: I0265fece3247356b585d4d48fbda6f37aea8a851
* Merge "Remove CBLK_FAST from control block flags"Glenn Kasten2012-11-072-10/+9
|\
| * Remove CBLK_FAST from control block flagsGlenn Kasten2012-11-062-10/+9
| | | | | | | | | | | | This is part of a series to clean up the control block. Change-Id: Ic881a3560d9547cb63fcc0cefec87aa3da480e0d
* | Merge changes I5d62a6c2,Iebf76958,I8068f0f7Mathias Agopian2012-11-064-171/+674
|\ \ | |/ |/| | | | | | | | | * changes: improve resample test change how we store the FIR coefficients improve SINC resampler performance
| * improve resample testMathias Agopian2012-11-051-61/+102
| | | | | | | | | | | | | | | | | | - handle stereo input - input file can now be ommited, in this case a linear chirp will be used automatically - better usage information Change-Id: I5d62a6c26a9054a1c1a517a065b4df5a2cdcda22
| * change how we store the FIR coefficientsMathias Agopian2012-11-053-75/+551
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * improve SINC resampler performanceMathias Agopian2012-11-052-40/+26
| | | | | | | | | | | | | | | | The improvement is about 60% by just tweaking a few things to help the compiler generate better code. It turns out that inlining too much stuff manually was hurting us. Change-Id: I8068f0f75051f95ac600e50ce552572dd1e8c304
* | Merge duplicate code in TrackBase::TrackBase()Glenn Kasten2012-11-051-34/+23
| | | | | | | | Change-Id: Id8a7db4d94888796a9dcbed4cac99941705cd174
* | Simplify control block flag namesGlenn Kasten2012-11-051-13/+13
|/ | | | | | Use only one symbol per flag Change-Id: Ia3582e2134abd60c896d11337face65383e79c7c
* Merge "new coefficients for the vhq resampler"Mathias Agopian2012-11-025-4680/+84
|\
| * new coefficients for the vhq resamplerMathias Agopian2012-11-015-4680/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | previous coefficients were provided by a 3rd party and didn't have a way to re-generate them. we're now using the 'fir' utility. the performance of the filter is virtually identical, except for the down-sampling case which seems slightly better now: It looks like both the previous and new coefficients are generating some sort of clipping for full-scale signals in the down-sampling case (although the new ones seem better), the reason for that is unknown (see bug: 7453062) Also updated the HQ coefficients for the down-samplers, previous ones were a little bit too conservative -- the new ones push the cut-off frequency up by about 1 KHz. Change-Id: I54a827b5c707c7cc41268ed01283758dce1d7647
* | Line length 100Glenn Kasten2012-11-017-116/+207
| | | | | | | | Change-Id: Ib28fd7b9ce951a6933f006e7f8812ba617625530
* | Save copy of mic input, disabled by defaultGlenn Kasten2012-11-013-33/+117
|/ | | | Change-Id: I4f5e95a5ddf016530d1b2747a0a5ca0962caabda
* Merge "StateQueue comments"Glenn Kasten2012-10-311-0/+66
|\
| * StateQueue commentsGlenn Kasten2012-10-261-0/+66
| | | | | | | | Change-Id: Id8c76d1e2ab5201e7ab3875f1dbcc0a126e611a4
* | Merge "Remove obsolete references to libmedia_native"Glenn Kasten2012-10-302-3/+0
|\ \
| * | Remove obsolete references to libmedia_nativeGlenn Kasten2012-10-302-3/+0
| | | | | | | | | | | | | | | Bug: 6654403 Change-Id: I3993d62987cf0dd85db10bf002a5cce53d4f01bd
* | | Merge changes Ide218785,I86d0bb82Mathias Agopian2012-10-301-33/+23
|\ \ \ | | | | | | | | | | | | | | | | | | | | * changes: fix SINC resampler on non ARM architectures fix another issue with generating FIR coefficients
| * | | fix SINC resampler on non ARM architecturesMathias Agopian2012-10-301-15/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | make sure the C version of the code generates the same output than the ARM assemply version. Change-Id: Ide218785c35d02598b2d7278e646b1b178148698
| * | | fix another issue with generating FIR coefficientsMathias Agopian2012-10-301-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Document AudioMixer hard-coded limits"Glenn Kasten2012-10-302-0/+13
|\ \ \ \ | |_|/ / |/| | |
| * | | Document AudioMixer hard-coded limitsGlenn Kasten2012-10-262-0/+13
| | |/ | |/| | | | | | | Change-Id: I83ea8bed375f251260945db788bdb5f280dba12d
* | | Merge "Use ALOGVV instead of commented ALOGV"Glenn Kasten2012-10-301-10/+10
|\ \ \
| * | | Use ALOGVV instead of commented ALOGVGlenn Kasten2012-10-261-10/+10
| |/ / | | | | | | | | | Change-Id: I17bdb5274877760c7edaa31416020d349082e593
* | | Merge "Clean up constructor and derivation whitespace"Glenn Kasten2012-10-301-15/+16
|\ \ \
| * | | Clean up constructor and derivation whitespaceGlenn Kasten2012-10-261-15/+16
| |/ / | | | | | | | | | Change-Id: I47d688a9c10c4c3c868accc34102fb402ebcac62
* | | Merge "Mark volume fields private"Glenn Kasten2012-10-301-1/+1
|\ \ \ | |_|/ |/| |
| * | Mark volume fields privateGlenn Kasten2012-10-261-1/+1
| |/ | | | | | | Change-Id: I8ffca0460195263d159aa13015c246122d8556a2
* | fir a typo that caused up-sampling coefficiens to be wrongMathias Agopian2012-10-291-17/+17
| | | | | | | | | | | | | | | | | | | | 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
* | test-resample: clip instead of overflowingMathias Agopian2012-10-291-1/+4
| | | | | | | | Change-Id: I550e5a59e51c11e1095ca338222b094f92b96878
* | Merge "a test app for the resamplers"Mathias Agopian2012-10-262-0/+252
|\ \
| * | a test app for the resamplersMathias Agopian2012-10-262-0/+252
| | | | | | | | | | | | Change-Id: I66852d90d384f1d9e77b51ad1a1ebdbaf61d0607
* | | Merge "reenable the cubic resampler"Mathias Agopian2012-10-262-7/+1
|\ \ \ | |/ /
| * | reenable the cubic resamplerMathias Agopian2012-10-262-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cubic resampler was disabled because it hadn't been qualified, however after I did some tests, it does improve significantly the sound quality over the order-1 resampler, even if it is still quite bad. also HIGH_QUALITY resampler was partially disabled, it's now fully enabled. It's a big improvement over the cubic resampler in terms of aliasing noise (it's not as good in the pass-band). Change-Id: I70e3658c255896588642697be9eb594ff4ec0f8b
* | | Merge "improve SINC resampler coefficients"Mathias Agopian2012-10-262-23/+20
|\ \ \ | |/ /
| * | improve SINC resampler coefficientsMathias Agopian2012-10-262-23/+20
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - we increase the interpolation precision from 4 to 7 bits this doesn't increase CPU power required, it only increases the size of the filter table but significantly reduces the noise introduced by the quantization of the impulse response. - the parameters of the filter are set such that aliasing is rejected at 80 dB below 20 KHz. Because we don't use a lot of coefficient (to save compute power), there are quite a bit of attenuation in the pass-band: starting at 9KHz for the down-sampler (48 to 44.1), and starting at 13 KHz for the up-sampler (44.1 to 48) -- the transition band is about 15 KHz. Change-Id: I855548d2aab8a0fb0d2a2da3a364b6842d7d3838
* | Camera2: Compile with warnings, fix warningsIgor Murashkin2012-10-2614-50/+45
|/ | | | Change-Id: I557350abb32b0480f5da7dcecadfbe9edbe53361
* am 203836b7: am b8d6efba: Camera2: Don\'t hold locks while waiting to sync.Eino-Ville Talvala2012-10-241-33/+35
|\ | | | | | | | | * commit '203836b7584ccb7787202578259d27d70a8a3ede': Camera2: Don't hold locks while waiting to sync.
| * Camera2: Don't hold locks while waiting to sync.Eino-Ville Talvala2012-10-241-33/+35
| | | | | | | | | | Bug: 7409877 Change-Id: Ia3a0bc4f0ab4e19fca868ba04a870cf8e8ee7adb
* | am 9e83f44c: am 6ccc3c34: Merge "Camera2: Increase mode update timeout." ↵Eino-Ville Talvala2012-10-231-1/+1
|\ \ | |/ | | | | | | | | | | into jb-mr1-dev * commit '9e83f44c0b310a72a080c006ebc3c07bdccc7027': Camera2: Increase mode update timeout.
| * Merge "Camera2: Increase mode update timeout." into jb-mr1-devEino-Ville Talvala2012-10-231-1/+1
| |\
| | * Camera2: Increase mode update timeout.Eino-Ville Talvala2012-10-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During camera startup, it might take a few hundred milliseconds before requests start to be dequeued by the HAL. Increase the timeout for synchronizing mode changes and triggers so that triggers near startup don't time out. Bug: 6970465 Change-Id: I9dc35378e8018ec18ae31be874fcb094f8a9a0e9
* | | am 3aaa4e30: am c4640c9e: Increase allowed number of VHQ resamplers to 3Glenn Kasten2012-10-231-1/+1
|\ \ \ | |/ / | | | | | | | | | * commit '3aaa4e30f7663673f3453d3f4671b1119f1802fd': Increase allowed number of VHQ resamplers to 3
| * | Increase allowed number of VHQ resamplers to 3Glenn Kasten2012-10-221-1/+1
| | | | | | | | | | | | | | | Bug: 7378660 Change-Id: I69e33ca2eb4bb9bd38e2c63df62cd1130d68baf6