OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_VERBATIM_H_ | 5 #ifndef REMOTING_CODEC_VIDEO_ENCODER_VERBATIM_H_ |
6 #define REMOTING_CODEC_VIDEO_ENCODER_VERBATIM_H_ | 6 #define REMOTING_CODEC_VIDEO_ENCODER_VERBATIM_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "remoting/codec/video_encoder.h" | 9 #include "remoting/codec/video_encoder.h" |
9 #include "remoting/codec/video_encoder_helper.h" | 10 #include "remoting/codec/video_encoder_helper.h" |
10 | 11 |
11 namespace remoting { | 12 namespace remoting { |
12 | 13 |
13 // VideoEncoderVerbatim implements a VideoEncoder that sends image data as a | 14 // VideoEncoderVerbatim implements a VideoEncoder that sends image data as a |
14 // sequence of RGB values, without compression. | 15 // sequence of RGB values, without compression. |
15 class VideoEncoderVerbatim : public VideoEncoder { | 16 class VideoEncoderVerbatim : public VideoEncoder { |
16 public: | 17 public: |
17 VideoEncoderVerbatim(); | 18 VideoEncoderVerbatim(); |
18 ~VideoEncoderVerbatim() override; | 19 ~VideoEncoderVerbatim() override; |
19 | 20 |
20 // VideoEncoder interface. | 21 // VideoEncoder interface. |
21 scoped_ptr<VideoPacket> Encode(const webrtc::DesktopFrame& frame) override; | 22 scoped_ptr<VideoPacket> Encode(const webrtc::DesktopFrame& frame) override; |
22 | 23 |
23 private: | 24 private: |
24 VideoEncoderHelper helper_; | 25 VideoEncoderHelper helper_; |
25 | 26 |
26 DISALLOW_COPY_AND_ASSIGN(VideoEncoderVerbatim); | 27 DISALLOW_COPY_AND_ASSIGN(VideoEncoderVerbatim); |
27 }; | 28 }; |
28 | 29 |
29 } // namespace remoting | 30 } // namespace remoting |
30 | 31 |
31 #endif // REMOTING_CODEC_VIDEO_ENCODER_VERBATIM_H_ | 32 #endif // REMOTING_CODEC_VIDEO_ENCODER_VERBATIM_H_ |
OLD | NEW |