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" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
66 | 66 |
67 // Used to generate zero-based frame timestamps. | 67 // Used to generate zero-based frame timestamps. |
68 base::TimeTicks timestamp_base_; | 68 base::TimeTicks timestamp_base_; |
69 | 69 |
70 // VPX image and buffer to hold the actual YUV planes. | 70 // VPX image and buffer to hold the actual YUV planes. |
71 scoped_ptr<vpx_image_t> image_; | 71 scoped_ptr<vpx_image_t> image_; |
72 scoped_ptr<uint8[]> image_buffer_; | 72 scoped_ptr<uint8[]> image_buffer_; |
73 | 73 |
74 // Active map used to optimize out processing of un-changed macroblocks. | 74 // Active map used to optimize out processing of un-changed macroblocks. |
75 scoped_ptr<uint8[]> active_map_; | 75 scoped_ptr<uint8[]> active_map_; |
76 int active_map_width_ = 0; | 76 webrtc::DesktopSize active_map_size_; |
77 int active_map_height_ = 0; | |
78 | 77 |
79 // Number of "top-off" frames we've encoded since we were last passed a | 78 // True if the codec wants unchanged frames to finish topping-off with. |
80 // frame containing an actual change. Used only when encoding with top-off. | 79 bool encode_unchanged_frame_; |
Sergey Ulanov
2015/07/06 17:58:28
maybe call it encode_next_unchanged_frame_ to make
Sergey Ulanov
2015/07/06 17:58:29
= false; and remove initializer in the constructor
| |
81 int topoff_frame_count_ = 0; | |
82 | 80 |
83 // Used to help initialize VideoPackets from DesktopFrames. | 81 // Used to help initialize VideoPackets from DesktopFrames. |
84 VideoEncoderHelper helper_; | 82 VideoEncoderHelper helper_; |
85 | 83 |
86 DISALLOW_COPY_AND_ASSIGN(VideoEncoderVpx); | 84 DISALLOW_COPY_AND_ASSIGN(VideoEncoderVpx); |
87 }; | 85 }; |
88 | 86 |
89 } // namespace remoting | 87 } // namespace remoting |
90 | 88 |
91 #endif // REMOTING_CODEC_VIDEO_ENCODER_VP8_H_ | 89 #endif // REMOTING_CODEC_VIDEO_ENCODER_VP8_H_ |
OLD | NEW |