Add RGB565 and RGB555 to the v4l2_format_info table.
Signed-off-by: Benoit Parrot <[email protected]>
---
drivers/media/v4l2-core/v4l2-common.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/media/v4l2-core/v4l2-common.c
b/drivers/media/v4l2-core/v4l2-common.c
index 474cdb5863f4..e6bbd28db075 100644
--- a/drivers/media/v4l2-core/v4l2-common.c
+++ b/drivers/media/v4l2-core/v4l2-common.c
@@ -251,6 +251,8 @@ const struct v4l2_format_info *v4l2_format_info(u32 format)
{ .format = V4L2_PIX_FMT_ABGR32, .pix_enc = V4L2_ENC_RGB,
.mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .hdiv = 1, .vdiv = 1
},
{ .format = V4L2_PIX_FMT_BGRA32, .pix_enc = V4L2_ENC_RGB,
.mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .hdiv = 1, .vdiv = 1
},
{ .format = V4L2_PIX_FMT_GREY, .pix_enc = V4L2_ENC_RGB,
.mem_planes = 1, .comp_planes = 1, .bpp = { 1, 0, 0, 0 }, .hdiv = 1, .vdiv = 1
},
+ { .format = V4L2_PIX_FMT_RGB565, .pix_enc = V4L2_ENC_RGB,
.mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .hdiv = 1, .vdiv = 1
},
+ { .format = V4L2_PIX_FMT_RGB555, .pix_enc = V4L2_ENC_RGB,
.mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .hdiv = 1, .vdiv = 1
},
/* YUV packed formats */
{ .format = V4L2_PIX_FMT_YUYV, .pix_enc = V4L2_ENC_YUV,
.mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .hdiv = 2, .vdiv = 1
},
--
2.17.1