X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fvideo_content.h;h=2adf941d97cc3cd4a26a5b0e0c13ca33abd95464;hb=f41d6c693c1cd5816bef2f1651ed017c8564213c;hp=0c46499547c3245b0ad410dd4a1ea2b0b16708c7;hpb=8a3d5a7729e10a901132ff00efbd5d80e38b2455;p=dcpomatic.git diff --git a/src/lib/video_content.h b/src/lib/video_content.h index 0c4649954..2adf941d9 100644 --- a/src/lib/video_content.h +++ b/src/lib/video_content.h @@ -26,6 +26,7 @@ #include "colour_conversion.h" #include "content_part.h" #include "dcpomatic_time.h" +#include "pixel_quanta.h" #include "types.h" #include "user_property.h" #include @@ -112,27 +113,29 @@ public: return _frame_type; } - Crop crop () const { + Crop actual_crop () const; + + Crop requested_crop () const { boost::mutex::scoped_lock lm (_mutex); return _crop; } - int left_crop () const { + int requested_left_crop () const { boost::mutex::scoped_lock lm (_mutex); return _crop.left; } - int right_crop () const { + int requested_right_crop () const { boost::mutex::scoped_lock lm (_mutex); return _crop.right; } - int top_crop () const { + int requested_top_crop () const { boost::mutex::scoped_lock lm (_mutex); return _crop.top; } - int bottom_crop () const { + int requested_bottom_crop () const { boost::mutex::scoped_lock lm (_mutex); return _crop.bottom; } @@ -180,6 +183,11 @@ public: return _range; } + PixelQuanta pixel_quanta () const { + boost::mutex::scoped_lock lm (_mutex); + return _pixel_quanta; + } + bool use () const { boost::mutex::scoped_lock lm (_mutex); return _use; @@ -245,6 +253,7 @@ private: /** fade out time in content frames */ Frame _fade_out; VideoRange _range; + PixelQuanta _pixel_quanta; boost::optional _burnt_subtitle_language; };