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_MODULES_INCLUDE_MODULE_COMMON_TYPES_H_ | 11 #ifndef WEBRTC_MODULES_INCLUDE_MODULE_COMMON_TYPES_H_ |
12 #define WEBRTC_MODULES_INCLUDE_MODULE_COMMON_TYPES_H_ | 12 #define WEBRTC_MODULES_INCLUDE_MODULE_COMMON_TYPES_H_ |
13 | 13 |
14 #include <assert.h> | 14 #include <assert.h> |
15 #include <string.h> // memcpy | 15 #include <string.h> // memcpy |
16 | 16 |
17 #include <algorithm> | 17 #include <algorithm> |
18 #include <limits> | 18 #include <limits> |
19 | 19 |
20 #include "webrtc/api/video/video_rotation.h" | 20 #include "webrtc/api/video/video_rotation.h" |
| 21 #include "webrtc/base/constructormagic.h" |
| 22 #include "webrtc/base/deprecation.h" |
| 23 #include "webrtc/base/optional.h" |
| 24 #include "webrtc/base/safe_conversions.h" |
21 #include "webrtc/common_types.h" | 25 #include "webrtc/common_types.h" |
22 #include "webrtc/modules/video_coding/codecs/h264/include/h264_globals.h" | 26 #include "webrtc/modules/video_coding/codecs/h264/include/h264_globals.h" |
23 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8_globals.h" | 27 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8_globals.h" |
24 #include "webrtc/modules/video_coding/codecs/vp9/include/vp9_globals.h" | 28 #include "webrtc/modules/video_coding/codecs/vp9/include/vp9_globals.h" |
25 #include "webrtc/rtc_base/constructormagic.h" | |
26 #include "webrtc/rtc_base/deprecation.h" | |
27 #include "webrtc/rtc_base/optional.h" | |
28 #include "webrtc/rtc_base/safe_conversions.h" | |
29 #include "webrtc/typedefs.h" | 29 #include "webrtc/typedefs.h" |
30 | 30 |
31 namespace webrtc { | 31 namespace webrtc { |
32 | 32 |
33 struct RTPAudioHeader { | 33 struct RTPAudioHeader { |
34 uint8_t numEnergy; // number of valid entries in arrOfEnergy | 34 uint8_t numEnergy; // number of valid entries in arrOfEnergy |
35 uint8_t arrOfEnergy[kRtpCsrcSize]; // one energy byte (0-9) per channel | 35 uint8_t arrOfEnergy[kRtpCsrcSize]; // one energy byte (0-9) per channel |
36 bool isCNG; // is this CNG | 36 bool isCNG; // is this CNG |
37 size_t channel; // number of channels 2 = stereo | 37 size_t channel; // number of channels 2 = stereo |
38 }; | 38 }; |
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 static constexpr int kNotAProbe = -1; | 613 static constexpr int kNotAProbe = -1; |
614 int send_bitrate_bps = -1; | 614 int send_bitrate_bps = -1; |
615 int probe_cluster_id = kNotAProbe; | 615 int probe_cluster_id = kNotAProbe; |
616 int probe_cluster_min_probes = -1; | 616 int probe_cluster_min_probes = -1; |
617 int probe_cluster_min_bytes = -1; | 617 int probe_cluster_min_bytes = -1; |
618 }; | 618 }; |
619 | 619 |
620 } // namespace webrtc | 620 } // namespace webrtc |
621 | 621 |
622 #endif // WEBRTC_MODULES_INCLUDE_MODULE_COMMON_TYPES_H_ | 622 #endif // WEBRTC_MODULES_INCLUDE_MODULE_COMMON_TYPES_H_ |
OLD | NEW |