projects
/
libdcp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More win32 build hacks.
[libdcp.git]
/
src
/
argb_frame.h
diff --git
a/src/argb_frame.h
b/src/argb_frame.h
index 1adbbd14c3b60e0072b2ac1062535794ec0c71ee..a9946bb04c59aa44a64ebd49906b053a51940118 100644
(file)
--- a/
src/argb_frame.h
+++ b/
src/argb_frame.h
@@
-22,6
+22,7
@@
*/
#include <stdint.h>
*/
#include <stdint.h>
+#include "util.h"
namespace libdcp
{
namespace libdcp
{
@@
-44,7
+45,7
@@
namespace libdcp
class ARGBFrame
{
public:
class ARGBFrame
{
public:
- ARGBFrame (
int width, int height
);
+ ARGBFrame (
Size size
);
~ARGBFrame ();
uint8_t* data () const {
~ARGBFrame ();
uint8_t* data () const {
@@
-54,9
+55,12
@@
public:
/** Length of one picture row in bytes */
int stride () const;
/** Length of one picture row in bytes */
int stride () const;
+ Size size () const {
+ return _size;
+ }
+
private:
private:
- int _width;
- int _height;
+ Size _size;
uint8_t* _data;
};
uint8_t* _data;
};