-#pragma once\r
-\r
-#include "gpu_frame.h"\r
-#include "frame_format.h"\r
-\r
-#include <memory>\r
-#include <array>\r
-\r
-namespace caspar { namespace core { \r
- \r
-struct frame_factory\r
-{\r
- virtual ~frame_factory(){}\r
- virtual void release_frames(void* tag) = 0;\r
- virtual gpu_frame_ptr create_frame(size_t width, size_t height, void* tag) = 0;\r
- virtual gpu_frame_ptr create_frame(const planar_frame_dimension& data_size, void* tag) = 0;\r
- gpu_frame_ptr create_frame(const frame_format_desc format_desc, void* tag)\r
- {\r
- return create_frame(format_desc.width, format_desc.height, tag);\r
- }\r
-};\r
-\r
-typedef std::shared_ptr<frame_factory> frame_factory_ptr;\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 "frame.h"
+#include "../fwd.h"
+
+#include <common/memory.h>
+
+namespace caspar { namespace core {
+
+class frame_factory : boost::noncopyable
+{
+ frame_factory(const frame_factory&);
+ frame_factory& operator=(const frame_factory&);
+public:
+ // Static Members
+
+ // Constructors
+
+ frame_factory(){}
+ virtual ~frame_factory(){}
+
+ // Methods
+
+ virtual mutable_frame create_frame(
+ const void* video_stream_tag,
+ const pixel_format_desc& desc,
+ const core::audio_channel_layout& channel_layout) = 0;
+
+ // Properties
+
+ virtual int get_max_frame_size() = 0;
+};
+
}}
\ No newline at end of file