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 |
11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_PLAYOUT_DELAY_ORACLE_H_ | 11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_PLAYOUT_DELAY_ORACLE_H_ |
12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_PLAYOUT_DELAY_ORACLE_H_ | 12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_PLAYOUT_DELAY_ORACLE_H_ |
13 | 13 |
14 #include <stdint.h> | 14 #include <stdint.h> |
15 | 15 |
16 #include "webrtc/base/criticalsection.h" | |
17 #include "webrtc/base/thread_annotations.h" | |
18 #include "webrtc/modules/include/module_common_types.h" | 16 #include "webrtc/modules/include/module_common_types.h" |
19 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 17 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
| 18 #include "webrtc/rtc_base/criticalsection.h" |
| 19 #include "webrtc/rtc_base/thread_annotations.h" |
20 | 20 |
21 namespace webrtc { | 21 namespace webrtc { |
22 | 22 |
23 // This class tracks the application requests to limit minimum and maximum | 23 // This class tracks the application requests to limit minimum and maximum |
24 // playout delay and makes a decision on whether the current RTP frame | 24 // playout delay and makes a decision on whether the current RTP frame |
25 // should include the playout out delay extension header. | 25 // should include the playout out delay extension header. |
26 // | 26 // |
27 // Playout delay can be defined in terms of capture and render time as follows: | 27 // Playout delay can be defined in terms of capture and render time as follows: |
28 // | 28 // |
29 // Render time = Capture time in receiver time + playout delay | 29 // Render time = Capture time in receiver time + playout delay |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 SequenceNumberUnwrapper unwrapper_ GUARDED_BY(crit_sect_); | 72 SequenceNumberUnwrapper unwrapper_ 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_ 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 |