Searched refs:pix (Results 1 - 25 of 165) sorted by relevance

1234567

/linux-master/drivers/media/platform/ti/omap/
H A Domap_voutlib.h15 void omap_vout_default_crop(struct v4l2_pix_format *pix,
18 int omap_vout_new_crop(struct v4l2_pix_format *pix,
30 void omap_vout_new_format(struct v4l2_pix_format *pix,
H A Domap_voutlib.c38 * size in pix and the video display size in fbuf. The default
43 void omap_vout_default_crop(struct v4l2_pix_format *pix, argument
46 crop->width = (pix->width < fbuf->fmt.width) ?
47 pix->width : fbuf->fmt.width;
48 crop->height = (pix->height < fbuf->fmt.height) ?
49 pix->height : fbuf->fmt.height;
52 crop->left = ((pix->width - crop->width) >> 1) & ~1;
53 crop->top = ((pix->height - crop->height) >> 1) & ~1;
169 int omap_vout_new_crop(struct v4l2_pix_format *pix, argument
188 try_crop.width = (try_crop.width < pix
285 omap_vout_new_format(struct v4l2_pix_format *pix, struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop, struct v4l2_window *win) argument
[all...]
/linux-master/drivers/media/pci/cobalt/
H A Dcobalt-v4l2.c706 struct v4l2_pix_format *pix = &f->fmt.pix; local
708 pix->width = s->width;
709 pix->height = s->height;
710 pix->bytesperline = s->stride;
711 pix->field = V4L2_FIELD_NONE;
714 pix->colorspace = V4L2_COLORSPACE_SRGB;
722 v4l2_fill_pix_format(pix, &sd_fmt.format);
725 pix->pixelformat = s->pixfmt;
726 pix
735 struct v4l2_pix_format *pix = &f->fmt.pix; local
796 struct v4l2_pix_format *pix = &f->fmt.pix; local
829 struct v4l2_pix_format *pix = &f->fmt.pix; local
871 struct v4l2_pix_format *pix = &f->fmt.pix; local
908 struct v4l2_pix_format *pix = &f->fmt.pix; local
[all...]
/linux-master/drivers/media/pci/zoran/
H A Dzoran_driver.c294 fmt->fmt.pix.width = zr->jpg_settings.img_width / zr->jpg_settings.hor_dcm;
295 fmt->fmt.pix.height = zr->jpg_settings.img_height * 2 /
297 fmt->fmt.pix.sizeimage = zr->buffer_size;
298 fmt->fmt.pix.pixelformat = V4L2_PIX_FMT_MJPEG;
300 fmt->fmt.pix.field = (zr->jpg_settings.odd_even ?
303 fmt->fmt.pix.field = (zr->jpg_settings.odd_even ?
305 fmt->fmt.pix.bytesperline = 0;
306 fmt->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M;
318 fmt->fmt.pix.width = zr->v4l_settings.width;
319 fmt->fmt.pix
[all...]
/linux-master/drivers/gpu/drm/
H A Ddrm_format_helper.c374 u32 pix; local
377 pix = le32_to_cpu(sbuf32[x]);
378 dbuf8[x] = ((pix & 0x00e00000) >> 16) |
379 ((pix & 0x0000e000) >> 11) |
380 ((pix & 0x000000c0) >> 6);
424 u32 pix; local
427 pix = le32_to_cpu(sbuf32[x]);
428 val16 = ((pix & 0x00F80000) >> 8) |
429 ((pix & 0x0000FC00) >> 5) |
430 ((pix
443 u32 pix; local
502 u32 pix; local
554 u32 pix; local
607 u32 pix; local
659 u32 pix; local
710 u32 pix; local
759 u32 pix; local
790 u32 pix; local
822 u32 pix; local
876 u32 pix; local
932 u32 pix = le32_to_cpu(sbuf32[x]); local
[all...]
/linux-master/drivers/media/platform/st/sti/hva/
H A Dhva-v4l2.c301 f->fmt.pix.width = streaminfo->width;
302 f->fmt.pix.height = streaminfo->height;
303 f->fmt.pix.field = V4L2_FIELD_NONE;
304 f->fmt.pix.colorspace = ctx->colorspace;
305 f->fmt.pix.xfer_func = ctx->xfer_func;
306 f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc;
307 f->fmt.pix.quantization = ctx->quantization;
308 f->fmt.pix.pixelformat = streaminfo->streamformat;
309 f->fmt.pix.bytesperline = 0;
310 f->fmt.pix
340 struct v4l2_pix_format *pix = &f->fmt.pix; local
404 struct v4l2_pix_format *pix = &f->fmt.pix; local
484 struct v4l2_pix_format *pix = &f->fmt.pix; local
[all...]
/linux-master/drivers/media/platform/sunxi/sun4i-csi/
H A Dsun4i_v4l2.c92 struct v4l2_pix_format_mplane *pix)
98 _fmt = sun4i_csi_find_format(&pix->pixelformat, NULL);
102 pix->field = V4L2_FIELD_NONE;
103 pix->colorspace = V4L2_COLORSPACE_SRGB;
104 pix->xfer_func = V4L2_MAP_XFER_FUNC_DEFAULT(pix->colorspace);
105 pix->ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(pix->colorspace);
106 pix->quantization = V4L2_MAP_QUANTIZATION_DEFAULT(true, pix
91 _sun4i_csi_try_fmt(struct sun4i_csi *csi, struct v4l2_pix_format_mplane *pix) argument
[all...]
/linux-master/drivers/media/platform/st/sti/delta/
H A Ddelta-v4l2.c429 struct v4l2_pix_format *pix = &f->fmt.pix; local
439 pix->pixelformat = streaminfo->streamformat;
440 pix->width = streaminfo->width;
441 pix->height = streaminfo->height;
442 pix->field = streaminfo->field;
443 pix->bytesperline = 0;
444 pix->sizeimage = ctx->max_au_size;
445 pix->colorspace = streaminfo->colorspace;
446 pix
457 struct v4l2_pix_format *pix = &f->fmt.pix; local
496 struct v4l2_pix_format *pix = &f->fmt.pix; local
550 struct v4l2_pix_format *pix = &f->fmt.pix; local
611 struct v4l2_pix_format *pix = &f->fmt.pix; local
647 struct v4l2_pix_format *pix = &f->fmt.pix; local
[all...]
/linux-master/drivers/gpu/ipu-v3/
H A Dipu-cpmem.c460 ipu_ch_param_write_field(ch, IPU_FIELD_PFS, 0xA);/* pix fmt */
465 ipu_ch_param_write_field(ch, IPU_FIELD_PFS, 0x8);/* pix fmt */
588 #define Y_OFFSET(pix, x, y) ((x) + pix->bytesperline * (y))
589 #define U_OFFSET(pix, x, y) ((pix->bytesperline * pix->height) + \
590 (pix->bytesperline * ((y) / 2) / 2) + (x) / 2)
591 #define V_OFFSET(pix, x, y) ((pix
766 struct v4l2_pix_format *pix = &image->pix; local
[all...]
/linux-master/drivers/media/platform/renesas/rcar-vin/
H A Drcar-v4l2.c121 struct v4l2_pix_format *pix)
126 fmt = rvin_format_from_pixel(vin, pix->pixelformat);
131 switch (pix->pixelformat) {
141 if (V4L2_FIELD_IS_SEQUENTIAL(pix->field))
144 return ALIGN(pix->width, align) * fmt->bpp;
147 static u32 rvin_format_sizeimage(struct v4l2_pix_format *pix) argument
149 switch (pix->pixelformat) {
151 return pix->bytesperline * pix->height * 3 / 2;
153 return pix
120 rvin_format_bytesperline(struct rvin_dev *vin, struct v4l2_pix_format *pix) argument
159 rvin_format_align(struct rvin_dev *vin, struct v4l2_pix_format *pix) argument
250 rvin_try_format(struct rvin_dev *vin, u32 which, struct v4l2_pix_format *pix, struct v4l2_rect *src_rect) argument
865 rvin_mc_try_format(struct rvin_dev *vin, struct v4l2_pix_format *pix) argument
[all...]
/linux-master/drivers/media/platform/renesas/
H A Dsh_vou.c80 struct v4l2_pix_format pix; member in struct:sh_vou_device
193 switch (vou_dev->pix.pixelformat) {
196 addr2 = addr1 + vou_dev->pix.width * vou_dev->pix.height;
215 switch (vou_dev->pix.pixelformat) {
233 sh_vou_reg_ab_write(vou_dev, VOUAIR, vou_dev->pix.width * row_coeff);
242 struct v4l2_pix_format *pix = &vou_dev->pix; local
243 int bytes_per_line = vou_fmt[vou_dev->pix_idx].bpp * pix->width / 8;
248 return sizes[0] < pix
257 struct v4l2_pix_format *pix = &vou_dev->pix; local
424 struct v4l2_pix_format *pix = &vou_dev->pix; local
655 struct v4l2_pix_format *pix = &fmt->fmt.pix; local
687 sh_vou_set_fmt_vid_out(struct sh_vou_device *vou_dev, struct v4l2_pix_format *pix) argument
932 struct v4l2_pix_format *pix = &vou_dev->pix; local
1222 struct v4l2_pix_format *pix; local
[all...]
H A Drenesas-ceu.c280 static bool ceu_fmt_mplane(struct v4l2_pix_format_mplane *pix) argument
282 switch (pix->pixelformat) {
351 struct v4l2_pix_format_mplane *pix = &ceudev->v4l2_pix; local
363 capwr = (pix->height << 16) | pix->width * mbus_fmt->bpp / 8;
392 switch (pix->pixelformat) {
400 cfzsr = (pix->height << 16) | pix->width;
401 cdwdr = pix->plane_fmt[0].bytesperline;
414 cfzsr = (pix
466 struct v4l2_pix_format_mplane *pix = &ceudev->v4l2_pix; local
577 ceu_calc_plane_sizes(struct ceu_device *ceudev, const struct ceu_fmt *ceu_fmt, struct v4l2_pix_format_mplane *pix) argument
625 struct v4l2_pix_format_mplane *pix = &ceudev->v4l2_pix; local
660 struct v4l2_pix_format_mplane *pix = &ceudev->v4l2_pix; local
784 struct v4l2_pix_format_mplane *pix = &v4l2_fmt->fmt.pix_mp; local
[all...]
/linux-master/drivers/staging/media/starfive/camss/
H A Dstf-video.c66 struct v4l2_pix_format *pix = &f->fmt.pix; local
72 fi = video_g_fi_by_pfmt(video, pix->pixelformat);
76 width = pix->width;
77 height = pix->height;
79 memset(pix, 0, sizeof(*pix));
81 pix->pixelformat = fi->pixelformat;
82 pix->width = clamp_t(u32, width, STFCAMSS_FRAME_MIN_WIDTH,
84 pix
245 struct v4l2_pix_format *pix = &video->active_fmt.fmt.pix; local
[all...]
/linux-master/drivers/staging/media/imx/
H A Dimx-media-csc-scaler.c187 f->fmt.pix = q_data->cur_fmt;
200 field = f->fmt.pix.field;
210 test_out.pix = f->fmt.pix;
211 test_in.pix = q_data_in->cur_fmt;
216 test_in.pix = f->fmt.pix;
217 test_out.pix = q_data_out->cur_fmt;
222 f->fmt.pix = (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) ?
223 test_out.pix
[all...]
/linux-master/drivers/media/platform/nxp/imx8-isi/
H A Dimx8-isi-video.c409 mxc_isi_format_try(struct mxc_isi_pipe *pipe, struct v4l2_pix_format_mplane *pix, argument
420 fmt = mxc_isi_format_by_fourcc(pix->pixelformat, type);
424 pix->width = clamp(pix->width, MXC_ISI_MIN_WIDTH, max_width);
425 pix->height = clamp(pix->height, MXC_ISI_MIN_HEIGHT, MXC_ISI_MAX_HEIGHT);
426 pix->pixelformat = fmt->fourcc;
427 pix->field = V4L2_FIELD_NONE;
429 if (pix->colorspace == V4L2_COLORSPACE_DEFAULT) {
430 pix
836 mxc_isi_video_buffer_init(struct vb2_buffer *vb2, dma_addr_t dma_addrs[3], const struct mxc_isi_format_info *info, const struct v4l2_pix_format_mplane *pix) argument
860 mxc_isi_video_buffer_prepare(struct mxc_isi_dev *isi, struct vb2_buffer *vb2, const struct mxc_isi_format_info *info, const struct v4l2_pix_format_mplane *pix) argument
1136 struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; local
1410 struct v4l2_pix_format_mplane *pix = &video->pix; local
[all...]
/linux-master/drivers/media/test-drivers/
H A Dvim2m.c299 u16 pix = le16_to_cpu(*(__le16 *)(src[i])); local
301 *r++ = (u8)(((pix & 0xf800) >> 11) << 3) | 0x07;
302 *g++ = (u8)((((pix & 0x07e0) >> 5)) << 2) | 0x03;
303 *b++ = (u8)((pix & 0x1f) << 3) | 0x07;
308 u16 pix = be16_to_cpu(*(__be16 *)(src[i])); local
310 *r++ = (u8)(((pix & 0xf800) >> 11) << 3) | 0x07;
311 *g++ = (u8)((((pix & 0x07e0) >> 5)) << 2) | 0x03;
312 *b++ = (u8)((pix & 0x1f) << 3) | 0x07;
341 u16 pix; local
344 pix
354 u16 pix; local
[all...]
/linux-master/drivers/media/platform/ti/cal/
H A Dcal-video.c173 v4l_bound_align_image(&f->fmt.pix.width, 48, max_width, 2,
174 &f->fmt.pix.height, 32, CAL_MAX_HEIGHT_LINES,
177 bpl = (f->fmt.pix.width * ALIGN(fmtinfo->bpp, 8)) >> 3;
178 f->fmt.pix.bytesperline = ALIGN(bpl, 16);
180 f->fmt.pix.sizeimage = f->fmt.pix.height *
181 f->fmt.pix.bytesperline;
184 __func__, fourcc_to_str(f->fmt.pix.pixelformat),
185 f->fmt.pix.width, f->fmt.pix
[all...]
/linux-master/drivers/media/platform/ti/vpe/
H A Dcsc.c145 const struct v4l2_pix_format *pix; local
158 pix = &src_fmt->fmt.pix;
159 src_pixelformat = pix->pixelformat;
160 src_ycbcr_enc = pix->ycbcr_enc;
161 src_quantization = pix->quantization;
170 pix = &dst_fmt->fmt.pix;
171 dst_pixelformat = pix->pixelformat;
172 dst_ycbcr_enc = pix
[all...]
H A Dvpe.c365 return __find_format(f->fmt.pix.pixelformat);
1024 struct v4l2_pix_format_mplane *pix; local
1034 pix = &q_data->format.fmt.pix_mp;
1035 stride = ALIGN((pix->width * vpdma_fmt->depth) >> 3,
1041 pix = &q_data->format.fmt.pix_mp;
1047 if (pix->num_planes == 1 && plane) {
1050 offset = pix->plane_fmt[0].bytesperline * pix->height;
1064 stride = pix->plane_fmt[VPE_LUMA].bytesperline;
1075 vpdma_add_out_dtd(&ctx->desc_list, pix
1088 struct v4l2_pix_format_mplane *pix; local
1564 struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; local
1599 struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; local
1733 struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; local
1807 struct v4l2_pix_format_mplane *pix; local
1876 struct v4l2_pix_format_mplane *pix; local
2031 struct v4l2_pix_format_mplane *pix; local
2056 struct v4l2_pix_format_mplane *pix; local
2275 struct v4l2_pix_format_mplane *pix; local
[all...]
/linux-master/drivers/media/usb/stk1160/
H A Dstk1160-v4l.c361 f->fmt.pix.width = dev->width;
362 f->fmt.pix.height = dev->height;
363 f->fmt.pix.field = V4L2_FIELD_INTERLACED;
364 f->fmt.pix.pixelformat = dev->fmt->fourcc;
365 f->fmt.pix.bytesperline = dev->width * 2;
366 f->fmt.pix.sizeimage = dev->height * f->fmt.pix.bytesperline;
367 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M;
385 width = clamp_t(unsigned int, f->fmt.pix.width,
387 height = clamp_t(unsigned int, f->fmt.pix
[all...]
/linux-master/drivers/usb/gadget/function/
H A Duvc_v4l2.c223 fmt->fmt.pix.pixelformat = video->fcc;
224 fmt->fmt.pix.width = video->width;
225 fmt->fmt.pix.height = video->height;
226 fmt->fmt.pix.field = V4L2_FIELD_NONE;
227 fmt->fmt.pix.bytesperline = video->bpp * video->width / 8;
228 fmt->fmt.pix.sizeimage = video->imagesize;
229 fmt->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB;
230 fmt->fmt.pix.priv = 0;
248 fcc = (u8 *)&fmt->fmt.pix.pixelformat;
250 fmt->fmt.pix
[all...]
/linux-master/drivers/media/pci/saa7134/
H A Dsaa7134-empress.c109 v4l2_fill_pix_format(&f->fmt.pix, mbus_fmt);
110 f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG;
111 f->fmt.pix.sizeimage = TS_PACKET_SIZE * dev->ts.nr_packets;
112 f->fmt.pix.bytesperline = 0;
125 v4l2_fill_mbus_format(&format.format, &f->fmt.pix, MEDIA_BUS_FMT_FIXED);
127 v4l2_fill_pix_format(&f->fmt.pix, &format.format);
129 f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG;
130 f->fmt.pix.sizeimage = TS_PACKET_SIZE * dev->ts.nr_packets;
131 f->fmt.pix.bytesperline = 0;
148 v4l2_fill_mbus_format(&format.format, &f->fmt.pix, MEDIA_BUS_FMT_FIXE
[all...]
/linux-master/drivers/media/platform/
H A Dm2m-deinterlace.c111 (fmt->fourcc == f->fmt.pix.pixelformat))
492 f->fmt.pix.width = q_data->width;
493 f->fmt.pix.height = q_data->height;
494 f->fmt.pix.field = q_data->field;
495 f->fmt.pix.pixelformat = q_data->fmt->fourcc;
499 f->fmt.pix.bytesperline = q_data->width * 3 / 2;
503 f->fmt.pix.bytesperline = q_data->width * 2;
506 f->fmt.pix.sizeimage = q_data->sizeimage;
507 f->fmt.pix.colorspace = ctx->colorspace;
526 switch (f->fmt.pix
[all...]
/linux-master/drivers/media/pci/cx25821/
H A Dcx25821-video.c322 f->fmt.pix.width = chan->width;
323 f->fmt.pix.height = chan->height;
324 f->fmt.pix.field = chan->field;
325 f->fmt.pix.pixelformat = chan->fmt->fourcc;
326 f->fmt.pix.bytesperline = (chan->width * chan->fmt->depth) >> 3;
327 f->fmt.pix.sizeimage = chan->height * f->fmt.pix.bytesperline;
328 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M;
339 enum v4l2_field field = f->fmt.pix.field;
343 fmt = cx25821_format_by_fourcc(f->fmt.pix
[all...]
/linux-master/drivers/media/platform/st/stm32/dma2d/
H A Ddma2d.c366 f->fmt.pix.width = frm->width;
367 f->fmt.pix.height = frm->height;
368 f->fmt.pix.field = V4L2_FIELD_NONE;
369 f->fmt.pix.pixelformat = frm->fmt->fourcc;
370 f->fmt.pix.bytesperline = (frm->width * frm->fmt->depth) >> 3;
371 f->fmt.pix.sizeimage = frm->size;
372 f->fmt.pix.colorspace = ctx->colorspace;
373 f->fmt.pix.xfer_func = ctx->xfer_func;
374 f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc;
375 f->fmt.pix
[all...]

Completed in 253 milliseconds

1234567