-/*\r
-* copyright (c) 2010 Sveriges Television AB <info@casparcg.com>\r
-*\r
-* This file is part of CasparCG.\r
-*\r
-* CasparCG is free software: you can redistribute it and/or modify\r
-* it under the terms of the GNU General Public License as published by\r
-* the Free Software Foundation, either version 3 of the License, or\r
-* (at your option) any later version.\r
-*\r
-* CasparCG is distributed in the hope that it will be useful,\r
-* but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
-* GNU General Public License for more details.\r
-\r
-* You should have received a copy of the GNU General Public License\r
-* along with CasparCG. If not, see <http://www.gnu.org/licenses/>.\r
-*\r
-*/\r
-#pragma once\r
-\r
-#include "../frame_producer.h"\r
-\r
-#include <common/utility/tweener.h>\r
-\r
-#include <string>\r
-#include <memory>\r
-\r
-namespace caspar { namespace core {\r
-\r
-struct transition\r
-{\r
- enum type\r
- {\r
-\r
- cut = 1,\r
- mix,\r
- push,\r
- slide,\r
- wipe\r
- };\r
-};\r
-\r
-struct transition_direction\r
-{\r
- enum type\r
- {\r
- from_left = 1,\r
- from_right\r
- };\r
-};\r
-\r
-struct transition_info\r
-{\r
- transition_info() \r
- : type(transition::cut)\r
- , duration(0)\r
- , direction(transition_direction::from_left)\r
- , tweener(get_tweener(L"linear")){}\r
- \r
- size_t duration;\r
- transition_direction::type direction;\r
- transition::type type;\r
- tweener_t tweener;\r
-};\r
-\r
-safe_ptr<frame_producer> create_transition_producer(const video_format_desc& format_desc, const safe_ptr<frame_producer>& destination, const transition_info& info);\r
-\r
-}}
\ No newline at end of file
+/*
+* Copyright (c) 2011 Sveriges Television AB <info@casparcg.com>
+*
+* This file is part of CasparCG (www.casparcg.com).
+*
+* CasparCG is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 3 of the License, or
+* (at your option) any later version.
+*
+* CasparCG is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with CasparCG. If not, see <http://www.gnu.org/licenses/>.
+*
+* Author: Robert Nagy, ronag89@gmail.com
+*/
+
+#pragma once
+
+#include "../../video_format.h"
+#include "../../fwd.h"
+
+#include <common/memory.h>
+#include <common/tweener.h>
+
+#include <string>
+
+namespace caspar { namespace core {
+
+enum class transition_type
+{
+ cut,
+ mix,
+ push,
+ slide,
+ wipe,
+ count
+};
+
+enum class transition_direction
+{
+ from_left,
+ from_right,
+ count
+};
+
+struct transition_info
+{
+ int duration = 0;
+ transition_direction direction = transition_direction::from_left;
+ transition_type type = transition_type::cut;
+ caspar::tweener tweener { L"linear" };
+};
+
+spl::shared_ptr<frame_producer> create_transition_producer(const field_mode& mode, const spl::shared_ptr<frame_producer>& destination, const transition_info& info);
+
+}}