Fix crop on aligned images, which affected still image DCP generation.
[dcpomatic.git] / src / lib / image.h
index 5ca3f337c82cc15df66b8779e20ece84771b5d6f..23f13a648c8b8cd29d16d1c25772d3dd50b89bf1 100644 (file)
@@ -68,6 +68,8 @@ public:
        /** @return Size of the image, in pixels */
        virtual libdcp::Size size () const = 0;
 
+       virtual bool aligned () const = 0;
+
        int components () const;
        int lines (int) const;
 
@@ -107,6 +109,7 @@ public:
        int * line_size () const;
        int * stride () const;
        libdcp::Size size () const;
+       bool aligned () const;
 
 private:
        /* Not allowed */
@@ -131,6 +134,7 @@ public:
        int * line_size () const;
        int * stride () const;
        libdcp::Size size () const;
+       bool aligned () const;
 
 protected:
        void allocate ();