OLD | NEW |
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_DECODER_VERBATIM_H_ | 5 #ifndef REMOTING_CODEC_VIDEO_DECODER_VERBATIM_H_ |
6 #define REMOTING_CODEC_VIDEO_DECODER_VERBATIM_H_ | 6 #define REMOTING_CODEC_VIDEO_DECODER_VERBATIM_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
10 #include "remoting/codec/video_decoder.h" | 11 #include "remoting/codec/video_decoder.h" |
11 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" | 12 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" |
12 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h" | 13 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h" |
13 | 14 |
14 namespace remoting { | 15 namespace remoting { |
15 | 16 |
16 // Video decoder implementations that decodes video packet encoded by | 17 // Video decoder implementations that decodes video packet encoded by |
17 // VideoEncoderVerbatim. It just copies data from incoming packets to the | 18 // VideoEncoderVerbatim. It just copies data from incoming packets to the |
18 // video frames. | 19 // video frames. |
19 class VideoDecoderVerbatim : public VideoDecoder { | 20 class VideoDecoderVerbatim : public VideoDecoder { |
20 public: | 21 public: |
21 VideoDecoderVerbatim(); | 22 VideoDecoderVerbatim(); |
22 ~VideoDecoderVerbatim() override; | 23 ~VideoDecoderVerbatim() override; |
23 | 24 |
24 // VideoDecoder implementation. | 25 // VideoDecoder implementation. |
25 bool DecodePacket(const VideoPacket& packet, | 26 bool DecodePacket(const VideoPacket& packet, |
26 webrtc::DesktopFrame* frame) override; | 27 webrtc::DesktopFrame* frame) override; |
27 | 28 |
28 private: | 29 private: |
29 DISALLOW_COPY_AND_ASSIGN(VideoDecoderVerbatim); | 30 DISALLOW_COPY_AND_ASSIGN(VideoDecoderVerbatim); |
30 }; | 31 }; |
31 | 32 |
32 } // namespace remoting | 33 } // namespace remoting |
33 | 34 |
34 #endif // REMOTING_CODEC_VIDEO_DECODER_VERBATIM_H_ | 35 #endif // REMOTING_CODEC_VIDEO_DECODER_VERBATIM_H_ |
OLD | NEW |