X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fvideo_decoder.h;h=0b05b2f7143690237754d810d8557d8e80cb9d77;hb=47f25009bcbc765e397bcb471dd361a511c99daf;hp=05cf99a961e3ebbcdda8b97833f0ae5ef5ff48f4;hpb=9bdd8cc51942a13e360dde4efc04b3ca417c8b94;p=dcpomatic.git diff --git a/src/lib/video_decoder.h b/src/lib/video_decoder.h index 05cf99a96..0b05b2f71 100644 --- a/src/lib/video_decoder.h +++ b/src/lib/video_decoder.h @@ -17,15 +17,15 @@ */ -#ifndef DVDOMATIC_VIDEO_DECODER_H -#define DVDOMATIC_VIDEO_DECODER_H +#ifndef DCPOMATIC_VIDEO_DECODER_H +#define DCPOMATIC_VIDEO_DECODER_H #include "video_source.h" #include "decoder.h" class VideoContent; -class VideoDecoder : public VideoSource, public virtual Decoder +class VideoDecoder : public TimedVideoSource, public virtual Decoder { public: VideoDecoder (boost::shared_ptr); @@ -56,21 +56,14 @@ protected: virtual PixelFormat pixel_format () const = 0; - void emit_video (boost::shared_ptr, double); + void emit_video (boost::shared_ptr, bool, double); void emit_subtitle (boost::shared_ptr); - bool have_last_video () const; - void repeat_last_video (double); private: - void signal_video (boost::shared_ptr, bool, boost::shared_ptr, double); - int _video_frame; double _last_content_time; boost::shared_ptr _timed_subtitle; - - boost::shared_ptr _last_image; - boost::shared_ptr _last_subtitle; }; #endif