2016-03-03 17:54:28 -08:00
|
|
|
/*
|
|
|
|
|
* Copyright 2016 The WebRTC Project Authors. All rights reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2016-03-25 14:48:14 -07:00
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
2016-04-27 01:54:20 -07:00
|
|
|
#import <WebRTC/RTCMacros.h>
|
2016-04-19 10:04:41 -07:00
|
|
|
|
2016-12-15 13:17:54 -08:00
|
|
|
/** The only valid value for the following if set is kRTCFieldTrialEnabledValue. */
|
|
|
|
|
RTC_EXTERN NSString * const kRTCFieldTrialAudioSendSideBweKey;
|
2018-03-15 13:49:33 +01:00
|
|
|
RTC_EXTERN NSString * const kRTCFieldTrialAudioSendSideBweForVideoKey;
|
2018-06-13 13:29:21 +02:00
|
|
|
RTC_EXTERN NSString * const kRTCFieldTrialAudioForceNoTWCCKey;
|
2018-06-27 12:35:52 +02:00
|
|
|
RTC_EXTERN NSString * const kRTCFieldTrialAudioForceABWENoTWCCKey;
|
2017-01-25 10:02:20 -08:00
|
|
|
RTC_EXTERN NSString * const kRTCFieldTrialSendSideBweWithOverheadKey;
|
2017-02-28 15:43:10 -08:00
|
|
|
RTC_EXTERN NSString * const kRTCFieldTrialFlexFec03AdvertisedKey;
|
2016-12-15 13:17:54 -08:00
|
|
|
RTC_EXTERN NSString * const kRTCFieldTrialFlexFec03Key;
|
2017-03-31 14:17:42 -07:00
|
|
|
RTC_EXTERN NSString * const kRTCFieldTrialImprovedBitrateEstimateKey;
|
2016-12-17 23:50:17 -08:00
|
|
|
RTC_EXTERN NSString * const kRTCFieldTrialH264HighProfileKey;
|
2017-05-22 15:48:47 -07:00
|
|
|
RTC_EXTERN NSString * const kRTCFieldTrialMinimizeResamplingOnMobileKey;
|
2016-03-03 17:54:28 -08:00
|
|
|
|
2016-12-15 13:17:54 -08:00
|
|
|
/** The valid value for field trials above. */
|
|
|
|
|
RTC_EXTERN NSString * const kRTCFieldTrialEnabledValue;
|
|
|
|
|
|
2017-03-31 14:17:42 -07:00
|
|
|
/** Use a string returned by RTCFieldTrialMedianSlopeFilterValue as the value. */
|
|
|
|
|
RTC_EXTERN NSString * const kRTCFieldTrialMedianSlopeFilterKey;
|
|
|
|
|
RTC_EXTERN NSString *RTCFieldTrialMedianSlopeFilterValue(
|
|
|
|
|
size_t windowSize, double thresholdGain);
|
|
|
|
|
|
|
|
|
|
/** Use a string returned by RTCFieldTrialTrendlineFilterValue as the value. */
|
|
|
|
|
RTC_EXTERN NSString * const kRTCFieldTrialTrendlineFilterKey;
|
|
|
|
|
/** Returns a valid value for kRTCFieldTrialTrendlineFilterKey. */
|
|
|
|
|
RTC_EXTERN NSString *RTCFieldTrialTrendlineFilterValue(
|
|
|
|
|
size_t windowSize, double smoothingCoeff, double thresholdGain);
|
|
|
|
|
|
2016-12-15 13:17:54 -08:00
|
|
|
/** Initialize field trials using a dictionary mapping field trial keys to their values. See above
|
|
|
|
|
* for valid keys and values.
|
|
|
|
|
* Must be called before any other call into WebRTC. See:
|
2016-03-03 17:54:28 -08:00
|
|
|
* webrtc/system_wrappers/include/field_trial_default.h
|
|
|
|
|
*/
|
2016-12-15 13:17:54 -08:00
|
|
|
RTC_EXTERN void RTCInitFieldTrialDictionary(NSDictionary<NSString *, NSString *> *fieldTrials);
|