iOS: Add trendline filter to field trials.
NOTRY=True BUG=webrtc:6902 Review-Url: https://codereview.webrtc.org/2583643002 Cr-Commit-Position: refs/heads/master@{#15643}
This commit is contained in:
@ -12,14 +12,23 @@
|
||||
|
||||
#import <WebRTC/RTCMacros.h>
|
||||
|
||||
typedef NS_OPTIONS(NSUInteger, RTCFieldTrialOptions) {
|
||||
RTCFieldTrialOptionsNone = 0,
|
||||
RTCFieldTrialOptionsImprovedBitrateEstimate = 1 << 0,
|
||||
RTCFieldTrialOptionsAudioSendSideBwe = 1 << 1,
|
||||
RTCFieldTrialOptionsFlexFec03 = 1 << 2,
|
||||
};
|
||||
/** The only valid value for the following if set is kRTCFieldTrialEnabledValue. */
|
||||
RTC_EXTERN NSString * const kRTCFieldTrialAudioSendSideBweKey;
|
||||
RTC_EXTERN NSString * const kRTCFieldTrialFlexFec03Key;
|
||||
RTC_EXTERN NSString * const kRTCFieldTrialImprovedBitrateEstimateKey;
|
||||
|
||||
/** Must be called before any other call into WebRTC. See:
|
||||
/** The valid value for field trials above. */
|
||||
RTC_EXTERN NSString * const kRTCFieldTrialEnabledValue;
|
||||
|
||||
/** 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);
|
||||
|
||||
/** 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:
|
||||
* webrtc/system_wrappers/include/field_trial_default.h
|
||||
*/
|
||||
RTC_EXTERN void RTCInitFieldTrials(RTCFieldTrialOptions options);
|
||||
RTC_EXTERN void RTCInitFieldTrialDictionary(NSDictionary<NSString *, NSString *> *fieldTrials);
|
||||
|
||||
Reference in New Issue
Block a user