Home
last modified time | relevance | path

Searched refs:thr2 (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
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()
[all …]
H A Dhal_jpegd_vdpu2.c410 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()
[all …]