#include "Chrono.hxx"
#include "Compiler.h"
#include <libavutil/avutil.h>
#include <libavutil/mathematics.h>
#include <assert.h>
#include <stdint.h>
Go to the source code of this file.
static constexpr int64_t FfmpegTimestampFallback |
( |
int64_t |
t, |
|
|
int64_t |
fallback |
|
) |
| |
|
static |
Replace #AV_NOPTS_VALUE with the given fallback.
Definition at line 103 of file Time.hxx.
static gcc_const double FfmpegTimeToDouble |
( |
int64_t |
t, |
|
|
const AVRational |
time_base |
|
) |
| |
|
inlinestaticnoexcept |
Convert a FFmpeg time stamp to a floating point value (in seconds).
Definition at line 44 of file Time.hxx.
template<typename Ratio >
static constexpr AVRational RatioToAVRational |
( |
| ) |
|
|
inlinestatic |
Convert a std::ratio to a #AVRational.
Definition at line 57 of file Time.hxx.
Convert a SongTime to a FFmpeg time stamp with the given base.
Definition at line 92 of file Time.hxx.