Lines Matching refs:ssd
143 uint64_t ssd = 0; in ssd_plane() local
148 ssd += d*d; in ssd_plane()
150 return ssd; in ssd_plane()
153 static double ssd_to_psnr( uint64_t ssd, uint64_t denom ) in ssd_to_psnr() argument
155 return -10*log((double)ssd/(denom*255*255))/log(10); in ssd_to_psnr()
163 static void print_results(uint64_t ssd[3], double ssim[3], int frames, int w, int h) in print_results()
166 ssd_to_psnr( ssd[0], (uint64_t)frames*w*h ), in print_results()
167 ssd_to_psnr( ssd[1], (uint64_t)frames*w*h/4 ), in print_results()
168 ssd_to_psnr( ssd[2], (uint64_t)frames*w*h/4 ), in print_results()
169 ssd_to_psnr( ssd[0] + ssd[1] + ssd[2], (uint64_t)frames*w*h*3/2 ) ); in print_results()
183 uint64_t ssd[3] = {0,0,0}; in main() local
228 ssd[i] += ssd_one[i]; in main()
241 print_results(ssd, ssim, frames, w, h); in main()