projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
625d969
)
MLK-20724: m2m: add RGBA to exend V4L2 standard format for android usage
author
Guoniu.Zhou
<guoniu.zhou@nxp.com>
Mon, 14 Jan 2019 06:23:03 +0000
(14:23 +0800)
committer
Leonard Crestez
<leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000
(
02:51
+0300)
Android has RGBA format output but V4L2 framework do not have this format
.In order to support this in our mem2mem driver, we need to extend V4L2
format.
Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
drivers/media/platform/imx8/mxc-isi-hw.c
patch
|
blob
|
history
diff --git
a/drivers/media/platform/imx8/mxc-isi-hw.c
b/drivers/media/platform/imx8/mxc-isi-hw.c
index
a2c5c18
..
e381339
100644
(file)
--- a/
drivers/media/platform/imx8/mxc-isi-hw.c
+++ b/
drivers/media/platform/imx8/mxc-isi-hw.c
@@
-89,6
+89,7
@@
static bool is_rgb(u32 pix_fmt)
(pix_fmt == V4L2_PIX_FMT_XRGB32) ||
(pix_fmt == V4L2_PIX_FMT_XBGR32) ||
(pix_fmt == V4L2_PIX_FMT_BGR24) ||
+ (pix_fmt == V4L2_PIX_FMT_RGBA) ||
(pix_fmt == V4L2_PIX_FMT_ABGR32) ||
(pix_fmt == V4L2_PIX_FMT_ARGB32)) {
return true;