summaryrefslogtreecommitdiff
path: root/src/lib/decoder_factory.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-05-26 10:57:06 +0100
committerCarl Hetherington <cth@carlh.net>2016-05-26 10:57:06 +0100
commitb0f078d851e2a84d2f9d2ae085f6aad837747eb1 (patch)
tree2d99b504e4cc0e385865fbf52e755fbbc973b12c /src/lib/decoder_factory.h
parent917eaf28db474a4c605eaaa8347a3e9a86b70aa0 (diff)
Factor out decoder creation to a factory method.
Diffstat (limited to 'src/lib/decoder_factory.h')
-rw-r--r--src/lib/decoder_factory.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/lib/decoder_factory.h b/src/lib/decoder_factory.h
new file mode 100644
index 000000000..6a4e55ef1
--- /dev/null
+++ b/src/lib/decoder_factory.h
@@ -0,0 +1,28 @@
+/*
+ Copyright (C) 2016 Carl Hetherington <cth@carlh.net>
+
+ This file is part of DCP-o-matic.
+
+ DCP-o-matic 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 2 of the License, or
+ (at your option) any later version.
+
+ DCP-o-matic 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 DCP-o-matic. If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+class ImageDecoder;
+
+extern boost::shared_ptr<Decoder> decoder_factory (
+ boost::shared_ptr<const Content> content,
+ std::list<boost::shared_ptr<ImageDecoder> > old_image_decoders,
+ boost::shared_ptr<Log> log,
+ bool fast
+ );