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

Unified Diff: webrtc/api/video/video_content_type.h

Issue 2772033002: Add content type information to encoded images and corresponding rtp extension header (Closed)
Patch Set: Fix typo, leading to failed video catpure test Created 3 years, 8 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
« no previous file with comments | « no previous file | webrtc/common_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/video/video_content_type.h
diff --git a/webrtc/test/constants.cc b/webrtc/api/video/video_content_type.h
similarity index 51%
copy from webrtc/test/constants.cc
copy to webrtc/api/video/video_content_type.h
index 43f9adc3340d152fab49c5c18671374d226adfb2..5c468c079d35ea2d20c115234cf38d7e7fcd42bd 100644
--- a/webrtc/test/constants.cc
+++ b/webrtc/api/video/video_content_type.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
+ * Copyright (c) 2017 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
@@ -8,14 +8,19 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#include "webrtc/test/constants.h"
+#ifndef WEBRTC_API_VIDEO_VIDEO_CONTENT_TYPE_H_
+#define WEBRTC_API_VIDEO_VIDEO_CONTENT_TYPE_H_
+
+#include <stdint.h>
namespace webrtc {
-namespace test {
-const int kTOffsetExtensionId = 6;
-const int kAbsSendTimeExtensionId = 7;
-const int kTransportSequenceNumberExtensionId = 8;
-const int kVideoRotationExtensionId = 9;
-} // namespace test
+enum class VideoContentType : uint8_t {
+ UNSPECIFIED = 0,
+ SCREENSHARE = 1,
+ TOTAL_CONTENT_TYPES // Must be the last value in the enum.
+};
+
} // namespace webrtc
+
+#endif // WEBRTC_API_VIDEO_VIDEO_CONTENT_TYPE_H_
« no previous file with comments | « no previous file | webrtc/common_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698