Use libv4l if available, otherwise check for v4l1 headers

pull/1/head
Timothy Pearson 12 years ago
parent 35c41f35b0
commit d8cbbab802

@ -26,3 +26,10 @@ if ( HAVE_LIBV4L1_VIDEODEV_H )
endif ( ) endif ( )
# -- End libv4l1-videodev.h ---------------------------------------------- # -- End libv4l1-videodev.h ----------------------------------------------
# -- Check for linux/videodev.h presence --------------------
CHECK_INCLUDE_FILE ( "linux/videodev.h" HAVE_LINUX_VIDEODEV_H )
if ( HAVE_LINUX_VIDEODEV_H )
add_definitions( -DHAVE_LINUX_VIDEODEV_H )
endif ( )
# -- End linux-videodev.h ----------------------------------------------

@ -15,8 +15,6 @@
************************************************************************* *************************************************************************
*/ */
#define ENABLE_AV
#ifndef KOPETE_AVVIDEOCONTROL_H #ifndef KOPETE_AVVIDEOCONTROL_H
#define KOPETE_AVVIDEOCONTROL_H #define KOPETE_AVVIDEOCONTROL_H

@ -15,8 +15,6 @@
************************************************************************* *************************************************************************
*/ */
#define ENABLE_AV
#include <cstdlib> #include <cstdlib>
#include <cerrno> #include <cerrno>
#include <cstring> #include <cstring>

@ -15,11 +15,11 @@
************************************************************************* *************************************************************************
*/ */
#define ENABLE_AV
#ifndef KOPETE_AVVIDEODEVICELISTITEM_H #ifndef KOPETE_AVVIDEODEVICELISTITEM_H
#define KOPETE_AVVIDEODEVICELISTITEM_H #define KOPETE_AVVIDEODEVICELISTITEM_H
#define ENABLE_AV
#if defined HAVE_CONFIG_H #if defined HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif #endif
@ -54,8 +54,10 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#if defined(HAVE_LIBV4L1_VIDEODEV_H) #if defined(HAVE_LIBV4L1_VIDEODEV_H)
#include <libv4l1-videodev.h> #include <libv4l1-videodev.h>
#else #elif defined(HAVE_LINUX_VIDEODEV_H)
#include <linux/videodev.h> #include <linux/videodev.h>
#else
#undef ENABLE_AV
#endif #endif
#define VIDEO_MODE_PAL_Nc 3 #define VIDEO_MODE_PAL_Nc 3
#define VIDEO_MODE_PAL_M 4 #define VIDEO_MODE_PAL_M 4
@ -293,8 +295,10 @@ public:
void enumerateMenu (void); void enumerateMenu (void);
#endif #endif
#ifndef ENABLE_AV
struct video_capability V4L_capabilities; struct video_capability V4L_capabilities;
struct video_buffer V4L_videobuffer; struct video_buffer V4L_videobuffer;
#endif
#endif #endif
TQValueVector<Kopete::AV::VideoInput> m_input; TQValueVector<Kopete::AV::VideoInput> m_input;
TQValueVector<Kopete::AV::VideoControl> m_control; TQValueVector<Kopete::AV::VideoControl> m_control;

@ -15,8 +15,6 @@
************************************************************************* *************************************************************************
*/ */
#define ENABLE_AV
#include <assert.h> #include <assert.h>
#include <cstdlib> #include <cstdlib>
#include <cerrno> #include <cerrno>

@ -15,8 +15,6 @@
************************************************************************* *************************************************************************
*/ */
#define ENABLE_AV
#ifndef KOPETE_AVVIDEOINPUT_H #ifndef KOPETE_AVVIDEOINPUT_H
#define KOPETE_AVVIDEOINPUT_H #define KOPETE_AVVIDEOINPUT_H

Loading…
Cancel
Save