00001 #include <FCam/Dummy/Frame.h> 00002 #include <FCam/processing/Color.h> 00003 00004 namespace FCam { namespace Dummy { 00005 // _Frame vtable lives here 00006 _Frame::_Frame() { 00007 } 00008 00009 void _Frame::rawToRGBColorMatrix(int kelvin, float *matrix) const { 00010 // Linear interpolation with inverse color temperature 00011 float alpha = (1./kelvin-1./3200)/(1./7000-1./3200); 00012 colorMatrixInterpolate(rawToRGB3200K, 00013 rawToRGB7000K, 00014 alpha, matrix); 00015 } 00016 }}