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

Side by Side 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, 6 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 | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CODEC_VIDEO_ENCODER_H_ 5 #ifndef REMOTING_CODEC_VIDEO_ENCODER_H_
6 #define REMOTING_CODEC_VIDEO_ENCODER_H_ 6 #define REMOTING_CODEC_VIDEO_ENCODER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 9
10 namespace webrtc { 10 namespace webrtc {
11 class DesktopFrame; 11 class DesktopFrame;
12 } // namespace webrtc 12 } // namespace webrtc
13 13
14 namespace remoting { 14 namespace remoting {
15 15
16 class VideoPacket; 16 class VideoPacket;
17 17
18 // A class to perform the task of encoding a continuous stream of images. The 18 // A class to perform the task of encoding a continuous stream of images. The
19 // interface is asynchronous to enable maximum throughput. 19 // interface is asynchronous to enable maximum throughput.
20 class VideoEncoder { 20 class VideoEncoder {
21 public: 21 public:
22 virtual ~VideoEncoder() {} 22 virtual ~VideoEncoder() {}
23 23
24 // Request that the encoder provide lossless encoding, or color, if possible.
25 virtual void SetLosslessEncode(bool want_lossless) {}
26 virtual void SetLosslessColor(bool want_lossless) {}
27
24 // Encode an image stored in |frame|. 28 // Encode an image stored in |frame|.
25 virtual scoped_ptr<VideoPacket> Encode(const webrtc::DesktopFrame& frame) = 0; 29 virtual scoped_ptr<VideoPacket> Encode(const webrtc::DesktopFrame& frame) = 0;
26 }; 30 };
27 31
28 } // namespace remoting 32 } // namespace remoting
29 33
30 #endif // REMOTING_CODEC_VIDEO_ENCODER_H_ 34 #endif // REMOTING_CODEC_VIDEO_ENCODER_H_
OLDNEW
« 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