Lines Matching refs:format
94 struct v4l2_mbus_framefmt *format; in lut_enum_mbus_code() local
108 format = vsp1_entity_get_pad_format(&lut->entity, cfg, in lut_enum_mbus_code()
110 code->code = format->code; in lut_enum_mbus_code()
121 struct v4l2_mbus_framefmt *format; in lut_enum_frame_size() local
123 format = vsp1_entity_get_pad_format(&lut->entity, cfg, in lut_enum_frame_size()
126 if (fse->index || fse->code != format->code) in lut_enum_frame_size()
138 fse->min_width = format->width; in lut_enum_frame_size()
139 fse->max_width = format->width; in lut_enum_frame_size()
140 fse->min_height = format->height; in lut_enum_frame_size()
141 fse->max_height = format->height; in lut_enum_frame_size()
152 fmt->format = *vsp1_entity_get_pad_format(&lut->entity, cfg, fmt->pad, in lut_get_format()
162 struct v4l2_mbus_framefmt *format; in lut_set_format() local
165 if (fmt->format.code != MEDIA_BUS_FMT_ARGB8888_1X32 && in lut_set_format()
166 fmt->format.code != MEDIA_BUS_FMT_AHSV8888_1X32 && in lut_set_format()
167 fmt->format.code != MEDIA_BUS_FMT_AYUV8_1X32) in lut_set_format()
168 fmt->format.code = MEDIA_BUS_FMT_AYUV8_1X32; in lut_set_format()
170 format = vsp1_entity_get_pad_format(&lut->entity, cfg, fmt->pad, in lut_set_format()
175 fmt->format = *format; in lut_set_format()
179 format->width = clamp_t(unsigned int, fmt->format.width, in lut_set_format()
181 format->height = clamp_t(unsigned int, fmt->format.height, in lut_set_format()
183 format->field = V4L2_FIELD_NONE; in lut_set_format()
184 format->colorspace = V4L2_COLORSPACE_SRGB; in lut_set_format()
186 fmt->format = *format; in lut_set_format()
189 format = vsp1_entity_get_pad_format(&lut->entity, cfg, LUT_PAD_SOURCE, in lut_set_format()
191 *format = fmt->format; in lut_set_format()