Lines Matching full:pix

706 	struct v4l2_pix_format *pix = &f->fmt.pix;  in cobalt_g_fmt_vid_cap()  local
708 pix->width = s->width; in cobalt_g_fmt_vid_cap()
709 pix->height = s->height; in cobalt_g_fmt_vid_cap()
710 pix->bytesperline = s->stride; in cobalt_g_fmt_vid_cap()
711 pix->field = V4L2_FIELD_NONE; in cobalt_g_fmt_vid_cap()
714 pix->colorspace = V4L2_COLORSPACE_SRGB; in cobalt_g_fmt_vid_cap()
722 v4l2_fill_pix_format(pix, &sd_fmt.format); in cobalt_g_fmt_vid_cap()
725 pix->pixelformat = s->pixfmt; in cobalt_g_fmt_vid_cap()
726 pix->sizeimage = pix->bytesperline * pix->height; in cobalt_g_fmt_vid_cap()
735 struct v4l2_pix_format *pix = &f->fmt.pix; in cobalt_try_fmt_vid_cap() local
738 if ((pix->width < 176) || (pix->height < 144)) { in cobalt_try_fmt_vid_cap()
739 pix->width = 176; in cobalt_try_fmt_vid_cap()
740 pix->height = 144; in cobalt_try_fmt_vid_cap()
743 if ((pix->width > 1920) || (pix->height > 1080)) { in cobalt_try_fmt_vid_cap()
744 pix->width = 1920; in cobalt_try_fmt_vid_cap()
745 pix->height = 1080; in cobalt_try_fmt_vid_cap()
749 pix->width &= ~0x3; in cobalt_try_fmt_vid_cap()
752 pix->height &= ~0x1; in cobalt_try_fmt_vid_cap()
756 pix->width = 1920; in cobalt_try_fmt_vid_cap()
757 pix->height = 1080; in cobalt_try_fmt_vid_cap()
758 pix->colorspace = V4L2_COLORSPACE_SRGB; in cobalt_try_fmt_vid_cap()
766 v4l2_fill_pix_format(pix, &sd_fmt.format); in cobalt_try_fmt_vid_cap()
769 switch (pix->pixelformat) { in cobalt_try_fmt_vid_cap()
772 pix->bytesperline = max(pix->bytesperline & ~0x3, in cobalt_try_fmt_vid_cap()
773 pix->width * COBALT_BYTES_PER_PIXEL_YUYV); in cobalt_try_fmt_vid_cap()
774 pix->pixelformat = V4L2_PIX_FMT_YUYV; in cobalt_try_fmt_vid_cap()
777 pix->bytesperline = max(pix->bytesperline & ~0x3, in cobalt_try_fmt_vid_cap()
778 pix->width * COBALT_BYTES_PER_PIXEL_RGB24); in cobalt_try_fmt_vid_cap()
781 pix->bytesperline = max(pix->bytesperline & ~0x3, in cobalt_try_fmt_vid_cap()
782 pix->width * COBALT_BYTES_PER_PIXEL_RGB32); in cobalt_try_fmt_vid_cap()
786 pix->sizeimage = pix->bytesperline * pix->height; in cobalt_try_fmt_vid_cap()
787 pix->field = V4L2_FIELD_NONE; in cobalt_try_fmt_vid_cap()
796 struct v4l2_pix_format *pix = &f->fmt.pix; in cobalt_s_fmt_vid_cap() local
804 s->width = pix->width; in cobalt_s_fmt_vid_cap()
805 s->height = pix->height; in cobalt_s_fmt_vid_cap()
806 s->stride = pix->bytesperline; in cobalt_s_fmt_vid_cap()
807 switch (pix->pixelformat) { in cobalt_s_fmt_vid_cap()
820 s->pixfmt = pix->pixelformat; in cobalt_s_fmt_vid_cap()
829 struct v4l2_pix_format *pix = &f->fmt.pix; in cobalt_try_fmt_vid_out() local
832 if ((pix->width < 176) || (pix->height < 144)) { in cobalt_try_fmt_vid_out()
833 pix->width = 176; in cobalt_try_fmt_vid_out()
834 pix->height = 144; in cobalt_try_fmt_vid_out()
837 if ((pix->width > 1920) || (pix->height > 1080)) { in cobalt_try_fmt_vid_out()
838 pix->width = 1920; in cobalt_try_fmt_vid_out()
839 pix->height = 1080; in cobalt_try_fmt_vid_out()
843 pix->width &= ~0x3; in cobalt_try_fmt_vid_out()
846 pix->height &= ~0x1; in cobalt_try_fmt_vid_out()
848 switch (pix->pixelformat) { in cobalt_try_fmt_vid_out()
851 pix->bytesperline = max(pix->bytesperline & ~0x3, in cobalt_try_fmt_vid_out()
852 pix->width * COBALT_BYTES_PER_PIXEL_YUYV); in cobalt_try_fmt_vid_out()
853 pix->pixelformat = V4L2_PIX_FMT_YUYV; in cobalt_try_fmt_vid_out()
856 pix->bytesperline = max(pix->bytesperline & ~0x3, in cobalt_try_fmt_vid_out()
857 pix->width * COBALT_BYTES_PER_PIXEL_RGB32); in cobalt_try_fmt_vid_out()
861 pix->sizeimage = pix->bytesperline * pix->height; in cobalt_try_fmt_vid_out()
862 pix->field = V4L2_FIELD_NONE; in cobalt_try_fmt_vid_out()
871 struct v4l2_pix_format *pix = &f->fmt.pix; in cobalt_g_fmt_vid_out() local
873 pix->width = s->width; in cobalt_g_fmt_vid_out()
874 pix->height = s->height; in cobalt_g_fmt_vid_out()
875 pix->bytesperline = s->stride; in cobalt_g_fmt_vid_out()
876 pix->field = V4L2_FIELD_NONE; in cobalt_g_fmt_vid_out()
877 pix->pixelformat = s->pixfmt; in cobalt_g_fmt_vid_out()
878 pix->colorspace = s->colorspace; in cobalt_g_fmt_vid_out()
879 pix->xfer_func = s->xfer_func; in cobalt_g_fmt_vid_out()
880 pix->ycbcr_enc = s->ycbcr_enc; in cobalt_g_fmt_vid_out()
881 pix->quantization = s->quantization; in cobalt_g_fmt_vid_out()
882 pix->sizeimage = pix->bytesperline * pix->height; in cobalt_g_fmt_vid_out()
908 struct v4l2_pix_format *pix = &f->fmt.pix; in cobalt_s_fmt_vid_out() local
917 if (vb2_is_busy(&s->q) && (pix->pixelformat != s->pixfmt || in cobalt_s_fmt_vid_out()
918 pix->width != s->width || pix->height != s->height || in cobalt_s_fmt_vid_out()
919 pix->bytesperline != s->stride)) in cobalt_s_fmt_vid_out()
922 switch (pix->pixelformat) { in cobalt_s_fmt_vid_out()
934 s->width = pix->width; in cobalt_s_fmt_vid_out()
935 s->height = pix->height; in cobalt_s_fmt_vid_out()
936 s->stride = pix->bytesperline; in cobalt_s_fmt_vid_out()
937 s->pixfmt = pix->pixelformat; in cobalt_s_fmt_vid_out()
938 s->colorspace = pix->colorspace; in cobalt_s_fmt_vid_out()
939 s->xfer_func = pix->xfer_func; in cobalt_s_fmt_vid_out()
940 s->ycbcr_enc = pix->ycbcr_enc; in cobalt_s_fmt_vid_out()
941 s->quantization = pix->quantization; in cobalt_s_fmt_vid_out()
942 v4l2_fill_mbus_format(&sd_fmt.format, pix, code); in cobalt_s_fmt_vid_out()