OLD | NEW |
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 | 10 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 int num_encoder_reconfigurations() const { | 131 int num_encoder_reconfigurations() const { |
132 return num_encoder_reconfigurations_; | 132 return num_encoder_reconfigurations_; |
133 } | 133 } |
134 | 134 |
135 void EnableEncodedFrameRecording(const std::vector<rtc::PlatformFile>& files, | 135 void EnableEncodedFrameRecording(const std::vector<rtc::PlatformFile>& files, |
136 size_t byte_limit) override; | 136 size_t byte_limit) override; |
137 | 137 |
138 bool resolution_scaling_enabled() const { | 138 bool resolution_scaling_enabled() const { |
139 return resolution_scaling_enabled_; | 139 return resolution_scaling_enabled_; |
140 } | 140 } |
141 bool framerate_scaling_enabled() const { return framerate_scaling_enabled_; } | |
142 void InjectVideoSinkWants(const rtc::VideoSinkWants& wants); | 141 void InjectVideoSinkWants(const rtc::VideoSinkWants& wants); |
143 | 142 |
144 rtc::VideoSourceInterface<webrtc::VideoFrame>* source() const { | 143 rtc::VideoSourceInterface<webrtc::VideoFrame>* source() const { |
145 return source_; | 144 return source_; |
146 } | 145 } |
147 | 146 |
148 private: | 147 private: |
149 // rtc::VideoSinkInterface<VideoFrame> implementation. | 148 // rtc::VideoSinkInterface<VideoFrame> implementation. |
150 void OnFrame(const webrtc::VideoFrame& frame) override; | 149 void OnFrame(const webrtc::VideoFrame& frame) override; |
151 | 150 |
(...skipping 11 matching lines...) Expand all Loading... |
163 webrtc::VideoEncoderConfig encoder_config_; | 162 webrtc::VideoEncoderConfig encoder_config_; |
164 std::vector<webrtc::VideoStream> video_streams_; | 163 std::vector<webrtc::VideoStream> video_streams_; |
165 rtc::VideoSinkWants sink_wants_; | 164 rtc::VideoSinkWants sink_wants_; |
166 | 165 |
167 bool codec_settings_set_; | 166 bool codec_settings_set_; |
168 union VpxSettings { | 167 union VpxSettings { |
169 webrtc::VideoCodecVP8 vp8; | 168 webrtc::VideoCodecVP8 vp8; |
170 webrtc::VideoCodecVP9 vp9; | 169 webrtc::VideoCodecVP9 vp9; |
171 } vpx_settings_; | 170 } vpx_settings_; |
172 bool resolution_scaling_enabled_; | 171 bool resolution_scaling_enabled_; |
173 bool framerate_scaling_enabled_; | |
174 rtc::VideoSourceInterface<webrtc::VideoFrame>* source_; | 172 rtc::VideoSourceInterface<webrtc::VideoFrame>* source_; |
175 int num_swapped_frames_; | 173 int num_swapped_frames_; |
176 rtc::Optional<webrtc::VideoFrame> last_frame_; | 174 rtc::Optional<webrtc::VideoFrame> last_frame_; |
177 webrtc::VideoSendStream::Stats stats_; | 175 webrtc::VideoSendStream::Stats stats_; |
178 int num_encoder_reconfigurations_ = 0; | 176 int num_encoder_reconfigurations_ = 0; |
179 }; | 177 }; |
180 | 178 |
181 class FakeVideoReceiveStream final : public webrtc::VideoReceiveStream { | 179 class FakeVideoReceiveStream final : public webrtc::VideoReceiveStream { |
182 public: | 180 public: |
183 explicit FakeVideoReceiveStream(webrtc::VideoReceiveStream::Config config); | 181 explicit FakeVideoReceiveStream(webrtc::VideoReceiveStream::Config config); |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 | 309 |
312 int num_created_send_streams_; | 310 int num_created_send_streams_; |
313 int num_created_receive_streams_; | 311 int num_created_receive_streams_; |
314 | 312 |
315 int audio_transport_overhead_; | 313 int audio_transport_overhead_; |
316 int video_transport_overhead_; | 314 int video_transport_overhead_; |
317 }; | 315 }; |
318 | 316 |
319 } // namespace cricket | 317 } // namespace cricket |
320 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCCALL_H_ | 318 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCCALL_H_ |
OLD | NEW |