summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-10-04 14:27:55 +0100
committerCarl Hetherington <cth@carlh.net>2012-10-04 14:27:55 +0100
commitff072d0ce9e67eaf5b154164b1c58e4759ca5748 (patch)
treea65295ac7ab998b99cc2d520570a0dfd383dffff
parent87dac0c96b1ecca02edd97f7573ec95a08cb23e4 (diff)
Provide accessors to ARGBFrame's width and height.
-rw-r--r--src/argb_frame.h8
1 files changed, 8 insertions, 0 deletions
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;