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

Side by Side Diff: remoting/codec/video_encoder_verbatim.h

Issue 2329653002: Add WebrtcVideoEncoder interface (Closed)
Patch Set: win Created 4 years, 3 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
« no previous file with comments | « remoting/codec/video_encoder.h ('k') | remoting/codec/video_encoder_verbatim.cc » ('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) 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 "base/macros.h"
9 #include "remoting/codec/video_encoder.h" 9 #include "remoting/codec/video_encoder.h"
10 #include "remoting/codec/video_encoder_helper.h" 10 #include "remoting/codec/video_encoder_helper.h"
11 11
12 namespace remoting { 12 namespace remoting {
13 13
14 // VideoEncoderVerbatim implements a VideoEncoder that sends image data as a 14 // VideoEncoderVerbatim implements a VideoEncoder that sends image data as a
15 // sequence of RGB values, without compression. 15 // sequence of RGB values, without compression.
16 class VideoEncoderVerbatim : public VideoEncoder { 16 class VideoEncoderVerbatim : public VideoEncoder {
17 public: 17 public:
18 VideoEncoderVerbatim(); 18 VideoEncoderVerbatim();
19 ~VideoEncoderVerbatim() override; 19 ~VideoEncoderVerbatim() override;
20 20
21 // VideoEncoder interface. 21 // VideoEncoder interface.
22 std::unique_ptr<VideoPacket> Encode(const webrtc::DesktopFrame& frame, 22 std::unique_ptr<VideoPacket> Encode(
23 uint32_t flags) override; 23 const webrtc::DesktopFrame& frame) override;
24 24
25 private: 25 private:
26 VideoEncoderHelper helper_; 26 VideoEncoderHelper helper_;
27 27
28 DISALLOW_COPY_AND_ASSIGN(VideoEncoderVerbatim); 28 DISALLOW_COPY_AND_ASSIGN(VideoEncoderVerbatim);
29 }; 29 };
30 30
31 } // namespace remoting 31 } // namespace remoting
32 32
33 #endif // REMOTING_CODEC_VIDEO_ENCODER_VERBATIM_H_ 33 #endif // REMOTING_CODEC_VIDEO_ENCODER_VERBATIM_H_
OLDNEW
« no previous file with comments | « remoting/codec/video_encoder.h ('k') | remoting/codec/video_encoder_verbatim.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698