public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC/PATCH] v4l: Add V4L2_MBUS_FMT_JPEG_1X8 media bus format
@ 2011-03-24 14:19 Sylwester Nawrocki
  2011-03-24 14:38 ` Laurent Pinchart
  0 siblings, 1 reply; 6+ messages in thread
From: Sylwester Nawrocki @ 2011-03-24 14:19 UTC (permalink / raw)
  To: linux-media
  Cc: laurent.pinchart, g.liakhovetski, m.szyprowski, riverful.kim,
	s.nawrocki, Kyungmin Park

Add V4L2_MBUS_FMT_JPEG_1X8 format and the corresponding Docbook
documentation.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---

Hi all,

I would like to propose and addition of JPEG format to the list
of media bus formats. The requirement of this format had already
been discussed in the past [1], [2].
This patch adds relevant entry in v4l2-mediabus.h header and
the documentation. Initially I have added only bus width information
to the format code. I am not sure what other information could be
included. I am open to suggestions if anyone knows about any other
requirements.

JPEG format on media bus is, among others, required for Samsung
S5P MIPI CSI receiver [3] and M-5MOLS camera drivers [4].

Comments are welcome!

--
Regards,
Sylwester Nawrocki,
Samsung Poland R&D Center

[1] http://www.spinics.net/lists/linux-media/msg27980.html
[2] http://www.spinics.net/lists/linux-media/msg28651.html
[3] http://www.spinics.net/lists/linux-samsung-soc/msg03807.html
[4] http://lwn.net/Articles/433836/
---
 Documentation/DocBook/v4l/subdev-formats.xml |   45 ++++++++++++++++++++++++++
 include/linux/v4l2-mediabus.h                |    3 ++
 2 files changed, 48 insertions(+), 0 deletions(-)

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 @@
 	</tgroup>
       </table>
     </section>
+
+    <section>
+      <title>JPEG Compressed Formats</title>
+
+      <para>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.
+	<itemizedlist>
+	  <listitem>The bus width in bits.</listitem>
+	</itemizedlist>
+
+	<para>For instance, a format where bus width is 8 bits will be named
+	  <constant>V4L2_MBUS_FMT_JPEG_1X8</constant>.
+	</para>
+
+      </para>
+
+      <para>The following table lists existing JPEG compressed formats.</para>
+
+      <table pgwide="0" frame="none" id="v4l2-mbus-pixelcode-jpeg">
+	<title>JPEG Formats</title>
+	<tgroup cols="23">
+	  <colspec colname="id" align="left" />
+	  <colspec colname="code" align="left"/>
+	  <colspec colname="remarks" align="left"/>
+	  <thead>
+	    <row>
+	      <entry>Identifier</entry>
+	      <entry>Code</entry>
+	      <entry>Remarks</entry>
+	    </row>
+	  </thead>
+	  <tbody valign="top">
+	    <row id="V4L2-MBUS-FMT-JPEG-1X8">
+	      <entry>V4L2_MBUS_FMT_JPEG_1X8</entry>
+	      <entry>0x4001</entry>
+	      <entry> This format shall be used for of transmission of JPEG
+		data over MIPI CSI-2 bus with User Defined 8-bit Data types.
+	      </entry>
+	    </row>
+
+	  </tbody>
+	</tgroup>
+      </table>
+    </section>
   </section>
 </section>
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,
 };
 
 /**
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [RFC/PATCH] v4l: Add V4L2_MBUS_FMT_JPEG_1X8 media bus format
  2011-03-24 14:19 [RFC/PATCH] v4l: Add V4L2_MBUS_FMT_JPEG_1X8 media bus format Sylwester Nawrocki
@ 2011-03-24 14:38 ` Laurent Pinchart
  2011-03-24 14:58   ` Sylwester Nawrocki
  0 siblings, 1 reply; 6+ messages in thread
From: Laurent Pinchart @ 2011-03-24 14:38 UTC (permalink / raw)
  To: Sylwester Nawrocki
  Cc: linux-media, g.liakhovetski, m.szyprowski, riverful.kim,
	Kyungmin Park

Hi Sylwester,

On Thursday 24 March 2011 15:19:54 Sylwester Nawrocki wrote:
> Add V4L2_MBUS_FMT_JPEG_1X8 format and the corresponding Docbook
> documentation.
> 
> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
> 
> Hi all,
> 
> I would like to propose and addition of JPEG format to the list
> of media bus formats. The requirement of this format had already
> been discussed in the past [1], [2].
> This patch adds relevant entry in v4l2-mediabus.h header and
> the documentation. Initially I have added only bus width information
> to the format code. I am not sure what other information could be
> included. I am open to suggestions if anyone knows about any other
> requirements.
> 
> JPEG format on media bus is, among others, required for Samsung
> S5P MIPI CSI receiver [3] and M-5MOLS camera drivers [4].
> 
> Comments are welcome!
> 
> --
> Regards,
> Sylwester Nawrocki,
> Samsung Poland R&D Center
> 
> [1] http://www.spinics.net/lists/linux-media/msg27980.html
> [2] http://www.spinics.net/lists/linux-media/msg28651.html
> [3] http://www.spinics.net/lists/linux-samsung-soc/msg03807.html
> [4] http://lwn.net/Articles/433836/
> ---
>  Documentation/DocBook/v4l/subdev-formats.xml |   45
> ++++++++++++++++++++++++++ include/linux/v4l2-mediabus.h                | 
>   3 ++
>  2 files changed, 48 insertions(+), 0 deletions(-)
> 
> 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 @@
>  	</tgroup>
>        </table>
>      </section>
> +
> +    <section>
> +      <title>JPEG Compressed Formats</title>
> +
> +      <para>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.
> +	<itemizedlist>
> +	  <listitem>The bus width in bits.</listitem>
> +	</itemizedlist>
> +
> +	<para>For instance, a format where bus width is 8 bits will be named
> +	  <constant>V4L2_MBUS_FMT_JPEG_1X8</constant>.
> +	</para>
> +
> +      </para>
> +
> +      <para>The following table lists existing JPEG compressed
> formats.</para> +
> +      <table pgwide="0" frame="none" id="v4l2-mbus-pixelcode-jpeg">
> +	<title>JPEG Formats</title>
> +	<tgroup cols="23">
> +	  <colspec colname="id" align="left" />
> +	  <colspec colname="code" align="left"/>
> +	  <colspec colname="remarks" align="left"/>
> +	  <thead>
> +	    <row>
> +	      <entry>Identifier</entry>
> +	      <entry>Code</entry>
> +	      <entry>Remarks</entry>
> +	    </row>
> +	  </thead>
> +	  <tbody valign="top">
> +	    <row id="V4L2-MBUS-FMT-JPEG-1X8">
> +	      <entry>V4L2_MBUS_FMT_JPEG_1X8</entry>
> +	      <entry>0x4001</entry>
> +	      <entry> This format shall be used for of transmission of JPEG
> +		data over MIPI CSI-2 bus with User Defined 8-bit Data types.

JPEG formats are not limited to MIPI, some parallel sensors can transmit JPEG 
as well.

> +	      </entry>
> +	    </row>
> +
> +	  </tbody>
> +	</tgroup>
> +      </table>
> +    </section>
>    </section>
>  </section>
> 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,
>  };
> 
>  /**

-- 
Regards,

Laurent Pinchart

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [RFC/PATCH] v4l: Add V4L2_MBUS_FMT_JPEG_1X8 media bus format
  2011-03-24 14:38 ` Laurent Pinchart
