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

Unified Diff: remoting/host/client_session.cc

Issue 304653002: Extend VideoControl to allow clients to request lossless modes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/codec/video_encoder_vpx_unittest.cc ('k') | remoting/host/video_scheduler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/client_session.cc
diff --git a/remoting/host/client_session.cc b/remoting/host/client_session.cc
index fd1e441d7d673966286828f562c52936cb76909c..2db968e5c09d3de27fd93bfd8edb5c612d4ef2ff 100644
--- a/remoting/host/client_session.cc
+++ b/remoting/host/client_session.cc
@@ -133,6 +133,16 @@ void ClientSession::ControlVideo(const protocol::VideoControl& video_control) {
<< video_control.enable() << ")";
video_scheduler_->Pause(!video_control.enable());
}
+ if (video_control.has_lossless_encode()) {
+ VLOG(1) << "Received VideoControl (lossless_encode="
+ << video_control.lossless_encode() << ")";
+ video_scheduler_->SetLosslessEncode(video_control.lossless_encode());
+ }
+ if (video_control.has_lossless_color()) {
+ VLOG(1) << "Received VideoControl (lossless_color="
+ << video_control.lossless_color() << ")";
+ video_scheduler_->SetLosslessColor(video_control.lossless_color());
+ }
}
void ClientSession::ControlAudio(const protocol::AudioControl& audio_control) {
@@ -450,7 +460,7 @@ scoped_ptr<VideoEncoder> ClientSession::CreateVideoEncoder(
if (video_config.codec == protocol::ChannelConfig::CODEC_VP8) {
return remoting::VideoEncoderVpx::CreateForVP8().PassAs<VideoEncoder>();
} else if (video_config.codec == protocol::ChannelConfig::CODEC_VP9) {
- return remoting::VideoEncoderVpx::CreateForVP9I420().PassAs<VideoEncoder>();
+ return remoting::VideoEncoderVpx::CreateForVP9().PassAs<VideoEncoder>();
}
NOTREACHED();
« no previous file with comments | « remoting/codec/video_encoder_vpx_unittest.cc ('k') | remoting/host/video_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698