• Home
  • Raw
  • Download

Lines Matching refs:deviceName

311     char* deviceName;  member
396 char deviceName[MAX_DEVICE_DRIVER_NAME]; in icvInitCapture_V4L() local
401 sprintf(deviceName, "/dev/video%1d", CameraNumber); in icvInitCapture_V4L()
403 deviceHandle = open(deviceName, O_RDONLY); in icvInitCapture_V4L()
419 static int try_init_v4l(CvCaptureCAM_V4L* capture, char *deviceName) in try_init_v4l() argument
433 capture->deviceHandle = v4l1_open(deviceName, O_RDWR); in try_init_v4l()
463 static int try_init_v4l2(CvCaptureCAM_V4L* capture, char *deviceName) in try_init_v4l2() argument
475 capture->deviceHandle = v4l2_open (deviceName, O_RDWR /* required */ | O_NONBLOCK, 0); in try_init_v4l2()
665 static int _capture_V4L2 (CvCaptureCAM_V4L *capture, char *deviceName) in _capture_V4L2() argument
669 capture->deviceName = strdup(deviceName); in _capture_V4L2()
671 detect_v4l2 = try_init_v4l2(capture, deviceName); in _capture_V4L2()
689 …fprintf( stderr, "VIDEOIO ERROR: V4L2: device %s is unable to capture video memory.\n",deviceName); in _capture_V4L2()
787 fprintf (stderr, "%s does not support memory mapping\n", deviceName); in _capture_V4L2()
800 fprintf (stderr, "Insufficient buffer memory on %s\n", deviceName); in _capture_V4L2()
807 fprintf (stderr, "Insufficient buffer memory on %s -- decreaseing buffers\n", deviceName); in _capture_V4L2()
873 static int _capture_V4L (CvCaptureCAM_V4L *capture, char *deviceName) in _capture_V4L() argument
877 detect_v4l = try_init_v4l(capture, deviceName); in _capture_V4L()
882 ": device %s: Unable to open for READ ONLY\n", deviceName); in _capture_V4L()
890 ": device %s: Unable to query number of channels\n", deviceName); in _capture_V4L()
899 "device %s is unable to capture video memory.\n",deviceName); in _capture_V4L()
1031 char deviceName[MAX_DEVICE_DRIVER_NAME]; in icvCaptureFromCAM_V4L() local
1067 sprintf(deviceName, "/dev/video%1d", index); in icvCaptureFromCAM_V4L()
1079 if (_capture_V4L2 (capture, deviceName) == -1) { in icvCaptureFromCAM_V4L()
1082 if (_capture_V4L (capture, deviceName) == -1) { in icvCaptureFromCAM_V4L()
1501 char deviceName[MAX_DEVICE_DRIVER_NAME]; in icvSetVideoSize() local
1502 sprintf(deviceName, "%s", capture->deviceName); in icvSetVideoSize()
1504 _capture_V4L2(capture, deviceName); in icvSetVideoSize()
1848 free(capture->deviceName); in icvCloseCAM_V4L()
1849 capture->deviceName = NULL; in icvCloseCAM_V4L()