Home
last modified time | relevance | path

Searched refs:RtpTimeDelta (Results 1 – 18 of 18) sorted by relevance

/external/openscreen/cast/streaming/
Drtp_time_unittest.cc22 ASSERT_EQ(RtpTimeDelta(), RtpTimeDelta::FromTicks(0)); in TEST()
23 ASSERT_EQ(RtpTimeDelta(), in TEST()
24 RtpTimeDelta::FromDuration(microseconds(0), kTimebase)); in TEST()
26 RtpTimeDelta::FromTicks(0).ToDuration<microseconds>(kTimebase)); in TEST()
29 ASSERT_EQ(RtpTimeDelta::FromTicks(480), in TEST()
30 RtpTimeDelta::FromDuration(milliseconds(10), kTimebase)); in TEST()
31 ASSERT_EQ(RtpTimeDelta::FromTicks(96000), in TEST()
32 RtpTimeDelta::FromDuration(seconds(2), kTimebase)); in TEST()
34 RtpTimeDelta::FromTicks(480).ToDuration<microseconds>(kTimebase)); in TEST()
36 RtpTimeDelta::FromTicks(96000).ToDuration<microseconds>(kTimebase)); in TEST()
[all …]
Drtp_time.h24 class RtpTimeDelta; variable
28 std::ostream& operator<<(std::ostream& out, const RtpTimeDelta rhs);
66 class RtpTimeDelta : public ExpandedValueBase<int64_t, RtpTimeDelta> {
68 constexpr RtpTimeDelta() : ExpandedValueBase(0) {} in RtpTimeDelta() function
71 constexpr RtpTimeDelta operator+(RtpTimeDelta rhs) const {
72 return RtpTimeDelta(value_ + rhs.value_);
74 constexpr RtpTimeDelta operator-(RtpTimeDelta rhs) const {
75 return RtpTimeDelta(value_ - rhs.value_);
77 constexpr RtpTimeDelta& operator+=(RtpTimeDelta rhs) {
80 constexpr RtpTimeDelta& operator-=(RtpTimeDelta rhs) {
[all …]
Dpacket_receive_stats_tracker_unittest.cc27 RtpTimeDelta::FromTicks(std::numeric_limits<int64_t>::max() - 42); in GetSentinel()
76 RtpTimeTicks() + RtpTimeDelta::FromTicks(42); in TEST()
89 EXPECT_EQ(RtpTimeDelta(), report.jitter); in TEST()
97 RtpTimeTicks() + RtpTimeDelta::FromTicks(42); in TEST()
107 kFirstRtpTimestamp + RtpTimeDelta::FromTicks(kRtpVideoTimebase) * i, in TEST()
125 EXPECT_EQ(RtpTimeDelta(), report.jitter); in TEST()
131 RtpTimeTicks() + RtpTimeDelta::FromTicks(99); in TEST()
144 kFirstRtpTimestamp + RtpTimeDelta::FromTicks(kRtpVideoTimebase) * i, in TEST()
156 EXPECT_EQ(RtpTimeDelta(), report.jitter); in TEST()
162 RtpTimeTicks() + RtpTimeDelta::FromTicks(99); in TEST()
[all …]
Drtp_packet_parser_unittest.cc38 EXPECT_EQ(RtpTimeTicks() + RtpTimeDelta::FromTicks(0x09080706), in TEST()
75 EXPECT_EQ(RtpTimeTicks() + RtpTimeDelta::FromTicks(0x02040608), in TEST()
113 EXPECT_EQ(RtpTimeTicks() + RtpTimeDelta::FromTicks(0x02040608), in TEST()
151 EXPECT_EQ(RtpTimeTicks() + RtpTimeDelta::FromTicks(0x02040608), in TEST()
192 EXPECT_EQ(RtpTimeTicks() + RtpTimeDelta::FromTicks(0x02040608), in TEST()
Drtcp_common_unittest.cc126 original.jitter = RtpTimeDelta::FromTicks(123); in TEST()
164 expected.jitter = RtpTimeDelta::FromTicks(123); in TEST()
179 another.jitter = expected.jitter + RtpTimeDelta::FromTicks(i - 2); in TEST()
Drtp_time.cc12 std::ostream& operator<<(std::ostream& out, const RtpTimeDelta rhs) { in operator <<()
Dsender_report_unittest.cc90 EXPECT_EQ(RtpTimeTicks() + RtpTimeDelta::FromTicks(1350000), in TEST_F()
125 original.rtp_timestamp = RtpTimeTicks() + RtpTimeDelta::FromTicks(5); in TEST_F()
Drtcp_common.cc139 const int64_t jitter_ticks = jitter / RtpTimeDelta::FromTicks(1); in AppendFields()
235 RtpTimeDelta::FromTicks(ConsumeField<uint32_t>(&buffer)); in ParseOne()
Dframe_collector_unittest.cc24 RtpTimeTicks() + RtpTimeDelta::FromTicks(90000);
51 part.rtp_timestamp = kSomeRtpTimestamp + (RtpTimeDelta::FromTicks(200) * i); in TEST()
Dpacket_receive_stats_tracker.cc75 report->jitter = RtpTimeDelta::FromDuration(jitter_, rtp_timebase_); in PopulateNextReport()
Drtcp_common.h92 RtpTimeDelta jitter;
Dsender_unittest.cc107 frame->rtp_timestamp = RtpTimeTicks() + RtpTimeDelta::FromTicks(ticks); in OverrideRtpTimestamp()
405 RtpTimeTicks() + (RtpTimeDelta::FromTicks(kRtpTicksPerFrame) * in PopulateFrameWithDefaults()
509 RtpTimeTicks() + RtpTimeDelta::FromTicks(kRtpTicksPerFrame))); in TEST_F()
521 RtpTimeDelta::FromTicks(kRtpTicksPerFrame))); in TEST_F()
525 RtpTimeDelta::FromTicks(10 * kRtpTicksPerFrame))); in TEST_F()
909 RtpTimeDelta::FromDuration(kThreeReportIntervals, kRtpTimebase), in TEST_F()
Drtp_packetizer_unittest.cc49 frame.rtp_timestamp = RtpTimeTicks() + RtpTimeDelta::FromTicks(987); in CreateFrame()
Dcompound_rtcp_parser_unittest.cc100 EXPECT_EQ(RtpTimeDelta::FromTicks(170), block.jitter); in TEST_F()
Dsender.cc205 sender_report.rtp_timestamp += RtpTimeDelta::FromDuration( in GetRtcpPacketForImmediateSend()
Dcompound_rtcp_builder_unittest.cc87 original.jitter = RtpTimeDelta::FromTicks(4); in TEST_F()
Dreceiver_unittest.cc100 RtpTimeDelta::FromDuration(kFrameDuration * which, kRtpTimebase); in SimulatedFrame()
/external/openscreen/cast/standalone_sender/
Dstreaming_opus_encoder.cc137 frame_.rtp_timestamp += RtpTimeDelta::FromTicks(samples_per_cast_frame_); in EncodeAndSend()
147 codec_delay_ = RtpTimeDelta::FromTicks(lookahead).ToDuration<Clock::duration>( in UpdateCodecDelay()
167 frame_.rtp_timestamp + RtpTimeDelta::FromTicks(num_samples_queued_); in ResolveTimestampsAndMaybeSkip()
170 const RtpTimeDelta rtp_advancement = reference_position - current_position; in ResolveTimestampsAndMaybeSkip()
171 const RtpTimeDelta skip_threshold = in ResolveTimestampsAndMaybeSkip()
172 RtpTimeDelta::FromTicks(samples_per_cast_frame_) * in ResolveTimestampsAndMaybeSkip()
184 reference_time -= RtpTimeDelta::FromTicks(num_samples_queued_) in ResolveTimestampsAndMaybeSkip()
192 RtpTimeDelta::FromTicks(1).ToDuration<Clock::duration>(sample_rate()); in ResolveTimestampsAndMaybeSkip()