99 inimg.
require(
"input", w,
h, V4L2_PIX_FMT_YUYV);
106 int const rwh = outimg.
width & (~3);
107 int const nr = outimg.
height / rwh;
108 outimg.
require(
"output", rwh, nr * rwh, V4L2_PIX_FMT_YUYV);
112 int const smfac = (1 << smlev);
115 for (
int i = 0; i < nr; ++i)
121 unsigned int const dmx = (mx << smlev) + (smfac >> 2);
122 unsigned int const dmy = (my << smlev) + (smfac >> 2);
123 int rx = (std::min(
int(w) - rwh/2, std::max(rwh/2,
int(dmx + 1 + (smfac >> 2))))) & (~1);
124 int ry = (std::min(
int(
h) - rwh/2, std::max(rwh/2,
int(dmy + 1 + (smfac >> 2))))) & (~1);
130 itsSaliency->inhibitionOfReturn(mx, my, inhsigma::get() / smfac);