Lines Matching refs:format
49 struct v4l2_mbus_framefmt *format; in vsp1_rwpf_enum_frame_size() local
51 format = vsp1_entity_get_pad_format(&rwpf->entity, cfg, fse->pad, in vsp1_rwpf_enum_frame_size()
54 if (fse->index || fse->code != format->code) in vsp1_rwpf_enum_frame_size()
66 fse->min_width = format->width; in vsp1_rwpf_enum_frame_size()
67 fse->max_width = format->width; in vsp1_rwpf_enum_frame_size()
68 fse->min_height = format->height; in vsp1_rwpf_enum_frame_size()
69 fse->max_height = format->height; in vsp1_rwpf_enum_frame_size()
93 fmt->format = *vsp1_entity_get_pad_format(&rwpf->entity, cfg, fmt->pad, in vsp1_rwpf_get_format()
103 struct v4l2_mbus_framefmt *format; in vsp1_rwpf_set_format() local
107 if (fmt->format.code != MEDIA_BUS_FMT_ARGB8888_1X32 && in vsp1_rwpf_set_format()
108 fmt->format.code != MEDIA_BUS_FMT_AYUV8_1X32) in vsp1_rwpf_set_format()
109 fmt->format.code = MEDIA_BUS_FMT_AYUV8_1X32; in vsp1_rwpf_set_format()
111 format = vsp1_entity_get_pad_format(&rwpf->entity, cfg, fmt->pad, in vsp1_rwpf_set_format()
118 format->code = fmt->format.code; in vsp1_rwpf_set_format()
119 fmt->format = *format; in vsp1_rwpf_set_format()
123 format->code = fmt->format.code; in vsp1_rwpf_set_format()
124 format->width = clamp_t(unsigned int, fmt->format.width, in vsp1_rwpf_set_format()
126 format->height = clamp_t(unsigned int, fmt->format.height, in vsp1_rwpf_set_format()
128 format->field = V4L2_FIELD_NONE; in vsp1_rwpf_set_format()
129 format->colorspace = V4L2_COLORSPACE_SRGB; in vsp1_rwpf_set_format()
131 fmt->format = *format; in vsp1_rwpf_set_format()
137 crop->width = fmt->format.width; in vsp1_rwpf_set_format()
138 crop->height = fmt->format.height; in vsp1_rwpf_set_format()
141 format = vsp1_entity_get_pad_format(&rwpf->entity, cfg, RWPF_PAD_SOURCE, in vsp1_rwpf_set_format()
143 *format = fmt->format; in vsp1_rwpf_set_format()
153 struct v4l2_mbus_framefmt *format; in vsp1_rwpf_get_selection() local
165 format = vsp1_entity_get_pad_format(&rwpf->entity, cfg, in vsp1_rwpf_get_selection()
169 sel->r.width = format->width; in vsp1_rwpf_get_selection()
170 sel->r.height = format->height; in vsp1_rwpf_get_selection()
185 struct v4l2_mbus_framefmt *format; in vsp1_rwpf_set_selection() local
198 format = vsp1_entity_get_pad_format(&rwpf->entity, cfg, RWPF_PAD_SINK, in vsp1_rwpf_set_selection()
204 if (format->code == MEDIA_BUS_FMT_AYUV8_1X32) { in vsp1_rwpf_set_selection()
211 sel->r.left = min_t(unsigned int, sel->r.left, format->width - 2); in vsp1_rwpf_set_selection()
212 sel->r.top = min_t(unsigned int, sel->r.top, format->height - 2); in vsp1_rwpf_set_selection()
218 format->width - sel->r.left); in vsp1_rwpf_set_selection()
220 format->height - sel->r.top); in vsp1_rwpf_set_selection()
226 format = vsp1_entity_get_pad_format(&rwpf->entity, cfg, RWPF_PAD_SOURCE, in vsp1_rwpf_set_selection()
228 format->width = crop->width; in vsp1_rwpf_set_selection()
229 format->height = crop->height; in vsp1_rwpf_set_selection()