Public Member Functions | Private Member Functions | List of all members
movie_publisher::StreamDuration Class Reference

Duration type denoting movie stream duration. More...

#include <types.h>

Inheritance diagram for movie_publisher::StreamDuration:
Inheritance graph
[legend]

Public Member Functions

StreamDurationfromNSec (const int64_t t)
 
StreamDurationfromSec (const double t)
 
bool isZero () const
 
bool operator!= (const StreamDuration &rhs) const
 
StreamDuration operator* (const double scale) const
 
StreamDurationoperator*= (const double scale)
 
StreamDuration operator+ (const StreamDuration &rhs) const
 
StreamDurationoperator+= (const StreamDuration &rhs)
 
StreamDuration operator- () const
 
StreamDuration operator- (const StreamDuration &rhs) const
 
StreamDurationoperator-= (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...
 
- Public Member Functions inherited from ros::DurationBase< StreamDuration >
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
 
operator* (double scale) const
 
T & operator*= (double scale)
 
operator+ (const T &rhs) const
 
T & operator+= (const T &rhs)
 
operator- () const
 
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

- Public Attributes inherited from ros::DurationBase< StreamDuration >
int32_t nsec
 
int32_t sec
 
- Static Public Attributes inherited from ros::DurationBase< StreamDuration >
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
 

Detailed Description

Duration type denoting movie stream duration.

Definition at line 44 of file types.h.

Constructor & Destructor Documentation

◆ StreamDuration() [1/6]

movie_publisher::StreamDuration::StreamDuration ( )

◆ StreamDuration() [2/6]

movie_publisher::StreamDuration::StreamDuration ( int32_t  sec,
int32_t  nsec 
)

◆ StreamDuration() [3/6]

movie_publisher::StreamDuration::StreamDuration ( double  t)
explicit

◆ StreamDuration() [4/6]

movie_publisher::StreamDuration::StreamDuration ( const ros::Duration t)
explicit

◆ StreamDuration() [5/6]

movie_publisher::StreamDuration::StreamDuration ( int64_t  streamPTS,
const RationalNumber timeBase 
)

Convert PTS and timeBase to stream duration.

Parameters
streamPTSNumber of timeBase duration units.
timeBaseThe time base of the stream.

◆ StreamDuration() [6/6]

movie_publisher::StreamDuration::StreamDuration ( int64_t  streamPTS,
const AVRational &  timeBase 
)

Convert PTS and timeBase to stream duration.

Parameters
streamPTSNumber of timeBase duration units.
timeBaseThe time base of the stream.

Member Function Documentation

◆ d()

ros::Duration movie_publisher::StreamDuration::d ( ) const
inlineprivate

Definition at line 109 of file types.h.

◆ fromNSec()

StreamDuration& movie_publisher::StreamDuration::fromNSec ( const int64_t  t)
inline

Definition at line 107 of file types.h.

◆ fromSec()

StreamDuration& movie_publisher::StreamDuration::fromSec ( const double  t)
inline

Definition at line 106 of file types.h.

◆ isZero()

bool movie_publisher::StreamDuration::isZero ( ) const
inline

Definition at line 104 of file types.h.

◆ operator!=()

bool movie_publisher::StreamDuration::operator!= ( const StreamDuration rhs) const
inline

Definition at line 99 of file types.h.

◆ operator*()

StreamDuration movie_publisher::StreamDuration::operator* ( const double  scale) const
inline

Definition at line 88 of file types.h.

◆ operator*=()

StreamDuration& movie_publisher::StreamDuration::operator*= ( const double  scale)
inline

Definition at line 94 of file types.h.

◆ operator+()

StreamDuration movie_publisher::StreamDuration::operator+ ( const StreamDuration rhs) const
inline

Definition at line 85 of file types.h.

◆ operator+=()

StreamDuration& movie_publisher::StreamDuration::operator+= ( const StreamDuration rhs)
inline

Definition at line 89 of file types.h.

◆ operator-() [1/2]

StreamDuration movie_publisher::StreamDuration::operator- ( ) const
inline

Definition at line 87 of file types.h.

◆ operator-() [2/2]

StreamDuration movie_publisher::StreamDuration::operator- ( const StreamDuration rhs) const
inline

Definition at line 86 of file types.h.

◆ operator-=()

StreamDuration& movie_publisher::StreamDuration::operator-= ( const StreamDuration rhs)
inline

Definition at line 93 of file types.h.

◆ operator<()

bool movie_publisher::StreamDuration::operator< ( const StreamDuration rhs) const
inline

Definition at line 101 of file types.h.

◆ operator<=()

bool movie_publisher::StreamDuration::operator<= ( const StreamDuration rhs) const
inline

Definition at line 103 of file types.h.

◆ operator==()

bool movie_publisher::StreamDuration::operator== ( const StreamDuration rhs) const
inline

Definition at line 98 of file types.h.

◆ operator>()

bool movie_publisher::StreamDuration::operator> ( const StreamDuration rhs) const
inline

Definition at line 100 of file types.h.

◆ operator>=()

bool movie_publisher::StreamDuration::operator>= ( const StreamDuration rhs) const
inline

Definition at line 102 of file types.h.

◆ toRosDuration()

ros::Duration movie_publisher::StreamDuration::toRosDuration ( ) const
Returns
The corresponding ROS duration (the same number of secs and nsecs, but different semantics).

◆ toSec()

double movie_publisher::StreamDuration::toSec ( ) const
inline

Definition at line 105 of file types.h.

◆ toStreamPTS() [1/2]

int64_t movie_publisher::StreamDuration::toStreamPTS ( const AVRational &  timeBase) const

Convert this duration to PTS.

Parameters
timeBaseTime base of the test.
Returns
This duration converted to PTS of a stream with the given time base.

◆ toStreamPTS() [2/2]

int64_t movie_publisher::StreamDuration::toStreamPTS ( const RationalNumber timeBase) const

Convert this duration to PTS.

Parameters
timeBaseTime base of the test.
Returns
This duration converted to PTS of a stream with the given time base.

The documentation for this class was generated from the following file:


movie_publisher
Author(s): Martin Pecka
autogenerated on Wed May 28 2025 02:07:22