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_ |
11 | 11 |
12 #include <list> | 12 #include <list> |
13 | 13 |
14 #include "vpx/vpx_encoder.h" | 14 #include "vpx/vpx_encoder.h" |
15 | 15 |
16 #include "webrtc/base/timeutils.h" | 16 #include "webrtc/base/timeutils.h" |
17 #include "webrtc/modules/video_coding/codecs/vp8/temporal_layers.h" | 17 #include "webrtc/modules/video_coding/codecs/vp8/temporal_layers.h" |
18 #include "webrtc/modules/video_coding/utility/include/frame_dropper.h" | 18 #include "webrtc/modules/video_coding/utility/frame_dropper.h" |
19 #include "webrtc/typedefs.h" | 19 #include "webrtc/typedefs.h" |
20 | 20 |
21 namespace webrtc { | 21 namespace webrtc { |
22 | 22 |
23 struct CodecSpecificInfoVP8; | 23 struct CodecSpecificInfoVP8; |
24 | 24 |
25 class ScreenshareLayers : public TemporalLayers { | 25 class ScreenshareLayers : public TemporalLayers { |
26 public: | 26 public: |
27 static const double kMaxTL0FpsReduction; | 27 static const double kMaxTL0FpsReduction; |
28 static const double kAcceptableTargetOvershoot; | 28 static const double kAcceptableTargetOvershoot; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 int last_qp; | 90 int last_qp; |
91 uint32_t debt_bytes_; | 91 uint32_t debt_bytes_; |
92 uint32_t target_rate_kbps_; | 92 uint32_t target_rate_kbps_; |
93 | 93 |
94 void UpdateDebt(int64_t delta_ms); | 94 void UpdateDebt(int64_t delta_ms); |
95 } layers_[kMaxNumTemporalLayers]; | 95 } layers_[kMaxNumTemporalLayers]; |
96 }; | 96 }; |
97 } // namespace webrtc | 97 } // namespace webrtc |
98 | 98 |
99 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SCREENSHARE_LAYERS_H_ | 99 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SCREENSHARE_LAYERS_H_ |
OLD | NEW |