/kernel/linux/linux-5.10/drivers/media/pci/cobalt/ |
D | cobalt-v4l2.c | 710 struct v4l2_pix_format *pix = &f->fmt.pix; in cobalt_g_fmt_vid_cap() local 713 pix->width = s->width; in cobalt_g_fmt_vid_cap() 714 pix->height = s->height; in cobalt_g_fmt_vid_cap() 715 pix->bytesperline = s->stride; in cobalt_g_fmt_vid_cap() 716 pix->field = V4L2_FIELD_NONE; in cobalt_g_fmt_vid_cap() 719 pix->colorspace = V4L2_COLORSPACE_SRGB; in cobalt_g_fmt_vid_cap() 724 v4l2_fill_pix_format(pix, &sd_fmt.format); in cobalt_g_fmt_vid_cap() 727 pix->pixelformat = s->pixfmt; in cobalt_g_fmt_vid_cap() 728 pix->sizeimage = pix->bytesperline * pix->height; in cobalt_g_fmt_vid_cap() 737 struct v4l2_pix_format *pix = &f->fmt.pix; in cobalt_try_fmt_vid_cap() local [all …]
|
/kernel/linux/linux-5.10/drivers/staging/media/zoran/ |
D | zoran_driver.c | 308 fmt->fmt.pix.width = zr->jpg_settings.img_width / zr->jpg_settings.hor_dcm; in zoran_g_fmt_vid_out() 309 fmt->fmt.pix.height = zr->jpg_settings.img_height * 2 / in zoran_g_fmt_vid_out() 311 fmt->fmt.pix.sizeimage = zr->buffer_size; in zoran_g_fmt_vid_out() 312 fmt->fmt.pix.pixelformat = V4L2_PIX_FMT_MJPEG; in zoran_g_fmt_vid_out() 314 fmt->fmt.pix.field = (zr->jpg_settings.odd_even ? in zoran_g_fmt_vid_out() 317 fmt->fmt.pix.field = (zr->jpg_settings.odd_even ? in zoran_g_fmt_vid_out() 319 fmt->fmt.pix.bytesperline = 0; in zoran_g_fmt_vid_out() 320 fmt->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; in zoran_g_fmt_vid_out() 332 fmt->fmt.pix.width = zr->v4l_settings.width; in zoran_g_fmt_vid_cap() 333 fmt->fmt.pix.height = zr->v4l_settings.height; in zoran_g_fmt_vid_cap() [all …]
|
/kernel/linux/linux-5.10/drivers/media/platform/rcar-vin/ |
D | rcar-v4l2.c | 117 struct v4l2_pix_format *pix) in rvin_format_bytesperline() argument 122 fmt = rvin_format_from_pixel(vin, pix->pixelformat); in rvin_format_bytesperline() 127 switch (pix->pixelformat) { in rvin_format_bytesperline() 137 if (V4L2_FIELD_IS_SEQUENTIAL(pix->field)) in rvin_format_bytesperline() 140 return ALIGN(pix->width, align) * fmt->bpp; in rvin_format_bytesperline() 143 static u32 rvin_format_sizeimage(struct v4l2_pix_format *pix) in rvin_format_sizeimage() argument 145 switch (pix->pixelformat) { in rvin_format_sizeimage() 147 return pix->bytesperline * pix->height * 3 / 2; in rvin_format_sizeimage() 149 return pix->bytesperline * pix->height * 2; in rvin_format_sizeimage() 151 return pix->bytesperline * pix->height; in rvin_format_sizeimage() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/ipu-v3/ |
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 …]
|
/kernel/linux/linux-5.10/drivers/media/platform/sti/delta/ |
D | delta-v4l2.c | 429 struct v4l2_pix_format *pix = &f->fmt.pix; in delta_g_fmt_stream() local 439 pix->pixelformat = streaminfo->streamformat; in delta_g_fmt_stream() 440 pix->width = streaminfo->width; in delta_g_fmt_stream() 441 pix->height = streaminfo->height; in delta_g_fmt_stream() 442 pix->field = streaminfo->field; in delta_g_fmt_stream() 443 pix->bytesperline = 0; in delta_g_fmt_stream() 444 pix->sizeimage = ctx->max_au_size; in delta_g_fmt_stream() 445 pix->colorspace = streaminfo->colorspace; in delta_g_fmt_stream() 446 pix->xfer_func = streaminfo->xfer_func; in delta_g_fmt_stream() 447 pix->ycbcr_enc = streaminfo->ycbcr_enc; in delta_g_fmt_stream() [all …]
|
/kernel/linux/linux-5.10/drivers/media/platform/sti/hva/ |
D | hva-v4l2.c | 301 f->fmt.pix.width = streaminfo->width; in hva_g_fmt_stream() 302 f->fmt.pix.height = streaminfo->height; in hva_g_fmt_stream() 303 f->fmt.pix.field = V4L2_FIELD_NONE; in hva_g_fmt_stream() 304 f->fmt.pix.colorspace = ctx->colorspace; in hva_g_fmt_stream() 305 f->fmt.pix.xfer_func = ctx->xfer_func; in hva_g_fmt_stream() 306 f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc; in hva_g_fmt_stream() 307 f->fmt.pix.quantization = ctx->quantization; in hva_g_fmt_stream() 308 f->fmt.pix.pixelformat = streaminfo->streamformat; in hva_g_fmt_stream() 309 f->fmt.pix.bytesperline = 0; in hva_g_fmt_stream() 310 f->fmt.pix.sizeimage = ctx->max_stream_size; in hva_g_fmt_stream() [all …]
|
/kernel/linux/linux-5.10/drivers/media/platform/sunxi/sun4i-csi/ |
D | sun4i_v4l2.c | 96 struct v4l2_pix_format_mplane *pix) in _sun4i_csi_try_fmt() argument 102 _fmt = sun4i_csi_find_format(&pix->pixelformat, NULL); in _sun4i_csi_try_fmt() 106 pix->field = V4L2_FIELD_NONE; in _sun4i_csi_try_fmt() 107 pix->colorspace = V4L2_COLORSPACE_SRGB; in _sun4i_csi_try_fmt() 108 pix->xfer_func = V4L2_MAP_XFER_FUNC_DEFAULT(pix->colorspace); in _sun4i_csi_try_fmt() 109 pix->ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(pix->colorspace); in _sun4i_csi_try_fmt() 110 pix->quantization = V4L2_MAP_QUANTIZATION_DEFAULT(true, pix->colorspace, in _sun4i_csi_try_fmt() 111 pix->ycbcr_enc); in _sun4i_csi_try_fmt() 113 pix->num_planes = _fmt->num_planes; in _sun4i_csi_try_fmt() 114 pix->pixelformat = _fmt->fourcc; in _sun4i_csi_try_fmt() [all …]
|
/kernel/linux/linux-5.10/drivers/media/platform/ |
D | sh_vou.c | 80 struct v4l2_pix_format pix; member 193 switch (vou_dev->pix.pixelformat) { in sh_vou_schedule_next() 196 addr2 = addr1 + vou_dev->pix.width * vou_dev->pix.height; in sh_vou_schedule_next() 215 switch (vou_dev->pix.pixelformat) { in sh_vou_stream_config() 233 sh_vou_reg_ab_write(vou_dev, VOUAIR, vou_dev->pix.width * row_coeff); in sh_vou_stream_config() 242 struct v4l2_pix_format *pix = &vou_dev->pix; in sh_vou_queue_setup() local 243 int bytes_per_line = vou_fmt[vou_dev->pix_idx].bpp * pix->width / 8; in sh_vou_queue_setup() 248 return sizes[0] < pix->height * bytes_per_line ? -EINVAL : 0; in sh_vou_queue_setup() 250 sizes[0] = pix->height * bytes_per_line; in sh_vou_queue_setup() 257 struct v4l2_pix_format *pix = &vou_dev->pix; in sh_vou_buf_prepare() local [all …]
|
D | renesas-ceu.c | 281 static bool ceu_fmt_mplane(struct v4l2_pix_format_mplane *pix) in ceu_fmt_mplane() argument 283 switch (pix->pixelformat) { in ceu_fmt_mplane() 352 struct v4l2_pix_format_mplane *pix = &ceudev->v4l2_pix; in ceu_hw_config() local 364 capwr = (pix->height << 16) | pix->width * mbus_fmt->bpp / 8; in ceu_hw_config() 393 switch (pix->pixelformat) { in ceu_hw_config() 401 cfzsr = (pix->height << 16) | pix->width; in ceu_hw_config() 402 cdwdr = pix->plane_fmt[0].bytesperline; in ceu_hw_config() 415 cfzsr = (pix->height << 16) | pix->width; in ceu_hw_config() 416 cdwdr = pix->width; in ceu_hw_config() 429 cfzsr = (pix->height << 16) | pix->width; in ceu_hw_config() [all …]
|
D | m2m-deinterlace.c | 111 (fmt->fourcc == f->fmt.pix.pixelformat)) in find_format() 492 f->fmt.pix.width = q_data->width; in vidioc_g_fmt() 493 f->fmt.pix.height = q_data->height; in vidioc_g_fmt() 494 f->fmt.pix.field = q_data->field; in vidioc_g_fmt() 495 f->fmt.pix.pixelformat = q_data->fmt->fourcc; in vidioc_g_fmt() 499 f->fmt.pix.bytesperline = q_data->width * 3 / 2; in vidioc_g_fmt() 503 f->fmt.pix.bytesperline = q_data->width * 2; in vidioc_g_fmt() 506 f->fmt.pix.sizeimage = q_data->sizeimage; in vidioc_g_fmt() 507 f->fmt.pix.colorspace = ctx->colorspace; in vidioc_g_fmt() 526 switch (f->fmt.pix.pixelformat) { in vidioc_try_fmt() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/media/imx/ |
D | imx-media-csc-scaler.c | 187 f->fmt.pix = q_data->cur_fmt; in ipu_csc_scaler_g_fmt() 200 field = f->fmt.pix.field; in ipu_csc_scaler_try_fmt() 210 test_out.pix = f->fmt.pix; in ipu_csc_scaler_try_fmt() 211 test_in.pix = q_data_in->cur_fmt; in ipu_csc_scaler_try_fmt() 216 test_in.pix = f->fmt.pix; in ipu_csc_scaler_try_fmt() 217 test_out.pix = q_data_out->cur_fmt; in ipu_csc_scaler_try_fmt() 222 f->fmt.pix = (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) ? in ipu_csc_scaler_try_fmt() 223 test_out.pix : test_in.pix; in ipu_csc_scaler_try_fmt() 226 f->fmt.pix.colorspace = q_data->cur_fmt.colorspace; in ipu_csc_scaler_try_fmt() 227 f->fmt.pix.ycbcr_enc = q_data->cur_fmt.ycbcr_enc; in ipu_csc_scaler_try_fmt() [all …]
|
/kernel/linux/linux-5.10/drivers/media/platform/ti-vpe/ |
D | vpe.c | 365 return __find_format(f->fmt.pix.pixelformat); in find_format() 1024 struct v4l2_pix_format_mplane *pix; in add_out_dtd() local 1034 pix = &q_data->format.fmt.pix_mp; in add_out_dtd() 1035 stride = ALIGN((pix->width * vpdma_fmt->depth) >> 3, in add_out_dtd() 1041 pix = &q_data->format.fmt.pix_mp; in add_out_dtd() 1047 if (pix->num_planes == 1 && plane) { in add_out_dtd() 1050 offset = pix->plane_fmt[0].bytesperline * pix->height; in add_out_dtd() 1064 stride = pix->plane_fmt[VPE_LUMA].bytesperline; in add_out_dtd() 1075 vpdma_add_out_dtd(&ctx->desc_list, pix->width, in add_out_dtd() 1088 struct v4l2_pix_format_mplane *pix; in add_in_dtd() local [all …]
|
D | cal-video.c | 268 v4l_bound_align_image(&f->fmt.pix.width, 48, max_width, 2, in cal_calc_format_size() 269 &f->fmt.pix.height, 32, MAX_HEIGHT_LINES, 0, 0); in cal_calc_format_size() 271 bpl = (f->fmt.pix.width * ALIGN(fmt->bpp, 8)) >> 3; in cal_calc_format_size() 272 f->fmt.pix.bytesperline = ALIGN(bpl, 16); in cal_calc_format_size() 274 f->fmt.pix.sizeimage = f->fmt.pix.height * in cal_calc_format_size() 275 f->fmt.pix.bytesperline; in cal_calc_format_size() 278 __func__, fourcc_to_str(f->fmt.pix.pixelformat), in cal_calc_format_size() 279 f->fmt.pix.width, f->fmt.pix.height, in cal_calc_format_size() 280 f->fmt.pix.bytesperline, f->fmt.pix.sizeimage); in cal_calc_format_size() 303 fmt = find_format_by_pix(ctx, f->fmt.pix.pixelformat); in cal_try_fmt_vid_cap() [all …]
|
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()
|
/kernel/linux/linux-5.10/drivers/media/test-drivers/ |
D | vim2m.c | 304 u16 pix = le16_to_cpu(*(__le16 *)(src[i])); in copy_two_pixels() local 306 *r++ = (u8)(((pix & 0xf800) >> 11) << 3) | 0x07; in copy_two_pixels() 307 *g++ = (u8)((((pix & 0x07e0) >> 5)) << 2) | 0x03; in copy_two_pixels() 308 *b++ = (u8)((pix & 0x1f) << 3) | 0x07; in copy_two_pixels() 313 u16 pix = be16_to_cpu(*(__be16 *)(src[i])); in copy_two_pixels() local 315 *r++ = (u8)(((pix & 0xf800) >> 11) << 3) | 0x07; in copy_two_pixels() 316 *g++ = (u8)((((pix & 0x07e0) >> 5)) << 2) | 0x03; in copy_two_pixels() 317 *b++ = (u8)((pix & 0x1f) << 3) | 0x07; in copy_two_pixels() 346 u16 pix; in copy_two_pixels() local 349 pix = ((*r << 8) & 0xf800) | ((*g << 3) & 0x07e0) | in copy_two_pixels() [all …]
|
/kernel/linux/linux-5.10/drivers/media/platform/omap/ |
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 …]
|
D | omap_vout.c | 124 static int omap_vout_try_format(struct v4l2_pix_format *pix) in omap_vout_try_format() argument 128 pix->height = clamp(pix->height, (u32)VID_MIN_HEIGHT, in omap_vout_try_format() 130 pix->width = clamp(pix->width, (u32)VID_MIN_WIDTH, (u32)VID_MAX_WIDTH); in omap_vout_try_format() 133 if (pix->pixelformat == omap_formats[ifmt].pixelformat) in omap_vout_try_format() 140 pix->pixelformat = omap_formats[ifmt].pixelformat; in omap_vout_try_format() 141 pix->field = V4L2_FIELD_NONE; in omap_vout_try_format() 143 switch (pix->pixelformat) { in omap_vout_try_format() 147 pix->colorspace = V4L2_COLORSPACE_SRGB; in omap_vout_try_format() 152 pix->colorspace = V4L2_COLORSPACE_SRGB; in omap_vout_try_format() 156 pix->colorspace = V4L2_COLORSPACE_SRGB; in omap_vout_try_format() [all …]
|
/kernel/linux/linux-5.10/drivers/media/pci/cx25821/ |
D | cx25821-video.c | 322 f->fmt.pix.width = chan->width; in cx25821_vidioc_g_fmt_vid_cap() 323 f->fmt.pix.height = chan->height; in cx25821_vidioc_g_fmt_vid_cap() 324 f->fmt.pix.field = chan->field; in cx25821_vidioc_g_fmt_vid_cap() 325 f->fmt.pix.pixelformat = chan->fmt->fourcc; in cx25821_vidioc_g_fmt_vid_cap() 326 f->fmt.pix.bytesperline = (chan->width * chan->fmt->depth) >> 3; in cx25821_vidioc_g_fmt_vid_cap() 327 f->fmt.pix.sizeimage = chan->height * f->fmt.pix.bytesperline; in cx25821_vidioc_g_fmt_vid_cap() 328 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; in cx25821_vidioc_g_fmt_vid_cap() 339 enum v4l2_field field = f->fmt.pix.field; in cx25821_vidioc_try_fmt_vid_cap() 343 fmt = cx25821_format_by_fourcc(f->fmt.pix.pixelformat); in cx25821_vidioc_try_fmt_vid_cap() 348 w = f->fmt.pix.width; in cx25821_vidioc_try_fmt_vid_cap() [all …]
|
/kernel/linux/linux-5.10/drivers/usb/gadget/function/ |
D | uvc_v4l2.c | 84 fmt->fmt.pix.pixelformat = video->fcc; in uvc_v4l2_get_format() 85 fmt->fmt.pix.width = video->width; in uvc_v4l2_get_format() 86 fmt->fmt.pix.height = video->height; in uvc_v4l2_get_format() 87 fmt->fmt.pix.field = V4L2_FIELD_NONE; in uvc_v4l2_get_format() 88 fmt->fmt.pix.bytesperline = video->bpp * video->width / 8; in uvc_v4l2_get_format() 89 fmt->fmt.pix.sizeimage = video->imagesize; in uvc_v4l2_get_format() 90 fmt->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB; in uvc_v4l2_get_format() 91 fmt->fmt.pix.priv = 0; in uvc_v4l2_get_format() 109 if (format->fcc == fmt->fmt.pix.pixelformat) in uvc_v4l2_set_format() 115 fmt->fmt.pix.pixelformat); in uvc_v4l2_set_format() [all …]
|
/kernel/linux/linux-5.10/drivers/media/usb/stk1160/ |
D | stk1160-v4l.c | 357 f->fmt.pix.width = dev->width; in vidioc_g_fmt_vid_cap() 358 f->fmt.pix.height = dev->height; in vidioc_g_fmt_vid_cap() 359 f->fmt.pix.field = V4L2_FIELD_INTERLACED; in vidioc_g_fmt_vid_cap() 360 f->fmt.pix.pixelformat = dev->fmt->fourcc; in vidioc_g_fmt_vid_cap() 361 f->fmt.pix.bytesperline = dev->width * 2; in vidioc_g_fmt_vid_cap() 362 f->fmt.pix.sizeimage = dev->height * f->fmt.pix.bytesperline; in vidioc_g_fmt_vid_cap() 363 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; in vidioc_g_fmt_vid_cap() 381 width = clamp_t(unsigned int, f->fmt.pix.width, in stk1160_try_fmt() 383 height = clamp_t(unsigned int, f->fmt.pix.height, in stk1160_try_fmt() 391 f->fmt.pix.width = base_width; in stk1160_try_fmt() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/vc04_services/bcm2835-camera/ |
D | bcm2835-camera.c | 197 if (fmt->fourcc == f->fmt.pix.pixelformat) in get_format() 916 f->fmt.pix.width = dev->capture.width; in vidioc_g_fmt_vid_cap() 917 f->fmt.pix.height = dev->capture.height; in vidioc_g_fmt_vid_cap() 918 f->fmt.pix.field = V4L2_FIELD_NONE; in vidioc_g_fmt_vid_cap() 919 f->fmt.pix.pixelformat = dev->capture.fmt->fourcc; in vidioc_g_fmt_vid_cap() 920 f->fmt.pix.bytesperline = dev->capture.stride; in vidioc_g_fmt_vid_cap() 921 f->fmt.pix.sizeimage = dev->capture.buffersize; in vidioc_g_fmt_vid_cap() 924 f->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB; in vidioc_g_fmt_vid_cap() 926 f->fmt.pix.colorspace = V4L2_COLORSPACE_JPEG; in vidioc_g_fmt_vid_cap() 928 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; in vidioc_g_fmt_vid_cap() [all …]
|
/kernel/linux/linux-5.10/drivers/media/usb/cpia2/ |
D | cpia2_v4l.c | 318 if (f->fmt.pix.pixelformat != V4L2_PIX_FMT_MJPEG && in cpia2_try_fmt_vid_cap() 319 f->fmt.pix.pixelformat != V4L2_PIX_FMT_JPEG) in cpia2_try_fmt_vid_cap() 322 f->fmt.pix.field = V4L2_FIELD_NONE; in cpia2_try_fmt_vid_cap() 323 f->fmt.pix.bytesperline = 0; in cpia2_try_fmt_vid_cap() 324 f->fmt.pix.sizeimage = cam->frame_size; in cpia2_try_fmt_vid_cap() 325 f->fmt.pix.colorspace = V4L2_COLORSPACE_JPEG; in cpia2_try_fmt_vid_cap() 327 switch (cpia2_match_video_size(f->fmt.pix.width, f->fmt.pix.height)) { in cpia2_try_fmt_vid_cap() 329 f->fmt.pix.width = 640; in cpia2_try_fmt_vid_cap() 330 f->fmt.pix.height = 480; in cpia2_try_fmt_vid_cap() 333 f->fmt.pix.width = 352; in cpia2_try_fmt_vid_cap() [all …]
|
/kernel/linux/linux-5.10/samples/v4l/ |
D | v4l2-pci-skeleton.c | 320 struct v4l2_pix_format *pix) in skeleton_fill_pix_format() argument 322 pix->pixelformat = V4L2_PIX_FMT_YUYV; in skeleton_fill_pix_format() 325 pix->width = 720; in skeleton_fill_pix_format() 326 pix->height = (skel->std & V4L2_STD_525_60) ? 480 : 576; in skeleton_fill_pix_format() 327 pix->field = V4L2_FIELD_INTERLACED; in skeleton_fill_pix_format() 328 pix->colorspace = V4L2_COLORSPACE_SMPTE170M; in skeleton_fill_pix_format() 331 pix->width = skel->timings.bt.width; in skeleton_fill_pix_format() 332 pix->height = skel->timings.bt.height; in skeleton_fill_pix_format() 334 pix->field = V4L2_FIELD_ALTERNATE; in skeleton_fill_pix_format() 335 pix->height /= 2; in skeleton_fill_pix_format() [all …]
|
/kernel/linux/linux-5.10/drivers/media/pci/saa7134/ |
D | saa7134-empress.c | 109 v4l2_fill_pix_format(&f->fmt.pix, mbus_fmt); in empress_g_fmt_vid_cap() 110 f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; in empress_g_fmt_vid_cap() 111 f->fmt.pix.sizeimage = TS_PACKET_SIZE * dev->ts.nr_packets; in empress_g_fmt_vid_cap() 112 f->fmt.pix.bytesperline = 0; in empress_g_fmt_vid_cap() 125 v4l2_fill_mbus_format(&format.format, &f->fmt.pix, MEDIA_BUS_FMT_FIXED); in empress_s_fmt_vid_cap() 127 v4l2_fill_pix_format(&f->fmt.pix, &format.format); in empress_s_fmt_vid_cap() 129 f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; in empress_s_fmt_vid_cap() 130 f->fmt.pix.sizeimage = TS_PACKET_SIZE * dev->ts.nr_packets; in empress_s_fmt_vid_cap() 131 f->fmt.pix.bytesperline = 0; in empress_s_fmt_vid_cap() 145 v4l2_fill_mbus_format(&format.format, &f->fmt.pix, MEDIA_BUS_FMT_FIXED); in empress_try_fmt_vid_cap() [all …]
|
/kernel/linux/linux-5.10/drivers/media/pci/tw68/ |
D | tw68-video.c | 576 f->fmt.pix.width = dev->width; in tw68_g_fmt_vid_cap() 577 f->fmt.pix.height = dev->height; in tw68_g_fmt_vid_cap() 578 f->fmt.pix.field = dev->field; in tw68_g_fmt_vid_cap() 579 f->fmt.pix.pixelformat = dev->fmt->fourcc; in tw68_g_fmt_vid_cap() 580 f->fmt.pix.bytesperline = in tw68_g_fmt_vid_cap() 581 (f->fmt.pix.width * (dev->fmt->depth)) >> 3; in tw68_g_fmt_vid_cap() 582 f->fmt.pix.sizeimage = in tw68_g_fmt_vid_cap() 583 f->fmt.pix.height * f->fmt.pix.bytesperline; in tw68_g_fmt_vid_cap() 584 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; in tw68_g_fmt_vid_cap() 596 fmt = format_by_fourcc(f->fmt.pix.pixelformat); in tw68_try_fmt_vid_cap() [all …]
|