Duration type denoting movie stream duration. More...
#include <types.h>
Public Member Functions | |
StreamDuration & | fromNSec (const int64_t t) |
StreamDuration & | fromSec (const double t) |
bool | isZero () const |
bool | operator!= (const StreamDuration &rhs) const |
StreamDuration | operator* (const double scale) const |
StreamDuration & | operator*= (const double scale) |
StreamDuration | operator+ (const StreamDuration &rhs) const |
StreamDuration & | operator+= (const StreamDuration &rhs) |
StreamDuration | operator- () const |
StreamDuration | operator- (const StreamDuration &rhs) const |
StreamDuration & | operator-= (const StreamDuration &rhs) |
bool | operator< (const StreamDuration &rhs) const |
bool | operator<= (const StreamDuration &rhs) const |
bool | operator== (const StreamDuration &rhs) const |
bool | operator> (const StreamDuration &rhs) const |
bool | operator>= (const StreamDuration &rhs) const |
StreamDuration () | |
StreamDuration (const ros::Duration &t) | |
StreamDuration (double t) | |
StreamDuration (int32_t sec, int32_t nsec) | |
StreamDuration (int64_t streamPTS, const AVRational &timeBase) | |
Convert PTS and timeBase to stream duration. More... | |
StreamDuration (int64_t streamPTS, const RationalNumber &timeBase) | |
Convert PTS and timeBase to stream duration. More... | |
ros::Duration | toRosDuration () const |
double | toSec () const |
int64_t | toStreamPTS (const AVRational &timeBase) const |
Convert this duration to PTS. More... | |
int64_t | toStreamPTS (const RationalNumber &timeBase) const |
Convert this duration to PTS. More... | |
![]() | |
const Duration | DAY |
const WallDuration | DAY |
const WallDuration | DAY |
const Duration | DAY |
DurationBase () | |
DurationBase (double t) | |
DurationBase (int32_t _sec, int32_t _nsec) | |
T & | fromNSec (int64_t t) |
T & | fromSec (double t) |
const WallDuration | HOUR |
const Duration | HOUR |
const WallDuration | HOUR |
const Duration | HOUR |
bool | isZero () const |
const Duration | MAX |
const WallDuration | MAX |
const Duration | MAX |
const WallDuration | MAX |
const WallDuration | MICROSECOND |
const Duration | MICROSECOND |
const WallDuration | MICROSECOND |
const Duration | MICROSECOND |
const Duration | MILLISECOND |
const WallDuration | MILLISECOND |
const Duration | MILLISECOND |
const WallDuration | MILLISECOND |
const Duration | MIN |
const WallDuration | MIN |
const Duration | MIN |
const WallDuration | MIN |
const Duration | MINUTE |
const WallDuration | MINUTE |
const Duration | MINUTE |
const WallDuration | MINUTE |
const WallDuration | NANOSECOND |
const Duration | NANOSECOND |
const Duration | NANOSECOND |
const WallDuration | NANOSECOND |
bool | operator!= (const T &rhs) const |
T | operator* (double scale) const |
T & | operator*= (double scale) |
T | operator+ (const T &rhs) const |
T & | operator+= (const T &rhs) |
T | operator- () const |
T | operator- (const T &rhs) const |
T & | operator-= (const T &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 |
const Duration | SECOND |
const Duration | SECOND |
const WallDuration | SECOND |
const WallDuration | SECOND |
boost::posix_time::time_duration | toBoost () const |
int64_t | toNSec () const |
double | toSec () const |
const Duration | ZERO |
const Duration | ZERO |
const WallDuration | ZERO |
const WallDuration | ZERO |
Private Member Functions | |
ros::Duration | d () const |
Additional Inherited Members | |
![]() | |
int32_t | nsec |
int32_t | sec |
![]() | |
static const T | DAY |
static const T | HOUR |
static const T | MAX |
static const T | MICROSECOND |
static const T | MILLISECOND |
static const T | MIN |
static const T | MINUTE |
static const T | NANOSECOND |
static const T | SECOND |
static const T | ZERO |
movie_publisher::StreamDuration::StreamDuration | ( | ) |
movie_publisher::StreamDuration::StreamDuration | ( | int32_t | sec, |
int32_t | nsec | ||
) |
|
explicit |
|
explicit |
movie_publisher::StreamDuration::StreamDuration | ( | int64_t | streamPTS, |
const RationalNumber & | timeBase | ||
) |
Convert PTS and timeBase to stream duration.
streamPTS | Number of timeBase duration units. |
timeBase | The time base of the stream. |
movie_publisher::StreamDuration::StreamDuration | ( | int64_t | streamPTS, |
const AVRational & | timeBase | ||
) |
Convert PTS and timeBase to stream duration.
streamPTS | Number of timeBase duration units. |
timeBase | The time base of the stream. |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
ros::Duration movie_publisher::StreamDuration::toRosDuration | ( | ) | const |
|
inline |
int64_t movie_publisher::StreamDuration::toStreamPTS | ( | const AVRational & | timeBase | ) | const |
Convert this duration to PTS.
timeBase | Time base of the test. |
int64_t movie_publisher::StreamDuration::toStreamPTS | ( | const RationalNumber & | timeBase | ) | const |
Convert this duration to PTS.
timeBase | Time base of the test. |