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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.h

Issue 2531043002: Reland of move RTPPayloadStrategy and simplify RTPPayloadRegistry (Closed)
Patch Set: Remove deprecated RegisterReceivePayload function in RtpReceiver Created 4 years 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 17 matching lines...) Expand all
28 // receiver but nothing else. 28 // receiver but nothing else.
29 RtpReceiverImpl(Clock* clock, 29 RtpReceiverImpl(Clock* clock,
30 RtpFeedback* incoming_messages_callback, 30 RtpFeedback* incoming_messages_callback,
31 RTPPayloadRegistry* rtp_payload_registry, 31 RTPPayloadRegistry* rtp_payload_registry,
32 RTPReceiverStrategy* rtp_media_receiver); 32 RTPReceiverStrategy* rtp_media_receiver);
33 33
34 virtual ~RtpReceiverImpl(); 34 virtual ~RtpReceiverImpl();
35 35
36 int32_t RegisterReceivePayload(const CodecInst& audio_codec) override; 36 int32_t RegisterReceivePayload(const CodecInst& audio_codec) override;
37 int32_t RegisterReceivePayload(const VideoCodec& video_codec) override; 37 int32_t RegisterReceivePayload(const VideoCodec& video_codec) override;
38 // TODO(magjed): Remove once external code is updated.
39 int32_t RegisterReceivePayload(const char payload_name[RTP_PAYLOAD_NAME_SIZE],
40 const int8_t payload_type,
41 const uint32_t frequency,
42 const size_t channels,
43 const uint32_t rate) override;
44 38
45 int32_t DeRegisterReceivePayload(const int8_t payload_type) override; 39 int32_t DeRegisterReceivePayload(const int8_t payload_type) override;
46 40
47 bool IncomingRtpPacket(const RTPHeader& rtp_header, 41 bool IncomingRtpPacket(const RTPHeader& rtp_header,
48 const uint8_t* payload, 42 const uint8_t* payload,
49 size_t payload_length, 43 size_t payload_length,
50 PayloadUnion payload_specific, 44 PayloadUnion payload_specific,
51 bool in_order) override; 45 bool in_order) override;
52 46
53 // Returns the last received timestamp. 47 // Returns the last received timestamp.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 uint32_t ssrc_; 80 uint32_t ssrc_;
87 uint8_t num_csrcs_; 81 uint8_t num_csrcs_;
88 uint32_t current_remote_csrc_[kRtpCsrcSize]; 82 uint32_t current_remote_csrc_[kRtpCsrcSize];
89 83
90 uint32_t last_received_timestamp_; 84 uint32_t last_received_timestamp_;
91 int64_t last_received_frame_time_ms_; 85 int64_t last_received_frame_time_ms_;
92 uint16_t last_received_sequence_number_; 86 uint16_t last_received_sequence_number_;
93 }; 87 };
94 } // namespace webrtc 88 } // namespace webrtc
95 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RECEIVER_IMPL_H_ 89 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RECEIVER_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h ('k') | webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698