Lines Matching refs:pix
710 struct v4l2_pix_format *pix = &f->fmt.pix;
713 pix->width = s->width;
714 pix->height = s->height;
715 pix->bytesperline = s->stride;
716 pix->field = V4L2_FIELD_NONE;
719 pix->colorspace = V4L2_COLORSPACE_SRGB;
724 v4l2_fill_pix_format(pix, &sd_fmt.format);
727 pix->pixelformat = s->pixfmt;
728 pix->sizeimage = pix->bytesperline * pix->height;
737 struct v4l2_pix_format *pix = &f->fmt.pix;
741 if ((pix->width < 176) || (pix->height < 144)) {
742 pix->width = 176;
743 pix->height = 144;
746 if ((pix->width > 1920) || (pix->height > 1080)) {
747 pix->width = 1920;
748 pix->height = 1080;
752 pix->width &= ~0x3;
755 pix->height &= ~0x1;
759 pix->width = 1920;
760 pix->height = 1080;
761 pix->colorspace = V4L2_COLORSPACE_SRGB;
766 v4l2_fill_pix_format(pix, &sd_fmt.format);
769 switch (pix->pixelformat) {
772 pix->bytesperline = max(pix->bytesperline & ~0x3,
773 pix->width * COBALT_BYTES_PER_PIXEL_YUYV);
774 pix->pixelformat = V4L2_PIX_FMT_YUYV;
777 pix->bytesperline = max(pix->bytesperline & ~0x3,
778 pix->width * COBALT_BYTES_PER_PIXEL_RGB24);
781 pix->bytesperline = max(pix->bytesperline & ~0x3,
782 pix->width * COBALT_BYTES_PER_PIXEL_RGB32);
786 pix->sizeimage = pix->bytesperline * pix->height;
787 pix->field = V4L2_FIELD_NONE;
796 struct v4l2_pix_format *pix = &f->fmt.pix;
804 s->width = pix->width;
805 s->height = pix->height;
806 s->stride = pix->bytesperline;
807 switch (pix->pixelformat) {
820 s->pixfmt = pix->pixelformat;
829 struct v4l2_pix_format *pix = &f->fmt.pix;
832 if ((pix->width < 176) || (pix->height < 144)) {
833 pix->width = 176;
834 pix->height = 144;
837 if ((pix->width > 1920) || (pix->height > 1080)) {
838 pix->width = 1920;
839 pix->height = 1080;
843 pix->width &= ~0x3;
846 pix->height &= ~0x1;
848 switch (pix->pixelformat) {
851 pix->bytesperline = max(pix->bytesperline & ~0x3,
852 pix->width * COBALT_BYTES_PER_PIXEL_YUYV);
853 pix->pixelformat = V4L2_PIX_FMT_YUYV;
856 pix->bytesperline = max(pix->bytesperline & ~0x3,
857 pix->width * COBALT_BYTES_PER_PIXEL_RGB32);
861 pix->sizeimage = pix->bytesperline * pix->height;
862 pix->field = V4L2_FIELD_NONE;
871 struct v4l2_pix_format *pix = &f->fmt.pix;
873 pix->width = s->width;
874 pix->height = s->height;
875 pix->bytesperline = s->stride;
876 pix->field = V4L2_FIELD_NONE;
877 pix->pixelformat = s->pixfmt;
878 pix->colorspace = s->colorspace;
879 pix->xfer_func = s->xfer_func;
880 pix->ycbcr_enc = s->ycbcr_enc;
881 pix->quantization = s->quantization;
882 pix->sizeimage = pix->bytesperline * pix->height;
908 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;
941 v4l2_fill_mbus_format(&sd_fmt.format, pix, code);