X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcontent_subtitle.h;h=36bc22b13e5e5f04d7bd9243f264784eb67ac7cb;hb=ad27e9acc3d99a29fdc358da62feb603983f8882;hp=6a28c37bf2c79b19eb3ffde4040f66559c6b277a;hpb=74fe68e5895654e27a7cf8097917c1e95fa89519;p=dcpomatic.git diff --git a/src/lib/content_subtitle.h b/src/lib/content_subtitle.h index 6a28c37bf..36bc22b13 100644 --- a/src/lib/content_subtitle.h +++ b/src/lib/content_subtitle.h @@ -20,10 +20,11 @@ #ifndef DCPOMATIC_CONTENT_SUBTITLE_H #define DCPOMATIC_CONTENT_SUBTITLE_H -#include -#include #include "dcpomatic_time.h" #include "rect.h" +#include "image_subtitle.h" +#include +#include class Image; @@ -37,8 +38,7 @@ class ContentImageSubtitle : public ContentSubtitle { public: ContentImageSubtitle (ContentTimePeriod p, boost::shared_ptr im, dcpomatic::Rect r) - : image (im) - , rectangle (r) + : sub (im, r) , _period (p) {} @@ -46,8 +46,8 @@ public: return _period; } - boost::shared_ptr image; - dcpomatic::Rect rectangle; + /* Our subtitle, with its rectangle unmodified by any offsets or scales that the content specifies */ + ImageSubtitle sub; private: ContentTimePeriod _period;