Home
last modified time | relevance | path

Searched refs:pix (Results 1 – 25 of 212) sorted by relevance

123456789

/Linux-v4.19/drivers/media/pci/cobalt/
Dcobalt-v4l2.c718 struct v4l2_pix_format *pix = &f->fmt.pix; in cobalt_g_fmt_vid_cap() local
721 pix->width = s->width; in cobalt_g_fmt_vid_cap()
722 pix->height = s->height; in cobalt_g_fmt_vid_cap()
723 pix->bytesperline = s->stride; in cobalt_g_fmt_vid_cap()
724 pix->field = V4L2_FIELD_NONE; in cobalt_g_fmt_vid_cap()
727 pix->colorspace = V4L2_COLORSPACE_SRGB; in cobalt_g_fmt_vid_cap()
732 v4l2_fill_pix_format(pix, &sd_fmt.format); in cobalt_g_fmt_vid_cap()
735 pix->pixelformat = s->pixfmt; in cobalt_g_fmt_vid_cap()
736 pix->sizeimage = pix->bytesperline * pix->height; in cobalt_g_fmt_vid_cap()
745 struct v4l2_pix_format *pix = &f->fmt.pix; in cobalt_try_fmt_vid_cap() local
[all …]
/Linux-v4.19/drivers/staging/media/davinci_vpfe/
Dvpfe_mc_capture.c99 struct v4l2_pix_format *pix) in mbus_to_pix() argument
103 pix->pixelformat = V4L2_PIX_FMT_UYVY; in mbus_to_pix()
104 pix->bytesperline = pix->width * 2; in mbus_to_pix()
108 pix->pixelformat = V4L2_PIX_FMT_YUYV; in mbus_to_pix()
109 pix->bytesperline = pix->width * 2; in mbus_to_pix()
113 pix->pixelformat = V4L2_PIX_FMT_UYVY; in mbus_to_pix()
114 pix->bytesperline = pix->width * 2; in mbus_to_pix()
118 pix->pixelformat = V4L2_PIX_FMT_SBGGR16; in mbus_to_pix()
119 pix->bytesperline = pix->width * 2; in mbus_to_pix()
123 pix->pixelformat = V4L2_PIX_FMT_SGRBG10DPCM8; in mbus_to_pix()
[all …]
/Linux-v4.19/drivers/media/platform/rcar-vin/
Drcar-v4l2.c70 static u32 rvin_format_bytesperline(struct v4l2_pix_format *pix) in rvin_format_bytesperline() argument
74 fmt = rvin_format_from_pixel(pix->pixelformat); in rvin_format_bytesperline()
79 return pix->width * fmt->bpp; in rvin_format_bytesperline()
82 static u32 rvin_format_sizeimage(struct v4l2_pix_format *pix) in rvin_format_sizeimage() argument
84 if (pix->pixelformat == V4L2_PIX_FMT_NV16) in rvin_format_sizeimage()
85 return pix->bytesperline * pix->height * 2; in rvin_format_sizeimage()
87 return pix->bytesperline * pix->height; in rvin_format_sizeimage()
90 static void rvin_format_align(struct rvin_dev *vin, struct v4l2_pix_format *pix) in rvin_format_align() argument
94 if (!rvin_format_from_pixel(pix->pixelformat) || in rvin_format_align()
96 pix->pixelformat == V4L2_PIX_FMT_XBGR32)) in rvin_format_align()
[all …]
/Linux-v4.19/drivers/gpu/ipu-v3/
Dipu-cpmem.c548 #define Y_OFFSET(pix, x, y) ((x) + pix->width * (y)) argument
549 #define U_OFFSET(pix, x, y) ((pix->width * pix->height) + \ argument
550 (pix->width * ((y) / 2) / 2) + (x) / 2)
551 #define V_OFFSET(pix, x, y) ((pix->width * pix->height) + \ argument
552 (pix->width * pix->height / 4) + \
553 (pix->width * ((y) / 2) / 2) + (x) / 2)
554 #define U2_OFFSET(pix, x, y) ((pix->width * pix->height) + \ argument
555 (pix->width * (y) / 2) + (x) / 2)
556 #define V2_OFFSET(pix, x, y) ((pix->width * pix->height) + \ argument
557 (pix->width * pix->height / 2) + \
[all …]
Dipu-image-convert.c306 ic_image->base.pix.width, ic_image->base.pix.height, in dump_format()
372 tile->height = image->base.pix.height / image->num_rows; in calc_tile_dimensions()
373 tile->width = image->base.pix.width / image->num_cols; in calc_tile_dimensions()
475 H = image->base.pix.height; in calc_tile_offsets_planar()
652 tile_image.pix.width = tile_image.rect.width = width; in init_idmac_channel()
653 tile_image.pix.height = tile_image.rect.height = height; in init_idmac_channel()
654 tile_image.pix.bytesperline = stride; in init_idmac_channel()
655 tile_image.pix.pixelformat = image->fmt->fourcc; in init_idmac_channel()
1189 ic_image->fmt = get_format(image->pix.pixelformat); in fill_image()
1197 ic_image->stride = ic_image->base.pix.width; in fill_image()
[all …]
/Linux-v4.19/drivers/media/platform/sti/delta/
Ddelta-v4l2.c429 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 …]
/Linux-v4.19/drivers/media/platform/sti/hva/
Dhva-v4l2.c301 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 …]
/Linux-v4.19/drivers/media/platform/
Dsh_vou.c80 struct v4l2_pix_format pix; member
199 switch (vou_dev->pix.pixelformat) { in sh_vou_schedule_next()
202 addr2 = addr1 + vou_dev->pix.width * vou_dev->pix.height; in sh_vou_schedule_next()
221 switch (vou_dev->pix.pixelformat) { in sh_vou_stream_config()
239 sh_vou_reg_ab_write(vou_dev, VOUAIR, vou_dev->pix.width * row_coeff); in sh_vou_stream_config()
248 struct v4l2_pix_format *pix = &vou_dev->pix; in sh_vou_queue_setup() local
249 int bytes_per_line = vou_fmt[vou_dev->pix_idx].bpp * pix->width / 8; in sh_vou_queue_setup()
254 return sizes[0] < pix->height * bytes_per_line ? -EINVAL : 0; in sh_vou_queue_setup()
256 sizes[0] = pix->height * bytes_per_line; in sh_vou_queue_setup()
263 struct v4l2_pix_format *pix = &vou_dev->pix; in sh_vou_buf_prepare() local
[all …]
Drenesas-ceu.c283 static bool ceu_fmt_mplane(struct v4l2_pix_format_mplane *pix) in ceu_fmt_mplane() argument
285 switch (pix->pixelformat) { in ceu_fmt_mplane()
354 struct v4l2_pix_format_mplane *pix = &ceudev->v4l2_pix; in ceu_hw_config() local
366 capwr = (pix->height << 16) | pix->width * mbus_fmt->bpp / 8; in ceu_hw_config()
395 switch (pix->pixelformat) { in ceu_hw_config()
403 cfzsr = (pix->height << 16) | pix->width; in ceu_hw_config()
404 cdwdr = pix->plane_fmt[0].bytesperline; in ceu_hw_config()
417 cfzsr = (pix->height << 16) | pix->width; in ceu_hw_config()
418 cdwdr = pix->width; in ceu_hw_config()
431 cfzsr = (pix->height << 16) | pix->width; in ceu_hw_config()
[all …]
Dvim2m.c130 if (fmt->fourcc == f->fmt.pix.pixelformat) in find_format()
495 f->fmt.pix.width = q_data->width; in vidioc_g_fmt()
496 f->fmt.pix.height = q_data->height; in vidioc_g_fmt()
497 f->fmt.pix.field = V4L2_FIELD_NONE; in vidioc_g_fmt()
498 f->fmt.pix.pixelformat = q_data->fmt->fourcc; in vidioc_g_fmt()
499 f->fmt.pix.bytesperline = (q_data->width * q_data->fmt->depth) >> 3; in vidioc_g_fmt()
500 f->fmt.pix.sizeimage = q_data->sizeimage; in vidioc_g_fmt()
501 f->fmt.pix.colorspace = ctx->colorspace; in vidioc_g_fmt()
502 f->fmt.pix.xfer_func = ctx->xfer_func; in vidioc_g_fmt()
503 f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc; in vidioc_g_fmt()
[all …]
Dm2m-deinterlace.c118 (fmt->fourcc == f->fmt.pix.pixelformat)) in find_format()
509 f->fmt.pix.width = q_data->width; in vidioc_g_fmt()
510 f->fmt.pix.height = q_data->height; in vidioc_g_fmt()
511 f->fmt.pix.field = q_data->field; in vidioc_g_fmt()
512 f->fmt.pix.pixelformat = q_data->fmt->fourcc; in vidioc_g_fmt()
516 f->fmt.pix.bytesperline = q_data->width * 3 / 2; in vidioc_g_fmt()
520 f->fmt.pix.bytesperline = q_data->width * 2; in vidioc_g_fmt()
523 f->fmt.pix.sizeimage = q_data->sizeimage; in vidioc_g_fmt()
524 f->fmt.pix.colorspace = ctx->colorspace; in vidioc_g_fmt()
543 switch (f->fmt.pix.pixelformat) { in vidioc_try_fmt()
[all …]
/Linux-v4.19/drivers/media/platform/omap/
Domap_voutlib.c43 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()
165 int omap_vout_new_crop(struct v4l2_pix_format *pix, in omap_vout_new_crop() argument
184 try_crop.width = (try_crop.width < pix->width) ? in omap_vout_new_crop()
185 try_crop.width : pix->width; in omap_vout_new_crop()
[all …]
Domap_vout.c150 static int omap_vout_try_format(struct v4l2_pix_format *pix) in omap_vout_try_format() argument
154 pix->height = clamp(pix->height, (u32)VID_MIN_HEIGHT, in omap_vout_try_format()
156 pix->width = clamp(pix->width, (u32)VID_MIN_WIDTH, (u32)VID_MAX_WIDTH); in omap_vout_try_format()
159 if (pix->pixelformat == omap_formats[ifmt].pixelformat) in omap_vout_try_format()
166 pix->pixelformat = omap_formats[ifmt].pixelformat; in omap_vout_try_format()
167 pix->field = V4L2_FIELD_ANY; in omap_vout_try_format()
169 switch (pix->pixelformat) { in omap_vout_try_format()
173 pix->colorspace = V4L2_COLORSPACE_JPEG; in omap_vout_try_format()
178 pix->colorspace = V4L2_COLORSPACE_SRGB; in omap_vout_try_format()
182 pix->colorspace = V4L2_COLORSPACE_SRGB; in omap_vout_try_format()
[all …]
/Linux-v4.19/drivers/media/pci/cx25821/
Dcx25821-video.c336 f->fmt.pix.width = chan->width; in cx25821_vidioc_g_fmt_vid_cap()
337 f->fmt.pix.height = chan->height; in cx25821_vidioc_g_fmt_vid_cap()
338 f->fmt.pix.field = chan->field; in cx25821_vidioc_g_fmt_vid_cap()
339 f->fmt.pix.pixelformat = chan->fmt->fourcc; in cx25821_vidioc_g_fmt_vid_cap()
340 f->fmt.pix.bytesperline = (chan->width * chan->fmt->depth) >> 3; in cx25821_vidioc_g_fmt_vid_cap()
341 f->fmt.pix.sizeimage = chan->height * f->fmt.pix.bytesperline; in cx25821_vidioc_g_fmt_vid_cap()
342 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; in cx25821_vidioc_g_fmt_vid_cap()
353 enum v4l2_field field = f->fmt.pix.field; in cx25821_vidioc_try_fmt_vid_cap()
357 fmt = cx25821_format_by_fourcc(f->fmt.pix.pixelformat); in cx25821_vidioc_try_fmt_vid_cap()
362 w = f->fmt.pix.width; in cx25821_vidioc_try_fmt_vid_cap()
[all …]
/Linux-v4.19/drivers/usb/gadget/function/
Duvc_v4l2.c88 fmt->fmt.pix.pixelformat = video->fcc; in uvc_v4l2_get_format()
89 fmt->fmt.pix.width = video->width; in uvc_v4l2_get_format()
90 fmt->fmt.pix.height = video->height; in uvc_v4l2_get_format()
91 fmt->fmt.pix.field = V4L2_FIELD_NONE; in uvc_v4l2_get_format()
92 fmt->fmt.pix.bytesperline = video->bpp * video->width / 8; in uvc_v4l2_get_format()
93 fmt->fmt.pix.sizeimage = video->imagesize; in uvc_v4l2_get_format()
94 fmt->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB; in uvc_v4l2_get_format()
95 fmt->fmt.pix.priv = 0; in uvc_v4l2_get_format()
113 if (format->fcc == fmt->fmt.pix.pixelformat) in uvc_v4l2_set_format()
119 fmt->fmt.pix.pixelformat); in uvc_v4l2_set_format()
[all …]
/Linux-v4.19/drivers/media/platform/soc_camera/
Dsh_mobile_ceu_camera.c1272 struct v4l2_pix_format *pix = &f->fmt.pix; in sh_mobile_ceu_set_fmt() local
1274 __u32 pixfmt = pix->pixelformat; in sh_mobile_ceu_set_fmt()
1283 switch (pix->field) { in sh_mobile_ceu_set_fmt()
1285 pix->field = V4L2_FIELD_NONE; in sh_mobile_ceu_set_fmt()
1290 field = pix->field; in sh_mobile_ceu_set_fmt()
1304 soc_camera_calc_client_output(icd, &cam->rect, &cam->subrect, pix, &mf, 12); in sh_mobile_ceu_set_fmt()
1305 mf.field = pix->field; in sh_mobile_ceu_set_fmt()
1306 mf.colorspace = pix->colorspace; in sh_mobile_ceu_set_fmt()
1321 pix->width, pix->height); in sh_mobile_ceu_set_fmt()
1335 mf.width, mf.height, pix->width, pix->height); in sh_mobile_ceu_set_fmt()
[all …]
/Linux-v4.19/drivers/staging/vc04_services/bcm2835-camera/
Dbcm2835-camera.c217 if (fmt->fourcc == f->fmt.pix.pixelformat) in get_format()
904 f->fmt.pix.width = dev->capture.width; in vidioc_g_fmt_vid_cap()
905 f->fmt.pix.height = dev->capture.height; in vidioc_g_fmt_vid_cap()
906 f->fmt.pix.field = V4L2_FIELD_NONE; in vidioc_g_fmt_vid_cap()
907 f->fmt.pix.pixelformat = dev->capture.fmt->fourcc; in vidioc_g_fmt_vid_cap()
908 f->fmt.pix.bytesperline = dev->capture.stride; in vidioc_g_fmt_vid_cap()
909 f->fmt.pix.sizeimage = dev->capture.buffersize; in vidioc_g_fmt_vid_cap()
912 f->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB; in vidioc_g_fmt_vid_cap()
914 f->fmt.pix.colorspace = V4L2_COLORSPACE_JPEG; in vidioc_g_fmt_vid_cap()
916 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; in vidioc_g_fmt_vid_cap()
[all …]
/Linux-v4.19/drivers/media/platform/vivid/
Dvivid-vid-common.c627 const struct v4l2_pix_format *pix = &sp_fmt->fmt.pix; in fmt_sp2mp() local
633 mp->width = pix->width; in fmt_sp2mp()
634 mp->height = pix->height; in fmt_sp2mp()
635 mp->pixelformat = pix->pixelformat; in fmt_sp2mp()
636 mp->field = pix->field; in fmt_sp2mp()
637 mp->colorspace = pix->colorspace; in fmt_sp2mp()
638 mp->xfer_func = pix->xfer_func; in fmt_sp2mp()
640 mp->ycbcr_enc = pix->ycbcr_enc; in fmt_sp2mp()
641 mp->quantization = pix->quantization; in fmt_sp2mp()
643 mp->flags = pix->flags; in fmt_sp2mp()
[all …]
/Linux-v4.19/drivers/media/platform/vicodec/
Dvicodec-core.c587 struct v4l2_pix_format *pix; in vidioc_g_fmt() local
600 pix = &f->fmt.pix; in vidioc_g_fmt()
601 pix->width = q_data->width; in vidioc_g_fmt()
602 pix->height = q_data->height; in vidioc_g_fmt()
603 pix->field = V4L2_FIELD_NONE; in vidioc_g_fmt()
604 pix->pixelformat = q_data->fourcc; in vidioc_g_fmt()
606 pix->bytesperline = 0; in vidioc_g_fmt()
608 pix->bytesperline = q_data->width; in vidioc_g_fmt()
609 pix->sizeimage = q_data->sizeimage; in vidioc_g_fmt()
610 pix->colorspace = ctx->colorspace; in vidioc_g_fmt()
[all …]
/Linux-v4.19/drivers/media/usb/stk1160/
Dstk1160-v4l.c374 f->fmt.pix.width = dev->width; in vidioc_g_fmt_vid_cap()
375 f->fmt.pix.height = dev->height; in vidioc_g_fmt_vid_cap()
376 f->fmt.pix.field = V4L2_FIELD_INTERLACED; in vidioc_g_fmt_vid_cap()
377 f->fmt.pix.pixelformat = dev->fmt->fourcc; in vidioc_g_fmt_vid_cap()
378 f->fmt.pix.bytesperline = dev->width * 2; in vidioc_g_fmt_vid_cap()
379 f->fmt.pix.sizeimage = dev->height * f->fmt.pix.bytesperline; in vidioc_g_fmt_vid_cap()
380 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; in vidioc_g_fmt_vid_cap()
398 width = clamp_t(unsigned int, f->fmt.pix.width, in stk1160_try_fmt()
400 height = clamp_t(unsigned int, f->fmt.pix.height, in stk1160_try_fmt()
408 f->fmt.pix.width = base_width; in stk1160_try_fmt()
[all …]
/Linux-v4.19/samples/v4l/
Dv4l2-pci-skeleton.c318 struct v4l2_pix_format *pix) in skeleton_fill_pix_format() argument
320 pix->pixelformat = V4L2_PIX_FMT_YUYV; in skeleton_fill_pix_format()
323 pix->width = 720; in skeleton_fill_pix_format()
324 pix->height = (skel->std & V4L2_STD_525_60) ? 480 : 576; in skeleton_fill_pix_format()
325 pix->field = V4L2_FIELD_INTERLACED; in skeleton_fill_pix_format()
326 pix->colorspace = V4L2_COLORSPACE_SMPTE170M; in skeleton_fill_pix_format()
329 pix->width = skel->timings.bt.width; in skeleton_fill_pix_format()
330 pix->height = skel->timings.bt.height; in skeleton_fill_pix_format()
332 pix->field = V4L2_FIELD_ALTERNATE; in skeleton_fill_pix_format()
333 pix->height /= 2; in skeleton_fill_pix_format()
[all …]
/Linux-v4.19/drivers/media/platform/stm32/
Dstm32-dcmi.c479 size = dcmi->fmt.fmt.pix.sizeimage; in dcmi_queue_setup()
511 size = dcmi->fmt.fmt.pix.sizeimage; in dcmi_buf_prepare()
771 struct v4l2_pix_format *pix, in __find_outer_frame_size() argument
780 int w_err = (fsize->width - pix->width); in __find_outer_frame_size()
781 int h_err = (fsize->height - pix->height); in __find_outer_frame_size()
801 struct v4l2_pix_format *pix = &f->fmt.pix; in dcmi_try_fmt() local
809 sd_fmt = find_format_by_fourcc(dcmi, pix->pixelformat); in dcmi_try_fmt()
812 pix->pixelformat = sd_fmt->fourcc; in dcmi_try_fmt()
816 pix->width = clamp(pix->width, MIN_WIDTH, MAX_WIDTH); in dcmi_try_fmt()
817 pix->height = clamp(pix->height, MIN_HEIGHT, MAX_HEIGHT); in dcmi_try_fmt()
[all …]
/Linux-v4.19/drivers/media/usb/cpia2/
Dcpia2_v4l.c349 if (f->fmt.pix.pixelformat != V4L2_PIX_FMT_MJPEG && in cpia2_try_fmt_vid_cap()
350 f->fmt.pix.pixelformat != V4L2_PIX_FMT_JPEG) in cpia2_try_fmt_vid_cap()
353 f->fmt.pix.field = V4L2_FIELD_NONE; in cpia2_try_fmt_vid_cap()
354 f->fmt.pix.bytesperline = 0; in cpia2_try_fmt_vid_cap()
355 f->fmt.pix.sizeimage = cam->frame_size; in cpia2_try_fmt_vid_cap()
356 f->fmt.pix.colorspace = V4L2_COLORSPACE_JPEG; in cpia2_try_fmt_vid_cap()
357 f->fmt.pix.priv = 0; in cpia2_try_fmt_vid_cap()
359 switch (cpia2_match_video_size(f->fmt.pix.width, f->fmt.pix.height)) { in cpia2_try_fmt_vid_cap()
361 f->fmt.pix.width = 640; in cpia2_try_fmt_vid_cap()
362 f->fmt.pix.height = 480; in cpia2_try_fmt_vid_cap()
[all …]
/Linux-v4.19/drivers/media/pci/tw68/
Dtw68-video.c595 f->fmt.pix.width = dev->width; in tw68_g_fmt_vid_cap()
596 f->fmt.pix.height = dev->height; in tw68_g_fmt_vid_cap()
597 f->fmt.pix.field = dev->field; in tw68_g_fmt_vid_cap()
598 f->fmt.pix.pixelformat = dev->fmt->fourcc; in tw68_g_fmt_vid_cap()
599 f->fmt.pix.bytesperline = in tw68_g_fmt_vid_cap()
600 (f->fmt.pix.width * (dev->fmt->depth)) >> 3; in tw68_g_fmt_vid_cap()
601 f->fmt.pix.sizeimage = in tw68_g_fmt_vid_cap()
602 f->fmt.pix.height * f->fmt.pix.bytesperline; in tw68_g_fmt_vid_cap()
603 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; in tw68_g_fmt_vid_cap()
604 f->fmt.pix.priv = 0; in tw68_g_fmt_vid_cap()
[all …]
/Linux-v4.19/drivers/media/pci/saa7134/
Dsaa7134-empress.c120 v4l2_fill_pix_format(&f->fmt.pix, mbus_fmt); in empress_g_fmt_vid_cap()
121 f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; in empress_g_fmt_vid_cap()
122 f->fmt.pix.sizeimage = TS_PACKET_SIZE * dev->ts.nr_packets; in empress_g_fmt_vid_cap()
123 f->fmt.pix.bytesperline = 0; in empress_g_fmt_vid_cap()
136 v4l2_fill_mbus_format(&format.format, &f->fmt.pix, MEDIA_BUS_FMT_FIXED); in empress_s_fmt_vid_cap()
138 v4l2_fill_pix_format(&f->fmt.pix, &format.format); in empress_s_fmt_vid_cap()
140 f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; in empress_s_fmt_vid_cap()
141 f->fmt.pix.sizeimage = TS_PACKET_SIZE * dev->ts.nr_packets; in empress_s_fmt_vid_cap()
142 f->fmt.pix.bytesperline = 0; in empress_s_fmt_vid_cap()
156 v4l2_fill_mbus_format(&format.format, &f->fmt.pix, MEDIA_BUS_FMT_FIXED); in empress_try_fmt_vid_cap()
[all …]

123456789