/external/openscreen/cast/streaming/ |
D | rtp_time_unittest.cc | 22 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 …]
|
D | rtp_time.h | 24 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 …]
|
D | packet_receive_stats_tracker_unittest.cc | 27 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 …]
|
D | rtp_packet_parser_unittest.cc | 38 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()
|
D | rtcp_common_unittest.cc | 126 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()
|
D | rtp_time.cc | 12 std::ostream& operator<<(std::ostream& out, const RtpTimeDelta rhs) { in operator <<()
|
D | sender_report_unittest.cc | 90 EXPECT_EQ(RtpTimeTicks() + RtpTimeDelta::FromTicks(1350000), in TEST_F() 125 original.rtp_timestamp = RtpTimeTicks() + RtpTimeDelta::FromTicks(5); in TEST_F()
|
D | rtcp_common.cc | 139 const int64_t jitter_ticks = jitter / RtpTimeDelta::FromTicks(1); in AppendFields() 235 RtpTimeDelta::FromTicks(ConsumeField<uint32_t>(&buffer)); in ParseOne()
|
D | frame_collector_unittest.cc | 24 RtpTimeTicks() + RtpTimeDelta::FromTicks(90000); 51 part.rtp_timestamp = kSomeRtpTimestamp + (RtpTimeDelta::FromTicks(200) * i); in TEST()
|
D | packet_receive_stats_tracker.cc | 75 report->jitter = RtpTimeDelta::FromDuration(jitter_, rtp_timebase_); in PopulateNextReport()
|
D | rtcp_common.h | 92 RtpTimeDelta jitter;
|
D | sender_unittest.cc | 107 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()
|
D | rtp_packetizer_unittest.cc | 49 frame.rtp_timestamp = RtpTimeTicks() + RtpTimeDelta::FromTicks(987); in CreateFrame()
|
D | compound_rtcp_parser_unittest.cc | 100 EXPECT_EQ(RtpTimeDelta::FromTicks(170), block.jitter); in TEST_F()
|
D | sender.cc | 205 sender_report.rtp_timestamp += RtpTimeDelta::FromDuration( in GetRtcpPacketForImmediateSend()
|
D | compound_rtcp_builder_unittest.cc | 87 original.jitter = RtpTimeDelta::FromTicks(4); in TEST_F()
|
D | receiver_unittest.cc | 100 RtpTimeDelta::FromDuration(kFrameDuration * which, kRtpTimebase); in SimulatedFrame()
|
/external/openscreen/cast/standalone_sender/ |
D | streaming_opus_encoder.cc | 137 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()
|