@ 2011-03-24 14:58   ` Sylwester Nawrocki
  2011-03-24 16:31     ` Laurent Pinchart
  0 siblings, 1 reply; 6+ messages in thread
From: Sylwester Nawrocki @ 2011-03-24 14:58 UTC (permalink / raw)
  To: Laurent Pinchart
  Cc: linux-media, g.liakhovetski, m.szyprowski, riverful.kim,
	Kyungmin Park

Hi Laurent,

thanks for your comments.

On 03/24/2011 03:38 PM, Laurent Pinchart wrote:
> Hi Sylwester,
> 
> On Thursday 24 March 2011 15:19:54 Sylwester Nawrocki wrote:
>> Add V4L2_MBUS_FMT_JPEG_1X8 format and the corresponding Docbook
>> documentation.
>>
>> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
>> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
>> ---
>>
>> Hi all,
>>
>> I would like to propose and addition of JPEG format to the list
>> of media bus formats. The requirement of this format had already
>> been discussed in the past [1], [2].
>> This patch adds relevant entry in v4l2-mediabus.h header and
>> the documentation. Initially I have added only bus width information
>> to the format code. I am not sure what other information could be
>> included. I am open to suggestions if anyone knows about any other
>> requirements.
>>
>> JPEG format on media bus is, among others, required for Samsung
>> S5P MIPI CSI receiver [3] and M-5MOLS camera drivers [4].
>>
>> Comments are welcome!
>>
>> --
>> Regards,
>> Sylwester Nawrocki,
>> Samsung Poland R&D Center
>>
>> [1] http://www.spinics.net/lists/linux-media/msg27980.html
>> [2] http://www.spinics.net/lists/linux-media/msg28651.html
>> [3] http://www.spinics.net/lists/linux-samsung-soc/msg03807.html
>> [4] http://lwn.net/Articles/433836/
>> ---
>>  Documentation/DocBook/v4l/subdev-formats.xml |   45
>> ++++++++++++++++++++++++++ include/linux/v4l2-mediabus.h                | 
>>   3 ++
>>  2 files changed, 48 insertions(+), 0 deletions(-)
>>
>> 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 @@
>>  	</tgroup>
>>        </table>
>>      </section>
>> +
>> +    <section>
>> +      <title>JPEG Compressed Formats</title>
>> +
>> +      <para>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.
>> +	<itemizedlist>
>> +	  <listitem>The bus width in bits.</listitem>
>> +	</itemizedlist>
>> +
>> +	<para>For instance, a format where bus width is 8 bits will be named
>> +	  <constant>V4L2_MBUS_FMT_JPEG_1X8</constant>.
>> +	</para>
>> +
>> +      </para>
>> +
>> +      <para>The following table lists existing JPEG compressed
>> formats.</para> +
>> +      <table pgwide="0" frame="none" id="v4l2-mbus-pixelcode-jpeg">
>> +	<title>JPEG Formats</title>
>> +	<tgroup cols="23">

