X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdecoder.cc;h=082ad5076cd402647f43800596f45614319616f6;hb=b66010a281acd3e3e58ef7202bce55023fc29d7f;hp=5778949963ccb63cff592626b96094da2e4a6cc5;hpb=9c58fcdb6fd8131c17456dd71c5c277a6b0ae053;p=dcpomatic.git diff --git a/src/lib/decoder.cc b/src/lib/decoder.cc index 577894996..082ad5076 100644 --- a/src/lib/decoder.cc +++ b/src/lib/decoder.cc @@ -22,43 +22,30 @@ */ #include -#include -#include #include "film.h" -#include "format.h" -#include "job.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" + +#include "i18n.h" using std::string; -using std::stringstream; -using std::min; -using std::pair; -using std::list; using boost::shared_ptr; -using boost::optional; /** @param f Film. - * @param o Options. - * @param j Job that we are running within, or 0 + * @param o Decode options. */ -Decoder::Decoder (boost::shared_ptr f, boost::shared_ptr o, Job* j) +Decoder::Decoder (shared_ptr f) : _film (f) - , _opt (o) - , _job (j) { - + _film_connection = f->Changed.connect (bind (&Decoder::film_changed, this, _1)); } -void -Decoder::seek (SourceFrame f) +/** Seek to a position as a content timestamp in seconds. + * @return true on error. + */ +bool +Decoder::seek (double) { - throw DecodeError ("decoder does not support seek"); + throw DecodeError (N_("decoder does not support seek")); }