Lines Matching refs:format
60 const struct xvip_video_format *format = &xvip_video_formats[i]; in xvip_get_format_by_code() local
62 if (format->code == code) in xvip_get_format_by_code()
63 return format; in xvip_get_format_by_code()
83 const struct xvip_video_format *format = &xvip_video_formats[i]; in xvip_get_format_by_fourcc() local
85 if (format->fourcc == fourcc) in xvip_get_format_by_fourcc()
86 return format; in xvip_get_format_by_fourcc()
124 const struct xvip_video_format *format = &xvip_video_formats[i]; in xvip_of_get_format() local
126 if (format->vf_code != vf_code || format->width != width) in xvip_of_get_format()
130 strcmp(pattern, format->pattern)) in xvip_of_get_format()
133 return format; in xvip_of_get_format()
149 void xvip_set_format_size(struct v4l2_mbus_framefmt *format, in xvip_set_format_size() argument
152 format->width = clamp_t(unsigned int, fmt->format.width, in xvip_set_format_size()
154 format->height = clamp_t(unsigned int, fmt->format.height, in xvip_set_format_size()
252 struct v4l2_mbus_framefmt *format; in xvip_enum_mbus_code() local
263 format = v4l2_subdev_get_try_format(subdev, sd_state, code->pad); in xvip_enum_mbus_code()
265 code->code = format->code; in xvip_enum_mbus_code()
290 struct v4l2_mbus_framefmt *format; in xvip_enum_frame_size() local
298 format = v4l2_subdev_get_try_format(subdev, sd_state, fse->pad); in xvip_enum_frame_size()
300 if (fse->index || fse->code != format->code) in xvip_enum_frame_size()
312 fse->min_width = format->width; in xvip_enum_frame_size()
313 fse->max_width = format->width; in xvip_enum_frame_size()
314 fse->min_height = format->height; in xvip_enum_frame_size()
315 fse->max_height = format->height; in xvip_enum_frame_size()