OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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_VIDEO_CODING_SOURCE_INTERNAL_DEFINES_H_ | 11 #ifndef WEBRTC_MODULES_VIDEO_CODING_INTERNAL_DEFINES_H_ |
12 #define WEBRTC_MODULES_VIDEO_CODING_SOURCE_INTERNAL_DEFINES_H_ | 12 #define WEBRTC_MODULES_VIDEO_CODING_INTERNAL_DEFINES_H_ |
13 | 13 |
14 #include "webrtc/typedefs.h" | 14 #include "webrtc/typedefs.h" |
15 | 15 |
16 namespace webrtc | 16 namespace webrtc |
17 { | 17 { |
18 | 18 |
19 #define MASK_32_BITS(x) (0xFFFFFFFF & (x)) | 19 #define MASK_32_BITS(x) (0xFFFFFFFF & (x)) |
20 | 20 |
21 inline uint32_t MaskWord64ToUWord32(int64_t w64) | 21 inline uint32_t MaskWord64ToUWord32(int64_t w64) |
22 { | 22 { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 #define VCM_NO_RECEIVER_ID 0 | 59 #define VCM_NO_RECEIVER_ID 0 |
60 | 60 |
61 inline int32_t VCMId(const int32_t vcmId, const int32_t receiverId = 0) | 61 inline int32_t VCMId(const int32_t vcmId, const int32_t receiverId = 0) |
62 { | 62 { |
63 return static_cast<int32_t>((vcmId << 16) + receiverId); | 63 return static_cast<int32_t>((vcmId << 16) + receiverId); |
64 } | 64 } |
65 | 65 |
66 } // namespace webrtc | 66 } // namespace webrtc |
67 | 67 |
68 #endif // WEBRTC_MODULES_VIDEO_CODING_SOURCE_INTERNAL_DEFINES_H_ | 68 #endif // WEBRTC_MODULES_VIDEO_CODING_INTERNAL_DEFINES_H_ |
OLD | NEW |