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

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

Issue 1213323003: Supply empty frames until codec is done with top-off. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Loosen top-off frame count tests Created 5 years, 5 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
« no previous file with comments | « remoting/codec/codec_test.cc ('k') | remoting/codec/video_encoder_vpx.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_;
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_
OLDNEW
« no previous file with comments | « remoting/codec/codec_test.cc ('k') | remoting/codec/video_encoder_vpx.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698