Lines Matching refs:fmt
235 struct v4l2_subdev_format *fmt) in sru_get_format() argument
239 fmt->format = *vsp1_entity_get_pad_format(&sru->entity, cfg, fmt->pad, in sru_get_format()
240 fmt->which); in sru_get_format()
246 unsigned int pad, struct v4l2_mbus_framefmt *fmt, in sru_try_format() argument
256 if (fmt->code != MEDIA_BUS_FMT_ARGB8888_1X32 && in sru_try_format()
257 fmt->code != MEDIA_BUS_FMT_AYUV8_1X32) in sru_try_format()
258 fmt->code = MEDIA_BUS_FMT_AYUV8_1X32; in sru_try_format()
260 fmt->width = clamp(fmt->width, SRU_MIN_SIZE, SRU_MAX_SIZE); in sru_try_format()
261 fmt->height = clamp(fmt->height, SRU_MIN_SIZE, SRU_MAX_SIZE); in sru_try_format()
268 fmt->code = format->code; in sru_try_format()
277 output_area = min(fmt->width, SRU_MAX_SIZE) in sru_try_format()
278 * min(fmt->height, SRU_MAX_SIZE); in sru_try_format()
280 if (fmt->width <= SRU_MAX_SIZE / 2 && in sru_try_format()
281 fmt->height <= SRU_MAX_SIZE / 2 && in sru_try_format()
283 fmt->width = format->width * 2; in sru_try_format()
284 fmt->height = format->height * 2; in sru_try_format()
286 fmt->width = format->width; in sru_try_format()
287 fmt->height = format->height; in sru_try_format()
292 fmt->field = V4L2_FIELD_NONE; in sru_try_format()
293 fmt->colorspace = V4L2_COLORSPACE_SRGB; in sru_try_format()
297 struct v4l2_subdev_format *fmt) in sru_set_format() argument
302 sru_try_format(sru, cfg, fmt->pad, &fmt->format, fmt->which); in sru_set_format()
304 format = vsp1_entity_get_pad_format(&sru->entity, cfg, fmt->pad, in sru_set_format()
305 fmt->which); in sru_set_format()
306 *format = fmt->format; in sru_set_format()
308 if (fmt->pad == SRU_PAD_SINK) { in sru_set_format()
311 SRU_PAD_SOURCE, fmt->which); in sru_set_format()
312 *format = fmt->format; in sru_set_format()
314 sru_try_format(sru, cfg, SRU_PAD_SOURCE, format, fmt->which); in sru_set_format()