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

Side by Side Diff: webrtc/video/video_quality_test.h

Issue 2964953002: Remove webrtc::VideoEncoderFactory (Closed)
Patch Set: Add dep to base:sequenced_task_checker Created 3 years, 5 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
« no previous file with comments | « webrtc/video/picture_id_tests.cc ('k') | webrtc/video/video_quality_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 #ifndef WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ 10 #ifndef WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_
11 #define WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ 11 #define WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_
12 12
13 #include <map> 13 #include <map>
14 #include <memory> 14 #include <memory>
15 #include <string> 15 #include <string>
16 #include <vector> 16 #include <vector>
17 17
18 #include "webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.h" 18 #include "webrtc/media/engine/simulcast_encoder_adapter.h"
19 #include "webrtc/test/call_test.h" 19 #include "webrtc/test/call_test.h"
20 #include "webrtc/test/frame_generator.h" 20 #include "webrtc/test/frame_generator.h"
21 #include "webrtc/test/testsupport/trace_to_stderr.h" 21 #include "webrtc/test/testsupport/trace_to_stderr.h"
22 22
23 namespace webrtc { 23 namespace webrtc {
24 24
25 class VideoQualityTest : public test::CallTest { 25 class VideoQualityTest : public test::CallTest {
26 public: 26 public:
27 // Parameters are grouped into smaller structs to make it easier to set 27 // Parameters are grouped into smaller structs to make it easier to set
28 // the desired elements and skip unused, using aggregate initialization. 28 // the desired elements and skip unused, using aggregate initialization.
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 void StartEncodedFrameLogs(VideoSendStream* stream); 132 void StartEncodedFrameLogs(VideoSendStream* stream);
133 void StartEncodedFrameLogs(VideoReceiveStream* stream); 133 void StartEncodedFrameLogs(VideoReceiveStream* stream);
134 134
135 // We need a more general capturer than the FrameGeneratorCapturer. 135 // We need a more general capturer than the FrameGeneratorCapturer.
136 std::unique_ptr<test::VideoCapturer> video_capturer_; 136 std::unique_ptr<test::VideoCapturer> video_capturer_;
137 std::vector<std::unique_ptr<test::VideoCapturer>> thumbnail_capturers_; 137 std::vector<std::unique_ptr<test::VideoCapturer>> thumbnail_capturers_;
138 std::unique_ptr<test::TraceToStderr> trace_to_stderr_; 138 std::unique_ptr<test::TraceToStderr> trace_to_stderr_;
139 std::unique_ptr<test::FrameGenerator> frame_generator_; 139 std::unique_ptr<test::FrameGenerator> frame_generator_;
140 std::unique_ptr<VideoEncoder> video_encoder_; 140 std::unique_ptr<VideoEncoder> video_encoder_;
141 std::unique_ptr<VideoEncoderFactory> vp8_encoder_factory_; 141 std::unique_ptr<cricket::WebRtcVideoEncoderFactory> vp8_encoder_factory_;
142 142
143 std::vector<std::unique_ptr<VideoEncoder>> thumbnail_encoders_; 143 std::vector<std::unique_ptr<VideoEncoder>> thumbnail_encoders_;
144 std::vector<VideoSendStream::Config> thumbnail_send_configs_; 144 std::vector<VideoSendStream::Config> thumbnail_send_configs_;
145 std::vector<VideoEncoderConfig> thumbnail_encoder_configs_; 145 std::vector<VideoEncoderConfig> thumbnail_encoder_configs_;
146 std::vector<VideoSendStream*> thumbnail_send_streams_; 146 std::vector<VideoSendStream*> thumbnail_send_streams_;
147 std::vector<VideoReceiveStream::Config> thumbnail_receive_configs_; 147 std::vector<VideoReceiveStream::Config> thumbnail_receive_configs_;
148 std::vector<VideoReceiveStream*> thumbnail_receive_streams_; 148 std::vector<VideoReceiveStream*> thumbnail_receive_streams_;
149 149
150 Clock* const clock_; 150 Clock* const clock_;
151 151
152 int receive_logs_; 152 int receive_logs_;
153 int send_logs_; 153 int send_logs_;
154 154
155 VideoSendStream::DegradationPreference degradation_preference_ = 155 VideoSendStream::DegradationPreference degradation_preference_ =
156 VideoSendStream::DegradationPreference::kMaintainFramerate; 156 VideoSendStream::DegradationPreference::kMaintainFramerate;
157 Params params_; 157 Params params_;
158 }; 158 };
159 159
160 } // namespace webrtc 160 } // namespace webrtc
161 161
162 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ 162 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_
OLDNEW
« no previous file with comments | « webrtc/video/picture_id_tests.cc ('k') | webrtc/video/video_quality_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698