NetBSD video(4) support, patch 1 of 3
The video(4) driver provides a Video4Linux2 compatible API for various video peripherals. This patch propagates HAVE_VIDEOIO if the sys/videoio.h include file is found, which is the signature of video(4).
This commit is contained in:
committed by
Andrey Kamaev
parent
8521ac5d21
commit
d90b8d615c
@@ -202,7 +202,7 @@ make & enjoy!
|
||||
|
||||
#include "precomp.hpp"
|
||||
|
||||
#if !defined WIN32 && defined HAVE_CAMV4L && defined HAVE_CAMV4L2
|
||||
#if !defined WIN32 && ((defined HAVE_CAMV4L && defined HAVE_CAMV4L2) || defined HAVE_VIDEOIO)
|
||||
|
||||
#define CLEAR(x) memset (&(x), 0, sizeof (x))
|
||||
|
||||
@@ -227,6 +227,11 @@ make & enjoy!
|
||||
#include <linux/videodev2.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_VIDEOIO
|
||||
#include <sys/videoio.h>
|
||||
#define HAVE_CAMV4L2
|
||||
#endif
|
||||
|
||||
/* Defaults - If your board can do better, set it here. Set for the most common type inputs. */
|
||||
#define DEFAULT_V4L_WIDTH 640
|
||||
#define DEFAULT_V4L_HEIGHT 480
|
||||
|
||||
Reference in New Issue
Block a user