diff options
| author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2013-05-15 10:34:26 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-04-02 23:47:29 -0400 |
| commit | 7b0fd4568bee379474eb0d989ef1125064f19fa7 (patch) | |
| tree | 9c37233d299c402b5d337f82a93bfc87c34eaccd | |
| parent | 5a5394be30dd9725351cdd0f923c1e374dc140cc (diff) | |
[media] v4l: Add RBG and RGB 8:8:8 media bus formats on 24 and 32 bit busses
Add support and documentation for two media bus formats:
MEDIA_BUS_FMT_RBG888_1X24 and MEDIA_BUS_FMT_RGB888_1X32_PADHI
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
| -rw-r--r-- | Documentation/DocBook/media/v4l/subdev-formats.xml | 67 | ||||
| -rw-r--r-- | include/uapi/linux/media-bus-format.h | 4 |
2 files changed, 70 insertions, 1 deletions
diff --git a/Documentation/DocBook/media/v4l/subdev-formats.xml b/Documentation/DocBook/media/v4l/subdev-formats.xml index c5ea868e3909..d253e8f85f4d 100644 --- a/Documentation/DocBook/media/v4l/subdev-formats.xml +++ b/Documentation/DocBook/media/v4l/subdev-formats.xml | |||
| @@ -440,6 +440,36 @@ see <xref linkend="colorspaces" />.</entry> | |||
| 440 | <entry>b<subscript>1</subscript></entry> | 440 | <entry>b<subscript>1</subscript></entry> |
| 441 | <entry>b<subscript>0</subscript></entry> | 441 | <entry>b<subscript>0</subscript></entry> |
| 442 | </row> | 442 | </row> |
| 443 | <row id="MEDIA-BUS-FMT-RBG888-1X24"> | ||
| 444 | <entry>MEDIA_BUS_FMT_RBG888_1X24</entry> | ||
| 445 | <entry>0x100e</entry> | ||
| 446 | <entry></entry> | ||
| 447 | &dash-ent-8; | ||
| 448 | <entry>r<subscript>7</subscript></entry> | ||
| 449 | <entry>r<subscript>6</subscript></entry> | ||
| 450 | <entry>r<subscript>5</subscript></entry> | ||
| 451 | <entry>r<subscript>4</subscript></entry> | ||
| 452 | <entry>r<subscript>3</subscript></entry> | ||
| 453 | <entry>r<subscript>2</subscript></entry> | ||
| 454 | <entry>r<subscript>1</subscript></entry> | ||
| 455 | <entry>r<subscript>0</subscript></entry> | ||
| 456 | <entry>b<subscript>7</subscript></entry> | ||
| 457 | <entry>b<subscript>6</subscript></entry> | ||
| 458 | <entry>b<subscript>5</subscript></entry> | ||
| 459 | <entry>b<subscript>4</subscript></entry> | ||
| 460 | <entry>b<subscript>3</subscript></entry> | ||
| 461 | <entry>b<subscript>2</subscript></entry> | ||
| 462 | <entry>b<subscript>1</subscript></entry> | ||
| 463 | <entry>b<subscript>0</subscript></entry> | ||
| 464 | <entry>g<subscript>7</subscript></entry> | ||
| 465 | <entry>g<subscript>6</subscript></entry> | ||
| 466 | <entry>g<subscript>5</subscript></entry> | ||
| 467 | <entry>g<subscript>4</subscript></entry> | ||
| 468 | <entry>g<subscript>3</subscript></entry> | ||
| 469 | <entry>g<subscript>2</subscript></entry> | ||
| 470 | <entry>g<subscript>1</subscript></entry> | ||
| 471 | <entry>g<subscript>0</subscript></entry> | ||
| 472 | </row> | ||
| 443 | <row id="MEDIA-BUS-FMT-RGB888-1X24"> | 473 | <row id="MEDIA-BUS-FMT-RGB888-1X24"> |
| 444 | <entry>MEDIA_BUS_FMT_RGB888_1X24</entry> | 474 | <entry>MEDIA_BUS_FMT_RGB888_1X24</entry> |
| 445 | <entry>0x100a</entry> | 475 | <entry>0x100a</entry> |
| @@ -579,6 +609,43 @@ see <xref linkend="colorspaces" />.</entry> | |||
| 579 | <entry>b<subscript>1</subscript></entry> | 609 | <entry>b<subscript>1</subscript></entry> |
| 580 | <entry>b<subscript>0</subscript></entry> | 610 | <entry>b<subscript>0</subscript></entry> |
| 581 | </row> | 611 | </row> |
| 612 | <row id="MEDIA-BUS-FMT-RGB888-1X32-PADHI"> | ||
| 613 | <entry>MEDIA_BUS_FMT_RGB888_1X32_PADHI</entry> | ||
| 614 | <entry>0x100f</entry> | ||
| 615 | <entry></entry> | ||
| 616 | <entry>0</entry> | ||
| 617 | <entry>0</entry> | ||
| 618 | <entry>0</entry> | ||
| 619 | <entry>0</entry> | ||
| 620 | <entry>0</entry> | ||
| 621 | <entry>0</entry> | ||
| 622 | <entry>0</entry> | ||
| 623 | <entry>0</entry> | ||
| 624 | <entry>r<subscript>7</subscript></entry> | ||
| 625 | <entry>r<subscript>6</subscript></entry> | ||
| 626 | <entry>r<subscript>5</subscript></entry> | ||
| 627 | <entry>r<subscript>4</subscript></entry> | ||
| 628 | <entry>r<subscript>3</subscript></entry> | ||
| 629 | <entry>r<subscript>2</subscript></entry> | ||
| 630 | <entry>r<subscript>1</subscript></entry> | ||
| 631 | <entry>r<subscript>0</subscript></entry> | ||
| 632 | <entry>g<subscript>7</subscript></entry> | ||
| 633 | <entry>g<subscript>6</subscript></entry> | ||
| 634 | <entry>g<subscript>5</subscript></entry> | ||
| 635 | <entry>g<subscript>4</subscript></entry> | ||
| 636 | <entry>g<subscript>3</subscript></entry> | ||
| 637 | <entry>g<subscript>2</subscript></entry> | ||
| 638 | <entry>g<subscript>1</subscript></entry> | ||
| 639 | <entry>g<subscript>0</subscript></entry> | ||
| 640 | <entry>b<subscript>7</subscript></entry> | ||
| 641 | <entry>b<subscript>6</subscript></entry> | ||
| 642 | <entry>b<subscript>5</subscript></entry> | ||
| 643 | <entry>b<subscript>4</subscript></entry> | ||
| 644 | <entry>b<subscript>3</subscript></entry> | ||
| 645 | <entry>b<subscript>2</subscript></entry> | ||
| 646 | <entry>b<subscript>1</subscript></entry> | ||
| 647 | <entry>b<subscript>0</subscript></entry> | ||
| 648 | </row> | ||
| 582 | </tbody> | 649 | </tbody> |
| 583 | </tgroup> | 650 | </tgroup> |
| 584 | </table> | 651 | </table> |
diff --git a/include/uapi/linux/media-bus-format.h b/include/uapi/linux/media-bus-format.h index 23b40908be30..b585bb32d25e 100644 --- a/include/uapi/linux/media-bus-format.h +++ b/include/uapi/linux/media-bus-format.h | |||
| @@ -33,7 +33,7 @@ | |||
| 33 | 33 | ||
| 34 | #define MEDIA_BUS_FMT_FIXED 0x0001 | 34 | #define MEDIA_BUS_FMT_FIXED 0x0001 |
| 35 | 35 | ||
| 36 | /* RGB - next is 0x100e */ | 36 | /* RGB - next is 0x1010 */ |
| 37 | #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_BE 0x1001 | 37 | #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_BE 0x1001 |
| 38 | #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_LE 0x1002 | 38 | #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_LE 0x1002 |
| 39 | #define MEDIA_BUS_FMT_RGB555_2X8_PADHI_BE 0x1003 | 39 | #define MEDIA_BUS_FMT_RGB555_2X8_PADHI_BE 0x1003 |
| @@ -43,10 +43,12 @@ | |||
| 43 | #define MEDIA_BUS_FMT_RGB565_2X8_BE 0x1007 | 43 | #define MEDIA_BUS_FMT_RGB565_2X8_BE 0x1007 |
| 44 | #define MEDIA_BUS_FMT_RGB565_2X8_LE 0x1008 | 44 | #define MEDIA_BUS_FMT_RGB565_2X8_LE 0x1008 |
| 45 | #define MEDIA_BUS_FMT_RGB666_1X18 0x1009 | 45 | #define MEDIA_BUS_FMT_RGB666_1X18 0x1009 |
| 46 | #define MEDIA_BUS_FMT_RBG888_1X24 0x100e | ||
| 46 | #define MEDIA_BUS_FMT_RGB888_1X24 0x100a | 47 | #define MEDIA_BUS_FMT_RGB888_1X24 0x100a |
| 47 | #define MEDIA_BUS_FMT_RGB888_2X12_BE 0x100b | 48 | #define MEDIA_BUS_FMT_RGB888_2X12_BE 0x100b |
| 48 | #define MEDIA_BUS_FMT_RGB888_2X12_LE 0x100c | 49 | #define MEDIA_BUS_FMT_RGB888_2X12_LE 0x100c |
| 49 | #define MEDIA_BUS_FMT_ARGB8888_1X32 0x100d | 50 | #define MEDIA_BUS_FMT_ARGB8888_1X32 0x100d |
| 51 | #define MEDIA_BUS_FMT_RGB888_1X32_PADHI 0x100f | ||
| 50 | 52 | ||
| 51 | /* YUV (including grey) - next is 0x2024 */ | 53 | /* YUV (including grey) - next is 0x2024 */ |
| 52 | #define MEDIA_BUS_FMT_Y8_1X8 0x2001 | 54 | #define MEDIA_BUS_FMT_Y8_1X8 0x2001 |
