From patchwork Sun Mar 29 22:25:16 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Baker X-Patchwork-Id: 15058 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 n2TMPZka028859 for ; Sun, 29 Mar 2009 22:25:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753016AbZC2WZf (ORCPT ); Sun, 29 Mar 2009 18:25:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752985AbZC2WZf (ORCPT ); Sun, 29 Mar 2009 18:25:35 -0400 Received: from mk-outboundfilter-5.mail.uk.tiscali.com ([212.74.114.1]:16407 "EHLO mk-outboundfilter-5.mail.uk.tiscali.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752607AbZC2WZe (ORCPT ); Sun, 29 Mar 2009 18:25:34 -0400 X-Trace: 145012249/mk-outboundfilter-5.mail.uk.tiscali.com/PIPEX/$PIPEX-ACCEPTED/pipex-customers/62.190.239.28/None/linux@baker-net.org.uk X-SBRS: None X-RemoteIP: 62.190.239.28 X-IP-MAIL-FROM: linux@baker-net.org.uk X-MUA: KMail/1.11.1 (Linux/2.6.28-11-generic; KDE/4.2.1; i686; ; ) X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjEFAM+Sz0k+vu8c/2dsb2JhbACBUMUEg3oG X-IronPort-AV: E=Sophos;i="4.38,442,1233532800"; d="scan'208";a="145012249" X-IP-Direction: IN Received: from userch028.dsl.pipex.com (HELO gromit.localnet) ([62.190.239.28]) by smtp.pipex.tiscali.co.uk with ESMTP; 29 Mar 2009 23:25:19 +0100 From: Adam Baker To: linux-media@vger.kernel.org Subject: [PATCH v2 3/4] Document the orientation flags in ENUMINPUT Date: Sun, 29 Mar 2009 23:25:16 +0100 User-Agent: KMail/1.11.1 (Linux/2.6.28-11-generic; KDE/4.2.1; i686; ; ) Cc: Mauro Carvalho Chehab , Hans de Goede , "Jean-Francois Moine" , kilgota@banach.math.auburn.edu, Hans Verkuil References: <200903292309.31267.linux@baker-net.org.uk> <200903292317.10249.linux@baker-net.org.uk> <200903292322.08660.linux@baker-net.org.uk> In-Reply-To: <200903292322.08660.linux@baker-net.org.uk> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200903292325.16499.linux@baker-net.org.uk> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Add documentation for the flags that have been added to VIDIOC_ENUMINPUT to specify the sensor orientation. Signed-off-by: Adam Baker --- -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff -r d8d701594f71 v4l2-spec/vidioc-enuminput.sgml --- a/v4l2-spec/vidioc-enuminput.sgml Sun Mar 29 08:45:36 2009 +0200 +++ b/v4l2-spec/vidioc-enuminput.sgml Sun Mar 29 22:59:44 2009 +0100 @@ -119,7 +119,7 @@ status This field provides status information about the input. See for flags. -status is only valid when this is the +With the exception of the sensor orientation bits status is only valid when this is the current input. @@ -188,6 +188,23 @@ detect color modulation in the signal. + Sensor Orientation + + + V4L2_IN_ST_HFLIP + 0x00000010 + The input is connected to a device that produces a signal +that is flipped horizontally and does not correct this before passing the +signal to userspace. + + + V4L2_IN_ST_VFLIP + 0x00000020 + The input is connected to a device that produces a signal +that is flipped vertically and does not correct this before passing the +signal to userspace. Note that a 180 degree rotation is the same as HFLIP | VFLIP + + Analog Video