Lines Matching refs:sum_s
19 uint32_t *sum_s, uint32_t *sum_r, in vpx_ssim_parms_16x16_c() argument
25 *sum_s += s[j]; in vpx_ssim_parms_16x16_c()
34 uint32_t *sum_s, uint32_t *sum_r, uint32_t *sum_sq_s, in vpx_ssim_parms_8x8_c() argument
39 *sum_s += s[j]; in vpx_ssim_parms_8x8_c()
50 int rp, uint32_t *sum_s, uint32_t *sum_r, in vpx_highbd_ssim_parms_8x8_c() argument
56 *sum_s += s[j]; in vpx_highbd_ssim_parms_8x8_c()
73 static double similarity(uint32_t sum_s, uint32_t sum_r, uint32_t sum_sq_s, in similarity() argument
93 ssim_n = (2.0 * sum_s * sum_r + c1) * in similarity()
94 (2.0 * count * sum_sxr - 2.0 * sum_s * sum_r + c2); in similarity()
96 ssim_d = ((double)sum_s * sum_s + (double)sum_r * sum_r + c1) * in similarity()
97 ((double)count * sum_sq_s - (double)sum_s * sum_s + in similarity()
104 uint32_t sum_s = 0, sum_r = 0, sum_sq_s = 0, sum_sq_r = 0, sum_sxr = 0; in ssim_8x8() local
105 vpx_ssim_parms_8x8(s, sp, r, rp, &sum_s, &sum_r, &sum_sq_s, &sum_sq_r, in ssim_8x8()
107 return similarity(sum_s, sum_r, sum_sq_s, sum_sq_r, sum_sxr, 64, 8); in ssim_8x8()
113 uint32_t sum_s = 0, sum_r = 0, sum_sq_s = 0, sum_sq_r = 0, sum_sxr = 0; in highbd_ssim_8x8() local
114 vpx_highbd_ssim_parms_8x8(s, sp, r, rp, &sum_s, &sum_r, &sum_sq_s, &sum_sq_r, in highbd_ssim_8x8()
116 return similarity(sum_s >> shift, sum_r >> shift, sum_sq_s >> (2 * shift), in highbd_ssim_8x8()
223 const double l = 1.0 * (2 * sv->sum_s * sv->sum_r + c1) / in ssimv_similarity()
224 (sv->sum_s * sv->sum_s + sv->sum_r * sv->sum_r + c1); in ssimv_similarity()
228 const double v = (2.0 * n * sv->sum_sxr - 2 * sv->sum_s * sv->sum_r + c2) / in ssimv_similarity()
229 (n * sv->sum_sq_s - sv->sum_s * sv->sum_s + in ssimv_similarity()
254 const double mean_diff = (1.0 * sv->sum_s - sv->sum_r) / n; in ssimv_similarity2()
259 const double v = (2.0 * n * sv->sum_sxr - 2 * sv->sum_s * sv->sum_r + c2) / in ssimv_similarity2()
260 (n * sv->sum_sq_s - sv->sum_s * sv->sum_s + in ssimv_similarity2()
267 vpx_ssim_parms_8x8(img1, img1_pitch, img2, img2_pitch, &sv->sum_s, &sv->sum_r, in ssimv_parms()
352 var_new = sv.sum_sq_s - sv.sum_s * sv.sum_s / 64; in vpx_get_ssim_metrics()
353 var_old = sv2[c].sum_sq_s - sv2[c].sum_s * sv2[c].sum_s / 64; in vpx_get_ssim_metrics()
354 mean_new = sv.sum_s; in vpx_get_ssim_metrics()
355 mean_old = sv2[c].sum_s; in vpx_get_ssim_metrics()