aboutsummaryrefslogtreecommitdiffstats
path: root/utils/common/v4l2-info.h
diff options
context:
space:
mode:
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>2020-07-03 20:02:37 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-09-26 12:20:38 +0200
commitdffe31c303450f7ad03f7d208850d3ddd19aec0a (patch)
treeb91e742014cc75303183cd3235ba0b9fc5e3a1fa /utils/common/v4l2-info.h
parent19be88073c416db5abe6fd0219aca00b596bea2e (diff)
v4l2: common: add the flags V4L2_FMT_FLAG_CSC* to the list that maps flags to str
Replace the array fmtdesc_def with a macro 'FMTDESC_DEF' The macro is used to to create two arrays 'fmtdesc_def_ycbcr', 'fmtdesc_def_hsv' that map the format flags to strings. The function 'fmtdesc2s' is changed to get a parameter 'is_hsv' that decides which array to use. The new CSC flags V4L2_FMT_FLAG_CSC* are added to the arries. Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'utils/common/v4l2-info.h')
-rw-r--r--utils/common/v4l2-info.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/common/v4l2-info.h b/utils/common/v4l2-info.h
index f7e945a4..f2f41f51 100644
--- a/utils/common/v4l2-info.h
+++ b/utils/common/v4l2-info.h
@@ -52,7 +52,7 @@ std::string pixflags2s(unsigned flags);
std::string service2s(unsigned service);
/* Return v4l2_fmtdesc flags description */
-std::string fmtdesc2s(unsigned flags);
+std::string fmtdesc2s(unsigned flags, bool is_hsv);
/* Return selection flags description */
std::string selflags2s(__u32 flags);

Privacy Policy