projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Differentiate requested and actual crop.
[dcpomatic.git]
/
src
/
lib
/
pixel_quanta.cc
diff --git
a/src/lib/pixel_quanta.cc
b/src/lib/pixel_quanta.cc
index 12eea5031a606a88427233b631f30822dde4cba2..09e6840645cf7d967a05b9dddbbbb92aaf2f84e1 100644
(file)
--- a/
src/lib/pixel_quanta.cc
+++ b/
src/lib/pixel_quanta.cc
@@
-39,6
+39,20
@@
PixelQuanta::as_xml (xmlpp::Element* node) const
}
+int
+PixelQuanta::round_x (int x_) const
+{
+ return x_ - (x_ % x);
+}
+
+
+int
+PixelQuanta::round_y (int y_) const
+{
+ return y_ - (y_ % y);
+}
+
+
PixelQuanta
max (PixelQuanta const& a, PixelQuanta const& b)
{