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

Unified Diff: remoting/protocol/video_stream.h

Issue 1472873005: Add VideoStream interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_video_pump
Patch Set: Created 5 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 | « remoting/protocol/video_frame_pump.cc ('k') | remoting/remoting_host_srcs.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/video_stream.h
diff --git a/remoting/protocol/video_stream.h b/remoting/protocol/video_stream.h
new file mode 100644
index 0000000000000000000000000000000000000000..000a1f28e2bfb11d8af8111e93f90c2713d661d4
--- /dev/null
+++ b/remoting/protocol/video_stream.h
@@ -0,0 +1,44 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_PROTOCOL_VIDEO_STREAM_H_
+#define REMOTING_PROTOCOL_VIDEO_STREAM_H_
+
+#include "base/callback_forward.h"
+
+namespace webrtc {
+class DesktopSize;
+} // namespace webrtc
+
+namespace remoting {
+namespace protocol {
+
+class VideoStream {
+ public:
+ // Callback used to notify about screen size changes.
+ typedef base::Callback<void(const webrtc::DesktopSize& size)> SizeCallback;
+
+ VideoStream() {}
+ virtual ~VideoStream() {}
+
+ // Pauses or resumes scheduling of frame captures. Pausing/resuming captures
+ // only affects capture scheduling and does not stop/start the capturer.
+ virtual void Pause(bool pause) = 0;
+
+ // Should be called whenever an input event is received.
+ virtual void OnInputEventReceived(int64_t event_timestamp) = 0;
+
+ // Sets whether the video encoder should be requested to encode losslessly,
+ // or to use a lossless color space (typically requiring higher bandwidth).
+ virtual void SetLosslessEncode(bool want_lossless) = 0;
+ virtual void SetLosslessColor(bool want_lossless) = 0;
+
+ // Sets SizeCallback to be called when screen size is changed.
+ virtual void SetSizeCallback(const SizeCallback& size_callback) = 0;
+};
+
+} // namespace protocol
+} // namespace remoting
+
+#endif // REMOTING_PROTOCOL_VIDEO_STREAM_H_
« no previous file with comments | « remoting/protocol/video_frame_pump.cc ('k') | remoting/remoting_host_srcs.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698