Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
138b9724
Commit
138b9724
authored
May 12, 2011
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make ubuntu 11.04 compile with libv4l
parent
23a369b2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
cvconfig.h.cmake
cvconfig.h.cmake
+3
-0
cap.cpp
modules/highgui/src/cap.cpp
+1
-1
cap_libv4l.cpp
modules/highgui/src/cap_libv4l.cpp
+5
-1
No files found.
cvconfig.h.cmake
View file @
138b9724
...
...
@@ -19,6 +19,9 @@
/* V4L2 capturing support */
#cmakedefine HAVE_CAMV4L2
/* V4L/V4L2 capturing support via libv4l */
#cmakedefine HAVE_LIBV4L
/* Carbon windowing environment */
#cmakedefine HAVE_CARBON
...
...
modules/highgui/src/cap.cpp
View file @
138b9724
...
...
@@ -173,7 +173,7 @@ CV_IMPL CvCapture * cvCreateCameraCapture (int index)
if
(
capture
)
return
capture
;
#endif
#if defined
(HAVE_CAMV4L) && defined (HAVE_CAMV4L2
)
#if defined
HAVE_LIBV4L || (defined (HAVE_CAMV4L) && defined (HAVE_CAMV4L2)
)
capture
=
cvCreateCameraCapture_V4L
(
index
);
if
(
capture
)
return
capture
;
...
...
modules/highgui/src/cap_libv4l.cpp
View file @
138b9724
...
...
@@ -224,7 +224,7 @@ make & enjoy!
#include "highgui.h"
#include "precomp.hpp"
#if !defined WIN32 && defined HAVE_
CAMV4L && defined HAVE_CAMV4L2
#if !defined WIN32 && defined HAVE_
LIBV4L
#define CLEAR(x) memset (&(x), 0, sizeof (x))
...
...
@@ -241,8 +241,12 @@ make & enjoy!
#include <sys/stat.h>
#include <sys/ioctl.h>
#ifdef HAVE_CAMV4L
#include <linux/videodev.h>
#endif
#ifdef HAVE_CAMV4L2
#include <linux/videodev2.h>
#endif
#include <libv4l1.h>
#include <libv4l2.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment