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