Lines Matching refs:thr2
391 int thr1y, thr2y, off1, off2, thr1, thr2, a1, a2; in jpegd_setup_pp() local
397 thr2 = 219 - thr1; in jpegd_setup_pp()
401 tmp2 = ((thr2y - thr1y) * 256) / (thr2 - thr1); in jpegd_setup_pp()
403 off2 = ((thr2y - ((tmp1 * thr2) / 256)) * a) / 256; in jpegd_setup_pp()
408 a2 = a1 + (256 * (off2 - 1)) / (thr2 - thr1); in jpegd_setup_pp()
413 thr2 = 256 - thr1; in jpegd_setup_pp()
416 a2 = ((thr2y - thr1y) * 256) / (thr2 - thr1); in jpegd_setup_pp()
418 off2 = thr2y - (a1 * thr2) / 256; in jpegd_setup_pp()
436 if (thr2 > 255) in jpegd_setup_pp()
437 thr2 = 255; in jpegd_setup_pp()
438 else if (thr2 < 0) in jpegd_setup_pp()
439 thr2 = 0; in jpegd_setup_pp()
452 post->reg69.sw_contrast_thr2 = thr2; in jpegd_setup_pp()