Lines Matching refs:pix
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
258 unsigned bytes_per_line = vou_fmt[vou_dev->pix_idx].bpp * pix->width / 8; in sh_vou_buf_prepare()
259 unsigned size = pix->height * bytes_per_line; in sh_vou_buf_prepare()
405 fmt->fmt.pix = vou_dev->pix; in sh_vou_g_fmt_vid_out()
424 struct v4l2_pix_format *pix = &vou_dev->pix; in sh_vou_configure_geometry() local
435 frame_in_height = pix->height / 2; in sh_vou_configure_geometry()
466 pix->width, frame_in_height, black_left, black_top, in sh_vou_configure_geometry()
470 sh_vou_reg_ab_write(vou_dev, VOUISR, (pix->width << 16) | frame_in_height); in sh_vou_configure_geometry()
655 struct v4l2_pix_format *pix = &fmt->fmt.pix; in sh_vou_try_fmt_vid_out() local
661 pix->field = V4L2_FIELD_INTERLACED; in sh_vou_try_fmt_vid_out()
662 pix->colorspace = V4L2_COLORSPACE_SMPTE170M; in sh_vou_try_fmt_vid_out()
663 pix->ycbcr_enc = pix->quantization = 0; in sh_vou_try_fmt_vid_out()
666 if (vou_fmt[pix_idx].pfmt == pix->pixelformat) in sh_vou_try_fmt_vid_out()
677 v4l_bound_align_image(&pix->width, in sh_vou_try_fmt_vid_out()
679 &pix->height, in sh_vou_try_fmt_vid_out()
681 pix->bytesperline = pix->width * vou_fmt[pix_idx].bpl; in sh_vou_try_fmt_vid_out()
682 pix->sizeimage = pix->height * ((pix->width * vou_fmt[pix_idx].bpp) >> 3); in sh_vou_try_fmt_vid_out()
688 struct v4l2_pix_format *pix) in sh_vou_set_fmt_vid_out() argument
707 if (vou_fmt[pix_idx].pfmt == pix->pixelformat) in sh_vou_set_fmt_vid_out()
710 geo.in_width = pix->width; in sh_vou_set_fmt_vid_out()
711 geo.in_height = pix->height; in sh_vou_set_fmt_vid_out()
748 pix->width = geo.in_width; in sh_vou_set_fmt_vid_out()
749 pix->height = geo.in_height; in sh_vou_set_fmt_vid_out()
752 pix->width, pix->height); in sh_vou_set_fmt_vid_out()
756 vou_dev->pix = *pix; in sh_vou_set_fmt_vid_out()
772 return sh_vou_set_fmt_vid_out(vou_dev, &fmt->fmt.pix); in sh_vou_s_fmt_vid_out()
845 vou_dev->pix.width = vou_dev->rect.width; in sh_vou_s_std()
846 vou_dev->pix.height = vou_dev->rect.height; in sh_vou_s_std()
847 vou_dev->pix.bytesperline = in sh_vou_s_std()
848 vou_dev->pix.width * vou_fmt[vou_dev->pix_idx].bpl; in sh_vou_s_std()
849 vou_dev->pix.sizeimage = vou_dev->pix.height * in sh_vou_s_std()
850 ((vou_dev->pix.width * vou_fmt[vou_dev->pix_idx].bpp) >> 3); in sh_vou_s_std()
852 sh_vou_set_fmt_vid_out(vou_dev, &vou_dev->pix); in sh_vou_s_std()
932 struct v4l2_pix_format *pix = &vou_dev->pix; in sh_vou_s_selection() local
968 geo.in_width = pix->width; in sh_vou_s_selection()
969 geo.in_height = pix->height; in sh_vou_s_selection()
1005 pix->width = geo.in_width; in sh_vou_s_selection()
1006 pix->height = geo.in_height; in sh_vou_s_selection()
1116 sh_vou_set_fmt_vid_out(vou_dev, &vou_dev->pix); in sh_vou_hw_init()
1222 struct v4l2_pix_format *pix; in sh_vou_probe() local
1251 pix = &vou_dev->pix; in sh_vou_probe()
1259 pix->width = VOU_MAX_IMAGE_WIDTH; in sh_vou_probe()
1260 pix->height = 480; in sh_vou_probe()
1261 pix->pixelformat = V4L2_PIX_FMT_NV16; in sh_vou_probe()
1262 pix->field = V4L2_FIELD_INTERLACED; in sh_vou_probe()
1263 pix->bytesperline = VOU_MAX_IMAGE_WIDTH; in sh_vou_probe()
1264 pix->sizeimage = VOU_MAX_IMAGE_WIDTH * 2 * 480; in sh_vou_probe()
1265 pix->colorspace = V4L2_COLORSPACE_SMPTE170M; in sh_vou_probe()