tkchin | 4f735d1 | 2016-03-03 17:54:28 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016 The WebRTC Project Authors. All rights reserved. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license |
| 5 | * that can be found in the LICENSE file in the root of the source |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
Jon Hjelle | 3a2f7e0 | 2016-03-25 14:48:14 -0700 | [diff] [blame] | 11 | #import <Foundation/Foundation.h> |
| 12 | |
tkchin | 9eeb624 | 2016-04-27 01:54:20 -0700 | [diff] [blame] | 13 | #import <WebRTC/RTCMacros.h> |
tkchin | 8b577ed | 2016-04-19 10:04:41 -0700 | [diff] [blame] | 14 | |
tkchin | 4cd6221 | 2016-12-15 13:17:54 -0800 | [diff] [blame] | 15 | /** The only valid value for the following if set is kRTCFieldTrialEnabledValue. */ |
| 16 | RTC_EXTERN NSString * const kRTCFieldTrialAudioSendSideBweKey; |
Alex Narest | 3ab1d26 | 2018-03-15 13:49:33 +0100 | [diff] [blame] | 17 | RTC_EXTERN NSString * const kRTCFieldTrialAudioSendSideBweForVideoKey; |
Alex Narest | 789221f | 2018-06-13 13:29:21 +0200 | [diff] [blame] | 18 | RTC_EXTERN NSString * const kRTCFieldTrialAudioForceNoTWCCKey; |
Alex Narest | 0bd7bf0 | 2018-06-27 12:35:52 +0200 | [diff] [blame] | 19 | RTC_EXTERN NSString * const kRTCFieldTrialAudioForceABWENoTWCCKey; |
haysc | 148e370 | 2017-01-25 10:02:20 -0800 | [diff] [blame] | 20 | RTC_EXTERN NSString * const kRTCFieldTrialSendSideBweWithOverheadKey; |
brandtr | 340e3fd | 2017-02-28 15:43:10 -0800 | [diff] [blame] | 21 | RTC_EXTERN NSString * const kRTCFieldTrialFlexFec03AdvertisedKey; |
tkchin | 4cd6221 | 2016-12-15 13:17:54 -0800 | [diff] [blame] | 22 | RTC_EXTERN NSString * const kRTCFieldTrialFlexFec03Key; |
lliuu | 029f7cc | 2017-03-31 14:17:42 -0700 | [diff] [blame] | 23 | RTC_EXTERN NSString * const kRTCFieldTrialImprovedBitrateEstimateKey; |
magjed | b4ad603 | 2016-12-17 23:50:17 -0800 | [diff] [blame] | 24 | RTC_EXTERN NSString * const kRTCFieldTrialH264HighProfileKey; |
peah | 8a8ebd9 | 2017-05-22 15:48:47 -0700 | [diff] [blame] | 25 | RTC_EXTERN NSString * const kRTCFieldTrialMinimizeResamplingOnMobileKey; |
tkchin | 4f735d1 | 2016-03-03 17:54:28 -0800 | [diff] [blame] | 26 | |
tkchin | 4cd6221 | 2016-12-15 13:17:54 -0800 | [diff] [blame] | 27 | /** The valid value for field trials above. */ |
| 28 | RTC_EXTERN NSString * const kRTCFieldTrialEnabledValue; |
| 29 | |
lliuu | 029f7cc | 2017-03-31 14:17:42 -0700 | [diff] [blame] | 30 | /** Use a string returned by RTCFieldTrialMedianSlopeFilterValue as the value. */ |
| 31 | RTC_EXTERN NSString * const kRTCFieldTrialMedianSlopeFilterKey; |
| 32 | RTC_EXTERN NSString *RTCFieldTrialMedianSlopeFilterValue( |
| 33 | size_t windowSize, double thresholdGain); |
| 34 | |
| 35 | /** Use a string returned by RTCFieldTrialTrendlineFilterValue as the value. */ |
| 36 | RTC_EXTERN NSString * const kRTCFieldTrialTrendlineFilterKey; |
| 37 | /** Returns a valid value for kRTCFieldTrialTrendlineFilterKey. */ |
| 38 | RTC_EXTERN NSString *RTCFieldTrialTrendlineFilterValue( |
| 39 | size_t windowSize, double smoothingCoeff, double thresholdGain); |
| 40 | |
tkchin | 4cd6221 | 2016-12-15 13:17:54 -0800 | [diff] [blame] | 41 | /** Initialize field trials using a dictionary mapping field trial keys to their values. See above |
| 42 | * for valid keys and values. |
| 43 | * Must be called before any other call into WebRTC. See: |
tkchin | 4f735d1 | 2016-03-03 17:54:28 -0800 | [diff] [blame] | 44 | * webrtc/system_wrappers/include/field_trial_default.h |
| 45 | */ |
tkchin | 4cd6221 | 2016-12-15 13:17:54 -0800 | [diff] [blame] | 46 | RTC_EXTERN void RTCInitFieldTrialDictionary(NSDictionary<NSString *, NSString *> *fieldTrials); |