Lines Matching refs:pix

809 static u32 rzg2l_cru_format_bytesperline(struct v4l2_pix_format *pix)  in rzg2l_cru_format_bytesperline()  argument
813 fmt = rzg2l_cru_format_from_pixel(pix->pixelformat); in rzg2l_cru_format_bytesperline()
818 return pix->width * fmt->bpp[0]; in rzg2l_cru_format_bytesperline()
821 static u32 rzg2l_cru_format_sizeimage(struct v4l2_pix_format *pix) in rzg2l_cru_format_sizeimage() argument
823 return pix->bytesperline * pix->height; in rzg2l_cru_format_sizeimage()
827 struct v4l2_pix_format *pix) in rzg2l_cru_format_align() argument
829 if (!rzg2l_cru_format_from_pixel(pix->pixelformat)) in rzg2l_cru_format_align()
830 pix->pixelformat = RZG2L_CRU_DEFAULT_FORMAT; in rzg2l_cru_format_align()
832 switch (pix->field) { in rzg2l_cru_format_align()
841 pix->field = RZG2L_CRU_DEFAULT_FIELD; in rzg2l_cru_format_align()
846 v4l_bound_align_image(&pix->width, 320, RZG2L_CRU_MAX_INPUT_WIDTH, 1, in rzg2l_cru_format_align()
847 &pix->height, 240, RZG2L_CRU_MAX_INPUT_HEIGHT, 2, 0); in rzg2l_cru_format_align()
849 pix->bytesperline = rzg2l_cru_format_bytesperline(pix); in rzg2l_cru_format_align()
850 pix->sizeimage = rzg2l_cru_format_sizeimage(pix); in rzg2l_cru_format_align()
853 pix->width, pix->height, pix->bytesperline, pix->sizeimage); in rzg2l_cru_format_align()
857 struct v4l2_pix_format *pix) in rzg2l_cru_try_format() argument
865 pix->colorspace = RZG2L_CRU_DEFAULT_COLORSPACE; in rzg2l_cru_try_format()
866 pix->xfer_func = V4L2_MAP_XFER_FUNC_DEFAULT(pix->colorspace); in rzg2l_cru_try_format()
867 pix->ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(pix->colorspace); in rzg2l_cru_try_format()
868 pix->quantization = V4L2_MAP_QUANTIZATION_DEFAULT(true, pix->colorspace, in rzg2l_cru_try_format()
869 pix->ycbcr_enc); in rzg2l_cru_try_format()
871 rzg2l_cru_format_align(cru, pix); in rzg2l_cru_try_format()
888 rzg2l_cru_try_format(cru, &f->fmt.pix); in rzg2l_cru_try_fmt_vid_cap()
901 rzg2l_cru_try_format(cru, &f->fmt.pix); in rzg2l_cru_s_fmt_vid_cap()
903 cru->format = f->fmt.pix; in rzg2l_cru_s_fmt_vid_cap()
913 f->fmt.pix = cru->format; in rzg2l_cru_g_fmt_vid_cap()