Lines Matching full:width

53 #define CAPWR  0x14 /* Capture interface width register */
61 #define CDWDR 0x38 /* Capture destination width register */
128 unsigned int width; member
217 bytes_per_line = soc_mbus_bytes_per_line(fmt->fmt.pix.width, in sh_mobile_ceu_videobuf_setup()
661 unsigned int height, width, cdwdr_width, in_width, in_height; in sh_mobile_ceu_set_rect() local
673 width = icd->user_width; in sh_mobile_ceu_set_rect()
676 in_width = cam->width; in sh_mobile_ceu_set_rect()
681 cdwdr_width = width; in sh_mobile_ceu_set_rect()
683 int bytes_per_line = soc_mbus_bytes_per_line(width, in sh_mobile_ceu_set_rect()
695 in_width = cam->width * w_factor; in sh_mobile_ceu_set_rect()
699 cdwdr_width = width; in sh_mobile_ceu_set_rect()
724 (in_height << 16) | in_width, (height << 16) | width, in sh_mobile_ceu_set_rect()
730 ceu_write(pcdev, CFSZR, (height << 16) | width); in sh_mobile_ceu_set_rect()
1084 while ((mf.width > 2560 || mf.height > 1920) && shift < 4) { in sh_mobile_ceu_get_formats()
1086 mf.width = 2560 >> shift; in sh_mobile_ceu_get_formats()
1098 mf.width, mf.height); in sh_mobile_ceu_get_formats()
1102 dev_geo(dev, "camera fmt %ux%u\n", mf.width, mf.height); in sh_mobile_ceu_get_formats()
1112 cam->width = mf.width; in sh_mobile_ceu_get_formats()
1180 return r1->width < r2->width || r1->height < r2->height; in is_smaller()
1187 r1->left + r1->width < r2->left + r2->width || in is_inside()
1231 if (rect->width < subrect->width) in update_subrect()
1232 subrect->width = rect->width; in update_subrect()
1239 else if (rect->left + rect->width > in update_subrect()
1240 subrect->left + subrect->width) in update_subrect()
1241 subrect->left = rect->left + rect->width - in update_subrect()
1242 subrect->width; in update_subrect()
1267 unsigned int width, height; in client_s_crop() local
1281 rect->width, rect->height, rect->left, rect->top); in client_s_crop()
1288 cam_rect->width, cam_rect->height, in client_s_crop()
1290 rect->width, rect->height, rect->left, rect->top); in client_s_crop()
1298 soc_camera_limit_side(&rect->left, &rect->width, cap.bounds.left, 2, in client_s_crop()
1299 cap.bounds.width); in client_s_crop()
1307 width = max(cam_rect->width, 2); in client_s_crop()
1316 (cap.bounds.width > width || cap.bounds.height > height)) { in client_s_crop()
1318 width *= 2; in client_s_crop()
1321 cam_rect->width = width; in client_s_crop()
1336 if (cam_rect->left + cam_rect->width < rect->left + rect->width) in client_s_crop()
1337 cam_rect->width = rect->left + rect->width - in client_s_crop()
1350 cam_rect->width, cam_rect->height, in client_s_crop()
1364 cam_rect->width, cam_rect->height, in client_s_crop()
1383 unsigned int width = mf->width, height = mf->height, tmp_w, tmp_h; in client_s_fmt() local
1395 dev_geo(dev, "camera scaled to %ux%u\n", mf->width, mf->height); in client_s_fmt()
1397 if (width == mf->width && height == mf->height) { in client_s_fmt()
1413 max_width = min(cap.bounds.width, 2560); in client_s_fmt()
1417 tmp_w = mf->width; in client_s_fmt()
1420 /* width <= max_width && height <= max_height - guaranteed by try_fmt */ in client_s_fmt()
1421 while ((width > tmp_w || height > tmp_h) && in client_s_fmt()
1425 mf->width = tmp_w; in client_s_fmt()
1431 mf->width, mf->height); in client_s_fmt()
1454 * @width - on output: user width, mapped back to input
1460 unsigned int *width, unsigned int *height, in client_scale() argument
1478 mf_tmp.width, mf_tmp.height); in client_scale()
1485 scale_h = calc_generic_scale(cam->rect.width, mf_tmp.width); in client_scale()
1488 mf->width = mf_tmp.width; in client_scale()
1496 *width = scale_down(cam->subrect.width, scale_h); in client_scale()
1499 dev_geo(dev, "8: new client sub-window %ux%u\n", *width, *height); in client_scale()
1528 dev_geo(dev, "S_CROP(%ux%u@%u:%u)\n", rect->width, rect->height, in sh_mobile_ceu_set_crop()
1544 cam_rect->width, cam_rect->height, in sh_mobile_ceu_set_crop()
1554 if (mf.width > 2560 || mf.height > 1920) in sh_mobile_ceu_set_crop()
1558 scale_cam_h = calc_generic_scale(cam_rect->width, mf.width); in sh_mobile_ceu_set_crop()
1562 interm_width = scale_down(rect->width, scale_cam_h); in sh_mobile_ceu_set_crop()
1568 new_scale_h = calc_generic_scale(rect->width, icd->user_width); in sh_mobile_ceu_set_crop()
1570 mf.width = scale_down(cam_rect->width, new_scale_h); in sh_mobile_ceu_set_crop()
1588 dev_geo(dev, "New camera output %ux%u\n", mf.width, mf.height); in sh_mobile_ceu_set_crop()
1589 scale_cam_h = calc_generic_scale(cam_rect->width, mf.width); in sh_mobile_ceu_set_crop()
1591 interm_width = scale_down(rect->width, scale_cam_h); in sh_mobile_ceu_set_crop()
1596 cam->width = mf.width; in sh_mobile_ceu_set_crop()
1671 if (cam_subrect->width == cam->rect.width && in calculate_client_output()
1674 mf->width = pix->width; in calculate_client_output()
1682 cam_subrect->width, cam_subrect->height, in calculate_client_output()
1694 scale_h = calc_generic_scale(cam_subrect->width, pix->width); in calculate_client_output()
1703 mf->width = scale_down(cam->rect.width, scale_h); in calculate_client_output()
1764 pix->width, pix->height); in sh_mobile_ceu_set_fmt()
1766 dev_geo(dev, "4: request camera output %ux%u\n", mf.width, mf.height); in sh_mobile_ceu_set_fmt()
1777 mf.width, mf.height, pix->width, pix->height); in sh_mobile_ceu_set_fmt()
1785 cam->width = mf.width; in sh_mobile_ceu_set_fmt()
1791 if (pix->width > ceu_sub_width) in sh_mobile_ceu_set_fmt()
1792 ceu_sub_width = pix->width; in sh_mobile_ceu_set_fmt()
1800 /* Scale pix->{width x height} down to width x height */ in sh_mobile_ceu_set_fmt()
1801 scale_h = calc_scale(ceu_sub_width, &pix->width); in sh_mobile_ceu_set_fmt()
1804 pix->width = ceu_sub_width; in sh_mobile_ceu_set_fmt()
1818 ceu_sub_width, scale_h, pix->width, in sh_mobile_ceu_set_fmt()
1828 pix->width &= ~3; in sh_mobile_ceu_set_fmt()
1842 int width, height; in sh_mobile_ceu_try_fmt() local
1846 pixfmt, pix->width, pix->height); in sh_mobile_ceu_try_fmt()
1854 /* FIXME: calculate using depth and bus width */ in sh_mobile_ceu_try_fmt()
1856 /* CFSZR requires height and width to be 4-pixel aligned */ in sh_mobile_ceu_try_fmt()
1857 v4l_bound_align_image(&pix->width, 2, 2560, 2, in sh_mobile_ceu_try_fmt()
1860 width = pix->width; in sh_mobile_ceu_try_fmt()
1864 mf.width = pix->width; in sh_mobile_ceu_try_fmt()
1875 pix->width = mf.width; in sh_mobile_ceu_try_fmt()
1887 if (pix->width < width || pix->height < height) { in sh_mobile_ceu_try_fmt()
1893 mf.width = 2560; in sh_mobile_ceu_try_fmt()
1906 if (mf.width > width) in sh_mobile_ceu_try_fmt()
1907 pix->width = width; in sh_mobile_ceu_try_fmt()
1912 pix->width &= ~3; in sh_mobile_ceu_try_fmt()
1916 __func__, ret, pix->pixelformat, pix->width, pix->height); in sh_mobile_ceu_try_fmt()
1949 .width = out_width, in sh_mobile_ceu_set_livecrop()
1957 if (!ret && (out_width != f.fmt.pix.width || in sh_mobile_ceu_set_livecrop()