Lines Matching refs:pix

448 	const struct v4l2_pix_format *pix = NULL;  in queue_setup()  local
456 pix = &pfmt->fmt.pix; in queue_setup()
457 fmt = s3c_camif_find_format(vp, &pix->pixelformat, -1); in queue_setup()
458 size = (pix->width * pix->height * fmt->depth) / 8; in queue_setup()
467 if (pix) in queue_setup()
468 sizes[0] = max(size, pix->sizeimage); in queue_setup()
714 struct v4l2_pix_format *pix = &f->fmt.pix; in s3c_camif_vidioc_g_fmt() local
718 pix->bytesperline = frame->f_width * fmt->ybpp; in s3c_camif_vidioc_g_fmt()
719 pix->sizeimage = vp->payload; in s3c_camif_vidioc_g_fmt()
721 pix->pixelformat = fmt->fourcc; in s3c_camif_vidioc_g_fmt()
722 pix->width = frame->f_width; in s3c_camif_vidioc_g_fmt()
723 pix->height = frame->f_height; in s3c_camif_vidioc_g_fmt()
724 pix->field = V4L2_FIELD_NONE; in s3c_camif_vidioc_g_fmt()
725 pix->colorspace = V4L2_COLORSPACE_JPEG; in s3c_camif_vidioc_g_fmt()
731 struct v4l2_pix_format *pix, in __camif_video_try_format() argument
740 fmt = s3c_camif_find_format(vp, &pix->pixelformat, 0); in __camif_video_try_format()
751 pix->width, pix->height, crop->width, crop->height, in __camif_video_try_format()
752 pix->bytesperline); in __camif_video_try_format()
765 v4l_bound_align_image(&pix->width, wmin, pix_lim->max_sc_out_width, in __camif_video_try_format()
767 &pix->height, hmin, pix_lim->max_height, 0, 0); in __camif_video_try_format()
769 pix->bytesperline = pix->width * fmt->ybpp; in __camif_video_try_format()
770 pix->sizeimage = (pix->width * pix->height * fmt->depth) / 8; in __camif_video_try_format()
771 pix->pixelformat = fmt->fourcc; in __camif_video_try_format()
772 pix->colorspace = V4L2_COLORSPACE_JPEG; in __camif_video_try_format()
773 pix->field = V4L2_FIELD_NONE; in __camif_video_try_format()
776 pix->width, pix->height, wmin, hmin, sc_hrmax, sc_vrmax); in __camif_video_try_format()
785 return __camif_video_try_format(vp, &f->fmt.pix, NULL); in s3c_camif_vidioc_try_fmt()
791 struct v4l2_pix_format *pix = &f->fmt.pix; in s3c_camif_vidioc_s_fmt() local
802 ret = __camif_video_try_format(vp, &f->fmt.pix, &fmt); in s3c_camif_vidioc_s_fmt()
807 vp->payload = pix->sizeimage; in s3c_camif_vidioc_s_fmt()
808 out_frame->f_width = pix->width; in s3c_camif_vidioc_s_fmt()
809 out_frame->f_height = pix->height; in s3c_camif_vidioc_s_fmt()
812 out_frame->rect.width = pix->width; in s3c_camif_vidioc_s_fmt()
813 out_frame->rect.height = pix->height; in s3c_camif_vidioc_s_fmt()
822 pix->width * pix->height * fmt->depth, fmt->depth, in s3c_camif_vidioc_s_fmt()
823 pix->sizeimage, pix->bytesperline); in s3c_camif_vidioc_s_fmt()