X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Ftext_content.h;h=83860dff54fb6f733356a30de07833b282a7d336;hp=e5981acafe90edda62f7aa389dbc1fd6f16efc13;hb=5aa057f73c9b5d0f2a4a1479bd75dee849250265;hpb=21e926ddb62165eaf85c719545135a50e93a0e08 diff --git a/src/lib/text_content.h b/src/lib/text_content.h index e5981acaf..83860dff5 100644 --- a/src/lib/text_content.h +++ b/src/lib/text_content.h @@ -22,6 +22,7 @@ #define DCPOMATIC_CAPTION_CONTENT_H #include "content_part.h" +#include "dcp_text_track.h" #include #include #include @@ -47,6 +48,7 @@ public: static int const FADE_OUT; static int const OUTLINE_WIDTH; static int const TYPE; + static int const DCP_TRACK; }; /** @class TextContent @@ -87,6 +89,8 @@ public: void set_outline_width (int); void unset_fade_out (); void set_type (TextType type); + void set_dcp_track (DCPTextTrack track); + void unset_dcp_track (); bool use () const { boost::mutex::scoped_lock lm (_mutex); @@ -173,6 +177,11 @@ public: return _original_type; } + boost::optional dcp_track () const { + boost::mutex::scoped_lock lm (_mutex); + return _dcp_track; + } + static std::list > from_xml (Content* parent, cxml::ConstNodePtr, int version); protected: @@ -217,6 +226,8 @@ private: TextType _type; /** the original type of these captions in their content */ TextType _original_type; + /** the track of closed captions that this content should be put in, or empty to put in the default (only) track */ + boost::optional _dcp_track; }; #endif