Lines Matching refs:format

70  * which filters are enabled. To avoid format changes when the filters are
73 * during streaming are enabled when computing sink crop and source format
996 * preview_config_input_format - Configure the input format
998 * @info: Sink pad format information
1064 const struct v4l2_mbus_framefmt *format = &prev->formats[PREV_PAD_SINK];
1072 if (format->code != MEDIA_BUS_FMT_Y8_1X8 &&
1073 format->code != MEDIA_BUS_FMT_Y10_1X10) {
1315 params->cfa.format = OMAP3ISP_CFAFMT_BAYER;
1382 struct v4l2_mbus_framefmt *format;
1394 format = &prev->formats[PREV_PAD_SINK];
1395 info = omap3isp_video_format_info(format->code);
1405 preview_config_inlineoffset(prev, ALIGN(format->width, 0x20) *
1411 format = &prev->formats[PREV_PAD_SOURCE];
1429 ALIGN(format->width, 0x10) * 2);
1432 preview_config_ycpos(prev, format->code);
1701 /* previewer format descriptions */
1721 * preview_try_format - Validate a format
1725 * @fmt: format to be validated
1726 * @which: try/active format selector
1728 * Validate and adjust the given format for the given pad based on the preview
1729 * engine limits and the format and crop rectangles on other pads.
1805 * @sink: format on the sink pad
1835 * format.
1858 * preview_enum_mbus_code - Handle pixel format enumeration
1893 struct v4l2_mbus_framefmt format;
1898 format.code = fse->code;
1899 format.width = 1;
1900 format.height = 1;
1901 preview_try_format(prev, cfg, fse->pad, &format, fse->which);
1902 fse->min_width = format.width;
1903 fse->min_height = format.height;
1905 if (format.code != fse->code)
1908 format.code = fse->code;
1909 format.width = -1;
1910 format.height = -1;
1911 preview_try_format(prev, cfg, fse->pad, &format, fse->which);
1912 fse->max_width = format.width;
1913 fse->max_height = format.height;
1933 struct v4l2_mbus_framefmt *format;
1945 format = __preview_get_format(prev, cfg, PREV_PAD_SINK,
1947 preview_try_crop(prev, format, &sel->r);
1976 struct v4l2_mbus_framefmt *format;
1986 /* Modifying the crop rectangle always changes the format on the source
1995 format = __preview_get_format(prev, cfg, PREV_PAD_SINK, sel->which);
1996 preview_try_crop(prev, format, &sel->r);
1999 /* Update the source format. */
2000 format = __preview_get_format(prev, cfg, PREV_PAD_SOURCE, sel->which);
2001 preview_try_format(prev, cfg, PREV_PAD_SOURCE, format, sel->which);
2007 * preview_get_format - Handle get format by pads subdev method
2010 * @fmt: pointer to v4l2 subdev format structure
2017 struct v4l2_mbus_framefmt *format;
2019 format = __preview_get_format(prev, cfg, fmt->pad, fmt->which);
2020 if (format == NULL)
2023 fmt->format = *format;
2028 * preview_set_format - Handle set format by pads subdev method
2031 * @fmt: pointer to v4l2 subdev format structure
2038 struct v4l2_mbus_framefmt *format;
2041 format = __preview_get_format(prev, cfg, fmt->pad, fmt->which);
2042 if (format == NULL)
2045 preview_try_format(prev, cfg, fmt->pad, &fmt->format, fmt->which);
2046 *format = fmt->format;
2048 /* Propagate the format from sink to source */
2054 crop->width = fmt->format.width;
2055 crop->height = fmt->format.height;
2057 preview_try_crop(prev, &fmt->format, crop);
2059 /* Update the source format. */
2060 format = __preview_get_format(prev, cfg, PREV_PAD_SOURCE,
2062 preview_try_format(prev, cfg, PREV_PAD_SOURCE, format,
2081 struct v4l2_subdev_format format;
2083 memset(&format, 0, sizeof(format));
2084 format.pad = PREV_PAD_SINK;
2085 format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE;
2086 format.format.code = MEDIA_BUS_FMT_SGRBG10_1X10;
2087 format.format.width = 4096;
2088 format.format.height = 4096;
2089 preview_set_format(sd, fh ? fh->pad : NULL, &format);