Lines Matching refs:KERNEL
35 enum { KERNEL = 3, KERNEL_SIZE = 2 * KERNEL + 1 }; enumerator
43 static const double kiW[KERNEL + 1 + 1] = {
120 org += (yo - KERNEL) * stride; in GetSSIM()
121 org += (xo - KERNEL); in GetSSIM()
122 rec += (yo - KERNEL) * stride; in GetSSIM()
123 rec += (xo - KERNEL); in GetSSIM()
125 if (((yo - KERNEL + y_) < 0) || ((yo - KERNEL + y_) >= H)) in GetSSIM()
130 if (((xo - KERNEL + x_) >= 0) && ((xo - KERNEL + x_) < W)) { in GetSSIM()
157 for (int y = 1; y <= KERNEL; y++) { in GetSSIMFullKernel()
160 const int Wy = K[KERNEL + y]; in GetSSIMFullKernel()
162 for (int x = 1; x <= KERNEL; x++) { in GetSSIMFullKernel()
173 const int Wxy = Wy * K[KERNEL + x]; in GetSSIMFullKernel()
201 const int Wxy = Wy * K[KERNEL]; in GetSSIMFullKernel()
220 const int Wxy = K[KERNEL] * K[KERNEL]; in GetSSIMFullKernel()
232 org += (yo - KERNEL) * stride + (xo - KERNEL); in GetSSIMFullKernel()
233 rec += (yo - KERNEL) * stride + (xo - KERNEL); in GetSSIMFullKernel()
300 const int KERNEL_Y = (image_height < KERNEL) ? image_height : KERNEL; in CalcSSIM()
301 const int KERNEL_X = (image_width < KERNEL) ? image_width : KERNEL; in CalcSSIM()
330 const int kScratchStride = kScratchWidth + KERNEL + 1; in CalcSSIM()
336 (j - KERNEL + k) * stride + image_width - kScratchWidth; in CalcSSIM()
341 SSIM += GetSSIMFullKernel(scratch_org, scratch_rec, KERNEL + k, KERNEL, in CalcSSIM()