Lines Matching refs:fmt

232 			  struct v4l2_subdev_format *fmt)  in uds_get_format()  argument
236 fmt->format = *vsp1_entity_get_pad_format(&uds->entity, cfg, fmt->pad, in uds_get_format()
237 fmt->which); in uds_get_format()
243 unsigned int pad, struct v4l2_mbus_framefmt *fmt, in uds_try_format() argument
253 if (fmt->code != MEDIA_BUS_FMT_ARGB8888_1X32 && in uds_try_format()
254 fmt->code != MEDIA_BUS_FMT_AYUV8_1X32) in uds_try_format()
255 fmt->code = MEDIA_BUS_FMT_AYUV8_1X32; in uds_try_format()
257 fmt->width = clamp(fmt->width, UDS_MIN_SIZE, UDS_MAX_SIZE); in uds_try_format()
258 fmt->height = clamp(fmt->height, UDS_MIN_SIZE, UDS_MAX_SIZE); in uds_try_format()
265 fmt->code = format->code; in uds_try_format()
268 fmt->width = clamp(fmt->width, minimum, maximum); in uds_try_format()
270 fmt->height = clamp(fmt->height, minimum, maximum); in uds_try_format()
274 fmt->field = V4L2_FIELD_NONE; in uds_try_format()
275 fmt->colorspace = V4L2_COLORSPACE_SRGB; in uds_try_format()
279 struct v4l2_subdev_format *fmt) in uds_set_format() argument
284 uds_try_format(uds, cfg, fmt->pad, &fmt->format, fmt->which); in uds_set_format()
286 format = vsp1_entity_get_pad_format(&uds->entity, cfg, fmt->pad, in uds_set_format()
287 fmt->which); in uds_set_format()
288 *format = fmt->format; in uds_set_format()
290 if (fmt->pad == UDS_PAD_SINK) { in uds_set_format()
293 UDS_PAD_SOURCE, fmt->which); in uds_set_format()
294 *format = fmt->format; in uds_set_format()
296 uds_try_format(uds, cfg, UDS_PAD_SOURCE, format, fmt->which); in uds_set_format()