Home
last modified time | relevance | path

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

12345678910

/linux-6.6.21/drivers/gpu/drm/
Ddrm_format_helper.c280 u32 pix; in drm_fb_xrgb8888_to_rgb332_line() local
283 pix = le32_to_cpu(sbuf32[x]); in drm_fb_xrgb8888_to_rgb332_line()
284 dbuf8[x] = ((pix & 0x00e00000) >> 16) | in drm_fb_xrgb8888_to_rgb332_line()
285 ((pix & 0x0000e000) >> 11) | in drm_fb_xrgb8888_to_rgb332_line()
286 ((pix & 0x000000c0) >> 6); in drm_fb_xrgb8888_to_rgb332_line()
329 u32 pix; in drm_fb_xrgb8888_to_rgb565_line() local
332 pix = le32_to_cpu(sbuf32[x]); in drm_fb_xrgb8888_to_rgb565_line()
333 val16 = ((pix & 0x00F80000) >> 8) | in drm_fb_xrgb8888_to_rgb565_line()
334 ((pix & 0x0000FC00) >> 5) | in drm_fb_xrgb8888_to_rgb565_line()
335 ((pix & 0x000000F8) >> 3); in drm_fb_xrgb8888_to_rgb565_line()
[all …]
/linux-6.6.21/drivers/media/pci/cobalt/
Dcobalt-v4l2.c710 struct v4l2_pix_format *pix = &f->fmt.pix; in cobalt_g_fmt_vid_cap() local
712 pix->width = s->width; in cobalt_g_fmt_vid_cap()
713 pix->height = s->height; in cobalt_g_fmt_vid_cap()
714 pix->bytesperline = s->stride; in cobalt_g_fmt_vid_cap()
715 pix->field = V4L2_FIELD_NONE; in cobalt_g_fmt_vid_cap()
718 pix->colorspace = V4L2_COLORSPACE_SRGB; in cobalt_g_fmt_vid_cap()
726 v4l2_fill_pix_format(pix, &sd_fmt.format); in cobalt_g_fmt_vid_cap()
729 pix->pixelformat = s->pixfmt; in cobalt_g_fmt_vid_cap()
730 pix->sizeimage = pix->bytesperline * pix->height; in cobalt_g_fmt_vid_cap()
739 struct v4l2_pix_format *pix = &f->fmt.pix; in cobalt_try_fmt_vid_cap() local
[all …]
/linux-6.6.21/drivers/media/pci/zoran/
Dzoran_driver.c294 fmt->fmt.pix.width = zr->jpg_settings.img_width / zr->jpg_settings.hor_dcm; in zoran_g_fmt_vid_out()
295 fmt->fmt.pix.height = zr->jpg_settings.img_height * 2 / in zoran_g_fmt_vid_out()
297 fmt->fmt.pix.sizeimage = zr->buffer_size; in zoran_g_fmt_vid_out()
298 fmt->fmt.pix.pixelformat = V4L2_PIX_FMT_MJPEG; in zoran_g_fmt_vid_out()
300 fmt->fmt.pix.field = (zr->jpg_settings.odd_even ? in zoran_g_fmt_vid_out()
303 fmt->fmt.pix.field = (zr->jpg_settings.odd_even ? in zoran_g_fmt_vid_out()
305 fmt->fmt.pix.bytesperline = 0; in zoran_g_fmt_vid_out()
306 fmt->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; in zoran_g_fmt_vid_out()
318 fmt->fmt.pix.width = zr->v4l_settings.width; in zoran_g_fmt_vid_cap()
319 fmt->fmt.pix.height = zr->v4l_settings.height; in zoran_g_fmt_vid_cap()
[all …]
/linux-6.6.21/drivers/gpu/ipu-v3/
Dipu-cpmem.c588 #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 …]
/linux-6.6.21/drivers/media/platform/renesas/rcar-vin/
Drcar-v4l2.c121 struct v4l2_pix_format *pix) in rvin_format_bytesperline() argument
126 fmt = rvin_format_from_pixel(vin, pix->pixelformat); in rvin_format_bytesperline()
131 switch (pix->pixelformat) { in rvin_format_bytesperline()
141 if (V4L2_FIELD_IS_SEQUENTIAL(pix->field)) in rvin_format_bytesperline()
144 return ALIGN(pix->width, align) * fmt->bpp; in rvin_format_bytesperline()
147 static u32 rvin_format_sizeimage(struct v4l2_pix_format *pix) in rvin_format_sizeimage() argument
149 switch (pix->pixelformat) { in rvin_format_sizeimage()
151 return pix->bytesperline * pix->height * 3 / 2; in rvin_format_sizeimage()
153 return pix->bytesperline * pix->height * 2; in rvin_format_sizeimage()
155 return pix->bytesperline * pix->height; in rvin_format_sizeimage()
[all …]
/linux-6.6.21/drivers/media/platform/st/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-6.6.21/drivers/media/platform/st/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-6.6.21/drivers/media/platform/renesas/
Dsh_vou.c80 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 …]
Drenesas-ceu.c280 static bool ceu_fmt_mplane(struct v4l2_pix_format_mplane *pix) in ceu_fmt_mplane() argument
282 switch (pix->pixelformat) { in ceu_fmt_mplane()
351 struct v4l2_pix_format_mplane *pix = &ceudev->v4l2_pix; in ceu_hw_config() local
363 capwr = (pix->height << 16) | pix->width * mbus_fmt->bpp / 8; in ceu_hw_config()
392 switch (pix->pixelformat) { in ceu_hw_config()
400 cfzsr = (pix->height << 16) | pix->width; in ceu_hw_config()
401 cdwdr = pix->plane_fmt[0].bytesperline; in ceu_hw_config()
414 cfzsr = (pix->height << 16) | pix->width; in ceu_hw_config()
415 cdwdr = pix->width; in ceu_hw_config()
428 cfzsr = (pix->height << 16) | pix->width; in ceu_hw_config()
[all …]
/linux-6.6.21/drivers/media/platform/nxp/imx8-isi/
Dimx8-isi-video.c409 mxc_isi_format_try(struct mxc_isi_pipe *pipe, struct v4l2_pix_format_mplane *pix, in mxc_isi_format_try() argument
420 fmt = mxc_isi_format_by_fourcc(pix->pixelformat, type); in mxc_isi_format_try()
424 pix->width = clamp(pix->width, MXC_ISI_MIN_WIDTH, max_width); in mxc_isi_format_try()
425 pix->height = clamp(pix->height, MXC_ISI_MIN_HEIGHT, MXC_ISI_MAX_HEIGHT); in mxc_isi_format_try()
426 pix->pixelformat = fmt->fourcc; in mxc_isi_format_try()
427 pix->field = V4L2_FIELD_NONE; in mxc_isi_format_try()
429 if (pix->colorspace == V4L2_COLORSPACE_DEFAULT) { in mxc_isi_format_try()
430 pix->colorspace = MXC_ISI_DEF_COLOR_SPACE; in mxc_isi_format_try()
431 pix->ycbcr_enc = MXC_ISI_DEF_YCBCR_ENC; in mxc_isi_format_try()
432 pix->quantization = MXC_ISI_DEF_QUANTIZATION; in mxc_isi_format_try()
[all …]
/linux-6.6.21/drivers/media/platform/st/stm32/dma2d/
Ddma2d.c366 f->fmt.pix.width = frm->width; in vidioc_g_fmt()
367 f->fmt.pix.height = frm->height; in vidioc_g_fmt()
368 f->fmt.pix.field = V4L2_FIELD_NONE; in vidioc_g_fmt()
369 f->fmt.pix.pixelformat = frm->fmt->fourcc; in vidioc_g_fmt()
370 f->fmt.pix.bytesperline = (frm->width * frm->fmt->depth) >> 3; in vidioc_g_fmt()
371 f->fmt.pix.sizeimage = frm->size; in vidioc_g_fmt()
372 f->fmt.pix.colorspace = ctx->colorspace; in vidioc_g_fmt()
373 f->fmt.pix.xfer_func = ctx->xfer_func; in vidioc_g_fmt()
374 f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc; in vidioc_g_fmt()
375 f->fmt.pix.quantization = ctx->quant; in vidioc_g_fmt()
[all …]
/linux-6.6.21/drivers/staging/media/imx/
Dimx-media-csc-scaler.c187 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 …]
/linux-6.6.21/drivers/media/platform/sunxi/sun4i-csi/
Dsun4i_v4l2.c92 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-6.6.21/drivers/media/platform/ti/vpe/
Dvpe.c365 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 …]
/linux-6.6.21/drivers/media/test-drivers/
Dvim2m.c299 u16 pix = le16_to_cpu(*(__le16 *)(src[i])); in copy_two_pixels() local
301 *r++ = (u8)(((pix & 0xf800) >> 11) << 3) | 0x07; in copy_two_pixels()
302 *g++ = (u8)((((pix & 0x07e0) >> 5)) << 2) | 0x03; in copy_two_pixels()
303 *b++ = (u8)((pix & 0x1f) << 3) | 0x07; in copy_two_pixels()
308 u16 pix = be16_to_cpu(*(__be16 *)(src[i])); in copy_two_pixels() local
310 *r++ = (u8)(((pix & 0xf800) >> 11) << 3) | 0x07; in copy_two_pixels()
311 *g++ = (u8)((((pix & 0x07e0) >> 5)) << 2) | 0x03; in copy_two_pixels()
312 *b++ = (u8)((pix & 0x1f) << 3) | 0x07; in copy_two_pixels()
341 u16 pix; in copy_two_pixels() local
344 pix = ((*r << 8) & 0xf800) | ((*g << 3) & 0x07e0) | in copy_two_pixels()
[all …]
/linux-6.6.21/drivers/media/platform/ti/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()
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 …]
Domap_vout.c124 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 …]
/linux-6.6.21/drivers/media/pci/cx25821/
Dcx25821-video.c322 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 …]
/linux-6.6.21/drivers/media/platform/ti/cal/
Dcal-video.c173 v4l_bound_align_image(&f->fmt.pix.width, 48, max_width, 2, in cal_calc_format_size()
174 &f->fmt.pix.height, 32, CAL_MAX_HEIGHT_LINES, in cal_calc_format_size()
177 bpl = (f->fmt.pix.width * ALIGN(fmtinfo->bpp, 8)) >> 3; in cal_calc_format_size()
178 f->fmt.pix.bytesperline = ALIGN(bpl, 16); in cal_calc_format_size()
180 f->fmt.pix.sizeimage = f->fmt.pix.height * in cal_calc_format_size()
181 f->fmt.pix.bytesperline; in cal_calc_format_size()
184 __func__, fourcc_to_str(f->fmt.pix.pixelformat), in cal_calc_format_size()
185 f->fmt.pix.width, f->fmt.pix.height, in cal_calc_format_size()
186 f->fmt.pix.bytesperline, f->fmt.pix.sizeimage); in cal_calc_format_size()
199 fmtinfo = find_format_by_pix(ctx, f->fmt.pix.pixelformat); in cal_legacy_try_fmt_vid_cap()
[all …]
/linux-6.6.21/drivers/media/platform/renesas/rzg2l-cru/
Drzg2l-video.c809 static u32 rzg2l_cru_format_bytesperline(struct v4l2_pix_format *pix) in rzg2l_cru_format_bytesperline() argument
813 fmt = rzg2l_cru_format_from_pixel(pix->pixelformat); in rzg2l_cru_format_bytesperline()
818 return pix->width * fmt->bpp[0]; in rzg2l_cru_format_bytesperline()
821 static u32 rzg2l_cru_format_sizeimage(struct v4l2_pix_format *pix) in rzg2l_cru_format_sizeimage() argument
823 return pix->bytesperline * pix->height; in rzg2l_cru_format_sizeimage()
827 struct v4l2_pix_format *pix) in rzg2l_cru_format_align() argument
829 if (!rzg2l_cru_format_from_pixel(pix->pixelformat)) in rzg2l_cru_format_align()
830 pix->pixelformat = RZG2L_CRU_DEFAULT_FORMAT; in rzg2l_cru_format_align()
832 switch (pix->field) { in rzg2l_cru_format_align()
841 pix->field = RZG2L_CRU_DEFAULT_FIELD; in rzg2l_cru_format_align()
[all …]
/linux-6.6.21/drivers/media/common/saa7146/
Dsaa7146_video.c93 struct v4l2_pix_format *pix = &vv->video_fmt; in saa7146_pgtable_build() local
94 struct saa7146_format *sfmt = saa7146_format_by_fourcc(dev, pix->pixelformat); in saa7146_pgtable_build()
106 int size = pix->width * pix->height; in saa7146_pgtable_build()
345 f->fmt.pix = vv->video_fmt; in vidioc_g_fmt_vid_cap()
369 fmt = saa7146_format_by_fourcc(dev, f->fmt.pix.pixelformat); in vidioc_try_fmt_vid_cap()
373 field = f->fmt.pix.field; in vidioc_try_fmt_vid_cap()
378 field = (f->fmt.pix.height > maxh / 2) in vidioc_try_fmt_vid_cap()
393 f->fmt.pix.field = field; in vidioc_try_fmt_vid_cap()
394 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; in vidioc_try_fmt_vid_cap()
395 if (f->fmt.pix.width < 48) in vidioc_try_fmt_vid_cap()
[all …]
/linux-6.6.21/drivers/media/platform/
Dm2m-deinterlace.c111 (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 …]
/linux-6.6.21/drivers/media/usb/stk1160/
Dstk1160-v4l.c361 f->fmt.pix.width = dev->width; in vidioc_g_fmt_vid_cap()
362 f->fmt.pix.height = dev->height; in vidioc_g_fmt_vid_cap()
363 f->fmt.pix.field = V4L2_FIELD_INTERLACED; in vidioc_g_fmt_vid_cap()
364 f->fmt.pix.pixelformat = dev->fmt->fourcc; in vidioc_g_fmt_vid_cap()
365 f->fmt.pix.bytesperline = dev->width * 2; in vidioc_g_fmt_vid_cap()
366 f->fmt.pix.sizeimage = dev->height * f->fmt.pix.bytesperline; in vidioc_g_fmt_vid_cap()
367 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; in vidioc_g_fmt_vid_cap()
385 width = clamp_t(unsigned int, f->fmt.pix.width, in stk1160_try_fmt()
387 height = clamp_t(unsigned int, f->fmt.pix.height, in stk1160_try_fmt()
395 f->fmt.pix.width = base_width; in stk1160_try_fmt()
[all …]
/linux-6.6.21/drivers/usb/gadget/function/
Duvc_v4l2.c223 fmt->fmt.pix.pixelformat = video->fcc; in uvc_v4l2_get_format()
224 fmt->fmt.pix.width = video->width; in uvc_v4l2_get_format()
225 fmt->fmt.pix.height = video->height; in uvc_v4l2_get_format()
226 fmt->fmt.pix.field = V4L2_FIELD_NONE; in uvc_v4l2_get_format()
227 fmt->fmt.pix.bytesperline = video->bpp * video->width / 8; in uvc_v4l2_get_format()
228 fmt->fmt.pix.sizeimage = video->imagesize; in uvc_v4l2_get_format()
229 fmt->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB; in uvc_v4l2_get_format()
230 fmt->fmt.pix.priv = 0; in uvc_v4l2_get_format()
248 fcc = (u8 *)&fmt->fmt.pix.pixelformat; in uvc_v4l2_try_format()
250 fmt->fmt.pix.pixelformat, in uvc_v4l2_try_format()
[all …]
/linux-6.6.21/drivers/staging/vc04_services/bcm2835-camera/
Dbcm2835-camera.c195 if (fmt->fourcc == f->fmt.pix.pixelformat) in get_format()
912 f->fmt.pix.width = dev->capture.width; in vidioc_g_fmt_vid_cap()
913 f->fmt.pix.height = dev->capture.height; in vidioc_g_fmt_vid_cap()
914 f->fmt.pix.field = V4L2_FIELD_NONE; in vidioc_g_fmt_vid_cap()
915 f->fmt.pix.pixelformat = dev->capture.fmt->fourcc; in vidioc_g_fmt_vid_cap()
916 f->fmt.pix.bytesperline = dev->capture.stride; in vidioc_g_fmt_vid_cap()
917 f->fmt.pix.sizeimage = dev->capture.buffersize; in vidioc_g_fmt_vid_cap()
920 f->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB; in vidioc_g_fmt_vid_cap()
922 f->fmt.pix.colorspace = V4L2_COLORSPACE_JPEG; in vidioc_g_fmt_vid_cap()
924 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; in vidioc_g_fmt_vid_cap()
[all …]

12345678910