Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/gpu/drm/meson/
Dmeson_overlay.c237 unsigned int ratio_x, ratio_y; in meson_overlay_setup_scaler_params() local
270 ratio_x = (w_in << 18) / video_width; in meson_overlay_setup_scaler_params()
273 if (ratio_x * video_width < (w_in << 18)) in meson_overlay_setup_scaler_params()
274 ratio_x++; in meson_overlay_setup_scaler_params()
276 DRM_DEBUG("ratio x 0x%x y 0x%x\n", ratio_x, ratio_y); in meson_overlay_setup_scaler_params()
339 start = video_left + video_width / 2 - ((w_in << 17) / ratio_x); in meson_overlay_setup_scaler_params()
340 end = (w_in << 18) / ratio_x + start - 1; in meson_overlay_setup_scaler_params()
343 hd_start_lines = (-(start) * ratio_x) >> 18; in meson_overlay_setup_scaler_params()
345 hd_start_lines = ((video_left - start) * ratio_x) >> 18; in meson_overlay_setup_scaler_params()
358 temp = hd_start_lines + (temp_width * ratio_x >> 18); in meson_overlay_setup_scaler_params()
[all …]