summaryrefslogtreecommitdiff
path: root/subdev.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-06-29 12:09:35 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-06-29 12:09:35 +0200
commitc13258a74fd7345828fce8fab117247e3f61e6e5 (patch)
treeb29a1420ce9648b283cc32fc35ff9504f93e229b /subdev.h
parent0c4da2bb2f4d7d3cd2cdea1369374d5b4f7e3b29 (diff)
V4L2 subdev crop support
Extend the V4L2 media bus format syntax to support an optional crop rectangle. If specified, the crop rectangle is set on the subdev pad. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'subdev.h')
-rw-r--r--subdev.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/subdev.h b/subdev.h
index c431271..e3106e6 100644
--- a/subdev.h
+++ b/subdev.h
@@ -34,6 +34,10 @@ int v4l2_subdev_get_format(struct media_entity *entity,
int v4l2_subdev_set_format(struct media_entity *entity,
struct v4l2_mbus_framefmt *format, unsigned int pad,
enum v4l2_subdev_format which);
+int v4l2_subdev_get_crop(struct media_entity *entity, struct v4l2_rect *rect,
+ unsigned int pad, enum v4l2_subdev_format which);
+int v4l2_subdev_set_crop(struct media_entity *entity, struct v4l2_rect *rect,
+ unsigned int pad, enum v4l2_subdev_format which);
#endif