MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / Scale

Method Scale

src/OpenColorIO/transforms/MatrixTransform.cpp:247–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247void MatrixTransform::Scale(double * m44, double * offset4,
248 const double * scale4)
249{
250 if(!scale4) return;
251
252 if(m44)
253 {
254 memset(m44, 0, 16*sizeof(double));
255 m44[0] = scale4[0];
256 m44[5] = scale4[1];
257 m44[10] = scale4[2];
258 m44[15] = scale4[3];
259 }
260
261 if(offset4)
262 {
263 offset4[0] = 0.0;
264 offset4[1] = 0.0;
265 offset4[2] = 0.0;
266 offset4[3] = 0.0;
267 }
268}
269void MatrixTransform::View(double * m44, double * offset4,
270 int * channelHot4,
271 const double * lumaCoef3)

Callers 6

test_interfaceMethod · 0.95
test_interfaceMethod · 0.95
transformMethod · 0.45
setUpClassMethod · 0.45
test_cache_idMethod · 0.45
test_get_processorMethod · 0.45

Calls

no outgoing calls

Tested by 5

test_interfaceMethod · 0.76
test_interfaceMethod · 0.76
setUpClassMethod · 0.36
test_cache_idMethod · 0.36
test_get_processorMethod · 0.36