TuttleOFX  1
TuttleOFX/libraries/tuttle/src/tuttle/plugin/ofxToGil/color.hpp
Go to the documentation of this file.
00001 #ifndef _TUTTLE_OFXTOGIL_COLOR_HPP_
00002 #define _TUTTLE_OFXTOGIL_COLOR_HPP_
00003 
00004 #include <ofxPixels.h>
00005 
00006 #include <terry/typedefs.hpp>
00007 #include <boost/gil/rgba.hpp>
00008 
00009 namespace tuttle {
00010 namespace plugin {
00011 
00012 inline boost::gil::rgba64f_pixel_t ofxToGil( const OfxRGBAColourD& c )
00013 {
00014         return boost::gil::rgba64f_pixel_t( c.r, c.g, c.b, c.a );
00015 }
00016 
00017 }
00018 }
00019 
00020 
00021 #endif
00022