diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-10-24 18:14:10 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-10-24 18:14:10 +0100 |
| commit | bd8fa9a370f1739952c83107352baa08c79d095e (patch) | |
| tree | dafa3dae2db5439dc08e770fc4b09febac5f0374 /src/lib/decoder_factory.cc | |
| parent | 44b57d623dec97a3f9955082f0b8a7a8d27b7518 (diff) | |
Merge FilmState / Film.
Diffstat (limited to 'src/lib/decoder_factory.cc')
| -rw-r--r-- | src/lib/decoder_factory.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/decoder_factory.cc b/src/lib/decoder_factory.cc index c03912094..56fb56296 100644 --- a/src/lib/decoder_factory.cc +++ b/src/lib/decoder_factory.cc @@ -25,27 +25,27 @@ #include "ffmpeg_decoder.h" #include "tiff_decoder.h" #include "imagemagick_decoder.h" -#include "film_state.h" +#include "film.h" using namespace std; using namespace boost; shared_ptr<Decoder> decoder_factory ( - shared_ptr<const FilmState> fs, shared_ptr<const Options> o, Job* j, Log* l, bool minimal = false, bool ignore_length = false + shared_ptr<Film> f, shared_ptr<const Options> o, Job* j, bool minimal = false, bool ignore_length = false ) { - if (filesystem::is_directory (fs->content_path ())) { + if (filesystem::is_directory (f->content_path ())) { /* Assume a directory contains TIFFs */ - return shared_ptr<Decoder> (new TIFFDecoder (fs, o, j, l, minimal, ignore_length)); + return shared_ptr<Decoder> (new TIFFDecoder (f, o, j, minimal, ignore_length)); } - if (fs->content_type() == STILL) { + if (f->content_type() == STILL) { /* Always ignore length of decodes of stills, since the decoder finishes very quickly and it's the encoder that takes the time. */ - return shared_ptr<Decoder> (new ImageMagickDecoder (fs, o, j, l, minimal, true)); + return shared_ptr<Decoder> (new ImageMagickDecoder (f, o, j, minimal, true)); } - return shared_ptr<Decoder> (new FFmpegDecoder (fs, o, j, l, minimal, ignore_length)); + return shared_ptr<Decoder> (new FFmpegDecoder (f, o, j, minimal, ignore_length)); } |
