Home
last modified time | relevance | path

Searched refs:thr2 (Results 1 – 3 of 3) sorted by relevance

/OK3568_Linux_fs/external/mpp/mpp/hal/vpu/jpegd/
H A Dhal_jpegd_vdpu1.c390 int thr1y, thr2y, off1, off2, thr1, thr2, a1, a2; in jpegd_setup_pp() local
396 thr2 = 219 - thr1; in jpegd_setup_pp()
400 tmp2 = ((thr2y - thr1y) * 256) / (thr2 - thr1); in jpegd_setup_pp()
402 off2 = ((thr2y - ((tmp1 * thr2) / 256)) * a) / 256; in jpegd_setup_pp()
407 a2 = a1 + (256 * (off2 - 1)) / (thr2 - thr1); in jpegd_setup_pp()
412 thr2 = 256 - thr1; in jpegd_setup_pp()
415 a2 = ((thr2y - thr1y) * 256) / (thr2 - thr1); in jpegd_setup_pp()
417 off2 = thr2y - (a1 * thr2) / 256; in jpegd_setup_pp()
435 if (thr2 > 255) in jpegd_setup_pp()
436 thr2 = 255; in jpegd_setup_pp()
[all …]
H A Dhal_jpegd_vdpu2.c409 int thr1y, thr2y, off1, off2, thr1, thr2, a1, a2; in jpegd_setup_pp() local
415 thr2 = 219 - thr1; in jpegd_setup_pp()
419 tmp2 = ((thr2y - thr1y) * 256) / (thr2 - thr1); in jpegd_setup_pp()
421 off2 = ((thr2y - ((tmp1 * thr2) / 256)) * a) / 256; in jpegd_setup_pp()
426 a2 = a1 + (256 * (off2 - 1)) / (thr2 - thr1); in jpegd_setup_pp()
431 thr2 = 256 - thr1; in jpegd_setup_pp()
434 a2 = ((thr2y - thr1y) * 256) / (thr2 - thr1); in jpegd_setup_pp()
436 off2 = thr2y - (a1 * thr2) / 256; in jpegd_setup_pp()
454 if (thr2 > 255) in jpegd_setup_pp()
455 thr2 = 255; in jpegd_setup_pp()
[all …]
/OK3568_Linux_fs/buildroot/dl/sox/git/src/
H A Dg72x.c306 short ylint, thr2, dqthr; in update() local
317 thr2 = (ylint > 9) ? 31 << 10 : thr1; /* limit thr2 to 31 << 10 */ in update()
318 dqthr = (thr2 + (thr2 >> 1)) >> 1; /* dqthr = 0.75 * thr2 */ in update()