全部博文(186)
分类:
2012-12-19 13:26:28
| 19 | 19 | /* V4L2 capturing support */ |
|---|---|---|
| 20 | 20 | #cmakedefine HAVE_CAMV4L2 |
| 21 | ||
| 22 | /* V4L/V4L2 capturing support via libv4l */ | |
| 23 | #cmakedefine HAVE_LIBV4L | |
| 21 | 24 | |
| 22 | 25 | /* Carbon windowing environment */ |
| 172 | 172 | return capture; |
|---|---|---|
| 173 | 173 | #endif |
| 174 | #if defined (HAVE_CAMV4L) || defined (HAVE_CAMV4L2) | |
| 174 | #if defined HAVE_LIBV4L || (defined (HAVE_CAMV4L) && defined (HAVE_CAMV4L2)) | |
| 175 | 175 | capture = cvCreateCameraCapture_V4L (index); |
| 176 | 176 | if (capture) |
| 225 | 225 | #include "precomp.hpp" |
|---|---|---|
| 226 | 226 | |
| 227 | #if !defined WIN32 && defined HAVE_CAMV4L && defined HAVE_CAMV4L2 | |
| 227 | #if !defined WIN32 && defined HAVE_LIBV4L | |
| 228 | 228 | |
| 229 | 229 | #define CLEAR(x) memset (&(x), 0, sizeof (x)) |
| 242 | 242 | #include |
| 243 | 243 | |
| 244 | #ifdef HAVE_CAMV4L | |
| 244 | 245 | #include |
| 246 | #endif | |
| 247 | #ifdef HAVE_CAMV4L2 | |
| 245 | 248 | #include |
| 249 | #endif | |
| 246 | 250 | |
| 247 | 251 | #include |