Time type denoting movie stream time. More...
#include <types.h>
Public Member Functions | |
StreamTime & | fromNSec (const uint64_t t) |
StreamTime & | fromSec (const double t) |
bool | isZero () const |
bool | operator!= (const StreamTime &rhs) const |
StreamTime | operator+ (const StreamDuration &rhs) const |
StreamTime & | operator+= (const StreamDuration &rhs) |
StreamTime | operator- (const StreamDuration &rhs) const |
StreamDuration | operator- (const StreamTime &rhs) const |
StreamTime & | operator-= (const StreamDuration &rhs) |
bool | operator< (const StreamTime &rhs) const |
bool | operator<= (const StreamTime &rhs) const |
bool | operator== (const StreamTime &rhs) const |
bool | operator> (const StreamTime &rhs) const |
bool | operator>= (const StreamTime &rhs) const |
StreamTime () | |
StreamTime (const ros::Time &t) | |
StreamTime (const StreamDuration &duration) | |
Convert the given duration to time. More... | |
StreamTime (double t) | |
StreamTime (int64_t streamPTS, const AVRational &timeBase) | |
Convert PTS and timeBase to stream time. More... | |
StreamTime (int64_t streamPTS, const RationalNumber &timeBase) | |
Convert PTS and timeBase to stream time. More... | |
StreamTime (uint32_t sec, uint32_t nsec) | |
StreamDuration | toDuration () const |
Convert this time value to duration. More... | |
ros::Time | toRosTime () const |
double | toSec () const |
int64_t | toStreamPTS (const AVRational &timeBase) const |
Convert this time to PTS. More... | |
int64_t | toStreamPTS (const RationalNumber &timeBase) const |
Convert this time to PTS. More... | |
![]() | |
T & | fromNSec (uint64_t t) |
T & | fromSec (double t) |
bool | is_zero () const |
bool | isZero () const |
const WallTime | MAX |
const Time | MAX |
const WallTime | MAX |
const SteadyTime | MAX |
const Time | MAX |
const SteadyTime | MAX |
const WallTime | MIN |
const SteadyTime | MIN |
const Time | MIN |
const WallTime | MIN |
const SteadyTime | MIN |
const Time | MIN |
bool | operator!= (const T &rhs) const |
T | operator+ (const D &rhs) const |
T & | operator+= (const D &rhs) |
T | operator- (const D &rhs) const |
D | operator- (const T &rhs) const |
T & | operator-= (const D &rhs) |
bool | operator< (const T &rhs) const |
bool | operator<= (const T &rhs) const |
bool | operator== (const T &rhs) const |
bool | operator> (const T &rhs) const |
bool | operator>= (const T &rhs) const |
TimeBase () | |
TimeBase (double t) | |
TimeBase (uint32_t _sec, uint32_t _nsec) | |
boost::posix_time::ptime | toBoost () const |
uint64_t | toNSec () const |
double | toSec () const |
const SteadyTime | UNINITIALIZED |
const WallTime | UNINITIALIZED |
const SteadyTime | UNINITIALIZED |
const WallTime | UNINITIALIZED |
const Time | UNINITIALIZED |
const Time | UNINITIALIZED |
const WallTime | ZERO |
const SteadyTime | ZERO |
const SteadyTime | ZERO |
const Time | ZERO |
const WallTime | ZERO |
const Time | ZERO |
Private Member Functions | |
ros::Time | t () const |
Additional Inherited Members | |
![]() | |
uint32_t | nsec |
uint32_t | sec |
![]() | |
static const T | MAX |
static const T | MIN |
static const T | UNINITIALIZED |
static const T | ZERO |
movie_publisher::StreamTime::StreamTime | ( | ) |
movie_publisher::StreamTime::StreamTime | ( | uint32_t | sec, |
uint32_t | nsec | ||
) |
|
explicit |
|
explicit |
|
explicit |
Convert the given duration to time.
[in] | duration | The duration to convert. |
movie_publisher::StreamTime::StreamTime | ( | int64_t | streamPTS, |
const RationalNumber & | timeBase | ||
) |
Convert PTS and timeBase to stream time.
streamPTS | Number of timeBase time units. |
timeBase | The time base of the stream. |
movie_publisher::StreamTime::StreamTime | ( | int64_t | streamPTS, |
const AVRational & | timeBase | ||
) |
Convert PTS and timeBase to stream time.
streamPTS | Number of timeBase time units. |
timeBase | The time base of the stream. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
StreamDuration movie_publisher::StreamTime::toDuration | ( | ) | const |
Convert this time value to duration.
ros::Time movie_publisher::StreamTime::toRosTime | ( | ) | const |
int64_t movie_publisher::StreamTime::toStreamPTS | ( | const AVRational & | timeBase | ) | const |
Convert this time to PTS.
timeBase | Time base of the test. |
int64_t movie_publisher::StreamTime::toStreamPTS | ( | const RationalNumber & | timeBase | ) | const |
Convert this time to PTS.
timeBase | Time base of the test. |