OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |