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

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

Issue 10873047: Renamed Decoder -> VideoDecoder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
OLDNEW
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_VP8_H_ 5 #ifndef REMOTING_CODEC_VIDEO_DECODER_VP8_H_
6 #define REMOTING_CODEC_VIDEO_DECODER_VP8_H_ 6 #define REMOTING_CODEC_VIDEO_DECODER_VP8_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "remoting/codec/video_decoder.h" 9 #include "remoting/codec/video_decoder.h"
10 10
11 typedef struct vpx_codec_ctx vpx_codec_ctx_t; 11 typedef struct vpx_codec_ctx vpx_codec_ctx_t;
12 typedef struct vpx_image vpx_image_t; 12 typedef struct vpx_image vpx_image_t;
13 13
14 namespace remoting { 14 namespace remoting {
15 15
16 class DecoderVp8 : public Decoder { 16 class VideoDecoderVp8 : public VideoDecoder {
17 public: 17 public:
18 DecoderVp8(); 18 VideoDecoderVp8();
19 virtual ~DecoderVp8(); 19 virtual ~VideoDecoderVp8();
20 20
21 // Decoder implementations. 21 // VideoDecoder implementations.
22 virtual void Initialize(const SkISize& screen_size) OVERRIDE; 22 virtual void Initialize(const SkISize& screen_size) OVERRIDE;
23 virtual DecodeResult DecodePacket(const VideoPacket* packet) OVERRIDE; 23 virtual DecodeResult DecodePacket(const VideoPacket* packet) OVERRIDE;
24 virtual bool IsReadyForData() OVERRIDE; 24 virtual bool IsReadyForData() OVERRIDE;
25 virtual VideoPacketFormat::Encoding Encoding() OVERRIDE; 25 virtual VideoPacketFormat::Encoding Encoding() OVERRIDE;
26 virtual void Invalidate(const SkISize& view_size, 26 virtual void Invalidate(const SkISize& view_size,
27 const SkRegion& region) OVERRIDE; 27 const SkRegion& region) OVERRIDE;
28 virtual void RenderFrame(const SkISize& view_size, 28 virtual void RenderFrame(const SkISize& view_size,
29 const SkIRect& clip_area, 29 const SkIRect& clip_area,
30 uint8* image_buffer, 30 uint8* image_buffer,
31 int image_stride, 31 int image_stride,
(...skipping 13 matching lines...) Expand all
45 45
46 // Pointer to the last decoded image. 46 // Pointer to the last decoded image.
47 vpx_image_t* last_image_; 47 vpx_image_t* last_image_;
48 48
49 // The region updated that hasn't been copied to the screen yet. 49 // The region updated that hasn't been copied to the screen yet.
50 SkRegion updated_region_; 50 SkRegion updated_region_;
51 51
52 // Output dimensions. 52 // Output dimensions.
53 SkISize screen_size_; 53 SkISize screen_size_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(DecoderVp8); 55 DISALLOW_COPY_AND_ASSIGN(VideoDecoderVp8);
56 }; 56 };
57 57
58 } // namespace remoting 58 } // namespace remoting
59 59
60 #endif // REMOTING_CODEC_VIDEO_DECODER_VP8_H_ 60 #endif // REMOTING_CODEC_VIDEO_DECODER_VP8_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698