Try to add correct namespace for 3D CPLs.
[libdcp.git] / src / argb_frame.h
index c5c35768aa7d8da6d35039ce193a6499bc9e127a..f26436cd4b08a5d65961572ad3b1f4d536a77372 100644 (file)
@@ -22,6 +22,7 @@
  */
 
 #include <stdint.h>
+#include "util.h"
 
 namespace libdcp
 {
@@ -33,18 +34,18 @@ namespace libdcp
  *
  *  <pre>
  *  Byte   /- 0 -------|- 1 --------|- 2 --------|- 3 --------|- 4 --------|- 5 --------| ...
- *         |(0, 0) Blue|(0, 0) Red  |(0, 0) Blue |(0, 0) Alpha|(0, 1) Blue |(0, 1) Red  | ...
+ *         |(0, 0) Blue|(0, 0)Green |(0, 0) Red  |(0, 0) Alpha|(0, 1) Blue |(0, 1) Green| ...
  *  </pre>
  *
  *  So that the first byte is the blue component of the pixel at x=0, y=0, the second
- *  is the red component, and so on.
+ *  is the green component, and so on.
  *
  *  Lines are packed so that the second row directly follows the first.
  */
 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;
 };