Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: webrtc/modules/rtp_rtcp/include/rtp_receiver.h

Issue 1316523002: Convert channel counts to size_t. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Fix compile Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 // Returns a TelephoneEventHandler if available. 55 // Returns a TelephoneEventHandler if available.
56 virtual TelephoneEventHandler* GetTelephoneEventHandler() = 0; 56 virtual TelephoneEventHandler* GetTelephoneEventHandler() = 0;
57 57
58 // Registers a receive payload in the payload registry and notifies the media 58 // Registers a receive payload in the payload registry and notifies the media
59 // receiver strategy. 59 // receiver strategy.
60 virtual int32_t RegisterReceivePayload( 60 virtual int32_t RegisterReceivePayload(
61 const char payload_name[RTP_PAYLOAD_NAME_SIZE], 61 const char payload_name[RTP_PAYLOAD_NAME_SIZE],
62 const int8_t payload_type, 62 const int8_t payload_type,
63 const uint32_t frequency, 63 const uint32_t frequency,
64 const uint8_t channels, 64 const size_t channels,
65 const uint32_t rate) = 0; 65 const uint32_t rate) = 0;
66 66
67 // De-registers |payload_type| from the payload registry. 67 // De-registers |payload_type| from the payload registry.
68 virtual int32_t DeRegisterReceivePayload(const int8_t payload_type) = 0; 68 virtual int32_t DeRegisterReceivePayload(const int8_t payload_type) = 0;
69 69
70 // Parses the media specific parts of an RTP packet and updates the receiver 70 // Parses the media specific parts of an RTP packet and updates the receiver
71 // state. This for instance means that any changes in SSRC and payload type is 71 // state. This for instance means that any changes in SSRC and payload type is
72 // detected and acted upon. 72 // detected and acted upon.
73 virtual bool IncomingRtpPacket(const RTPHeader& rtp_header, 73 virtual bool IncomingRtpPacket(const RTPHeader& rtp_header,
74 const uint8_t* payload, 74 const uint8_t* payload,
(...skipping 19 matching lines...) Expand all
94 94
95 // Returns the current remote CSRCs. 95 // Returns the current remote CSRCs.
96 virtual int32_t CSRCs(uint32_t array_of_csrc[kRtpCsrcSize]) const = 0; 96 virtual int32_t CSRCs(uint32_t array_of_csrc[kRtpCsrcSize]) const = 0;
97 97
98 // Returns the current energy of the RTP stream received. 98 // Returns the current energy of the RTP stream received.
99 virtual int32_t Energy(uint8_t array_of_energy[kRtpCsrcSize]) const = 0; 99 virtual int32_t Energy(uint8_t array_of_energy[kRtpCsrcSize]) const = 0;
100 }; 100 };
101 } // namespace webrtc 101 } // namespace webrtc
102 102
103 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RECEIVER_H_ 103 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RECEIVER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h ('k') | webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698