Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Side by Side Diff: webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.cc

Issue 3005993002: Delete video_quality_measurement. (Closed)
Patch Set: Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 config->codec_settings.VP9()->automaticResizeOn = spatial_resize_on; 130 config->codec_settings.VP9()->automaticResizeOn = spatial_resize_on;
131 break; 131 break;
132 case kVideoCodecH264: 132 case kVideoCodecH264:
133 config->codec_settings.H264()->frameDroppingOn = frame_dropper_on; 133 config->codec_settings.H264()->frameDroppingOn = frame_dropper_on;
134 config->codec_settings.H264()->keyFrameInterval = kBaseKeyFrameInterval; 134 config->codec_settings.H264()->keyFrameInterval = kBaseKeyFrameInterval;
135 break; 135 break;
136 default: 136 default:
137 RTC_NOTREACHED(); 137 RTC_NOTREACHED();
138 break; 138 break;
139 } 139 }
140
141 config->frame_length_in_bytes =
142 CalcBufferSize(VideoType::kI420, width, height);
143 } 140 }
144 141
145 void VideoProcessorIntegrationTest::SetRateProfile( 142 void VideoProcessorIntegrationTest::SetRateProfile(
146 RateProfile* rate_profile, 143 RateProfile* rate_profile,
147 int rate_update_index, 144 int rate_update_index,
148 int bitrate_kbps, 145 int bitrate_kbps,
149 int framerate_fps, 146 int framerate_fps,
150 int frame_index_rate_update) { 147 int frame_index_rate_update) {
151 rate_profile->target_bit_rate[rate_update_index] = bitrate_kbps; 148 rate_profile->target_bit_rate[rate_update_index] = bitrate_kbps;
152 rate_profile->input_frame_rate[rate_update_index] = framerate_fps; 149 rate_profile->input_frame_rate[rate_update_index] = framerate_fps;
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 perc_encoding_rate_mismatch_ = 0.0f; 638 perc_encoding_rate_mismatch_ = 0.0f;
642 num_frames_to_hit_target_ = 639 num_frames_to_hit_target_ =
643 rate_profile.frame_index_rate_update[rate_update_index + 1]; 640 rate_profile.frame_index_rate_update[rate_update_index + 1];
644 encoding_rate_within_target_ = false; 641 encoding_rate_within_target_ = false;
645 sum_key_frame_size_mismatch_ = 0.0; 642 sum_key_frame_size_mismatch_ = 0.0;
646 num_key_frames_ = 0; 643 num_key_frames_ = 0;
647 } 644 }
648 645
649 } // namespace test 646 } // namespace test
650 } // namespace webrtc 647 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698