/openbmc/linux/drivers/media/platform/mediatek/mdp3/ |
H A D | mdp_cfg_data.c | 220 .walign = 1, 228 .walign = 1, 236 .walign = 1, 244 .walign = 1, 252 .walign = 1, 261 .walign = 1, 270 .walign = 1, 279 .walign = 1, 288 .walign = 1, 296 .walign = 1, [all …]
|
H A D | mtk-mdp3-regs.c | 168 s.step_width = fmt->walign; in mdp_try_fmt_mplane() 236 u32 framew, frameh, walign, halign; in mdp_try_crop() local 250 walign = 1; in mdp_try_crop() 253 walign = frame->mdp_fmt->walign; in mdp_try_crop() 258 walign, halign, framew, frameh); in mdp_try_crop() 260 ret = mdp_clamp_start(&left, 0, right, walign, s->flags); in mdp_try_crop() 266 ret = mdp_clamp_end(&right, left, framew, walign, s->flags); in mdp_try_crop()
|
H A D | mtk-mdp3-regs.h | 260 u8 walign; member
|
/openbmc/linux/drivers/media/v4l2-core/ |
H A D | v4l2-common.c | 120 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()
|
/openbmc/linux/drivers/media/platform/nxp/ |
H A D | imx7-media-csi.c | 1079 u32 walign; in imx7_csi_video_enum_framesizes() local 1092 walign = 8 * 8 / cc->bpp; in imx7_csi_video_enum_framesizes() 1095 fsize->stepwise.min_width = walign; in imx7_csi_video_enum_framesizes() 1096 fsize->stepwise.max_width = round_down(65535U, walign); in imx7_csi_video_enum_framesizes() 1099 fsize->stepwise.step_width = walign; in imx7_csi_video_enum_framesizes() 1120 u32 walign; in __imx7_csi_video_try_fmt() local 1143 walign = 8 * 8 / cc->bpp; in __imx7_csi_video_try_fmt() 1144 pixfmt->width = clamp(round_up(pixfmt->width, walign), walign, in __imx7_csi_video_try_fmt() 1145 round_down(65535U, walign)); in __imx7_csi_video_try_fmt()
|
/openbmc/linux/drivers/media/platform/renesas/rcar-vin/ |
H A D | rcar-v4l2.c | 161 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()
|
/openbmc/linux/drivers/media/test-drivers/ |
H A D | vim2m.c | 168 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()
|
/openbmc/linux/drivers/media/platform/samsung/exynos-gsc/ |
H A D | gsc-core.c | 278 int remainder = 0, walign, halign; in gsc_check_src_scale_info() local 281 walign = GSC_SC_ALIGN_4; in gsc_check_src_scale_info() 284 walign = GSC_SC_ALIGN_4; in gsc_check_src_scale_info() 287 walign = GSC_SC_ALIGN_2; in gsc_check_src_scale_info() 291 remainder = s_frame->crop.width % (*wratio * walign); in gsc_check_src_scale_info()
|
/openbmc/linux/drivers/media/platform/mediatek/mdp/ |
H A D | mtk_mdp_m2m.c | 157 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()
|
/openbmc/linux/include/media/ |
H A D | v4l2-common.h | 387 unsigned int wmax, unsigned int walign,
|
/openbmc/linux/drivers/media/platform/samsung/s5p-jpeg/ |
H A D | jpeg-core.c | 1397 unsigned int walign, in jpeg_bound_align_image() argument 1406 w_step = 1 << walign; in jpeg_bound_align_image() 1423 v4l_bound_align_image(w, wmin, wmax, walign, h, hmin, hmax, halign, 0); in jpeg_bound_align_image()
|