projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change MagickImageProxy to FFmpegImageProxy and make it use FFmpeg
[dcpomatic.git]
/
src
/
lib
/
decoder_part.h
diff --git
a/src/lib/decoder_part.h
b/src/lib/decoder_part.h
index 1a879452703a5dd301ff86a38e253da4360fd757..0b8b6a43bfdedc89d416aa21df3b60800649b741 100644
(file)
--- a/
src/lib/decoder_part.h
+++ b/
src/lib/decoder_part.h
@@
-31,32
+31,25
@@
class DecoderPart
{
public:
DecoderPart (Decoder* parent, boost::shared_ptr<Log> log);
{
public:
DecoderPart (Decoder* parent, boost::shared_ptr<Log> log);
+ virtual ~DecoderPart () {}
- void set_ignore () {
- _ignore = true;
+ virtual ContentTime position () 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;
boost::shared_ptr<Log> _log;
private:
bool _ignore;
protected:
Decoder* _parent;
boost::shared_ptr<Log> _log;
private:
bool _ignore;
- boost::optional<ContentTime> _position;
};
#endif
};
#endif