]> git.sesse.net Git - casparcg/blobdiff - core/consumer/frame_consumer.h
set svn:eol-style native on .h and .cpp files
[casparcg] / core / consumer / frame_consumer.h
index 0199fd26442dad3e9e3ece0d20ff85f80f393436..9fe65434339b9a22246c11b7fc5eaed6d48c3063 100644 (file)
@@ -1,77 +1,77 @@
-/*\r
-* Copyright (c) 2011 Sveriges Television AB <info@casparcg.com>\r
-*\r
-* This file is part of CasparCG (www.casparcg.com).\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
-* Author: Robert Nagy, ronag89@gmail.com\r
-*/\r
-\r
-#pragma once\r
-\r
-#include "../monitor/monitor.h"\r
-\r
-#include <common/memory.h>\r
-\r
-#include <boost/property_tree/ptree_fwd.hpp>\r
-\r
-#include <functional>\r
-#include <string>\r
-#include <vector>\r
-\r
-namespace caspar { namespace core {\r
-       \r
-// Interface\r
-class frame_consumer : public monitor::observable\r
-{\r
-       frame_consumer(const frame_consumer&);\r
-       frame_consumer& operator=(const frame_consumer&);\r
-public:\r
-\r
-       // Static Members\r
-       \r
-       static const spl::shared_ptr<frame_consumer>& empty();\r
-\r
-       // Constructors\r
-\r
-       frame_consumer(){}\r
-       virtual ~frame_consumer() {}\r
-       \r
-       // Methods\r
-\r
-       virtual bool                                                    send(class const_frame frame) = 0;\r
-       virtual void                                                    initialize(const struct video_format_desc& format_desc, int channel_index) = 0;\r
-       \r
-       // monitor::observable\r
-\r
-       virtual void subscribe(const monitor::observable::observer_ptr& o) = 0;\r
-       virtual void unsubscribe(const monitor::observable::observer_ptr& o) = 0;\r
-\r
-       // Properties\r
-\r
-       virtual std::wstring                                    print() const = 0;\r
-       virtual std::wstring                                    name() const = 0;\r
-       virtual boost::property_tree::wptree    info() const = 0;\r
-       virtual bool                                                    has_synchronization_clock() const {return true;}\r
-       virtual int                                                             buffer_depth() const = 0;\r
-       virtual int                                                             index() const = 0;\r
-};\r
-\r
-typedef std::function<spl::shared_ptr<frame_consumer>(const std::vector<std::wstring>&)> consumer_factory_t;\r
-\r
-void register_consumer_factory(const consumer_factory_t& factory);\r
-spl::shared_ptr<frame_consumer> create_consumer(const std::vector<std::wstring>& params);\r
-\r
+/*
+* 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 "../monitor/monitor.h"
+
+#include <common/memory.h>
+
+#include <boost/property_tree/ptree_fwd.hpp>
+
+#include <functional>
+#include <string>
+#include <vector>
+
+namespace caspar { namespace core {
+       
+// Interface
+class frame_consumer : public monitor::observable
+{
+       frame_consumer(const frame_consumer&);
+       frame_consumer& operator=(const frame_consumer&);
+public:
+
+       // Static Members
+       
+       static const spl::shared_ptr<frame_consumer>& empty();
+
+       // Constructors
+
+       frame_consumer(){}
+       virtual ~frame_consumer() {}
+       
+       // Methods
+
+       virtual bool                                                    send(class const_frame frame) = 0;
+       virtual void                                                    initialize(const struct video_format_desc& format_desc, int channel_index) = 0;
+       
+       // monitor::observable
+
+       virtual void subscribe(const monitor::observable::observer_ptr& o) = 0;
+       virtual void unsubscribe(const monitor::observable::observer_ptr& o) = 0;
+
+       // Properties
+
+       virtual std::wstring                                    print() const = 0;
+       virtual std::wstring                                    name() const = 0;
+       virtual boost::property_tree::wptree    info() const = 0;
+       virtual bool                                                    has_synchronization_clock() const {return true;}
+       virtual int                                                             buffer_depth() const = 0;
+       virtual int                                                             index() const = 0;
+};
+
+typedef std::function<spl::shared_ptr<frame_consumer>(const std::vector<std::wstring>&)> consumer_factory_t;
+
+void register_consumer_factory(const consumer_factory_t& factory);
+spl::shared_ptr<frame_consumer> create_consumer(const std::vector<std::wstring>& params);
+
 }}
\ No newline at end of file