diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2015-03-12 21:40:36 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-04-03 03:04:51 +0300 |
commit | 71491063b85c04e6b68803db52cca7a9f14a945e (patch) | |
tree | d83a3346c21df9805948f2db27ea0cb534c450fa /drivers/media/platform/vivid/vivid-vid-common.c | |
parent | dde72bd773dfce36fd0fb193d8ac5096f31e041c (diff) | |
download | linux-71491063b85c04e6b68803db52cca7a9f14a945e.tar.xz |
[media] vivid: add support for PIX_FMT_RGB332
Add support for the one-byte-per-pixel RGB332 format.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/platform/vivid/vivid-vid-common.c')
-rw-r--r-- | drivers/media/platform/vivid/vivid-vid-common.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/platform/vivid/vivid-vid-common.c b/drivers/media/platform/vivid/vivid-vid-common.c index aa8985054405..9e8c06a102e9 100644 --- a/drivers/media/platform/vivid/vivid-vid-common.c +++ b/drivers/media/platform/vivid/vivid-vid-common.c @@ -171,6 +171,14 @@ struct vivid_fmt vivid_formats[] = { .buffers = 1, }, { + .name = "RGB332", + .fourcc = V4L2_PIX_FMT_RGB332, /* rrrgggbb */ + .vdownsampling = { 1 }, + .bit_depth = { 8 }, + .planes = 1, + .buffers = 1, + }, + { .name = "RGB565 (LE)", .fourcc = V4L2_PIX_FMT_RGB565, /* gggbbbbb rrrrrggg */ .vdownsampling = { 1 }, |