From 70b72b53eab0f247eb4dc605a2d669d4adb4e469 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 3 Oct 2021 20:53:44 +0200 Subject: Differentiate requested and actual crop. This is so we limit cropping to what is possible considering chroma subsampling. --- src/lib/video_content.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/lib/video_content.h') diff --git a/src/lib/video_content.h b/src/lib/video_content.h index de151e145..ce645bb41 100644 --- a/src/lib/video_content.h +++ b/src/lib/video_content.h @@ -113,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; } -- cgit v1.2.3