summaryrefslogtreecommitdiff
path: root/src/argb_frame.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-01-17 19:44:58 +0000
committerCarl Hetherington <cth@carlh.net>2013-01-17 19:44:58 +0000
commit369ba52fe8b3ddeda734692541471c402016a18d (patch)
treef140d572d97f1bb27d0713160247457c767cc101 /src/argb_frame.h
parent62ee85a258aa9329544d8542dfbcc40ce8177a7a (diff)
Use new Size struct.
Diffstat (limited to 'src/argb_frame.h')
-rw-r--r--src/argb_frame.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/argb_frame.h b/src/argb_frame.h
index c5c35768..a9946bb0 100644
--- a/src/argb_frame.h
+++ b/src/argb_frame.h
@@ -22,6 +22,7 @@
*/
#include <stdint.h>
+#include "util.h"
namespace libdcp
{
@@ -44,7 +45,7 @@ namespace libdcp
class ARGBFrame
{
public:
- ARGBFrame (int width, int height);
+ ARGBFrame (Size size);
~ARGBFrame ();
uint8_t* data () const {
@@ -54,17 +55,12 @@ public:
/** Length of one picture row in bytes */
int stride () const;
- int width () const {
- return _width;
- }
-
- int height () const {
- return _height;
+ Size size () const {
+ return _size;
}
private:
- int _width;
- int _height;
+ Size _size;
uint8_t* _data;
};