Remove H264 CHP field trial code.

Bug: webrtc:8317
Change-Id: I2da3cc6578dd8ff6e88052bc33cd38cb92af46dc
Reviewed-on: https://webrtc-review.googlesource.com/73242
Reviewed-by: Magnus Jedvert <magjed@webrtc.org>
Reviewed-by: Rasmus Brandt <brandtr@webrtc.org>
Commit-Queue: Kári Helgason <kthelgason@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23077}
This commit is contained in:
Kári Tristan Helgason 2018-05-02 10:29:12 +02:00 committed by Commit Bot
parent 5613879b7b
commit cad94449dd
7 changed files with 10 additions and 39 deletions

View file

@ -105,8 +105,6 @@ public class PeerConnectionClient {
private static final String VIDEO_FLEXFEC_FIELDTRIAL = private static final String VIDEO_FLEXFEC_FIELDTRIAL =
"WebRTC-FlexFEC-03-Advertised/Enabled/WebRTC-FlexFEC-03/Enabled/"; "WebRTC-FlexFEC-03-Advertised/Enabled/WebRTC-FlexFEC-03/Enabled/";
private static final String VIDEO_VP8_INTEL_HW_ENCODER_FIELDTRIAL = "WebRTC-IntelVP8/Enabled/"; private static final String VIDEO_VP8_INTEL_HW_ENCODER_FIELDTRIAL = "WebRTC-IntelVP8/Enabled/";
private static final String VIDEO_H264_HIGH_PROFILE_FIELDTRIAL =
"WebRTC-H264HighProfile/Enabled/";
private static final String DISABLE_WEBRTC_AGC_FIELDTRIAL = private static final String DISABLE_WEBRTC_AGC_FIELDTRIAL =
"WebRTC-Audio-MinimizeResamplingOnMobile/Enabled/"; "WebRTC-Audio-MinimizeResamplingOnMobile/Enabled/";
private static final String AUDIO_CODEC_PARAM_BITRATE = "maxaveragebitrate"; private static final String AUDIO_CODEC_PARAM_BITRATE = "maxaveragebitrate";
@ -1043,10 +1041,6 @@ public class PeerConnectionClient {
fieldTrials += DISABLE_WEBRTC_AGC_FIELDTRIAL; fieldTrials += DISABLE_WEBRTC_AGC_FIELDTRIAL;
Log.d(TAG, "Disable WebRTC AGC field trial."); Log.d(TAG, "Disable WebRTC AGC field trial.");
} }
if (VIDEO_CODEC_H264_HIGH.equals(peerConnectionParameters.videoCodec)) {
// TODO(magjed): Strip High from SDP when selecting Baseline instead of using field trial.
fieldTrials += VIDEO_H264_HIGH_PROFILE_FIELDTRIAL;
}
return fieldTrials; return fieldTrials;
} }

View file

