Attempt to fix a build problem (ambiguous PixelType error when compiled on Mac x86)
authorAndrey Kamaev <no@email>
Fri, 19 Aug 2011 19:18:32 +0000 (19:18 +0000)
committerAndrey Kamaev <no@email>
Fri, 19 Aug 2011 19:18:32 +0000 (19:18 +0000)
modules/highgui/src/grfmt_exr.cpp
modules/highgui/src/grfmt_exr.hpp

index 70040e5..ac73b77 100644 (file)
@@ -589,7 +589,7 @@ bool  ExrEncoder::write( const Mat& img, const vector<int>& )
     int step = img.step;
 
     Header header( width, height );
-    PixelType type;
+    Imf::PixelType type;
 
     if(depth == 8)
         type = HALF;
index 642000b..9c8c609 100644 (file)
@@ -81,7 +81,7 @@ protected:
     void  RGBToGray( float *in, float *out );
 
     InputFile      *m_file;
-    PixelType       m_type;
+    Imf::PixelType  m_type;
     Box2i           m_datawindow;
     bool            m_ischroma;
     const Channel  *m_red;