From patchwork Wed Jun 17 09:17:38 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 30816 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n5H9Hd2M028531 for ; Wed, 17 Jun 2009 09:17:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757780AbZFQJRf (ORCPT ); Wed, 17 Jun 2009 05:17:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757889AbZFQJRf (ORCPT ); Wed, 17 Jun 2009 05:17:35 -0400 Received: from mail.gmx.net ([213.165.64.20]:57389 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1757780AbZFQJRe (ORCPT ); Wed, 17 Jun 2009 05:17:34 -0400 Received: (qmail invoked by alias); 17 Jun 2009 09:17:34 -0000 Received: from p57BD0A6F.dip0.t-ipconnect.de (EHLO axis700.grange) [87.189.10.111] by mail.gmx.net (mp007) with SMTP; 17 Jun 2009 11:17:34 +0200 X-Authenticated: #20450766 X-Provags-ID: V01U2FsdGVkX1/Bqm9c5a7B/iF6ABosCIGFaKWpJsPIctM6ZD1QYV 8jMgNQf2VeajxX Received: from lyakh (helo=localhost) by axis700.grange with local-esmtp (Exim 4.63) (envelope-from ) id 1MGrH0-0001Y1-9y; Wed, 17 Jun 2009 11:17:38 +0200 Date: Wed, 17 Jun 2009 11:17:38 +0200 (CEST) From: Guennadi Liakhovetski To: Linux Media Mailing List cc: Hans Verkuil Subject: [PATCH] v4l: add cropping prototypes to struct v4l2_subdev_video_ops Message-ID: MIME-Version: 1.0 X-Y-GMX-Trusted: 0 X-FuHaFi: 0.58 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Add g_crop, s_crop and cropcap methods to video v4l2-subdev operations. Signed-off-by: Guennadi Liakhovetski --- Hans, is this all that's needed? 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);