X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fvideo_ring_buffers.h;h=444a49ea771e489c3d5cb7bf60ba919b17466cc3;hb=87df63f0ca9cf1df4f99f5818dad45bbc4c6e3e3;hp=887a5dc2fd2ca9e2c4c3c0858f9d519773b4441c;hpb=a5ea5c0d2637dd41e3d356cb62cac75b8cadf8ce;p=dcpomatic.git diff --git a/src/lib/video_ring_buffers.h b/src/lib/video_ring_buffers.h index 887a5dc2f..444a49ea7 100644 --- a/src/lib/video_ring_buffers.h +++ b/src/lib/video_ring_buffers.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2016-2017 Carl Hetherington + Copyright (C) 2016-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,30 +18,34 @@ */ + #include "dcpomatic_time.h" #include "player_video.h" #include "types.h" #include #include -#include #include + +class Film; class PlayerVideo; + class VideoRingBuffers : public boost::noncopyable { public: - void put (boost::shared_ptr frame, DCPTime time); - std::pair, DCPTime> get (); + void put (std::shared_ptr frame, dcpomatic::DCPTime time); + std::pair, dcpomatic::DCPTime> get (); void clear (); Frame size () const; bool empty () const; - boost::optional earliest () const; + + void reset_metadata (std::shared_ptr film, dcp::Size player_video_container_size); std::pair memory_used () const; private: mutable boost::mutex _mutex; - std::list, DCPTime> > _data; + std::list, dcpomatic::DCPTime>> _data; };