Provide accessors to ARGBFrame's width and height.
authorCarl Hetherington <cth@carlh.net>
Thu, 4 Oct 2012 13:27:55 +0000 (14:27 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 4 Oct 2012 13:27:55 +0000 (14:27 +0100)
src/argb_frame.h

index 1adbbd14c3b60e0072b2ac1062535794ec0c71ee..c5c35768aa7d8da6d35039ce193a6499bc9e127a 100644 (file)
@@ -54,6 +54,14 @@ public:
        /** Length of one picture row in bytes */
        int stride () const;
 
+       int width () const {
+               return _width;
+       }
+
+       int height () const {
+               return _height;
+       }
+
 private:
        int _width;
        int _height;