Lines Matching defs:sel

203 			       struct v4l2_subdev_selection *sel)
211 if (sel->pad != HISTO_PAD_SINK)
216 state = vsp1_entity_get_state(&histo->entity, sd_state, sel->which);
222 switch (sel->target) {
228 sel->r.left = 0;
229 sel->r.top = 0;
230 sel->r.width = crop->width;
231 sel->r.height = crop->height;
238 sel->r.left = 0;
239 sel->r.top = 0;
240 sel->r.width = format->width;
241 sel->r.height = format->height;
246 sel->r = *vsp1_entity_get_pad_selection(&histo->entity, state,
247 sel->pad, sel->target);
262 struct v4l2_subdev_selection *sel)
271 sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1);
272 sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1);
273 sel->r.width = clamp_t(unsigned int, sel->r.width, HISTO_MIN_SIZE,
274 format->width - sel->r.left);
275 sel->r.height = clamp_t(unsigned int, sel->r.height, HISTO_MIN_SIZE,
276 format->height - sel->r.top);
280 sel->pad, V4L2_SEL_TGT_CROP);
281 *selection = sel->r;
284 sel->pad,
286 *selection = sel->r;
293 struct v4l2_subdev_selection *sel)
305 sel->r.left = 0;
306 sel->r.top = 0;
309 sel->pad,
326 sel->r.width = clamp(sel->r.width, crop->width / 4, crop->width);
327 ratio = 1 << (crop->width * 2 / sel->r.width / 3);
328 sel->r.width = crop->width / ratio;
331 sel->r.height = clamp(sel->r.height, crop->height / 4, crop->height);
332 ratio = 1 << (crop->height * 2 / sel->r.height / 3);
333 sel->r.height = crop->height / ratio;
336 sel->pad,
338 *compose = sel->r;
345 struct v4l2_subdev_selection *sel)
351 if (sel->pad != HISTO_PAD_SINK)
356 state = vsp1_entity_get_state(&histo->entity, sd_state, sel->which);
362 if (sel->target == V4L2_SEL_TGT_CROP)
363 ret = histo_set_crop(subdev, state, sel);
364 else if (sel->target == V4L2_SEL_TGT_COMPOSE)
365 ret = histo_set_compose(subdev, state, sel);