/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 | 221 struct v4l2_pix_format *pix_fmt, in cedrus_buf_addr() argument 226 return addr + (pix_fmt ? (dma_addr_t)pix_fmt->bytesperline * in cedrus_buf_addr() 227 pix_fmt->height * plane : 0); in cedrus_buf_addr()
|
D | cedrus_video.h | 29 void cedrus_prepare_format(struct v4l2_pix_format *pix_fmt);
|
/drivers/staging/vc04_services/bcm2835-camera/ |
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); \
|
/drivers/media/platform/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 …]
|
/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 | 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()
|
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() 654 vb2_set_plane_payload(vb, 0, pix_fmt->plane_fmt[0].sizeimage); in hantro_buf_prepare()
|
/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 …]
|
/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() 1762 data->dummy_ad.pix_fmt = 0x88882317; in fsl_diu_probe()
|
/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
|
/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 …]
|
/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 …]
|
/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()
|
D | vpbe_display.c | 149 if ((V4L2_FIELD_NONE == layer->pix_fmt.field) && in venc_isr() 203 vb2_set_plane_payload(vb, 0, layer->pix_fmt.sizeimage); in vpbe_buffer_prepare() 237 return sizes[0] < layer->pix_fmt.sizeimage ? -EINVAL : 0; in vpbe_buffer_queue_setup() 240 sizes[0] = layer->pix_fmt.sizeimage; in vpbe_buffer_queue_setup() 419 struct v4l2_pix_format *pixfmt = &layer->pix_fmt; in vpbe_disp_calculate_scale_factor() 778 fmt->fmt.pix = layer->pix_fmt; in vpbe_display_g_fmt() 836 layer->pix_fmt = *pixfmt; in vpbe_display_s_fmt()
|
/drivers/gpu/drm/imx/dcss/ |
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()
|
/drivers/media/platform/ |
D | aspeed-video.c | 217 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 …]
|
/drivers/media/platform/ti-vpe/ |
D | cal-video.c | 895 struct v4l2_pix_format *pix_fmt = &ctx->v_fmt.fmt.pix; in cal_ctx_v4l2_init_mc_format() local 901 pix_fmt->width = 640; in cal_ctx_v4l2_init_mc_format() 902 pix_fmt->height = 480; in cal_ctx_v4l2_init_mc_format() 903 pix_fmt->field = V4L2_FIELD_NONE; in cal_ctx_v4l2_init_mc_format() 904 pix_fmt->colorspace = V4L2_COLORSPACE_SRGB; in cal_ctx_v4l2_init_mc_format() 905 pix_fmt->ycbcr_enc = V4L2_YCBCR_ENC_601; in cal_ctx_v4l2_init_mc_format() 906 pix_fmt->quantization = V4L2_QUANTIZATION_LIM_RANGE; in cal_ctx_v4l2_init_mc_format() 907 pix_fmt->xfer_func = V4L2_XFER_FUNC_SRGB; in cal_ctx_v4l2_init_mc_format() 908 pix_fmt->pixelformat = fmtinfo->fourcc; in cal_ctx_v4l2_init_mc_format()
|
/drivers/media/platform/am437x/ |
D | am437x-vpfe.h | 134 enum ccdc_pixfmt pix_fmt; member 163 enum ccdc_pixfmt pix_fmt; member
|
/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()
|