Let Opus increase complexity for low bitrates

This change adds code that lets Opus increase the complexity setting
at low bitrates (only relevant for mobile where the default complexity
is not already maximum). The feature is default off.

Also adding a performance test to make sure the complexity adaptation
has desired effect.

BUG=webrtc:6708

Review-Url: https://codereview.webrtc.org/2503443002
Cr-Commit-Position: refs/heads/master@{#15182}
This commit is contained in:
henrik.lundin
2016-11-22 02:07:54 -08:00
committed by Commit bot
parent b1e6d5efa6
commit 875862ca86
6 changed files with 150 additions and 2 deletions

View File

@ -711,10 +711,17 @@ rtc_static_library("webrtc_opus") {
"../../base:rtc_base_approved",
]
defines = []
if (rtc_build_opus) {
public_deps = [
rtc_opus_dir,
]
if (rtc_opus_variable_complexity) {
defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=1" ]
} else {
defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=0" ]
}
} else if (build_with_mozilla) {
include_dirs = [ getenv("DIST") + "/include/opus" ]
}