Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(549)

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h

Issue 2609783002: Reland of place basictypes.h with stdint.h for int_t types. (Closed)
Patch Set: add basictypes.h to systeminfo.cc Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 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 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_ 10 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_
11 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_ 11 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_
12 12
13 #include "webrtc/base/basictypes.h" 13 #include <stdint.h>
14
14 #include "webrtc/common_video/rotation.h" 15 #include "webrtc/common_video/rotation.h"
15 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" 16 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
16 17
17 namespace webrtc { 18 namespace webrtc {
18 19
19 class AbsoluteSendTime { 20 class AbsoluteSendTime {
20 public: 21 public:
21 static constexpr RTPExtensionType kId = kRtpExtensionAbsoluteSendTime; 22 static constexpr RTPExtensionType kId = kRtpExtensionAbsoluteSendTime;
22 static constexpr uint8_t kValueSizeBytes = 3; 23 static constexpr uint8_t kValueSizeBytes = 3;
23 static constexpr const char* kUri = 24 static constexpr const char* kUri =
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 static constexpr int kGranularityMs = 10; 91 static constexpr int kGranularityMs = 10;
91 // Maximum playout delay value in milliseconds. 92 // Maximum playout delay value in milliseconds.
92 static constexpr int kMaxMs = 0xfff * kGranularityMs; // 40950. 93 static constexpr int kMaxMs = 0xfff * kGranularityMs; // 40950.
93 94
94 static bool Parse(const uint8_t* data, PlayoutDelay* playout_delay); 95 static bool Parse(const uint8_t* data, PlayoutDelay* playout_delay);
95 static bool Write(uint8_t* data, const PlayoutDelay& playout_delay); 96 static bool Write(uint8_t* data, const PlayoutDelay& playout_delay);
96 }; 97 };
97 98
98 } // namespace webrtc 99 } // namespace webrtc
99 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_ 100 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/playout_delay_oracle.h ('k') | webrtc/modules/rtp_rtcp/source/time_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698