Searched refs:thr1 (Results 1 – 3 of 3) sorted by relevance
| /OK3568_Linux_fs/external/mpp/mpp/hal/vpu/jpegd/ |
| H A D | hal_jpegd_vdpu1.c | 390 int thr1y, thr2y, off1, off2, thr1, thr2, a1, a2; in jpegd_setup_pp() local 394 thr1 = (219 * (contrast + 128)) / 512; in jpegd_setup_pp() 395 thr1y = (219 - 2 * thr1) / 2; in jpegd_setup_pp() 396 thr2 = 219 - thr1; in jpegd_setup_pp() 399 tmp1 = (thr1y * 256) / thr1; in jpegd_setup_pp() 400 tmp2 = ((thr2y - thr1y) * 256) / (thr2 - thr1); in jpegd_setup_pp() 401 off1 = ((thr1y - ((tmp2 * thr1) / 256)) * a) / 256; in jpegd_setup_pp() 406 a1 = (tmp2 + off2) / thr1; in jpegd_setup_pp() 407 a2 = a1 + (256 * (off2 - 1)) / (thr2 - thr1); in jpegd_setup_pp() 410 thr1 = (64 * (contrast + 128)) / 128; in jpegd_setup_pp() [all …]
|
| H A D | hal_jpegd_vdpu2.c | 409 int thr1y, thr2y, off1, off2, thr1, thr2, a1, a2; in jpegd_setup_pp() local 413 thr1 = (219 * (contrast + 128)) / 512; in jpegd_setup_pp() 414 thr1y = (219 - 2 * thr1) / 2; in jpegd_setup_pp() 415 thr2 = 219 - thr1; in jpegd_setup_pp() 418 tmp1 = (thr1y * 256) / thr1; in jpegd_setup_pp() 419 tmp2 = ((thr2y - thr1y) * 256) / (thr2 - thr1); in jpegd_setup_pp() 420 off1 = ((thr1y - ((tmp2 * thr1) / 256)) * a) / 256; in jpegd_setup_pp() 425 a1 = (tmp2 + off2) / thr1; in jpegd_setup_pp() 426 a2 = a1 + (256 * (off2 - 1)) / (thr2 - thr1); in jpegd_setup_pp() 429 thr1 = (64 * (contrast + 128)) / 128; in jpegd_setup_pp() [all …]
|
| /OK3568_Linux_fs/buildroot/dl/sox/git/src/ |
| H A D | g72x.c | 307 short ylfrac, thr1; in update() local 316 thr1 = (32 + ylfrac) << ylint; /* threshold */ in update() 317 thr2 = (ylint > 9) ? 31 << 10 : thr1; /* limit thr2 to 31 << 10 */ in update()
|