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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 std::vector<uint32_t> fid_ssrcs; | 262 std::vector<uint32_t> fid_ssrcs; |
263 fid_ssrcs.push_back(ssrcs[i]); | 263 fid_ssrcs.push_back(ssrcs[i]); |
264 fid_ssrcs.push_back(rtx_ssrcs[i]); | 264 fid_ssrcs.push_back(rtx_ssrcs[i]); |
265 cricket::SsrcGroup fid_group(cricket::kFidSsrcGroupSemantics, fid_ssrcs); | 265 cricket::SsrcGroup fid_group(cricket::kFidSsrcGroupSemantics, fid_ssrcs); |
266 sp.ssrc_groups.push_back(fid_group); | 266 sp.ssrc_groups.push_back(fid_group); |
267 } | 267 } |
268 return sp; | 268 return sp; |
269 } | 269 } |
270 | 270 |
271 } // namespace cricket | 271 } // namespace cricket |
OLD | NEW |