diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-10-04 14:27:55 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-10-04 14:27:55 +0100 |
| commit | ff072d0ce9e67eaf5b154164b1c58e4759ca5748 (patch) | |
| tree | a65295ac7ab998b99cc2d520570a0dfd383dffff | |
| parent | 87dac0c96b1ecca02edd97f7573ec95a08cb23e4 (diff) | |
Provide accessors to ARGBFrame's width and height.
| -rw-r--r-- | src/argb_frame.h | 8 |
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; |
