X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdecoder.cc;h=3f4cda6eb5a4345595410fe475314f3d24881bd7;hb=8349f0c97d98c0b7550ff4c76ad25f8f06270d6a;hp=30009460fc7b67543d6eedc4f3fe50d9b8c7d192;hpb=2e536ef0971edefea23810b99f7706881072783b;p=dcpomatic.git diff --git a/src/lib/decoder.cc b/src/lib/decoder.cc index 30009460f..3f4cda6eb 100644 --- a/src/lib/decoder.cc +++ b/src/lib/decoder.cc @@ -21,53 +21,18 @@ * @brief Parent class for decoders of content. */ -#include -#include -#include #include "film.h" -#include "format.h" -#include "options.h" -#include "exceptions.h" -#include "image.h" -#include "util.h" -#include "log.h" #include "decoder.h" -#include "delay_line.h" -#include "subtitle.h" -#include "filter_graph.h" -using std::string; -using std::stringstream; -using std::min; -using std::pair; -using std::list; +#include "i18n.h" + using boost::shared_ptr; -using boost::optional; /** @param f Film. * @param o Decode options. */ -Decoder::Decoder (boost::shared_ptr f, DecodeOptions o) +Decoder::Decoder (shared_ptr f) : _film (f) - , _opt (o) -{ - _film_connection = f->Changed.connect (bind (&Decoder::film_changed, this, _1)); -} - -/** Seek to a position as a source timestamp in seconds. - * @return true on error. - */ -bool -Decoder::seek (double) { - throw DecodeError ("decoder does not support seek"); -} -/** Seek so that the next frame we will produce is the same as the last one. - * @return true on error. - */ -bool -Decoder::seek_to_last () -{ - throw DecodeError ("decoder does not support seek"); }