OLD | NEW |
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 bool UpdateConfiguration(vpx_codec_enc_cfg_t* cfg) override; | 48 bool UpdateConfiguration(vpx_codec_enc_cfg_t* cfg) override; |
49 | 49 |
50 void PopulateCodecSpecific(bool base_layer_sync, | 50 void PopulateCodecSpecific(bool base_layer_sync, |
51 CodecSpecificInfoVP8* vp8_info, | 51 CodecSpecificInfoVP8* vp8_info, |
52 uint32_t timestamp) override; | 52 uint32_t timestamp) override; |
53 | 53 |
54 void FrameEncoded(unsigned int size, int qp) override; | 54 void FrameEncoded(unsigned int size, int qp) override; |
55 | 55 |
56 int CurrentLayerId() const override; | 56 int CurrentLayerId() const override; |
57 | 57 |
| 58 uint8_t Tl0PicIdx() const override; |
| 59 |
58 private: | 60 private: |
59 bool TimeToSync(int64_t timestamp) const; | 61 bool TimeToSync(int64_t timestamp) const; |
60 uint32_t GetCodecTargetBitrateKbps() const; | 62 uint32_t GetCodecTargetBitrateKbps() const; |
61 | 63 |
62 Clock* const clock_; | 64 Clock* const clock_; |
63 | 65 |
64 int number_of_temporal_layers_; | 66 int number_of_temporal_layers_; |
65 bool last_base_layer_sync_; | 67 bool last_base_layer_sync_; |
66 uint8_t tl0_pic_idx_; | 68 uint8_t tl0_pic_idx_; |
67 int active_layer_; | 69 int active_layer_; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 int64_t num_overshoots_ = 0; | 117 int64_t num_overshoots_ = 0; |
116 int64_t tl0_qp_sum_ = 0; | 118 int64_t tl0_qp_sum_ = 0; |
117 int64_t tl1_qp_sum_ = 0; | 119 int64_t tl1_qp_sum_ = 0; |
118 int64_t tl0_target_bitrate_sum_ = 0; | 120 int64_t tl0_target_bitrate_sum_ = 0; |
119 int64_t tl1_target_bitrate_sum_ = 0; | 121 int64_t tl1_target_bitrate_sum_ = 0; |
120 } stats_; | 122 } stats_; |
121 }; | 123 }; |
122 } // namespace webrtc | 124 } // namespace webrtc |
123 | 125 |
124 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SCREENSHARE_LAYERS_H_ | 126 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SCREENSHARE_LAYERS_H_ |
OLD | NEW |