Lines Matching defs:format

65 	struct v4l2_mbus_framefmt *format;
76 /* Default to YUV if the requested format is not supported. */
77 if (fmt->format.code != MEDIA_BUS_FMT_ARGB8888_1X32 &&
78 fmt->format.code != MEDIA_BUS_FMT_AHSV8888_1X32 &&
79 fmt->format.code != MEDIA_BUS_FMT_AYUV8_1X32)
80 fmt->format.code = MEDIA_BUS_FMT_AYUV8_1X32;
82 format = vsp1_entity_get_pad_format(&rwpf->entity, state, fmt->pad);
86 * The RWPF performs format conversion but can't scale, only the
87 * format code can be changed on the source pad.
89 format->code = fmt->format.code;
90 fmt->format = *format;
94 format->code = fmt->format.code;
95 format->width = clamp_t(unsigned int, fmt->format.width,
97 format->height = clamp_t(unsigned int, fmt->format.height,
99 format->field = V4L2_FIELD_NONE;
100 format->colorspace = V4L2_COLORSPACE_SRGB;
102 fmt->format = *format;
111 crop->width = fmt->format.width;
112 crop->height = fmt->format.height;
115 /* Propagate the format to the source pad. */
116 format = vsp1_entity_get_pad_format(&rwpf->entity, state,
118 *format = fmt->format;
121 format->width = fmt->format.height;
122 format->height = fmt->format.width;
136 struct v4l2_mbus_framefmt *format;
160 format = vsp1_entity_get_pad_format(&rwpf->entity, state,
164 sel->r.width = format->width;
165 sel->r.height = format->height;
184 struct v4l2_mbus_framefmt *format;
207 format = vsp1_entity_get_pad_format(&rwpf->entity, state,
214 if (format->code == MEDIA_BUS_FMT_AYUV8_1X32) {
221 sel->r.left = min_t(unsigned int, sel->r.left, format->width - 2);
222 sel->r.top = min_t(unsigned int, sel->r.top, format->height - 2);
224 format->width - sel->r.left);
226 format->height - sel->r.top);
231 /* Propagate the format to the source pad. */
232 format = vsp1_entity_get_pad_format(&rwpf->entity, state,
234 format->width = crop->width;
235 format->height = crop->height;