X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fempty.h;h=145b84091a91520a026228e87d274d8aee2825e1;hb=a1ca287cee660bce1c41baa14e079d2c97292d81;hp=50f21fc4d5380edebda09c05fcfd58a15f8289f0;hpb=254b3044d72de6b033d7c584f5abd2b9aa70aad5;p=dcpomatic.git diff --git a/src/lib/empty.h b/src/lib/empty.h index 50f21fc4d..145b84091 100644 --- a/src/lib/empty.h +++ b/src/lib/empty.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2018 Carl Hetherington + Copyright (C) 2018-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,42 +18,50 @@ */ + #ifndef DCPOMATIC_EMPTY_H #define DCPOMATIC_EMPTY_H + #include "playlist.h" #include "dcpomatic_time.h" #include "content_part.h" #include + struct empty_test1; struct empty_test2; +struct empty_test3; +struct empty_test_with_overlapping_content; struct player_subframe_test; -class Piece; + class Empty { public: Empty () {} - Empty (boost::shared_ptr film, std::list > pieces, boost::function)> part); + Empty (std::shared_ptr film, std::shared_ptr playlist, std::function)> part, dcpomatic::DCPTime length); - DCPTime position () const { + dcpomatic::DCPTime position () const { return _position; } - DCPTimePeriod period_at_position () const; + dcpomatic::DCPTimePeriod period_at_position () const; bool done () const; - void set_position (DCPTime amount); + void set_position (dcpomatic::DCPTime amount); private: friend struct ::empty_test1; friend struct ::empty_test2; + friend struct ::empty_test3; + friend struct ::empty_test_with_overlapping_content; friend struct ::player_subframe_test; - std::list _periods; - DCPTime _position; + std::list _periods; + dcpomatic::DCPTime _position; }; + #endif