| 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 #ifndef MEDIA_CAST_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_H_ | 5 #ifndef MEDIA_CAST_NET_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_H_ |
| 6 #define MEDIA_CAST_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_H_ | 6 #define MEDIA_CAST_NET_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_H_ |
| 7 | 7 |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| 11 | 11 |
| 12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 13 #include "media/cast/rtp_common/rtp_defines.h" | 13 #include "media/cast/net/rtp_sender/packet_storage/packet_storage.h" |
| 14 #include "media/cast/rtp_sender/packet_storage/packet_storage.h" | 14 #include "media/cast/net/rtp_sender/rtp_packetizer/rtp_packetizer_config.h" |
| 15 #include "media/cast/rtp_sender/rtp_packetizer/rtp_packetizer_config.h" | |
| 16 | 15 |
| 17 namespace media { | 16 namespace media { |
| 18 namespace cast { | 17 namespace cast { |
| 19 | 18 |
| 20 class PacedPacketSender; | 19 class PacedPacketSender; |
| 21 | 20 |
| 22 // This object is only called from the main cast thread. | 21 // This object is only called from the main cast thread. |
| 23 // This class break encoded audio and video frames into packets and add an RTP | 22 // This class break encoded audio and video frames into packets and add an RTP |
| 24 // header to each packet. | 23 // header to each packet. |
| 25 class RtpPacketizer { | 24 class RtpPacketizer { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 uint32 rtp_timestamp_; | 63 uint32 rtp_timestamp_; |
| 65 uint16 packet_id_; | 64 uint16 packet_id_; |
| 66 | 65 |
| 67 int send_packets_count_; | 66 int send_packets_count_; |
| 68 size_t send_octet_count_; | 67 size_t send_octet_count_; |
| 69 }; | 68 }; |
| 70 | 69 |
| 71 } // namespace cast | 70 } // namespace cast |
| 72 } // namespace media | 71 } // namespace media |
| 73 | 72 |
| 74 #endif // MEDIA_CAST_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_H_ | 73 #endif // MEDIA_CAST_NET_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_H_ |
| OLD | NEW |