Lines Matching defs:format
127 struct v4l2_mbus_framefmt *format;
134 format = vsp1_entity_get_pad_format(&sru->entity, state, SRU_PAD_SINK);
138 if (fse->index || fse->code != format->code) {
149 fse->min_width = format->width;
150 fse->min_height = format->height;
151 if (format->width <= SRU_MAX_SIZE / 2 &&
152 format->height <= SRU_MAX_SIZE / 2) {
153 fse->max_width = format->width * 2;
154 fse->max_height = format->height * 2;
156 fse->max_width = format->width;
157 fse->max_height = format->height;
170 struct v4l2_mbus_framefmt *format;
176 /* Default to YUV if the requested format is not supported. */
186 /* The SRU can't perform format conversion. */
187 format = vsp1_entity_get_pad_format(&sru->entity, sd_state,
189 fmt->code = format->code;
198 input_area = format->width * format->height;
205 fmt->width = format->width * 2;
206 fmt->height = format->height * 2;
208 fmt->width = format->width;
209 fmt->height = format->height;
224 struct v4l2_mbus_framefmt *format;
235 sru_try_format(sru, state, fmt->pad, &fmt->format);
237 format = vsp1_entity_get_pad_format(&sru->entity, state, fmt->pad);
238 *format = fmt->format;
241 /* Propagate the format to the source pad. */
242 format = vsp1_entity_get_pad_format(&sru->entity, state,
244 *format = fmt->format;
246 sru_try_format(sru, state, SRU_PAD_SOURCE, format);