Lines Matching refs:RtpTimeDelta
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) {
83 constexpr RtpTimeDelta operator-() const { return RtpTimeDelta(-value_); }
86 constexpr int64_t operator/(RtpTimeDelta rhs) const {
89 constexpr RtpTimeDelta operator%(RtpTimeDelta rhs) const {
90 return RtpTimeDelta(value_ % rhs.value_);
92 constexpr RtpTimeDelta& operator%=(RtpTimeDelta rhs) {
98 constexpr RtpTimeDelta operator*(IntType rhs) const {
101 return RtpTimeDelta(value_ * rhs);
104 constexpr RtpTimeDelta operator/(IntType rhs) const {
107 return RtpTimeDelta(value_ / rhs);
110 constexpr RtpTimeDelta& operator*=(IntType rhs) {
114 constexpr RtpTimeDelta& operator/=(IntType rhs) {
134 static constexpr RtpTimeDelta FromDuration(Duration duration, in FromDuration()
140 return RtpTimeDelta(ToNearestRepresentativeValue<int64_t>( in FromDuration()
146 static constexpr RtpTimeDelta FromTicks(int64_t ticks) { in FromTicks()
147 return RtpTimeDelta(ticks); in FromTicks()
151 friend class ExpandedValueBase<int64_t, RtpTimeDelta>;
153 friend std::ostream& operator<<(std::ostream& out, const RtpTimeDelta rhs);
155 constexpr explicit RtpTimeDelta(int64_t ticks) : ExpandedValueBase(ticks) {} in RtpTimeDelta() function
211 constexpr RtpTimeDelta operator-(RtpTimeTicks rhs) const {
212 return RtpTimeDelta(value_ - rhs.value_);
216 constexpr RtpTimeTicks operator+(RtpTimeDelta rhs) const {
219 constexpr RtpTimeTicks operator-(RtpTimeDelta rhs) const {
222 constexpr RtpTimeTicks& operator+=(RtpTimeDelta rhs) {
225 constexpr RtpTimeTicks& operator-=(RtpTimeDelta rhs) {
245 RtpTimeDelta::FromDuration(time_since_origin, rtp_timebase); in FromTimeSinceOrigin()