Home
last modified time | relevance | path

Searched refs:pix_fmt (Results 1 – 25 of 41) sorted by relevance

12

/kernel/linux/linux-5.10/include/media/
Dv4l2-mediabus.h137 v4l2_fill_pix_format(struct v4l2_pix_format *pix_fmt, in v4l2_fill_pix_format() argument
140 pix_fmt->width = mbus_fmt->width; in v4l2_fill_pix_format()
141 pix_fmt->height = mbus_fmt->height; in v4l2_fill_pix_format()
142 pix_fmt->field = mbus_fmt->field; in v4l2_fill_pix_format()
143 pix_fmt->colorspace = mbus_fmt->colorspace; in v4l2_fill_pix_format()
144 pix_fmt->ycbcr_enc = mbus_fmt->ycbcr_enc; in v4l2_fill_pix_format()
145 pix_fmt->quantization = mbus_fmt->quantization; in v4l2_fill_pix_format()
146 pix_fmt->xfer_func = mbus_fmt->xfer_func; in v4l2_fill_pix_format()
159 const struct v4l2_pix_format *pix_fmt, in v4l2_fill_mbus_format() argument
162 mbus_fmt->width = pix_fmt->width; in v4l2_fill_mbus_format()
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/sunxi/cedrus/
Dcedrus_video.c96 void cedrus_prepare_format(struct v4l2_pix_format *pix_fmt) in cedrus_prepare_format() argument
98 unsigned int width = pix_fmt->width; in cedrus_prepare_format()
99 unsigned int height = pix_fmt->height; in cedrus_prepare_format()
100 unsigned int sizeimage = pix_fmt->sizeimage; in cedrus_prepare_format()
101 unsigned int bytesperline = pix_fmt->bytesperline; in cedrus_prepare_format()
103 pix_fmt->field = V4L2_FIELD_NONE; in cedrus_prepare_format()
109 switch (pix_fmt->pixelformat) { in cedrus_prepare_format()
150 pix_fmt->width = width; in cedrus_prepare_format()
151 pix_fmt->height = height; in cedrus_prepare_format()
153 pix_fmt->bytesperline = bytesperline; in cedrus_prepare_format()
[all …]
Dcedrus.h196 struct v4l2_pix_format *pix_fmt, in cedrus_buf_addr() argument
201 return addr + (pix_fmt ? (dma_addr_t)pix_fmt->bytesperline * in cedrus_buf_addr()
202 pix_fmt->height * plane : 0); in cedrus_buf_addr()
Dcedrus_video.h29 void cedrus_prepare_format(struct v4l2_pix_format *pix_fmt);
/kernel/linux/linux-5.10/drivers/staging/vc04_services/bcm2835-camera/
Dbcm2835-camera.h122 #define v4l2_dump_pix_format(level, debug, dev, pix_fmt, desc) \ argument
127 (pix_fmt)->width, (pix_fmt)->height, (pix_fmt)->field, \
128 (pix_fmt)->pixelformat, (pix_fmt)->bytesperline, \
129 (pix_fmt)->sizeimage, (pix_fmt)->colorspace, (pix_fmt)->priv); \
/kernel/linux/linux-5.10/drivers/staging/media/hantro/
Drk3399_vpu_hw_jpeg_enc.c38 struct v4l2_pix_format_mplane *pix_fmt = &ctx->src_fmt; in rk3399_vpu_set_src_img_ctrl() local
45 reg = VEPU_REG_IN_IMG_CTRL_ROW_LEN(pix_fmt->width); in rk3399_vpu_set_src_img_ctrl()
66 struct v4l2_pix_format_mplane *pix_fmt = &ctx->src_fmt; in rk3399_vpu_jpeg_enc_set_buffers() local
69 WARN_ON(pix_fmt->num_planes > 3); in rk3399_vpu_jpeg_enc_set_buffers()
76 if (pix_fmt->num_planes == 1) { in rk3399_vpu_jpeg_enc_set_buffers()
79 } else if (pix_fmt->num_planes == 2) { in rk3399_vpu_jpeg_enc_set_buffers()
Dhantro_h1_jpeg_enc.c21 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()
/kernel/linux/linux-5.10/drivers/media/platform/sunxi/sun8i-rotate/
Dsun8i_rotate.c176 static void rotate_prepare_format(struct v4l2_pix_format *pix_fmt) in rotate_prepare_format() argument
182 fmt = rotate_find_format(pix_fmt->pixelformat); in rotate_prepare_format()
186 width = ALIGN(pix_fmt->width, fmt->hsub); in rotate_prepare_format()
187 height = ALIGN(pix_fmt->height, fmt->vsub); in rotate_prepare_format()
206 pix_fmt->width = width; in rotate_prepare_format()
207 pix_fmt->height = height; in rotate_prepare_format()
208 pix_fmt->bytesperline = bpl; in rotate_prepare_format()
209 pix_fmt->sizeimage = sizeimage; in rotate_prepare_format()
429 struct v4l2_pix_format *pix_fmt; in rotate_queue_setup() local
432 pix_fmt = &ctx->src_fmt; in rotate_queue_setup()
[all …]
/kernel/linux/linux-5.10/drivers/video/fbdev/
Dpxa168fb.c93 static void set_pix_fmt(struct fb_var_screeninfo *var, int pix_fmt) in set_pix_fmt() argument
95 switch (pix_fmt) { in set_pix_fmt()
163 struct fb_videomode *mode, int pix_fmt, int ystretch) in set_mode() argument
167 set_pix_fmt(var, pix_fmt); in set_mode()
195 int pix_fmt; in pxa168fb_check_var() local
200 pix_fmt = determine_best_pix_fmt(var); in pxa168fb_check_var()
201 if (pix_fmt < 0) in pxa168fb_check_var()
202 return pix_fmt; in pxa168fb_check_var()
203 set_pix_fmt(var, pix_fmt); in pxa168fb_check_var()
204 fbi->pix_fmt = pix_fmt; in pxa168fb_check_var()
[all …]
Dfsl-diu-fb.c1154 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
1292 if (copy_from_user(&pix_fmt, buf, sizeof(pix_fmt))) in fsl_diu_ioctl()
1294 ad->pix_fmt = pix_fmt; in fsl_diu_ioctl()
1302 pix_fmt = ad->pix_fmt; in fsl_diu_ioctl()
1303 if (copy_to_user(buf, &pix_fmt, sizeof(pix_fmt))) in fsl_diu_ioctl()
1763 data->dummy_ad.pix_fmt = 0x88882317; in fsl_diu_probe()
/kernel/linux/linux-5.10/drivers/video/fbdev/mmp/fb/
Dmmpfb.c98 static void pixfmt_to_var(struct fb_var_screeninfo *var, int pix_fmt) in pixfmt_to_var() argument
100 switch (pix_fmt) { in pixfmt_to_var()
352 int pix_fmt; in var_update() local
355 pix_fmt = var_to_pixfmt(var); in var_update()
356 if (pix_fmt < 0) in var_update()
358 pixfmt_to_var(var, pix_fmt); in var_update()
359 fbi->pix_fmt = pix_fmt; in var_update()
373 info->fix.visual = (pix_fmt == PIXFMT_PSEUDOCOLOR) ? in var_update()
390 win.pix_fmt = fbi->pix_fmt; in mmpfb_set_win()
391 stride = pixfmt_to_stride(win.pix_fmt); in mmpfb_set_win()
[all …]
Dmmpfb.h25 int pix_fmt; member
/kernel/linux/linux-5.10/drivers/media/platform/sunxi/sun8i-di/
Dsun8i-di.c326 static void deinterlace_prepare_format(struct v4l2_pix_format *pix_fmt) in deinterlace_prepare_format() argument
328 unsigned int height = pix_fmt->height; in deinterlace_prepare_format()
329 unsigned int width = pix_fmt->width; in deinterlace_prepare_format()
344 pix_fmt->width = width; in deinterlace_prepare_format()
345 pix_fmt->height = height; in deinterlace_prepare_format()
346 pix_fmt->bytesperline = bytesperline; in deinterlace_prepare_format()
347 pix_fmt->sizeimage = sizeimage; in deinterlace_prepare_format()
521 struct v4l2_pix_format *pix_fmt; in deinterlace_queue_setup() local
524 pix_fmt = &ctx->src_fmt; in deinterlace_queue_setup()
526 pix_fmt = &ctx->dst_fmt; in deinterlace_queue_setup()
[all …]
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Dsur40.c214 struct v4l2_pix_format pix_fmt; member
575 if (le32_to_cpu(img->size) != sur40->pix_fmt.sizeimage) { in sur40_process_video()
586 sgt->sgl, sgt->nents, sur40->pix_fmt.sizeimage, 0); in sur40_process_video()
756 sur40->pix_fmt = sur40_pix_format[0]; in sur40_probe()
855 return sizes[0] < sur40->pix_fmt.sizeimage ? -EINVAL : 0; in sur40_queue_setup()
858 sizes[0] = sur40->pix_fmt.sizeimage; in sur40_queue_setup()
870 unsigned long size = sur40->pix_fmt.sizeimage; in sur40_buffer_prepare()
994 sur40->pix_fmt = sur40_pix_format[1]; in sur40_vidioc_s_fmt()
998 sur40->pix_fmt = sur40_pix_format[0]; in sur40_vidioc_s_fmt()
1002 f->fmt.pix = sur40->pix_fmt; in sur40_vidioc_s_fmt()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/imx/dcss/
Ddcss-plane.c127 static bool dcss_plane_is_source_size_allowed(u16 src_w, u16 src_h, u32 pix_fmt) in dcss_plane_is_source_size_allowed() argument
130 (pix_fmt == DRM_FORMAT_NV12 || pix_fmt == DRM_FORMAT_NV21)) in dcss_plane_is_source_size_allowed()
133 (pix_fmt == DRM_FORMAT_UYVY || pix_fmt == DRM_FORMAT_VYUY || in dcss_plane_is_source_size_allowed()
134 pix_fmt == DRM_FORMAT_YUYV || pix_fmt == DRM_FORMAT_YVYU)) in dcss_plane_is_source_size_allowed()
/kernel/linux/linux-5.10/drivers/media/platform/davinci/
Disif.c83 .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 …]
Dvpif_capture.c997 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 …]
Ddm355_ccdc.c48 .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()
/kernel/linux/linux-5.10/include/video/
Dpxa168fb.h71 int pix_fmt; member
89 unsigned pix_fmt; member
Dmmp_disp.h36 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
/kernel/linux/linux-5.10/include/media/davinci/
Ddm644x_ccdc.h128 enum ccdc_pixfmt pix_fmt; member
152 enum ccdc_pixfmt pix_fmt; member
Ddm355_ccdc.h249 enum ccdc_pixfmt pix_fmt; member
279 enum ccdc_pixfmt pix_fmt; member
/kernel/linux/linux-5.10/drivers/media/platform/am437x/
Dam437x-vpfe.h134 enum ccdc_pixfmt pix_fmt; member
163 enum ccdc_pixfmt pix_fmt; member
/kernel/linux/linux-5.10/drivers/media/platform/
Daspeed-video.c217 struct v4l2_pix_format pix_fmt; member
988 video->pix_fmt.width = video->active_timings.width; in aspeed_video_start()
989 video->pix_fmt.height = video->active_timings.height; in aspeed_video_start()
990 video->pix_fmt.sizeimage = video->max_compressed_size; in aspeed_video_start()
1037 f->fmt.pix = video->pix_fmt; in aspeed_video_get_format()
1128 fsize->discrete.width = video->pix_fmt.width; in aspeed_video_enum_framesizes()
1129 fsize->discrete.height = video->pix_fmt.height; in aspeed_video_enum_framesizes()
1177 video->pix_fmt.width = timings->bt.width; in aspeed_video_set_dv_timings()
1178 video->pix_fmt.height = timings->bt.height; in aspeed_video_set_dv_timings()
1179 video->pix_fmt.sizeimage = video->max_compressed_size; in aspeed_video_set_dv_timings()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/platforms/512x/
Dmpc512x_shared.c223 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()

12