| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 uint16_t seq_num); | 56 uint16_t seq_num); |
| 57 | 57 |
| 58 void OnReceivedRtcpReportBlocks(const ReportBlockList& report_blocks); | 58 void OnReceivedRtcpReportBlocks(const ReportBlockList& report_blocks); |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 // The playout delay information is updated from the encoder thread(s). | 61 // The playout delay information is updated from the encoder thread(s). |
| 62 // The sequence number feedback is updated from the worker thread. | 62 // The sequence number feedback is updated from the worker thread. |
| 63 // Guards access to data across multiple threads. | 63 // Guards access to data across multiple threads. |
| 64 rtc::CriticalSection crit_sect_; | 64 rtc::CriticalSection crit_sect_; |
| 65 // The current highest sequence number on which playout delay has been sent. | 65 // The current highest sequence number on which playout delay has been sent. |
| 66 int64_t high_sequence_number_ GUARDED_BY(crit_sect_); | 66 int64_t high_sequence_number_ RTC_GUARDED_BY(crit_sect_); |
| 67 // Indicates whether the playout delay should go on the next frame. | 67 // Indicates whether the playout delay should go on the next frame. |
| 68 bool send_playout_delay_ GUARDED_BY(crit_sect_); | 68 bool send_playout_delay_ RTC_GUARDED_BY(crit_sect_); |
| 69 // Sender ssrc. | 69 // Sender ssrc. |
| 70 uint32_t ssrc_ GUARDED_BY(crit_sect_); | 70 uint32_t ssrc_ RTC_GUARDED_BY(crit_sect_); |
| 71 // Sequence number unwrapper. | 71 // Sequence number unwrapper. |
| 72 SequenceNumberUnwrapper unwrapper_ GUARDED_BY(crit_sect_); | 72 SequenceNumberUnwrapper unwrapper_ RTC_GUARDED_BY(crit_sect_); |
| 73 // Playout delay values on the next frame if |send_playout_delay_| is set. | 73 // Playout delay values on the next frame if |send_playout_delay_| is set. |
| 74 PlayoutDelay playout_delay_ GUARDED_BY(crit_sect_); | 74 PlayoutDelay playout_delay_ RTC_GUARDED_BY(crit_sect_); |
| 75 | 75 |
| 76 RTC_DISALLOW_COPY_AND_ASSIGN(PlayoutDelayOracle); | 76 RTC_DISALLOW_COPY_AND_ASSIGN(PlayoutDelayOracle); |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace webrtc | 79 } // namespace webrtc |
| 80 | 80 |
| 81 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_PLAYOUT_DELAY_ORACLE_H_ | 81 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_PLAYOUT_DELAY_ORACLE_H_ |
| OLD | NEW |