@ -25,9 +25,7 @@
- (BOOL)application:(UIApplication *)application - (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
NSDictionary *fieldTrials = @{ NSDictionary *fieldTrials = @{};
kRTCFieldTrialH264HighProfileKey: kRTCFieldTrialEnabledValue,
};
RTCInitFieldTrialDictionary(fieldTrials); RTCInitFieldTrialDictionary(fieldTrials);
RTCInitializeSSL(); RTCInitializeSSL();
RTCSetupInternalTracer(); RTCSetupInternalTracer();

View file

@ -716,7 +716,6 @@ if (rtc_include_tests) {
"../../rtc_base:rtc_base", "../../rtc_base:rtc_base",
"../../rtc_base:rtc_base_tests_utils", "../../rtc_base:rtc_base_tests_utils",
"../../system_wrappers", "../../system_wrappers",
"../../test:field_trial",
"../../test:fileutils", "../../test:fileutils",
"../../test:test_support", "../../test:test_support",
"../../test:video_test_common", "../../test:video_test_common",

View file

@ -16,7 +16,6 @@
#include "common_types.h" // NOLINT(build/include) #include "common_types.h" // NOLINT(build/include)
#include "media/base/mediaconstants.h" #include "media/base/mediaconstants.h"
#include "test/field_trial.h"
#include "test/testsupport/fileutils.h" #include "test/testsupport/fileutils.h"
namespace webrtc { namespace webrtc {
@ -82,8 +81,6 @@ TEST_F(VideoProcessorIntegrationTestMediaCodec, ForemanCif500kbpsH264CBP) {
// HW encoders that support CHP. // HW encoders that support CHP.
TEST_F(VideoProcessorIntegrationTestMediaCodec, TEST_F(VideoProcessorIntegrationTestMediaCodec,
DISABLED_ForemanCif500kbpsH264CHP) { DISABLED_ForemanCif500kbpsH264CHP) {
ScopedFieldTrials override_field_trials("WebRTC-H264HighProfile/Enabled/");
config_.h264_codec_settings.profile = H264::kProfileConstrainedHigh; config_.h264_codec_settings.profile = H264::kProfileConstrainedHigh;
config_.encoded_frame_checker = &h264_keyframe_checker_; config_.encoded_frame_checker = &h264_keyframe_checker_;
config_.SetCodecSettings(cricket::kH264CodecName, 1, 1, 1, false, false, config_.SetCodecSettings(cricket::kH264CodecName, 1, 1, 1, false, false,

View file

@ -14,7 +14,6 @@
#include "media/base/mediaconstants.h" #include "media/base/mediaconstants.h"
#include "modules/video_coding/codecs/test/objc_codec_factory_helper.h" #include "modules/video_coding/codecs/test/objc_codec_factory_helper.h"
#include "test/field_trial.h"
#include "test/testsupport/fileutils.h" #include "test/testsupport/fileutils.h"
namespace webrtc { namespace webrtc {
@ -82,8 +81,6 @@ MAYBE_TEST_F(VideoProcessorIntegrationTestVideoToolbox,
MAYBE_TEST_F(VideoProcessorIntegrationTestVideoToolbox, MAYBE_TEST_F(VideoProcessorIntegrationTestVideoToolbox,
ForemanCif500kbpsH264CHP) { ForemanCif500kbpsH264CHP) {
ScopedFieldTrials override_field_trials("WebRTC-H264HighProfile/Enabled/");
config_.h264_codec_settings.profile = H264::kProfileConstrainedHigh; config_.h264_codec_settings.profile = H264::kProfileConstrainedHigh;
config_.SetCodecSettings(cricket::kH264CodecName, 1, 1, 1, false, false, config_.SetCodecSettings(cricket::kH264CodecName, 1, 1, 1, false, false,
false, 352, 288); false, 352, 288);

View file

@ -81,7 +81,6 @@ namespace {
// Maximum time limit between incoming frames before requesting a key frame. // Maximum time limit between incoming frames before requesting a key frame.
const size_t kFrameDiffThresholdMs = 350; const size_t kFrameDiffThresholdMs = 350;
const int kMinKeyFrameInterval = 6; const int kMinKeyFrameInterval = 6;
const char kH264HighProfileFieldTrial[] = "WebRTC-H264HighProfile";
const char kCustomQPThresholdsFieldTrial[] = "WebRTC-CustomQPThresholds"; const char kCustomQPThresholdsFieldTrial[] = "WebRTC-CustomQPThresholds";
} // namespace } // namespace
@ -1318,11 +1317,7 @@ VideoEncoder* MediaCodecVideoEncoderFactory::CreateVideoEncoder(
const std::vector<cricket::VideoCodec>& const std::vector<cricket::VideoCodec>&
MediaCodecVideoEncoderFactory::supported_codecs() const { MediaCodecVideoEncoderFactory::supported_codecs() const {
if (field_trial::IsEnabled(kH264HighProfileFieldTrial)) { return supported_codecs_with_h264_hp_;
return supported_codecs_with_h264_hp_;
} else {
return supported_codecs_;
}
} }
void MediaCodecVideoEncoderFactory::DestroyVideoEncoder(VideoEncoder* encoder) { void MediaCodecVideoEncoderFactory::DestroyVideoEncoder(VideoEncoder* encoder) {

View file

@ -16,13 +16,6 @@
#import "WebRTC/RTCVideoCodec.h" #import "WebRTC/RTCVideoCodec.h"
#include "rtc_base/timeutils.h" #include "rtc_base/timeutils.h"
#include "system_wrappers/include/field_trial.h"
const char kHighProfileExperiment[] = "WebRTC-H264HighProfile";
bool IsHighProfileEnabled() {
return webrtc::field_trial::IsEnabled(kHighProfileExperiment);
}
// H264 specific settings. // H264 specific settings.
@implementation RTCCodecSpecificInfoH264 @implementation RTCCodecSpecificInfoH264
@ -48,16 +41,14 @@ bool IsHighProfileEnabled() {
NSMutableArray<RTCVideoCodecInfo *> *codecs = [NSMutableArray array]; NSMutableArray<RTCVideoCodecInfo *> *codecs = [NSMutableArray array];
NSString *codecName = kRTCVideoCodecH264Name; NSString *codecName = kRTCVideoCodecH264Name;
if (IsHighProfileEnabled()) { NSDictionary<NSString *, NSString *> *constrainedHighParams = @{
NSDictionary<NSString *, NSString *> *constrainedHighParams = @{ @"profile-level-id" : kRTCMaxSupportedH264ProfileLevelConstrainedHigh,
@"profile-level-id" : kRTCMaxSupportedH264ProfileLevelConstrainedHigh, @"level-asymmetry-allowed" : @"1",
@"level-asymmetry-allowed" : @"1", @"packetization-mode" : @"1",
@"packetization-mode" : @"1", };
}; RTCVideoCodecInfo *constrainedHighInfo =
RTCVideoCodecInfo *constrainedHighInfo = [[RTCVideoCodecInfo alloc] initWithName:codecName parameters:constrainedHighParams];
[[RTCVideoCodecInfo alloc] initWithName:codecName parameters:constrainedHighParams]; [codecs addObject:constrainedHighInfo];
[codecs addObject:constrainedHighInfo];
}
NSDictionary<NSString *, NSString *> *constrainedBaselineParams = @{ NSDictionary<NSString *, NSString *> *constrainedBaselineParams = @{
@"profile-level-id" : kRTCMaxSupportedH264ProfileLevelConstrainedBaseline, @"profile-level-id" : kRTCMaxSupportedH264ProfileLevelConstrainedBaseline,