| 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/api/video/video_frame.h" |
| 18 #include "webrtc/base/bytebuffer.h" | |
| 19 #include "webrtc/base/fileutils.h" | |
| 20 #include "webrtc/base/gunit.h" | |
| 21 #include "webrtc/base/pathutils.h" | |
| 22 #include "webrtc/base/stream.h" | |
| 23 #include "webrtc/base/stringutils.h" | |
| 24 #include "webrtc/base/testutils.h" | |
| 25 #include "webrtc/media/base/videocapturer.h" | 18 #include "webrtc/media/base/videocapturer.h" |
| 19 #include "webrtc/rtc_base/bytebuffer.h" |
| 20 #include "webrtc/rtc_base/fileutils.h" |
| 21 #include "webrtc/rtc_base/gunit.h" |
| 22 #include "webrtc/rtc_base/pathutils.h" |
| 23 #include "webrtc/rtc_base/stream.h" |
| 24 #include "webrtc/rtc_base/stringutils.h" |
| 25 #include "webrtc/rtc_base/testutils.h" |
| 26 | 26 |
| 27 namespace cricket { | 27 namespace cricket { |
| 28 | 28 |
| 29 ///////////////////////////////////////////////////////////////////////// | 29 ///////////////////////////////////////////////////////////////////////// |
| 30 // Implementation of RawRtpPacket | 30 // Implementation of RawRtpPacket |
| 31 ///////////////////////////////////////////////////////////////////////// | 31 ///////////////////////////////////////////////////////////////////////// |
| 32 void RawRtpPacket::WriteToByteBuffer(uint32_t in_ssrc, | 32 void RawRtpPacket::WriteToByteBuffer(uint32_t in_ssrc, |
| 33 rtc::ByteBufferWriter* buf) const { | 33 rtc::ByteBufferWriter* buf) const { |
| 34 if (!buf) return; | 34 if (!buf) return; |
| 35 | 35 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 cricket::StreamParams sp; | 163 cricket::StreamParams sp; |
| 164 cricket::SsrcGroup sg(cricket::kFecFrSsrcGroupSemantics, | 164 cricket::SsrcGroup sg(cricket::kFecFrSsrcGroupSemantics, |
| 165 {primary_ssrc, flexfec_ssrc}); | 165 {primary_ssrc, flexfec_ssrc}); |
| 166 sp.ssrcs = {primary_ssrc}; | 166 sp.ssrcs = {primary_ssrc}; |
| 167 sp.ssrc_groups.push_back(sg); | 167 sp.ssrc_groups.push_back(sg); |
| 168 sp.cname = cname; | 168 sp.cname = cname; |
| 169 return sp; | 169 return sp; |
| 170 } | 170 } |
| 171 | 171 |
| 172 } // namespace cricket | 172 } // namespace cricket |
| OLD | NEW |