From patchwork Tue Jan 20 22:29:26 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Aguirre Rodriguez, Sergio Alberto" X-Patchwork-Id: 3365 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 n0KMPJhs029336 for ; Tue, 20 Jan 2009 14:25:20 -0800 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756168AbZATW3x (ORCPT ); Tue, 20 Jan 2009 17:29:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756312AbZATW3x (ORCPT ); Tue, 20 Jan 2009 17:29:53 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:40525 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751739AbZATW3x convert rfc822-to-8bit (ORCPT ); Tue, 20 Jan 2009 17:29:53 -0500 Received: from dlep95.itg.ti.com ([157.170.170.107]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id n0KMTRU0008725; Tue, 20 Jan 2009 16:29:32 -0600 Received: from dlee73.ent.ti.com (localhost [127.0.0.1]) by dlep95.itg.ti.com (8.13.8/8.13.8) with ESMTP id n0KMTRKQ005136; Tue, 20 Jan 2009 16:29:27 -0600 (CST) Received: from dlee02.ent.ti.com ([157.170.170.17]) by dlee73.ent.ti.com ([157.170.170.88]) with mapi; Tue, 20 Jan 2009 16:29:27 -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" Date: Tue, 20 Jan 2009 16:29:26 -0600 Subject: [PATCH v2] V4L2: Add COLORFX user control Thread-Topic: [PATCH v2] V4L2: Add COLORFX user control Thread-Index: Acl7To1BL48rgBoxR1+h7Bo0xmVaGw== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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)