/drivers/media/test-drivers/vimc/ |
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 …]
|
D | vimc-capture.c | 38 .pixelformat = V4L2_PIX_FMT_RGB24, 96 vpix = vimc_pix_map_by_pixelformat(format->pixelformat); in vimc_cap_try_fmt_vid_cap() 98 format->pixelformat = fmt_default.pixelformat; in vimc_cap_try_fmt_vid_cap() 99 vpix = vimc_pix_map_by_pixelformat(format->pixelformat); in vimc_cap_try_fmt_vid_cap() 135 vcap->format.pixelformat, vcap->format.colorspace, in vimc_cap_s_fmt_vid_cap() 140 f->fmt.pix.pixelformat, f->fmt.pix.colorspace, in vimc_cap_s_fmt_vid_cap() 166 f->pixelformat = vpix->pixelformat; in vimc_cap_enum_fmt_vid_cap() 448 vpix = vimc_pix_map_by_pixelformat(vcap->format.pixelformat); in vimc_cap_add()
|
/drivers/staging/media/sunxi/cedrus/ |
D | cedrus_video.c | 39 .pixelformat = V4L2_PIX_FMT_MPEG2_SLICE, 43 .pixelformat = V4L2_PIX_FMT_H264_SLICE, 47 .pixelformat = V4L2_PIX_FMT_HEVC_SLICE, 52 .pixelformat = V4L2_PIX_FMT_SUNXI_TILED_NV12, 56 .pixelformat = V4L2_PIX_FMT_NV12, 69 static struct cedrus_format *cedrus_find_format(u32 pixelformat, u32 directions, in cedrus_find_format() argument 83 if (fmt->pixelformat == pixelformat) in cedrus_find_format() 109 switch (pix_fmt->pixelformat) { in cedrus_prepare_format() 198 f->pixelformat = cedrus_formats[i].pixelformat; in cedrus_enum_fmt() 243 cedrus_find_format(pix_fmt->pixelformat, CEDRUS_DECODE_DST, in cedrus_try_fmt_vid_cap() [all …]
|
/drivers/media/platform/qcom/camss/ |
D | camss-video.c | 43 u32 pixelformat; member 218 static int video_find_format(u32 code, u32 pixelformat, in video_find_format() argument 226 formats[i].pixelformat == pixelformat) in video_find_format() 260 pix->pixelformat = f->pixelformat; in video_mbus_to_pix_mp() 311 format->fmt.pix_mp.pixelformat, in video_get_subdev_format() 373 if (format->pixelformat == V4L2_PIX_FMT_NV12 || in video_buf_init() 374 format->pixelformat == V4L2_PIX_FMT_NV21 || in video_buf_init() 375 format->pixelformat == V4L2_PIX_FMT_NV16 || in video_buf_init() 376 format->pixelformat == V4L2_PIX_FMT_NV61) in video_buf_init() 421 sd_pix->pixelformat = pix->pixelformat; in video_check_format() [all …]
|
/drivers/media/usb/msi2500/ |
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 …]
|
/drivers/media/platform/exynos-gsc/ |
D | gsc-core.c | 30 .pixelformat = V4L2_PIX_FMT_RGB565X, 36 .pixelformat = V4L2_PIX_FMT_BGR32, 42 .pixelformat = V4L2_PIX_FMT_YUYV, 51 .pixelformat = V4L2_PIX_FMT_UYVY, 60 .pixelformat = V4L2_PIX_FMT_VYUY, 69 .pixelformat = V4L2_PIX_FMT_YVYU, 78 .pixelformat = V4L2_PIX_FMT_YUV32, 86 .pixelformat = V4L2_PIX_FMT_YUV422P, 94 .pixelformat = V4L2_PIX_FMT_NV16, 102 .pixelformat = V4L2_PIX_FMT_NV16M, [all …]
|
/drivers/media/test-drivers/vivid/ |
D | vivid-sdr-cap.c | 27 u32 pixelformat; member 34 .pixelformat = V4L2_SDR_FMT_CU8, 37 .pixelformat = V4L2_SDR_FMT_CS8, 446 f->pixelformat = formats[f->index].pixelformat; in vidioc_enum_fmt_sdr_cap() 454 f->fmt.sdr.pixelformat = dev->sdr_pixelformat; in vidioc_g_fmt_sdr_cap() 471 if (formats[i].pixelformat == f->fmt.sdr.pixelformat) { in vidioc_s_fmt_sdr_cap() 472 dev->sdr_pixelformat = formats[i].pixelformat; in vidioc_s_fmt_sdr_cap() 478 dev->sdr_pixelformat = formats[0].pixelformat; in vidioc_s_fmt_sdr_cap() 480 f->fmt.sdr.pixelformat = formats[0].pixelformat; in vidioc_s_fmt_sdr_cap() 491 if (formats[i].pixelformat == f->fmt.sdr.pixelformat) { in vidioc_try_fmt_sdr_cap() [all …]
|
/drivers/media/platform/coda/ |
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()
|
/drivers/media/platform/sti/hva/ |
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 …]
|
/drivers/staging/media/hantro/ |
D | hantro_v4l2.c | 171 f->pixelformat = fmt->fourcc; in vidioc_enum_fmt() 188 f->pixelformat = fmt->fourcc; in vidioc_enum_fmt() 246 (pix_mp->pixelformat & 0x7f), in hantro_try_fmt() 247 (pix_mp->pixelformat >> 8) & 0x7f, in hantro_try_fmt() 248 (pix_mp->pixelformat >> 16) & 0x7f, in hantro_try_fmt() 249 (pix_mp->pixelformat >> 24) & 0x7f); in hantro_try_fmt() 251 fmt = hantro_find_format(ctx, pix_mp->pixelformat); in hantro_try_fmt() 254 pix_mp->pixelformat = fmt->fourcc; in hantro_try_fmt() 317 fmt->pixelformat = vpu_fmt->fourcc; in hantro_reset_fmt() 421 pix_mp->pixelformat != ctx->src_fmt.pixelformat)) in hantro_set_fmt_out() [all …]
|
/drivers/media/usb/airspy/ |
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() 623 f->pixelformat = formats[f->index].pixelformat; in airspy_enum_fmt_sdr_cap() 633 f->fmt.sdr.pixelformat = s->pixelformat; in airspy_g_fmt_sdr_cap() 652 if (formats[i].pixelformat == f->fmt.sdr.pixelformat) { in airspy_s_fmt_sdr_cap() 653 s->pixelformat = formats[i].pixelformat; in airspy_s_fmt_sdr_cap() 660 s->pixelformat = formats[0].pixelformat; in airspy_s_fmt_sdr_cap() 662 f->fmt.sdr.pixelformat = formats[0].pixelformat; in airspy_s_fmt_sdr_cap() [all …]
|
/drivers/media/platform/sti/delta/ |
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 …]
|
/drivers/media/platform/rcar-vin/ |
D | rcar-v4l2.c | 88 u32 pixelformat) in rvin_format_from_pixel() argument 92 switch (pixelformat) { in rvin_format_from_pixel() 110 if (rvin_formats[i].fourcc == pixelformat) in rvin_format_from_pixel() 122 fmt = rvin_format_from_pixel(vin, pix->pixelformat); in rvin_format_bytesperline() 127 switch (pix->pixelformat) { in rvin_format_bytesperline() 145 switch (pix->pixelformat) { in rvin_format_sizeimage() 159 if (!rvin_format_from_pixel(vin, pix->pixelformat)) in rvin_format_align() 160 pix->pixelformat = RVIN_DEFAULT_FORMAT; in rvin_format_align() 179 switch (pix->pixelformat) { in rvin_format_align() 266 if (!rvin_format_from_pixel(vin, pix->pixelformat)) in rvin_try_format() [all …]
|
/drivers/media/usb/pwc/ |
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 …]
|
/drivers/media/platform/ |
D | via-camera.c | 148 __u32 pixelformat; member 153 .pixelformat = V4L2_PIX_FMT_YUYV, 164 static struct via_format *via_find_format(u32 pixelformat) in via_find_format() argument 169 if (via_formats[i].pixelformat == pixelformat) in via_find_format() 523 if (cam->user_format.pixelformat == V4L2_PIX_FMT_YUYV) in viacam_ctlr_image() 783 .pixelformat = V4L2_PIX_FMT_YUYV, 797 fmt->pixelformat = via_formats[fmt->index].pixelformat; in viacam_enum_fmt_vid_cap() 824 struct via_format *f = via_find_format(userfmt->pixelformat); in viacam_fmt_post() 828 userfmt->pixelformat = sensorfmt->pixelformat; in viacam_fmt_post() 850 struct via_format *f = via_find_format(upix->pixelformat); in viacam_do_try_fmt() [all …]
|
/drivers/media/common/saa7146/ |
D | saa7146_video.c | 23 .pixelformat = V4L2_PIX_FMT_RGB332, 28 .pixelformat = V4L2_PIX_FMT_RGB565, 33 .pixelformat = V4L2_PIX_FMT_BGR24, 38 .pixelformat = V4L2_PIX_FMT_BGR32, 43 .pixelformat = V4L2_PIX_FMT_RGB32, 49 .pixelformat = V4L2_PIX_FMT_GREY, 54 .pixelformat = V4L2_PIX_FMT_YUV422P, 59 .pixelformat = V4L2_PIX_FMT_YVU420, 64 .pixelformat = V4L2_PIX_FMT_YUV420, 69 .pixelformat = V4L2_PIX_FMT_UYVY, [all …]
|
/drivers/media/dvb-frontends/ |
D | rtl2832_sdr.c | 78 u32 pixelformat; member 84 .pixelformat = V4L2_SDR_FMT_CU8, 87 .pixelformat = V4L2_SDR_FMT_CU16LE, 137 u32 pixelformat; member 177 if (dev->pixelformat == V4L2_SDR_FMT_CU8) { in rtl2832_sdr_convert_stream() 181 } else if (dev->pixelformat == V4L2_SDR_FMT_CU16LE) { in rtl2832_sdr_convert_stream() 1117 f->pixelformat = formats[f->index].pixelformat; in rtl2832_sdr_enum_fmt_sdr_cap() 1130 f->fmt.sdr.pixelformat = dev->pixelformat; in rtl2832_sdr_g_fmt_sdr_cap() 1147 (char *)&f->fmt.sdr.pixelformat); in rtl2832_sdr_s_fmt_sdr_cap() 1154 if (formats[i].pixelformat == f->fmt.sdr.pixelformat) { in rtl2832_sdr_s_fmt_sdr_cap() [all …]
|
/drivers/media/platform/marvell-ccic/ |
D | mcam-core.c | 102 __u32 pixelformat; member 108 .pixelformat = V4L2_PIX_FMT_YUYV, 114 .pixelformat = V4L2_PIX_FMT_YVYU, 120 .pixelformat = V4L2_PIX_FMT_YUV420, 126 .pixelformat = V4L2_PIX_FMT_YVU420, 132 .pixelformat = V4L2_PIX_FMT_XRGB444, 138 .pixelformat = V4L2_PIX_FMT_RGB565, 144 .pixelformat = V4L2_PIX_FMT_SBGGR8, 152 static struct mcam_format_struct *mcam_find_format(u32 pixelformat) in mcam_find_format() argument 157 if (mcam_formats[i].pixelformat == pixelformat) in mcam_find_format() [all …]
|
/drivers/media/platform/omap/ |
D | omap_vout.c | 96 .pixelformat = V4L2_PIX_FMT_RGB565, 102 .pixelformat = V4L2_PIX_FMT_RGB32, 109 .pixelformat = V4L2_PIX_FMT_RGB24, 112 .pixelformat = V4L2_PIX_FMT_YUYV, 115 .pixelformat = V4L2_PIX_FMT_UYVY, 133 if (pix->pixelformat == omap_formats[ifmt].pixelformat) in omap_vout_try_format() 140 pix->pixelformat = omap_formats[ifmt].pixelformat; in omap_vout_try_format() 143 switch (pix->pixelformat) { in omap_vout_try_format() 215 if (V4L2_PIX_FMT_YUYV == pix->pixelformat || in omap_vout_calculate_offset() 216 V4L2_PIX_FMT_UYVY == pix->pixelformat) in omap_vout_calculate_offset() [all …]
|
/drivers/media/usb/hackrf/ |
D | hackrf.c | 73 u32 pixelformat; member 80 .pixelformat = V4L2_SDR_FMT_CS8, 148 u32 pixelformat; member 922 (char *)&f->fmt.sdr.pixelformat); in hackrf_s_fmt_sdr() 934 if (f->fmt.sdr.pixelformat == formats[i].pixelformat) { in hackrf_s_fmt_sdr() 935 dev->pixelformat = formats[i].pixelformat; in hackrf_s_fmt_sdr() 942 dev->pixelformat = formats[0].pixelformat; in hackrf_s_fmt_sdr() 944 f->fmt.sdr.pixelformat = formats[0].pixelformat; in hackrf_s_fmt_sdr() 956 (char *)&dev->pixelformat); in hackrf_g_fmt_sdr() 959 f->fmt.sdr.pixelformat = dev->pixelformat; in hackrf_g_fmt_sdr() [all …]
|
/drivers/staging/media/atomisp/pci/ |
D | atomisp_ioctl.c | 340 .pixelformat = V4L2_PIX_FMT_YUV420, 347 .pixelformat = V4L2_PIX_FMT_YVU420, 354 .pixelformat = V4L2_PIX_FMT_YUV422P, 361 .pixelformat = V4L2_PIX_FMT_YUV444, 367 .pixelformat = V4L2_PIX_FMT_NV12, 374 .pixelformat = V4L2_PIX_FMT_NV21, 381 .pixelformat = V4L2_PIX_FMT_NV16, 388 .pixelformat = V4L2_PIX_FMT_YUYV, 394 .pixelformat = V4L2_PIX_FMT_UYVY, 400 .pixelformat = V4L2_PIX_FMT_UYVY, [all …]
|
/drivers/media/platform/sti/bdisp/ |
D | bdisp-v4l2.c | 48 .pixelformat = V4L2_PIX_FMT_ABGR32, /* is actually ARGB */ 57 .pixelformat = V4L2_PIX_FMT_XBGR32, /* is actually xRGB */ 66 .pixelformat = V4L2_PIX_FMT_RGB565, 75 .pixelformat = V4L2_PIX_FMT_NV12, 84 .pixelformat = V4L2_PIX_FMT_RGB24, 95 .pixelformat = V4L2_PIX_FMT_YUV420, 150 static const struct bdisp_fmt *bdisp_find_fmt(u32 pixelformat) in bdisp_find_fmt() argument 157 if (fmt->pixelformat == pixelformat) in bdisp_find_fmt() 707 if ((fmt->pixelformat == V4L2_PIX_FMT_YUV420) && in bdisp_enum_fmt() 712 f->pixelformat = fmt->pixelformat; in bdisp_enum_fmt() [all …]
|
/drivers/media/test-drivers/vicodec/ |
D | vicodec-core.c | 734 f->pixelformat = info->id; in enum_fmt() 738 f->pixelformat = ctx->is_stateless ? in enum_fmt() 787 pix->pixelformat = info->id; in vidioc_g_fmt() 805 pix_mp->pixelformat = info->id; in vidioc_g_fmt() 848 if (pix->pixelformat != V4L2_PIX_FMT_FWHT && in vidioc_try_fmt() 849 pix->pixelformat != V4L2_PIX_FMT_FWHT_STATELESS) in vidioc_try_fmt() 850 info = find_fmt(pix->pixelformat); in vidioc_try_fmt() 863 if (pix->pixelformat == V4L2_PIX_FMT_FWHT) in vidioc_try_fmt() 870 if (pix_mp->pixelformat != V4L2_PIX_FMT_FWHT && in vidioc_try_fmt() 871 pix_mp->pixelformat != V4L2_PIX_FMT_FWHT_STATELESS) in vidioc_try_fmt() [all …]
|
/drivers/media/pci/cx18/ |
D | cx18-streams.c | 106 u32 pixelformat, in cx18_prepare_buffer() argument 125 buf->vb.field != field || s->pixelformat != pixelformat || in cx18_prepare_buffer() 132 s->pixelformat = pixelformat; in cx18_prepare_buffer() 136 if (s->pixelformat == V4L2_PIX_FMT_HM12) in cx18_prepare_buffer() 154 s->pixelformat = pixelformat; in cx18_prepare_buffer() 158 if (s->pixelformat == V4L2_PIX_FMT_HM12) in cx18_prepare_buffer() 209 return cx18_prepare_buffer(q, s, buf, s->pixelformat, in buffer_prepare() 290 s->pixelformat = V4L2_PIX_FMT_HM12; in cx18_stream_init() 736 if (s->pixelformat == V4L2_PIX_FMT_HM12) in cx18_stream_configure_mdls() 892 if (s->pixelformat == V4L2_PIX_FMT_UYVY) in cx18_start_v4l2_encode_stream()
|
/drivers/media/platform/mtk-mdp/ |
D | mtk_mdp_m2m.c | 50 .pixelformat = V4L2_PIX_FMT_MT21C, 58 .pixelformat = V4L2_PIX_FMT_NV12M, 66 .pixelformat = V4L2_PIX_FMT_YUV420M, 74 .pixelformat = V4L2_PIX_FMT_YVU420, 118 static const struct mtk_mdp_fmt *mtk_mdp_find_fmt(u32 pixelformat, u32 type) in mtk_mdp_find_fmt() argument 128 if (mtk_mdp_formats[i].pixelformat == pixelformat) in mtk_mdp_find_fmt() 184 fmt = mtk_mdp_find_fmt(pix_mp->pixelformat, f->type); in mtk_mdp_try_fmt_mplane() 190 pix_mp->pixelformat); in mtk_mdp_try_fmt_mplane() 195 pix_mp->pixelformat = fmt->pixelformat; in mtk_mdp_try_fmt_mplane() 442 if (frame->fmt->pixelformat == V4L2_PIX_FMT_YVU420) { in mtk_mdp_prepare_addr() [all …]
|