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

Side by Side Diff: webrtc/modules/video_coding/codecs/vp8/screenshare_layers.h

Issue 2529073003: Fix perf regression in screenshare temporal layer bitrate allocation (Closed)
Patch Set: Yet another failing test Created 4 years 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 (c) 2013 The WebRTC project authors. All Rights Reserved. 1 /* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
2 * 2 *
3 * Use of this source code is governed by a BSD-style license 3 * Use of this source code is governed by a BSD-style license
4 * that can be found in the LICENSE file in the root of the source 4 * that can be found in the LICENSE file in the root of the source
5 * tree. An additional intellectual property rights grant can be found 5 * tree. An additional intellectual property rights grant can be found
6 * in the file PATENTS. All contributing project authors may 6 * in the file PATENTS. All contributing project authors may
7 * be found in the AUTHORS file in the root of the source tree. 7 * be found in the AUTHORS file in the root of the source tree.
8 */ 8 */
9 #ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SCREENSHARE_LAYERS_H_ 9 #ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SCREENSHARE_LAYERS_H_
10 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SCREENSHARE_LAYERS_H_ 10 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SCREENSHARE_LAYERS_H_
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 void PopulateCodecSpecific(bool base_layer_sync, 52 void PopulateCodecSpecific(bool base_layer_sync,
53 CodecSpecificInfoVP8* vp8_info, 53 CodecSpecificInfoVP8* vp8_info,
54 uint32_t timestamp) override; 54 uint32_t timestamp) override;
55 55
56 void FrameEncoded(unsigned int size, uint32_t timestamp, int qp) override; 56 void FrameEncoded(unsigned int size, uint32_t timestamp, int qp) override;
57 57
58 int CurrentLayerId() const override; 58 int CurrentLayerId() const override;
59 59
60 private: 60 private:
61 bool TimeToSync(int64_t timestamp) const; 61 bool TimeToSync(int64_t timestamp) const;
62 uint32_t GetCodecTargetBitrateKbps() const;
62 63
63 Clock* const clock_; 64 Clock* const clock_;
64 65
65 int number_of_temporal_layers_; 66 int number_of_temporal_layers_;
66 bool last_base_layer_sync_; 67 bool last_base_layer_sync_;
67 uint8_t tl0_pic_idx_; 68 uint8_t tl0_pic_idx_;
68 int active_layer_; 69 int active_layer_;
69 int64_t last_timestamp_; 70 int64_t last_timestamp_;
70 int64_t last_sync_timestamp_; 71 int64_t last_sync_timestamp_;
71 int64_t last_emitted_tl0_timestamp_; 72 int64_t last_emitted_tl0_timestamp_;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 int64_t num_overshoots_ = 0; 111 int64_t num_overshoots_ = 0;
111 int64_t tl0_qp_sum_ = 0; 112 int64_t tl0_qp_sum_ = 0;
112 int64_t tl1_qp_sum_ = 0; 113 int64_t tl1_qp_sum_ = 0;
113 int64_t tl0_target_bitrate_sum_ = 0; 114 int64_t tl0_target_bitrate_sum_ = 0;
114 int64_t tl1_target_bitrate_sum_ = 0; 115 int64_t tl1_target_bitrate_sum_ = 0;
115 } stats_; 116 } stats_;
116 }; 117 };
117 } // namespace webrtc 118 } // namespace webrtc
118 119
119 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SCREENSHARE_LAYERS_H_ 120 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SCREENSHARE_LAYERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698