#include #include #ifndef CC_LUT_H #define CC_LUT_H namespace icl{ class CCLUT{ public: CCLUT(format srcFmt, format dstFmt); void cc(const ImgBase *src, ImgBase *dst); private: Img8u m_oLUT; format m_eSrcFmt; format m_eDstFmt; }; /// TODO basisklass CCLUT /// unterklassen CCLUT3x3 usw /** evtl: kleinere luts durch internes runtersamplen der farbinfos z.B. factor 2 oder 4 2: 3*2 statt 3*16mb zusätzliche beschleunigung: statt yuvToRGB vielleicht ippiYUVToHLS direkt im grabber! **/ /****************** class CCLUT{ static const int OFS1 = 256; static const int OFS2 = 65536; public: CCLUT(format srcFmt, format dstFmt){ m_iSrcChan = getChannelsOfFormat(srcFmt); m_iDstChan = getChannelsOfFormat(dstFmt); int DIM = (int)pow(256,m_iSrcChan); // alloc lut memset(m_apucLUT,0,3*sizeof(icl8u*)); for(int i=0;i