From patchwork Thu Mar 24 14:19:54 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 658861 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2OEK6Gg000797 for ; Thu, 24 Mar 2011 14:20:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752204Ab1CXOUE (ORCPT ); Thu, 24 Mar 2011 10:20:04 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:41272 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751634Ab1CXOUD (ORCPT ); Thu, 24 Mar 2011 10:20:03 -0400 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: TEXT/PLAIN Received: from spt2.w1.samsung.com ([210.118.77.13]) by mailout3.w1.samsung.com (Sun Java(tm) System Messaging Server 6.3-8.04 (built Jul 29 2009; 32bit)) with ESMTP id <0LIK00CEGFTAQ790@mailout3.w1.samsung.com> for linux-media@vger.kernel.org; Thu, 24 Mar 2011 14:19:58 +0000 (GMT) Received: from linux.samsung.com ([106.116.38.10]) by spt2.w1.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0LIK00FA1FT9JN@spt2.w1.samsung.com> for linux-media@vger.kernel.org; Thu, 24 Mar 2011 14:19:57 +0000 (GMT) Received: from localhost.localdomain (unknown [106.116.38.10]) by linux.samsung.com (Postfix) with ESMTP id 4F9B827004C; Thu, 24 Mar 2011 15:21:12 +0100 (CET) Date: Thu, 24 Mar 2011 15:19:54 +0100 From: Sylwester Nawrocki Subject: [RFC/PATCH] v4l: Add V4L2_MBUS_FMT_JPEG_1X8 media bus format To: linux-media@vger.kernel.org Cc: laurent.pinchart@ideasonboard.com, g.liakhovetski@gmx.de, m.szyprowski@samsung.com, riverful.kim@samsung.com, s.nawrocki@samsung.com, Kyungmin Park Message-id: <1300976395-23826-1-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.2.3 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 24 Mar 2011 14:20:07 +0000 (UTC) diff --git a/Documentation/DocBook/v4l/subdev-formats.xml b/Documentation/DocBook/v4l/subdev-formats.xml index b5376e2..60a6fe2 100644 --- a/Documentation/DocBook/v4l/subdev-formats.xml +++ b/Documentation/DocBook/v4l/subdev-formats.xml @@ -2463,5 +2463,50 @@ + +
+ JPEG Compressed Formats + + Those data formats are used to transfer arbitrary byte-based image + data obtained from JPEG compression process. The format code + is made of the following information. + + The bus width in bits. + + + For instance, a format where bus width is 8 bits will be named + V4L2_MBUS_FMT_JPEG_1X8. + + + + + The following table lists existing JPEG compressed formats. + + + JPEG Formats + + + + + + + Identifier + Code + Remarks + + + + + V4L2_MBUS_FMT_JPEG_1X8 + 0x4001 + This format shall be used for of transmission of JPEG + data over MIPI CSI-2 bus with User Defined 8-bit Data types. + + + + + +
+
diff --git a/include/linux/v4l2-mediabus.h b/include/linux/v4l2-mediabus.h index 7054a7a..15d6cda 100644 --- a/include/linux/v4l2-mediabus.h +++ b/include/linux/v4l2-mediabus.h @@ -86,6 +86,9 @@ enum v4l2_mbus_pixelcode { V4L2_MBUS_FMT_SGBRG12_1X12 = 0x3010, V4L2_MBUS_FMT_SGRBG12_1X12 = 0x3011, V4L2_MBUS_FMT_SRGGB12_1X12 = 0x3012, + + /* JPEG compressed formats - next is 0x4002 */ + V4L2_MBUS_FMT_JPEG_1X8 = 0x4001, }; /**