Lines Matching refs:comp
98 WORD32 comp; in compute_psnr() local
106 for(comp = 0; comp < 3; comp++) in compute_psnr()
108 df_psnr[comp] = 0; in compute_psnr()
109 pu1_buf1 = (UWORD8 *)ps_buf1->apv_bufs[comp]; in compute_psnr()
110 pu1_buf2 = (UWORD8 *)ps_buf2->apv_bufs[comp]; in compute_psnr()
111 wd = ps_buf1->au4_wd[comp]; in compute_psnr()
112 ht = ps_buf1->au4_ht[comp]; in compute_psnr()
113 strd1 = ps_buf1->au4_strd[comp]; in compute_psnr()
114 strd2 = ps_buf2->au4_strd[comp]; in compute_psnr()
121 switch(comp) in compute_psnr()
145 switch(comp) in compute_psnr()
175 df_psnr[comp] += diff * diff; in compute_psnr()
177 pu1_buf1 += strd1 - ps_buf1->au4_wd[comp]; in compute_psnr()
178 pu1_buf2 += strd2 - ps_buf2->au4_wd[comp]; in compute_psnr()
180 df_psnr[comp] /= (wd * ht); in compute_psnr()
181 if(df_psnr[comp]) in compute_psnr()
182 df_psnr[comp] = 20 * log10(255 / sqrt(df_psnr[comp])); in compute_psnr()
184 df_psnr[comp] = 100; in compute_psnr()
186 ps_app_ctxt->adbl_psnr[comp] += df_psnr[comp]; in compute_psnr()
187 switch(comp) in compute_psnr()
201 printf("%2.2f\t", df_psnr[comp]); in compute_psnr()