Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/media/v4l2-core/
Dv4l2-common.c120 unsigned int walign, in v4l_bound_align_image() argument
124 *w = clamp_align(*w, wmin, wmax, walign); in v4l_bound_align_image()
132 walign = __ffs(*w); in v4l_bound_align_image()
135 if (walign + halign < salign) { in v4l_bound_align_image()
144 (walign <= halign && walign < wmaxa)) { in v4l_bound_align_image()
145 *w = clamp_align(*w, wmin, wmax, walign + 1); in v4l_bound_align_image()
146 walign = __ffs(*w); in v4l_bound_align_image()
151 } while (halign + walign < salign); in v4l_bound_align_image()
/linux-5.19.10/drivers/media/platform/renesas/rcar-vin/
Drcar-v4l2.c161 u32 walign; in rvin_format_align() local
187 walign = 5; in rvin_format_align()
192 walign = 1; in rvin_format_align()
196 walign = 0; in rvin_format_align()
201 v4l_bound_align_image(&pix->width, 5, vin->info->max_width, walign, in rvin_format_align()
/linux-5.19.10/drivers/media/test-drivers/
Dvim2m.c168 unsigned int *walign, unsigned int *halign) in get_alignment() argument
175 *walign = BAYER_WIDTH_ALIGN; in get_alignment()
179 *walign = WIDTH_ALIGN; in get_alignment()
760 int walign, halign; in vidioc_try_fmt() local
775 get_alignment(f->fmt.pix.pixelformat, &walign, &halign); in vidioc_try_fmt()
776 f->fmt.pix.width &= ~(walign - 1); in vidioc_try_fmt()
/linux-5.19.10/drivers/media/platform/samsung/exynos-gsc/
Dgsc-core.c279 int remainder = 0, walign, halign; in gsc_check_src_scale_info() local
282 walign = GSC_SC_ALIGN_4; in gsc_check_src_scale_info()
285 walign = GSC_SC_ALIGN_4; in gsc_check_src_scale_info()
288 walign = GSC_SC_ALIGN_2; in gsc_check_src_scale_info()
292 remainder = s_frame->crop.width % (*wratio * walign); in gsc_check_src_scale_info()
/linux-5.19.10/drivers/media/platform/mediatek/mdp/
Dmtk_mdp_m2m.c157 int walign, halign; in mtk_mdp_bound_align_image() local
161 walign = ffs(align_w) - 1; in mtk_mdp_bound_align_image()
163 v4l_bound_align_image(w, wmin, wmax, walign, h, hmin, hmax, halign, 0); in mtk_mdp_bound_align_image()
165 step_w = 1 << walign; in mtk_mdp_bound_align_image()
/linux-5.19.10/include/media/
Dv4l2-common.h386 unsigned int wmax, unsigned int walign,
/linux-5.19.10/drivers/media/platform/samsung/s5p-jpeg/
Djpeg-core.c1392 unsigned int walign, in jpeg_bound_align_image() argument
1401 w_step = 1 << walign; in jpeg_bound_align_image()
1418 v4l_bound_align_image(w, wmin, wmax, walign, h, hmin, hmax, halign, 0); in jpeg_bound_align_image()