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

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

Issue 667123002: Standardize usage of virtual/override/final in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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_decoder_verbatim.h ('k') | remoting/codec/video_encoder_verbatim.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_VPX_H_ 5 #ifndef REMOTING_CODEC_VIDEO_DECODER_VPX_H_
6 #define REMOTING_CODEC_VIDEO_DECODER_VPX_H_ 6 #define REMOTING_CODEC_VIDEO_DECODER_VPX_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "remoting/codec/scoped_vpx_codec.h" 10 #include "remoting/codec/scoped_vpx_codec.h"
11 #include "remoting/codec/video_decoder.h" 11 #include "remoting/codec/video_decoder.h"
12 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" 12 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
13 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h" 13 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h"
14 14
15 typedef struct vpx_image vpx_image_t; 15 typedef struct vpx_image vpx_image_t;
16 16
17 namespace remoting { 17 namespace remoting {
18 18
19 class VideoDecoderVpx : public VideoDecoder { 19 class VideoDecoderVpx : public VideoDecoder {
20 public: 20 public:
21 // Create decoders for the specified protocol. 21 // Create decoders for the specified protocol.
22 static scoped_ptr<VideoDecoderVpx> CreateForVP8(); 22 static scoped_ptr<VideoDecoderVpx> CreateForVP8();
23 static scoped_ptr<VideoDecoderVpx> CreateForVP9(); 23 static scoped_ptr<VideoDecoderVpx> CreateForVP9();
24 24
25 virtual ~VideoDecoderVpx(); 25 ~VideoDecoderVpx() override;
26 26
27 // VideoDecoder interface. 27 // VideoDecoder interface.
28 virtual void Initialize(const webrtc::DesktopSize& screen_size) override; 28 void Initialize(const webrtc::DesktopSize& screen_size) override;
29 virtual bool DecodePacket(const VideoPacket& packet) override; 29 bool DecodePacket(const VideoPacket& packet) override;
30 virtual void Invalidate(const webrtc::DesktopSize& view_size, 30 void Invalidate(const webrtc::DesktopSize& view_size,
31 const webrtc::DesktopRegion& region) override; 31 const webrtc::DesktopRegion& region) override;
32 virtual void RenderFrame(const webrtc::DesktopSize& view_size, 32 void RenderFrame(const webrtc::DesktopSize& view_size,
33 const webrtc::DesktopRect& clip_area, 33 const webrtc::DesktopRect& clip_area,
34 uint8* image_buffer, 34 uint8* image_buffer,
35 int image_stride, 35 int image_stride,
36 webrtc::DesktopRegion* output_region) override; 36 webrtc::DesktopRegion* output_region) override;
37 virtual const webrtc::DesktopRegion* GetImageShape() override; 37 const webrtc::DesktopRegion* GetImageShape() override;
38 38
39 private: 39 private:
40 explicit VideoDecoderVpx(ScopedVpxCodec codec); 40 explicit VideoDecoderVpx(ScopedVpxCodec codec);
41 41
42 // Calculates the difference between the desktop shape regions in two 42 // Calculates the difference between the desktop shape regions in two
43 // consecutive frames and updates |updated_region_| and |transparent_region_| 43 // consecutive frames and updates |updated_region_| and |transparent_region_|
44 // accordingly. 44 // accordingly.
45 void UpdateImageShapeRegion(webrtc::DesktopRegion* new_desktop_shape); 45 void UpdateImageShapeRegion(webrtc::DesktopRegion* new_desktop_shape);
46 46
47 ScopedVpxCodec codec_; 47 ScopedVpxCodec codec_;
(...skipping 12 matching lines...) Expand all
60 60
61 // The region that should be make transparent. 61 // The region that should be make transparent.
62 webrtc::DesktopRegion transparent_region_; 62 webrtc::DesktopRegion transparent_region_;
63 63
64 DISALLOW_COPY_AND_ASSIGN(VideoDecoderVpx); 64 DISALLOW_COPY_AND_ASSIGN(VideoDecoderVpx);
65 }; 65 };
66 66
67 } // namespace remoting 67 } // namespace remoting
68 68
69 #endif // REMOTING_CODEC_VIDEO_DECODER_VP8_H_ 69 #endif // REMOTING_CODEC_VIDEO_DECODER_VP8_H_
OLDNEW
« no previous file with comments | « remoting/codec/video_decoder_verbatim.h ('k') | remoting/codec/video_encoder_verbatim.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698