Commit graph

33 commits

Author SHA1 Message Date
alessiob
5d26edcc02 Total Harmonic Distorsion plus noise (THD+n) score in APM-QA.
In order to compute a THD score, a pure tone must be used as input signal.
Also, its frequency must be known. For this reason, this CL adds a number of
changes in the APM-QA pipeline. More in detail, input signal metadata is loaded
and passed to the THD evaluation score instance. This makes the eval_scores
module less reusable, but it is fine since the module has been specifically
designed for the APM-QA module.

BUG=webrtc:7494

Review-Url: https://codereview.webrtc.org/3010413002
Cr-Commit-Position: refs/heads/master@{#19970}
2017-09-26 12:53:19 +00:00
Per Åhgren
b3547fa5de Revert "Added logging inside AEC3 for render API buffer under/overruns"
This reverts commit 262d4ff882.

Reason for revert: The logging in this CL is spamming the logs. Therefore I'll revert and reland this once that has been fixed.


Original change's description:
> Added logging inside AEC3 for render API buffer under/overruns
> 
> Bug: webrtc:8250
> Change-Id: Ib9ce26419b8961a33869d2f24cc4248fe10039b8
> Reviewed-on: https://webrtc-review.googlesource.com/1562
> Commit-Queue: Per Åhgren <peah@webrtc.org>
> Reviewed-by: Gustaf Ullberg <gustaf@webrtc.org>
> Cr-Commit-Position: refs/heads/master@{#19856}

TBR=gustaf@webrtc.org,peah@webrtc.org

# Not skipping CQ checks because original CL landed > 1 day ago.

Bug: webrtc:8250
Change-Id: Icbbb219772ca2e3644b9fcb7fa99545b147fd675
Reviewed-on: https://webrtc-review.googlesource.com/2720
Reviewed-by: Per Åhgren <peah@webrtc.org>
Reviewed-by: Noah Richards <noahric@chromium.org>
Commit-Queue: Per Åhgren <peah@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#19932}
2017-09-23 23:10:02 +00:00
Per Åhgren
930021d465 Eliminating the risk of sustained echo during capture data loss in AEC3.
This CL adds an offset to the delay estimation used in AEC3 for 
determining the alignment between the render and capture signals.
This ensures that there is no possibility for the capture loss to 
cause the delay estimation to miss aligning the signals.

BUG=webrtc:8247, chromium:765242

Change-Id: I526dc7971b13425a28e99d69168fd3722a4cfdae
Reviewed-on: https://webrtc-review.googlesource.com/1232
Reviewed-by: Alex Loiko <aleloi@webrtc.org>
Commit-Queue: Per Åhgren <peah@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#19871}
2017-09-15 21:24:46 +00:00
Mirko Bonadei
7120742701 Adding NOLINT for typedefs.h and common_types.h
Now that we have moved WebRTC from src/webrtc to src/, common_types.h
and typedefs.h are triggering a cpplint error.

The cpplint complaint is:
Include the directory when naming .h files  [build/include] [4]

This CL disables the error but we have to remove these two headers
from the root directory.

NOPRESUBMIT=true

Bug: webrtc:5876
Change-Id: I08e1b69aadcc4b28ab83bf25e3819d135d41d333
Reviewed-on: https://webrtc-review.googlesource.com/1577
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Henrik Kjellander <kjellander@google.com>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#19859}
2017-09-15 13:03:51 +00:00
Per Åhgren
262d4ff882 Added logging inside AEC3 for render API buffer under/overruns
Bug: webrtc:8250
Change-Id: Ib9ce26419b8961a33869d2f24cc4248fe10039b8
Reviewed-on: https://webrtc-review.googlesource.com/1562
Commit-Queue: Per Åhgren <peah@webrtc.org>
Reviewed-by: Gustaf Ullberg <gustaf@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#19856}
2017-09-15 12:15:20 +00:00
Mirko Bonadei
92ea95e34a Fixing WebRTC after moving from src/webrtc to src/
In https://webrtc-review.googlesource.com/c/src/+/1560 we moved WebRTC
from src/webrtc to src/ (in order to preserve an healthy git history).
This CL takes care of fixing header guards, #include paths, etc...

NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
TBR=tommi@webrtc.org


Bug: chromium:611808
Change-Id: Iea91618212bee0af16aa3f05071eab8f93706578
Reviewed-on: https://webrtc-review.googlesource.com/1561
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Henrik Kjellander <kjellander@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#19846}
2017-09-15 05:02:56 +00:00
Mirko Bonadei
bb547203bf Moving src/webrtc into src/.
In order to eliminate the WebRTC Subtree mirror in Chromium, 
WebRTC is moving the content of the src/webrtc directory up
to the src/ directory.

NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
TBR=tommi@webrtc.org

Bug: chromium:611808
Change-Id: Iac59c5b51b950f174119565bac87955a7994bc38
Reviewed-on: https://webrtc-review.googlesource.com/1560
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Henrik Kjellander <kjellander@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#19845}
2017-09-15 04:25:06 +00:00
niklase@google.com
5adc73aad3 git-svn-id: http://webrtc.googlecode.com/svn/trunk@166 4adac7df-926f-26a2-2b94-8c16560cd09d 2011-07-07 08:46:41 +00:00
cduvivier@google.com
d0159d8eb0 aec_rdft_128: one entry point for each sign.
Review URL: http://webrtc-codereview.appspot.com/61007

git-svn-id: http://webrtc.googlecode.com/svn/trunk@153 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-07-06 23:35:37 +00:00
cduvivier@google.com
fae3b31707 Optimization/cleanup of 'aec_rfdt' initialization (constants, LUT, ...):
* 2.7% AEC overall speedup for the straight C path.
* 3.5% AEC overall speedup for the SSE2 path.
Review URL: http://webrtc-codereview.appspot.com/60001

git-svn-id: http://webrtc.googlecode.com/svn/trunk@152 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-07-06 18:32:59 +00:00
ajm@google.com
7c4469bf61 Revamp of audio_processing unit test to use protocol buffers. Chromium's protobuf version is synced to third_party. This isn't really needed for the unit test, but I'd like to use it soon for echo recordings, so I used this as a warm up.
Review URL: http://webrtc-codereview.appspot.com/56002

git-svn-id: http://webrtc.googlecode.com/svn/trunk@151 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-07-06 17:45:37 +00:00
cduvivier@google.com
9d94116697 Optimization of 'rftbsub':
* scalar optimization, vectorization.
* 0.5% AEC overall speedup for the straight C path.
* 2.8% AEC overall speedup for the SSE2 path.
Review URL: http://webrtc-codereview.appspot.com/48008

git-svn-id: http://webrtc.googlecode.com/svn/trunk@137 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-06-30 19:19:37 +00:00
leozwang@google.com
8ec2231979 Add aec_rdft.c to android build
Review URL: http://webrtc-codereview.appspot.com/58001

git-svn-id: http://webrtc.googlecode.com/svn/trunk@136 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-06-30 18:34:09 +00:00
cduvivier@google.com
20cb6b684b Optimization of 'rftfsub':
* scalar optimization, vectorization (including new file for SSE2 code
  and path selection mechanism).
* 0.5% AEC overall speedup for the straight C path.
* 3.0% AEC overall speedup for the SSE2 path.
Review URL: http://webrtc-codereview.appspot.com/46005

git-svn-id: http://webrtc.googlecode.com/svn/trunk@134 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-06-30 01:22:19 +00:00
leozwang@google.com
190d0873b0 Remove included header files on that unit_test is not dependent, correct error in last CL
Review URL: http://webrtc-codereview.appspot.com/57001

git-svn-id: http://webrtc.googlecode.com/svn/trunk@133 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-06-29 22:45:59 +00:00
leozwang@google.com
6fb5d19289 Add Android.mk for apm unit test and make it compile on android
Review URL: http://webrtc-codereview.appspot.com/54001

git-svn-id: http://webrtc.googlecode.com/svn/trunk@132 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-06-29 22:01:00 +00:00
cduvivier@google.com
181f543de4 AEC specific version of " Real Discrete Fourier Transform".
Lots of AEC CPU usage is coming from calls to 'rdft'. To optimize this,
deep changes (modification of memory layout, ...) have to be done and it
is not practical to do them in an utility library. Most of these changes
will occur in subsequent CLs.

The new file 'aec_core_rdft.c' is a copy of 'modules/audio_processing/
utility/fft4g.c' whose size has been significantly reduced by removing
all code non-necessary to compute rdft. The main entry point and utility
functions have also been modified to take into account the fact that all
'rdft' calls performed by AEC have a length of 128. This yields:
* 1.8% AEC overall speedup for the straight C path.
* 2.3% AEC overall speedup for the SSE2 path.
Review URL: http://webrtc-codereview.appspot.com/44008

git-svn-id: http://webrtc.googlecode.com/svn/trunk@126 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-06-24 18:22:47 +00:00
ajm@google.com
95fa29ec96 Creating a new directory for test data files, and moving audio_processing files there.
Review URL: http://webrtc-codereview.appspot.com/48004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@121 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-06-23 11:45:12 +00:00
ajm@google.com
909118894b Adding all necessary MapSetting and MapError functions. This doesn't alter the existing functionality but just "formalizes" the mapping layer for the underlying components.
Review URL: http://webrtc-codereview.appspot.com/44002

git-svn-id: http://webrtc.googlecode.com/svn/trunk@111 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-06-21 12:58:27 +00:00
ajm@google.com
a6f54fd726 Removing some warnings from the APM build with -Wall -Wextra. Also cleaning up the unit test a bit.
Review URL: http://webrtc-codereview.appspot.com/38002

git-svn-id: http://webrtc.googlecode.com/svn/trunk@90 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-06-16 00:04:40 +00:00
bjornv@google.com
2204835d4d Ported NS initialization to NSx
git-svn-id: http://webrtc.googlecode.com/svn/trunk@77 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-06-15 07:25:10 +00:00
bjornv@google.com
0c6284275f Updated the floating point version with bugs found when porting to fixed-point.
git-svn-id: http://webrtc.googlecode.com/svn/trunk@76 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-06-15 07:24:40 +00:00
cduvivier@google.com
5af7a804ea Optimization of "overdrive and suppress":
* float accuracy pow function, vectorized pow approximation, general
  vectorization.
* 10.2% AEC overall speedup for the straight C path.
* 16.1% AEC overall speedup for the SSE2 path.
Review URL: http://webrtc-codereview.appspot.com/24016

git-svn-id: http://webrtc.googlecode.com/svn/trunk@72 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-06-13 18:56:48 +00:00
ajm@google.com
0333cf6c57 Adding Bjorn to overall audio_processing OWNERS file (thereby allowing the deletion of all the sub-folder files).
Review URL: http://webrtc-codereview.appspot.com/24015

git-svn-id: http://webrtc.googlecode.com/svn/trunk@70 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-06-13 16:45:50 +00:00
bjornv@google.com
96cbe6b283 Shortened the audio files used in unit test to speed it up.
git-svn-id: http://webrtc.googlecode.com/svn/trunk@68 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-06-13 13:12:05 +00:00
leozwang@google.com
0b0c28c495 add android makefile, some modification in vpx makefile to build encoder from c source for now
Review URL: http://webrtc-codereview.appspot.com/29012

git-svn-id: http://webrtc.googlecode.com/svn/trunk@50 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-06-07 17:24:39 +00:00
cduvivier@google.com
a4f6303c5d Vectorization of "FilterAdaptation":
* 1.0% AEC overall speedup for straight C path.
* 6.2% AEC overall speedup for SSE2 path.
* fix warnings, make code compile with "-std=gnu89
-Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes
-Wmissing-declarations -Wdeclaration-after-statement -Wextra -Wall
-Werror"
Review URL: http://webrtc-codereview.appspot.com/24012

git-svn-id: http://webrtc.googlecode.com/svn/trunk@38 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-06-02 23:50:06 +00:00
cduvivier@google.com
936b36dbf6 Partial vectorization of "ProcessBlock":
* new file for SSE2 code, code selection through function pointers.
* structure change for array of complex numbers.
* 3.8% AEC overall speedup for straight C path.
* 8.8% AEC overall speedup for SSE2 path.
Review URL: http://webrtc-codereview.appspot.com/34002

git-svn-id: http://webrtc.googlecode.com/svn/trunk@36 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-06-02 01:38:10 +00:00
niklase@google.com
9ed826feea Review URL: http://webrtc-codereview.appspot.com/29009
git-svn-id: http://webrtc.googlecode.com/svn/trunk@27 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-06-01 07:29:32 +00:00
cduvivier@google.com
d357f2ca3b Partial vectorization of "ProcessBlock":
* new file for SSE2 code, code selection through function pointers.
* structure change for array of complex numbers.
* 3.8% AEC overall speedup for straight C path.
* 8.8% AEC overall speedup for SSE2 path.
Review URL: http://webrtc-codereview.appspot.com/33003

git-svn-id: http://webrtc.googlecode.com/svn/trunk@26 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-06-01 01:20:06 +00:00
ajm@google.com
26184fc2c2 Removing a legacy Makefile.
git-svn-id: http://webrtc.googlecode.com/svn/trunk@23 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-05-31 22:47:56 +00:00
ajm@google.com
59886757cf Replacing kTraceVqe with kTraceAudioProcessing.
Review URL: http://webrtc-codereview.appspot.com/28014

git-svn-id: http://webrtc.googlecode.com/svn/trunk@21 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-05-31 22:15:52 +00:00
niklase@google.com
77ae29bc81 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4 4adac7df-926f-26a2-2b94-8c16560cd09d 2011-05-30 11:22:19 +00:00