Lines Matching defs:format
57 * fimc_isp_find_format - lookup color format by fourcc or media bus code
126 struct v4l2_mbus_framefmt *mf = &fmt->format;
138 /* ISP OTF input image format */
141 /* ISP OTF output image format */
162 struct v4l2_mbus_framefmt *mf = &fmt->format;
163 struct v4l2_mbus_framefmt *format;
175 format = v4l2_subdev_get_try_format(&isp->subdev, cfg,
178 format = &isp->sink_fmt;
180 /* Allow changing format only on sink pad */
181 mf->width = format->width - FIMC_ISP_CAC_MARGIN_WIDTH;
182 mf->height = format->height - FIMC_ISP_CAC_MARGIN_HEIGHT;
188 mf->code = format->code;
199 struct v4l2_mbus_framefmt *mf = &fmt->format;
210 *mf = fmt->format;
212 /* Propagate format to the source pads */
214 struct v4l2_subdev_format format = *fmt;
219 format.pad = pad;
220 __isp_subdev_try_format(isp, cfg, &format);
222 *mf = format.format;
228 struct v4l2_subdev_format format = *fmt;
232 format.pad = FIMC_ISP_SD_PAD_SRC_DMA;
233 __isp_subdev_try_format(isp, cfg, &format);
235 isp->src_fmt = format.format;
364 struct v4l2_mbus_framefmt *format;
373 format = v4l2_subdev_get_try_format(sd, fh->pad, FIMC_ISP_SD_PAD_SINK);
374 *format = fmt;
376 format = v4l2_subdev_get_try_format(sd, fh->pad, FIMC_ISP_SD_PAD_SRC_FIFO);
379 *format = fmt;
381 format = v4l2_subdev_get_try_format(sd, fh->pad, FIMC_ISP_SD_PAD_SRC_DMA);
382 *format = fmt;