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

Side by Side Diff: video/video_quality_test.h

Issue 3016593002: Revert of Add full stack tests for MediaCodec. (Closed)
Patch Set: Created 3 years, 2 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 | « video/video_loopback.cc ('k') | 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 VIDEO_VIDEO_QUALITY_TEST_H_ 10 #ifndef VIDEO_VIDEO_QUALITY_TEST_H_
11 #define VIDEO_VIDEO_QUALITY_TEST_H_ 11 #define 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 "media/engine/simulcast_encoder_adapter.h" 18 #include "media/engine/simulcast_encoder_adapter.h"
19 #include "media/engine/webrtcvideoencoderfactory.h"
20 #include "test/call_test.h" 19 #include "test/call_test.h"
21 #include "test/frame_generator.h" 20 #include "test/frame_generator.h"
22 #include "test/testsupport/trace_to_stderr.h" 21 #include "test/testsupport/trace_to_stderr.h"
23 22
24 namespace webrtc { 23 namespace webrtc {
25 24
26 class VideoQualityTest : public test::CallTest { 25 class VideoQualityTest : public test::CallTest {
27 public: 26 public:
28 // 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
29 // the desired elements and skip unused, using aggregate initialization. 28 // the desired elements and skip unused, using aggregate initialization.
(...skipping 10 matching lines...) Expand all
40 struct Video { 39 struct Video {
41 bool enabled; 40 bool enabled;
42 size_t width; 41 size_t width;
43 size_t height; 42 size_t height;
44 int32_t fps; 43 int32_t fps;
45 int min_bitrate_bps; 44 int min_bitrate_bps;
46 int target_bitrate_bps; 45 int target_bitrate_bps;
47 int max_bitrate_bps; 46 int max_bitrate_bps;
48 bool suspend_below_min_bitrate; 47 bool suspend_below_min_bitrate;
49 std::string codec; 48 std::string codec;
50 bool hw_encoder;
51 bool sw_fallback_encoder;
52 int num_temporal_layers; 49 int num_temporal_layers;
53 int selected_tl; 50 int selected_tl;
54 int min_transmit_bps; 51 int min_transmit_bps;
55 bool ulpfec; 52 bool ulpfec;
56 bool flexfec; 53 bool flexfec;
57 std::string clip_name; // "Generator" to generate frames instead. 54 std::string clip_name; // "Generator" to generate frames instead.
58 size_t capture_device_index; 55 size_t capture_device_index;
59 } video; 56 } video;
60 struct Audio { 57 struct Audio {
61 bool enabled; 58 bool enabled;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 AudioReceiveStream** audio_receive_stream); 135 AudioReceiveStream** audio_receive_stream);
139 136
140 void StartEncodedFrameLogs(VideoSendStream* stream); 137 void StartEncodedFrameLogs(VideoSendStream* stream);
141 void StartEncodedFrameLogs(VideoReceiveStream* stream); 138 void StartEncodedFrameLogs(VideoReceiveStream* stream);
142 139
143 // We need a more general capturer than the FrameGeneratorCapturer. 140 // We need a more general capturer than the FrameGeneratorCapturer.
144 std::unique_ptr<test::VideoCapturer> video_capturer_; 141 std::unique_ptr<test::VideoCapturer> video_capturer_;
145 std::vector<std::unique_ptr<test::VideoCapturer>> thumbnail_capturers_; 142 std::vector<std::unique_ptr<test::VideoCapturer>> thumbnail_capturers_;
146 std::unique_ptr<test::TraceToStderr> trace_to_stderr_; 143 std::unique_ptr<test::TraceToStderr> trace_to_stderr_;
147 std::unique_ptr<test::FrameGenerator> frame_generator_; 144 std::unique_ptr<test::FrameGenerator> frame_generator_;
148 std::unique_ptr<cricket::WebRtcVideoEncoderFactory> video_encoder_factory_;
149 std::unique_ptr<VideoEncoder> video_encoder_; 145 std::unique_ptr<VideoEncoder> video_encoder_;
146 std::unique_ptr<cricket::WebRtcVideoEncoderFactory> vp8_encoder_factory_;
150 147
151 std::vector<std::unique_ptr<VideoEncoder>> thumbnail_encoders_; 148 std::vector<std::unique_ptr<VideoEncoder>> thumbnail_encoders_;
152 std::vector<VideoSendStream::Config> thumbnail_send_configs_; 149 std::vector<VideoSendStream::Config> thumbnail_send_configs_;
153 std::vector<VideoEncoderConfig> thumbnail_encoder_configs_; 150 std::vector<VideoEncoderConfig> thumbnail_encoder_configs_;
154 std::vector<VideoSendStream*> thumbnail_send_streams_; 151 std::vector<VideoSendStream*> thumbnail_send_streams_;
155 std::vector<VideoReceiveStream::Config> thumbnail_receive_configs_; 152 std::vector<VideoReceiveStream::Config> thumbnail_receive_configs_;
156 std::vector<VideoReceiveStream*> thumbnail_receive_streams_; 153 std::vector<VideoReceiveStream*> thumbnail_receive_streams_;
157 154
158 Clock* const clock_; 155 Clock* const clock_;
159 156
160 int receive_logs_; 157 int receive_logs_;
161 int send_logs_; 158 int send_logs_;
162 159
163 VideoSendStream::DegradationPreference degradation_preference_ = 160 VideoSendStream::DegradationPreference degradation_preference_ =
164 VideoSendStream::DegradationPreference::kMaintainFramerate; 161 VideoSendStream::DegradationPreference::kMaintainFramerate;
165 Params params_; 162 Params params_;
166 }; 163 };
167 164
168 } // namespace webrtc 165 } // namespace webrtc
169 166
170 #endif // VIDEO_VIDEO_QUALITY_TEST_H_ 167 #endif // VIDEO_VIDEO_QUALITY_TEST_H_
OLDNEW
« no previous file with comments | « video/video_loopback.cc ('k') | video/video_quality_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698