Note that newer libsub version is required.
[dcpomatic.git] / src / lib / pixel_quanta.h
index e4a03c9d2a126839294a8916d86261c5d4d52a50..37d2321f45b8474caeb777e2fe3cd4247f838b2a 100644 (file)
 #define DCPOMATIC_PIXEL_QUANTA_H
 
 
-#include "warnings.h"
-
 #include <libcxml/cxml.h>
-DCPOMATIC_DISABLE_WARNINGS
+#include <dcp/types.h>
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
 #include <libxml++/libxml++.h>
-DCPOMATIC_ENABLE_WARNINGS
+LIBDCP_ENABLE_WARNINGS
 
 
 class PixelQuanta
@@ -52,6 +52,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;
 };