Does not allow negative or zero base.


Public Member Functions

  • MediaTime ()
  • MediaTime (int64_t value, int32_t base, int64_t epoch=0)
  • MediaTime (int value)
  • MediaTime (int64_t value)
  • MediaTime (double seconds)
  • int64_t
    getValue () const
  • int32_t
    getBase () const
  • int64_t
    getEpoch () const
  • double
    getSeconds () const
  • void
    setEpoch (int64_t newEpoch)
  • asBase (int32_t otherBase) const
  • asEpoch (int64_t otherEpoch) const
  • as (int32_t otherBase, int64_t otherEpoch) const
  • bool
    operator< (const MediaTime &rhs) const
  • bool
    operator> (const MediaTime &rhs) const
  • bool
    operator<= (const MediaTime &rhs) const
  • bool
    operator>= (const MediaTime &rhs) const
  • bool
    operator!= (const MediaTime &rhs) const
  • operator- () const

Static Public Member Functions


Friends

  • friend std::ostream &
    operator<< (std::ostream &os, const MediaTime &mt)