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

Function adds_image

example_transcoding/utils.cpp:421–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419}
420
421static void adds_image(const imagef& src, const vec4F& value, imagef& dst)
422{
423 dst.resize(src);
424
425//#pragma omp parallel for
426 for (int y = 0; y < (int)dst.get_height(); y++)
427 {
428 for (uint32_t x = 0; x < dst.get_width(); x++)
429 {
430 const vec4F& p = src(x, y);
431
432 dst(x, y).set(p[0] + value[0], p[1] + value[1], p[2] + value[2], p[3] + value[3]);
433 }
434 }
435}
436
437static void mul_image(const imagef& src1, const imagef& src2, imagef& dst, const vec4F& scale)
438{

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