added rational type

This commit is contained in:
itsmattkc
2019-05-17 18:19:16 +10:00
parent e58be5dae5
commit 990cefcd50
3 changed files with 18 additions and 0 deletions
+2
View File
@@ -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
+2
View File
@@ -0,0 +1,2 @@
#include "rational.h"
+14
View File
@@ -0,0 +1,14 @@
#ifndef RATIONAL_H
#define RATIONAL_H
#include <libavformat/avformat.h>
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