X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fdecoder.h;h=8378373c6e0e29c8c4ed45943a30a6817651ed2e;hp=583a92636443ba7cd1bd650eb3cf61144017394c;hb=aeb835a18c8df347e0ed68fb24631b320abeb611;hpb=39029279954b1f346d3ba28ec12c58211bfa7436 diff --git a/src/lib/decoder.h b/src/lib/decoder.h index 583a92636..8378373c6 100644 --- a/src/lib/decoder.h +++ b/src/lib/decoder.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2013 Carl Hetherington + Copyright (C) 2012-2015 Carl Hetherington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -24,11 +24,9 @@ #ifndef DCPOMATIC_DECODER_H #define DCPOMATIC_DECODER_H -#include -#include -#include #include "types.h" #include "dcpomatic_time.h" +#include class Decoded; @@ -40,7 +38,9 @@ class Decoder : public boost::noncopyable public: virtual ~Decoder () {} -protected: +protected: + friend class AudioDecoderStream; + /** Seek so that the next pass() will yield the next thing * (video/sound frame, subtitle etc.) at or after the requested * time. Pass accurate = true to try harder to ensure that, at worst, @@ -50,6 +50,7 @@ protected: * it may seek to just the right spot. */ virtual void seek (ContentTime time, bool accurate) = 0; + virtual bool pass () = 0; };