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: webrtc/modules/video_coding/codecs/vp8/screenshare_layers.h

Issue 2860063002: Remove layer_sync from TL frame config. (Closed)
Patch Set: remove enum Created 3 years, 7 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 (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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 uint32_t timestamp) override; 53 uint32_t timestamp) override;
54 54
55 void FrameEncoded(unsigned int size, int qp) override; 55 void FrameEncoded(unsigned int size, int qp) override;
56 56
57 int GetTemporalLayerId( 57 int GetTemporalLayerId(
58 const TemporalLayers::FrameConfig& tl_config) const override; 58 const TemporalLayers::FrameConfig& tl_config) const override;
59 59
60 uint8_t Tl0PicIdx() const override; 60 uint8_t Tl0PicIdx() const override;
61 61
62 private: 62 private:
63 enum TemporalLayerState { kDrop, kTl0, kTl1, kTl1Sync };
64
63 bool TimeToSync(int64_t timestamp) const; 65 bool TimeToSync(int64_t timestamp) const;
64 uint32_t GetCodecTargetBitrateKbps() const; 66 uint32_t GetCodecTargetBitrateKbps() const;
65 67
66 Clock* const clock_; 68 Clock* const clock_;
67 69
68 int number_of_temporal_layers_; 70 int number_of_temporal_layers_;
69 bool last_base_layer_sync_; 71 bool last_base_layer_sync_;
70 uint8_t tl0_pic_idx_; 72 uint8_t tl0_pic_idx_;
71 int active_layer_; 73 int active_layer_;
72 int64_t last_timestamp_; 74 int64_t last_timestamp_;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 int64_t num_overshoots_ = 0; 121 int64_t num_overshoots_ = 0;
120 int64_t tl0_qp_sum_ = 0; 122 int64_t tl0_qp_sum_ = 0;
121 int64_t tl1_qp_sum_ = 0; 123 int64_t tl1_qp_sum_ = 0;
122 int64_t tl0_target_bitrate_sum_ = 0; 124 int64_t tl0_target_bitrate_sum_ = 0;
123 int64_t tl1_target_bitrate_sum_ = 0; 125 int64_t tl1_target_bitrate_sum_ = 0;
124 } stats_; 126 } stats_;
125 }; 127 };
126 } // namespace webrtc 128 } // namespace webrtc
127 129
128 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SCREENSHARE_LAYERS_H_ 130 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SCREENSHARE_LAYERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698