X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ftext_subtitle_decoder.h;h=72bb89b77e57a89c8da71ecb449f663c0edb89d6;hb=9d904847726295852b78b0029939d0f848793d06;hp=67d2caca826971d85599f2daa308524aa4383921;hpb=80400212e939dc2f3b987cb6df57709929aa5178;p=dcpomatic.git diff --git a/src/lib/text_subtitle_decoder.h b/src/lib/text_subtitle_decoder.h index 67d2caca8..72bb89b77 100644 --- a/src/lib/text_subtitle_decoder.h +++ b/src/lib/text_subtitle_decoder.h @@ -1,19 +1,20 @@ /* Copyright (C) 2014-2016 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 . */ @@ -25,18 +26,15 @@ class TextSubtitleContent; -class TextSubtitleDecoder : public SubtitleDecoder, public TextSubtitle +class TextSubtitleDecoder : public Decoder, public TextSubtitle { public: - TextSubtitleDecoder (boost::shared_ptr); + TextSubtitleDecoder (boost::shared_ptr, boost::shared_ptr log); -protected: void seek (ContentTime time, bool accurate); - bool pass (PassReason, bool accurate); + bool pass (); private: - std::list image_subtitles_during (ContentTimePeriod, bool starting) const; - std::list text_subtitles_during (ContentTimePeriod, bool starting) const; ContentTimePeriod content_time_period (sub::Subtitle s) const; size_t _next;