Home
last modified time | relevance | path

Searched refs:pixfmt (Results 1 – 25 of 33) sorted by relevance

12

/drivers/media/platform/davinci/
Dvpbe_osd.c119 #define is_rgb_pixfmt(pixfmt) \ argument
120 (((pixfmt) == PIXFMT_RGB565) || ((pixfmt) == PIXFMT_RGB888))
121 #define is_yc_pixfmt(pixfmt) \ argument
122 (((pixfmt) == PIXFMT_YCbCrI) || ((pixfmt) == PIXFMT_YCrCbI) || \
123 ((pixfmt) == PIXFMT_NV12))
215 enum osd_pix_format pixfmt) in _osd_set_palette_map() argument
224 switch (pixfmt) { in _osd_set_palette_map()
331 enum osd_pix_format pixfmt) in _osd_enable_color_key() argument
333 switch (pixfmt) { in _osd_enable_color_key()
552 if (cfg->pixfmt != PIXFMT_OSD_ATTR) in osd_enable_layer()
[all …]
Dvpbe_display.c447 if (cfg->pixfmt == PIXFMT_NV12) { in vpbe_set_osd_display_params()
469 struct v4l2_pix_format *pixfmt = &layer->pix_fmt; in vpbe_disp_calculate_scale_factor() local
497 cfg->xsize = pixfmt->width; in vpbe_disp_calculate_scale_factor()
498 cfg->ysize = pixfmt->height; in vpbe_disp_calculate_scale_factor()
504 if (pixfmt->width < expected_xsize) { in vpbe_disp_calculate_scale_factor()
505 h_scale = vpbe_dev->current_timings.xres / pixfmt->width; in vpbe_disp_calculate_scale_factor()
536 if (pixfmt->height < expected_ysize) { in vpbe_disp_calculate_scale_factor()
537 v_scale = expected_ysize / pixfmt->height; in vpbe_disp_calculate_scale_factor()
614 struct v4l2_pix_format *pixfmt, int check) in vpbe_try_format() argument
623 if ((pixfmt->pixelformat != V4L2_PIX_FMT_UYVY) && in vpbe_try_format()
[all …]
Dvpfe_capture.c815 struct v4l2_pix_format *pixfmt) in vpfe_check_format() argument
822 vpfe_pix_fmt = vpfe_lookup_pix_format(pixfmt->pixelformat); in vpfe_check_format()
828 pixfmt->pixelformat = vpfe_dev->fmt.fmt.pix.pixelformat; in vpfe_check_format()
829 vpfe_pix_fmt = vpfe_lookup_pix_format(pixfmt->pixelformat); in vpfe_check_format()
845 pixfmt->pixelformat = vpfe_dev->fmt.fmt.pix.pixelformat; in vpfe_check_format()
850 vpfe_pix_fmt = vpfe_lookup_pix_format(pixfmt->pixelformat); in vpfe_check_format()
854 if (pixfmt->field == V4L2_FIELD_ANY) { in vpfe_check_format()
856 pixfmt->field = vpfe_dev->fmt.fmt.pix.field; in vpfe_check_format()
863 if (vpfe_dev->fmt.fmt.pix.field != pixfmt->field) { in vpfe_check_format()
868 switch (pixfmt->field) { in vpfe_check_format()
[all …]
Ddm355_ccdc.c818 static int ccdc_set_pixel_format(u32 pixfmt) in ccdc_set_pixel_format() argument
824 if (pixfmt == V4L2_PIX_FMT_SBGGR8) in ccdc_set_pixel_format()
826 else if (pixfmt != V4L2_PIX_FMT_SBGGR16) in ccdc_set_pixel_format()
829 if (pixfmt == V4L2_PIX_FMT_YUYV) in ccdc_set_pixel_format()
831 else if (pixfmt == V4L2_PIX_FMT_UYVY) in ccdc_set_pixel_format()
841 u32 pixfmt; in ccdc_get_pixel_format() local
845 pixfmt = V4L2_PIX_FMT_SBGGR8; in ccdc_get_pixel_format()
847 pixfmt = V4L2_PIX_FMT_SBGGR16; in ccdc_get_pixel_format()
850 pixfmt = V4L2_PIX_FMT_YUYV; in ccdc_get_pixel_format()
852 pixfmt = V4L2_PIX_FMT_UYVY; in ccdc_get_pixel_format()
[all …]
Ddm644x_ccdc.c732 static int ccdc_set_pixel_format(u32 pixfmt) in ccdc_set_pixel_format() argument
736 if (pixfmt == V4L2_PIX_FMT_SBGGR8) in ccdc_set_pixel_format()
738 else if (pixfmt != V4L2_PIX_FMT_SBGGR16) in ccdc_set_pixel_format()
741 if (pixfmt == V4L2_PIX_FMT_YUYV) in ccdc_set_pixel_format()
743 else if (pixfmt == V4L2_PIX_FMT_UYVY) in ccdc_set_pixel_format()
754 u32 pixfmt; in ccdc_get_pixel_format() local
758 pixfmt = V4L2_PIX_FMT_SBGGR8; in ccdc_get_pixel_format()
760 pixfmt = V4L2_PIX_FMT_SBGGR16; in ccdc_get_pixel_format()
763 pixfmt = V4L2_PIX_FMT_YUYV; in ccdc_get_pixel_format()
765 pixfmt = V4L2_PIX_FMT_UYVY; in ccdc_get_pixel_format()
[all …]
Disif.c743 static int isif_set_pixel_format(unsigned int pixfmt) in isif_set_pixel_format() argument
746 if (pixfmt == V4L2_PIX_FMT_SBGGR8) { in isif_set_pixel_format()
756 } else if (pixfmt == V4L2_PIX_FMT_SBGGR16) { in isif_set_pixel_format()
764 if (pixfmt == V4L2_PIX_FMT_YUYV) in isif_set_pixel_format()
766 else if (pixfmt == V4L2_PIX_FMT_UYVY) in isif_set_pixel_format()
777 u32 pixfmt; in isif_get_pixel_format() local
782 pixfmt = V4L2_PIX_FMT_SBGGR8; in isif_get_pixel_format()
784 pixfmt = V4L2_PIX_FMT_SBGGR16; in isif_get_pixel_format()
787 pixfmt = V4L2_PIX_FMT_YUYV; in isif_get_pixel_format()
789 pixfmt = V4L2_PIX_FMT_UYVY; in isif_get_pixel_format()
[all …]
Dvpif_display.c642 struct v4l2_pix_format *pixfmt) in vpif_check_format() argument
645 enum v4l2_field field = pixfmt->field; in vpif_check_format()
648 if (pixfmt->pixelformat != V4L2_PIX_FMT_YUV422P) in vpif_check_format()
654 if (pixfmt->bytesperline <= 0) in vpif_check_format()
657 sizeimage = pixfmt->sizeimage; in vpif_check_format()
662 hpitch = pixfmt->bytesperline; in vpif_check_format()
675 pixfmt->width = common->fmt.fmt.pix.width; in vpif_check_format()
676 pixfmt->height = common->fmt.fmt.pix.height; in vpif_check_format()
895 struct v4l2_pix_format *pixfmt; in vpif_s_fmt_vid_out() local
919 pixfmt = &fmt->fmt.pix; in vpif_s_fmt_vid_out()
[all …]
Dvpif_capture.c718 struct v4l2_pix_format *pixfmt, in vpif_check_format() argument
723 enum v4l2_field field = pixfmt->field; in vpif_check_format()
734 if (pixfmt->pixelformat != V4L2_PIX_FMT_SBGGR8) { in vpif_check_format()
739 pixfmt->pixelformat = V4L2_PIX_FMT_SBGGR8; in vpif_check_format()
742 if (pixfmt->pixelformat != V4L2_PIX_FMT_YUV422P) { in vpif_check_format()
747 pixfmt->pixelformat = V4L2_PIX_FMT_YUV422P; in vpif_check_format()
766 hpitch = pixfmt->bytesperline; in vpif_check_format()
775 sizeimage = pixfmt->sizeimage; in vpif_check_format()
799 pixfmt->bytesperline = hpitch; in vpif_check_format()
800 pixfmt->sizeimage = hpitch * vpitch * 2; in vpif_check_format()
[all …]
Dccdc_hw_device.h75 int (*set_pixel_format) (u32 pixfmt);
/drivers/media/usb/pwc/
Dpwc-ctrl.c153 static int set_video_mode_Nala(struct pwc_device *pdev, int size, int pixfmt, in set_video_mode_Nala() argument
198 if (pEntry->compressed && pixfmt == V4L2_PIX_FMT_YUV420) in set_video_mode_Nala()
202 pdev->pixfmt = pixfmt; in set_video_mode_Nala()
228 static int set_video_mode_Timon(struct pwc_device *pdev, int size, int pixfmt, in set_video_mode_Timon() argument
261 if (pChoose->bandlength > 0 && pixfmt == V4L2_PIX_FMT_YUV420) in set_video_mode_Timon()
265 pdev->pixfmt = pixfmt; in set_video_mode_Timon()
279 static int set_video_mode_Kiara(struct pwc_device *pdev, int size, int pixfmt, in set_video_mode_Kiara() argument
311 if (pChoose->bandlength > 0 && pixfmt == V4L2_PIX_FMT_YUV420) in set_video_mode_Kiara()
315 pdev->pixfmt = pixfmt; in set_video_mode_Kiara()
331 int pixfmt, int frames, int *compression, int send_to_cam) in pwc_set_video_mode() argument
[all …]
Dpwc.h246 int pixfmt; /* pixelformat: V4L2_PIX_FMT_YUV420 or _PWCX */ member
367 int pixfmt, int frames, int *compression, int send_to_cam);
Dpwc-uncompress.c48 if (pdev->pixfmt != V4L2_PIX_FMT_YUV420) in pwc_decompress()
Dpwc-v4l.c399 int width, int height, u32 pixfmt) in pwc_vidioc_fill_fmt() argument
405 f->fmt.pix.pixelformat = pixfmt; in pwc_vidioc_fill_fmt()
489 pwc_vidioc_fill_fmt(f, pdev->width, pdev->height, pdev->pixfmt); in pwc_s_fmt_vid_cap()
914 pwc_vidioc_fill_fmt(f, pdev->width, pdev->height, pdev->pixfmt); in pwc_g_fmt_vid_cap()
1022 ret = pwc_set_video_mode(pdev, pdev->width, pdev->height, pdev->pixfmt, in pwc_s_parm()
/drivers/video/
Dgxt4500.c146 int pixfmt; /* pixel format, see DFA_PIX_* values */ member
298 par->pixfmt = DFA_PIX_32BIT; in gxt4500_var_to_par()
300 par->pixfmt = DFA_PIX_24BIT; in gxt4500_var_to_par()
303 par->pixfmt = DFA_PIX_24BIT; in gxt4500_var_to_par()
307 par->pixfmt = DFA_PIX_16BIT_1555; in gxt4500_var_to_par()
309 par->pixfmt = DFA_PIX_16BIT_565; in gxt4500_var_to_par()
312 par->pixfmt = DFA_PIX_8BIT; in gxt4500_var_to_par()
325 int pixfmt) in gxt4500_unpack_pixfmt() argument
327 var->bits_per_pixel = pixsize[pixfmt] * 8; in gxt4500_unpack_pixfmt()
333 switch (pixfmt) { in gxt4500_unpack_pixfmt()
[all …]
Dsh_mipi_dsi.c134 u32 pctype, datatype, pixfmt, linelength, vmctr2; in sh_mipi_setup() local
147 pixfmt = MIPI_DCS_PIXEL_FMT_24BIT; in sh_mipi_setup()
153 pixfmt = MIPI_DCS_PIXEL_FMT_16BIT; in sh_mipi_setup()
159 pixfmt = MIPI_DCS_PIXEL_FMT_24BIT; in sh_mipi_setup()
165 pixfmt = MIPI_DCS_PIXEL_FMT_18BIT; in sh_mipi_setup()
171 pixfmt = MIPI_DCS_PIXEL_FMT_24BIT; in sh_mipi_setup()
177 pixfmt = MIPI_DCS_PIXEL_FMT_16BIT; in sh_mipi_setup()
183 pixfmt = MIPI_DCS_PIXEL_FMT_24BIT; in sh_mipi_setup()
189 pixfmt = MIPI_DCS_PIXEL_FMT_18BIT; in sh_mipi_setup()
195 pixfmt = MIPI_DCS_PIXEL_FMT_16BIT; in sh_mipi_setup()
[all …]
Dmx3fb.c641 uint32_t pixfmt = 0; in bpp_to_pixfmt() local
644 pixfmt = IPU_PIX_FMT_BGR24; in bpp_to_pixfmt()
647 pixfmt = IPU_PIX_FMT_BGR32; in bpp_to_pixfmt()
650 pixfmt = IPU_PIX_FMT_RGB565; in bpp_to_pixfmt()
653 return pixfmt; in bpp_to_pixfmt()
/drivers/media/pci/ivtv/
Divtv-ioctl.c349 struct v4l2_pix_format *pixfmt = &fmt->fmt.pix; in ivtv_g_fmt_vid_cap() local
351 pixfmt->width = itv->cxhdl.width; in ivtv_g_fmt_vid_cap()
352 pixfmt->height = itv->cxhdl.height; in ivtv_g_fmt_vid_cap()
353 pixfmt->colorspace = V4L2_COLORSPACE_SMPTE170M; in ivtv_g_fmt_vid_cap()
354 pixfmt->field = V4L2_FIELD_INTERLACED; in ivtv_g_fmt_vid_cap()
355 pixfmt->priv = 0; in ivtv_g_fmt_vid_cap()
357 pixfmt->pixelformat = V4L2_PIX_FMT_HM12; in ivtv_g_fmt_vid_cap()
359 pixfmt->sizeimage = pixfmt->height * 720 * 3 / 2; in ivtv_g_fmt_vid_cap()
360 pixfmt->bytesperline = 720; in ivtv_g_fmt_vid_cap()
362 pixfmt->pixelformat = V4L2_PIX_FMT_MPEG; in ivtv_g_fmt_vid_cap()
[all …]
/drivers/media/platform/blackfin/
Dbfin_capture.c738 struct v4l2_pix_format *pixfmt, in bcap_try_format() argument
748 if (pixfmt->pixelformat == fmt->pixelformat) in bcap_try_format()
754 v4l2_fill_mbus_format(&mbus_fmt, pixfmt, fmt->mbus_code); in bcap_try_format()
759 v4l2_fill_pix_format(pixfmt, &mbus_fmt); in bcap_try_format()
768 pixfmt->bytesperline = pixfmt->width * fmt->bpp / 8; in bcap_try_format()
769 pixfmt->sizeimage = pixfmt->bytesperline * pixfmt->height; in bcap_try_format()
794 struct v4l2_pix_format *pixfmt = &fmt->fmt.pix; in bcap_try_fmt_vid_cap() local
796 return bcap_try_format(bcap_dev, pixfmt, NULL); in bcap_try_fmt_vid_cap()
814 struct v4l2_pix_format *pixfmt = &fmt->fmt.pix; in bcap_s_fmt_vid_cap() local
821 ret = bcap_try_format(bcap_dev, pixfmt, &bcap_fmt); in bcap_s_fmt_vid_cap()
[all …]
/drivers/media/pci/cx18/
Dcx18-ioctl.c154 struct v4l2_pix_format *pixfmt = &fmt->fmt.pix; in cx18_g_fmt_vid_cap() local
156 pixfmt->width = cx->cxhdl.width; in cx18_g_fmt_vid_cap()
157 pixfmt->height = cx->cxhdl.height; in cx18_g_fmt_vid_cap()
158 pixfmt->colorspace = V4L2_COLORSPACE_SMPTE170M; in cx18_g_fmt_vid_cap()
159 pixfmt->field = V4L2_FIELD_INTERLACED; in cx18_g_fmt_vid_cap()
160 pixfmt->priv = 0; in cx18_g_fmt_vid_cap()
162 pixfmt->pixelformat = s->pixelformat; in cx18_g_fmt_vid_cap()
163 pixfmt->sizeimage = s->vb_bytes_per_frame; in cx18_g_fmt_vid_cap()
164 pixfmt->bytesperline = 720; in cx18_g_fmt_vid_cap()
166 pixfmt->pixelformat = V4L2_PIX_FMT_MPEG; in cx18_g_fmt_vid_cap()
[all …]
/drivers/media/usb/gspca/
Dgspca.c67 __u32 pixfmt, int w, int h) in PDEBUG_MODE() argument
69 if ((pixfmt >> 24) >= '0' && (pixfmt >> 24) <= 'z') { in PDEBUG_MODE()
72 pixfmt & 0xff, in PDEBUG_MODE()
73 (pixfmt >> 8) & 0xff, in PDEBUG_MODE()
74 (pixfmt >> 16) & 0xff, in PDEBUG_MODE()
75 pixfmt >> 24, in PDEBUG_MODE()
80 pixfmt, in PDEBUG_MODE()
987 gspca_dev->pixfmt = gspca_dev->cam.cam_mode[i].pixelformat; in gspca_set_default_mode()
1011 int pixfmt) in gspca_get_mode() argument
1019 == pixfmt) in gspca_get_mode()
[all …]
/drivers/media/platform/soc_camera/
Dmx3_camera.c916 __u32 pixfmt = pix->pixelformat; in mx3_camera_try_fmt() local
919 xlate = soc_camera_xlate_by_fourcc(icd, pixfmt); in mx3_camera_try_fmt()
920 if (pixfmt && !xlate) { in mx3_camera_try_fmt()
921 dev_warn(icd->parent, "Format %x not found\n", pixfmt); in mx3_camera_try_fmt()
990 u32 pixfmt = icd->current_fmt->host_fmt->fourcc; in mx3_camera_set_bus_param() local
1003 xlate = soc_camera_xlate_by_fourcc(icd, pixfmt); in mx3_camera_set_bus_param()
1005 dev_warn(dev, "Format %x not found\n", pixfmt); in mx3_camera_set_bus_param()
Dsh_mobile_ceu_camera.c1728 __u32 pixfmt = pix->pixelformat; in sh_mobile_ceu_set_fmt() local
1751 xlate = soc_camera_xlate_by_fourcc(icd, pixfmt); in sh_mobile_ceu_set_fmt()
1753 dev_warn(dev, "Format %x not found\n", pixfmt); in sh_mobile_ceu_set_fmt()
1763 switch (pixfmt) { in sh_mobile_ceu_set_fmt()
1774 dev_geo(dev, "S_FMT(pix=0x%x, fld 0x%x, code 0x%x, %ux%u)\n", pixfmt, mf.field, mf.code, in sh_mobile_ceu_set_fmt()
1856 __u32 pixfmt = pix->pixelformat; in sh_mobile_ceu_try_fmt() local
1861 pixfmt, pix->width, pix->height); in sh_mobile_ceu_try_fmt()
1863 xlate = soc_camera_xlate_by_fourcc(icd, pixfmt); in sh_mobile_ceu_try_fmt()
1867 pixfmt, xlate->host_fmt->fourcc); in sh_mobile_ceu_try_fmt()
1868 pixfmt = xlate->host_fmt->fourcc; in sh_mobile_ceu_try_fmt()
[all …]
Dpxa_camera.c1032 unsigned long flags, __u32 pixfmt) in pxa_camera_setup_cicr() argument
1084 switch (pixfmt) { in pxa_camera_setup_cicr()
1133 u32 pixfmt = icd->current_fmt->host_fmt->fourcc; in pxa_camera_set_bus_param() local
1196 pxa_camera_setup_cicr(icd, common_flags, pixfmt); in pxa_camera_set_bus_param()
1489 __u32 pixfmt = pix->pixelformat; in pxa_camera_try_fmt() local
1492 xlate = soc_camera_xlate_by_fourcc(icd, pixfmt); in pxa_camera_try_fmt()
1494 dev_warn(icd->parent, "Format %x not found\n", pixfmt); in pxa_camera_try_fmt()
1506 pixfmt == V4L2_PIX_FMT_YUV422P ? 4 : 0); in pxa_camera_try_fmt()
Datmel-isi.c579 u32 pixfmt = pix->pixelformat; in isi_camera_try_fmt() local
582 xlate = soc_camera_xlate_by_fourcc(icd, pixfmt); in isi_camera_try_fmt()
583 if (pixfmt && !xlate) { in isi_camera_try_fmt()
584 dev_warn(icd->parent, "Format %x not found\n", pixfmt); in isi_camera_try_fmt()
/drivers/staging/media/davinci_vpfe/
Ddm365_isif.c154 isif_set_pixel_format(struct vpfe_isif_device *isif, unsigned int pixfmt) in isif_set_pixel_format() argument
157 if (pixfmt == V4L2_PIX_FMT_SBGGR16) in isif_set_pixel_format()
159 else if ((pixfmt == V4L2_PIX_FMT_SGRBG10DPCM8) || in isif_set_pixel_format()
160 (pixfmt == V4L2_PIX_FMT_SGRBG10ALAW8)) in isif_set_pixel_format()
166 isif->isif_cfg.bayer.v4l2_pix_fmt = pixfmt; in isif_set_pixel_format()
168 if (pixfmt == V4L2_PIX_FMT_YUYV) in isif_set_pixel_format()
170 else if (pixfmt == V4L2_PIX_FMT_UYVY) in isif_set_pixel_format()
176 isif->isif_cfg.ycbcr.v4l2_pix_fmt = pixfmt; in isif_set_pixel_format()

12