From 35d7ed7bf145c66d1cfe33d1e0d8b2204b61af14 Mon Sep 17 00:00:00 2001 From: bugmen0t <@> Date: Sat, 9 Nov 2013 01:15:12 +0000 Subject: tvi_v4l2: let libv4l2 convert to a known pixel format Signed-off-by: wm4 Significant modifications over the original patch by not overriding syscalls with macros ("#define open v4l2open") for fallback, but the other way around ("#define v4l2open open"). As consequence, the calls have to be replaced throughout the file. Untested, although the original patch probably was tested. --- configure | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 54c865a6a8..01159bcfb2 100755 --- a/configure +++ b/configure @@ -310,6 +310,7 @@ Optional features: --disable-radio-v4l2 disable Video4Linux2 radio interface [autodetect] --disable-tv disable TV interface (TV/DVB grabbers) [enable] --disable-tv-v4l2 disable Video4Linux2 TV interface [autodetect] + --disable-libv4l2 disable libv4l2 [autodetect] --disable-pvr disable Video4Linux2 MPEG PVR [autodetect] --enable-smb enable Samba (SMB) input [autodetect] --disable-libquvi4 disable libquvi 0.4.x [autodetect] @@ -462,6 +463,7 @@ _radio_capture=no _radio_v4l2=auto _tv=yes _tv_v4l2=auto +_libv4l2=auto _pvr=auto _smb=auto _libquvi4=auto @@ -651,6 +653,8 @@ for ac_option do --disable-tv) _tv=no ;; --enable-tv-v4l2) _tv_v4l2=yes ;; --disable-tv-v4l2) _tv_v4l2=no ;; + --enable-libv4l2) _libv4l2=yes ;; + --disable-libv4l2) _libv4l2=no ;; --enable-radio) _radio=yes ;; --enable-radio-capture) _radio_capture=yes ;; --disable-radio-capture) _radio_capture=no ;; @@ -2946,6 +2950,19 @@ else fi echores "$_tv_v4l2" +echocheck "libv4l2 support" +if test "$_libv4l2" = auto ; then + _libv4l2=no + if pkg_config_add "libv4l2" ; then + _libv4l2=yes + fi +fi +if test "$_libv4l2" = yes; then + def_libv4l2="#define HAVE_LIBV4L2 1" +else + def_libv4l2="#define HAVE_LIBV4L2 0" +fi +echores "$_libv4l2" echocheck "Radio interface" if test "$_radio" = yes ; then @@ -3314,6 +3331,7 @@ SNDIO = $_sndio STREAM_CACHE = $_stream_cache TV = $_tv TV_V4L2 = $_tv_v4l2 +LIBV4L2 = $_libv4l2 VCD = $_vcd VDPAU = $_vdpau VDPAU_DEC = $_vdpau_dec @@ -3462,6 +3480,7 @@ $def_radio_capture $def_radio_v4l2 $def_tv $def_tv_v4l2 +$def_libv4l2 /* font stuff */ -- cgit v1.2.3