From patchwork Mon Feb 16 19:01:22 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 7489 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 n1GJ27bR014037 for ; Mon, 16 Feb 2009 19:02:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751518AbZBPTBv (ORCPT ); Mon, 16 Feb 2009 14:01:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751546AbZBPTBu (ORCPT ); Mon, 16 Feb 2009 14:01:50 -0500 Received: from bombadil.infradead.org ([18.85.46.34]:54464 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751518AbZBPTBu convert rfc822-to-8bit (ORCPT ); Mon, 16 Feb 2009 14:01:50 -0500 Received: from 200.220.139.66.nipcable.com ([200.220.139.66] helo=pedra.chehab.org) by bombadil.infradead.org with esmtpsa (Exim 4.69 #1 (Red Hat Linux)) id 1LZ8ix-00041A-TD; Mon, 16 Feb 2009 19:01:48 +0000 Date: Mon, 16 Feb 2009 16:01:22 -0300 From: Mauro Carvalho Chehab To: Hans Verkuil , Michael Schimek Cc: Linux Media Mailing List Subject: Fw: [PATCH v2] V4L2: Add COLORFX user control Message-ID: <20090216160122.7a165792@pedra.chehab.org> X-Mailer: Claws Mail 3.3.1 (GTK+ 2.10.4; x86_64-redhat-linux-gnu) Mime-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Michael/Hans, As nobody complained, and this seems to be required by some webcams, I'm committing this changeset. Please update V4L2 API to reflect this change. Cheers, Mauro. Forwarded message: Date: Tue, 20 Jan 2009 16:29:26 -0600 From: "Aguirre Rodriguez, Sergio Alberto" To: "linux-media@vger.kernel.org" Cc: "video4linux-list@redhat.com" , "Nagalla, Hari" , Sakari Ailus , "Tuukka.O Toivonen" , "mikko.hurskainen@nokia.com" , "Curran, Dominic" Subject: [PATCH v2] V4L2: Add COLORFX user control From 07396d67b39bf7bcc81440d3e72d253ad6c54f11 Mon Sep 17 00:00:00 2001 From: Sergio Aguirre Date: Tue, 20 Jan 2009 15:34:43 -0600 Subject: [PATCH v2] V4L2: Add COLORFX user control This is a common feature on many cameras. the options are: Default colors, B & W, Sepia Signed-off-by: Sergio Aguirre --- include/linux/videodev2.h | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index 4669d7e..89ed395 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h @@ -876,8 +876,15 @@ enum v4l2_power_line_frequency { #define V4L2_CID_BACKLIGHT_COMPENSATION (V4L2_CID_BASE+28) #define V4L2_CID_CHROMA_AGC (V4L2_CID_BASE+29) #define V4L2_CID_COLOR_KILLER (V4L2_CID_BASE+30) +#define V4L2_CID_COLORFX (V4L2_CID_BASE+31) +enum v4l2_colorfx { + V4L2_COLORFX_NONE = 0, + V4L2_COLORFX_BW = 1, + V4L2_COLORFX_SEPIA = 2, +}; + /* last CID + 1 */ -#define V4L2_CID_LASTP1 (V4L2_CID_BASE+31) +#define V4L2_CID_LASTP1 (V4L2_CID_BASE+32) /* MPEG-class control IDs defined by V4L2 */ #define V4L2_CID_MPEG_BASE (V4L2_CTRL_CLASS_MPEG | 0x900)