MCPcopy Create free account
hub / github.com/NatronGitHub/openfx-misc / apply

Method apply

ColorMatrix/ColorMatrix.cpp:214–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212private:
213
214 double apply(int c,
215 double inR,
216 double inG,
217 double inB,
218 double inA)
219 {
220 double comp = _matrix[c].r * inR + _matrix[c].g * inG + _matrix[c].b * inB + _matrix[c].a * inA;
221
222 if ( _clampBlack && (comp < 0.) ) {
223 comp = 0.;
224 } else if ( _clampWhite && (comp > maxValue) ) {
225 comp = maxValue;
226 }
227
228 return comp;
229 }
230
231 void multiThreadProcessImages(const OfxRectI& procWindow, const OfxPointD& rs) OVERRIDE FINAL
232 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected