Lines Matching refs:format
58 const struct xvip_video_format *format = &xvip_video_formats[i]; in xvip_get_format_by_code() local
60 if (format->code == code) in xvip_get_format_by_code()
61 return format; in xvip_get_format_by_code()
81 const struct xvip_video_format *format = &xvip_video_formats[i]; in xvip_get_format_by_fourcc() local
83 if (format->fourcc == fourcc) in xvip_get_format_by_fourcc()
84 return format; in xvip_get_format_by_fourcc()
122 const struct xvip_video_format *format = &xvip_video_formats[i]; in xvip_of_get_format() local
124 if (format->vf_code != vf_code || format->width != width) in xvip_of_get_format()
128 strcmp(pattern, format->pattern)) in xvip_of_get_format()
131 return format; in xvip_of_get_format()
147 void xvip_set_format_size(struct v4l2_mbus_framefmt *format, in xvip_set_format_size() argument
150 format->width = clamp_t(unsigned int, fmt->format.width, in xvip_set_format_size()
152 format->height = clamp_t(unsigned int, fmt->format.height, in xvip_set_format_size()
250 struct v4l2_mbus_framefmt *format; in xvip_enum_mbus_code() local
261 format = v4l2_subdev_get_try_format(subdev, sd_state, code->pad); in xvip_enum_mbus_code()
263 code->code = format->code; in xvip_enum_mbus_code()
288 struct v4l2_mbus_framefmt *format; in xvip_enum_frame_size() local
296 format = v4l2_subdev_get_try_format(subdev, sd_state, fse->pad); in xvip_enum_frame_size()
298 if (fse->index || fse->code != format->code) in xvip_enum_frame_size()
310 fse->min_width = format->width; in xvip_enum_frame_size()
311 fse->max_width = format->width; in xvip_enum_frame_size()
312 fse->min_height = format->height; in xvip_enum_frame_size()
313 fse->max_height = format->height; in xvip_enum_frame_size()