/linux-6.6.21/include/media/ |
D | v4l2-mediabus.h | 180 v4l2_fill_pix_format(struct v4l2_pix_format *pix_fmt, in v4l2_fill_pix_format() argument 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() 188 pix_fmt->quantization = mbus_fmt->quantization; in v4l2_fill_pix_format() 189 pix_fmt->xfer_func = mbus_fmt->xfer_func; in v4l2_fill_pix_format() 202 const struct v4l2_pix_format *pix_fmt, in v4l2_fill_mbus_format() argument 205 mbus_fmt->width = pix_fmt->width; in v4l2_fill_mbus_format() [all …]
|
/linux-6.6.21/drivers/staging/media/sunxi/cedrus/ |
D | cedrus_video.c | 103 void cedrus_prepare_format(struct v4l2_pix_format *pix_fmt) in cedrus_prepare_format() argument 105 unsigned int width = pix_fmt->width; in cedrus_prepare_format() 106 unsigned int height = pix_fmt->height; in cedrus_prepare_format() 107 unsigned int sizeimage = pix_fmt->sizeimage; in cedrus_prepare_format() 108 unsigned int bytesperline = pix_fmt->bytesperline; in cedrus_prepare_format() 110 pix_fmt->field = V4L2_FIELD_NONE; in cedrus_prepare_format() 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() 161 pix_fmt->bytesperline = bytesperline; in cedrus_prepare_format() [all …]
|
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()
|
D | cedrus_video.h | 29 void cedrus_prepare_format(struct v4l2_pix_format *pix_fmt);
|
/linux-6.6.21/drivers/staging/vc04_services/bcm2835-camera/ |
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.6.21/drivers/media/platform/nxp/dw100/ |
D | dw100.c | 80 struct v4l2_pix_format_mplane pix_fmt; member 329 ctx->q_data[DW100_QUEUE_SRC].pix_fmt.width, in dw100_create_mapping() 330 ctx->q_data[DW100_QUEUE_DST].pix_fmt.height, in dw100_create_mapping() 331 ctx->q_data[DW100_QUEUE_SRC].pix_fmt.width, in dw100_create_mapping() 332 ctx->q_data[DW100_QUEUE_DST].pix_fmt.height); in dw100_create_mapping() 386 sw = ctx->q_data[DW100_QUEUE_SRC].pix_fmt.width; in dw100_ctrl_dewarping_map_init() 387 sh = ctx->q_data[DW100_QUEUE_SRC].pix_fmt.height; in dw100_ctrl_dewarping_map_init() 440 format = &dw100_get_q_data(ctx, vq->type)->pix_fmt; in dw100_queue_setup() 468 const struct v4l2_pix_format_mplane *pix_fmt = in dw100_buf_prepare() local 469 &dw100_get_q_data(ctx, vb->vb2_queue->type)->pix_fmt; in dw100_buf_prepare() [all …]
|
/linux-6.6.21/drivers/media/platform/amlogic/meson-ge2d/ |
D | ge2d.c | 61 struct v4l2_pix_format pix_fmt; member 187 (ctx->in.pix_fmt.bytesperline + 7) >> 3); in ge2d_hw_start() 191 (ctx->out.pix_fmt.bytesperline + 7) >> 3); in ge2d_hw_start() 195 (ctx->out.pix_fmt.bytesperline + 7) >> 3); in ge2d_hw_start() 236 FIELD_PREP(GE2D_END, ctx->in.pix_fmt.height - 1)); in ge2d_hw_start() 238 FIELD_PREP(GE2D_END, ctx->in.pix_fmt.width - 1)); in ge2d_hw_start() 240 FIELD_PREP(GE2D_END, ctx->out.pix_fmt.height - 1)); in ge2d_hw_start() 242 FIELD_PREP(GE2D_END, ctx->out.pix_fmt.width - 1)); in ge2d_hw_start() 244 FIELD_PREP(GE2D_END, ctx->out.pix_fmt.height - 1)); in ge2d_hw_start() 246 FIELD_PREP(GE2D_END, ctx->out.pix_fmt.width - 1)); in ge2d_hw_start() [all …]
|
/linux-6.6.21/drivers/media/platform/sunxi/sun8i-rotate/ |
D | sun8i_rotate.c | 176 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 …]
|
/linux-6.6.21/drivers/video/fbdev/ |
D | pxa168fb.c | 93 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 …]
|
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() 1760 data->dummy_ad.pix_fmt = 0x88882317; in fsl_diu_probe()
|
/linux-6.6.21/drivers/video/fbdev/mmp/fb/ |
D | mmpfb.c | 98 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 …]
|
D | mmpfb.h | 25 int pix_fmt; member
|
/linux-6.6.21/drivers/media/platform/sunxi/sun8i-di/ |
D | sun8i-di.c | 326 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 …]
|
/linux-6.6.21/drivers/media/platform/verisilicon/ |
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()
|
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.6.21/drivers/input/touchscreen/ |
D | sur40.c | 214 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 …]
|
/linux-6.6.21/drivers/gpu/drm/imx/dcss/ |
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.6.21/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-6.6.21/drivers/media/platform/ti/davinci/ |
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.6.21/drivers/media/platform/aspeed/ |
D | aspeed-video.c | 293 struct v4l2_pix_format pix_fmt; member 1317 video->pix_fmt.width = video->active_timings.width; in aspeed_video_start() 1318 video->pix_fmt.height = video->active_timings.height; in aspeed_video_start() 1319 video->pix_fmt.sizeimage = video->max_compressed_size; in aspeed_video_start() 1361 f->pixelformat = video->pix_fmt.pixelformat; in aspeed_video_enum_format() 1371 f->fmt.pix = video->pix_fmt; in aspeed_video_get_format() 1394 video->pix_fmt.pixelformat = f->fmt.pix.pixelformat; in aspeed_video_set_format() 1485 fsize->discrete.width = video->pix_fmt.width; in aspeed_video_enum_framesizes() 1486 fsize->discrete.height = video->pix_fmt.height; in aspeed_video_enum_framesizes() 1534 video->pix_fmt.width = timings->bt.width; in aspeed_video_set_dv_timings() [all …]
|
/linux-6.6.21/drivers/media/platform/ti/am437x/ |
D | am437x-vpfe.h | 134 enum ccdc_pixfmt pix_fmt; member 163 enum ccdc_pixfmt pix_fmt; member
|
/linux-6.6.21/drivers/media/platform/ti/cal/ |
D | cal-video.c | 908 struct v4l2_pix_format *pix_fmt = &ctx->v_fmt.fmt.pix; in cal_ctx_v4l2_init_mc_format() local 914 pix_fmt->width = 640; in cal_ctx_v4l2_init_mc_format() 915 pix_fmt->height = 480; in cal_ctx_v4l2_init_mc_format() 916 pix_fmt->field = V4L2_FIELD_NONE; in cal_ctx_v4l2_init_mc_format() 917 pix_fmt->colorspace = V4L2_COLORSPACE_SRGB; in cal_ctx_v4l2_init_mc_format() 918 pix_fmt->ycbcr_enc = V4L2_YCBCR_ENC_601; in cal_ctx_v4l2_init_mc_format() 919 pix_fmt->quantization = V4L2_QUANTIZATION_LIM_RANGE; in cal_ctx_v4l2_init_mc_format() 920 pix_fmt->xfer_func = V4L2_XFER_FUNC_SRGB; in cal_ctx_v4l2_init_mc_format() 921 pix_fmt->pixelformat = fmtinfo->fourcc; in cal_ctx_v4l2_init_mc_format()
|
/linux-6.6.21/arch/powerpc/platforms/512x/ |
D | mpc512x_shared.c | 209 unsigned long mode, pix_fmt, res, bpp; in mpc512x_init_diu() local 243 pix_fmt = in_le32(vaddr); in mpc512x_init_diu() 244 bpp = ((pix_fmt >> 16) & 0x3) + 1; in mpc512x_init_diu()
|
/linux-6.6.21/drivers/media/test-drivers/visl/ |
D | visl-video.c | 619 struct v4l2_pix_format *pix_fmt; in visl_buf_prepare() local 622 pix_fmt = &ctx->coded_fmt.fmt.pix; in visl_buf_prepare() 624 pix_fmt = &ctx->decoded_fmt.fmt.pix; in visl_buf_prepare() 625 vb2_set_plane_payload(vb, 0, pix_fmt->sizeimage); in visl_buf_prepare() 628 if (plane_sz < pix_fmt->sizeimage) { in visl_buf_prepare() 630 plane_sz, pix_fmt->sizeimage); in visl_buf_prepare()
|