avcpp  2.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
Classes | Namespaces | Macros | Enumerations | Functions
rational.h File Reference
#include <utility>
#include <iostream>
#include <memory>
#include <type_traits>
#include "ffmpeg.h"
Include dependency graph for rational.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  av::Rational
 

Namespaces

 av
 

Macros

#define AV_TIME_BASE_Q_CPP   AVRational{1, AV_TIME_BASE}
 

Enumerations

enum  { av::RationalMaxPrecision = 5 }
 

Functions

template<typename T >
auto av::operator/ (T num, Rational value) -> std::enable_if_t< std::is_floating_point_v< T >||std::is_integral_v< T >, Rational >
 
template<typename T >
auto av::operator/ (Rational value, T num) -> std::enable_if_t< std::is_floating_point_v< T >||std::is_integral_v< T >, Rational >
 
std::ostream & av::operator<< (std::ostream &stream, const Rational &value)
 
std::istream & av::operator>> (std::istream &stream, Rational &value)
 

Macro Definition Documentation

◆ AV_TIME_BASE_Q_CPP

#define AV_TIME_BASE_Q_CPP   AVRational{1, AV_TIME_BASE}