summaryrefslogtreecommitdiffstats
path: root/media/libeffects/lvm/wrapper/Bundle/EffectBundle.h
diff options
context:
space:
mode:
authorRicardo Garcia <rago@google.com>2014-12-16 17:38:28 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-12-16 17:38:28 +0000
commit2757127f55dc4928f0025f5d95c9fd5f165971ac (patch)
tree25d762c853dea088e94b05d23971bf4ccab175c6 /media/libeffects/lvm/wrapper/Bundle/EffectBundle.h
parent667d3ea42b3557f90d7d2a7638d2575db0b13470 (diff)
parentd11d1be13a6391290fb1dbc572292973dae59909 (diff)
downloadframeworks_av-2757127f55dc4928f0025f5d95c9fd5f165971ac.zip
frameworks_av-2757127f55dc4928f0025f5d95c9fd5f165971ac.tar.gz
frameworks_av-2757127f55dc4928f0025f5d95c9fd5f165971ac.tar.bz2
am d11d1be1: am 7ebc1670: am 8975220e: Merge "Fix for Bundled Effects level compensation" into lmp-mr1-dev
* commit 'd11d1be13a6391290fb1dbc572292973dae59909': Fix for Bundled Effects level compensation
Diffstat (limited to 'media/libeffects/lvm/wrapper/Bundle/EffectBundle.h')
-rw-r--r--media/libeffects/lvm/wrapper/Bundle/EffectBundle.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/media/libeffects/lvm/wrapper/Bundle/EffectBundle.h b/media/libeffects/lvm/wrapper/Bundle/EffectBundle.h
index 420f973..b3071f4 100644
--- a/media/libeffects/lvm/wrapper/Bundle/EffectBundle.h
+++ b/media/libeffects/lvm/wrapper/Bundle/EffectBundle.h
@@ -142,6 +142,7 @@ static const uint32_t bandFreqRange[FIVEBAND_NUMBANDS][2] = {
{1800001, 7000000},
{7000001, 1}};
+//Note: If these frequencies change, please update LimitLevel values accordingly.
static const LVM_UINT16 EQNB_5BandPresetsFrequencies[] = {
60, /* Frequencies in Hz */
230,
@@ -192,6 +193,20 @@ static const PresetConfig gEqualizerPresets[] = {
{"Pop"},
{"Rock"}};
+/* The following tables have been computed using the actual levels measured by the output of
+ * white noise or pink noise (IEC268-1) for the EQ and BassBoost Effects. These are estimates of
+ * the actual energy that 'could' be present in the given band.
+ * If the frequency values in EQNB_5BandPresetsFrequencies change, these values might need to be
+ * updated.
+ */
+
+static const float LimitLevel_bandEnergyContribution[FIVEBAND_NUMBANDS] = {
+ 5.0, 6.5, 6.45, 4.8, 1.7 };
+
+static const float LimitLevel_bassBoostEnergyContribution = 6.7;
+
+static const float LimitLevel_virtualizerContribution = 1.9;
+
#if __cplusplus
} // extern "C"
#endif