Lines Matching refs:format

178 	struct v4l2_mbus_framefmt *format;  in sru_enum_mbus_code()  local
192 format = vsp1_entity_get_pad_format(&sru->entity, cfg, in sru_enum_mbus_code()
194 code->code = format->code; in sru_enum_mbus_code()
205 struct v4l2_mbus_framefmt *format; in sru_enum_frame_size() local
207 format = vsp1_entity_get_pad_format(&sru->entity, cfg, in sru_enum_frame_size()
210 if (fse->index || fse->code != format->code) in sru_enum_frame_size()
219 fse->min_width = format->width; in sru_enum_frame_size()
220 fse->min_height = format->height; in sru_enum_frame_size()
221 if (format->width <= SRU_MAX_SIZE / 2 && in sru_enum_frame_size()
222 format->height <= SRU_MAX_SIZE / 2) { in sru_enum_frame_size()
223 fse->max_width = format->width * 2; in sru_enum_frame_size()
224 fse->max_height = format->height * 2; in sru_enum_frame_size()
226 fse->max_width = format->width; in sru_enum_frame_size()
227 fse->max_height = format->height; in sru_enum_frame_size()
239 fmt->format = *vsp1_entity_get_pad_format(&sru->entity, cfg, fmt->pad, in sru_get_format()
249 struct v4l2_mbus_framefmt *format; in sru_try_format() local
266 format = vsp1_entity_get_pad_format(&sru->entity, cfg, in sru_try_format()
268 fmt->code = format->code; in sru_try_format()
276 input_area = format->width * format->height; 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()
300 struct v4l2_mbus_framefmt *format; in sru_set_format() local
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()
306 *format = fmt->format; in sru_set_format()
310 format = vsp1_entity_get_pad_format(&sru->entity, cfg, 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()