diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-05-15 22:44:19 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-05-16 21:39:01 +0200 |
| commit | 194ec286939aba7b0cf24762d03ce6ebfe0b9a9f (patch) | |
| tree | 5b282afea0b90f6c53426de0550fdad21de5574f /src/lib/empty.h | |
| parent | 1fca376d1000500d2450d936b42004ca69b086b6 (diff) | |
Split Empty into two separate classes, EmptyAudio and EmptyVideo.
Diffstat (limited to 'src/lib/empty.h')
| -rw-r--r-- | src/lib/empty.h | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/src/lib/empty.h b/src/lib/empty.h deleted file mode 100644 index 145b84091..000000000 --- a/src/lib/empty.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - Copyright (C) 2018-2021 Carl Hetherington <cth@carlh.net> - - This file is part of DCP-o-matic. - - DCP-o-matic is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - DCP-o-matic is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>. - -*/ - - -#ifndef DCPOMATIC_EMPTY_H -#define DCPOMATIC_EMPTY_H - - -#include "playlist.h" -#include "dcpomatic_time.h" -#include "content_part.h" -#include <list> - - -struct empty_test1; -struct empty_test2; -struct empty_test3; -struct empty_test_with_overlapping_content; -struct player_subframe_test; - - -class Empty -{ -public: - Empty () {} - Empty (std::shared_ptr<const Film> film, std::shared_ptr<const Playlist> playlist, std::function<bool (std::shared_ptr<const Content>)> part, dcpomatic::DCPTime length); - - dcpomatic::DCPTime position () const { - return _position; - } - - dcpomatic::DCPTimePeriod period_at_position () const; - - bool done () const; - - 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<dcpomatic::DCPTimePeriod> _periods; - dcpomatic::DCPTime _position; -}; - - -#endif |
