/linux-6.3-rc2/include/media/ |
A D | v4l2-mediabus.h | 183 pix_fmt->width = mbus_fmt->width; in v4l2_fill_pix_format() 184 pix_fmt->height = mbus_fmt->height; in v4l2_fill_pix_format() 185 pix_fmt->field = mbus_fmt->field; in v4l2_fill_pix_format() 186 pix_fmt->colorspace = mbus_fmt->colorspace; in v4l2_fill_pix_format() 187 pix_fmt->ycbcr_enc = mbus_fmt->ycbcr_enc; in v4l2_fill_pix_format() 189 pix_fmt->xfer_func = mbus_fmt->xfer_func; in v4l2_fill_pix_format() 205 mbus_fmt->width = pix_fmt->width; in v4l2_fill_mbus_format() 206 mbus_fmt->height = pix_fmt->height; in v4l2_fill_mbus_format() 207 mbus_fmt->field = pix_fmt->field; in v4l2_fill_mbus_format() 209 mbus_fmt->ycbcr_enc = pix_fmt->ycbcr_enc; in v4l2_fill_mbus_format() [all …]
|
/linux-6.3-rc2/drivers/staging/media/sunxi/cedrus/ |
A D | cedrus_video.c | 116 switch (pix_fmt->pixelformat) { in cedrus_prepare_format() 158 pix_fmt->width = width; in cedrus_prepare_format() 159 pix_fmt->height = height; in cedrus_prepare_format() 162 pix_fmt->sizeimage = sizeimage; in cedrus_prepare_format() 251 cedrus_prepare_format(pix_fmt); in cedrus_try_fmt_vid_cap_p() 254 pix_fmt->sizeimage += in cedrus_try_fmt_vid_cap_p() 324 ctx->src_fmt = *pix_fmt; in cedrus_s_fmt_vid_out_p() 439 pix_fmt = &ctx->src_fmt; in cedrus_queue_setup() 441 pix_fmt = &ctx->dst_fmt; in cedrus_queue_setup() 489 pix_fmt = &ctx->src_fmt; in cedrus_buf_prepare() [all …]
|
A D | cedrus.h | 167 struct v4l2_pix_format *pix_fmt); 224 struct v4l2_pix_format *pix_fmt, in cedrus_buf_addr() argument 229 return addr + (pix_fmt ? (dma_addr_t)pix_fmt->bytesperline * in cedrus_buf_addr() 230 pix_fmt->height * plane : 0); in cedrus_buf_addr()
|
A D | cedrus_video.h | 29 void cedrus_prepare_format(struct v4l2_pix_format *pix_fmt);
|
/linux-6.3-rc2/drivers/staging/vc04_services/bcm2835-camera/ |
A D | bcm2835-camera.h | 120 #define v4l2_dump_pix_format(level, debug, dev, pix_fmt, desc) \ argument 125 (pix_fmt)->width, (pix_fmt)->height, (pix_fmt)->field, \ 126 (pix_fmt)->pixelformat, (pix_fmt)->bytesperline, \ 127 (pix_fmt)->sizeimage, (pix_fmt)->colorspace, (pix_fmt)->priv); \
|
/linux-6.3-rc2/drivers/media/platform/nxp/dw100/ |
A D | dw100.c | 617 pix_fmt = &ctx->q_data[DW100_QUEUE_SRC].pix_fmt; in dw100_open() 620 pix_fmt->xfer_func = V4L2_MAP_XFER_FUNC_DEFAULT(pix_fmt->colorspace); in dw100_open() 621 pix_fmt->ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(pix_fmt->colorspace); in dw100_open() 622 pix_fmt->quantization = in dw100_open() 624 pix_fmt->ycbcr_enc); in dw100_open() 835 dst_q_data->pix_fmt.colorspace = q_data->pix_fmt.colorspace; in dw100_s_fmt() 836 dst_q_data->pix_fmt.ycbcr_enc = q_data->pix_fmt.ycbcr_enc; in dw100_s_fmt() 837 dst_q_data->pix_fmt.quantization = q_data->pix_fmt.quantization; in dw100_s_fmt() 838 dst_q_data->pix_fmt.xfer_func = q_data->pix_fmt.xfer_func; in dw100_s_fmt() 843 f->type, q_data->pix_fmt.width, q_data->pix_fmt.height, in dw100_s_fmt() [all …]
|
/linux-6.3-rc2/drivers/media/platform/amlogic/meson-ge2d/ |
A D | ge2d.c | 61 struct v4l2_pix_format pix_fmt; member 333 sizes[0] = f->pix_fmt.sizeimage; in ge2d_queue_setup() 497 s->r.width = f->pix_fmt.width; in vidioc_g_selection() 498 s->r.height = f->pix_fmt.height; in vidioc_g_selection() 564 *f = frm_out->pix_fmt; in vidioc_setup_cap_fmt() 567 f->width = frm_out->pix_fmt.height; in vidioc_setup_cap_fmt() 616 frm->pix_fmt = f->fmt.pix; in vidioc_s_fmt_cap() 641 f->fmt.pix = frm->pix_fmt; in vidioc_g_fmt() 692 frm->pix_fmt = f->fmt.pix; in vidioc_s_fmt_out() 782 ctx->out.pix_fmt = fmt; in ge2d_s_ctrl() [all …]
|
/linux-6.3-rc2/drivers/media/platform/sunxi/sun8i-rotate/ |
A D | sun8i_rotate.c | 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() 434 pix_fmt = &ctx->dst_fmt; in rotate_queue_setup() 440 sizes[0] = pix_fmt->sizeimage; in rotate_queue_setup() 451 struct v4l2_pix_format *pix_fmt; in rotate_buf_prepare() local 454 pix_fmt = &ctx->src_fmt; in rotate_buf_prepare() [all …]
|
/linux-6.3-rc2/drivers/video/fbdev/ |
A D | pxa168fb.c | 95 switch (pix_fmt) { in set_pix_fmt() 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() 305 if (fbi->pix_fmt == PIX_FMT_PSEUDOCOLOR) in set_dma_control0() 312 x |= (fbi->pix_fmt >> 1) << 16; in set_dma_control0() [all …]
|
A 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 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() 1762 data->dummy_ad.pix_fmt = 0x88882317; in fsl_diu_probe()
|
/linux-6.3-rc2/drivers/video/fbdev/mmp/fb/ |
A D | mmpfb.c | 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() 562 fbi->pix_fmt = mi->default_pixfmt; in mmpfb_probe() [all …]
|
A D | mmpfb.h | 25 int pix_fmt; member
|
/linux-6.3-rc2/drivers/media/platform/sunxi/sun8i-di/ |
A D | sun8i-di.c | 344 pix_fmt->width = width; in deinterlace_prepare_format() 345 pix_fmt->height = height; 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() 529 if (sizes[0] < pix_fmt->sizeimage) in deinterlace_queue_setup() 532 sizes[0] = pix_fmt->sizeimage; in deinterlace_queue_setup() 543 struct v4l2_pix_format *pix_fmt; in deinterlace_buf_prepare() local 546 pix_fmt = &ctx->src_fmt; in deinterlace_buf_prepare() [all …]
|
/linux-6.3-rc2/drivers/media/platform/verisilicon/ |
A D | hantro_h1_jpeg_enc.c | 45 struct v4l2_pix_format_mplane *pix_fmt = &ctx->src_fmt; in hantro_h1_jpeg_enc_set_buffers() local 53 WARN_ON(pix_fmt->num_planes > 3); in hantro_h1_jpeg_enc_set_buffers() 60 if (pix_fmt->num_planes == 1) { in hantro_h1_jpeg_enc_set_buffers() 64 } else if (pix_fmt->num_planes == 2) { in hantro_h1_jpeg_enc_set_buffers()
|
A D | rockchip_vpu2_hw_jpeg_enc.c | 72 struct v4l2_pix_format_mplane *pix_fmt = &ctx->src_fmt; in rockchip_vpu2_jpeg_enc_set_buffers() local 80 WARN_ON(pix_fmt->num_planes > 3); in rockchip_vpu2_jpeg_enc_set_buffers() 87 if (pix_fmt->num_planes == 1) { in rockchip_vpu2_jpeg_enc_set_buffers() 90 } else if (pix_fmt->num_planes == 2) { in rockchip_vpu2_jpeg_enc_set_buffers()
|
/linux-6.3-rc2/drivers/input/touchscreen/ |
A D | sur40.c | 214 struct v4l2_pix_format pix_fmt; member 756 sur40->pix_fmt = sur40_pix_format[0]; in sur40_probe() 858 sizes[0] = sur40->pix_fmt.sizeimage; in sur40_queue_setup() 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() 1011 f->fmt.pix = sur40->pix_fmt; in sur40_vidioc_g_fmt() 1074 f->discrete.width = sur40->pix_fmt.width; in sur40_vidioc_enum_framesizes() 1075 f->discrete.height = sur40->pix_fmt.height; in sur40_vidioc_enum_framesizes() 1086 || (f->width != sur40->pix_fmt.width) in sur40_vidioc_enum_frameintervals() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/imx/dcss/ |
A D | dcss-plane.c | 128 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 131 (pix_fmt == DRM_FORMAT_NV12 || pix_fmt == DRM_FORMAT_NV21)) in dcss_plane_is_source_size_allowed() 134 (pix_fmt == DRM_FORMAT_UYVY || pix_fmt == DRM_FORMAT_VYUY || in dcss_plane_is_source_size_allowed() 135 pix_fmt == DRM_FORMAT_YUYV || pix_fmt == DRM_FORMAT_YVYU)) in dcss_plane_is_source_size_allowed()
|
/linux-6.3-rc2/include/video/ |
A D | pxa168fb.h | 71 int pix_fmt; member 89 unsigned pix_fmt; member
|
A 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-6.3-rc2/drivers/media/platform/ti/davinci/ |
A D | vpif_capture.c | 986 struct v4l2_pix_format *pix_fmt = &fmt->fmt.pix; in vpif_g_fmt_vid_cap() local 1003 v4l2_fill_pix_format(pix_fmt, mbus_fmt); in vpif_g_fmt_vid_cap() 1004 pix_fmt->bytesperline = pix_fmt->width; in vpif_g_fmt_vid_cap() 1007 pix_fmt->pixelformat = V4L2_PIX_FMT_SGRBG10; in vpif_g_fmt_vid_cap() 1008 pix_fmt->bytesperline = pix_fmt->width * 2; in vpif_g_fmt_vid_cap() 1011 pix_fmt->pixelformat = V4L2_PIX_FMT_NV16; in vpif_g_fmt_vid_cap() 1012 pix_fmt->bytesperline = pix_fmt->width * 2; in vpif_g_fmt_vid_cap() 1017 pix_fmt->sizeimage = pix_fmt->bytesperline * pix_fmt->height; in vpif_g_fmt_vid_cap() 1019 pix_fmt->width, pix_fmt->height, in vpif_g_fmt_vid_cap() 1020 pix_fmt->bytesperline, pix_fmt->pixelformat, in vpif_g_fmt_vid_cap() [all …]
|
/linux-6.3-rc2/drivers/media/platform/aspeed/ |
A D | aspeed-video.c | 294 struct v4l2_pix_format pix_fmt; member 1318 video->pix_fmt.width = video->active_timings.width; in aspeed_video_start() 1362 f->pixelformat = video->pix_fmt.pixelformat; in aspeed_video_enum_format() 1372 f->fmt.pix = video->pix_fmt; in aspeed_video_get_format() 1486 fsize->discrete.width = video->pix_fmt.width; in aspeed_video_enum_framesizes() 1487 fsize->discrete.height = video->pix_fmt.height; in aspeed_video_enum_framesizes() 1535 video->pix_fmt.width = timings->bt.width; in aspeed_video_set_dv_timings() 1536 video->pix_fmt.height = timings->bt.height; in aspeed_video_set_dv_timings() 2002 video->pix_fmt.pixelformat = V4L2_PIX_FMT_JPEG; in aspeed_video_setup_video() 2003 video->pix_fmt.field = V4L2_FIELD_NONE; in aspeed_video_setup_video() [all …]
|
/linux-6.3-rc2/drivers/media/platform/ti/am437x/ |
A D | am437x-vpfe.h | 134 enum ccdc_pixfmt pix_fmt; member 163 enum ccdc_pixfmt pix_fmt; member
|
/linux-6.3-rc2/drivers/media/platform/ti/cal/ |
A D | cal-video.c | 892 struct v4l2_pix_format *pix_fmt = &ctx->v_fmt.fmt.pix; in cal_ctx_v4l2_init_mc_format() local 898 pix_fmt->width = 640; in cal_ctx_v4l2_init_mc_format() 899 pix_fmt->height = 480; in cal_ctx_v4l2_init_mc_format() 900 pix_fmt->field = V4L2_FIELD_NONE; in cal_ctx_v4l2_init_mc_format() 901 pix_fmt->colorspace = V4L2_COLORSPACE_SRGB; in cal_ctx_v4l2_init_mc_format() 902 pix_fmt->ycbcr_enc = V4L2_YCBCR_ENC_601; in cal_ctx_v4l2_init_mc_format() 903 pix_fmt->quantization = V4L2_QUANTIZATION_LIM_RANGE; in cal_ctx_v4l2_init_mc_format() 904 pix_fmt->xfer_func = V4L2_XFER_FUNC_SRGB; in cal_ctx_v4l2_init_mc_format() 905 pix_fmt->pixelformat = fmtinfo->fourcc; in cal_ctx_v4l2_init_mc_format()
|
/linux-6.3-rc2/arch/powerpc/platforms/512x/ |
A 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-6.3-rc2/drivers/media/test-drivers/visl/ |
A D | visl-video.c | 616 struct v4l2_pix_format *pix_fmt; in visl_buf_prepare() local 619 pix_fmt = &ctx->coded_fmt.fmt.pix; in visl_buf_prepare() 621 pix_fmt = &ctx->decoded_fmt.fmt.pix; in visl_buf_prepare() 622 vb2_set_plane_payload(vb, 0, pix_fmt->sizeimage); in visl_buf_prepare() 625 if (plane_sz < pix_fmt->sizeimage) { in visl_buf_prepare() 627 plane_sz, pix_fmt->sizeimage); in visl_buf_prepare()
|