MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / lutFromColorspace

Function lutFromColorspace

Engine/ImageConvert.cpp:106–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106static const Color::Lut*
107lutFromColorspace(ViewerColorSpaceEnum cs)
108{
109 const Color::Lut* lut;
110
111 switch (cs) {
112 case eViewerColorSpaceSRGB:
113 lut = Color::LutManager::sRGBLut();
114 break;
115 case eViewerColorSpaceRec709:
116 lut = Color::LutManager::Rec709Lut();
117 break;
118 case eViewerColorSpaceLinear:
119 default:
120 lut = 0;
121 break;
122 }
123 if (lut) {
124 lut->validate();
125 }
126
127 return lut;
128}
129
130///Fast version when components are the same
131template <typename SRCPIX, typename DSTPIX, int srcMaxValue, int dstMaxValue>

Callers 5

renderViewer_internalMethod · 0.85
getColorAtMethod · 0.85
getColorAtRectMethod · 0.85

Calls 1

validateMethod · 0.80

Tested by

no test coverage detected