Lines Matching refs:pixelformat
35 u32 *pixelformat, u32 *field) in sun6i_csi_capture_format() argument
37 if (pixelformat) in sun6i_csi_capture_format()
38 *pixelformat = csi_dev->capture.format.fmt.pix.pixelformat; in sun6i_csi_capture_format()
49 .pixelformat = V4L2_PIX_FMT_SBGGR8,
54 .pixelformat = V4L2_PIX_FMT_SGBRG8,
59 .pixelformat = V4L2_PIX_FMT_SGRBG8,
64 .pixelformat = V4L2_PIX_FMT_SRGGB8,
69 .pixelformat = V4L2_PIX_FMT_SBGGR10,
74 .pixelformat = V4L2_PIX_FMT_SGBRG10,
79 .pixelformat = V4L2_PIX_FMT_SGRBG10,
84 .pixelformat = V4L2_PIX_FMT_SRGGB10,
89 .pixelformat = V4L2_PIX_FMT_SBGGR12,
94 .pixelformat = V4L2_PIX_FMT_SGBRG12,
99 .pixelformat = V4L2_PIX_FMT_SGRBG12,
104 .pixelformat = V4L2_PIX_FMT_SRGGB12,
110 .pixelformat = V4L2_PIX_FMT_RGB565,
115 .pixelformat = V4L2_PIX_FMT_RGB565X,
121 .pixelformat = V4L2_PIX_FMT_YUYV,
128 .pixelformat = V4L2_PIX_FMT_YVYU,
135 .pixelformat = V4L2_PIX_FMT_UYVY,
142 .pixelformat = V4L2_PIX_FMT_VYUY,
149 .pixelformat = V4L2_PIX_FMT_NV16,
154 .pixelformat = V4L2_PIX_FMT_NV61,
160 .pixelformat = V4L2_PIX_FMT_YUV422P,
166 .pixelformat = V4L2_PIX_FMT_NV12_16L16,
171 .pixelformat = V4L2_PIX_FMT_NV12,
176 .pixelformat = V4L2_PIX_FMT_NV21,
183 .pixelformat = V4L2_PIX_FMT_YUV420,
188 .pixelformat = V4L2_PIX_FMT_YVU420,
195 .pixelformat = V4L2_PIX_FMT_JPEG,
202 struct sun6i_csi_capture_format *sun6i_csi_capture_format_find(u32 pixelformat) in sun6i_csi_capture_format_find() argument
207 if (sun6i_csi_capture_formats[i].pixelformat == pixelformat) in sun6i_csi_capture_format_find()
218 .pixelformat = V4L2_PIX_FMT_YUYV,
222 .pixelformat = V4L2_PIX_FMT_YUYV,
226 .pixelformat = V4L2_PIX_FMT_YVYU,
230 .pixelformat = V4L2_PIX_FMT_YVYU,
234 .pixelformat = V4L2_PIX_FMT_UYVY,
238 .pixelformat = V4L2_PIX_FMT_UYVY,
242 .pixelformat = V4L2_PIX_FMT_VYUY,
246 .pixelformat = V4L2_PIX_FMT_VYUY,
251 .pixelformat = V4L2_PIX_FMT_RGB565,
255 .pixelformat = V4L2_PIX_FMT_RGB565X,
260 .pixelformat = V4L2_PIX_FMT_SBGGR8,
264 .pixelformat = V4L2_PIX_FMT_SGBRG8,
268 .pixelformat = V4L2_PIX_FMT_SGRBG8,
272 .pixelformat = V4L2_PIX_FMT_SRGGB8,
276 .pixelformat = V4L2_PIX_FMT_SBGGR10,
280 .pixelformat = V4L2_PIX_FMT_SGBRG10,
284 .pixelformat = V4L2_PIX_FMT_SGRBG10,
288 .pixelformat = V4L2_PIX_FMT_SRGGB10,
292 .pixelformat = V4L2_PIX_FMT_SBGGR12,
296 .pixelformat = V4L2_PIX_FMT_SGBRG12,
300 .pixelformat = V4L2_PIX_FMT_SGRBG12,
304 .pixelformat = V4L2_PIX_FMT_SRGGB12,
309 .pixelformat = V4L2_PIX_FMT_JPEG,
314 static bool sun6i_csi_capture_format_match(u32 pixelformat, u32 mbus_code) in sun6i_csi_capture_format_match() argument
322 if (match->pixelformat == pixelformat && in sun6i_csi_capture_format_match()
341 u32 pixelformat; in sun6i_csi_capture_buffer_configure() local
350 sun6i_csi_capture_format(csi_dev, &pixelformat, NULL); in sun6i_csi_capture_buffer_configure()
352 info = v4l2_format_info(pixelformat); in sun6i_csi_capture_buffer_configure()
380 u32 pixelformat, field; in sun6i_csi_capture_configure() local
384 sun6i_csi_capture_format(csi_dev, &pixelformat, &field); in sun6i_csi_capture_configure()
386 format = sun6i_csi_capture_format_find(pixelformat); in sun6i_csi_capture_configure()
408 switch (pixelformat) { in sun6i_csi_capture_configure()
420 info = v4l2_format_info(pixelformat); in sun6i_csi_capture_configure()
677 if (!sun6i_csi_capture_format_find(pix_format->pixelformat)) in sun6i_csi_capture_format_prepare()
678 pix_format->pixelformat = in sun6i_csi_capture_format_prepare()
679 sun6i_csi_capture_formats[0].pixelformat; in sun6i_csi_capture_format_prepare()
684 info = v4l2_format_info(pix_format->pixelformat); in sun6i_csi_capture_format_prepare()
686 switch (pix_format->pixelformat) { in sun6i_csi_capture_format_prepare()
696 v4l2_fill_pixfmt(pix_format, pix_format->pixelformat, in sun6i_csi_capture_format_prepare()
704 if (pix_format->pixelformat == V4L2_PIX_FMT_JPEG) in sun6i_csi_capture_format_prepare()
738 fmtdesc->pixelformat = sun6i_csi_capture_formats[index].pixelformat; in sun6i_csi_capture_enum_fmt()
898 u32 pixelformat, capture_field; in sun6i_csi_capture_link_validate() local
904 sun6i_csi_capture_format(csi_dev, &pixelformat, &capture_field); in sun6i_csi_capture_link_validate()
905 capture_format = sun6i_csi_capture_format_find(pixelformat); in sun6i_csi_capture_link_validate()
925 format_info = v4l2_format_info(pixelformat); in sun6i_csi_capture_link_validate()
952 match = sun6i_csi_capture_format_match(pixelformat, mbus_code); in sun6i_csi_capture_link_validate()
1028 pix_format->pixelformat = sun6i_csi_capture_formats[0].pixelformat; in sun6i_csi_capture_setup()