/linux/include/media/ |
A D | v4l2-mediabus.h | 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() 146 pix_fmt->xfer_func = mbus_fmt->xfer_func; in v4l2_fill_pix_format() 162 mbus_fmt->width = pix_fmt->width; in v4l2_fill_mbus_format() 163 mbus_fmt->height = pix_fmt->height; in v4l2_fill_mbus_format() 164 mbus_fmt->field = pix_fmt->field; in v4l2_fill_mbus_format() 166 mbus_fmt->ycbcr_enc = pix_fmt->ycbcr_enc; in v4l2_fill_mbus_format() [all …]
|
/linux/drivers/staging/media/sunxi/cedrus/ |
A D | cedrus_video.c | 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() 162 pix_fmt->sizeimage = sizeimage; in cedrus_prepare_format() 260 cedrus_prepare_format(pix_fmt); in cedrus_try_fmt_vid_cap() 279 cedrus_prepare_format(pix_fmt); in cedrus_try_fmt_vid_out() 404 pix_fmt = &ctx->src_fmt; in cedrus_queue_setup() 406 pix_fmt = &ctx->dst_fmt; in cedrus_queue_setup() 454 pix_fmt = &ctx->src_fmt; in cedrus_buf_prepare() [all …]
|
A D | cedrus.h | 223 struct v4l2_pix_format *pix_fmt, in cedrus_buf_addr() argument 228 return addr + (pix_fmt ? (dma_addr_t)pix_fmt->bytesperline * in cedrus_buf_addr() 229 pix_fmt->height * plane : 0); in cedrus_buf_addr()
|
/linux/drivers/staging/vc04_services/bcm2835-camera/ |
A D | bcm2835-camera.h | 122 #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); \
|
/linux/drivers/media/platform/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/drivers/staging/media/hantro/ |
A D | rockchip_vpu2_hw_jpeg_enc.c | 38 struct v4l2_pix_format_mplane *pix_fmt = &ctx->src_fmt; in rockchip_vpu2_set_src_img_ctrl() local 45 reg = VEPU_REG_IN_IMG_CTRL_ROW_LEN(pix_fmt->width); in rockchip_vpu2_set_src_img_ctrl() 66 struct v4l2_pix_format_mplane *pix_fmt = &ctx->src_fmt; in rockchip_vpu2_jpeg_enc_set_buffers() local 69 WARN_ON(pix_fmt->num_planes > 3); in rockchip_vpu2_jpeg_enc_set_buffers() 76 if (pix_fmt->num_planes == 1) { in rockchip_vpu2_jpeg_enc_set_buffers() 79 } else if (pix_fmt->num_planes == 2) { in rockchip_vpu2_jpeg_enc_set_buffers()
|
A 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()
|
A D | hantro_v4l2.c | 635 struct v4l2_pix_format_mplane *pix_fmt; in hantro_buf_prepare() local 639 pix_fmt = &ctx->src_fmt; in hantro_buf_prepare() 641 pix_fmt = &ctx->dst_fmt; in hantro_buf_prepare() 642 ret = hantro_buf_plane_check(vb, pix_fmt); in hantro_buf_prepare() 651 vb2_set_plane_payload(vb, 0, pix_fmt->plane_fmt[0].sizeimage); in hantro_buf_prepare()
|
/linux/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/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/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 …]
|
/linux/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/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/drivers/media/platform/davinci/ |
A 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() 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() 912 if (params->pix_fmt != CCDC_PIXFMT_YCBCR_16BIT) { in isif_config_ycbcr() [all …]
|
A 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 …]
|
/linux/drivers/gpu/drm/imx/dcss/ |
A D | dcss-plane.c | 126 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 129 (pix_fmt == DRM_FORMAT_NV12 || pix_fmt == DRM_FORMAT_NV21)) in dcss_plane_is_source_size_allowed() 132 (pix_fmt == DRM_FORMAT_UYVY || pix_fmt == DRM_FORMAT_VYUY || in dcss_plane_is_source_size_allowed() 133 pix_fmt == DRM_FORMAT_YUYV || pix_fmt == DRM_FORMAT_YVYU)) in dcss_plane_is_source_size_allowed()
|
/linux/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/drivers/media/platform/ |
A D | aspeed-video.c | 225 struct v4l2_pix_format pix_fmt; member 1021 video->pix_fmt.width = video->active_timings.width; in aspeed_video_start() 1022 video->pix_fmt.height = video->active_timings.height; in aspeed_video_start() 1070 f->fmt.pix = video->pix_fmt; in aspeed_video_get_format() 1161 fsize->discrete.width = video->pix_fmt.width; in aspeed_video_enum_framesizes() 1162 fsize->discrete.height = video->pix_fmt.height; in aspeed_video_enum_framesizes() 1210 video->pix_fmt.width = timings->bt.width; in aspeed_video_set_dv_timings() 1211 video->pix_fmt.height = timings->bt.height; in aspeed_video_set_dv_timings() 1638 video->pix_fmt.pixelformat = V4L2_PIX_FMT_JPEG; in aspeed_video_setup_video() 1639 video->pix_fmt.field = V4L2_FIELD_NONE; in aspeed_video_setup_video() [all …]
|
/linux/include/media/davinci/ |
A D | dm644x_ccdc.h | 128 enum ccdc_pixfmt pix_fmt; member 152 enum ccdc_pixfmt pix_fmt; member
|
A D | dm355_ccdc.h | 249 enum ccdc_pixfmt pix_fmt; member 279 enum ccdc_pixfmt pix_fmt; member
|
/linux/drivers/media/platform/ti-vpe/ |
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/drivers/media/platform/am437x/ |
A D | am437x-vpfe.h | 134 enum ccdc_pixfmt pix_fmt; member 163 enum ccdc_pixfmt pix_fmt; member
|
/linux/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()
|