From 6427e9dcb2cd239dcd5a392aac847df47f9875d9 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 27 Jul 2012 22:30:35 +0100 Subject: Use a Crop struct and use it to speed up cropping a bit. --- src/lib/util.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/lib/util.cc') diff --git a/src/lib/util.cc b/src/lib/util.cc index c15433953..5106f3182 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -491,3 +491,13 @@ dcp_audio_sample_rate (int fs) return 96000; } + +bool operator== (Crop const & a, Crop const & b) +{ + return (a.left == b.left && a.right == b.right && a.top == b.top && a.bottom == b.bottom); +} + +bool operator!= (Crop const & a, Crop const & b) +{ + return !(a == b); +} -- cgit v1.2.3