Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Sylwester Nawrocki and committed by
Mauro Carvalho Chehab
16846524 f1703aa6

+49
+46
Documentation/DocBook/v4l/subdev-formats.xml
··· 2522 2522 </tgroup> 2523 2523 </table> 2524 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 2571 </section> 2526 2572 </section>
+3
include/linux/v4l2-mediabus.h
··· 89 89 V4L2_MBUS_FMT_SGBRG12_1X12 = 0x3010, 90 90 V4L2_MBUS_FMT_SGRBG12_1X12 = 0x3011, 91 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 /**