OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 26 matching lines...) Expand all Loading... |
37 // provides audio or video-specific data. The is_first_packet argument is true | 37 // provides audio or video-specific data. The is_first_packet argument is true |
38 // if this packet is either the first packet ever or the first in its frame. | 38 // if this packet is either the first packet ever or the first in its frame. |
39 virtual int32_t ParseRtpPacket(WebRtcRTPHeader* rtp_header, | 39 virtual int32_t ParseRtpPacket(WebRtcRTPHeader* rtp_header, |
40 const PayloadUnion& specific_payload, | 40 const PayloadUnion& specific_payload, |
41 bool is_red, | 41 bool is_red, |
42 const uint8_t* payload, | 42 const uint8_t* payload, |
43 size_t payload_length, | 43 size_t payload_length, |
44 int64_t timestamp_ms, | 44 int64_t timestamp_ms, |
45 bool is_first_packet) = 0; | 45 bool is_first_packet) = 0; |
46 | 46 |
47 virtual TelephoneEventHandler* GetTelephoneEventHandler() = 0; | |
48 | |
49 // Retrieves the last known applicable frequency. | 47 // Retrieves the last known applicable frequency. |
50 virtual int GetPayloadTypeFrequency() const = 0; | 48 virtual int GetPayloadTypeFrequency() const = 0; |
51 | 49 |
52 // Computes the current dead-or-alive state. | 50 // Computes the current dead-or-alive state. |
53 virtual RTPAliveType ProcessDeadOrAlive( | 51 virtual RTPAliveType ProcessDeadOrAlive( |
54 uint16_t last_payload_length) const = 0; | 52 uint16_t last_payload_length) const = 0; |
55 | 53 |
56 // Returns true if we should report CSRC changes for this payload type. | 54 // Returns true if we should report CSRC changes for this payload type. |
57 // TODO(phoglund): should move out of here along with other payload stuff. | 55 // TODO(phoglund): should move out of here along with other payload stuff. |
58 virtual bool ShouldReportCsrcChanges(uint8_t payload_type) const = 0; | 56 virtual bool ShouldReportCsrcChanges(uint8_t payload_type) const = 0; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 // packet. | 92 // packet. |
95 explicit RTPReceiverStrategy(RtpData* data_callback); | 93 explicit RTPReceiverStrategy(RtpData* data_callback); |
96 | 94 |
97 rtc::CriticalSection crit_sect_; | 95 rtc::CriticalSection crit_sect_; |
98 PayloadUnion last_payload_; | 96 PayloadUnion last_payload_; |
99 RtpData* data_callback_; | 97 RtpData* data_callback_; |
100 }; | 98 }; |
101 } // namespace webrtc | 99 } // namespace webrtc |
102 | 100 |
103 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RECEIVER_STRATEGY_H_ | 101 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RECEIVER_STRATEGY_H_ |
OLD | NEW |