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

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

Issue 26921005: Add VP9 decode support to the remoting client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable VP9 correctly in hosts. Created 7 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 | 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_ENCODER_VPX_H_ 5 #ifndef REMOTING_CODEC_VIDEO_ENCODER_VPX_H_
6 #define REMOTING_CODEC_VIDEO_ENCODER_VPX_H_ 6 #define REMOTING_CODEC_VIDEO_ENCODER_VPX_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "remoting/codec/scoped_vpx_codec.h" 9 #include "remoting/codec/scoped_vpx_codec.h"
10 #include "remoting/codec/video_encoder.h" 10 #include "remoting/codec/video_encoder.h"
11 11
12 typedef struct vpx_image vpx_image_t; 12 typedef struct vpx_image vpx_image_t;
13 13
14 namespace webrtc { 14 namespace webrtc {
15 class DesktopRegion; 15 class DesktopRegion;
16 class DesktopSize; 16 class DesktopSize;
17 } // namespace webrtc 17 } // namespace webrtc
18 18
19 namespace remoting { 19 namespace remoting {
20 20
21 // A class that uses VP8 to perform encoding.
22 class VideoEncoderVpx : public VideoEncoder { 21 class VideoEncoderVpx : public VideoEncoder {
23 public: 22 public:
24 // Creates a encoder for VP8. 23 // Create encoder for the specified protocol.
Jamie 2013/10/21 18:28:20 What was wrong with the previous comment?
Wez 2013/10/22 01:13:01 Comment change ended up in the wrong CL; it'll wan
25 static scoped_ptr<VideoEncoderVpx> CreateForVP8(); 24 static scoped_ptr<VideoEncoderVpx> CreateForVP8();
26 25
27 virtual ~VideoEncoderVpx(); 26 virtual ~VideoEncoderVpx();
28 27
29 // VideoEncoder interface. 28 // VideoEncoder interface.
30 virtual scoped_ptr<VideoPacket> Encode( 29 virtual scoped_ptr<VideoPacket> Encode(
31 const webrtc::DesktopFrame& frame) OVERRIDE; 30 const webrtc::DesktopFrame& frame) OVERRIDE;
32 31
33 private: 32 private:
34 typedef base::Callback<ScopedVpxCodec(const webrtc::DesktopSize&)> 33 typedef base::Callback<ScopedVpxCodec(const webrtc::DesktopSize&)>
(...skipping 24 matching lines...) Expand all
59 58
60 // Buffer for storing the yuv image. 59 // Buffer for storing the yuv image.
61 scoped_ptr<uint8[]> yuv_image_; 60 scoped_ptr<uint8[]> yuv_image_;
62 61
63 DISALLOW_COPY_AND_ASSIGN(VideoEncoderVpx); 62 DISALLOW_COPY_AND_ASSIGN(VideoEncoderVpx);
64 }; 63 };
65 64
66 } // namespace remoting 65 } // namespace remoting
67 66
68 #endif // REMOTING_CODEC_VIDEO_ENCODER_VP8_H_ 67 #endif // REMOTING_CODEC_VIDEO_ENCODER_VP8_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698