Lines Matching refs:fmt
247 struct v4l2_subdev_format *fmt) in bru_get_format() argument
251 fmt->format = *vsp1_entity_get_pad_format(&bru->entity, cfg, fmt->pad, in bru_get_format()
252 fmt->which); in bru_get_format()
258 unsigned int pad, struct v4l2_mbus_framefmt *fmt, in bru_try_format() argument
266 if (fmt->code != MEDIA_BUS_FMT_ARGB8888_1X32 && in bru_try_format()
267 fmt->code != MEDIA_BUS_FMT_AYUV8_1X32) in bru_try_format()
268 fmt->code = MEDIA_BUS_FMT_AYUV8_1X32; in bru_try_format()
275 fmt->code = format->code; in bru_try_format()
279 fmt->width = clamp(fmt->width, BRU_MIN_SIZE, BRU_MAX_SIZE); in bru_try_format()
280 fmt->height = clamp(fmt->height, BRU_MIN_SIZE, BRU_MAX_SIZE); in bru_try_format()
281 fmt->field = V4L2_FIELD_NONE; in bru_try_format()
282 fmt->colorspace = V4L2_COLORSPACE_SRGB; in bru_try_format()
286 struct v4l2_subdev_format *fmt) in bru_set_format() argument
291 bru_try_format(bru, cfg, fmt->pad, &fmt->format, fmt->which); in bru_set_format()
293 format = vsp1_entity_get_pad_format(&bru->entity, cfg, fmt->pad, in bru_set_format()
294 fmt->which); in bru_set_format()
295 *format = fmt->format; in bru_set_format()
298 if (fmt->pad != BRU_PAD_SOURCE) { in bru_set_format()
301 compose = bru_get_compose(bru, cfg, fmt->pad, fmt->which); in bru_set_format()
309 if (fmt->pad == BRU_PAD_SINK(0)) { in bru_set_format()
314 i, fmt->which); in bru_set_format()
315 format->code = fmt->format.code; in bru_set_format()