diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2010-06-29 12:09:35 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2010-06-29 12:09:35 +0200 |
commit | c13258a74fd7345828fce8fab117247e3f61e6e5 (patch) | |
tree | b29a1420ce9648b283cc32fc35ff9504f93e229b /subdev.h | |
parent | 0c4da2bb2f4d7d3cd2cdea1369374d5b4f7e3b29 (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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |