From 990cefcd50f4ac2abd4877aaa0cbb9a1cd6ed861 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Fri, 17 May 2019 18:19:16 +1000 Subject: [PATCH] added rational type --- CMakeLists.txt | 2 ++ global/rational.cpp | 2 ++ global/rational.h | 14 ++++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 global/rational.cpp create mode 100644 global/rational.h diff --git a/CMakeLists.txt b/CMakeLists.txt index 14b90e19d..c897ea581 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -193,6 +193,8 @@ set(OLIVE_SOURCES global/math.h global/path.cpp global/path.h + global/rational.h + global/rational.cpp global/timing.cpp global/timing.h nodes/inputs/boolinput.cpp diff --git a/global/rational.cpp b/global/rational.cpp new file mode 100644 index 000000000..66fc7b288 --- /dev/null +++ b/global/rational.cpp @@ -0,0 +1,2 @@ +#include "rational.h" + diff --git a/global/rational.h b/global/rational.h new file mode 100644 index 000000000..b02b0caca --- /dev/null +++ b/global/rational.h @@ -0,0 +1,14 @@ +#ifndef RATIONAL_H +#define RATIONAL_H + +#include + +namespace olive { + /** + * Rational type for timeline values. Currently we just use FFmpeg's AVRational for ease but we can change this + * later if we want. + */ + using rational = AVRational; +}; + +#endif // RATIONAL_H