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

Side by Side Diff: webrtc/api/video/video_content_type.h

Issue 2986893002: Piggybacking simulcast id and ALR experiment id into video content type extension. (Closed)
Patch Set: Cleanup Created 3 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_API_VIDEO_VIDEO_CONTENT_TYPE_H_ 11 #ifndef WEBRTC_API_VIDEO_VIDEO_CONTENT_TYPE_H_
12 #define WEBRTC_API_VIDEO_VIDEO_CONTENT_TYPE_H_ 12 #define WEBRTC_API_VIDEO_VIDEO_CONTENT_TYPE_H_
13 13
14 #include <stdint.h> 14 #include <stdint.h>
15 15
16 namespace webrtc { 16 namespace webrtc {
17 17
18 enum class VideoContentType : uint8_t { 18 enum class VideoContentType : uint8_t {
19 UNSPECIFIED = 0, 19 UNSPECIFIED = 0,
20 SCREENSHARE = 1, 20 SCREENSHARE = 1,
21 TOTAL_CONTENT_TYPES // Must be the last value in the enum.
22 }; 21 };
23 22
23 namespace VideoContentTypeHelpers {
kwiberg-webrtc 2017/08/29 20:58:53 "Namespace names are all lower-case." See https://
ilnik 2017/08/30 07:36:06 Great idea. Done.
24 bool SetExperimentId(VideoContentType* content_type, uint8_t experiment_id);
25 bool SetSimulcastId(VideoContentType* content_type, uint8_t simulcast_id);
26
27 uint8_t GetExperimentId(const VideoContentType& content_type);
28 uint8_t GetSimulcastId(const VideoContentType& content_type);
29
30 bool IsScreenshare(const VideoContentType& content_type);
31
32 bool IsValidContentType(uint8_t value);
33 } // namespace VideoContentTypeHelpers
24 } // namespace webrtc 34 } // namespace webrtc
25 35
26 #endif // WEBRTC_API_VIDEO_VIDEO_CONTENT_TYPE_H_ 36 #endif // WEBRTC_API_VIDEO_VIDEO_CONTENT_TYPE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698