Some OS X build fixes.
authorCarl Hetherington <cth@carlh.net>
Wed, 28 Jan 2015 10:35:33 +0000 (10:35 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 28 Jan 2015 10:35:33 +0000 (10:35 +0000)
asdcplib/src/h__Writer.cpp
src/certificate_chain.cc
src/certificates.cc
src/mono_picture_frame.cc
src/mono_picture_frame.h
src/mono_picture_mxf.cc
src/signer.cc
test/certificates_test.cc
test/colour_conversion_test.cc
test/dcp_test.cc

index d743e300c0f7e6298e7db6f0239c2a35b8987dc1..676267ce68ccc1020f211d5ead16f39833203420 100755 (executable)
@@ -32,7 +32,6 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #include "AS_DCP_internal.h"
 #include "KLV.h"
 
-using std::cout;
 using namespace ASDCP;
 using namespace ASDCP::MXF;
 
index 43bdba40797ec65c2165e2090deeae4f03036993..4f92d8d9983ccd7e7a5d19cfdf33f9028dc9b324 100644 (file)
@@ -37,7 +37,6 @@ using std::string;
 using std::ofstream;
 using std::ifstream;
 using std::stringstream;
-using std::cout;
 
 /** Run a shell command.
  *  @param cmd Command to run (UTF8-encoded).
index da8f39c739caf6f1cb8e20e5773184d372cfd064..a9d0b37130db8f527601fc180e23248ad95efd26 100644 (file)
@@ -38,7 +38,6 @@
 
 using std::list;
 using std::string;
-using std::cout;
 using std::ostream;
 using namespace dcp;
 
index 617d46875821f940af2f6bb00eb33d08f3fc11dd..9c0c3cae7672779fd30787067dc6fbed5a88ca3e 100644 (file)
@@ -120,7 +120,7 @@ MonoPictureFrame::j2k_size () const
  *  is blue, second green, third red and fourth alpha (always 255).
  */
 shared_ptr<ARGBFrame>
-MonoPictureFrame::argb_frame (int reduce, float srgb_gamma) const
+MonoPictureFrame::argb_frame (int reduce) const
 {
        return xyz_to_rgba (
                decompress_j2k (const_cast<uint8_t*> (_buffer->RoData()), _buffer->Size(), reduce),
index bcd7024b1fc6f4618fa4ac7007b01e9781347b56..aaafe398c42668e0988674c009bbe7cdf488e507 100644 (file)
@@ -51,7 +51,7 @@ public:
        MonoPictureFrame ();
        ~MonoPictureFrame ();
 
-       boost::shared_ptr<ARGBFrame> argb_frame (int reduce = 0, float srgb_gamma = 2.4) const;
+       boost::shared_ptr<ARGBFrame> argb_frame (int reduce = 0) const;
        void rgb_frame (uint16_t* buffer, boost::optional<NoteHandler> note = boost::optional<NoteHandler> ()) const;
        uint8_t const * j2k_data () const;
        uint8_t* j2k_data ();
index 4114f5ade6f146075904b0dc9ff5b96b29e359a8..09311a01fb0a9cf39e131ee4a051e646879c91b4 100644 (file)
@@ -28,7 +28,6 @@
 
 using std::string;
 using std::vector;
-using std::cout;
 using boost::shared_ptr;
 using boost::dynamic_pointer_cast;
 using namespace dcp;
index 67c8ac58fabc43fececf9d5bee97816809cb0b6a..f6cc76ac4edbfdd9e84d7d34d362cd2e0a34af33 100644 (file)
@@ -36,7 +36,6 @@
 
 using std::string;
 using std::list;
-using std::cout;
 using boost::shared_ptr;
 using namespace dcp;
 
index c9839d9cf2aa709556f3a0dc5ee558c6c7787772..520cb99cd5160af6dd259603b15a12d123d2cfef 100644 (file)
@@ -23,7 +23,6 @@
 #include "util.h"
 
 using std::list;
-using std::cout;
 using std::string;
 using boost::shared_ptr;
 
index 4640b36c1e57688d6c7a053f087c8a4a0fae4dcb..7193a5efb46db5e4b13a66260d15a90d56f4f0a2 100644 (file)
@@ -31,10 +31,10 @@ static void
 check_gamma (shared_ptr<const TransferFunction> tf, int bit_depth, float gamma)
 {
        double const * lut = tf->lut (bit_depth);
-       int const count = pow (2, bit_depth);
+       int const count = rint (pow (2.0, bit_depth));
 
        for (int i = 0; i < count; ++i) {
-               BOOST_CHECK_CLOSE (lut[i], pow (double(i) / (count - 1), gamma), 0.001);
+               BOOST_CHECK_CLOSE (lut[i], pow (float(i) / (count - 1), gamma), 0.001);
        }
 }
 
@@ -42,7 +42,7 @@ static void
 check_modified_gamma (shared_ptr<const TransferFunction> tf, int bit_depth, double power, double threshold, double A, double B)
 {
        double const * lut = tf->lut (bit_depth);
-       int const count = pow (2, bit_depth);
+       int const count = rint (pow (2.0, bit_depth));
 
        for (int i = 0; i < count; ++i) {
                double const x = double(i) / (count - 1);
index c41eaf018451d2db28bd5562e0e19b6baebaa102..5bedf5f67fa07b1631c976b3ceaeabca02706fe7 100644 (file)
@@ -185,7 +185,7 @@ BOOST_AUTO_TEST_CASE (dcp_test2)
 }
 
 static void
-note (dcp::NoteType, string s)
+note (dcp::NoteType, string)
 {
 
 }