--- /dev/null
+//Disclaimer for Robert Penner's Easing Equations license:\r
+//\r
+//TERMS OF USE - EASING EQUATIONS\r
+//\r
+//Open source under the BSD License.\r
+//\r
+//Copyright © 2001 Robert Penner\r
+//All rights reserved.\r
+//\r
+//Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\r
+//\r
+// * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\r
+// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\r
+// * Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission.\r
+//\r
+//THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+#pragma once\r
+\r
+#include <boost/assign/list_of.hpp>\r
+#include <unordered_map>\r
+#include <string>\r
+#include <locale>\r
+#include <functional>\r
+\r
+namespace caspar {\r
+\r
+typedef std::function<double(double, double, double, double)> tweener_t;\r
+ \r
+static const double PI = std::atan(1.0)*4.0;\r
+static const double H_PI = std::atan(1.0)*2.0;\r
+\r
+inline double ease_none (double t, double b, double c, double d) \r
+{\r
+ return c*t/d + b;\r
+}\r
+\r
+inline double ease_in_quad (double t, double b, double c, double d) \r
+{\r
+ return c*(t/=d)*t + b;\r
+}\r
+ \r
+inline double ease_out_quad (double t, double b, double c, double d) \r
+{\r
+ return -c *(t/=d)*(t-2) + b;\r
+} \r
+\r
+inline double ease_in_out_quad (double t, double b, double c, double d)\r
+{\r
+ if ((t/=d/2) < 1) \r
+ return c/2*t*t + b;\r
+\r
+ return -c/2 * ((--t)*(t-2) - 1) + b;\r
+} \r
+\r
+inline double ease_out_in_quad (double t, double b, double c, double d)\r
+{\r
+ if (t < d/2) \r
+ return ease_out_quad (t*2, b, c/2, d);\r
+\r
+ return ease_in_quad((t*2)-d, b+c/2, c/2, d);\r
+}\r
+ \r
+inline double ease_in_cubic (double t, double b, double c, double d) \r
+{\r
+ return c*(t/=d)*t*t + b;\r
+} \r
+\r
+inline double ease_out_cubic (double t, double b, double c, double d) \r
+{\r
+ return c*((t=t/d-1)*t*t + 1) + b;\r
+}\r
+ \r
+inline double ease_in_out_cubic (double t, double b, double c, double d) \r
+{\r
+ if ((t/=d/2) < 1) \r
+ return c/2*t*t*t + b;\r
+\r
+ return c/2*((t-=2)*t*t + 2) + b;\r
+}\r
+ \r
+inline double ease_out_in_cubic (double t, double b, double c, double d) \r
+{\r
+ if (t < d/2) return ease_out_cubic (t*2, b, c/2, d);\r
+ return ease_in_cubic((t*2)-d, b+c/2, c/2, d);\r
+}\r
+ \r
+inline double ease_in_quart (double t, double b, double c, double d) \r
+{\r
+ return c*(t/=d)*t*t*t + b;\r
+}\r
+ \r
+inline double ease_out_quart (double t, double b, double c, double d) \r
+{\r
+ return -c * ((t=t/d-1)*t*t*t - 1) + b;\r
+} \r
+\r
+inline double ease_in_out_quart (double t, double b, double c, double d) \r
+{\r
+ if ((t/=d/2) < 1)\r
+ return c/2*t*t*t*t + b;\r
+\r
+ return -c/2 * ((t-=2)*t*t*t - 2) + b;\r
+} \r
+\r
+inline double ease_out_in_quart (double t, double b, double c, double d) \r
+{\r
+ if (t < d/2)\r
+ return ease_out_quart (t*2, b, c/2, d);\r
+\r
+ return ease_in_quart((t*2)-d, b+c/2, c/2, d);\r
+} \r
+\r
+inline double ease_in_quint (double t, double b, double c, double d) \r
+{\r
+ return c*(t/=d)*t*t*t*t + b;\r
+}\r
+ \r
+inline double ease_out_quint (double t, double b, double c, double d) \r
+{\r
+ return c*((t=t/d-1)*t*t*t*t + 1) + b;\r
+}\r
+ \r
+inline double ease_in_out_quint (double t, double b, double c, double d) \r
+{\r
+ if ((t/=d/2) < 1) \r
+ return c/2*t*t*t*t*t + b;\r
+\r
+ return c/2*((t-=2)*t*t*t*t + 2) + b;\r
+}\r
+ \r
+inline double ease_out_in_quint (double t, double b, double c, double d) \r
+{\r
+ if (t < d/2) \r
+ return ease_out_quint (t*2, b, c/2, d);\r
+\r
+ return ease_in_quint((t*2)-d, b+c/2, c/2, d);\r
+} \r
+\r
+inline double ease_in_sine (double t, double b, double c, double d) \r
+{\r
+ return -c * std::cos(t/d * (PI/2)) + c + b;\r
+} \r
+\r
+inline double ease_out_sine (double t, double b, double c, double d) \r
+{\r
+ return c * std::sin(t/d * (PI/2)) + b;\r
+} \r
+\r
+inline double ease_in_out_sine (double t, double b, double c, double d) \r
+{\r
+ return -c/2 * (std::cos(PI*t/d) - 1) + b;\r
+} \r
+\r
+inline double ease_out_in_sine (double t, double b, double c, double d)\r
+{\r
+ if (t < d/2) \r
+ return ease_out_sine (t*2, b, c/2, d);\r
+ \r
+ return ease_in_sine((t*2)-d, b+c/2, c/2, d);\r
+} \r
+\r
+inline double ease_in_expo (double t, double b, double c, double d) \r
+{\r
+ return (t==0) ? b : c * std::pow(2, 10 * (t/d - 1)) + b - c * 0.001;\r
+} \r
+\r
+inline double ease_out_expo (double t, double b, double c, double d) \r
+{\r
+ return (t==d) ? b+c : c * 1.001 * (-std::pow(2, -10 * t/d) + 1) + b;\r
+}\r
+ \r
+inline double ease_in_out_expo (double t, double b, double c, double d) \r
+{\r
+ if (t==0) \r
+ return b;\r
+ if (t==d) \r
+ return b+c;\r
+ if ((t/=d/2) < 1) \r
+ return c/2 * std::pow(2, 10 * (t - 1)) + b - c * 0.0005;\r
+\r
+ return c/2 * 1.0005 * (-std::pow(2, -10 * --t) + 2) + b;\r
+}\r
+ \r
+inline double ease_out_in_expo (double t, double b, double c, double d) {\r
+ if (t < d/2) \r
+ return ease_out_expo (t*2, b, c/2, d);\r
+\r
+ return ease_in_expo((t*2)-d, b+c/2, c/2, d);\r
+}\r
+ \r
+inline double ease_in_circ (double t, double b, double c, double d) \r
+{\r
+ return -c * (std::sqrt(1 - (t/=d)*t) - 1) + b;\r
+}\r
+ \r
+inline double ease_out_circ (double t, double b, double c, double d) \r
+{\r
+ return c * std::sqrt(1 - (t=t/d-1)*t) + b;\r
+}\r
+ \r
+inline double ease_in_out_circ (double t, double b, double c, double d) \r
+{\r
+ if ((t/=d/2) < 1) \r
+ return -c/2 * (std::sqrt(1 - t*t) - 1) + b;\r
+\r
+ return c/2 * (std::sqrt(1 - (t-=2)*t) + 1) + b;\r
+}\r
+ \r
+inline double ease_out_in_circ (double t, double b, double c, double d) \r
+{\r
+ if (t < d/2) return ease_out_circ(t*2, b, c/2, d);\r
+ return ease_in_circ((t*2)-d, b+c/2, c/2, d);\r
+}\r
+ \r
+inline double ease_in_elastic (double t, double b, double c, double d)\r
+{\r
+ if (t==0) return b;\r
+ if ((t/=d)==1) return b+c;\r
+ //var p:Number = !Boolean(p_params) || isNaN(p_params.period) ? d*.3 : p_params.period;\r
+ //var s:Number;\r
+ //var a:Number = !Boolean(p_params) || isNaN(p_params.amplitude) ? 0 : p_params.amplitude;\r
+ double p = d*0.3;\r
+ double s;\r
+ double a = 0.0;\r
+ if (a == 0.0 || a < std::abs(c)) \r
+ {\r
+ a = c;\r
+ s = p/4;\r
+ } \r
+ else \r
+ s = p/(2*PI) * std::asin (c/a);\r
+ \r
+ return -(a*std::pow(2,10*(t-=1)) * std::sin( (t*d-s)*(2*PI)/p )) + b;\r
+}\r
+ \r
+inline double ease_out_elastic (double t, double b, double c, double d) \r
+{\r
+ if (t==0) \r
+ return b;\r
+ if ((t/=d)==1) \r
+ return b+c;\r
+ //var p:Number = !Boolean(p_params) || isNaN(p_params.period) ? d*.3 : p_params.period;\r
+ //var s:Number;\r
+ //var a:Number = !Boolean(p_params) || isNaN(p_params.amplitude) ? 0 : p_params.amplitude;\r
+ double p = d*0.3;\r
+ double s;\r
+ double a = 0.0;\r
+ if (a == 0.0 || a < std::abs(c))\r
+ {\r
+ a = c;\r
+ s = p/4;\r
+ } \r
+ else \r
+ s = p/(2*PI) * std::asin (c/a);\r
+ \r
+ return (a*std::pow(2,-10*t) * std::sin( (t*d-s)*(2*PI)/p ) + c + b);\r
+} \r
+\r
+inline double ease_in_out_elastic (double t, double b, double c, double d) \r
+{\r
+ if (t==0)\r
+ return b;\r
+ if ((t/=d/2)==2) \r
+ return b+c;\r
+ //var p:Number = !Boolean(p_params) || isNaN(p_params.period) ? d*(.3*1.5) : p_params.period;\r
+ //var s:Number;\r
+ //var a:Number = !Boolean(p_params) || isNaN(p_params.amplitude) ? 0 : p_params.amplitude;\r
+ double p = d*0.3*1.5;\r
+ double s;\r
+ double a = 0.0;\r
+ if (a == 0.0 || a < std::abs(c)) \r
+ {\r
+ a = c;\r
+ s = p/4;\r
+ }\r
+ else\r
+ s = p/(2*PI) * std::asin (c/a);\r
+ \r
+ if (t < 1) \r
+ return -.5*(a*std::pow(2,10*(t-=1)) * std::sin( (t*d-s)*(2*PI)/p )) + b;\r
+\r
+ return a*std::pow(2,-10*(t-=1)) * std::sin( (t*d-s)*(2*PI)/p )*.5 + c + b;\r
+}\r
+ \r
+inline double ease_out_in_elastic (double t, double b, double c, double d) \r
+{\r
+ if (t < d/2) return ease_out_elastic (t*2, b, c/2, d);\r
+ return ease_in_elastic((t*2)-d, b+c/2, c/2, d);\r
+}\r
+ \r
+inline double ease_in_back (double t, double b, double c, double d) \r
+{\r
+ //var s:Number = !Boolean(p_params) || isNaN(p_params.overshoot) ? 1.70158 : p_params.overshoot;\r
+ double s = 1.70158;\r
+ return c*(t/=d)*t*((s+1)*t - s) + b;\r
+}\r
+ \r
+inline double ease_out_back (double t, double b, double c, double d)\r
+{\r
+ //var s:Number = !Boolean(p_params) || isNaN(p_params.overshoot) ? 1.70158 : p_params.overshoot;\r
+ double s = 1.70158;\r
+ return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;\r
+}\r
+ \r
+inline double ease_in_out_back (double t, double b, double c, double d)\r
+{\r
+ //var s:Number = !Boolean(p_params) || isNaN(p_params.overshoot) ? 1.70158 : p_params.overshoot;\r
+ double s = 1.70158;\r
+ if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;\r
+ return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;\r
+}\r
+ \r
+\r
+inline double ease_out_int_back (double t, double b, double c, double d)\r
+{\r
+ if (t < d/2) return ease_out_back (t*2, b, c/2, d);\r
+ return ease_in_back((t*2)-d, b+c/2, c/2, d);\r
+}\r
+ \r
+\r
+inline double ease_out_bounce (double t, double b, double c, double d) \r
+{\r
+ if ((t/=d) < (1/2.75))\r
+ return c*(7.5625*t*t) + b;\r
+ else if (t < (2/2.75))\r
+ return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;\r
+ else if (t < (2.5/2.75))\r
+ return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;\r
+ else \r
+ return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; \r
+}\r
+ \r
+inline double ease_in_bounce (double t, double b, double c, double d)\r
+{\r
+ return c - ease_out_bounce (d-t, 0, c, d) + b;\r
+}\r
+\r
+inline double ease_in_out_bounce (double t, double b, double c, double d) \r
+{\r
+ if (t < d/2) return ease_in_bounce (t*2, 0, c, d) * .5 + b;\r
+ else return ease_out_bounce (t*2-d, 0, c, d) * .5 + c*.5 + b;\r
+}\r
+ \r
+\r
+inline double ease_out_in_bounce (double t, double b, double c, double d) \r
+{\r
+ if (t < d/2) return ease_out_bounce (t*2, b, c/2, d);\r
+ return ease_in_bounce((t*2)-d, b+c/2, c/2, d);\r
+}\r
+\r
+inline tweener_t get_tweener(std::wstring name = L"linear")\r
+{\r
+ std::transform(name.begin(), name.end(), name.begin(), std::tolower);\r
+\r
+ static const std::unordered_map<std::wstring, tweener_t> tweens = boost::assign::map_list_of \r
+ (L"linear", ease_none ) \r
+ (L"easenone", ease_none )\r
+ (L"easeinquad", ease_in_quad )\r
+ (L"easeoutquad", ease_out_quad )\r
+ (L"easeinoutquad", ease_in_out_quad )\r
+ (L"easeoutinquad", ease_out_in_quad )\r
+ (L"easeincubic", ease_in_cubic )\r
+ (L"easeoutcubic", ease_out_cubic )\r
+ (L"easeinoutcubic", ease_in_out_cubic )\r
+ (L"easeoutincubic", ease_out_in_cubic )\r
+ (L"easeinquart", ease_in_quart )\r
+ (L"easeoutquart", ease_out_quart )\r
+ (L"easeinoutquart", ease_in_out_quart )\r
+ (L"easeoutinquart", ease_out_in_quart )\r
+ (L"easeinquint", ease_in_quint )\r
+ (L"easeoutquint", ease_out_quint )\r
+ (L"easeinoutquint", ease_in_out_quint )\r
+ (L"easeoutinquint", ease_out_in_quint )\r
+ (L"easeinsine", ease_in_sine )\r
+ (L"easeoutsine", ease_out_sine )\r
+ (L"easeinoutsine", ease_in_out_sine )\r
+ (L"easeoutinsine", ease_out_in_sine )\r
+ (L"easeinexpo", ease_in_expo )\r
+ (L"easeoutexpo", ease_out_expo )\r
+ (L"easeinoutexpo", ease_in_out_expo )\r
+ (L"easeoutinexpo", ease_out_in_expo )\r
+ (L"easeincirc", ease_in_circ )\r
+ (L"easeoutcirc", ease_out_circ )\r
+ (L"easeinoutcirc", ease_in_out_circ )\r
+ (L"easeoutincirc", ease_out_in_circ )\r
+ (L"easeinelastic", ease_in_elastic )\r
+ (L"easeoutelastic", ease_out_elastic )\r
+ (L"easeinoutelastic", ease_in_out_elastic)\r
+ (L"easeoutinelastic", ease_out_in_elastic)\r
+ (L"easeinback", ease_in_back )\r
+ (L"easeoutback", ease_out_back )\r
+ (L"easeinoutback", ease_in_out_back )\r
+ (L"easeoutintback", ease_out_int_back )\r
+ (L"easeoutbounce", ease_out_bounce )\r
+ (L"easeinbounce", ease_in_bounce )\r
+ (L"easeinoutbounce", ease_in_out_bounce )\r
+ (L"easeoutinbounce", ease_out_in_bounce );\r
+\r
+ auto it = tweens.find(name);\r
+ if(it == tweens.end())\r
+ {\r
+ CASPAR_LOG(warning) << L" Invalid tween: " << name << L" fallback to \"linear\".";\r
+ it = tweens.find(L"linear");\r
+ }\r
+\r
+ return it->second;\r
+};\r
+\r
+}
\ No newline at end of file
return image_transform(*this) *= other;\r
}\r
\r
-image_transform tween(const image_transform& lhs, const image_transform& rhs, const std::function<double(double, double, double)>& tweener, double delta)\r
-{\r
+image_transform tween(double time, const image_transform& source, const image_transform& dest, double duration, const tweener_t& tweener)\r
+{ \r
+ auto do_tween = [](double time, double source, double dest, double duration, const tweener_t& tweener)\r
+ {\r
+ return tweener(time, source, dest-source, duration);\r
+ };\r
+\r
CASPAR_ASSERT(lhs.get_mode() == rhs.get_mode() || lhs.get_mode() == video_mode::invalid || rhs.get_mode() == video_mode::invalid);\r
\r
image_transform result; \r
- result.set_mode(rhs.get_mode() != video_mode::invalid ? rhs.get_mode() : lhs.get_mode());\r
- result.set_gain(tweener(lhs.get_gain(), rhs.get_gain(), delta));\r
- result.set_opacity(tweener(lhs.get_opacity(), rhs.get_opacity(), delta));\r
- result.set_fill_translation(tweener(lhs.get_fill_translation()[0], rhs.get_fill_translation()[0], delta), tweener(lhs.get_fill_translation()[1], rhs.get_fill_translation()[1], delta));\r
- result.set_fill_scale(tweener(lhs.get_fill_scale()[0], rhs.get_fill_scale()[0], delta), tweener(lhs.get_fill_scale()[1], rhs.get_fill_scale()[1], delta));\r
- result.set_key_translation(tweener(lhs.get_key_translation()[0], rhs.get_key_translation()[0], delta), tweener(lhs.get_key_translation()[1], rhs.get_key_translation()[1], delta));\r
- result.set_key_scale(tweener(lhs.get_key_scale()[0], rhs.get_key_scale()[0], delta), tweener(lhs.get_key_scale()[1], rhs.get_key_scale()[1], delta));\r
+ result.set_mode(dest.get_mode() != video_mode::invalid ? dest.get_mode() : source.get_mode());\r
+ result.set_gain(do_tween(time, source.get_gain(), dest.get_gain(), duration, tweener));\r
+ result.set_opacity(do_tween(time, source.get_opacity(), dest.get_opacity(), duration, tweener));\r
+ result.set_fill_translation(do_tween(time, source.get_fill_translation()[0], dest.get_fill_translation()[0], duration, tweener), do_tween(time, source.get_fill_translation()[1], dest.get_fill_translation()[1], duration, tweener));\r
+ result.set_fill_scale(do_tween(time, source.get_fill_scale()[0], dest.get_fill_scale()[0], duration, tweener), do_tween(time, source.get_fill_scale()[1], dest.get_fill_scale()[1], duration, tweener));\r
+ result.set_key_translation(do_tween(time, source.get_key_translation()[0], dest.get_key_translation()[0], duration, tweener), do_tween(time, source.get_key_translation()[1], dest.get_key_translation()[1], duration, tweener));\r
+ result.set_key_scale(do_tween(time, source.get_key_scale()[0], dest.get_key_scale()[0], duration, tweener), do_tween(time, source.get_key_scale()[1], dest.get_key_scale()[1], duration, tweener));\r
\r
return result;\r
}\r
+++ /dev/null
-#pragma once\r
-\r
-#include <boost/assign/list_of.hpp>\r
-#include <unordered_map>\r
-#include <string>\r
-#include <locale>\r
-\r
-namespace caspar {\r
- \r
-static const double PI = std::atan(1.0)*4.0;\r
-static const double H_PI = std::atan(1.0)*2.0;\r
-\r
-template<typename T>\r
-inline T ease_none(T b, T e, T d) \r
-{\r
- return b + (e-b)*d;\r
-}\r
-\r
-template<typename T>\r
-inline T ease_in_sine(T b, T e, T d) \r
-{\r
- return -(e-b) * std::cos(d * H_PI) + (e-b) + b;\r
-}\r
-\r
-template<typename T>\r
-inline T ease_out_sine(T b, T e, T d) \r
-{ \r
- return (e-b) * std::sin(d * H_PI) + b;\r
-}\r
-\r
-template<typename T>\r
-inline T ease_in_out_sine(T b, T e, T d) \r
-{ \r
- return -(e-b)/2 * (std::cos(PI*d) - 1.0) + b;\r
-}\r
-\r
-template<typename T>\r
-inline T ease_out_in_sine(T b, T e, T d) \r
-{\r
- return d < 0.5 ? ease_out_sine(b, e+(e-b)*0.5, d*2.0) : ease_out_sine(b+(e-b)*0.5, e, d*2.0-1.0);\r
-}\r
-\r
-template<typename T>\r
-inline T ease_in_cubic(T b, T e, T d) \r
-{ \r
- return (e-b) * std::pow(d, 3) + b;\r
-}\r
-\r
-template<typename T>\r
-inline T ease_out_cubic(T b, T e, T d) \r
-{ \r
- return (e-b) * (std::pow(d-1.0, 3)+1.0) + b;\r
-}\r
- \r
-template<typename T>\r
-inline T ease_in_out_cubic(T b, T e, T d) \r
-{ \r
- return d < 0.5 ? (e-b)*0.5 * std::pow(d*2.0, 3) + b : (e-b)*0.5 * (std::pow(d*2.0-2.0, 3)+2.0)+ b;\r
-}\r
-\r
-template<typename T>\r
-inline T ease_out_in_cubic(T b, T e, T d) \r
-{ \r
- return d < 0.5 ? ease_out_cubic(b, e+(e-b)*0.5, d*2.0) : ease_in_cubic(b+(e-b)*0.5, e, d*2.0-1.0);\r
-}\r
-\r
-template<typename T>\r
-inline std::function<T(T,T,T)> get_tweener(std::wstring name = L"linear")\r
-{\r
- std::transform(name.begin(), name.end(), name.begin(), std::tolower);\r
-\r
- typedef std::function<T(T,T,T)> tween_func;\r
- static const std::unordered_map<std::wstring, tween_func> tweens = boost::assign::map_list_of\r
- (L"linear", ease_none<T>)\r
- (L"easenone", ease_none<T>)\r
- (L"easeinsine", ease_in_sine<T>)\r
- (L"easeoutsine", ease_out_sine<T>)\r
- (L"easeinoutsine", ease_in_out_sine<T>)\r
- (L"easeoutinsine", ease_out_in_sine<T>)\r
- (L"easeincubic", ease_in_cubic<T>)\r
- (L"easeoutcubic", ease_out_cubic<T>)\r
- (L"easeinoutcubic", ease_in_out_cubic<T>)\r
- (L"easeoutincubic", ease_out_in_cubic<T>);\r
-\r
- auto it = tweens.find(name);\r
- if(it == tweens.end())\r
- {\r
- CASPAR_LOG(warning) << L" Invalid tween: " << name << L" fallback to \"linear\".";\r
- it = tweens.find(L"linear");\r
- }\r
-\r
- return it->second;\r
-};\r
-\r
-}
\ No newline at end of file