diff options
| author | Manjunath Hadli <manjunath.hadli@ti.com> | 2012-10-18 06:54:59 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-12-19 09:20:19 -0500 |
| commit | c196f6ee61e42df9acec797ab41a0c8d87e8aa2e (patch) | |
| tree | a1bc606197b84c6b4bf743427cf576594435e575 | |
| parent | f818b358dc94c845490dfc8a9771492e5311fe9e (diff) | |
[media] media: add new mediabus format enums for dm365
add new enum entries for supporting the media-bus formats on dm365.
These include some bayer and some non-bayer formats.
V4L2_MBUS_FMT_YDYUYDYV8_1X16 and V4L2_MBUS_FMT_UV8_1X8 are used
internal to the hardware by the resizer.
V4L2_MBUS_FMT_SBGGR10_ALAW8_1X8 represents the bayer ALAW format
that is supported by dm365 hardware.
Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Lad, Prabhakar <prabhakar.lad@ti.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| -rw-r--r-- | Documentation/DocBook/media/v4l/subdev-formats.xml | 250 | ||||
| -rw-r--r-- | include/uapi/linux/v4l2-mediabus.h | 10 |
2 files changed, 252 insertions, 8 deletions
diff --git a/Documentation/DocBook/media/v4l/subdev-formats.xml b/Documentation/DocBook/media/v4l/subdev-formats.xml index a0a936455fae..6f341d1eca1a 100644 --- a/Documentation/DocBook/media/v4l/subdev-formats.xml +++ b/Documentation/DocBook/media/v4l/subdev-formats.xml | |||
| @@ -353,9 +353,9 @@ | |||
| 353 | <listitem><para>The number of bits per pixel component. All components are | 353 | <listitem><para>The number of bits per pixel component. All components are |
| 354 | transferred on the same number of bits. Common values are 8, 10 and 12.</para> | 354 | transferred on the same number of bits. Common values are 8, 10 and 12.</para> |
| 355 | </listitem> | 355 | </listitem> |
| 356 | <listitem><para>If the pixel components are DPCM-compressed, a mention of the | 356 | <listitem><para>The compression (optional). If the pixel components are |
| 357 | DPCM compression and the number of bits per compressed pixel component.</para> | 357 | ALAW- or DPCM-compressed, a mention of the compression scheme and the |
| 358 | </listitem> | 358 | number of bits per compressed pixel component.</para></listitem> |
| 359 | <listitem><para>The number of bus samples per pixel. Pixels that are wider than | 359 | <listitem><para>The number of bus samples per pixel. Pixels that are wider than |
| 360 | the bus width must be transferred in multiple samples. Common values are | 360 | the bus width must be transferred in multiple samples. Common values are |
| 361 | 1 and 2.</para></listitem> | 361 | 1 and 2.</para></listitem> |
| @@ -504,6 +504,74 @@ | |||
| 504 | <entry>r<subscript>1</subscript></entry> | 504 | <entry>r<subscript>1</subscript></entry> |
| 505 | <entry>r<subscript>0</subscript></entry> | 505 | <entry>r<subscript>0</subscript></entry> |
| 506 | </row> | 506 | </row> |
| 507 | <row id="V4L2-MBUS-FMT-SBGGR10-ALAW8-1X8"> | ||
| 508 | <entry>V4L2_MBUS_FMT_SBGGR10_ALAW8_1X8</entry> | ||
| 509 | <entry>0x3015</entry> | ||
| 510 | <entry></entry> | ||
| 511 | <entry>-</entry> | ||
| 512 | <entry>-</entry> | ||
| 513 | <entry>-</entry> | ||
| 514 | <entry>-</entry> | ||
| 515 | <entry>b<subscript>7</subscript></entry> | ||
| 516 | <entry>b<subscript>6</subscript></entry> | ||
| 517 | <entry>b<subscript>5</subscript></entry> | ||
| 518 | <entry>b<subscript>4</subscript></entry> | ||
| 519 | <entry>b<subscript>3</subscript></entry> | ||
| 520 | <entry>b<subscript>2</subscript></entry> | ||
| 521 | <entry>b<subscript>1</subscript></entry> | ||
| 522 | <entry>b<subscript>0</subscript></entry> | ||
| 523 | </row> | ||
| 524 | <row id="V4L2-MBUS-FMT-SGBRG10-ALAW8-1X8"> | ||
| 525 | <entry>V4L2_MBUS_FMT_SGBRG10_ALAW8_1X8</entry> | ||
| 526 | <entry>0x3016</entry> | ||
| 527 | <entry></entry> | ||
| 528 | <entry>-</entry> | ||
| 529 | <entry>-</entry> | ||
| 530 | <entry>-</entry> | ||
| 531 | <entry>-</entry> | ||
| 532 | <entry>g<subscript>7</subscript></entry> | ||
| 533 | <entry>g<subscript>6</subscript></entry> | ||
| 534 | <entry>g<subscript>5</subscript></entry> | ||
| 535 | <entry>g<subscript>4</subscript></entry> | ||
| 536 | <entry>g<subscript>3</subscript></entry> | ||
| 537 | <entry>g<subscript>2</subscript></entry> | ||
| 538 | <entry>g<subscript>1</subscript></entry> | ||
| 539 | <entry>g<subscript>0</subscript></entry> | ||
| 540 | </row> | ||
| 541 | <row id="V4L2-MBUS-FMT-SGRBG10-ALAW8-1X8"> | ||
| 542 | <entry>V4L2_MBUS_FMT_SGRBG10_ALAW8_1X8</entry> | ||
| 543 | <entry>0x3017</entry> | ||
| 544 | <entry></entry> | ||
| 545 | <entry>-</entry> | ||
| 546 | <entry>-</entry> | ||
| 547 | <entry>-</entry> | ||
| 548 | <entry>-</entry> | ||
| 549 | <entry>g<subscript>7</subscript></entry> | ||
| 550 | <entry>g<subscript>6</subscript></entry> | ||
| 551 | <entry>g<subscript>5</subscript></entry> | ||
| 552 | <entry>g<subscript>4</subscript></entry> | ||
| 553 | <entry>g<subscript>3</subscript></entry> | ||
| 554 | <entry>g<subscript>2</subscript></entry> | ||
| 555 | <entry>g<subscript>1</subscript></entry> | ||
| 556 | <entry>g<subscript>0</subscript></entry> | ||
| 557 | </row> | ||
| 558 | <row id="V4L2-MBUS-FMT-SRGGB10-ALAW8-1X8"> | ||
| 559 | <entry>V4L2_MBUS_FMT_SRGGB10_ALAW8_1X8</entry> | ||
| 560 | <entry>0x3018</entry> | ||
| 561 | <entry></entry> | ||
| 562 | <entry>-</entry> | ||
| 563 | <entry>-</entry> | ||
| 564 | <entry>-</entry> | ||
| 565 | <entry>-</entry> | ||
| 566 | <entry>r<subscript>7</subscript></entry> | ||
| 567 | <entry>r<subscript>6</subscript></entry> | ||
| 568 | <entry>r<subscript>5</subscript></entry> | ||
| 569 | <entry>r<subscript>4</subscript></entry> | ||
| 570 | <entry>r<subscript>3</subscript></entry> | ||
| 571 | <entry>r<subscript>2</subscript></entry> | ||
| 572 | <entry>r<subscript>1</subscript></entry> | ||
| 573 | <entry>r<subscript>0</subscript></entry> | ||
| 574 | </row> | ||
| 507 | <row id="V4L2-MBUS-FMT-SBGGR10-DPCM8-1X8"> | 575 | <row id="V4L2-MBUS-FMT-SBGGR10-DPCM8-1X8"> |
| 508 | <entry>V4L2_MBUS_FMT_SBGGR10_DPCM8_1X8</entry> | 576 | <entry>V4L2_MBUS_FMT_SBGGR10_DPCM8_1X8</entry> |
| 509 | <entry>0x300b</entry> | 577 | <entry>0x300b</entry> |
| @@ -853,10 +921,16 @@ | |||
| 853 | <title>Packed YUV Formats</title> | 921 | <title>Packed YUV Formats</title> |
| 854 | 922 | ||
| 855 | <para>Those data formats transfer pixel data as (possibly downsampled) Y, U | 923 | <para>Those data formats transfer pixel data as (possibly downsampled) Y, U |
| 856 | and V components. The format code is made of the following information. | 924 | and V components. Some formats include dummy bits in some of their samples |
| 925 | and are collectively referred to as "YDYC" (Y-Dummy-Y-Chroma) formats. | ||
| 926 | One cannot rely on the values of these dummy bits as those are undefined. | ||
| 927 | </para> | ||
| 928 | <para>The format code is made of the following information. | ||
| 857 | <itemizedlist> | 929 | <itemizedlist> |
| 858 | <listitem><para>The Y, U and V components order code, as transferred on the | 930 | <listitem><para>The Y, U and V components order code, as transferred on the |
| 859 | bus. Possible values are YUYV, UYVY, YVYU and VYUY.</para></listitem> | 931 | bus. Possible values are YUYV, UYVY, YVYU and VYUY for formats with no |
| 932 | dummy bit, and YDYUYDYV, YDYVYDYU, YUYDYVYD and YVYDYUYD for YDYC formats. | ||
| 933 | </para></listitem> | ||
| 860 | <listitem><para>The number of bits per pixel component. All components are | 934 | <listitem><para>The number of bits per pixel component. All components are |
| 861 | transferred on the same number of bits. Common values are 8, 10 and 12.</para> | 935 | transferred on the same number of bits. Common values are 8, 10 and 12.</para> |
| 862 | </listitem> | 936 | </listitem> |
| @@ -877,7 +951,21 @@ | |||
| 877 | U, Y, V, Y order will be named <constant>V4L2_MBUS_FMT_UYVY8_2X8</constant>. | 951 | U, Y, V, Y order will be named <constant>V4L2_MBUS_FMT_UYVY8_2X8</constant>. |
| 878 | </para> | 952 | </para> |
| 879 | 953 | ||
| 880 | <para>The following table lisst existing packet YUV formats.</para> | 954 | <para><xref linkend="v4l2-mbus-pixelcode-yuv8"/> list existing packet YUV |
| 955 | formats and describes the organization of each pixel data in each sample. | ||
| 956 | When a format pattern is split across multiple samples each of the samples | ||
| 957 | in the pattern is described.</para> | ||
| 958 | |||
| 959 | <para>The role of each bit transferred over the bus is identified by one | ||
| 960 | of the following codes.</para> | ||
| 961 | |||
| 962 | <itemizedlist> | ||
| 963 | <listitem><para>y<subscript>x</subscript> for luma component bit number x</para></listitem> | ||
| 964 | <listitem><para>u<subscript>x</subscript> for blue chroma component bit number x</para></listitem> | ||
| 965 | <listitem><para>v<subscript>x</subscript> for red chroma component bit number x</para></listitem> | ||
| 966 | <listitem><para>- for non-available bits (for positions higher than the bus width)</para></listitem> | ||
| 967 | <listitem><para>d for dummy bits</para></listitem> | ||
| 968 | </itemizedlist> | ||
| 881 | 969 | ||
| 882 | <table pgwide="0" frame="none" id="v4l2-mbus-pixelcode-yuv8"> | 970 | <table pgwide="0" frame="none" id="v4l2-mbus-pixelcode-yuv8"> |
| 883 | <title>YUV Formats</title> | 971 | <title>YUV Formats</title> |
| @@ -965,6 +1053,56 @@ | |||
| 965 | <entry>y<subscript>1</subscript></entry> | 1053 | <entry>y<subscript>1</subscript></entry> |
| 966 | <entry>y<subscript>0</subscript></entry> | 1054 | <entry>y<subscript>0</subscript></entry> |
| 967 | </row> | 1055 | </row> |
| 1056 | <row id="V4L2-MBUS-FMT-UV8-1X8"> | ||
| 1057 | <entry>V4L2_MBUS_FMT_UV8_1X8</entry> | ||
| 1058 | <entry>0x2015</entry> | ||
| 1059 | <entry></entry> | ||
| 1060 | <entry>-</entry> | ||
| 1061 | <entry>-</entry> | ||
| 1062 | <entry>-</entry> | ||
| 1063 | <entry>-</entry> | ||
| 1064 | <entry>-</entry> | ||
| 1065 | <entry>-</entry> | ||
| 1066 | <entry>-</entry> | ||
