OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_NET_RTCP_RTCP_BUILDER_H_ | 5 #ifndef MEDIA_CAST_NET_RTCP_RTCP_BUILDER_H_ |
6 #define MEDIA_CAST_NET_RTCP_RTCP_BUILDER_H_ | 6 #define MEDIA_CAST_NET_RTCP_RTCP_BUILDER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 void PatchLengthField(); | 41 void PatchLengthField(); |
42 void AddRR(const RtcpReportBlock* report_block); | 42 void AddRR(const RtcpReportBlock* report_block); |
43 void AddReportBlocks(const RtcpReportBlock& report_block); | 43 void AddReportBlocks(const RtcpReportBlock& report_block); |
44 void AddRrtr(const RtcpReceiverReferenceTimeReport* rrtr); | 44 void AddRrtr(const RtcpReceiverReferenceTimeReport* rrtr); |
45 void AddCast(const RtcpCastMessage* cast_message, | 45 void AddCast(const RtcpCastMessage* cast_message, |
46 base::TimeDelta target_delay); | 46 base::TimeDelta target_delay); |
47 void AddSR(const RtcpSenderInfo& sender_info); | 47 void AddSR(const RtcpSenderInfo& sender_info); |
48 void AddDlrrRb(const RtcpDlrrReportBlock& dlrr); | 48 void AddDlrrRb(const RtcpDlrrReportBlock& dlrr); |
49 void AddReceiverLog( | 49 void AddReceiverLog( |
50 const ReceiverRtcpEventSubscriber::RtcpEvents& rtcp_events); | 50 const ReceiverRtcpEventSubscriber::RtcpEvents& rtcp_events); |
| 51 // Add PLI (picture loss indicator) in Rtcp. |
| 52 void AddPli(const RtcpCastMessage* cast_message); |
51 | 53 |
52 bool GetRtcpReceiverLogMessage( | 54 bool GetRtcpReceiverLogMessage( |
53 const ReceiverRtcpEventSubscriber::RtcpEvents& rtcp_events, | 55 const ReceiverRtcpEventSubscriber::RtcpEvents& rtcp_events, |
54 RtcpReceiverLogMessage* receiver_log_message, | 56 RtcpReceiverLogMessage* receiver_log_message, |
55 size_t* total_number_of_messages_to_send); | 57 size_t* total_number_of_messages_to_send); |
56 | 58 |
57 void Start(); | 59 void Start(); |
58 PacketRef Finish(); | 60 PacketRef Finish(); |
59 | 61 |
60 base::BigEndianWriter writer_; | 62 base::BigEndianWriter writer_; |
61 const uint32_t ssrc_; | 63 const uint32_t ssrc_; |
62 char* ptr_of_length_; | 64 char* ptr_of_length_; |
63 PacketRef packet_; | 65 PacketRef packet_; |
64 | 66 |
65 DISALLOW_COPY_AND_ASSIGN(RtcpBuilder); | 67 DISALLOW_COPY_AND_ASSIGN(RtcpBuilder); |
66 }; | 68 }; |
67 | 69 |
68 } // namespace cast | 70 } // namespace cast |
69 } // namespace media | 71 } // namespace media |
70 | 72 |
71 #endif // MEDIA_CAST_NET_RTCP_RTCP_SENDER_H_ | 73 #endif // MEDIA_CAST_NET_RTCP_RTCP_SENDER_H_ |
OLD | NEW |