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