Lines Matching refs:pix
710 struct v4l2_pix_format *pix = &f->fmt.pix;
712 pix->width = s->width;
713 pix->height = s->height;
714 pix->bytesperline = s->stride;
715 pix->field = V4L2_FIELD_NONE;
718 pix->colorspace = V4L2_COLORSPACE_SRGB;
726 v4l2_fill_pix_format(pix, &sd_fmt.format);
729 pix->pixelformat = s->pixfmt;
730 pix->sizeimage = pix->bytesperline * pix->height;
739 struct v4l2_pix_format *pix = &f->fmt.pix;
742 if ((pix->width < 176) || (pix->height < 144)) {
743 pix->width = 176;
744 pix->height = 144;
747 if ((pix->width > 1920) || (pix->height > 1080)) {
748 pix->width = 1920;
749 pix->height = 1080;
753 pix->width &= ~0x3;
756 pix->height &= ~0x1;
760 pix->width = 1920;
761 pix->height = 1080;
762 pix->colorspace = V4L2_COLORSPACE_SRGB;
770 v4l2_fill_pix_format(pix, &sd_fmt.format);
773 switch (pix->pixelformat) {
776 pix->bytesperline = max(pix->bytesperline & ~0x3,
777 pix->width * COBALT_BYTES_PER_PIXEL_YUYV);
778 pix->pixelformat = V4L2_PIX_FMT_YUYV;
781 pix->bytesperline = max(pix->bytesperline & ~0x3,
782 pix->width * COBALT_BYTES_PER_PIXEL_RGB24);
785 pix->bytesperline = max(pix->bytesperline & ~0x3,
786 pix->width * COBALT_BYTES_PER_PIXEL_RGB32);
790 pix->sizeimage = pix->bytesperline * pix->height;
791 pix->field = V4L2_FIELD_NONE;
800 struct v4l2_pix_format *pix = &f->fmt.pix;
808 s->width = pix->width;
809 s->height = pix->height;
810 s->stride = pix->bytesperline;
811 switch (pix->pixelformat) {
824 s->pixfmt = pix->pixelformat;
833 struct v4l2_pix_format *pix = &f->fmt.pix;
836 if ((pix->width < 176) || (pix->height < 144)) {
837 pix->width = 176;
838 pix->height = 144;
841 if ((pix->width > 1920) || (pix->height > 1080)) {
842 pix->width = 1920;
843 pix->height = 1080;
847 pix->width &= ~0x3;
850 pix->height &= ~0x1;
852 switch (pix->pixelformat) {
855 pix->bytesperline = max(pix->bytesperline & ~0x3,
856 pix->width * COBALT_BYTES_PER_PIXEL_YUYV);
857 pix->pixelformat = V4L2_PIX_FMT_YUYV;
860 pix->bytesperline = max(pix->bytesperline & ~0x3,
861 pix->width * COBALT_BYTES_PER_PIXEL_RGB32);
865 pix->sizeimage = pix->bytesperline * pix->height;
866 pix->field = V4L2_FIELD_NONE;
875 struct v4l2_pix_format *pix = &f->fmt.pix;
877 pix->width = s->width;
878 pix->height = s->height;
879 pix->bytesperline = s->stride;
880 pix->field = V4L2_FIELD_NONE;
881 pix->pixelformat = s->pixfmt;
882 pix->colorspace = s->colorspace;
883 pix->xfer_func = s->xfer_func;
884 pix->ycbcr_enc = s->ycbcr_enc;
885 pix->quantization = s->quantization;
886 pix->sizeimage = pix->bytesperline * pix->height;
912 struct v4l2_pix_format *pix = &f->fmt.pix;
921 if (vb2_is_busy(&s->q) && (pix->pixelformat != s->pixfmt ||
922 pix->width != s->width || pix->height != s->height ||
923 pix->bytesperline != s->stride))
926 switch (pix->pixelformat) {
938 s->width = pix->width;
939 s->height = pix->height;
940 s->stride = pix->bytesperline;
941 s->pixfmt = pix->pixelformat;
942 s->colorspace = pix->colorspace;
943 s->xfer_func = pix->xfer_func;
944 s->ycbcr_enc = pix->ycbcr_enc;
945 s->quantization = pix->quantization;
946 v4l2_fill_mbus_format(&sd_fmt.format, pix, code);