| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2004 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 #include "webrtc/media/base/testutils.h" | 11 #include "webrtc/media/base/testutils.h" |
| 12 | 12 |
| 13 #include <math.h> | 13 #include <math.h> |
| 14 #include <algorithm> | 14 #include <algorithm> |
| 15 #include <memory> | 15 #include <memory> |
| 16 | 16 |
| 17 #include "webrtc/api/video/video_frame.h" |
| 17 #include "webrtc/base/bytebuffer.h" | 18 #include "webrtc/base/bytebuffer.h" |
| 18 #include "webrtc/base/fileutils.h" | 19 #include "webrtc/base/fileutils.h" |
| 19 #include "webrtc/base/gunit.h" | 20 #include "webrtc/base/gunit.h" |
| 20 #include "webrtc/base/pathutils.h" | 21 #include "webrtc/base/pathutils.h" |
| 21 #include "webrtc/base/stream.h" | 22 #include "webrtc/base/stream.h" |
| 22 #include "webrtc/base/stringutils.h" | 23 #include "webrtc/base/stringutils.h" |
| 23 #include "webrtc/base/testutils.h" | 24 #include "webrtc/base/testutils.h" |
| 24 #include "webrtc/media/base/rtpdump.h" | 25 #include "webrtc/media/base/rtpdump.h" |
| 25 #include "webrtc/media/base/videocapturer.h" | 26 #include "webrtc/media/base/videocapturer.h" |
| 26 #include "webrtc/video_frame.h" | |
| 27 | 27 |
| 28 namespace cricket { | 28 namespace cricket { |
| 29 | 29 |
| 30 ///////////////////////////////////////////////////////////////////////// | 30 ///////////////////////////////////////////////////////////////////////// |
| 31 // Implementation of RawRtpPacket | 31 // Implementation of RawRtpPacket |
| 32 ///////////////////////////////////////////////////////////////////////// | 32 ///////////////////////////////////////////////////////////////////////// |
| 33 void RawRtpPacket::WriteToByteBuffer(uint32_t in_ssrc, | 33 void RawRtpPacket::WriteToByteBuffer(uint32_t in_ssrc, |
| 34 rtc::ByteBufferWriter* buf) const { | 34 rtc::ByteBufferWriter* buf) const { |
| 35 if (!buf) return; | 35 if (!buf) return; |
| 36 | 36 |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 cricket::StreamParams sp; | 275 cricket::StreamParams sp; |
| 276 cricket::SsrcGroup sg(cricket::kFecFrSsrcGroupSemantics, | 276 cricket::SsrcGroup sg(cricket::kFecFrSsrcGroupSemantics, |
| 277 {primary_ssrc, flexfec_ssrc}); | 277 {primary_ssrc, flexfec_ssrc}); |
| 278 sp.ssrcs = {primary_ssrc}; | 278 sp.ssrcs = {primary_ssrc}; |
| 279 sp.ssrc_groups.push_back(sg); | 279 sp.ssrc_groups.push_back(sg); |
| 280 sp.cname = cname; | 280 sp.cname = cname; |
| 281 return sp; | 281 return sp; |
| 282 } | 282 } |
| 283 | 283 |
| 284 } // namespace cricket | 284 } // namespace cricket |
| OLD | NEW |