/openbmc/linux/drivers/media/platform/sunxi/sun6i-csi/ |
H A D | sun6i_csi_capture.c | 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, [all …]
|
H A D | sun6i_csi_capture.h | 24 u32 pixelformat; member 33 u32 pixelformat; member 67 u32 *pixelformat, u32 *field); 72 struct sun6i_csi_capture_format *sun6i_csi_capture_format_find(u32 pixelformat);
|
/openbmc/linux/drivers/media/test-drivers/vimc/ |
H A D | vimc-common.c | 26 .pixelformat = V4L2_PIX_FMT_BGR24, 41 .pixelformat = V4L2_PIX_FMT_RGB24, 47 .pixelformat = V4L2_PIX_FMT_ARGB32, 55 .pixelformat = V4L2_PIX_FMT_SBGGR8, 61 .pixelformat = V4L2_PIX_FMT_SGBRG8, 67 .pixelformat = V4L2_PIX_FMT_SGRBG8, 73 .pixelformat = V4L2_PIX_FMT_SRGGB8, 79 .pixelformat = V4L2_PIX_FMT_SBGGR10, 85 .pixelformat = V4L2_PIX_FMT_SGBRG10, 91 .pixelformat = V4L2_PIX_FMT_SGRBG10, [all …]
|
H A D | vimc-capture.c | 39 .pixelformat = V4L2_PIX_FMT_RGB24, 97 vpix = vimc_pix_map_by_pixelformat(format->pixelformat); in vimc_capture_try_fmt_vid_cap() 99 format->pixelformat = fmt_default.pixelformat; in vimc_capture_try_fmt_vid_cap() 100 vpix = vimc_pix_map_by_pixelformat(format->pixelformat); in vimc_capture_try_fmt_vid_cap() 136 vcapture->format.pixelformat, vcapture->format.colorspace, in vimc_capture_s_fmt_vid_cap() 141 f->fmt.pix.pixelformat, f->fmt.pix.colorspace, in vimc_capture_s_fmt_vid_cap() 167 f->pixelformat = vpix->pixelformat; in vimc_capture_enum_fmt_vid_cap() 452 vpix = vimc_pix_map_by_pixelformat(vcapture->format.pixelformat); in vimc_capture_add()
|
/openbmc/linux/drivers/media/platform/mediatek/mdp3/ |
H A D | mdp_cfg_data.c | 166 .pixelformat = V4L2_PIX_FMT_GREY, 173 .pixelformat = V4L2_PIX_FMT_RGB565X, 180 .pixelformat = V4L2_PIX_FMT_RGB565, 187 .pixelformat = V4L2_PIX_FMT_RGB24, 194 .pixelformat = V4L2_PIX_FMT_BGR24, 201 .pixelformat = V4L2_PIX_FMT_ABGR32, 208 .pixelformat = V4L2_PIX_FMT_ARGB32, 215 .pixelformat = V4L2_PIX_FMT_UYVY, 223 .pixelformat = V4L2_PIX_FMT_VYUY, 231 .pixelformat = V4L2_PIX_FMT_YUYV, [all …]
|
H A D | mtk-mdp3-regs.c | 16 u32 pixelformat, u32 type) in mdp_find_fmt() argument 25 if (mdp_data->format[i].pixelformat == pixelformat) in mdp_find_fmt() 124 f->pixelformat = fmt->pixelformat; in mdp_enum_fmt_mplane() 141 fmt = mdp_find_fmt(mdp->mdp_data, pix_mp->pixelformat, f->type); in mdp_try_fmt_mplane() 146 (pix_mp->pixelformat & 0xff), in mdp_try_fmt_mplane() 147 (pix_mp->pixelformat >> 8) & 0xff, in mdp_try_fmt_mplane() 148 (pix_mp->pixelformat >> 16) & 0xff, in mdp_try_fmt_mplane() 149 (pix_mp->pixelformat >> 24) & 0xff); in mdp_try_fmt_mplane() 156 pix_mp->pixelformat = fmt->pixelformat; in mdp_try_fmt_mplane()
|
/openbmc/linux/drivers/staging/media/sunxi/cedrus/ |
H A D | cedrus_video.c | 39 .pixelformat = V4L2_PIX_FMT_MPEG2_SLICE, 44 .pixelformat = V4L2_PIX_FMT_H264_SLICE, 49 .pixelformat = V4L2_PIX_FMT_HEVC_SLICE, 54 .pixelformat = V4L2_PIX_FMT_VP8_FRAME, 59 .pixelformat = V4L2_PIX_FMT_NV12, 64 .pixelformat = V4L2_PIX_FMT_NV12_32L32, 77 u32 pixelformat, u32 directions) in cedrus_find_format() argument 90 if (fmt->pixelformat == pixelformat) in cedrus_find_format() 116 switch (pix_fmt->pixelformat) { in cedrus_prepare_format() 200 f->pixelformat = cedrus_formats[i].pixelformat; in cedrus_enum_fmt() [all …]
|
/openbmc/linux/drivers/staging/media/sunxi/sun6i-isp/ |
H A D | sun6i_isp_capture.c | 31 u32 *pixelformat) in sun6i_isp_capture_format() argument 33 if (pixelformat) in sun6i_isp_capture_format() 34 *pixelformat = isp_dev->capture.format.fmt.pix.pixelformat; in sun6i_isp_capture_format() 41 .pixelformat = V4L2_PIX_FMT_NV12, 45 .pixelformat = V4L2_PIX_FMT_NV21, 51 sun6i_isp_capture_format_find(u32 pixelformat) in sun6i_isp_capture_format_find() argument 56 if (sun6i_isp_capture_formats[i].pixelformat == pixelformat) in sun6i_isp_capture_format_find() 73 u32 pixelformat; in sun6i_isp_capture_buffer_configure() local 82 sun6i_isp_capture_format(isp_dev, &pixelformat); in sun6i_isp_capture_buffer_configure() 84 info = v4l2_format_info(pixelformat); in sun6i_isp_capture_buffer_configure() [all …]
|
H A D | sun6i_isp_capture.h | 22 u32 pixelformat; member 55 u32 *pixelformat); 60 sun6i_isp_capture_format_find(u32 pixelformat);
|
/openbmc/linux/drivers/media/test-drivers/visl/ |
H A D | visl-video.c | 22 u32 fourcc = ctx->coded_fmt.fmt.pix_mp.pixelformat; in visl_set_current_codec() 58 pix_mp->pixelformat, in visl_print_fmt() 59 (pix_mp->pixelformat >> 8) & 0xff, in visl_print_fmt() 60 (pix_mp->pixelformat >> 16) & 0xff, in visl_print_fmt() 61 (pix_mp->pixelformat >> 24) & 0xff); in visl_print_fmt() 99 f->pixelformat); in visl_tpg_init() 138 .pixelformat = V4L2_PIX_FMT_FWHT_STATELESS, 152 .pixelformat = V4L2_PIX_FMT_MPEG2_SLICE, 166 .pixelformat = V4L2_PIX_FMT_VP8_FRAME, 180 .pixelformat = V4L2_PIX_FMT_VP9_FRAME, [all …]
|
/openbmc/linux/drivers/media/test-drivers/vivid/ |
H A D | vivid-sdr-cap.c | 28 u32 pixelformat; member 35 .pixelformat = V4L2_SDR_FMT_CU8, 38 .pixelformat = V4L2_SDR_FMT_CS8, 453 f->pixelformat = formats[f->index].pixelformat; in vidioc_enum_fmt_sdr_cap() 461 f->fmt.sdr.pixelformat = dev->sdr_pixelformat; in vidioc_g_fmt_sdr_cap() 476 if (formats[i].pixelformat == f->fmt.sdr.pixelformat) { in vidioc_s_fmt_sdr_cap() 477 dev->sdr_pixelformat = formats[i].pixelformat; in vidioc_s_fmt_sdr_cap() 483 dev->sdr_pixelformat = formats[0].pixelformat; in vidioc_s_fmt_sdr_cap() 485 f->fmt.sdr.pixelformat = formats[0].pixelformat; in vidioc_s_fmt_sdr_cap() 495 if (formats[i].pixelformat == f->fmt.sdr.pixelformat) { in vidioc_try_fmt_sdr_cap() [all …]
|
/openbmc/linux/drivers/media/platform/qcom/camss/ |
H A D | camss-video.c | 43 u32 pixelformat; member 269 static int video_find_format(u32 code, u32 pixelformat, in video_find_format() argument 277 formats[i].pixelformat == pixelformat) in video_find_format() 311 pix->pixelformat = f->pixelformat; in video_mbus_to_pix_mp() 363 format->fmt.pix_mp.pixelformat, in video_get_subdev_format() 425 if (format->pixelformat == V4L2_PIX_FMT_NV12 || in video_buf_init() 426 format->pixelformat == V4L2_PIX_FMT_NV21 || in video_buf_init() 427 format->pixelformat == V4L2_PIX_FMT_NV16 || in video_buf_init() 428 format->pixelformat == V4L2_PIX_FMT_NV61) in video_buf_init() 473 sd_pix->pixelformat = pix->pixelformat; in video_check_format() [all …]
|
/openbmc/linux/drivers/media/usb/msi2500/ |
H A D | msi2500.c | 69 u32 pixelformat; member 76 .pixelformat = V4L2_SDR_FMT_CS8, 80 .pixelformat = MSI2500_PIX_FMT_SDR_MSI2500_384, 82 .pixelformat = MSI2500_PIX_FMT_SDR_S12, 85 .pixelformat = V4L2_SDR_FMT_CS14LE, 88 .pixelformat = V4L2_SDR_FMT_CU8, 91 .pixelformat = V4L2_SDR_FMT_CU16LE, 125 u32 pixelformat; member 270 switch (dev->pixelformat) { in msi2500_convert_stream() 690 switch (dev->pixelformat) { in msi2500_set_usb_adc() [all …]
|
/openbmc/linux/drivers/media/platform/samsung/exynos-gsc/ |
H A D | gsc-core.c | 29 .pixelformat = V4L2_PIX_FMT_RGB565X, 35 .pixelformat = V4L2_PIX_FMT_BGR32, 41 .pixelformat = V4L2_PIX_FMT_YUYV, 50 .pixelformat = V4L2_PIX_FMT_UYVY, 59 .pixelformat = V4L2_PIX_FMT_VYUY, 68 .pixelformat = V4L2_PIX_FMT_YVYU, 77 .pixelformat = V4L2_PIX_FMT_YUV32, 85 .pixelformat = V4L2_PIX_FMT_YUV422P, 93 .pixelformat = V4L2_PIX_FMT_NV16, 101 .pixelformat = V4L2_PIX_FMT_NV16M, [all …]
|
/openbmc/linux/drivers/media/platform/chips-media/ |
H A D | imx-vdoa.c | 89 u32 pixelformat; member 166 if (dst_q_data->pixelformat == V4L2_PIX_FMT_YUYV) in vdoa_device_run() 181 if (dst_q_data->pixelformat == V4L2_PIX_FMT_NV12 || in vdoa_device_run() 182 dst_q_data->pixelformat == V4L2_PIX_FMT_NV21) in vdoa_device_run() 237 u32 pixelformat) in vdoa_context_configure() argument 246 if (pixelformat != V4L2_PIX_FMT_YUYV && in vdoa_context_configure() 247 pixelformat != V4L2_PIX_FMT_NV12) in vdoa_context_configure() 266 dst_q_data->pixelformat = pixelformat; in vdoa_context_configure() 267 switch (pixelformat) { in vdoa_context_configure()
|
/openbmc/linux/drivers/media/common/saa7146/ |
H A D | saa7146_video.c | 12 .pixelformat = V4L2_PIX_FMT_RGB332, 17 .pixelformat = V4L2_PIX_FMT_RGB565, 22 .pixelformat = V4L2_PIX_FMT_BGR24, 27 .pixelformat = V4L2_PIX_FMT_BGR32, 32 .pixelformat = V4L2_PIX_FMT_RGB32, 38 .pixelformat = V4L2_PIX_FMT_GREY, 43 .pixelformat = V4L2_PIX_FMT_YUV422P, 48 .pixelformat = V4L2_PIX_FMT_YVU420, 53 .pixelformat = V4L2_PIX_FMT_YUV420, 58 .pixelformat = V4L2_PIX_FMT_UYVY, [all …]
|
/openbmc/linux/drivers/media/platform/st/sti/hva/ |
H A D | hva-v4l2.c | 96 frameinfo->pixelformat = V4L2_PIX_FMT_NV12; in set_default_params() 105 frameinfo->pixelformat); in set_default_params() 121 u32 pixelformat, in hva_find_encoder() argument 130 if ((enc->pixelformat == pixelformat) && in hva_find_encoder() 159 register_format(hva->encoders[i]->pixelformat, in register_formats() 190 u32 pixelformat, struct hva_enc **penc) in hva_open_encoder() argument 198 enc = (struct hva_enc *)hva_find_encoder(ctx, pixelformat, in hva_open_encoder() 202 ctx->name, (char *)&pixelformat, (char *)&streamformat); in hva_open_encoder() 207 ctx->name, (char *)&pixelformat, (char *)&streamformat); in hva_open_encoder() 239 (char *)&frame->pixelformat, in hva_dbg_summary() [all …]
|
/openbmc/linux/drivers/media/platform/verisilicon/ |
H A D | hantro_v4l2.c | 228 f->pixelformat = fmt->fourcc; in vidioc_enum_fmt() 248 f->pixelformat = fmt->fourcc; in vidioc_enum_fmt() 307 (pix_mp->pixelformat & 0x7f), in hantro_try_fmt() 308 (pix_mp->pixelformat >> 8) & 0x7f, in hantro_try_fmt() 309 (pix_mp->pixelformat >> 16) & 0x7f, in hantro_try_fmt() 310 (pix_mp->pixelformat >> 24) & 0x7f); in hantro_try_fmt() 312 fmt = hantro_find_format(ctx, pix_mp->pixelformat); in hantro_try_fmt() 315 pix_mp->pixelformat = fmt->fourcc; in hantro_try_fmt() 322 vpu_fmt = hantro_find_format(ctx, ctx->dst_fmt.pixelformat); in hantro_try_fmt() 393 fmt->pixelformat = vpu_fmt->fourcc; in hantro_reset_fmt() [all …]
|
/openbmc/linux/drivers/staging/media/atomisp/pci/ |
H A D | atomisp_ioctl.c | 320 .pixelformat = V4L2_PIX_FMT_YUV420, 327 .pixelformat = V4L2_PIX_FMT_YVU420, 334 .pixelformat = V4L2_PIX_FMT_YUV422P, 341 .pixelformat = V4L2_PIX_FMT_YUV444, 347 .pixelformat = V4L2_PIX_FMT_NV12, 354 .pixelformat = V4L2_PIX_FMT_NV21, 361 .pixelformat = V4L2_PIX_FMT_NV16, 368 .pixelformat = V4L2_PIX_FMT_YUYV, 374 .pixelformat = V4L2_PIX_FMT_UYVY, 380 .pixelformat = V4L2_PIX_FMT_UYVY, [all …]
|
/openbmc/linux/drivers/media/usb/airspy/ |
H A D | airspy.c | 74 u32 pixelformat; member 81 .pixelformat = V4L2_SDR_FMT_RU12LE, 131 u32 pixelformat; member 236 if (s->pixelformat == V4L2_SDR_FMT_RU12LE) { in airspy_convert_stream() 626 f->pixelformat = formats[f->index].pixelformat; in airspy_enum_fmt_sdr_cap() 636 f->fmt.sdr.pixelformat = s->pixelformat; in airspy_g_fmt_sdr_cap() 653 if (formats[i].pixelformat == f->fmt.sdr.pixelformat) { in airspy_s_fmt_sdr_cap() 654 s->pixelformat = formats[i].pixelformat; in airspy_s_fmt_sdr_cap() 661 s->pixelformat = formats[0].pixelformat; in airspy_s_fmt_sdr_cap() 663 f->fmt.sdr.pixelformat = formats[0].pixelformat; in airspy_s_fmt_sdr_cap() [all …]
|
/openbmc/linux/drivers/media/platform/st/sti/delta/ |
H A D | delta-v4l2.c | 248 frameinfo->pixelformat = V4L2_PIX_FMT_NV12; in set_default_params() 257 frameinfo->pixelformat); in set_default_params() 280 u32 pixelformat) in delta_find_decoder() argument 288 if ((dec->pixelformat == pixelformat) && in delta_find_decoder() 313 register_format(delta->decoders[i]->pixelformat, in register_formats() 343 u32 pixelformat, const struct delta_dec **pdec) in delta_open_decoder() argument 349 dec = delta_find_decoder(ctx, streamformat, ctx->frameinfo.pixelformat); in delta_open_decoder() 352 ctx->name, (char *)&streamformat, (char *)&pixelformat); in delta_open_decoder() 357 ctx->name, (char *)&streamformat, (char *)&pixelformat); in delta_open_decoder() 405 f->pixelformat = delta->streamformats[f->index]; in delta_enum_fmt_stream() [all …]
|
/openbmc/linux/drivers/media/usb/pwc/ |
H A D | pwc-v4l.c | 393 f->fmt.pix.pixelformat = pixfmt; in pwc_vidioc_fill_fmt() 402 (f->fmt.pix.pixelformat)&255, in pwc_vidioc_fill_fmt() 403 (f->fmt.pix.pixelformat>>8)&255, in pwc_vidioc_fill_fmt() 404 (f->fmt.pix.pixelformat>>16)&255, in pwc_vidioc_fill_fmt() 405 (f->fmt.pix.pixelformat>>24)&255); in pwc_vidioc_fill_fmt() 418 switch (f->fmt.pix.pixelformat) { in pwc_vidioc_try_fmt() 424 f->fmt.pix.pixelformat = V4L2_PIX_FMT_YUV420; in pwc_vidioc_try_fmt() 430 f->fmt.pix.pixelformat = V4L2_PIX_FMT_YUV420; in pwc_vidioc_try_fmt() 435 f->fmt.pix.pixelformat = V4L2_PIX_FMT_YUV420; in pwc_vidioc_try_fmt() 442 f->fmt.pix.pixelformat); in pwc_vidioc_try_fmt() [all …]
|
/openbmc/linux/drivers/media/platform/renesas/rcar-vin/ |
H A D | rcar-v4l2.c | 92 u32 pixelformat) in rvin_format_from_pixel() argument 96 switch (pixelformat) { in rvin_format_from_pixel() 114 if (rvin_formats[i].fourcc == pixelformat) in rvin_format_from_pixel() 126 fmt = rvin_format_from_pixel(vin, pix->pixelformat); in rvin_format_bytesperline() 131 switch (pix->pixelformat) { in rvin_format_bytesperline() 149 switch (pix->pixelformat) { in rvin_format_sizeimage() 163 if (!rvin_format_from_pixel(vin, pix->pixelformat)) in rvin_format_align() 164 pix->pixelformat = RVIN_DEFAULT_FORMAT; in rvin_format_align() 183 switch (pix->pixelformat) { in rvin_format_align() 273 if (!rvin_format_from_pixel(vin, pix->pixelformat)) in rvin_try_format() [all …]
|
/openbmc/linux/drivers/media/platform/nvidia/tegra-vde/ |
H A D | v4l2.c | 272 switch (pixfmt->pixelformat) { in tegra_buf_prepare() 411 f->fmt.pix_mp.pixelformat = fourcc; in tegra_reset_fmt() 433 u32 pixelformat, u32 width, u32 height) in tegra_fill_pixfmt_mp() argument 435 const struct v4l2_format_info *info = v4l2_format_info(pixelformat); in tegra_fill_pixfmt_mp() 439 switch (pixelformat) { in tegra_fill_pixfmt_mp() 444 pixfmt->pixelformat = pixelformat; in tegra_fill_pixfmt_mp() 519 f->pixelformat = ctx->coded_fmt_desc->decoded_fmts[f->index]; in tegra_enum_decoded_fmt() 554 if (coded_desc->decoded_fmts[i] == pix_mp->pixelformat) in tegra_try_decoded_fmt() 559 pix_mp->pixelformat = coded_desc->decoded_fmts[0]; in tegra_try_decoded_fmt() 566 tegra_fill_pixfmt_mp(pix_mp, pix_mp->pixelformat, in tegra_try_decoded_fmt() [all …]
|
/openbmc/linux/drivers/media/platform/via/ |
H A D | via-camera.c | 147 __u32 pixelformat; member 152 .pixelformat = V4L2_PIX_FMT_YUYV, 163 static struct via_format *via_find_format(u32 pixelformat) in via_find_format() argument 168 if (via_formats[i].pixelformat == pixelformat) in via_find_format() 512 if (cam->user_format.pixelformat == V4L2_PIX_FMT_YUYV) in viacam_ctlr_image() 772 .pixelformat = V4L2_PIX_FMT_YUYV, 786 fmt->pixelformat = via_formats[fmt->index].pixelformat; in viacam_enum_fmt_vid_cap() 813 struct via_format *f = via_find_format(userfmt->pixelformat); in viacam_fmt_post() 817 userfmt->pixelformat = sensorfmt->pixelformat; in viacam_fmt_post() 842 struct via_format *f = via_find_format(upix->pixelformat); in viacam_do_try_fmt() [all …]
|