Oops, looks like I've send wrong patch version. That should read 

<tgroup cols="3">

>> +	  <colspec colname="id" align="left" />
>> +	  <colspec colname="code" align="left"/>
>> +	  <colspec colname="remarks" align="left"/>
>> +	  <thead>
>> +	    <row>
>> +	      <entry>Identifier</entry>
>> +	      <entry>Code</entry>
>> +	      <entry>Remarks</entry>
>> +	    </row>
>> +	  </thead>
>> +	  <tbody valign="top">
>> +	    <row id="V4L2-MBUS-FMT-JPEG-1X8">
>> +	      <entry>V4L2_MBUS_FMT_JPEG_1X8</entry>
>> +	      <entry>0x4001</entry>
>> +	      <entry> This format shall be used for of transmission of JPEG

..and s/for of/for

>> +		data over MIPI CSI-2 bus with User Defined 8-bit Data types.
> 
> JPEG formats are not limited to MIPI, some parallel sensors can transmit JPEG 
> as well.

Yes, I am aware of that. One of examples could be the old TCM8240MD sensor.
http://www.sparkfun.com/datasheets/Sensors/Imaging/TCM8240MD_E150405_REV13.pdf

My intention was to indicate that V4L2_MBUS_FMT_JPEG_1X8 format is
the preferred one for "User Defined 8-bit Data Transmission" over 
the serial MIPI-CSI link.

I'm not sure if "Remarks" column is needed.

Maybe something like:
...
+	<entry>0x4001</entry>
+	<entry> This format is recommended for transmission of JPEG
+	 data over MIPI CSI-2 bus with User Defined 8-bit Data types.
+	<entry> 
...

would be better?

--
Regards,
Sylwester




