V4L/DVB (12158): v4l: add cropping prototypes to struct v4l2_subdev_video_ops
authorGuennadi Liakhovetski <lyakh@axis700.grange>
Wed, 24 Jun 2009 13:31:25 +0000 (10:31 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 12 Sep 2009 15:17:15 +0000 (12:17 -0300)
Add g_crop, s_crop and cropcap methods to video v4l2-subdev operations.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
include/media/v4l2-subdev.h

index 5dcb36785529152e266909526ff17f673c11cd18..89a39ce1729452b04cdb13407ec5cf978acde3ca 100644 (file)
@@ -220,6 +220,9 @@ struct v4l2_subdev_video_ops {
        int (*g_fmt)(struct v4l2_subdev *sd, struct v4l2_format *fmt);
        int (*try_fmt)(struct v4l2_subdev *sd, struct v4l2_format *fmt);
        int (*s_fmt)(struct v4l2_subdev *sd, struct v4l2_format *fmt);
+       int (*cropcap)(struct v4l2_subdev *sd, struct v4l2_cropcap *cc);
+       int (*g_crop)(struct v4l2_subdev *sd, struct v4l2_crop *crop);
+       int (*s_crop)(struct v4l2_subdev *sd, struct v4l2_crop *crop);
        int (*g_parm)(struct v4l2_subdev *sd, struct v4l2_streamparm *param);
        int (*s_parm)(struct v4l2_subdev *sd, struct v4l2_streamparm *param);
        int (*enum_framesizes)(struct v4l2_subdev *sd, struct v4l2_frmsizeenum *fsize);