• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/media/video/

Lines Matching defs:cam_rect

1118 	struct v4l2_rect *rect = &crop->c, *cam_rect = &cam_crop->c;
1126 ret = client_g_rect(sd, cam_rect);
1134 if (!memcmp(rect, cam_rect, sizeof(*rect))) {
1138 cam->rect = *cam_rect;
1144 cam_rect->width, cam_rect->height,
1145 cam_rect->left, cam_rect->top,
1163 width = max(cam_rect->width, 2);
1164 height = max(cam_rect->height, 2);
1170 while (!ret && (is_smaller(cam_rect, rect) ||
1171 is_inside(cam_rect, rect)) &&
1177 cam_rect->width = width;
1178 cam_rect->height = height;
1189 if (cam_rect->left > rect->left)
1190 cam_rect->left = cap.bounds.left;
1192 if (cam_rect->left + cam_rect->width < rect->left + rect->width)
1193 cam_rect->width = rect->left + rect->width -
1194 cam_rect->left;
1196 if (cam_rect->top > rect->top)
1197 cam_rect->top = cap.bounds.top;
1199 if (cam_rect->top + cam_rect->height < rect->top + rect->height)
1200 cam_rect->height = rect->top + rect->height -
1201 cam_rect->top;
1204 ret = client_g_rect(sd, cam_rect);
1206 cam_rect->width, cam_rect->height,
1207 cam_rect->left, cam_rect->top);
1211 if (is_smaller(cam_rect, rect) || is_inside(cam_rect, rect)) {
1216 *cam_rect = cap.bounds;
1218 ret = client_g_rect(sd, cam_rect);
1220 cam_rect->width, cam_rect->height,
1221 cam_rect->left, cam_rect->top);
1225 cam->rect = *cam_rect;
1361 struct v4l2_rect *cam_rect = &cam_crop.c;
1384 cam_rect->width, cam_rect->height,
1385 cam_rect->left, cam_rect->top);
1402 scale_cam_h = calc_generic_scale(cam_rect->width, mf.width);
1403 scale_cam_v = calc_generic_scale(cam_rect->height, mf.height);
1425 scale_h = calc_generic_scale(cam_rect->width, out_width);
1426 scale_v = calc_generic_scale(cam_rect->height, out_height);
1439 cam->ceu_left = scale_down(rect->left - cam_rect->left, scale_h) & ~1;
1440 cam->ceu_top = scale_down(rect->top - cam_rect->top, scale_v) & ~1;