Lines Matching refs:format
177 struct v4l2_mbus_framefmt *format; in sru_enum_mbus_code() local
191 format = vsp1_entity_get_pad_format(&sru->entity, cfg, in sru_enum_mbus_code()
193 code->code = format->code; in sru_enum_mbus_code()
204 struct v4l2_mbus_framefmt *format; in sru_enum_frame_size() local
206 format = vsp1_entity_get_pad_format(&sru->entity, cfg, in sru_enum_frame_size()
209 if (fse->index || fse->code != format->code) in sru_enum_frame_size()
218 fse->min_width = format->width; in sru_enum_frame_size()
219 fse->min_height = format->height; in sru_enum_frame_size()
220 if (format->width <= SRU_MAX_SIZE / 2 && in sru_enum_frame_size()
221 format->height <= SRU_MAX_SIZE / 2) { in sru_enum_frame_size()
222 fse->max_width = format->width * 2; in sru_enum_frame_size()
223 fse->max_height = format->height * 2; in sru_enum_frame_size()
225 fse->max_width = format->width; in sru_enum_frame_size()
226 fse->max_height = format->height; in sru_enum_frame_size()
238 fmt->format = *vsp1_entity_get_pad_format(&sru->entity, cfg, fmt->pad, in sru_get_format()
248 struct v4l2_mbus_framefmt *format; in sru_try_format() local
265 format = vsp1_entity_get_pad_format(&sru->entity, cfg, in sru_try_format()
267 fmt->code = format->code; in sru_try_format()
275 input_area = format->width * format->height; in sru_try_format()
282 fmt->width = format->width * 2; in sru_try_format()
283 fmt->height = format->height * 2; in sru_try_format()
285 fmt->width = format->width; in sru_try_format()
286 fmt->height = format->height; in sru_try_format()
299 struct v4l2_mbus_framefmt *format; in sru_set_format() local
301 sru_try_format(sru, cfg, fmt->pad, &fmt->format, fmt->which); in sru_set_format()
303 format = vsp1_entity_get_pad_format(&sru->entity, cfg, fmt->pad, in sru_set_format()
305 *format = fmt->format; in sru_set_format()
309 format = vsp1_entity_get_pad_format(&sru->entity, cfg, in sru_set_format()
311 *format = fmt->format; in sru_set_format()
313 sru_try_format(sru, cfg, SRU_PAD_SOURCE, format, fmt->which); in sru_set_format()