X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fsubtitle_analysis.h;h=04dcc95014b5654489b07b8d64031fbbe3b197a4;hb=2b3fbc42400258ae47ae3a10d3dfd9f0561d1940;hp=6a7049a294031220a5194d167fee8f729c9aaba9;hpb=3dc465914c2853923535ab630457874c11b1db3e;p=dcpomatic.git diff --git a/src/lib/subtitle_analysis.h b/src/lib/subtitle_analysis.h index 6a7049a29..04dcc9501 100644 --- a/src/lib/subtitle_analysis.h +++ b/src/lib/subtitle_analysis.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2020 Carl Hetherington + Copyright (C) 2020-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,22 +18,21 @@ */ + #include "rect.h" -#include #include /** @class SubtitleAnalysis * @brief Class to store the results of a SubtitleAnalysisJob. */ - -class SubtitleAnalysis : public boost::noncopyable +class SubtitleAnalysis { public: explicit SubtitleAnalysis (boost::filesystem::path path); SubtitleAnalysis ( - boost::optional > bounding_box, + boost::optional> bounding_box, double analysis_x_offset_, double analysis_y_offset_ ) @@ -42,9 +41,12 @@ public: , _analysis_y_offset (analysis_y_offset_) {} + SubtitleAnalysis (SubtitleAnalysis const&) = delete; + SubtitleAnalysis& operator= (SubtitleAnalysis const&) = delete; + void write (boost::filesystem::path path) const; - boost::optional > bounding_box () const { + boost::optional> bounding_box () const { return _bounding_box; } @@ -61,7 +63,7 @@ private: * expressed as a proportion of screen size (i.e. 0 is left hand side/top, * 1 is right hand side/bottom), or empty if no subtitles were found. */ - boost::optional > _bounding_box; + boost::optional> _bounding_box; double _analysis_x_offset; double _analysis_y_offset;