MCPcopy Create free account
hub / github.com/BinomialLLC/basis_universal / mul_image

Function mul_image

example_transcoding/utils.cpp:346–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344
345#if 0
346static void mul_image(const imagef& src, imagef& dst, const vec4F& mul)
347{
348 dst.resize(src);
349
350//#pragma omp parallel for
351 for (int y = 0; y < (int)dst.get_height(); y++)
352 {
353 for (uint32_t x = 0; x < dst.get_width(); x++)
354 {
355 const vec4F& p = src(x, y);
356 dst(x, y).set(p[0] * mul[0], p[1] * mul[1], p[2] * mul[2], p[3] * mul[3]);
357 }
358 }
359}
360#endif
361
362static void scale_image(const imagef& src, imagef& dst, const vec4F& scale, const vec4F& shift)

Callers 1

compute_ssimFunction · 0.70

Calls 4

resizeMethod · 0.45
get_heightMethod · 0.45
get_widthMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected