mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 22:00:25 +08:00
Repair V4L backend
This commit is contained in:
parent
0d65397ae7
commit
ab65b9745b
@ -84,6 +84,8 @@ static const struct VideoBackendInfo builtin_backends[] =
|
|||||||
DECLARE_BACKEND(CAP_V4L2, "V4L2", MODE_CAPTURE_ALL),
|
DECLARE_BACKEND(CAP_V4L2, "V4L2", MODE_CAPTURE_ALL),
|
||||||
#elif defined HAVE_CAMV4L
|
#elif defined HAVE_CAMV4L
|
||||||
DECLARE_BACKEND(CAP_V4L, "V4L", MODE_CAPTURE_ALL),
|
DECLARE_BACKEND(CAP_V4L, "V4L", MODE_CAPTURE_ALL),
|
||||||
|
#elif defined HAVE_VIDEOIO
|
||||||
|
DECLARE_BACKEND(CAP_V4L, "V4L_BSD", MODE_CAPTURE_ALL),
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@ -433,6 +435,11 @@ void VideoCapture_create(CvCapture*& capture, Ptr<IVideoCapture>& icap, VideoCap
|
|||||||
case CAP_GPHOTO2:
|
case CAP_GPHOTO2:
|
||||||
TRY_OPEN(createGPhoto2Capture(index));
|
TRY_OPEN(createGPhoto2Capture(index));
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
#if defined HAVE_CAMV4L || defined HAVE_CAMV4L2 || defined HAVE_VIDEOIO
|
||||||
|
case CAP_V4L:
|
||||||
|
TRY_OPEN_LEGACY(cvCreateCameraCapture_V4L(index))
|
||||||
|
break;
|
||||||
#endif
|
#endif
|
||||||
case CAP_FIREWIRE:
|
case CAP_FIREWIRE:
|
||||||
#ifdef HAVE_DC1394_2
|
#ifdef HAVE_DC1394_2
|
||||||
|
Loading…
Reference in New Issue
Block a user