-- 
Sylwester Nawrocki
Samsung Poland R&D Center

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [RFC/PATCH] v4l: Add V4L2_MBUS_FMT_JPEG_1X8 media bus format
  2011-03-24 14:58   ` Sylwester Nawrocki
@ 2011-03-24 16:31     ` Laurent Pinchart
  2011-03-25 15:29       ` [RFC/PATCH v2] " Sylwester Nawrocki
  0 siblings, 1 reply; 6+ messages in thread
From: Laurent Pinchart @ 2011-03-24 16:31 UTC (permalink / raw)
  To: Sylwester Nawrocki
  Cc: linux-media, g.liakhovetski, m.szyprowski, riverful.kim,
	Kyungmin Park

Hi Sylwester,

On Thursday 24 March 2011 15:58:02 Sylwester Nawrocki wrote:
> On 03/24/2011 03:38 PM, Laurent Pinchart wrote:
> > On Thursday 24 March 2011 15:19:54 Sylwester Nawrocki wrote:
> >> Add V4L2_MBUS_FMT_JPEG_1X8 format and the corresponding Docbook
> >> documentation.
> >> 
> >> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
> >> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> >> ---
> >> 
> >> Hi all,
> >> 
> >> I would like to propose and addition of JPEG format to the list
> >> of media bus formats. The requirement of this format had already
> >> been discussed in the past [1], [2].
> >> This patch adds relevant entry in v4l2-mediabus.h header and
> >> the documentation. Initially I have added only bus width information
> >> to the format code. I am not sure what other information could be
> >> included. I am open to suggestions if anyone knows about any other
> >> requirements.
> >> 
> >> JPEG format on media bus is, among others, required for Samsung
> >> S5P MIPI CSI receiver [3] and M-5MOLS camera drivers [4].
> >> 
> >> Comments are welcome!
> >> 
> >> --
> >> Regards,
> >> Sylwester Nawrocki,
> >> Samsung Poland R&D Center
> >> 
> >> [1] http://www.spinics.net/lists/linux-media/msg27980.html
> >> [2] http://www.spinics.net/lists/linux-media/msg28651.html
> >> [3] http://www.spinics.net/lists/linux-samsung-soc/msg03807.html
> >> [4] http://lwn.net/Articles/433836/
> >> ---
> >> 
> >>  Documentation/DocBook/v4l/subdev-formats.xml |   45
> >> 
> >> ++++++++++++++++++++++++++ include/linux/v4l2-mediabus.h               
> >> |
> >> 
> >>   3 ++
> >>  
> >>  2 files changed, 48 insertions(+), 0 deletions(-)
> >> 
> >> 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 @@
> >> 
> >>  	</tgroup>
> >>  	
> >>        </table>
> >>      
> >>      </section>
> >> 
> >> +
> >> +    <section>
> >> +      <title>JPEG Compressed Formats</title>
> >> +
> >> +      <para>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.
> >> +	<itemizedlist>
> >> +	  <listitem>The bus width in bits.</listitem>
> >> +	</itemizedlist>
> >> +
> >> +	<para>For instance, a format where bus width is 8 bits will be named
> >> +	  <constant>V4L2_MBUS_FMT_JPEG_1X8</constant>.
> >> +	</para>
> >> +
> >> +      </para>
> >> +
> >> +      <para>The following table lists existing JPEG compressed
> >> formats.</para> +
> >> +      <table pgwide="0" frame="none" id="v4l2-mbus-pixelcode-jpeg">
> >> +	<title>JPEG Formats</title>
> >> +	<tgroup cols="23">
> 
> Oops, looks like I've send wrong patch version. That should read
> 
> <tgroup cols="3">
> 
> >> +	  <colspec colname="id" align="left" />
> >> +	  <colspec colname="code" align="left"/>
> >> +	  <colspec colname="remarks" align="left"/>
> >> +	  <thead>
> >> +	    <row>
> >> +	      <entry>Identifier</entry>
> >> +	      <entry>Code</entry>
> >> +	      <entry>Remarks</entry>
> >> +	    </row>
> >> +	  </thead>
> >> +	  <tbody valign="top">
> >> +	    <row id="V4L2-MBUS-FMT-JPEG-1X8">
> >> +	      <entry>V4L2_MBUS_FMT_JPEG_1X8</entry>
> >> +	      <entry>0x4001</entry>
> >> +	      <entry> This format shall be used for of transmission of JPEG
> 
> ..and s/for of/for
> 
> >> +		data over MIPI CSI-2 bus with User Defined 8-bit Data types.
> > 
> > JPEG formats are not limited to MIPI, some parallel sensors can transmit
> > JPEG as well.
> 
> Yes, I am aware of that. One of examples could be the old TCM8240MD sensor.
> http://www.sparkfun.com/datasheets/Sensors/Imaging/TCM8240MD_E150405_REV13.
> pdf
> 
> My intention was to indicate that V4L2_MBUS_FMT_JPEG_1X8 format is
> the preferred one for "User Defined 8-bit Data Transmission" over
> the serial MIPI-CSI link.
> 
> I'm not sure if "Remarks" column is needed.
> 
> Maybe something like:
> ...
> +	<entry>0x4001</entry>
> +	<entry> This format is recommended for transmission of JPEG
> +	 data over MIPI CSI-2 bus with User Defined 8-bit Data types.
> +	<entry>
> ...
> 
> would be better?

Yes that's better. Your first version sounded like the format was only used 
for MIPI CSI-2 sensors to me.

-- 
Regards,

Laurent Pinchart

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [RFC/PATCH v2] v4l: Add V4L2_MBUS_FMT_JPEG_1X8 media bus format
  2011-03-24 16:31     ` Laurent Pinchart
@ 2011-03-25 15:29       ` Sylwester Nawrocki
  2011-03-29 15:11         ` Laurent Pinchart
  0 siblings, 1 reply; 6+ messages in thread
From: Sylwester Nawrocki @ 2011-03-25 15:29 UTC (permalink / raw)
  To: linux-media
  Cc: laurent.pinchart, g.liakhovetski, m.szyprowski, riverful.kim,
	s.nawrocki, Kyungmin Park

