Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/gpu/drm/meson/
Dmeson_overlay.c242 unsigned int ratio_x, ratio_y; in meson_overlay_setup_scaler_params() local
275 ratio_x = (w_in << 18) / video_width; in meson_overlay_setup_scaler_params()
278 if (ratio_x * video_width < (w_in << 18)) in meson_overlay_setup_scaler_params()
279 ratio_x++; in meson_overlay_setup_scaler_params()
281 DRM_DEBUG("ratio x 0x%x y 0x%x\n", ratio_x, ratio_y); in meson_overlay_setup_scaler_params()
344 start = video_left + video_width / 2 - ((w_in << 17) / ratio_x); in meson_overlay_setup_scaler_params()
345 end = (w_in << 18) / ratio_x + start - 1; in meson_overlay_setup_scaler_params()
348 hd_start_lines = (-(start) * ratio_x) >> 18; in meson_overlay_setup_scaler_params()
350 hd_start_lines = ((video_left - start) * ratio_x) >> 18; in meson_overlay_setup_scaler_params()
363 temp = hd_start_lines + (temp_width * ratio_x >> 18); in meson_overlay_setup_scaler_params()
[all …]