]> git.sesse.net Git - casparcg/blobdiff - common/tweener.h
Added ".ts" file extension to the whitelist.
[casparcg] / common / tweener.h
index 765163013d3107e9dd8595657e957cc8b66d7bed..b5231f816375646711c21b6a66760ade521f61d9 100644 (file)
@@ -24,7 +24,7 @@
 #include <functional>
 #include <vector>
 
-namespace caspar { namespace core {
+namespace caspar {
 
 /**
  * A tweener can be used for creating any kind of (image position, image fade
@@ -47,7 +47,6 @@ public:
         * @param name The name of the tween function to use.
         */
        tweener(const std::wstring& name = L"linear");
-       tweener(const wchar_t* name);
 
        /**
         * @return The possible tween function names. Some of them may also support
@@ -73,8 +72,12 @@ public:
         *             than b or greater than b + c for some tweener functions.
         */
        double operator()(double t, double b , double c, double d) const;
+
+       bool operator==(const tweener& other) const;
+       bool operator!=(const tweener& other) const;
 private:
-       std::function<double(double, double, double, double)> func_;
+       std::function<double(double, double, double, double)>   func_;
+       std::wstring                                                                                    name_;
 };
 
-}}
\ No newline at end of file
+}