X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fvideo_sink.h;h=0170c7350c90d1f1898c9a275b7d21556fc4c2e5;hb=605355f3335d189f6243be42bf254df2ba0442f2;hp=7c128cf73008d7ca8e71a5f4aa5c3aa52b3b4f8a;hpb=422341d1cb6bc8cbb6be76eac239c40cb4061c79;p=dcpomatic.git diff --git a/src/lib/video_sink.h b/src/lib/video_sink.h index 7c128cf73..0170c7350 100644 --- a/src/lib/video_sink.h +++ b/src/lib/video_sink.h @@ -34,7 +34,19 @@ public: * @param same true if i is the same as last time we were called. * @param s A subtitle that should be on this frame, or 0. */ - virtual void process_video (boost::shared_ptr i, bool same, boost::shared_ptr s) = 0; + virtual void process_video (boost::shared_ptr i, bool same, boost::shared_ptr s) = 0; +}; + +class TimedVideoSink +{ +public: + /** Call with a frame of video. + * @param i Video frame image. + * @param same true if i is the same as last time we were called. + * @param s A subtitle that should be on this frame, or 0. + * @param t Source timestamp. + */ + virtual void process_video (boost::shared_ptr i, bool same, boost::shared_ptr s, double t) = 0; }; #endif