Fix colour range in XYZ -> RGBA.
[libdcp.git] / src / key.cc
index 0e04c27a538b63854f80de8fc64a52f7243a3e4c..46b09efbb99ab50471e16af8d022dadc5cf9458e 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2013 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2013-2014 Carl Hetherington <cth@carlh.net>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
 
 */
 
-#include <sstream>
-#include <string>
-#include <iomanip>
+/** @file  src/key.cc
+ *  @brief Key class.
+ */
+
+#include "key.h"
 #include "AS_DCP.h"
 #include "KM_prng.h"
 #include "KM_util.h"
-#include "key.h"
+#include <sstream>
+#include <string>
+#include <iomanip>
 
 using std::string;
 using std::stringstream;
@@ -68,7 +72,7 @@ Key::operator= (Key const & other)
        if (this == &other) {
                return *this;
        }
-       
+
        memcpy (_value, other._value, ASDCP::KeyLen);
        return *this;
 }
@@ -77,7 +81,7 @@ string
 Key::hex () const
 {
        stringstream g;
-       
+
        for (unsigned int i = 0; i < ASDCP::KeyLen; ++i) {
                g << setw(2) << setfill('0') << std::hex << static_cast<int> (_value[i]);
        }