wip: got stuck... because PlayerVideo is related to the render size
[dcpomatic.git] / src / lib / pixel_quanta.cc
index 7c1d285cffd3d0c1b55b0384f73cc582b10cd135..ad3ee1d7a6c7fff1040dbe8ca866dff7aa8b9456 100644 (file)
@@ -66,3 +66,17 @@ max (PixelQuanta const& a, PixelQuanta const& b)
        return { std::max(a.x, b.x), std::max(a.y, b.y) };
 }
 
+
+bool
+operator==(PixelQuanta const& a, PixelQuanta const& b)
+{
+       return a.x == b.x && a.y == b.y;
+}
+
+
+bool
+operator!=(PixelQuanta const& a, PixelQuanta const& b)
+{
+       return a.x != b.x || a.y != b.y;
+}
+