format.width, format.height);
ret = v4l2_subdev_get_selection(entity, &rect, pad,
- V4L2_SUBDEV_SEL_TGT_CROP_BOUNDS,
+ V4L2_SEL_TGT_CROP_BOUNDS,
which);
if (ret == 0)
printf("\n\t\t crop.bounds:(%u,%u)/%ux%u", rect.left, rect.top,
rect.width, rect.height);
ret = v4l2_subdev_get_selection(entity, &rect, pad,
- V4L2_SUBDEV_SEL_TGT_CROP,
+ V4L2_SEL_TGT_CROP,
which);
if (ret == 0)
printf("\n\t\t crop:(%u,%u)/%ux%u", rect.left, rect.top,
rect.width, rect.height);
ret = v4l2_subdev_get_selection(entity, &rect, pad,
- V4L2_SUBDEV_SEL_TGT_COMPOSE_BOUNDS,
+ V4L2_SEL_TGT_COMPOSE_BOUNDS,
which);
if (ret == 0)
printf("\n\t\t compose.bounds:(%u,%u)/%ux%u",
rect.left, rect.top, rect.width, rect.height);
ret = v4l2_subdev_get_selection(entity, &rect, pad,
- V4L2_SUBDEV_SEL_TGT_COMPOSE,
+ V4L2_SEL_TGT_COMPOSE,
which);
if (ret == 0)
printf("\n\t\t compose:(%u,%u)/%ux%u",
*rect = u.sel.r;
return 0;
}
- if (errno != ENOTTY || target != V4L2_SUBDEV_SEL_TGT_CROP)
+ if (errno != ENOTTY || target != V4L2_SEL_TGT_CROP)
return -errno;
memset(&u.crop, 0, sizeof(u.crop));
*rect = u.sel.r;
return 0;
}
- if (errno != ENOTTY || target != V4L2_SUBDEV_SEL_TGT_CROP)
+ if (errno != ENOTTY || target != V4L2_SEL_TGT_CROP)
return -errno;
memset(&u.crop, 0, sizeof(u.crop));
return ret;
}
- ret = set_selection(pad, V4L2_SUBDEV_SEL_TGT_CROP, &crop);
+ ret = set_selection(pad, V4L2_SEL_TGT_CROP, &crop);
if (ret < 0)
return ret;
- ret = set_selection(pad, V4L2_SUBDEV_SEL_TGT_COMPOSE, &compose);
+ ret = set_selection(pad, V4L2_SEL_TGT_COMPOSE, &compose);
if (ret < 0)
return ret;