Add V4L2_MBUS_FMT_JPEG_1X8 format and the corresponding Docbook
documentation.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---

Hello,

it's a second patch version adding V4L2_MBUS_FMT_JPEG_1X8
format to the list of media bus formats. The requirement of
this format had already been discussed in the past (1*, 2*).
This patch adds relevant entry in v4l2-mediabus.h header and
the documentation.

Changes since v1:
 - rewritten description of JPEG formats code structure

Comments and suggestions are welcome.

--
Regards,
Sylwester Nawrocki,
Samsung Poland R&D Center


1* http://www.spinics.net/lists/linux-media/msg27980.html
2* http://www.spinics.net/lists/linux-media/msg28651.html
---
 Documentation/DocBook/v4l/subdev-formats.xml |   46 ++++++++++++++++++++++++++
 include/linux/v4l2-mediabus.h                |    3 ++
 2 files changed, 49 insertions(+), 0 deletions(-)

diff --git a/Documentation/DocBook/v4l/subdev-formats.xml b/Documentation/DocBook/v4l/subdev-formats.xml
index b5376e2..a65e97e 100644
--- a/Documentation/DocBook/v4l/subdev-formats.xml
+++ b/Documentation/DocBook/v4l/subdev-formats.xml
@@ -2463,5 +2463,51 @@
 	</tgroup>
       </table>
     </section>
+
+    <section>
+      <title>JPEG Compressed Formats</title>
+
+      <para>Those data formats consist of an ordered sequence of 8-bit bytes
+	obtained from JPEG compression process. Additionally to the
+	<constant>_JPEG</constant> prefix the format code is made of
+	the following information.
+	<itemizedlist>
+	  <listitem>The number of bus samples per entropy encoded byte.</listitem>
+	  <listitem>The bus width.</listitem>
+	</itemizedlist>
+
+	<para>For instance, for a JPEG baseline process and an 8-bit bus width
+	  the format will be named <constant>V4L2_MBUS_FMT_JPEG_1X8</constant>.
+	</para>
+      </para>
+
+      <para>The following table lists existing JPEG compressed formats.</para>
+
+      <table pgwide="0" frame="none" id="v4l2-mbus-pixelcode-jpeg">
+	<title>JPEG Formats</title>
+	<tgroup cols="3">
+	  <colspec colname="id" align="left" />
+	  <colspec colname="code" align="left"/>
+	  <colspec colname="remarks" align="left"/>
+	  <thead>
+	    <row>
+	      <entry>Identifier</entry>
+	      <entry>Code</entry>
+	      <entry>Remarks</entry>
+	    </row>
+	  </thead>
+	  <tbody valign="top">
+	    <row id="V4L2-MBUS-FMT-JPEG-1X8">
+	      <entry>V4L2_MBUS_FMT_JPEG_1X8</entry>
+	      <entry>0x4001</entry>
+	      <entry>Besides of its usage for the parallel bus this format is
+		recommended for transmission of JPEG data over MIPI CSI bus
+		using the User Defined 8-bit Data types.
+	      </entry>
+	    </row>
+	  </tbody>
+	</tgroup>
+      </table>
+    </section>
   </section>
 </section>
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,
 };
 
 /**
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [RFC/PATCH v2] v4l: Add V4L2_MBUS_FMT_JPEG_1X8 media bus format
  2011-03-25 15:29       ` [RFC/PATCH v2] " Sylwester Nawrocki
@ 2011-03-29 15:11         ` Laurent Pinchart
  0 siblings, 0 replies; 6+ messages in thread
From: Laurent Pinchart @ 2011-03-29 15:11 UTC (permalink / raw)
  To: Sylwester Nawrocki
  Cc: linux-media, g.liakhovetski, m.szyprowski, riverful.kim,
	Kyungmin Park

Hi Sylwester,

On Friday 25 March 2011 16:29:27 Sylwester Nawrocki wrote:
> Add V4L2_MBUS_FMT_JPEG_1X8 format and the corresponding Docbook
> documentation.
> 
> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

-- 
Regards,

Laurent Pinchart

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-03-29 15:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-24 14:19 [RFC/PATCH] v4l: Add V4L2_MBUS_FMT_JPEG_1X8 media bus format Sylwester Nawrocki
2011-03-24 14:38 ` Laurent Pinchart
2011-03-24 14:58   ` Sylwester Nawrocki
2011-03-24 16:31     ` Laurent Pinchart
2011-03-25 15:29       ` [RFC/PATCH v2] " Sylwester Nawrocki
2011-03-29 15:11         ` Laurent Pinchart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox