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

Unified Diff: webrtc/modules/video_coding/codecs/vp9/screenshare_layers.h

Issue 1328113004: Work on flexible mode and screen sharing. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Undo renaming Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698