| 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 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 // Returns size of ARGB image. | 36 // Returns size of ARGB image. |
| 37 #define ARGB_SIZE(w, h) (w * h * 4) | 37 #define ARGB_SIZE(w, h) (w * h * 4) |
| 38 | 38 |
| 39 template <class T> inline std::vector<T> MakeVector(const T a[], size_t s) { | 39 template <class T> inline std::vector<T> MakeVector(const T a[], size_t s) { |
| 40 return std::vector<T>(a, a + s); | 40 return std::vector<T>(a, a + s); |
| 41 } | 41 } |
| 42 #define MAKE_VECTOR(a) cricket::MakeVector(a, arraysize(a)) | 42 #define MAKE_VECTOR(a) cricket::MakeVector(a, arraysize(a)) |
| 43 | 43 |
| 44 struct RtpDumpPacket; | 44 struct RtpDumpPacket; |
| 45 class RtpDumpWriter; | 45 class RtpDumpWriter; |
| 46 class VideoFrame; | |
| 47 | 46 |
| 48 struct RawRtpPacket { | 47 struct RawRtpPacket { |
| 49 void WriteToByteBuffer(uint32_t in_ssrc, rtc::ByteBufferWriter* buf) const; | 48 void WriteToByteBuffer(uint32_t in_ssrc, rtc::ByteBufferWriter* buf) const; |
| 50 bool ReadFromByteBuffer(rtc::ByteBufferReader* buf); | 49 bool ReadFromByteBuffer(rtc::ByteBufferReader* buf); |
| 51 // Check if this packet is the same as the specified packet except the | 50 // Check if this packet is the same as the specified packet except the |
| 52 // sequence number and timestamp, which should be the same as the specified | 51 // sequence number and timestamp, which should be the same as the specified |
| 53 // parameters. | 52 // parameters. |
| 54 bool SameExceptSeqNumTimestampSsrc(const RawRtpPacket& packet, | 53 bool SameExceptSeqNumTimestampSsrc(const RawRtpPacket& packet, |
| 55 uint16_t seq, | 54 uint16_t seq, |
| 56 uint32_t ts, | 55 uint32_t ts, |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 // Create Simulcast stream with given |ssrcs| and |rtx_ssrcs|. | 184 // Create Simulcast stream with given |ssrcs| and |rtx_ssrcs|. |
| 186 // The number of |rtx_ssrcs| must match number of |ssrcs|. | 185 // The number of |rtx_ssrcs| must match number of |ssrcs|. |
| 187 cricket::StreamParams CreateSimWithRtxStreamParams( | 186 cricket::StreamParams CreateSimWithRtxStreamParams( |
| 188 const std::string& cname, | 187 const std::string& cname, |
| 189 const std::vector<uint32_t>& ssrcs, | 188 const std::vector<uint32_t>& ssrcs, |
| 190 const std::vector<uint32_t>& rtx_ssrcs); | 189 const std::vector<uint32_t>& rtx_ssrcs); |
| 191 | 190 |
| 192 } // namespace cricket | 191 } // namespace cricket |
| 193 | 192 |
| 194 #endif // WEBRTC_MEDIA_BASE_TESTUTILS_H_ | 193 #endif // WEBRTC_MEDIA_BASE_TESTUTILS_H_ |
| OLD | NEW |