Don't scale chroma subsampled images to sizes that don't align with the subsampling...
[dcpomatic.git] / src / lib / pixel_quanta.cc
index 09e6840645cf7d967a05b9dddbbbb92aaf2f84e1..7c1d285cffd3d0c1b55b0384f73cc582b10cd135 100644 (file)
@@ -53,6 +53,13 @@ PixelQuanta::round_y (int y_) const
 }
 
 
+dcp::Size
+PixelQuanta::round (dcp::Size size) const
+{
+       return dcp::Size (round_x(size.width), round_y(size.height));
+}
+
+
 PixelQuanta
 max (PixelQuanta const& a, PixelQuanta const& b)
 {