From patchwork Thu Jan 15 02:59:34 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyle Guinn X-Patchwork-Id: 2417 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 n0F2tXOf005629 for ; Wed, 14 Jan 2009 18:55:34 -0800 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753472AbZAOC7l (ORCPT ); Wed, 14 Jan 2009 21:59:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753483AbZAOC7l (ORCPT ); Wed, 14 Jan 2009 21:59:41 -0500 Received: from mail-ew0-f17.google.com ([209.85.219.17]:62556 "EHLO mail-ew0-f17.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753472AbZAOC7k (ORCPT ); Wed, 14 Jan 2009 21:59:40 -0500 Received: by ewy10 with SMTP id 10so1041169ewy.13 for ; Wed, 14 Jan 2009 18:59:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:cc:mime-version:content-type:content-transfer-encoding :content-disposition:message-id; bh=Xj8xWpLeJahSMLm8Pvh/cPSJi0lJtq8MS3eguA4Sk5s=; b=QCxd5N387Mf0mRWab/dfHmpNnP/7OaRI/17i31IboJXrWUyQGfptfaZYDJG9CyT6Ri taWe6rWopIQRYHL1YNGFDLsUnYzzrn0cYw0EyFk71HHSv3/K8FORPbOGYbV4trZe8gpm CZAfpeNwXX0LR2BcQjaVbKd7wamSE220API00= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; b=L+FNg2liTBJJe7zWFBjzzwhrKFqzbWqiWYLCJabpHi9zOcGBx7TkAIjm8M3QboKvxt 2djUehHLaFv35c3pk17kAsqPq8QKXlqS5vZt+DecfUAVI8etPufytW7obLw7sYwzEMh8 YAmU08yTlmsDj0A26SoZH+1UxmJE7C6QJKBHo= Received: by 10.210.125.13 with SMTP id x13mr1010018ebc.139.1231988378541; Wed, 14 Jan 2009 18:59:38 -0800 (PST) Received: from neptune.elyk.lan (c-69-254-254-50.hsd1.ks.comcast.net [69.254.254.50]) by mx.google.com with ESMTPS id 28sm4796541eye.30.2009.01.14.18.59.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 14 Jan 2009 18:59:37 -0800 (PST) From: Kyle Guinn To: moinejf@free.fr Subject: [PATCH 1/2] Add Mars-Semi MR97310A format Date: Wed, 14 Jan 2009 20:59:34 -0600 User-Agent: KMail/1.9.9 Cc: linux-media@vger.kernel.org, mchehab@infradead.org MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200901142059.34943.elyk03@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org # HG changeset patch # User Kyle Guinn # Date 1231822560 21600 # Node ID 1bf7a4403e5f1cd10f12a69a9d9239f1bf4a58b6 # Parent b09b5128742f75bb0ce4375b23feac6c5f560aec Add Mars-Semi MR97310A format From: Kyle Guinn Add a pixel format for the Mars-Semi MR97310A webcam controller. The MR97310A is a dual-mode webcam controller that provides compressed BGGR Bayer frames. The decompression algorithm for still images is the same as for video, and is currently implemented in libgphoto2. Priority: normal Signed-off-by: Kyle Guinn --- 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 --git a/linux/include/linux/videodev2.h b/linux/include/linux/videodev2.h --- a/linux/include/linux/videodev2.h +++ b/linux/include/linux/videodev2.h @@ -344,6 +344,7 @@ #define V4L2_PIX_FMT_SPCA508 v4l2_fourcc('S', '5', '0', '8') /* YUVY per line */ #define V4L2_PIX_FMT_SPCA561 v4l2_fourcc('S', '5', '6', '1') /* compressed GBRG bayer */ #define V4L2_PIX_FMT_PAC207 v4l2_fourcc('P', '2', '0', '7') /* compressed BGGR bayer */ +#define V4L2_PIX_FMT_MR97310A v4l2_fourcc('M', '3', '1', '0') /* compressed BGGR bayer */ #define V4L2_PIX_FMT_PJPG v4l2_fourcc('P', 'J', 'P', 'G') /* Pixart 73xx JPEG */ #define V4L2_PIX_FMT_YVYU v4l2_fourcc('Y', 'V', 'Y', 'U') /* 16 YVU 4:2:2 */