Lines Matching refs:format

66 	struct v4l2_mbus_framefmt *format;  in vsp1_rwpf_set_format()  local
79 if (fmt->format.code != MEDIA_BUS_FMT_ARGB8888_1X32 && in vsp1_rwpf_set_format()
80 fmt->format.code != MEDIA_BUS_FMT_AHSV8888_1X32 && in vsp1_rwpf_set_format()
81 fmt->format.code != MEDIA_BUS_FMT_AYUV8_1X32) in vsp1_rwpf_set_format()
82 fmt->format.code = MEDIA_BUS_FMT_AYUV8_1X32; in vsp1_rwpf_set_format()
84 format = vsp1_entity_get_pad_format(&rwpf->entity, config, fmt->pad); in vsp1_rwpf_set_format()
91 format->code = fmt->format.code; in vsp1_rwpf_set_format()
92 fmt->format = *format; in vsp1_rwpf_set_format()
96 format->code = fmt->format.code; in vsp1_rwpf_set_format()
97 format->width = clamp_t(unsigned int, fmt->format.width, in vsp1_rwpf_set_format()
99 format->height = clamp_t(unsigned int, fmt->format.height, in vsp1_rwpf_set_format()
101 format->field = V4L2_FIELD_NONE; in vsp1_rwpf_set_format()
102 format->colorspace = V4L2_COLORSPACE_SRGB; in vsp1_rwpf_set_format()
104 fmt->format = *format; in vsp1_rwpf_set_format()
113 crop->width = fmt->format.width; in vsp1_rwpf_set_format()
114 crop->height = fmt->format.height; in vsp1_rwpf_set_format()
118 format = vsp1_entity_get_pad_format(&rwpf->entity, config, in vsp1_rwpf_set_format()
120 *format = fmt->format; in vsp1_rwpf_set_format()
123 format->width = fmt->format.height; in vsp1_rwpf_set_format()
124 format->height = fmt->format.width; in vsp1_rwpf_set_format()
138 struct v4l2_mbus_framefmt *format; in vsp1_rwpf_get_selection() local
163 format = vsp1_entity_get_pad_format(&rwpf->entity, config, in vsp1_rwpf_get_selection()
167 sel->r.width = format->width; in vsp1_rwpf_get_selection()
168 sel->r.height = format->height; in vsp1_rwpf_get_selection()
187 struct v4l2_mbus_framefmt *format; in vsp1_rwpf_set_selection() local
211 format = vsp1_entity_get_pad_format(&rwpf->entity, config, in vsp1_rwpf_set_selection()
218 if (format->code == MEDIA_BUS_FMT_AYUV8_1X32) { in vsp1_rwpf_set_selection()
225 sel->r.left = min_t(unsigned int, sel->r.left, format->width - 2); in vsp1_rwpf_set_selection()
226 sel->r.top = min_t(unsigned int, sel->r.top, format->height - 2); in vsp1_rwpf_set_selection()
228 format->width - sel->r.left); in vsp1_rwpf_set_selection()
230 format->height - sel->r.top); in vsp1_rwpf_set_selection()
236 format = vsp1_entity_get_pad_format(&rwpf->entity, config, in vsp1_rwpf_set_selection()
238 format->width = crop->width; in vsp1_rwpf_set_selection()
239 format->height = crop->height; in vsp1_rwpf_set_selection()