Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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_COMMON_TYPES_H_ | 11 #ifndef WEBRTC_COMMON_TYPES_H_ |
| 12 #define WEBRTC_COMMON_TYPES_H_ | 12 #define WEBRTC_COMMON_TYPES_H_ |
| 13 | 13 |
| 14 #include <stddef.h> | 14 #include <stddef.h> |
| 15 #include <string.h> | 15 #include <string.h> |
| 16 | 16 |
| 17 #include <ostream> | 17 #include <ostream> |
| 18 #include <string> | 18 #include <string> |
| 19 #include <vector> | 19 #include <vector> |
| 20 | 20 |
| 21 #include "webrtc/api/video/video_rotation.h" | 21 #include "webrtc/api/video/video_rotation.h" |
| 22 #include "webrtc/api/video/video_content_type.h" | |
| 22 #include "webrtc/base/checks.h" | 23 #include "webrtc/base/checks.h" |
| 23 #include "webrtc/base/optional.h" | 24 #include "webrtc/base/optional.h" |
| 24 #include "webrtc/typedefs.h" | 25 #include "webrtc/typedefs.h" |
| 25 | 26 |
| 26 #if defined(_MSC_VER) | 27 #if defined(_MSC_VER) |
| 27 // Disable "new behavior: elements of array will be default initialized" | 28 // Disable "new behavior: elements of array will be default initialized" |
| 28 // warning. Affects OverUseDetectorOptions. | 29 // warning. Affects OverUseDetectorOptions. |
| 29 #pragma warning(disable : 4351) | 30 #pragma warning(disable : 4351) |
| 30 #endif | 31 #endif |
| 31 | 32 |
| (...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 709 bool hasAudioLevel; | 710 bool hasAudioLevel; |
| 710 bool voiceActivity; | 711 bool voiceActivity; |
| 711 uint8_t audioLevel; | 712 uint8_t audioLevel; |
| 712 | 713 |
| 713 // For Coordination of Video Orientation. See | 714 // For Coordination of Video Orientation. See |
| 714 // http://www.etsi.org/deliver/etsi_ts/126100_126199/126114/12.07.00_60/ | 715 // http://www.etsi.org/deliver/etsi_ts/126100_126199/126114/12.07.00_60/ |
| 715 // ts_126114v120700p.pdf | 716 // ts_126114v120700p.pdf |
| 716 bool hasVideoRotation; | 717 bool hasVideoRotation; |
| 717 VideoRotation videoRotation; | 718 VideoRotation videoRotation; |
| 718 | 719 |
| 720 // TODO(ilnik): Refactor this and one above to be rtc::Optional() and remove | |
| 721 // a corresponding bool flag. | |
|
nisse-webrtc
2017/04/03 12:07:18
Can you do that in this cl? Should be an easy clea
ilnik
2017/04/03 14:03:42
The rotation is set up as a 0 if not present while
| |
| 722 bool hasVideoContentType; | |
| 723 VideoContentType videoContentType; | |
| 724 | |
| 719 PlayoutDelay playout_delay = {-1, -1}; | 725 PlayoutDelay playout_delay = {-1, -1}; |
| 720 }; | 726 }; |
| 721 | 727 |
| 722 struct RTPHeader { | 728 struct RTPHeader { |
| 723 RTPHeader(); | 729 RTPHeader(); |
| 724 | 730 |
| 725 bool markerBit; | 731 bool markerBit; |
| 726 uint8_t payloadType; | 732 uint8_t payloadType; |
| 727 uint16_t sequenceNumber; | 733 uint16_t sequenceNumber; |
| 728 uint32_t timestamp; | 734 uint32_t timestamp; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 835 enum class RtcpMode { kOff, kCompound, kReducedSize }; | 841 enum class RtcpMode { kOff, kCompound, kReducedSize }; |
| 836 | 842 |
| 837 enum NetworkState { | 843 enum NetworkState { |
| 838 kNetworkUp, | 844 kNetworkUp, |
| 839 kNetworkDown, | 845 kNetworkDown, |
| 840 }; | 846 }; |
| 841 | 847 |
| 842 } // namespace webrtc | 848 } // namespace webrtc |
| 843 | 849 |
| 844 #endif // WEBRTC_COMMON_TYPES_H_ | 850 #endif // WEBRTC_COMMON_TYPES_H_ |
| OLD | NEW |