| 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 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_PACKET_TO_SEND_H_ | 10 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_PACKET_TO_SEND_H_ |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 RtpPacketToSend& operator=(const RtpPacketToSend& packet) = default; | 26 RtpPacketToSend& operator=(const RtpPacketToSend& packet) = default; |
| 27 | 27 |
| 28 // Time in local time base as close as it can to frame capture time. | 28 // Time in local time base as close as it can to frame capture time. |
| 29 int64_t capture_time_ms() const { return capture_time_ms_; } | 29 int64_t capture_time_ms() const { return capture_time_ms_; } |
| 30 | 30 |
| 31 void set_capture_time_ms(int64_t time) { capture_time_ms_ = time; } | 31 void set_capture_time_ms(int64_t time) { capture_time_ms_ = time; } |
| 32 | 32 |
| 33 void set_packetization_finish_time_ms(int64_t time) { | 33 void set_packetization_finish_time_ms(int64_t time) { |
| 34 SetExtension<VideoTimingExtension>( | 34 SetExtension<VideoTimingExtension>( |
| 35 VideoTiming::GetDeltaCappedMs(capture_time_ms_, time), | 35 VideoSendTiming::GetDeltaCappedMs(capture_time_ms_, time), |
| 36 VideoTiming::kPacketizationFinishDeltaIdx); | 36 VideoSendTiming::kPacketizationFinishDeltaIdx); |
| 37 } | 37 } |
| 38 | 38 |
| 39 void set_pacer_exit_time_ms(int64_t time) { | 39 void set_pacer_exit_time_ms(int64_t time) { |
| 40 SetExtension<VideoTimingExtension>( | 40 SetExtension<VideoTimingExtension>( |
| 41 VideoTiming::GetDeltaCappedMs(capture_time_ms_, time), | 41 VideoSendTiming::GetDeltaCappedMs(capture_time_ms_, time), |
| 42 VideoTiming::kPacerExitDeltaIdx); | 42 VideoSendTiming::kPacerExitDeltaIdx); |
| 43 } | 43 } |
| 44 | 44 |
| 45 void set_network_time_ms(int64_t time) { | 45 void set_network_time_ms(int64_t time) { |
| 46 SetExtension<VideoTimingExtension>( | 46 SetExtension<VideoTimingExtension>( |
| 47 VideoTiming::GetDeltaCappedMs(capture_time_ms_, time), | 47 VideoSendTiming::GetDeltaCappedMs(capture_time_ms_, time), |
| 48 VideoTiming::kNetworkTimestampDeltaIdx); | 48 VideoSendTiming::kNetworkTimestampDeltaIdx); |
| 49 } | 49 } |
| 50 | 50 |
| 51 void set_network2_time_ms(int64_t time) { | 51 void set_network2_time_ms(int64_t time) { |
| 52 SetExtension<VideoTimingExtension>( | 52 SetExtension<VideoTimingExtension>( |
| 53 VideoTiming::GetDeltaCappedMs(capture_time_ms_, time), | 53 VideoSendTiming::GetDeltaCappedMs(capture_time_ms_, time), |
| 54 VideoTiming::kNetwork2TimestampDeltaIdx); | 54 VideoSendTiming::kNetwork2TimestampDeltaIdx); |
| 55 } | 55 } |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 int64_t capture_time_ms_ = 0; | 58 int64_t capture_time_ms_ = 0; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace webrtc | 61 } // namespace webrtc |
| 62 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_PACKET_TO_SEND_H_ | 62 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_PACKET_TO_SEND_H_ |
| OLD | NEW |