Lines Matching refs:format

127 	struct v4l2_mbus_framefmt *format;  in sru_enum_frame_size()  local
134 format = v4l2_subdev_state_get_format(state, SRU_PAD_SINK); in sru_enum_frame_size()
138 if (fse->index || fse->code != format->code) { in sru_enum_frame_size()
149 fse->min_width = format->width; in sru_enum_frame_size()
150 fse->min_height = format->height; in sru_enum_frame_size()
151 if (format->width <= SRU_MAX_SIZE / 2 && in sru_enum_frame_size()
152 format->height <= SRU_MAX_SIZE / 2) { in sru_enum_frame_size()
153 fse->max_width = format->width * 2; in sru_enum_frame_size()
154 fse->max_height = format->height * 2; in sru_enum_frame_size()
156 fse->max_width = format->width; in sru_enum_frame_size()
157 fse->max_height = format->height; in sru_enum_frame_size()
170 struct v4l2_mbus_framefmt *format; in sru_try_format() local
187 format = v4l2_subdev_state_get_format(sd_state, SRU_PAD_SINK); in sru_try_format()
188 fmt->code = format->code; in sru_try_format()
197 input_area = format->width * format->height; in sru_try_format()
204 fmt->width = format->width * 2; in sru_try_format()
205 fmt->height = format->height * 2; in sru_try_format()
207 fmt->width = format->width; in sru_try_format()
208 fmt->height = format->height; in sru_try_format()
223 struct v4l2_mbus_framefmt *format; in sru_set_format() local
234 sru_try_format(sru, state, fmt->pad, &fmt->format); in sru_set_format()
236 format = v4l2_subdev_state_get_format(state, fmt->pad); in sru_set_format()
237 *format = fmt->format; in sru_set_format()
241 format = v4l2_subdev_state_get_format(state, SRU_PAD_SOURCE); in sru_set_format()
242 *format = fmt->format; in sru_set_format()
244 sru_try_format(sru, state, SRU_PAD_SOURCE, format); in sru_set_format()