Lines Matching refs:pix
704 struct v4l2_pix_format *pix = &f->fmt.pix;
706 pix->width = s->width;
707 pix->height = s->height;
708 pix->bytesperline = s->stride;
709 pix->field = V4L2_FIELD_NONE;
712 pix->colorspace = V4L2_COLORSPACE_SRGB;
720 v4l2_fill_pix_format(pix, &sd_fmt.format);
723 pix->pixelformat = s->pixfmt;
724 pix->sizeimage = pix->bytesperline * pix->height;
733 struct v4l2_pix_format *pix = &f->fmt.pix;
736 if ((pix->width < 176) || (pix->height < 144)) {
737 pix->width = 176;
738 pix->height = 144;
741 if ((pix->width > 1920) || (pix->height > 1080)) {
742 pix->width = 1920;
743 pix->height = 1080;
747 pix->width &= ~0x3;
750 pix->height &= ~0x1;
754 pix->width = 1920;
755 pix->height = 1080;
756 pix->colorspace = V4L2_COLORSPACE_SRGB;
764 v4l2_fill_pix_format(pix, &sd_fmt.format);
767 switch (pix->pixelformat) {
770 pix->bytesperline = max(pix->bytesperline & ~0x3,
771 pix->width * COBALT_BYTES_PER_PIXEL_YUYV);
772 pix->pixelformat = V4L2_PIX_FMT_YUYV;
775 pix->bytesperline = max(pix->bytesperline & ~0x3,
776 pix->width * COBALT_BYTES_PER_PIXEL_RGB24);
779 pix->bytesperline = max(pix->bytesperline & ~0x3,
780 pix->width * COBALT_BYTES_PER_PIXEL_RGB32);
784 pix->sizeimage = pix->bytesperline * pix->height;
785 pix->field = V4L2_FIELD_NONE;
794 struct v4l2_pix_format *pix = &f->fmt.pix;
802 s->width = pix->width;
803 s->height = pix->height;
804 s->stride = pix->bytesperline;
805 switch (pix->pixelformat) {
818 s->pixfmt = pix->pixelformat;
827 struct v4l2_pix_format *pix = &f->fmt.pix;
830 if ((pix->width < 176) || (pix->height < 144)) {
831 pix->width = 176;
832 pix->height = 144;
835 if ((pix->width > 1920) || (pix->height > 1080)) {
836 pix->width = 1920;
837 pix->height = 1080;
841 pix->width &= ~0x3;
844 pix->height &= ~0x1;
846 switch (pix->pixelformat) {
849 pix->bytesperline = max(pix->bytesperline & ~0x3,
850 pix->width * COBALT_BYTES_PER_PIXEL_YUYV);
851 pix->pixelformat = V4L2_PIX_FMT_YUYV;
854 pix->bytesperline = max(pix->bytesperline & ~0x3,
855 pix->width * COBALT_BYTES_PER_PIXEL_RGB32);
859 pix->sizeimage = pix->bytesperline * pix->height;
860 pix->field = V4L2_FIELD_NONE;
869 struct v4l2_pix_format *pix = &f->fmt.pix;
871 pix->width = s->width;
872 pix->height = s->height;
873 pix->bytesperline = s->stride;
874 pix->field = V4L2_FIELD_NONE;
875 pix->pixelformat = s->pixfmt;
876 pix->colorspace = s->colorspace;
877 pix->xfer_func = s->xfer_func;
878 pix->ycbcr_enc = s->ycbcr_enc;
879 pix->quantization = s->quantization;
880 pix->sizeimage = pix->bytesperline * pix->height;
906 struct v4l2_pix_format *pix = &f->fmt.pix;
915 if (vb2_is_busy(&s->q) && (pix->pixelformat != s->pixfmt ||
916 pix->width != s->width || pix->height != s->height ||
917 pix->bytesperline != s->stride))
920 switch (pix->pixelformat) {
932 s->width = pix->width;
933 s->height = pix->height;
934 s->stride = pix->bytesperline;
935 s->pixfmt = pix->pixelformat;
936 s->colorspace = pix->colorspace;
937 s->xfer_func = pix->xfer_func;
938 s->ycbcr_enc = pix->ycbcr_enc;
939 s->quantization = pix->quantization;
940 v4l2_fill_mbus_format(&sd_fmt.format, pix, code);