Lines Matching defs:pix

502 	size = dcmi->fmt.fmt.pix.sizeimage;
534 size = dcmi->fmt.fmt.pix.sizeimage;
938 struct v4l2_pix_format *pix,
947 int w_err = (fsize->width - pix->width);
948 int h_err = (fsize->height - pix->height);
968 struct v4l2_pix_format *pix = &f->fmt.pix;
976 sd_fmt = find_format_by_fourcc(dcmi, pix->pixelformat);
982 pix->pixelformat = sd_fmt->fourcc;
986 pix->width = clamp(pix->width, MIN_WIDTH, MAX_WIDTH);
987 pix->height = clamp(pix->height, MIN_HEIGHT, MAX_HEIGHT);
990 do_crop = dcmi->do_crop && (pix->pixelformat != V4L2_PIX_FMT_JPEG);
998 __find_outer_frame_size(dcmi, pix, &outer_sd_fsize);
999 pix->width = outer_sd_fsize.width;
1000 pix->height = outer_sd_fsize.height;
1003 v4l2_fill_mbus_format(&format.format, pix, sd_fmt->mbus_code);
1009 /* Update pix regarding to what sensor can do */
1010 v4l2_fill_pix_format(pix, &format.format);
1013 sd_fsize.width = pix->width;
1014 sd_fsize.height = pix->height;
1026 max_rect.width = pix->width;
1027 max_rect.height = pix->height;
1029 c.top = clamp_t(s32, c.top, 0, pix->height - c.height);
1030 c.left = clamp_t(s32, c.left, 0, pix->width - c.width);
1034 pix->width = dcmi->crop.width;
1035 pix->height = dcmi->crop.height;
1038 pix->field = V4L2_FIELD_NONE;
1039 pix->bytesperline = pix->width * sd_fmt->bpp;
1040 pix->sizeimage = pix->bytesperline * pix->height;
1058 struct v4l2_pix_format *pix = &f->fmt.pix;
1072 if (pix->pixelformat == V4L2_PIX_FMT_JPEG)
1075 /* pix to mbus format */
1076 v4l2_fill_mbus_format(mf, pix,
1088 (char *)&pix->pixelformat,
1089 pix->width, pix->height);
1130 struct v4l2_pix_format *pix)
1141 v4l2_fill_pix_format(pix, &fmt.format);
1147 struct v4l2_pix_format *pix)
1156 sd_fmt = find_format_by_fourcc(dcmi, pix->pixelformat);
1162 pix->pixelformat = sd_fmt->fourcc;
1165 v4l2_fill_mbus_format(&format.format, pix, sd_fmt->mbus_code);
1182 struct v4l2_pix_format pix;
1226 ret = dcmi_get_sensor_format(dcmi, &pix);
1232 r->width = pix.width;
1233 r->height = pix.height;
1257 s->r.width = dcmi->fmt.fmt.pix.width;
1258 s->r.height = dcmi->fmt.fmt.pix.height;
1274 struct v4l2_pix_format pix;
1281 pix.pixelformat = dcmi->fmt.fmt.pix.pixelformat;
1282 pix.width = dcmi->sd_bounds.width;
1283 pix.height = dcmi->sd_bounds.height;
1284 dcmi_set_sensor_format(dcmi, &pix);
1293 max_rect.width = pix.width;
1294 max_rect.height = pix.height;
1296 r.top = clamp_t(s32, r.top, 0, pix.height - r.height);
1297 r.left = clamp_t(s32, r.left, 0, pix.width - r.width);
1308 pix.width, pix.height);
1538 .fmt.pix = {