OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 | 283 |
284 /* | 284 /* |
285 * Bit number i of extension_bitvector is set to indicate the | 285 * Bit number i of extension_bitvector is set to indicate the |
286 * presence of extension number i from kExtensionTypes / kExtensionNames. | 286 * presence of extension number i from kExtensionTypes / kExtensionNames. |
287 * The least significant bit extension_bitvector has number 0. | 287 * The least significant bit extension_bitvector has number 0. |
288 */ | 288 */ |
289 size_t GenerateRtpPacket(uint32_t extensions_bitvector, | 289 size_t GenerateRtpPacket(uint32_t extensions_bitvector, |
290 uint32_t csrcs_count, | 290 uint32_t csrcs_count, |
291 uint8_t* packet, | 291 uint8_t* packet, |
292 size_t packet_size) { | 292 size_t packet_size) { |
293 CHECK_GE(packet_size, 16 + 4 * csrcs_count + 4 * kNumExtensions); | 293 RTC_CHECK_GE(packet_size, 16 + 4 * csrcs_count + 4 * kNumExtensions); |
294 Clock* clock = Clock::GetRealTimeClock(); | 294 Clock* clock = Clock::GetRealTimeClock(); |
295 | 295 |
296 RTPSender rtp_sender(0, // int32_t id | 296 RTPSender rtp_sender(0, // int32_t id |
297 false, // bool audio | 297 false, // bool audio |
298 clock, // Clock* clock | 298 clock, // Clock* clock |
299 nullptr, // Transport* | 299 nullptr, // Transport* |
300 nullptr, // RtpAudioFeedback* | 300 nullptr, // RtpAudioFeedback* |
301 nullptr, // PacedSender* | 301 nullptr, // PacedSender* |
302 nullptr, // PacketRouter* | 302 nullptr, // PacketRouter* |
303 nullptr, // SendTimeObserver* | 303 nullptr, // SendTimeObserver* |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 extensions, // Bit vector choosing extensions | 538 extensions, // Bit vector choosing extensions |
539 csrcs_count, // Number of contributing sources | 539 csrcs_count, // Number of contributing sources |
540 rand()); | 540 rand()); |
541 } | 541 } |
542 } | 542 } |
543 } | 543 } |
544 | 544 |
545 } // namespace webrtc | 545 } // namespace webrtc |
546 | 546 |
547 #endif // ENABLE_RTC_EVENT_LOG | 547 #endif // ENABLE_RTC_EVENT_LOG |
OLD | NEW |