1 /* 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. 3 * 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 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 #ifndef API_VIDEO_VIDEO_CONTENT_TYPE_H_ 12 #define API_VIDEO_VIDEO_CONTENT_TYPE_H_ 13 14 #include <stdint.h> 15 16 namespace webrtc { 17 18 enum class VideoContentType : uint8_t { 19 UNSPECIFIED = 0, 20 SCREENSHARE = 1, 21 }; 22 23 namespace videocontenttypehelpers { 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 34 const char* ToString(const VideoContentType& content_type); 35 } // namespace videocontenttypehelpers 36 37 } // namespace webrtc 38 39 #endif // API_VIDEO_VIDEO_CONTENT_TYPE_H_ 40