projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Put Time types in dcpomatic namespace.
[dcpomatic.git]
/
src
/
lib
/
decoder_part.h
diff --git
a/src/lib/decoder_part.h
b/src/lib/decoder_part.h
index 1a879452703a5dd301ff86a38e253da4360fd757..53d1a1b0827349fecc2b37dece5498be3786b837 100644
(file)
--- a/
src/lib/decoder_part.h
+++ b/
src/lib/decoder_part.h
@@
-26,37
+26,30
@@
class Decoder;
class Log;
class Decoder;
class Log;
+class Film;
class DecoderPart
{
public:
class DecoderPart
{
public:
- DecoderPart (Decoder* parent, boost::shared_ptr<Log> log);
+ DecoderPart (Decoder* parent);
+ virtual ~DecoderPart () {}
- void set_ignore () {
- _ignore = true;
+ virtual dcpomatic::ContentTime position (boost::shared_ptr<const Film> film) const = 0;
+ virtual void seek () = 0;
+
+ void set_ignore (bool i) {
+ _ignore = i;
}
bool ignore () const {
return _ignore;
}
}
bool ignore () const {
return _ignore;
}
- void set_position (ContentTime position) {
- _position = position;
- }
-
- boost::optional<ContentTime> position () const {
- return _position;
- }
-
- void maybe_seek (ContentTime time, bool accurate);
-
protected:
Decoder* _parent;
protected:
Decoder* _parent;
- boost::shared_ptr<Log> _log;
private:
bool _ignore;
private:
bool _ignore;
- boost::optional<ContentTime> _position;
};
#endif
};
#endif