]> git.sesse.net Git - casparcg/blobdiff - core/frame/frame_factory.h
[image_producer] refuse too large images nicely instead of letting OpenGL tell us...
[casparcg] / core / frame / frame_factory.h
index 40f501d4a795167f8d81aedb7e5aa0069e7cec23..4f9d1c8d80e250efc85b2c6d5c07d87c7921628d 100644 (file)
@@ -1,40 +1,55 @@
-/*\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 <common/memory/safe_ptr.h>\r
-\r
-#include <core/video_format.h>\r
-\r
-#include <boost/noncopyable.hpp>\r
-\r
-namespace caspar { namespace core {\r
-                       \r
-struct frame_factory : boost::noncopyable\r
-{\r
-       frame_factory(){}\r
-\r
-       virtual safe_ptr<class write_frame> create_frame(const void* video_stream_tag, const struct pixel_format_desc& desc, field_mode mode = field_mode::progressive) = 0;            \r
-       virtual struct video_format_desc get_video_format_desc() const = 0; // nothrow\r
-};\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