Lines Matching refs:thr1
391 int thr1y, thr2y, off1, off2, thr1, thr2, a1, a2; in jpegd_setup_pp() local
395 thr1 = (219 * (contrast + 128)) / 512; in jpegd_setup_pp()
396 thr1y = (219 - 2 * thr1) / 2; in jpegd_setup_pp()
397 thr2 = 219 - thr1; in jpegd_setup_pp()
400 tmp1 = (thr1y * 256) / thr1; in jpegd_setup_pp()
401 tmp2 = ((thr2y - thr1y) * 256) / (thr2 - thr1); in jpegd_setup_pp()
402 off1 = ((thr1y - ((tmp2 * thr1) / 256)) * a) / 256; in jpegd_setup_pp()
407 a1 = (tmp2 + off2) / thr1; in jpegd_setup_pp()
408 a2 = a1 + (256 * (off2 - 1)) / (thr2 - thr1); in jpegd_setup_pp()
411 thr1 = (64 * (contrast + 128)) / 128; in jpegd_setup_pp()
412 thr1y = 128 - thr1; in jpegd_setup_pp()
413 thr2 = 256 - thr1; in jpegd_setup_pp()
415 a1 = (thr1y * 256) / thr1; in jpegd_setup_pp()
416 a2 = ((thr2y - thr1y) * 256) / (thr2 - thr1); in jpegd_setup_pp()
417 off1 = thr1y - (a2 * thr1) / 256; in jpegd_setup_pp()
431 if (thr1 > 255) in jpegd_setup_pp()
432 thr1 = 255; in jpegd_setup_pp()
433 else if (thr1 < 0) in jpegd_setup_pp()
434 thr1 = 0; in jpegd_setup_pp()
451 post->reg68_contrast_adjust.sw_contrast_thr1 = thr1; in jpegd_setup_pp()