Home
last modified time | relevance | path

Searched refs:off1 (Results 1 – 2 of 2) sorted by relevance

/rockchip-linux_mpp/mpp/hal/vpu/jpegd/
H A Dhal_jpegd_vdpu1.c391 int thr1y, thr2y, off1, off2, thr1, thr2, a1, a2; in jpegd_setup_pp() local
402 off1 = ((thr1y - ((tmp2 * thr1) / 256)) * a) / 256; in jpegd_setup_pp()
417 off1 = thr1y - (a2 * thr1) / 256; in jpegd_setup_pp()
441 if (off1 > 511) in jpegd_setup_pp()
442 off1 = 511; in jpegd_setup_pp()
443 else if (off1 < -512) in jpegd_setup_pp()
444 off1 = -512; in jpegd_setup_pp()
453 post->reg68_contrast_adjust.sw_contrast_off1 = off1; in jpegd_setup_pp()
H A Dhal_jpegd_vdpu2.c410 int thr1y, thr2y, off1, off2, thr1, thr2, a1, a2; in jpegd_setup_pp() local
421 off1 = ((thr1y - ((tmp2 * thr1) / 256)) * a) / 256; in jpegd_setup_pp()
436 off1 = thr1y - (a2 * thr1) / 256; in jpegd_setup_pp()
460 if (off1 > 511) in jpegd_setup_pp()
461 off1 = 511; in jpegd_setup_pp()
462 else if (off1 < -512) in jpegd_setup_pp()
463 off1 = -512; in jpegd_setup_pp()
472 reg->reg32.sw_contrast_off1 = off1; in jpegd_setup_pp()