Lines Matching refs:pix
143 struct v4l2_pix_format *pix) in isp_video_mbus_to_pix() argument
145 unsigned int bpl = pix->bytesperline; in isp_video_mbus_to_pix()
149 memset(pix, 0, sizeof(*pix)); in isp_video_mbus_to_pix()
150 pix->width = mbus->width; in isp_video_mbus_to_pix()
151 pix->height = mbus->height; in isp_video_mbus_to_pix()
161 min_bpl = pix->width * formats[i].bpp; in isp_video_mbus_to_pix()
175 pix->pixelformat = formats[i].pixelformat; in isp_video_mbus_to_pix()
176 pix->bytesperline = bpl; in isp_video_mbus_to_pix()
177 pix->sizeimage = pix->bytesperline * pix->height; in isp_video_mbus_to_pix()
178 pix->colorspace = mbus->colorspace; in isp_video_mbus_to_pix()
179 pix->field = mbus->field; in isp_video_mbus_to_pix()
184 static void isp_video_pix_to_mbus(const struct v4l2_pix_format *pix, in isp_video_pix_to_mbus() argument
190 mbus->width = pix->width; in isp_video_pix_to_mbus()
191 mbus->height = pix->height; in isp_video_pix_to_mbus()
197 if (formats[i].pixelformat == pix->pixelformat) in isp_video_pix_to_mbus()
202 mbus->colorspace = pix->colorspace; in isp_video_pix_to_mbus()
203 mbus->field = pix->field; in isp_video_pix_to_mbus()
293 return isp_video_mbus_to_pix(video, &fmt.format, &format->fmt.pix); in __isp_video_get_format()
307 if (vfh->format.fmt.pix.pixelformat != format.fmt.pix.pixelformat || in isp_video_check_format()
308 vfh->format.fmt.pix.height != format.fmt.pix.height || in isp_video_check_format()
309 vfh->format.fmt.pix.width != format.fmt.pix.width || in isp_video_check_format()
310 vfh->format.fmt.pix.bytesperline != format.fmt.pix.bytesperline || in isp_video_check_format()
311 vfh->format.fmt.pix.sizeimage != format.fmt.pix.sizeimage || in isp_video_check_format()
312 vfh->format.fmt.pix.field != format.fmt.pix.field) in isp_video_check_format()
332 sizes[0] = vfh->format.fmt.pix.sizeimage; in isp_video_queue_setup()
368 vfh->format.fmt.pix.sizeimage); in isp_video_buffer_prepare()
642 switch (format->fmt.pix.field) { in isp_video_set_format()
649 format->fmt.pix.field = V4L2_FIELD_NONE; in isp_video_set_format()
656 format->fmt.pix.field = V4L2_FIELD_INTERLACED_TB; in isp_video_set_format()
662 format->fmt.pix.field = V4L2_FIELD_NONE; in isp_video_set_format()
672 format->fmt.pix.field = V4L2_FIELD_NONE; in isp_video_set_format()
679 isp_video_pix_to_mbus(&format->fmt.pix, &fmt); in isp_video_set_format()
680 isp_video_mbus_to_pix(video, &fmt, &format->fmt.pix); in isp_video_set_format()
705 isp_video_pix_to_mbus(&format->fmt.pix, &fmt.format); in isp_video_try_format()
713 isp_video_mbus_to_pix(video, &fmt.format, &format->fmt.pix); in isp_video_try_format()
1040 video->bpl_value = vfh->format.fmt.pix.bytesperline; in isp_video_streamon()
1072 pipe->field = vfh->format.fmt.pix.field; in isp_video_streamon()