Don't scale chroma subsampled images to sizes that don't align with the subsampling...
[dcpomatic.git] / src / lib / pixel_quanta.h
index e4a03c9d2a126839294a8916d86261c5d4d52a50..018ce334638f1819ac56eddb541283303049144d 100644 (file)
@@ -26,6 +26,7 @@
 #include "warnings.h"
 
 #include <libcxml/cxml.h>
+#include <dcp/types.h>
 DCPOMATIC_DISABLE_WARNINGS
 #include <libxml++/libxml++.h>
 DCPOMATIC_ENABLE_WARNINGS
@@ -52,6 +53,10 @@ public:
 
        void as_xml (xmlpp::Element* node) const;
 
+       int round_x (int x_) const;
+       int round_y (int y_) const;
+       dcp::Size round (dcp::Size size) const;
+
        int x;
        int y;
 };