Lines Matching refs:width

354 				    u32 width, u32 height)  in resizer_set_output_size()  argument
359 rgval = (width << ISPRSZ_OUT_SIZE_HORZ_SHIFT) in resizer_set_output_size()
417 u32 width, u32 height) in resizer_set_input_size() argument
422 rgval = (width << ISPRSZ_IN_SIZE_HORZ_SHIFT) in resizer_set_input_size()
510 *max_rate = div_u64((u64)clock * res->crop.active.width, ofmt->width); in omap3isp_resizer_max_rate()
589 requests_per_frame = DIV_ROUND_UP(res->crop.active.width * 2, 256) in resizer_adjust_bandwidth()
795 unsigned int width; in resizer_calc_ratios() local
830 min_width = ((input->width - 7) * 256 - 32 - 64 * sph) / 1024 + 1; in resizer_calc_ratios()
864 max_width = min(((input->width - 7) * 256 + 255 - 16 - 32 * sph) / 64 in resizer_calc_ratios()
875 output->width = clamp(output->width, min_width, in resizer_calc_ratios()
877 output->width = ALIGN(output->width, width_alignment); in resizer_calc_ratios()
879 ratio->horz = ((input->width - 7) * 256 + 255 - 16 - 32 * sph) in resizer_calc_ratios()
880 / (output->width - 1); in resizer_calc_ratios()
882 ratio->horz = ((input->width - 7) * 256 + 255 - 32 - 64 * sph) in resizer_calc_ratios()
883 / (output->width - 1); in resizer_calc_ratios()
888 upscaled_width = (output->width - 1) * ratio->horz in resizer_calc_ratios()
890 width = (upscaled_width >> 8) + 7; in resizer_calc_ratios()
892 upscaled_width = (output->width - 1) * ratio->horz in resizer_calc_ratios()
894 width = (upscaled_width >> 8) + 7; in resizer_calc_ratios()
898 input->left += (input->width - width) / 2; in resizer_calc_ratios()
900 input->width = width; in resizer_calc_ratios()
927 res->crop_offset = (res->crop.active.top * input->width + in resizer_set_crop_params()
955 resizer_set_input_size(res, res->crop.active.width, in resizer_set_crop_params()
973 resizer_set_input_offset(res, ALIGN(informat->width, 0x10) * 2); in resizer_configure()
982 resizer_set_output_offset(res, ALIGN(outformat->width * 2, 32)); in resizer_configure()
983 resizer_set_output_size(res, outformat->width, outformat->height); in resizer_configure()
1195 ((32 * sph + (source->width - 1) * 64 + 16) >> 8) + 7; in resizer_try_crop()
1199 ((64 * sph + (source->width - 1) * 1024 + 32) >> 8) + 7; in resizer_try_crop()
1203 crop->width = clamp_t(u32, crop->width, min_width, max_width); in resizer_try_crop()
1207 crop->left = clamp_t(u32, crop->left, 0, sink->width - MIN_IN_WIDTH); in resizer_try_crop()
1208 crop->width = clamp_t(u32, crop->width, MIN_IN_WIDTH, in resizer_try_crop()
1209 sink->width - crop->left); in resizer_try_crop()
1246 sel->r.width = INT_MAX; in resizer_get_selection()
1300 format_sink->width, format_sink->height, in resizer_set_selection()
1301 sel->r.left, sel->r.top, sel->r.width, sel->r.height, in resizer_set_selection()
1302 format_source.width, format_source.height); in resizer_set_selection()
1318 format_sink->width, format_sink->height, in resizer_set_selection()
1319 sel->r.left, sel->r.top, sel->r.width, sel->r.height, in resizer_set_selection()
1320 format_source.width, format_source.height); in resizer_set_selection()
1391 fmt->width = clamp_t(u32, fmt->width, MIN_IN_WIDTH, in resizer_try_format()
1452 format.width = 1; in resizer_enum_frame_size()
1455 fse->min_width = format.width; in resizer_enum_frame_size()
1462 format.width = -1; in resizer_enum_frame_size()
1465 fse->max_width = format.width; in resizer_enum_frame_size()
1518 crop->width = fmt->format.width; in resizer_set_format()
1574 format.format.width = 4096; in resizer_init_formats()