X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fpiece.h;h=688242c064d5b54013217fb6c98a942540445817;hp=976409381d3a8744c69f5f14e53f67a5ca688e08;hb=2d4e8c5f69cc694625ad95dcee554499605f823b;hpb=4e411ea97b4dab8a5fa282d1d4cf7971ef1e24ad diff --git a/src/lib/piece.h b/src/lib/piece.h index 976409381..688242c06 100644 --- a/src/lib/piece.h +++ b/src/lib/piece.h @@ -1,43 +1,53 @@ /* - Copyright (C) 2013-2014 Carl Hetherington + Copyright (C) 2013-2021 Carl Hetherington - This program is free software; you can redistribute it and/or modify + 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. - This program is distributed in the hope that it will be useful, + 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 this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with DCP-o-matic. If not, see . */ + #ifndef DCPOMATIC_PIECE_H #define DCPOMATIC_PIECE_H + +#include "dcpomatic_time.h" +#include "frame_rate_change.h" #include "types.h" -#include "video_content.h" + class Content; class Decoder; + class Piece { public: - Piece (boost::shared_ptr c, boost::shared_ptr d, FrameRateChange f) + Piece (std::shared_ptr c, std::shared_ptr d, FrameRateChange f) : content (c) , decoder (d) , frc (f) + , done (false) {} - - boost::shared_ptr content; - boost::shared_ptr decoder; + + std::shared_ptr content; + std::shared_ptr decoder; + boost::optional ignore_video; FrameRateChange frc; + bool done; }; + #endif