aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2018-08-11 13:30:25 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2018-08-11 13:30:25 +0200
commit07d2bad6f652798d3ec22cb138524e4816de4014 (patch)
treefc2b594659ced8f8c05cb94f4b694c728362d2c1 /Makefile.am
parent4e7b691198cd2ae3653655e1aaf28894abba8212 (diff)
v4l2-info.cpp: add function to give pixfmt description
When syncing from the kernel also generate a v4l2-pix-formats.h header containing all the pixel format descriptions defined in the v4l2-ioctl.c source. Add a pixfmt2s() function to v4l2-info.cpp/h that uses this list to return the pixel format description. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 042da374..d6b01205 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -49,6 +49,7 @@ sync-with-kernel:
cp -a $(KERNEL_DIR)/drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c $(top_srcdir)/utils/common
cp -a $(KERNEL_DIR)/include/media/tpg/v4l2-tpg* $(top_srcdir)/utils/common
patch -p0 <$(top_srcdir)/utils/common/v4l2-tpg.patch
+ grep V4L2_PIX_FMT.*descr $(KERNEL_DIR)/drivers/media/v4l2-core/v4l2-ioctl.c | perl -pe 's/.*V4L2_PIX_FMT/\tcase V4L2_PIX_FMT/; s/:.*descr = /: return /; s/;.*/;/;' >$(top_srcdir)/utils/common/v4l2-pix-formats.h
$(MAKE) -C utils/keytable $@
$(MAKE) -C lib/libdvbv5 $@

Privacy Policy