Lines Matching refs:pix

443 	const struct v4l2_pix_format *pix = NULL;  in queue_setup()  local
451 pix = &pfmt->fmt.pix; in queue_setup()
452 fmt = s3c_camif_find_format(vp, &pix->pixelformat, -1); in queue_setup()
455 size = (pix->width * pix->height * fmt->depth) / 8; in queue_setup()
465 if (pix) in queue_setup()
466 sizes[0] = max(size, pix->sizeimage); in queue_setup()
713 struct v4l2_pix_format *pix = &f->fmt.pix; in s3c_camif_vidioc_g_fmt() local
717 pix->bytesperline = frame->f_width * fmt->ybpp; in s3c_camif_vidioc_g_fmt()
718 pix->sizeimage = vp->payload; in s3c_camif_vidioc_g_fmt()
720 pix->pixelformat = fmt->fourcc; in s3c_camif_vidioc_g_fmt()
721 pix->width = frame->f_width; in s3c_camif_vidioc_g_fmt()
722 pix->height = frame->f_height; in s3c_camif_vidioc_g_fmt()
723 pix->field = V4L2_FIELD_NONE; in s3c_camif_vidioc_g_fmt()
724 pix->colorspace = V4L2_COLORSPACE_JPEG; in s3c_camif_vidioc_g_fmt()
730 struct v4l2_pix_format *pix, in __camif_video_try_format() argument
739 fmt = s3c_camif_find_format(vp, &pix->pixelformat, 0); in __camif_video_try_format()
750 pix->width, pix->height, crop->width, crop->height, in __camif_video_try_format()
751 pix->bytesperline); in __camif_video_try_format()
764 v4l_bound_align_image(&pix->width, wmin, pix_lim->max_sc_out_width, in __camif_video_try_format()
766 &pix->height, hmin, pix_lim->max_height, 0, 0); in __camif_video_try_format()
768 pix->bytesperline = pix->width * fmt->ybpp; in __camif_video_try_format()
769 pix->sizeimage = (pix->width * pix->height * fmt->depth) / 8; in __camif_video_try_format()
770 pix->pixelformat = fmt->fourcc; in __camif_video_try_format()
771 pix->colorspace = V4L2_COLORSPACE_JPEG; in __camif_video_try_format()
772 pix->field = V4L2_FIELD_NONE; in __camif_video_try_format()
775 pix->width, pix->height, wmin, hmin, sc_hrmax, sc_vrmax); in __camif_video_try_format()
784 return __camif_video_try_format(vp, &f->fmt.pix, NULL); in s3c_camif_vidioc_try_fmt()
790 struct v4l2_pix_format *pix = &f->fmt.pix; in s3c_camif_vidioc_s_fmt() local
801 ret = __camif_video_try_format(vp, &f->fmt.pix, &fmt); in s3c_camif_vidioc_s_fmt()
806 vp->payload = pix->sizeimage; in s3c_camif_vidioc_s_fmt()
807 out_frame->f_width = pix->width; in s3c_camif_vidioc_s_fmt()
808 out_frame->f_height = pix->height; in s3c_camif_vidioc_s_fmt()
811 out_frame->rect.width = pix->width; in s3c_camif_vidioc_s_fmt()
812 out_frame->rect.height = pix->height; in s3c_camif_vidioc_s_fmt()
821 pix->width * pix->height * fmt->depth, fmt->depth, in s3c_camif_vidioc_s_fmt()
822 pix->sizeimage, pix->bytesperline); in s3c_camif_vidioc_s_fmt()