| /Linux-v5.4/include/media/ |
| D | v4l2-mediabus.h | 110 v4l2_fill_pix_format(struct v4l2_pix_format *pix_fmt, in v4l2_fill_pix_format() argument 113 pix_fmt->width = mbus_fmt->width; in v4l2_fill_pix_format() 114 pix_fmt->height = mbus_fmt->height; in v4l2_fill_pix_format() 115 pix_fmt->field = mbus_fmt->field; in v4l2_fill_pix_format() 116 pix_fmt->colorspace = mbus_fmt->colorspace; in v4l2_fill_pix_format() 117 pix_fmt->ycbcr_enc = mbus_fmt->ycbcr_enc; in v4l2_fill_pix_format() 118 pix_fmt->quantization = mbus_fmt->quantization; in v4l2_fill_pix_format() 119 pix_fmt->xfer_func = mbus_fmt->xfer_func; in v4l2_fill_pix_format() 132 const struct v4l2_pix_format *pix_fmt, in v4l2_fill_mbus_format() argument 135 mbus_fmt->width = pix_fmt->width; in v4l2_fill_mbus_format() [all …]
|
| /Linux-v5.4/drivers/staging/media/sunxi/cedrus/ |
| D | cedrus_video.c | 92 static void cedrus_prepare_format(struct v4l2_pix_format *pix_fmt) in cedrus_prepare_format() argument 94 unsigned int width = pix_fmt->width; in cedrus_prepare_format() 95 unsigned int height = pix_fmt->height; in cedrus_prepare_format() 96 unsigned int sizeimage = pix_fmt->sizeimage; in cedrus_prepare_format() 97 unsigned int bytesperline = pix_fmt->bytesperline; in cedrus_prepare_format() 99 pix_fmt->field = V4L2_FIELD_NONE; in cedrus_prepare_format() 105 switch (pix_fmt->pixelformat) { in cedrus_prepare_format() 144 pix_fmt->width = width; in cedrus_prepare_format() 145 pix_fmt->height = height; in cedrus_prepare_format() 147 pix_fmt->bytesperline = bytesperline; in cedrus_prepare_format() [all …]
|
| D | cedrus.h | 170 struct v4l2_pix_format *pix_fmt, in cedrus_buf_addr() argument 175 return addr + (pix_fmt ? (dma_addr_t)pix_fmt->bytesperline * in cedrus_buf_addr() 176 pix_fmt->height * plane : 0); in cedrus_buf_addr()
|
| /Linux-v5.4/drivers/staging/vc04_services/bcm2835-camera/ |
| D | bcm2835-camera.h | 124 #define v4l2_dump_pix_format(level, debug, dev, pix_fmt, desc) \ argument 129 (pix_fmt)->width, (pix_fmt)->height, (pix_fmt)->field, \ 130 (pix_fmt)->pixelformat, (pix_fmt)->bytesperline, \ 131 (pix_fmt)->sizeimage, (pix_fmt)->colorspace, (pix_fmt)->priv); \
|
| /Linux-v5.4/drivers/staging/media/hantro/ |
| D | hantro_h1_jpeg_enc.c | 21 struct v4l2_pix_format_mplane *pix_fmt = &ctx->src_fmt; in hantro_h1_set_src_img_ctrl() local 24 reg = H1_REG_IN_IMG_CTRL_ROW_LEN(pix_fmt->width) in hantro_h1_set_src_img_ctrl() 35 struct v4l2_pix_format_mplane *pix_fmt = &ctx->src_fmt; in hantro_h1_jpeg_enc_set_buffers() local 38 WARN_ON(pix_fmt->num_planes > 3); in hantro_h1_jpeg_enc_set_buffers() 45 if (pix_fmt->num_planes == 1) { in hantro_h1_jpeg_enc_set_buffers() 49 } else if (pix_fmt->num_planes == 2) { in hantro_h1_jpeg_enc_set_buffers()
|
| D | rk3399_vpu_hw_jpeg_enc.c | 39 struct v4l2_pix_format_mplane *pix_fmt = &ctx->src_fmt; in rk3399_vpu_set_src_img_ctrl() local 46 reg = VEPU_REG_IN_IMG_CTRL_ROW_LEN(pix_fmt->width); in rk3399_vpu_set_src_img_ctrl() 67 struct v4l2_pix_format_mplane *pix_fmt = &ctx->src_fmt; in rk3399_vpu_jpeg_enc_set_buffers() local 70 WARN_ON(pix_fmt->num_planes > 3); in rk3399_vpu_jpeg_enc_set_buffers() 77 if (pix_fmt->num_planes == 1) { in rk3399_vpu_jpeg_enc_set_buffers() 80 } else if (pix_fmt->num_planes == 2) { in rk3399_vpu_jpeg_enc_set_buffers()
|
| /Linux-v5.4/drivers/video/fbdev/ |
| D | pxa168fb.c | 97 static void set_pix_fmt(struct fb_var_screeninfo *var, int pix_fmt) in set_pix_fmt() argument 99 switch (pix_fmt) { in set_pix_fmt() 167 struct fb_videomode *mode, int pix_fmt, int ystretch) in set_mode() argument 171 set_pix_fmt(var, pix_fmt); in set_mode() 199 int pix_fmt; in pxa168fb_check_var() local 204 pix_fmt = determine_best_pix_fmt(var); in pxa168fb_check_var() 205 if (pix_fmt < 0) in pxa168fb_check_var() 206 return pix_fmt; in pxa168fb_check_var() 207 set_pix_fmt(var, pix_fmt); in pxa168fb_check_var() 208 fbi->pix_fmt = pix_fmt; in pxa168fb_check_var() [all …]
|
| D | fsl-diu-fb.c | 1154 ad->pix_fmt = diu_ops.get_pixel_format(data->monitor_port, in fsl_diu_set_par() 1157 ad->pix_fmt = fsl_diu_get_pixel_format(var->bits_per_pixel); in fsl_diu_set_par() 1274 __u32 pix_fmt; in fsl_diu_ioctl() local 1291 if (copy_from_user(&pix_fmt, buf, sizeof(pix_fmt))) in fsl_diu_ioctl() 1293 ad->pix_fmt = pix_fmt; in fsl_diu_ioctl() 1300 pix_fmt = ad->pix_fmt; in fsl_diu_ioctl() 1301 if (copy_to_user(buf, &pix_fmt, sizeof(pix_fmt))) in fsl_diu_ioctl() 1761 data->dummy_ad.pix_fmt = 0x88882317; in fsl_diu_probe()
|
| /Linux-v5.4/drivers/video/fbdev/mmp/fb/ |
| D | mmpfb.c | 100 static void pixfmt_to_var(struct fb_var_screeninfo *var, int pix_fmt) in pixfmt_to_var() argument 102 switch (pix_fmt) { in pixfmt_to_var() 354 int pix_fmt; in var_update() local 357 pix_fmt = var_to_pixfmt(var); in var_update() 358 if (pix_fmt < 0) in var_update() 360 pixfmt_to_var(var, pix_fmt); in var_update() 361 fbi->pix_fmt = pix_fmt; in var_update() 375 info->fix.visual = (pix_fmt == PIXFMT_PSEUDOCOLOR) ? in var_update() 392 win.pix_fmt = fbi->pix_fmt; in mmpfb_set_win() 393 stride = pixfmt_to_stride(win.pix_fmt); in mmpfb_set_win() [all …]
|
| D | mmpfb.h | 25 int pix_fmt; member
|
| /Linux-v5.4/drivers/input/touchscreen/ |
| D | sur40.c | 214 struct v4l2_pix_format pix_fmt; member 574 if (le32_to_cpu(img->size) != sur40->pix_fmt.sizeimage) { in sur40_process_video() 585 sgt->sgl, sgt->nents, sur40->pix_fmt.sizeimage, 0); in sur40_process_video() 743 sur40->pix_fmt = sur40_pix_format[0]; in sur40_probe() 842 return sizes[0] < sur40->pix_fmt.sizeimage ? -EINVAL : 0; in sur40_queue_setup() 845 sizes[0] = sur40->pix_fmt.sizeimage; in sur40_queue_setup() 857 unsigned long size = sur40->pix_fmt.sizeimage; in sur40_buffer_prepare() 981 sur40->pix_fmt = sur40_pix_format[1]; in sur40_vidioc_s_fmt() 985 sur40->pix_fmt = sur40_pix_format[0]; in sur40_vidioc_s_fmt() 989 f->fmt.pix = sur40->pix_fmt; in sur40_vidioc_s_fmt() [all …]
|
| /Linux-v5.4/drivers/media/platform/davinci/ |
| D | isif.c | 83 .pix_fmt = CCDC_PIXFMT_YCBCR_8BIT, 93 .pix_fmt = CCDC_PIXFMT_RAW, 573 (params->pix_fmt << ISIF_INPUT_SHIFT) | in isif_config_raw() 747 isif_cfg.bayer.pix_fmt = CCDC_PIXFMT_RAW; in isif_set_pixel_format() 855 isif_cfg.ycbcr.pix_fmt = CCDC_PIXFMT_YCBCR_8BIT; in isif_set_hw_if_params() 860 isif_cfg.ycbcr.pix_fmt = CCDC_PIXFMT_YCBCR_16BIT; in isif_set_hw_if_params() 864 isif_cfg.bayer.pix_fmt = CCDC_PIXFMT_RAW; in isif_set_hw_if_params() 883 modeset = modeset | (params->pix_fmt << ISIF_INPUT_SHIFT) | in isif_config_ycbcr() 892 if (params->pix_fmt != CCDC_PIXFMT_YCBCR_8BIT) { in isif_config_ycbcr() 901 if (params->pix_fmt != CCDC_PIXFMT_YCBCR_8BIT) { in isif_config_ycbcr() [all …]
|
| D | vpif_capture.c | 997 struct v4l2_pix_format *pix_fmt = &fmt->fmt.pix; in vpif_g_fmt_vid_cap() local 1014 v4l2_fill_pix_format(pix_fmt, mbus_fmt); in vpif_g_fmt_vid_cap() 1015 pix_fmt->bytesperline = pix_fmt->width; in vpif_g_fmt_vid_cap() 1018 pix_fmt->pixelformat = V4L2_PIX_FMT_SGRBG10; in vpif_g_fmt_vid_cap() 1019 pix_fmt->bytesperline = pix_fmt->width * 2; in vpif_g_fmt_vid_cap() 1022 pix_fmt->pixelformat = V4L2_PIX_FMT_NV16; in vpif_g_fmt_vid_cap() 1023 pix_fmt->bytesperline = pix_fmt->width * 2; in vpif_g_fmt_vid_cap() 1028 pix_fmt->sizeimage = pix_fmt->bytesperline * pix_fmt->height; in vpif_g_fmt_vid_cap() 1030 pix_fmt->width, pix_fmt->height, in vpif_g_fmt_vid_cap() 1031 pix_fmt->bytesperline, pix_fmt->pixelformat, in vpif_g_fmt_vid_cap() [all …]
|
| D | dm355_ccdc.c | 48 .pix_fmt = CCDC_PIXFMT_RAW, 88 .pix_fmt = CCDC_PIXFMT_YCBCR_8BIT, 260 temp = (((params->pix_fmt & CCDC_INPUT_MODE_MASK) << in ccdc_config_ycbcr() 548 ((params->pix_fmt & CCDC_PIX_FMT_MASK) << CCDC_PIX_FMT_SHIFT)); in ccdc_config_raw() 721 ccdc_cfg.bayer.pix_fmt = CCDC_PIXFMT_RAW; in ccdc_set_pixel_format()
|
| D | dm644x_ccdc.c | 50 .pix_fmt = CCDC_PIXFMT_RAW, 61 .pix_fmt = CCDC_PIXFMT_YCBCR_8BIT, 263 syn_mode = (((params->pix_fmt & CCDC_SYN_MODE_INPMOD_MASK) << in ccdc_config_ycbcr() 402 ((params->pix_fmt & CCDC_PIX_FMT_MASK) << CCDC_PIX_FMT_SHIFT) | in ccdc_config_raw() 573 ccdc_cfg.bayer.pix_fmt = CCDC_PIXFMT_RAW; in ccdc_set_pixel_format()
|
| /Linux-v5.4/include/video/ |
| D | pxa168fb.h | 71 int pix_fmt; member 89 unsigned pix_fmt; member
|
| D | mmp_disp.h | 36 static inline int pixfmt_to_stride(int pix_fmt) in pixfmt_to_stride() argument 38 switch (pix_fmt) { in pixfmt_to_stride() 80 int pix_fmt; member
|
| /Linux-v5.4/include/media/davinci/ |
| D | dm644x_ccdc.h | 128 enum ccdc_pixfmt pix_fmt; member 152 enum ccdc_pixfmt pix_fmt; member
|
| D | dm355_ccdc.h | 249 enum ccdc_pixfmt pix_fmt; member 279 enum ccdc_pixfmt pix_fmt; member
|
| D | isif.h | 443 enum ccdc_pixfmt pix_fmt; member 480 enum ccdc_pixfmt pix_fmt; member
|
| D | vpbe_display.h | 84 struct v4l2_pix_format pix_fmt; member
|
| /Linux-v5.4/drivers/media/platform/am437x/ |
| D | am437x-vpfe.h | 145 enum ccdc_pixfmt pix_fmt; member 174 enum ccdc_pixfmt pix_fmt; member
|
| /Linux-v5.4/drivers/media/platform/ |
| D | aspeed-video.c | 215 struct v4l2_pix_format pix_fmt; member 949 video->pix_fmt.width = video->active_timings.width; in aspeed_video_start() 950 video->pix_fmt.height = video->active_timings.height; in aspeed_video_start() 951 video->pix_fmt.sizeimage = video->max_compressed_size; in aspeed_video_start() 998 f->fmt.pix = video->pix_fmt; in aspeed_video_get_format() 1089 fsize->discrete.width = video->pix_fmt.width; in aspeed_video_enum_framesizes() 1090 fsize->discrete.height = video->pix_fmt.height; in aspeed_video_enum_framesizes() 1138 video->pix_fmt.width = timings->bt.width; in aspeed_video_set_dv_timings() 1139 video->pix_fmt.height = timings->bt.height; in aspeed_video_set_dv_timings() 1140 video->pix_fmt.sizeimage = video->max_compressed_size; in aspeed_video_set_dv_timings() [all …]
|
| /Linux-v5.4/arch/powerpc/platforms/512x/ |
| D | mpc512x_shared.c | 223 unsigned long mode, pix_fmt, res, bpp; in mpc512x_init_diu() local 257 pix_fmt = in_le32(vaddr); in mpc512x_init_diu() 258 bpp = ((pix_fmt >> 16) & 0x3) + 1; in mpc512x_init_diu()
|
| /Linux-v5.4/drivers/video/fbdev/mmp/hw/ |
| D | mmp_ctrl.c | 48 static u32 fmt_to_reg(struct mmp_overlay *overlay, int pix_fmt) in fmt_to_reg() argument 54 switch (pix_fmt) { in fmt_to_reg() 74 switch (pix_fmt) { in fmt_to_reg() 125 tmp |= fmt_to_reg(overlay, overlay->win.pix_fmt); in dmafetch_set_fmt()
|