diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2013-09-25 18:43:55 -0700 |
---|---|---|
committer | Jean-Michel Trivi <jmtrivi@google.com> | 2013-09-26 12:55:10 -0700 |
commit | cd0c4683947231a7d3dc7811bedb75c5a965103c (patch) | |
tree | 3554110faa75566c437e0d4f5bf26cf7b2759f97 /media/libeffects/loudness/dsp/core/dynamic_range_compression.h | |
parent | fed6292af65a0b97b583ecbd3c232b3811a3f37b (diff) | |
download | frameworks_av-cd0c4683947231a7d3dc7811bedb75c5a965103c.zip frameworks_av-cd0c4683947231a7d3dc7811bedb75c5a965103c.tar.gz frameworks_av-cd0c4683947231a7d3dc7811bedb75c5a965103c.tar.bz2 |
LoudnessEnhancer compatible with stereo imaging
Use a single compressor for both channels.
Envelope of signal is determined by looking at both channels.
Bug 8413913
Change-Id: Ia9b6f34923d2977c60a3352500b858dfa1fab33c
Diffstat (limited to 'media/libeffects/loudness/dsp/core/dynamic_range_compression.h')
-rw-r--r-- | media/libeffects/loudness/dsp/core/dynamic_range_compression.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/media/libeffects/loudness/dsp/core/dynamic_range_compression.h b/media/libeffects/loudness/dsp/core/dynamic_range_compression.h index 4c015df..2821a78 100644 --- a/media/libeffects/loudness/dsp/core/dynamic_range_compression.h +++ b/media/libeffects/loudness/dsp/core/dynamic_range_compression.h @@ -55,6 +55,9 @@ class AdaptiveDynamicRangeCompression { // log(.) and exp(.). float Compress(float x); + // Stereo channel version of the compressor + void Compress(float *x1, float *x2); + // This version is slower than Compress(.) but faster than CompressSlow(.) float CompressNormalSpeed(float x); |