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

Unified Diff: remoting/codec/video_encoder.h

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_decoder_vpx_unittest.cc ('k') | remoting/codec/video_encoder_vpx.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/video_encoder.h
diff --git a/remoting/codec/video_encoder.h b/remoting/codec/video_encoder.h
index f0f8a2fc27d4a4091f8867b00241bac7c3768cbd..f497eb3b4c3839b6acad5a7968d35f70c2ee8d04 100644
--- a/remoting/codec/video_encoder.h
+++ b/remoting/codec/video_encoder.h
@@ -21,6 +21,10 @@ class VideoEncoder {
public:
virtual ~VideoEncoder() {}
+ // Request that the encoder provide lossless encoding, or color, if possible.
+ virtual void SetLosslessEncode(bool want_lossless) {}
+ virtual void SetLosslessColor(bool want_lossless) {}
+
// Encode an image stored in |frame|.
virtual scoped_ptr<VideoPacket> Encode(const webrtc::DesktopFrame& frame) = 0;
};
« no previous file with comments | « remoting/codec/video_decoder_vpx_unittest.cc ('k') | remoting/codec/video_encoder_vpx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698