From ff072d0ce9e67eaf5b154164b1c58e4759ca5748 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 4 Oct 2012 14:27:55 +0100 Subject: [PATCH] Provide accessors to ARGBFrame's width and height. --- src/argb_frame.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/argb_frame.h b/src/argb_frame.h index 1adbbd14..c5c35768 100644 --- a/src/argb_frame.h +++ b/src/argb_frame.h @@ -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; -- 2.30.2