Lines Matching refs:bounds
125 struct v4l2_rect* r = &(cam->sensor.cropcap.bounds); in zc0301_request_buffers()
1209 struct v4l2_rect* bounds = &(s->cropcap.bounds); in zc0301_vidioc_s_crop() local
1244 if (rect->width > bounds->width) in zc0301_vidioc_s_crop()
1245 rect->width = bounds->width; in zc0301_vidioc_s_crop()
1246 if (rect->height > bounds->height) in zc0301_vidioc_s_crop()
1247 rect->height = bounds->height; in zc0301_vidioc_s_crop()
1248 if (rect->left < bounds->left) in zc0301_vidioc_s_crop()
1249 rect->left = bounds->left; in zc0301_vidioc_s_crop()
1250 if (rect->top < bounds->top) in zc0301_vidioc_s_crop()
1251 rect->top = bounds->top; in zc0301_vidioc_s_crop()
1252 if (rect->left + rect->width > bounds->left + bounds->width) in zc0301_vidioc_s_crop()
1253 rect->left = bounds->left+bounds->width - rect->width; in zc0301_vidioc_s_crop()
1254 if (rect->top + rect->height > bounds->top + bounds->height) in zc0301_vidioc_s_crop()
1255 rect->top = bounds->top+bounds->height - rect->height; in zc0301_vidioc_s_crop()
1395 struct v4l2_rect* bounds = &(s->cropcap.bounds); in zc0301_vidioc_try_s_fmt() local
1424 if (rect.width > bounds->left + bounds->width - rect.left) in zc0301_vidioc_try_s_fmt()
1425 rect.width = bounds->left + bounds->width - rect.left; in zc0301_vidioc_try_s_fmt()
1426 if (rect.height > bounds->top + bounds->height - rect.top) in zc0301_vidioc_try_s_fmt()
1427 rect.height = bounds->top + bounds->height - rect.top; in zc0301_vidioc_try_s_fmt()