/linux/drivers/gpu/drm/ |
H A D | drm_format_helper.c | 374 u32 pix; in drm_fb_xrgb8888_to_rgb332_line() local 377 pix = le32_to_cpu(sbuf32[x]); in drm_fb_xrgb8888_to_rgb332_line() 378 dbuf8[x] = ((pix & 0x00e00000) >> 16) | in drm_fb_xrgb8888_to_rgb332_line() 379 ((pix & 0x0000e000) >> 11) | in drm_fb_xrgb8888_to_rgb332_line() 380 ((pix & 0x000000c0) >> 6); in drm_fb_xrgb8888_to_rgb332_line() 424 u32 pix; in drm_fb_xrgb8888_to_rgb565_line() local 427 pix = le32_to_cpu(sbuf32[x]); in drm_fb_xrgb8888_to_rgb565_line() 428 val16 = ((pix & 0x00F80000) >> 8) | in drm_fb_xrgb8888_to_rgb565_line() 429 ((pix & 0x0000FC00) >> 5) | in drm_fb_xrgb8888_to_rgb565_line() 430 ((pix & 0x000000F8) >> 3); in drm_fb_xrgb8888_to_rgb565_line() [all …]
|
H A D | drm_panic.c | 145 static u16 convert_xrgb8888_to_rgb565(u32 pix) in convert_xrgb8888_to_rgb565() argument 147 return ((pix & 0x00F80000) >> 8) | in convert_xrgb8888_to_rgb565() 148 ((pix & 0x0000FC00) >> 5) | in convert_xrgb8888_to_rgb565() 149 ((pix & 0x000000F8) >> 3); in convert_xrgb8888_to_rgb565() 152 static u16 convert_xrgb8888_to_rgba5551(u32 pix) in convert_xrgb8888_to_rgba5551() argument 154 return ((pix & 0x00f80000) >> 8) | in convert_xrgb8888_to_rgba5551() 155 ((pix & 0x0000f800) >> 5) | in convert_xrgb8888_to_rgba5551() 156 ((pix & 0x000000f8) >> 2) | in convert_xrgb8888_to_rgba5551() 160 static u16 convert_xrgb8888_to_xrgb1555(u32 pix) in convert_xrgb8888_to_xrgb1555() argument 162 return ((pix & 0x00f80000) >> 9) | in convert_xrgb8888_to_xrgb1555() [all …]
|
/linux/drivers/gpu/ipu-v3/ |
H A D | ipu-cpmem.c | 588 #define Y_OFFSET(pix, x, y) ((x) + pix->bytesperline * (y)) argument 589 #define U_OFFSET(pix, x, y) ((pix->bytesperline * pix->height) + \ argument 590 (pix->bytesperline * ((y) / 2) / 2) + (x) / 2) 591 #define V_OFFSET(pix, x, y) ((pix->bytesperline * pix->height) + \ argument 592 (pix->bytesperline * pix->height / 4) + \ 593 (pix->bytesperline * ((y) / 2) / 2) + (x) / 2) 594 #define U2_OFFSET(pix, x, y) ((pix->bytesperline * pix->height) + \ argument 595 (pix->bytesperline * (y) / 2) + (x) / 2) 596 #define V2_OFFSET(pix, x, y) ((pix->bytesperline * pix->height) + \ argument 597 (pix->bytesperline * pix->height / 2) + \ [all …]
|
H A D | ipu-image-convert.c | 350 ic_image->base.pix.width, ic_image->base.pix.height, in dump_format() 997 H = image->base.pix.height; in calc_tile_offsets_planar() 1332 tile_image.pix.width = tile_image.rect.width = width; in init_idmac_channel() 1333 tile_image.pix.height = tile_image.rect.height = height; in init_idmac_channel() 1334 tile_image.pix.bytesperline = stride; in init_idmac_channel() 1335 tile_image.pix.pixelformat = image->fmt->fourcc; in init_idmac_channel() 1931 ic_image->fmt = get_format(image->pix.pixelformat); in fill_image() 1939 ic_image->stride = ic_image->base.pix.width; in fill_image() 1941 ic_image->stride = ic_image->base.pix.bytesperline; in fill_image() 1971 infmt = get_format(in->pix.pixelformat); in ipu_image_convert_adjust() [all …]
|
/linux/drivers/media/platform/sunxi/sun4i-csi/ |
H A D | sun4i_v4l2.c | 92 struct v4l2_pix_format_mplane *pix) in _sun4i_csi_try_fmt() argument 98 _fmt = sun4i_csi_find_format(&pix->pixelformat, NULL); in _sun4i_csi_try_fmt() 102 pix->field = V4L2_FIELD_NONE; in _sun4i_csi_try_fmt() 103 pix->colorspace = V4L2_COLORSPACE_SRGB; in _sun4i_csi_try_fmt() 104 pix->xfer_func = V4L2_MAP_XFER_FUNC_DEFAULT(pix->colorspace); in _sun4i_csi_try_fmt() 105 pix->ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(pix->colorspace); in _sun4i_csi_try_fmt() 106 pix->quantization = V4L2_MAP_QUANTIZATION_DEFAULT(true, pix->colorspace, in _sun4i_csi_try_fmt() 107 pix->ycbcr_enc); in _sun4i_csi_try_fmt() 109 pix->num_planes = _fmt->num_planes; in _sun4i_csi_try_fmt() 110 pix->pixelformat = _fmt->fourcc; in _sun4i_csi_try_fmt() [all …]
|
/linux/drivers/media/platform/ti/omap/ |
H A D | omap_voutlib.c | 43 void omap_vout_default_crop(struct v4l2_pix_format *pix, in omap_vout_default_crop() argument 46 crop->width = (pix->width < fbuf->fmt.width) ? in omap_vout_default_crop() 47 pix->width : fbuf->fmt.width; in omap_vout_default_crop() 48 crop->height = (pix->height < fbuf->fmt.height) ? in omap_vout_default_crop() 49 pix->height : fbuf->fmt.height; in omap_vout_default_crop() 52 crop->left = ((pix->width - crop->width) >> 1) & ~1; in omap_vout_default_crop() 53 crop->top = ((pix->height - crop->height) >> 1) & ~1; in omap_vout_default_crop() 169 int omap_vout_new_crop(struct v4l2_pix_format *pix, in omap_vout_new_crop() argument 188 try_crop.width = (try_crop.width < pix->width) ? in omap_vout_new_crop() 189 try_crop.width : pix->width; in omap_vout_new_crop() [all …]
|
H A D | omap_vout_vrfb.c | 224 vout->smsshado_phy_addr[i], vout->pix.width, in omap_vout_vrfb_buffer_setup() 225 vout->pix.height, vout->bpp, yuv_mode); in omap_vout_vrfb_buffer_setup() 254 dst_icg = MAX_PIXELS_PER_LINE * pixsize - vout->pix.width * vout->bpp; in omap_vout_prepare_vrfb() 259 xt->numf = vout->pix.height; in omap_vout_prepare_vrfb() 261 xt->sgl[0].size = vout->pix.width * vout->bpp; in omap_vout_prepare_vrfb() 323 struct v4l2_pix_format *pix = &vout->pix; in omap_vout_calculate_vrfb_offset() local 330 if (V4L2_PIX_FMT_YUYV == pix->pixelformat || in omap_vout_calculate_vrfb_offset() 331 V4L2_PIX_FMT_UYVY == pix->pixelformat) { in omap_vout_calculate_vrfb_offset() 344 } else if (V4L2_PIX_FMT_RGB32 == pix->pixelformat) { in omap_vout_calculate_vrfb_offset() 346 } else if (V4L2_PIX_FMT_RGB24 == pix->pixelformat) { in omap_vout_calculate_vrfb_offset() [all …]
|
/linux/drivers/media/pci/mgb4/ |
H A D | mgb4_vout.c | 267 f->fmt.pix.width = voutdev->width; in vidioc_g_fmt() 268 f->fmt.pix.height = voutdev->height; in vidioc_g_fmt() 269 f->fmt.pix.field = V4L2_FIELD_NONE; in vidioc_g_fmt() 272 f->fmt.pix.pixelformat = V4L2_PIX_FMT_YUYV; in vidioc_g_fmt() 274 f->fmt.pix.colorspace = V4L2_COLORSPACE_REC709; in vidioc_g_fmt() 277 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; in vidioc_g_fmt() 279 f->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB; in vidioc_g_fmt() 281 f->fmt.pix.bytesperline = (f->fmt.pix.width + voutdev->padding) * 2; in vidioc_g_fmt() 283 f->fmt.pix.pixelformat = V4L2_PIX_FMT_ABGR32; in vidioc_g_fmt() 284 f->fmt.pix.colorspace = V4L2_COLORSPACE_RAW; in vidioc_g_fmt() [all …]
|
H A D | mgb4_vin.c | 407 f->fmt.pix.width = vindev->timings.bt.width; in vidioc_g_fmt() 408 f->fmt.pix.height = vindev->timings.bt.height; in vidioc_g_fmt() 409 f->fmt.pix.field = V4L2_FIELD_NONE; in vidioc_g_fmt() 412 f->fmt.pix.pixelformat = V4L2_PIX_FMT_YUYV; in vidioc_g_fmt() 414 f->fmt.pix.colorspace = V4L2_COLORSPACE_REC709; in vidioc_g_fmt() 417 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; in vidioc_g_fmt() 419 f->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB; in vidioc_g_fmt() 421 f->fmt.pix.bytesperline = (f->fmt.pix.width + vindev->padding) * 2; in vidioc_g_fmt() 423 f->fmt.pix.pixelformat = V4L2_PIX_FMT_ABGR32; in vidioc_g_fmt() 424 f->fmt.pix.colorspace = V4L2_COLORSPACE_RAW; in vidioc_g_fmt() [all …]
|
/linux/drivers/staging/vc04_services/bcm2835-camera/ |
H A D | bcm2835-camera.c | 196 if (fmt->fourcc == f->fmt.pix.pixelformat) in get_format() 909 f->fmt.pix.width = dev->capture.width; in vidioc_g_fmt_vid_cap() 910 f->fmt.pix.height = dev->capture.height; in vidioc_g_fmt_vid_cap() 911 f->fmt.pix.field = V4L2_FIELD_NONE; in vidioc_g_fmt_vid_cap() 912 f->fmt.pix.pixelformat = dev->capture.fmt->fourcc; in vidioc_g_fmt_vid_cap() 913 f->fmt.pix.bytesperline = dev->capture.stride; in vidioc_g_fmt_vid_cap() 914 f->fmt.pix.sizeimage = dev->capture.buffersize; in vidioc_g_fmt_vid_cap() 917 f->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB; in vidioc_g_fmt_vid_cap() 919 f->fmt.pix.colorspace = V4L2_COLORSPACE_JPEG; in vidioc_g_fmt_vid_cap() 921 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; in vidioc_g_fmt_vid_cap() [all …]
|
/linux/drivers/media/platform/ti/vpe/ |
H A D | csc.c | 145 const struct v4l2_pix_format *pix; in csc_set_coeff() local 158 pix = &src_fmt->fmt.pix; in csc_set_coeff() 159 src_pixelformat = pix->pixelformat; in csc_set_coeff() 160 src_ycbcr_enc = pix->ycbcr_enc; in csc_set_coeff() 161 src_quantization = pix->quantization; in csc_set_coeff() 170 pix = &dst_fmt->fmt.pix; in csc_set_coeff() 171 dst_pixelformat = pix->pixelformat; in csc_set_coeff() 172 dst_ycbcr_enc = pix->ycbcr_enc; in csc_set_coeff() 173 dst_quantization = pix->quantization; in csc_set_coeff()
|
/linux/drivers/media/test-drivers/vicodec/ |
H A D | vicodec-core.c | 766 struct v4l2_pix_format *pix; in vidioc_g_fmt() local 781 pix = &f->fmt.pix; in vidioc_g_fmt() 782 pix->width = q_data->coded_width; in vidioc_g_fmt() 783 pix->height = q_data->coded_height; in vidioc_g_fmt() 784 pix->field = V4L2_FIELD_NONE; in vidioc_g_fmt() 785 pix->pixelformat = info->id; in vidioc_g_fmt() 786 pix->bytesperline = q_data->coded_width * in vidioc_g_fmt() 788 pix->sizeimage = q_data->sizeimage; in vidioc_g_fmt() 789 pix->colorspace = ctx->state.colorspace; in vidioc_g_fmt() 790 pix->xfer_func = ctx->state.xfer_func; in vidioc_g_fmt() [all …]
|
/linux/drivers/media/platform/st/sti/bdisp/ |
H A D | bdisp-v4l2.c | 718 struct v4l2_pix_format *pix; in bdisp_g_fmt() local 726 pix = &f->fmt.pix; in bdisp_g_fmt() 727 pix->width = frame->width; in bdisp_g_fmt() 728 pix->height = frame->height; in bdisp_g_fmt() 729 pix->pixelformat = frame->fmt->pixelformat; in bdisp_g_fmt() 730 pix->field = frame->field; in bdisp_g_fmt() 731 pix->bytesperline = frame->bytesperline; in bdisp_g_fmt() 732 pix->sizeimage = frame->sizeimage; in bdisp_g_fmt() 733 pix->colorspace = (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT) ? in bdisp_g_fmt() 742 struct v4l2_pix_format *pix = &f->fmt.pix; in bdisp_try_fmt() local [all …]
|
/linux/drivers/media/test-drivers/vivid/ |
H A D | vivid-vid-common.c | 867 const struct v4l2_pix_format *pix = &sp_fmt->fmt.pix; in fmt_sp2mp() local 873 mp->width = pix->width; in fmt_sp2mp() 874 mp->height = pix->height; in fmt_sp2mp() 875 mp->pixelformat = pix->pixelformat; in fmt_sp2mp() 876 mp->field = pix->field; in fmt_sp2mp() 877 mp->colorspace = pix->colorspace; in fmt_sp2mp() 878 mp->xfer_func = pix->xfer_func; in fmt_sp2mp() 880 mp->ycbcr_enc = pix->ycbcr_enc; in fmt_sp2mp() 881 mp->quantization = pix->quantization; in fmt_sp2mp() 883 mp->flags = pix->flags; in fmt_sp2mp() [all …]
|
/linux/drivers/media/usb/pwc/ |
H A D | pwc-v4l.c | 389 memset(&f->fmt.pix, 0, sizeof(struct v4l2_pix_format)); in pwc_vidioc_fill_fmt() 390 f->fmt.pix.width = width; in pwc_vidioc_fill_fmt() 391 f->fmt.pix.height = height; in pwc_vidioc_fill_fmt() 392 f->fmt.pix.field = V4L2_FIELD_NONE; in pwc_vidioc_fill_fmt() 393 f->fmt.pix.pixelformat = pixfmt; in pwc_vidioc_fill_fmt() 394 f->fmt.pix.bytesperline = f->fmt.pix.width; in pwc_vidioc_fill_fmt() 395 f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.width * 3 / 2; in pwc_vidioc_fill_fmt() 396 f->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB; in pwc_vidioc_fill_fmt() 398 f->fmt.pix.width, in pwc_vidioc_fill_fmt() 399 f->fmt.pix.height, in pwc_vidioc_fill_fmt() [all …]
|
/linux/Documentation/userspace-api/media/v4l/ |
H A D | v4l2grab.c.rst | 77 fmt.fmt.pix.width = 640; 78 fmt.fmt.pix.height = 480; 79 fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_RGB24; 80 fmt.fmt.pix.field = V4L2_FIELD_INTERLACED; 82 if (fmt.fmt.pix.pixelformat != V4L2_PIX_FMT_RGB24) { 86 if ((fmt.fmt.pix.width != 640) || (fmt.fmt.pix.height != 480)) 88 fmt.fmt.pix.width, fmt.fmt.pix.height); 155 fmt.fmt.pix.width, fmt.fmt.pix.height);
|
H A D | pixfmt-srggb8-pisp-comp.rst | 3 .. _v4l2-pix-fmt-pisp-comp1-rggb: 4 .. _v4l2-pix-fmt-pisp-comp1-grbg: 5 .. _v4l2-pix-fmt-pisp-comp1-gbrg: 6 .. _v4l2-pix-fmt-pisp-comp1-bggr: 7 .. _v4l2-pix-fmt-pisp-comp1-mono: 8 .. _v4l2-pix-fmt-pisp-comp2-rggb: 9 .. _v4l2-pix-fmt-pisp-comp2-grbg: 10 .. _v4l2-pix-fmt-pisp-comp2-gbrg: 11 .. _v4l2-pix-fmt-pisp-comp2-bggr: 12 .. _v4l2-pix-fmt-pisp-comp2-mono:
|
/linux/drivers/staging/media/tegra-video/ |
H A D | tegra20.c | 270 static void tegra20_fmt_align(struct v4l2_pix_format *pix, unsigned int bpp) in tegra20_fmt_align() argument 272 pix->width = clamp(pix->width, TEGRA20_MIN_WIDTH, TEGRA20_MAX_WIDTH); in tegra20_fmt_align() 273 pix->height = clamp(pix->height, TEGRA20_MIN_HEIGHT, TEGRA20_MAX_HEIGHT); in tegra20_fmt_align() 275 switch (pix->pixelformat) { in tegra20_fmt_align() 280 pix->bytesperline = roundup(pix->width, 2) * 2; in tegra20_fmt_align() 281 pix->sizeimage = roundup(pix->width, 2) * 2 * pix->height; in tegra20_fmt_align() 285 pix->bytesperline = roundup(pix->width, 8); in tegra20_fmt_align() 286 pix->sizeimage = roundup(pix->width, 8) * pix->height * 3 / 2; in tegra20_fmt_align()
|
/linux/drivers/media/common/saa7146/ |
H A D | saa7146_hlp.c | 410 struct v4l2_pix_format *pix = &vv->video_fmt; in calculate_video_dma_grab_packed() local 412 struct saa7146_format *sfmt = saa7146_format_by_fourcc(dev, pix->pixelformat); in calculate_video_dma_grab_packed() 414 int width = pix->width; in calculate_video_dma_grab_packed() 415 int height = pix->height; in calculate_video_dma_grab_packed() 416 int bytesperline = pix->bytesperline; in calculate_video_dma_grab_packed() 417 enum v4l2_field field = pix->field; in calculate_video_dma_grab_packed() 472 struct v4l2_pix_format *pix = &vv->video_fmt; in calc_planar_422() local 473 int height = pix->height; in calc_planar_422() 474 int width = pix->width; in calc_planar_422() 504 struct v4l2_pix_format *pix = &vv->video_fmt; in calc_planar_420() local [all …]
|
/linux/drivers/media/platform/ti/am437x/ |
H A D | am437x-vpfe.c | 871 f->fmt.pix.width = image_win.width; in vpfe_get_ccdc_image_format() 872 f->fmt.pix.height = image_win.height; in vpfe_get_ccdc_image_format() 873 f->fmt.pix.bytesperline = vpfe_ccdc_get_line_length(&vpfe->ccdc); in vpfe_get_ccdc_image_format() 874 f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * in vpfe_get_ccdc_image_format() 875 f->fmt.pix.height; in vpfe_get_ccdc_image_format() 877 f->fmt.pix.pixelformat = vpfe_ccdc_get_pixel_format(&vpfe->ccdc); in vpfe_get_ccdc_image_format() 881 f->fmt.pix.field = V4L2_FIELD_NONE; in vpfe_get_ccdc_image_format() 884 f->fmt.pix.field = V4L2_FIELD_INTERLACED; in vpfe_get_ccdc_image_format() 886 f->fmt.pix.field = V4L2_FIELD_SEQ_TB; in vpfe_get_ccdc_image_format() 905 print_fourcc(vpfe->fmt.fmt.pix.pixelformat)); in vpfe_config_ccdc_image_format() [all …]
|
/linux/drivers/media/usb/gspca/ |
H A D | stk1135.c | 608 fmt->fmt.pix.width = clamp(fmt->fmt.pix.width, 32U, 1280U); in stk1135_try_fmt() 609 fmt->fmt.pix.height = clamp(fmt->fmt.pix.height, 32U, 1024U); in stk1135_try_fmt() 611 fmt->fmt.pix.width += (fmt->fmt.pix.width & 1); in stk1135_try_fmt() 612 fmt->fmt.pix.height += (fmt->fmt.pix.height & 1); in stk1135_try_fmt() 614 fmt->fmt.pix.bytesperline = fmt->fmt.pix.width; in stk1135_try_fmt() 615 fmt->fmt.pix.sizeimage = fmt->fmt.pix.width * fmt->fmt.pix.height; in stk1135_try_fmt()
|
/linux/drivers/media/platform/qcom/camss/ |
H A D | camss-video.c | 43 struct v4l2_pix_format_mplane *pix, in video_mbus_to_pix_mp() argument 50 memset(pix, 0, sizeof(*pix)); in video_mbus_to_pix_mp() 51 v4l2_fill_pix_format_mplane(pix, mbus); in video_mbus_to_pix_mp() 52 pix->pixelformat = f->pixelformat; in video_mbus_to_pix_mp() 53 pix->num_planes = f->planes; in video_mbus_to_pix_mp() 54 for (i = 0; i < pix->num_planes; i++) { in video_mbus_to_pix_mp() 55 bytesperline = pix->width / f->hsub[i].numerator * in video_mbus_to_pix_mp() 58 pix->plane_fmt[i].bytesperline = bytesperline; in video_mbus_to_pix_mp() 59 pix->plane_fmt[i].sizeimage = pix->height / in video_mbus_to_pix_mp() 208 struct v4l2_pix_format_mplane *pix = &video->active_fmt.fmt.pix_mp; in video_check_format() local [all …]
|
/linux/drivers/media/platform/renesas/vsp1/ |
H A D | vsp1_video.c | 94 struct v4l2_pix_format_mplane *pix, in __vsp1_video_try_format() argument 105 unsigned int width = pix->width; in __vsp1_video_try_format() 106 unsigned int height = pix->height; in __vsp1_video_try_format() 115 if (xrgb_formats[i][0] == pix->pixelformat) { in __vsp1_video_try_format() 116 pix->pixelformat = xrgb_formats[i][1]; in __vsp1_video_try_format() 125 info = vsp1_get_format_info(video->vsp1, pix->pixelformat); in __vsp1_video_try_format() 129 pix->pixelformat = info->fourcc; in __vsp1_video_try_format() 130 pix->colorspace = V4L2_COLORSPACE_SRGB; in __vsp1_video_try_format() 131 pix->field = V4L2_FIELD_NONE; in __vsp1_video_try_format() 135 pix->hsv_enc = V4L2_HSV_ENC_256; in __vsp1_video_try_format() [all …]
|
/linux/drivers/staging/media/imx/ |
H A D | imx-media-utils.c | 519 int imx_media_mbus_fmt_to_pix_fmt(struct v4l2_pix_format *pix, in imx_media_mbus_fmt_to_pix_fmt() argument 556 pix->width = width; in imx_media_mbus_fmt_to_pix_fmt() 557 pix->height = mbus->height; in imx_media_mbus_fmt_to_pix_fmt() 558 pix->pixelformat = cc->fourcc; in imx_media_mbus_fmt_to_pix_fmt() 559 pix->colorspace = mbus->colorspace; in imx_media_mbus_fmt_to_pix_fmt() 560 pix->xfer_func = mbus->xfer_func; in imx_media_mbus_fmt_to_pix_fmt() 561 pix->ycbcr_enc = mbus->ycbcr_enc; in imx_media_mbus_fmt_to_pix_fmt() 562 pix->quantization = mbus->quantization; in imx_media_mbus_fmt_to_pix_fmt() 563 pix->field = mbus->field; in imx_media_mbus_fmt_to_pix_fmt() 564 pix->bytesperline = stride; in imx_media_mbus_fmt_to_pix_fmt() [all …]
|
/linux/drivers/media/platform/ti/davinci/ |
H A D | vpif_capture.c | 80 vb2_set_plane_payload(vb, 0, common->fmt.fmt.pix.sizeimage); in vpif_buffer_prepare() 84 vbuf->field = common->fmt.fmt.pix.field; in vpif_buffer_prepare() 115 unsigned size = common->fmt.fmt.pix.sizeimage; in vpif_buffer_queue_setup() 385 common->fmt.fmt.pix.field == V4L2_FIELD_NONE) { in vpif_channel_isr() 466 struct v4l2_pix_format *pixfmt = &common->fmt.fmt.pix; in vpif_update_std_info() 520 common->fmt.fmt.pix.width = std_info->width; in vpif_update_std_info() 522 common->fmt.fmt.pix.height = std_info->height; in vpif_update_std_info() 524 common->fmt.fmt.pix.sizeimage = common->height * common->width * 2; in vpif_update_std_info() 525 common->fmt.fmt.pix.bytesperline = std_info->width; in vpif_update_std_info() 530 common->fmt.fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; in vpif_update_std_info() [all …]
|