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 // This file contains the interface to the cast RTP sender. | 5 // This file contains the interface to the cast RTP sender. |
6 | 6 |
7 #ifndef MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ | 7 #ifndef MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ |
8 #define MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ | 8 #define MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // Initialize audio stack. Audio must be initialized prior to sending encoded | 43 // Initialize audio stack. Audio must be initialized prior to sending encoded |
44 // audio frames. Returns false if configuration is invalid. | 44 // audio frames. Returns false if configuration is invalid. |
45 bool InitializeAudio(const CastTransportAudioConfig& config); | 45 bool InitializeAudio(const CastTransportAudioConfig& config); |
46 | 46 |
47 // Initialize video stack. Video must be initialized prior to sending encoded | 47 // Initialize video stack. Video must be initialized prior to sending encoded |
48 // video frames. Returns false if configuration is invalid. | 48 // video frames. Returns false if configuration is invalid. |
49 bool InitializeVideo(const CastTransportVideoConfig& config); | 49 bool InitializeVideo(const CastTransportVideoConfig& config); |
50 | 50 |
51 void SendFrame(const EncodedFrame& frame); | 51 void SendFrame(const EncodedFrame& frame); |
52 | 52 |
53 void ResendPackets(const MissingFramesAndPacketsMap& missing_packets); | 53 void ResendPackets(const MissingFramesAndPacketsMap& missing_packets, |
| 54 bool cancel_rtx_if_not_in_list); |
54 | 55 |
55 size_t send_packet_count() const { | 56 size_t send_packet_count() const { |
56 return packetizer_ ? packetizer_->send_packet_count() : 0; | 57 return packetizer_ ? packetizer_->send_packet_count() : 0; |
57 } | 58 } |
58 size_t send_octet_count() const { | 59 size_t send_octet_count() const { |
59 return packetizer_ ? packetizer_->send_octet_count() : 0; | 60 return packetizer_ ? packetizer_->send_octet_count() : 0; |
60 } | 61 } |
61 uint32 ssrc() const { return config_.ssrc; } | 62 uint32 ssrc() const { return config_.ssrc; } |
62 | 63 |
63 private: | 64 private: |
(...skipping 10 matching lines...) Expand all Loading... |
74 base::WeakPtrFactory<RtpSender> weak_factory_; | 75 base::WeakPtrFactory<RtpSender> weak_factory_; |
75 | 76 |
76 DISALLOW_COPY_AND_ASSIGN(RtpSender); | 77 DISALLOW_COPY_AND_ASSIGN(RtpSender); |
77 }; | 78 }; |
78 | 79 |
79 } // namespace transport | 80 } // namespace transport |
80 } // namespace cast | 81 } // namespace cast |
81 } // namespace media | 82 } // namespace media |
82 | 83 |
83 #endif // MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ | 84 #endif // MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ |
OLD | NEW |