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

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

Issue 1726403003: [cleanup] Remove unused fields/functions from rtcp module. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 294
295 bool LastReceivedXrReferenceTimeInfo(RtcpReceiveTimeInfo* info) const; 295 bool LastReceivedXrReferenceTimeInfo(RtcpReceiveTimeInfo* info) const;
296 296
297 int32_t BoundingSet(bool* tmmbr_owner, TMMBRSet* bounding_set_rec); 297 int32_t BoundingSet(bool* tmmbr_owner, TMMBRSet* bounding_set_rec);
298 298
299 void BitrateSent(uint32_t* total_rate, 299 void BitrateSent(uint32_t* total_rate,
300 uint32_t* video_rate, 300 uint32_t* video_rate,
301 uint32_t* fec_rate, 301 uint32_t* fec_rate,
302 uint32_t* nackRate) const override; 302 uint32_t* nackRate) const override;
303 303
304 int64_t SendTimeOfSendReport(uint32_t send_report);
305
306 bool SendTimeOfXrRrReport(uint32_t mid_ntp, int64_t* time_ms) const;
307
308 // Good state of RTP receiver inform sender. 304 // Good state of RTP receiver inform sender.
309 int32_t SendRTCPReferencePictureSelection(uint64_t picture_id) override; 305 int32_t SendRTCPReferencePictureSelection(uint64_t picture_id) override;
310 306
311 void RegisterSendChannelRtpStatisticsCallback( 307 void RegisterSendChannelRtpStatisticsCallback(
312 StreamDataCountersCallback* callback) override; 308 StreamDataCountersCallback* callback) override;
313 StreamDataCountersCallback* GetSendChannelRtpStatisticsCallback() 309 StreamDataCountersCallback* GetSendChannelRtpStatisticsCallback()
314 const override; 310 const override;
315 311
316 void OnReceivedTMMBR();
317
318 // Bad state of RTP receiver request a keyframe.
319 void OnRequestIntraFrame();
320
321 // Received a request for a new SLI.
322 void OnReceivedSliceLossIndication(uint8_t picture_id);
323
324 // Received a new reference frame.
325 void OnReceivedReferencePictureSelectionIndication(uint64_t picture_id);
326
327 void OnReceivedNACK(const std::list<uint16_t>& nack_sequence_numbers); 312 void OnReceivedNACK(const std::list<uint16_t>& nack_sequence_numbers);
328 313
329 void OnRequestSendReport(); 314 void OnRequestSendReport();
330 315
331 protected: 316 protected:
332 bool UpdateRTCPReceiveInformationTimers(); 317 bool UpdateRTCPReceiveInformationTimers();
333 318
334 uint32_t BitrateReceivedNow() const;
335
336 // Get remote SequenceNumber.
337 uint16_t RemoteSequenceNumber() const;
338
339 RTPSender rtp_sender_; 319 RTPSender rtp_sender_;
340 320
341 RTCPSender rtcp_sender_; 321 RTCPSender rtcp_sender_;
342 RTCPReceiver rtcp_receiver_; 322 RTCPReceiver rtcp_receiver_;
343 323
344 Clock* clock_; 324 Clock* clock_;
345 325
346 private: 326 private:
347 FRIEND_TEST_ALL_PREFIXES(RtpRtcpImplTest, Rtt); 327 FRIEND_TEST_ALL_PREFIXES(RtpRtcpImplTest, Rtt);
348 FRIEND_TEST_ALL_PREFIXES(RtpRtcpImplTest, RttForReceiverOnly); 328 FRIEND_TEST_ALL_PREFIXES(RtpRtcpImplTest, RttForReceiverOnly);
349 int64_t RtcpReportInterval(); 329 int64_t RtcpReportInterval();
350 void SetRtcpReceiverSsrcs(uint32_t main_ssrc); 330 void SetRtcpReceiverSsrcs(uint32_t main_ssrc);
351 331
352 void set_rtt_ms(int64_t rtt_ms); 332 void set_rtt_ms(int64_t rtt_ms);
353 int64_t rtt_ms() const; 333 int64_t rtt_ms() const;
354 334
355 bool TimeToSendFullNackList(int64_t now) const; 335 bool TimeToSendFullNackList(int64_t now) const;
356 336
357 const bool audio_; 337 const bool audio_;
358 bool collision_detected_; 338 bool collision_detected_;
359 int64_t last_process_time_; 339 int64_t last_process_time_;
360 int64_t last_bitrate_process_time_; 340 int64_t last_bitrate_process_time_;
361 int64_t last_rtt_process_time_; 341 int64_t last_rtt_process_time_;
362 uint16_t packet_overhead_; 342 uint16_t packet_overhead_;
363 343
364 size_t padding_index_;
365
366 // Send side 344 // Send side
367 NACKMethod nack_method_;
368 int64_t nack_last_time_sent_full_; 345 int64_t nack_last_time_sent_full_;
369 uint32_t nack_last_time_sent_full_prev_; 346 uint32_t nack_last_time_sent_full_prev_;
370 uint16_t nack_last_seq_number_sent_; 347 uint16_t nack_last_seq_number_sent_;
371 348
372 VideoCodec send_video_codec_;
373 KeyFrameRequestMethod key_frame_req_method_; 349 KeyFrameRequestMethod key_frame_req_method_;
374 350
375 RemoteBitrateEstimator* remote_bitrate_; 351 RemoteBitrateEstimator* remote_bitrate_;
376 352
377 RtcpRttStats* rtt_stats_; 353 RtcpRttStats* rtt_stats_;
378 354
379 PacketLossStats send_loss_stats_; 355 PacketLossStats send_loss_stats_;
380 PacketLossStats receive_loss_stats_; 356 PacketLossStats receive_loss_stats_;
381 357
382 // The processed RTT from RtcpRttStats. 358 // The processed RTT from RtcpRttStats.
383 rtc::scoped_ptr<CriticalSectionWrapper> critical_section_rtt_; 359 rtc::scoped_ptr<CriticalSectionWrapper> critical_section_rtt_;
384 int64_t rtt_ms_; 360 int64_t rtt_ms_;
385 }; 361 };
386 362
387 } // namespace webrtc 363 } // namespace webrtc
388 364
389 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_ 365 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc ('k') | webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698