Go to the documentation of this file.
30 operator double()
const;
33 operator float()
const;
38 AVRational
av_q()
const;
83 int64_t
toStreamPTS(
const AVRational& timeBase)
const;
91 auto dur = this->
d(); dur += rhs.
d(); *
this =
StreamDuration(dur);
return *
this;
96 auto dur = this->
d(); dur *= scale; *
this =
StreamDuration(dur);
return *
this;
139 StreamTime(int64_t streamPTS,
const AVRational& timeBase);
165 int64_t
toStreamPTS(
const AVRational& timeBase)
const;
bool operator<(const StreamTime &rhs) const
bool operator!=(const StreamDuration &rhs) const
bool operator>(const StreamDuration &rhs) const
bool operator<=(const StreamDuration &rhs) const
StreamTime operator+(const StreamDuration &rhs) const
StreamTime & operator+=(const StreamDuration &rhs)
StreamDuration & operator+=(const StreamDuration &rhs)
int64_t toStreamPTS(const RationalNumber &timeBase) const
Convert this time to PTS.
int64_t toStreamPTS(const RationalNumber &timeBase) const
Convert this duration to PTS.
StreamDuration operator-(const StreamDuration &rhs) const
bool operator<=(const StreamTime &rhs) const
ros::Time toRosTime() const
Time type denoting movie stream time.
bool operator!=(const StreamTime &rhs) const
TimestampSource
How to compute ROS timestamps from movie frame presentation timestamp (PTS).
StreamDuration & operator-=(const StreamDuration &rhs)
bool operator>=(const StreamTime &rhs) const
StreamTime operator-(const StreamDuration &rhs) const
@ AbsoluteVideoTimecode
Just use the PTS as is.
bool operator>(const StreamTime &rhs) const
StreamDuration & operator*=(const double scale)
bool operator==(const StreamDuration &rhs) const
StreamTime & fromSec(const double t)
StreamDuration operator-() const
bool operator<(const StreamDuration &rhs) const
ros::Duration toRosDuration() const
StreamDuration & fromSec(const double t)
@ AllZeros
ROS timestamp is always 0.
StreamTime & fromNSec(const uint64_t t)
StreamDuration operator+(const StreamDuration &rhs) const
bool operator==(const StreamTime &rhs) const
StreamDuration toDuration() const
Convert this time value to duration.
StreamTime & operator-=(const StreamDuration &rhs)
StreamDuration & fromNSec(const int64_t t)
StreamDuration operator*(const double scale) const
int32_t numerator
Numerator.
StreamDuration operator-(const StreamTime &rhs) const
int32_t denominator
Denominator.
A simple representation of rational numbers of the form numerator/denominator.
bool operator>=(const StreamDuration &rhs) const
@ FromMetadata
Use PTS and offset it by the start time recorded in movie metadata.
Duration type denoting movie stream duration.
@ RelativeVideoTimecode
Use PTS, but make it relative to the time set by last seek() call.
geometry_msgs::TransformStamped t
inline ::std::string to_string(char *value)
@ RosTime
Use current ROS time.
movie_publisher
Author(s): Martin Pecka
autogenerated on Wed May 28 2025 02:07:22