OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "media/cast/rtp_sender/rtp_packetizer/rtp_packetizer.h" | 5 #include "media/cast/net/rtp_sender/rtp_packetizer/rtp_packetizer.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "media/cast/cast_defines.h" | 8 #include "media/cast/cast_defines.h" |
9 #include "media/cast/pacing/paced_sender.h" | 9 #include "media/cast/net/pacing/paced_sender.h" |
10 #include "net/base/big_endian.h" | 10 #include "net/base/big_endian.h" |
11 | 11 |
12 namespace media { | 12 namespace media { |
13 namespace cast { | 13 namespace cast { |
14 | 14 |
15 static const uint16 kCommonRtpHeaderLength = 12; | 15 static const uint16 kCommonRtpHeaderLength = 12; |
16 static const uint16 kCastRtpHeaderLength = 7; | 16 static const uint16 kCastRtpHeaderLength = 7; |
17 static const uint8 kCastKeyFrameBitMask = 0x80; | 17 static const uint8 kCastKeyFrameBitMask = 0x80; |
18 static const uint8 kCastReferenceFrameIdBitMask = 0x40; | 18 static const uint8 kCastReferenceFrameIdBitMask = 0x40; |
19 | 19 |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 packet->resize(start_size + 10); | 144 packet->resize(start_size + 10); |
145 net::BigEndianWriter big_endian_writer(&((*packet)[start_size]), 10); | 145 net::BigEndianWriter big_endian_writer(&((*packet)[start_size]), 10); |
146 big_endian_writer.WriteU16(sequence_number_); | 146 big_endian_writer.WriteU16(sequence_number_); |
147 big_endian_writer.WriteU32(time_stamp); | 147 big_endian_writer.WriteU32(time_stamp); |
148 big_endian_writer.WriteU32(config_.ssrc); | 148 big_endian_writer.WriteU32(config_.ssrc); |
149 ++sequence_number_; | 149 ++sequence_number_; |
150 } | 150 } |
151 | 151 |
152 } // namespace cast | 152 } // namespace cast |
153 } // namespace media | 153 } // namespace media |
OLD | NEW |