From de2af791bdfdcd653752cba970e59efc7bf810c7 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 21 Nov 2016 16:57:15 +0000 Subject: Basic grunt-work, untested and unfinished, but it compiles. --- src/lib/video_decoder.h | 32 +++----------------------------- 1 file changed, 3 insertions(+), 29 deletions(-) (limited to 'src/lib/video_decoder.h') diff --git a/src/lib/video_decoder.h b/src/lib/video_decoder.h index 156ee4222..08173d34d 100644 --- a/src/lib/video_decoder.h +++ b/src/lib/video_decoder.h @@ -46,44 +46,18 @@ class VideoDecoder : public DecoderPart public: VideoDecoder (Decoder* parent, boost::shared_ptr c, boost::shared_ptr log); - std::list get (Frame frame, bool accurate); - -#ifdef DCPOMATIC_DEBUG - int test_gaps; -#endif - friend struct video_decoder_fill_test1; friend struct video_decoder_fill_test2; friend struct ffmpeg_pts_offset_test; friend void ffmpeg_decoder_sequential_test_one (boost::filesystem::path file, float fps, int gaps, int video_length); - void seek (ContentTime time, bool accurate); - void give (boost::shared_ptr, Frame frame); + void emit (boost::shared_ptr, Frame frame); - boost::optional position () const { - return _position; - } - - void reset_position () { - _position.reset (); - } + boost::signals2::signal Data; private: - - std::list decoded (Frame frame); - void fill_one_eye (Frame from, Frame to, Eyes); - void fill_both_eyes (VideoFrame from, VideoFrame to); - boost::shared_ptr _content; - std::list _decoded; - boost::shared_ptr _black_image; - boost::optional _last_seek_time; - bool _last_seek_accurate; - /** if set, this is a frame for which we got no data because the Decoder said - * it has no more to give. - */ - boost::optional _no_data_frame; - boost::optional _position; + boost::optional _last_emitted; }; #endif -- cgit v1.2.3