| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2010 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 22 matching lines...) Expand all Loading... |
| 33 PF_NONE = 0x0, | 33 PF_NONE = 0x0, |
| 34 PF_RTPHEADER = 0x1, | 34 PF_RTPHEADER = 0x1, |
| 35 PF_RTPPACKET = 0x3, // includes header | 35 PF_RTPPACKET = 0x3, // includes header |
| 36 // PF_RTCPHEADER = 0x4, // TODO(juberti) | 36 // PF_RTCPHEADER = 0x4, // TODO(juberti) |
| 37 PF_RTCPPACKET = 0xC, // includes header | 37 PF_RTCPPACKET = 0xC, // includes header |
| 38 PF_ALL = 0xF | 38 PF_ALL = 0xF |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 struct RtpDumpFileHeader { | 41 struct RtpDumpFileHeader { |
| 42 RtpDumpFileHeader(uint32_t start_ms, uint32_t s, uint16_t p); | 42 RtpDumpFileHeader(uint32_t start_ms, uint32_t s, uint16_t p); |
| 43 void WriteToByteBuffer(rtc::ByteBuffer* buf); | 43 void WriteToByteBuffer(rtc::ByteBufferWriter* buf); |
| 44 | 44 |
| 45 static const char kFirstLine[]; | 45 static const char kFirstLine[]; |
| 46 static const size_t kHeaderLength = 16; | 46 static const size_t kHeaderLength = 16; |
| 47 uint32_t start_sec; // start of recording, the seconds part. | 47 uint32_t start_sec; // start of recording, the seconds part. |
| 48 uint32_t start_usec; // start of recording, the microseconds part. | 48 uint32_t start_usec; // start of recording, the microseconds part. |
| 49 uint32_t source; // network source (multicast address). | 49 uint32_t source; // network source (multicast address). |
| 50 uint16_t port; // UDP port. | 50 uint16_t port; // UDP port. |
| 51 uint16_t padding; // 2 bytes padding. | 51 uint16_t padding; // 2 bytes padding. |
| 52 }; | 52 }; |
| 53 | 53 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 bool file_header_written_; | 208 bool file_header_written_; |
| 209 uint32_t start_time_ms_; // Time when the record starts. | 209 uint32_t start_time_ms_; // Time when the record starts. |
| 210 // If writing to the stream takes longer than this many ms, log a warning. | 210 // If writing to the stream takes longer than this many ms, log a warning. |
| 211 uint32_t warn_slow_writes_delay_; | 211 uint32_t warn_slow_writes_delay_; |
| 212 RTC_DISALLOW_COPY_AND_ASSIGN(RtpDumpWriter); | 212 RTC_DISALLOW_COPY_AND_ASSIGN(RtpDumpWriter); |
| 213 }; | 213 }; |
| 214 | 214 |
| 215 } // namespace cricket | 215 } // namespace cricket |
| 216 | 216 |
| 217 #endif // WEBRTC_MEDIA_BASE_RTPDUMP_H_ | 217 #endif // WEBRTC_MEDIA_BASE_RTPDUMP_H_ |
| OLD | NEW |