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 <assert.h> | 14 #include <assert.h> |
15 #include <stddef.h> | 15 #include <stddef.h> |
16 #include <string.h> | 16 #include <string.h> |
17 | 17 |
18 #include <string> | 18 #include <string> |
19 #include <vector> | 19 #include <vector> |
20 | 20 |
21 #include "webrtc/common_video/rotation.h" | 21 #include "webrtc/common_video/rotation.h" |
22 #include "webrtc/typedefs.h" | 22 #include "webrtc/typedefs.h" |
23 | 23 |
24 #if defined(_MSC_VER) | 24 #if defined(_MSC_VER) |
25 // Disable "new behavior: elements of array will be default initialized" | 25 // Disable "new behavior: elements of array will be default initialized" |
26 // warning. Affects OverUseDetectorOptions. | 26 // warning. Affects OverUseDetectorOptions. |
27 #pragma warning(disable : 4351) | 27 #pragma warning(disable : 4351) |
28 #endif | 28 #endif |
29 | 29 |
30 #ifdef WEBRTC_EXPORT | 30 #if defined(WEBRTC_EXPORT) |
31 #define WEBRTC_DLLEXPORT _declspec(dllexport) | 31 #define WEBRTC_DLLEXPORT _declspec(dllexport) |
32 #elif WEBRTC_DLL | 32 #elif defined(WEBRTC_DLL) |
33 #define WEBRTC_DLLEXPORT _declspec(dllimport) | 33 #define WEBRTC_DLLEXPORT _declspec(dllimport) |
34 #else | 34 #else |
35 #define WEBRTC_DLLEXPORT | 35 #define WEBRTC_DLLEXPORT |
36 #endif | 36 #endif |
37 | 37 |
38 #ifndef NULL | 38 #ifndef NULL |
39 #define NULL 0 | 39 #define NULL 0 |
40 #endif | 40 #endif |
41 | 41 |
42 #define RTP_PAYLOAD_NAME_SIZE 32u | 42 #define RTP_PAYLOAD_NAME_SIZE 32u |
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
821 enum class RtcpMode { kOff, kCompound, kReducedSize }; | 821 enum class RtcpMode { kOff, kCompound, kReducedSize }; |
822 | 822 |
823 enum NetworkState { | 823 enum NetworkState { |
824 kNetworkUp, | 824 kNetworkUp, |
825 kNetworkDown, | 825 kNetworkDown, |
826 }; | 826 }; |
827 | 827 |
828 } // namespace webrtc | 828 } // namespace webrtc |
829 | 829 |
830 #endif // WEBRTC_COMMON_TYPES_H_ | 830 #endif // WEBRTC_COMMON_TYPES_H_ |
OLD | NEW |