Make it quicker to cancel an analyse subtitle job (#2486).
[dcpomatic.git] / src / lib / render_text.h
index 762d794466e9747984dbf3be5d6e11ea153c9b15..6d20912a278771981dd2f9299b26c4ee354fd096 100644 (file)
@@ -19,8 +19,9 @@
 */
 
 
-#include "position_image.h"
 #include "dcpomatic_time.h"
+#include "position_image.h"
+#include "rect.h"
 #include "string_text.h"
 #include <dcp/util.h>
 #include <memory>
@@ -33,6 +34,7 @@ namespace dcpomatic {
 
 std::string marked_up (std::list<StringText> subtitles, int target_height, float fade_factor, std::string font_name);
 std::list<PositionImage> render_text (std::list<StringText>, dcp::Size, dcpomatic::DCPTime, int);
+std::list<dcpomatic::Rect<int>> bounding_box(std::list<StringText> subtitles, dcp::Size target, boost::optional<dcp::SubtitleStandard> override_standard = boost::none);
 
 
 class FontMetrics