From patchwork Thu Dec 24 10:34:34 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 69697 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id nBOAYYZK018747 for ; Thu, 24 Dec 2009 10:34:34 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754015AbZLXKec (ORCPT ); Thu, 24 Dec 2009 05:34:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753144AbZLXKec (ORCPT ); Thu, 24 Dec 2009 05:34:32 -0500 Received: from mail.gmx.net ([213.165.64.20]:35425 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751836AbZLXKeb (ORCPT ); Thu, 24 Dec 2009 05:34:31 -0500 Received: (qmail invoked by alias); 24 Dec 2009 10:34:27 -0000 Received: from p57BD1797.dip0.t-ipconnect.de (EHLO axis700.grange) [87.189.23.151] by mail.gmx.net (mp024) with SMTP; 24 Dec 2009 11:34:27 +0100 X-Authenticated: #20450766 X-Provags-ID: V01U2FsdGVkX19him8ubnlhBln8KCyhEzxPf+ux//GiEGbSXKNgbt TY4242wqN3docW Received: from lyakh (helo=localhost) by axis700.grange with local-esmtp (Exim 4.63) (envelope-from ) id 1NNl1e-0001Ni-JZ; Thu, 24 Dec 2009 11:34:34 +0100 Date: Thu, 24 Dec 2009 11:34:34 +0100 (CET) From: Guennadi Liakhovetski To: Mauro Carvalho Chehab cc: Linux Media Mailing List Subject: Re: [PULL] soc-camera and mediabus In-Reply-To: <4B26599D.6050600@infradead.org> Message-ID: References: <4B264FE8.1080709@infradead.org> <4B26599D.6050600@infradead.org> MIME-Version: 1.0 X-Y-GMX-Trusted: 0 X-FuHaFi: 0.49 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff -r 4506e2d54126 -r 52e14d479927 linux/Documentation/DocBook/v4l/pixfmt-srggb10.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/linux/Documentation/DocBook/v4l/pixfmt-srggb10.xml Thu Dec 24 10:53:54 2009 +0100 @@ -0,0 +1,90 @@ + + + V4L2_PIX_FMT_SRGGB10 ('RG10'), + V4L2_PIX_FMT_SGRBG10 ('BA10'), + V4L2_PIX_FMT_SGBRG10 ('GB10'), + V4L2_PIX_FMT_SBGGR10 ('BG10'), + + &manvol; + + + V4L2_PIX_FMT_SRGGB10 + V4L2_PIX_FMT_SGRBG10 + V4L2_PIX_FMT_SGBRG10 + V4L2_PIX_FMT_SBGGR10 + 10-bit Bayer formats expanded to 16 bits + + + Description + + The following four pixel formats are raw sRGB / Bayer formats with +10 bits per colour. Each colour component is stored in a 16-bit word, with 6 +unused high bits filled with zeros. Each n-pixel row contains n/2 green samples +and n/2 blue or red samples, with alternating red and blue rows. Bytes are +stored in memory in little endian order. They are conventionally described +as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an example of one of these +formats + + + <constant>V4L2_PIX_FMT_SBGGR10</constant> 4 × 4 +pixel image + + + Byte Order. + Each cell is one byte, high 6 bits in high bytes are 0. + + + + + + start + 0: + B00low + B00high + G01low + G01high + B02low + B02high + G03low + G03high + + + start + 8: + G10low + G10high + R11low + R11high + G12low + G12high + R13low + R13high + + + start + 16: + B20low + B20high + G21low + G21high + B22low + B22high + G23low + G23high + + + start + 24: + G30low + G30high + R31low + R31high + G32low + G32high + R33low + R33high + + + + + + + + + diff -r 4506e2d54126 -r 52e14d479927 linux/Documentation/DocBook/v4l/pixfmt-srggb8.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/linux/Documentation/DocBook/v4l/pixfmt-srggb8.xml Thu Dec 24 10:53:54 2009 +0100 @@ -0,0 +1,67 @@ + + + V4L2_PIX_FMT_SRGGB8 ('RGGB') + &manvol; + + + V4L2_PIX_FMT_SRGGB8 + Bayer RGB format + + + Description + + This is commonly the native format of digital cameras, +reflecting the arrangement of sensors on the CCD device. Only one red, +green or blue value is given for each pixel. Missing components must +be interpolated from neighbouring pixels. From left to right the first +row consists of a red and green value, the second row of a green and +blue value. This scheme repeats to the right and down for every two +columns and rows. + + + <constant>V4L2_PIX_FMT_SRGGB8</constant> 4 × 4 +pixel image + + + Byte Order. + Each cell is one byte. + + + + + + start + 0: + R00 + G01 + R02 + G03 + + + start + 4: + G10 + B11 + G12 + B13 + + + start + 8: + R20 + G21 + R22 + G23 + + + start + 12: + G30 + B31 + G32 + B33 + + + + + + + + + diff -r 4506e2d54126 -r 52e14d479927 linux/Documentation/DocBook/v4l/pixfmt-y10.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/linux/Documentation/DocBook/v4l/pixfmt-y10.xml Thu Dec 24 10:53:54 2009 +0100 @@ -0,0 +1,79 @@ + + + V4L2_PIX_FMT_Y10 ('Y10 ') + &manvol; + + + V4L2_PIX_FMT_Y10 + Grey-scale image + + + Description + + This is a grey-scale image with a depth of 10 bits per pixel. Pixels +are stored in 16-bit words with unused high bits padded with 0. The least +significant byte is stored at lower memory addresses (little-endian). + + + <constant>V4L2_PIX_FMT_Y10</constant> 4 × 4 +pixel image + + + Byte Order. + Each cell is one byte. + + + + + + start + 0: + Y'00low + Y'00high + Y'01low + Y'01high + Y'02low + Y'02high + Y'03low + Y'03high + + + start + 8: + Y'10low + Y'10high + Y'11low + Y'11high + Y'12low + Y'12high + Y'13low + Y'13high + + + start + 16: + Y'20low + Y'20high + Y'21low + Y'21high + Y'22low + Y'22high + Y'23low + Y'23high + + + start + 24: + Y'30low + Y'30high + Y'31low + Y'31high + Y'32low + Y'32high + Y'33low + Y'33high + + + + + + + + + diff -r 4506e2d54126 -r 52e14d479927 linux/Documentation/DocBook/v4l/pixfmt.xml --- a/linux/Documentation/DocBook/v4l/pixfmt.xml Wed Dec 23 12:28:46 2009 -0200 +++ b/linux/Documentation/DocBook/v4l/pixfmt.xml Thu Dec 24 10:53:54 2009 +0100 @@ -566,7 +566,9 @@ access the palette, this must be done wi &sub-sbggr8; &sub-sgbrg8; &sub-sgrbg8; + &sub-srggb8; &sub-sbggr16; + &sub-srggb10;
@@ -589,6 +591,7 @@ information. &sub-packed-yuv; &sub-grey; + &sub-y10; &sub-y16; &sub-yuyv; &sub-uyvy;