| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 RTPPayloadRegistry* rtp_payload_registry); | 52 RTPPayloadRegistry* rtp_payload_registry); |
| 53 | 53 |
| 54 virtual ~RtpReceiver() {} | 54 virtual ~RtpReceiver() {} |
| 55 | 55 |
| 56 // Returns a TelephoneEventHandler if available. | 56 // Returns a TelephoneEventHandler if available. |
| 57 virtual TelephoneEventHandler* GetTelephoneEventHandler() = 0; | 57 virtual TelephoneEventHandler* GetTelephoneEventHandler() = 0; |
| 58 | 58 |
| 59 // Registers a receive payload in the payload registry and notifies the media | 59 // Registers a receive payload in the payload registry and notifies the media |
| 60 // receiver strategy. | 60 // receiver strategy. |
| 61 virtual int32_t RegisterReceivePayload(const CodecInst& audio_codec) = 0; | 61 virtual int32_t RegisterReceivePayload(const CodecInst& audio_codec) = 0; |
| 62 // Registers a receive payload in the payload registry. |
| 63 virtual int32_t RegisterReceivePayload(const VideoCodec& video_codec) = 0; |
| 62 // TODO(magjed): Remove once external code is updated. | 64 // TODO(magjed): Remove once external code is updated. |
| 63 virtual int32_t RegisterReceivePayload( | 65 virtual int32_t RegisterReceivePayload( |
| 64 const char payload_name[RTP_PAYLOAD_NAME_SIZE], | 66 const char payload_name[RTP_PAYLOAD_NAME_SIZE], |
| 65 const int8_t payload_type, | 67 const int8_t payload_type, |
| 66 const uint32_t frequency, | 68 const uint32_t frequency, |
| 67 const size_t channels, | 69 const size_t channels, |
| 68 const uint32_t rate) = 0; | 70 const uint32_t rate) = 0; |
| 69 | 71 |
| 70 // De-registers |payload_type| from the payload registry. | 72 // De-registers |payload_type| from the payload registry. |
| 71 virtual int32_t DeRegisterReceivePayload(const int8_t payload_type) = 0; | 73 virtual int32_t DeRegisterReceivePayload(const int8_t payload_type) = 0; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 91 | 93 |
| 92 // Returns the current remote CSRCs. | 94 // Returns the current remote CSRCs. |
| 93 virtual int32_t CSRCs(uint32_t array_of_csrc[kRtpCsrcSize]) const = 0; | 95 virtual int32_t CSRCs(uint32_t array_of_csrc[kRtpCsrcSize]) const = 0; |
| 94 | 96 |
| 95 // Returns the current energy of the RTP stream received. | 97 // Returns the current energy of the RTP stream received. |
| 96 virtual int32_t Energy(uint8_t array_of_energy[kRtpCsrcSize]) const = 0; | 98 virtual int32_t Energy(uint8_t array_of_energy[kRtpCsrcSize]) const = 0; |
| 97 }; | 99 }; |
| 98 } // namespace webrtc | 100 } // namespace webrtc |
| 99 | 101 |
| 100 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RECEIVER_H_ | 102 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RECEIVER_H_ |
| OLD | NEW |