#include "types.h"
#include "dcpomatic_time.h"
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
#include <boost/utility.hpp>
class Decoded;
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
PASS_REASON_AUDIO,
PASS_REASON_SUBTITLE
};
-
- virtual bool pass (PassReason reason) = 0;
+
+ /** @return true if this decoder has already returned all its data and will give no more */
+ virtual bool pass (PassReason, bool accurate) = 0;
};
#endif