Index: webrtc/modules/video_coding/codecs/vp9/screenshare_layers.h |
diff --git a/webrtc/modules/video_coding/codecs/vp9/screenshare_layers.h b/webrtc/modules/video_coding/codecs/vp9/screenshare_layers.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..adcd81dfeecdeb88eb2a35b420824f9cb66d00d7 |
--- /dev/null |
+++ b/webrtc/modules/video_coding/codecs/vp9/screenshare_layers.h |
@@ -0,0 +1,34 @@ |
+/* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
+* |
+* Use of this source code is governed by a BSD-style license |
+* that can be found in the LICENSE file in the root of the source |
+* tree. An additional intellectual property rights grant can be found |
+* in the file PATENTS. All contributing project authors may |
+* be found in the AUTHORS file in the root of the source tree. |
+*/ |
+ |
+#ifndef WEBRTC_SCREENSHARE_LAYERS_H |
+#define WEBRTC_SCREENSHARE_LAYERS_H |
+ |
+#include <stdint.h> |
+ |
+namespace webrtc { |
+ |
+class ScreenshareLayersVP9 { |
+ public: |
+ ScreenshareLayersVP9(); |
+ bool ConfigureBitrate(int threshold_kbps); |
+ void FrameEncoded(unsigned int size_bytes); |
+ int8_t CurrentLayer(); |
+ std::array<int8_t, 4> BufferArguments(uint32_t timestamp); |
sprang_webrtc
2015/09/07 14:39:04
c++11 std-libs not yet allowed :(
philipel
2015/09/10 14:47:01
Changed to a struct instead.
|
+ |
+ private: |
+ float threshold_kbps_; |
+ float sl0_bits_used_; |
+ int8_t current_sl_; |
+ uint32_t last_ts_; |
sprang_webrtc
2015/09/07 14:39:04
Please briefly comment what these do and/or don't
philipel
2015/09/10 14:47:01
Done.
|
+}; |
+ |
+} // namespace webrtc |
+ |
+#endif // WEBRTC_SCREENSHARE_LAYERS_H |