Lines Matching refs:thr2
410 int thr1y, thr2y, off1, off2, thr1, thr2, a1, a2; in jpegd_setup_pp() local
416 thr2 = 219 - thr1; in jpegd_setup_pp()
420 tmp2 = ((thr2y - thr1y) * 256) / (thr2 - thr1); in jpegd_setup_pp()
422 off2 = ((thr2y - ((tmp1 * thr2) / 256)) * a) / 256; in jpegd_setup_pp()
427 a2 = a1 + (256 * (off2 - 1)) / (thr2 - thr1); in jpegd_setup_pp()
432 thr2 = 256 - thr1; in jpegd_setup_pp()
435 a2 = ((thr2y - thr1y) * 256) / (thr2 - thr1); in jpegd_setup_pp()
437 off2 = thr2y - (a1 * thr2) / 256; in jpegd_setup_pp()
455 if (thr2 > 255) in jpegd_setup_pp()
456 thr2 = 255; in jpegd_setup_pp()
457 else if (thr2 < 0) in jpegd_setup_pp()
458 thr2 = 0; in jpegd_setup_pp()
471 reg->reg31.sw_contrast_thr2 = thr2; in jpegd_setup_pp()