Re: [PATCH] v4l: add cropping prototypes to struct v4l2_subdev_video_ops

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Add g_crop, s_crop and cropcap methods to video v4l2-subdev operations.
>
> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@xxxxxx>
> ---
>
> Hans, is this all that's needed?

Reviewed-by: Hans Verkuil <hverkuil@xxxxxxxxx>

Regards,

       Hans

>
>  include/media/v4l2-subdev.h |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h
> index 1785608..673a4e1 100644
> --- a/include/media/v4l2-subdev.h
> +++ b/include/media/v4l2-subdev.h
> @@ -215,6 +215,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);
> --
> 1.6.2.4
>
>


-- 
Hans Verkuil - video4linux developer - sponsored by TANDBERG

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux