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

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

Issue 530243002: Move common VideoPacket initialization into VideoEncoderHelper. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add unit tests Created 6 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
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_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 "base/time/time.h" 9 #include "base/time/time.h"
10 #include "remoting/codec/scoped_vpx_codec.h" 10 #include "remoting/codec/scoped_vpx_codec.h"
11 #include "remoting/codec/video_encoder.h" 11 #include "remoting/codec/video_encoder.h"
12 #include "remoting/codec/video_encoder_helper.h"
12 13
13 typedef struct vpx_image vpx_image_t; 14 typedef struct vpx_image vpx_image_t;
14 15
15 namespace webrtc { 16 namespace webrtc {
16 class DesktopRegion; 17 class DesktopRegion;
17 class DesktopSize; 18 class DesktopSize;
18 } // namespace webrtc 19 } // namespace webrtc
19 20
20 namespace remoting { 21 namespace remoting {
21 22
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 62
62 // VPX image and buffer to hold the actual YUV planes. 63 // VPX image and buffer to hold the actual YUV planes.
63 scoped_ptr<vpx_image_t> image_; 64 scoped_ptr<vpx_image_t> image_;
64 scoped_ptr<uint8[]> image_buffer_; 65 scoped_ptr<uint8[]> image_buffer_;
65 66
66 // Active map used to optimize out processing of un-changed macroblocks. 67 // Active map used to optimize out processing of un-changed macroblocks.
67 scoped_ptr<uint8[]> active_map_; 68 scoped_ptr<uint8[]> active_map_;
68 int active_map_width_; 69 int active_map_width_;
69 int active_map_height_; 70 int active_map_height_;
70 71
72 // Used to help initialize VideoPackets from DesktopFrames.
73 VideoEncoderHelper helper_;
74
71 DISALLOW_COPY_AND_ASSIGN(VideoEncoderVpx); 75 DISALLOW_COPY_AND_ASSIGN(VideoEncoderVpx);
72 }; 76 };
73 77
74 } // namespace remoting 78 } // namespace remoting
75 79
76 #endif // REMOTING_CODEC_VIDEO_ENCODER_VP8_H_ 80 #endif // REMOTING_CODEC_VIDEO_ENCODER_VP8_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698