diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2011-03-25 11:09:43 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-05-20 10:28:49 -0400 |
commit | 16846524afc200e795aaae659356001780fa91db (patch) | |
tree | 8f5a02df46cfb3c1c1ddc5ea0e239eeca3a938c6 | |
parent | f1703aa6abfc884b144cdd374633efdca5028bf7 (diff) |
[media] v4l: Add V4L2_MBUS_FMT_JPEG_1X8 media bus format
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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | Documentation/DocBook/v4l/subdev-formats.xml | 46 | ||||
-rw-r--r-- | 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 d7ccd25edcc1..a26b10c07857 100644 --- a/Documentation/DocBook/v4l/subdev-formats.xml +++ b/Documentation/DocBook/v4l/subdev-formats.xml | |||
@@ -2522,5 +2522,51 @@ | |||
2522 | </tgroup> | 2522 | </tgroup> |
2523 | </table> | 2523 | </table> |
2524 | </section> | 2524 | </section> |
2525 | |||
2526 | <section> | ||
2527 | <title>JPEG Compressed Formats</title> | ||
2528 | |||
2529 | <para>Those data formats consist of an ordered sequence of 8-bit bytes | ||
2530 | obtained from JPEG compression process. Additionally to the | ||
2531 | <constant>_JPEG</constant> prefix the format code is made of | ||
2532 | the following information. | ||
2533 | <itemizedlist> | ||
2534 | <listitem>The number of bus samples per entropy encoded byte.</listitem> | ||
2535 | <listitem>The bus width.</listitem> | ||
2536 | </itemizedlist> | ||
2537 | |||
2538 | <para>For instance, for a JPEG baseline process and an 8-bit bus width | ||
2539 | the format will be named <constant>V4L2_MBUS_FMT_JPEG_1X8</constant>. | ||
2540 | </para> | ||
2541 | </para> | ||
2542 | |||
2543 | <para>The following table lists existing JPEG compressed formats.</para> | ||
2544 | |||
2545 | <table pgwide="0" frame="none" id="v4l2-mbus-pixelcode-jpeg"> | ||
2546 | <title>JPEG Formats</title> | ||
2547 | <tgroup cols="3"> | ||
2548 | <colspec colname="id" align="left" /> | ||
2549 | <colspec colname="code" align="left"/> | ||
2550 | <colspec colname="remarks" align="left"/> | ||
2551 | <thead> | ||
2552 | <row> | ||
2553 | <entry>Identifier</entry> | ||
2554 | <entry>Code</entry> | ||
2555 | <entry>Remarks</entry> | ||
2556 | </row> | ||
2557 | </thead> | ||
2558 | <tbody valign="top"> | ||
2559 | <row id="V4L2-MBUS-FMT-JPEG-1X8"> | ||
2560 | <entry>V4L2_MBUS_FMT_JPEG_1X8</entry> | ||
2561 | <entry>0x4001</entry> | ||
2562 | <entry>Besides of its usage for the parallel bus this format is | ||
2563 | recommended for transmission of JPEG data over MIPI CSI bus | ||
2564 | using the User Defined 8-bit Data types. | ||
2565 | </entry> | ||
2566 | </row> | ||
2567 | </tbody> | ||
2568 | </tgroup> | ||
2569 | </table> | ||
2570 | </section> | ||
2525 | </section> | 2571 | </section> |
2526 | </section> | 2572 | </section> |
diff --git a/include/linux/v4l2-mediabus.h b/include/linux/v4l2-mediabus.h index de5c15921025..5ea7f753a348 100644 --- a/include/linux/v4l2-mediabus.h +++ b/include/linux/v4l2-mediabus.h | |||
@@ -89,6 +89,9 @@ enum v4l2_mbus_pixelcode { | |||
89 | V4L2_MBUS_FMT_SGBRG12_1X12 = 0x3010, | 89 | V4L2_MBUS_FMT_SGBRG12_1X12 = 0x3010, |
90 | V4L2_MBUS_FMT_SGRBG12_1X12 = 0x3011, | 90 | V4L2_MBUS_FMT_SGRBG12_1X12 = 0x3011, |
91 | V4L2_MBUS_FMT_SRGGB12_1X12 = 0x3012, | 91 | V4L2_MBUS_FMT_SRGGB12_1X12 = 0x3012, |
92 | |||
93 | /* JPEG compressed formats - next is 0x4002 */ | ||
94 | V4L2_MBUS_FMT_JPEG_1X8 = 0x4001, | ||
92 | }; | 95 | }; |
93 | 96 | ||
94 | /** | 97 | /** |