Lines Matching refs:deviceName

374    char deviceName[MAX_DEVICE_DRIVER_NAME];  in icvInitCapture_V4L()  local
379 sprintf(deviceName, "/dev/video%1d", CameraNumber); in icvInitCapture_V4L()
381 deviceHandle = open(deviceName, O_RDONLY); in icvInitCapture_V4L()
443 static int try_init_v4l(CvCaptureCAM_V4L* capture, char *deviceName) in try_init_v4l() argument
456 capture->deviceHandle = open(deviceName, O_RDWR); in try_init_v4l()
487 static int try_init_v4l2(CvCaptureCAM_V4L* capture, char *deviceName) in try_init_v4l2() argument
498 capture->deviceHandle = open (deviceName, O_RDWR /* required */ | O_NONBLOCK, 0); in try_init_v4l2()
502 fprintf(stderr, "(DEBUG) try_init_v4l2 open \"%s\": %s\n", deviceName, strerror(errno)); in try_init_v4l2()
512 …fprintf(stderr, "(DEBUG) try_init_v4l2 VIDIOC_QUERYCAP \"%s\": %s\n", deviceName, strerror(errno)); in try_init_v4l2()
522 … fprintf(stderr, "(DEBUG) try_init_v4l2 VIDIOC_G_INPUT \"%s\": %s\n", deviceName, strerror(errno)); in try_init_v4l2()
534 …fprintf(stderr, "(DEBUG) try_init_v4l2 VIDIOC_ENUMINPUT \"%s\": %s\n", deviceName, strerror(errno)… in try_init_v4l2()
793 static int _capture_V4L2 (CvCaptureCAM_V4L *capture, char *deviceName) in _capture_V4L2() argument
797 detect_v4l2 = try_init_v4l2(capture, deviceName); in _capture_V4L2()
837 …fprintf( stderr, "VIDEOIO ERROR: V4L2: device %s is unable to capture video memory.\n",deviceName); in _capture_V4L2()
908 fprintf (stderr, "%s does not support memory mapping\n", deviceName); in _capture_V4L2()
921 fprintf (stderr, "Insufficient buffer memory on %s\n", deviceName); in _capture_V4L2()
928 fprintf (stderr, "Insufficient buffer memory on %s -- decreaseing buffers\n", deviceName); in _capture_V4L2()
989 static int _capture_V4L (CvCaptureCAM_V4L *capture, char *deviceName) in _capture_V4L() argument
993 detect_v4l = try_init_v4l(capture, deviceName); in _capture_V4L()
999 ": device %s: Unable to open for READ ONLY\n", deviceName); in _capture_V4L()
1008 ": device %s: Unable to query number of channels\n", deviceName); in _capture_V4L()
1017 "device %s is unable to capture video memory.\n",deviceName); in _capture_V4L()
1114 char deviceName[MAX_DEVICE_DRIVER_NAME]; in icvCaptureFromCAM_V4L() local
1145 sprintf(deviceName, "/dev/video%1d", index); in icvCaptureFromCAM_V4L()
1154 if (_capture_V4L2 (capture, deviceName) == -1) { in icvCaptureFromCAM_V4L()
1159 if (_capture_V4L (capture, deviceName) == -1) { in icvCaptureFromCAM_V4L()