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

Unified Diff: webrtc/media/engine/fakewebrtccall.h

Issue 2304363002: Let ViEEncoder express resolution requests as Sinkwants (Closed)
Patch Set: Rebased. Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/media/base/mediachannel.h ('k') | webrtc/media/engine/fakewebrtccall.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/engine/fakewebrtccall.h
diff --git a/webrtc/media/engine/fakewebrtccall.h b/webrtc/media/engine/fakewebrtccall.h
index aec22a3d2d8b47601a20879ed832382b5d2ac49f..59084fc4c8fabdaf5961acbfb6a3d44703b4ceba 100644
--- a/webrtc/media/engine/fakewebrtccall.h
+++ b/webrtc/media/engine/fakewebrtccall.h
@@ -127,6 +127,15 @@ class FakeVideoSendStream final
void EnableEncodedFrameRecording(const std::vector<rtc::PlatformFile>& files,
size_t byte_limit) override;
+ bool resolution_scaling_enabled() const {
+ return resolution_scaling_enabled_;
+ }
+ void InjectVideoSinkWants(const rtc::VideoSinkWants& wants);
+
+ rtc::VideoSourceInterface<webrtc::VideoFrame>* source() const {
+ return source_;
+ }
+
private:
// rtc::VideoSinkInterface<VideoFrame> implementation.
void OnFrame(const webrtc::VideoFrame& frame) override;
@@ -134,8 +143,9 @@ class FakeVideoSendStream final
// webrtc::VideoSendStream implementation.
void Start() override;
void Stop() override;
- void SetSource(
- rtc::VideoSourceInterface<webrtc::VideoFrame>* source) override;
+ void SetSource(rtc::VideoSourceInterface<webrtc::VideoFrame>* source,
+ const webrtc::VideoSendStream::DegradationPreference&
+ degradation_preference) override;
webrtc::VideoSendStream::Stats GetStats() override;
void ReconfigureVideoEncoder(webrtc::VideoEncoderConfig config) override;
@@ -143,11 +153,14 @@ class FakeVideoSendStream final
webrtc::VideoSendStream::Config config_;
webrtc::VideoEncoderConfig encoder_config_;
std::vector<webrtc::VideoStream> video_streams_;
+ rtc::VideoSinkWants sink_wants_;
+
bool codec_settings_set_;
union VpxSettings {
webrtc::VideoCodecVP8 vp8;
webrtc::VideoCodecVP9 vp9;
} vpx_settings_;
+ bool resolution_scaling_enabled_;
rtc::VideoSourceInterface<webrtc::VideoFrame>* source_;
int num_swapped_frames_;
webrtc::VideoFrame last_frame_;
« no previous file with comments | « webrtc/media/base/mediachannel.h ('k') | webrtc/media/engine/fakewebrtccall.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698