Home
last modified time | relevance | path

Searched refs:thr1 (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
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()
[all …]
H A Dhal_jpegd_vdpu2.c410 int thr1y, thr2y, off1, off2, thr1, thr2, a1, a2; in jpegd_setup_pp() local
414 thr1 = (219 * (contrast + 128)) / 512; in jpegd_setup_pp()
415 thr1y = (219 - 2 * thr1) / 2; in jpegd_setup_pp()
416 thr2 = 219 - thr1; in jpegd_setup_pp()
419 tmp1 = (thr1y * 256) / thr1; in jpegd_setup_pp()
420 tmp2 = ((thr2y - thr1y) * 256) / (thr2 - thr1); in jpegd_setup_pp()
421 off1 = ((thr1y - ((tmp2 * thr1) / 256)) * a) / 256; in jpegd_setup_pp()
426 a1 = (tmp2 + off2) / thr1; in jpegd_setup_pp()
427 a2 = a1 + (256 * (off2 - 1)) / (thr2 - thr1); in jpegd_setup_pp()
430 thr1 = (64 * (contrast + 128)) / 128; in jpegd_setup_pp()
[all …]