avcpp 3.1.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
Loading...
Searching...
No Matches
timestamp.h File Reference

Frame timestamps and their arithmetic.

#include <chrono>
#include "avutils.h"
#include "rational.h"

Go to the source code of this file.

Classes

class  av::Timestamp
 The Timestamp class represents timestamp value and it timebase. More...

Namespaces

namespace  av
 Root namespace of the library.

Functions

bool av::operator> (const Timestamp &left, const Timestamp &right) noexcept
 Compare two timestamps, taking their time bases into account.
bool av::operator< (const Timestamp &left, const Timestamp &right) noexcept
 Compare two timestamps, taking their time bases into account.
bool av::operator== (const Timestamp &left, const Timestamp &right) noexcept
 Compare two timestamps, taking their time bases into account.
bool av::operator!= (const Timestamp &left, const Timestamp &right) noexcept
 Compare two timestamps.
bool av::operator>= (const Timestamp &left, const Timestamp &right) noexcept
 Compare two timestamps.
bool av::operator<= (const Timestamp &left, const Timestamp &right) noexcept
 Compare two timestamps.
Timestamp av::operator+ (const Timestamp &left, const Timestamp &right) noexcept
 Add two timestamps, aligning the time bases.
Timestamp av::operator- (const Timestamp &left, const Timestamp &right) noexcept
 Subtract two timestamps, aligning the time bases.
Timestamp av::operator* (const Timestamp &left, const Timestamp &right) noexcept
 Multiply two timestamps.
Timestamp av::operator/ (const Timestamp &left, const Timestamp &right) noexcept
 Divide two timestamps.
std::ostream & av::operator<< (std::ostream &ost, const Timestamp &ts)
 Print the timestamp as "value*timebase", or NO_PTS.