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

Side by Side Diff: remoting/protocol/video_stream.h

Issue 1844143002: Add VideoLayout message. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_PROTOCOL_VIDEO_STREAM_H_ 5 #ifndef REMOTING_PROTOCOL_VIDEO_STREAM_H_
6 #define REMOTING_PROTOCOL_VIDEO_STREAM_H_ 6 #define REMOTING_PROTOCOL_VIDEO_STREAM_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <cstdint> 10 #include <cstdint>
11 11
12 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
13 13
14 namespace webrtc { 14 namespace webrtc {
15 class DesktopSize; 15 class DesktopSize;
16 class DesktopVector;
16 } // namespace webrtc 17 } // namespace webrtc
17 18
18 namespace remoting { 19 namespace remoting {
19 namespace protocol { 20 namespace protocol {
20 21
21 class VideoStream { 22 class VideoStream {
22 public: 23 public:
23 // Callback used to notify about screen size changes. 24 // Callback used to notify about screen size changes. The size must be
24 typedef base::Callback<void(const webrtc::DesktopSize& size)> SizeCallback; 25 // specified in DIPs.
26 typedef base::Callback<void(const webrtc::DesktopSize& size,
27 const webrtc::DesktopVector& dpi)>
28 SizeCallback;
25 29
26 VideoStream() {} 30 VideoStream() {}
27 virtual ~VideoStream() {} 31 virtual ~VideoStream() {}
28 32
29 // Pauses or resumes scheduling of frame captures. Pausing/resuming captures 33 // Pauses or resumes scheduling of frame captures. Pausing/resuming captures
30 // only affects capture scheduling and does not stop/start the capturer. 34 // only affects capture scheduling and does not stop/start the capturer.
31 virtual void Pause(bool pause) = 0; 35 virtual void Pause(bool pause) = 0;
32 36
33 // Should be called whenever an input event is received. 37 // Should be called whenever an input event is received.
34 virtual void OnInputEventReceived(int64_t event_timestamp) = 0; 38 virtual void OnInputEventReceived(int64_t event_timestamp) = 0;
35 39
36 // Sets whether the video encoder should be requested to encode losslessly, 40 // Sets whether the video encoder should be requested to encode losslessly,
37 // or to use a lossless color space (typically requiring higher bandwidth). 41 // or to use a lossless color space (typically requiring higher bandwidth).
38 virtual void SetLosslessEncode(bool want_lossless) = 0; 42 virtual void SetLosslessEncode(bool want_lossless) = 0;
39 virtual void SetLosslessColor(bool want_lossless) = 0; 43 virtual void SetLosslessColor(bool want_lossless) = 0;
40 44
41 // Sets SizeCallback to be called when screen size is changed. 45 // Sets SizeCallback to be called when screen size is changed.
42 virtual void SetSizeCallback(const SizeCallback& size_callback) = 0; 46 virtual void SetSizeCallback(const SizeCallback& size_callback) = 0;
43 }; 47 };
44 48
45 } // namespace protocol 49 } // namespace protocol
46 } // namespace remoting 50 } // namespace remoting
47 51
48 #endif // REMOTING_PROTOCOL_VIDEO_STREAM_H_ 52 #endif // REMOTING_PROTOCOL_VIDEO_STREAM_H_
OLDNEW
« no previous file with comments | « remoting/protocol/video_frame_pump.cc ('k') | remoting/protocol/webrtc_video_capturer_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698