Home
last modified time | relevance | path

Searched refs:w_ratio (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.10/drivers/staging/media/atomisp/i2c/
Datomisp-gc2235.c685 unsigned int w_ratio = (res->width << 13) / w; in distance() local
694 match = abs(((w_ratio << 13) / h_ratio) - 8192); in distance()
696 if ((w_ratio < 8192) || (h_ratio < 8192) || in distance()
700 return w_ratio + h_ratio; in distance()
Datomisp-ov2722.c798 unsigned int w_ratio = (res->width << 13) / w; in distance() local
807 match = abs(((w_ratio << 13) / h_ratio) - 8192); in distance()
809 if ((w_ratio < 8192) || (h_ratio < 8192) || in distance()
813 return w_ratio + h_ratio; in distance()
Datomisp-gc0310.c898 unsigned int w_ratio = (res->width << 13) / w; in distance() local
907 match = abs(((w_ratio << 13) / h_ratio) - 8192); in distance()
909 if ((w_ratio < 8192) || (h_ratio < 8192) || in distance()
913 return w_ratio + h_ratio; in distance()
Datomisp-ov2680.c856 unsigned int w_ratio = (res->width << 13) / w; in distance() local
865 match = abs(((w_ratio << 13) / h_ratio) - 8192); in distance()
867 if ((w_ratio < 8192) || (h_ratio < 8192) || in distance()
871 return w_ratio + h_ratio; in distance()
Datomisp-mt9m114.c594 unsigned int w_ratio; in distance() local
600 w_ratio = (res->width << 13) / w; in distance()
606 match = abs(((w_ratio << 13) / h_ratio) - 8192); in distance()
608 if ((w_ratio < 8192) || (h_ratio < 8192) || in distance()
612 return w_ratio + h_ratio; in distance()
/Linux-v5.10/drivers/media/platform/s5p-jpeg/
Djpeg-core.c1709 int w_ratio, h_ratio, scale_factor, cur_ratio, i; in exynos3250_jpeg_try_downscale() local
1711 w_ratio = ctx->out_q.w / r->width; in exynos3250_jpeg_try_downscale()
1714 scale_factor = w_ratio > h_ratio ? w_ratio : h_ratio; in exynos3250_jpeg_try_downscale()