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

Side by Side 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 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_PROTOCOL_VIDEO_STREAM_H_
6 #define REMOTING_PROTOCOL_VIDEO_STREAM_H_
7
8 #include "base/callback_forward.h"
9
10 namespace webrtc {
11 class DesktopSize;
12 } // namespace webrtc
13
14 namespace remoting {
15 namespace protocol {
16
17 class VideoStream {
18 public:
19 // Callback used to notify about screen size changes.
20 typedef base::Callback<void(const webrtc::DesktopSize& size)> SizeCallback;
21
22 VideoStream() {}
23 virtual ~VideoStream() {}
24
25 // Pauses or resumes scheduling of frame captures. Pausing/resuming captures
26 // only affects capture scheduling and does not stop/start the capturer.
27 virtual void Pause(bool pause) = 0;
28
29 // Should be called whenever an input event is received.
30 virtual void OnInputEventReceived(int64_t event_timestamp) = 0;
31
32 // Sets whether the video encoder should be requested to encode losslessly,
33 // or to use a lossless color space (typically requiring higher bandwidth).
34 virtual void SetLosslessEncode(bool want_lossless) = 0;
35 virtual void SetLosslessColor(bool want_lossless) = 0;
36
37 // Sets SizeCallback to be called when screen size is changed.
38 virtual void SetSizeCallback(const SizeCallback& size_callback) = 0;
39 };
40
41 } // namespace protocol
42 } // namespace remoting
43
44 #endif // REMOTING_PROTOCOL_VIDEO_STREAM_H_
OLDNEW
« 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