X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fsubrip_subtitle.h;h=f39a317b72e4d890cc39c5d2d8989d30f9f34f17;hb=e60bb3e51bd1508b149e6b8f6608f09b5196ae26;hp=f730ee492242ca3696731ee4230191da0f837f4c;hpb=8aeb741ccbe2edb528e98a431bf55459a6836a9b;p=dcpomatic.git diff --git a/src/lib/subrip_subtitle.h b/src/lib/subrip_subtitle.h index f730ee492..f39a317b7 100644 --- a/src/lib/subrip_subtitle.h +++ b/src/lib/subrip_subtitle.h @@ -20,9 +20,10 @@ #ifndef DCPOMATIC_SUBRIP_SUBTITLE_H #define DCPOMATIC_SUBRIP_SUBTITLE_H -#include -#include #include "types.h" +#include "dcpomatic_time.h" +#include +#include struct SubRipSubtitlePiece { @@ -31,23 +32,17 @@ struct SubRipSubtitlePiece , italic (false) , underline (false) {} - + std::string text; bool bold; bool italic; bool underline; - libdcp::Color color; + dcp::Colour color; }; struct SubRipSubtitle { - SubRipSubtitle () - : from (0) - , to (0) - {} - - ContentTime from; - ContentTime to; + ContentTimePeriod period; boost::optional x1; boost::optional x2; boost::optional y1;