@@ -393,27 +393,27 @@ static int xioctl( int fd, int request, void *arg)
393
393
Returns the global numCameras with the correct value (we hope) */
394
394
395
395
static void icvInitCapture_V4L () {
396
- int deviceHandle;
397
- int CameraNumber;
398
- char deviceName[MAX_DEVICE_DRIVER_NAME];
396
+ int deviceHandle;
397
+ int CameraNumber;
398
+ char deviceName[MAX_DEVICE_DRIVER_NAME];
399
399
400
- CameraNumber = 0 ;
401
- while (CameraNumber < MAX_CAMERAS) {
402
- /* Print the CameraNumber at the end of the string with a width of one character */
403
- sprintf (deviceName, " /dev/video%1d" , CameraNumber);
404
- /* Test using an open to see if this new device name really does exists. */
405
- deviceHandle = open (deviceName, O_RDONLY);
406
- if (deviceHandle != -1 ) {
407
- /* This device does indeed exist - add it to the total so far */
408
- // add indexList
409
- indexList|=( 1 << CameraNumber);
410
- numCameras++ ;
411
- }
412
- if (deviceHandle != -1 )
413
- close (deviceHandle);
414
- /* Set up to test the next /dev/video source in line */
415
- CameraNumber++;
416
- } /* End while */
400
+ CameraNumber = 0 ;
401
+ while (CameraNumber < MAX_CAMERAS) {
402
+ /* Print the CameraNumber at the end of the string with a width of one character */
403
+ sprintf (deviceName, " /dev/video%1d" , CameraNumber);
404
+ /* Test using an open to see if this new device name really does exists. */
405
+ deviceHandle = open (deviceName, O_RDONLY);
406
+ if (deviceHandle != -1 ) {
407
+ /* This device does indeed exist - add it to the total so far */
408
+ numCameras++;
409
+ // add indexList
410
+ indexList|=( 1 << CameraNumber) ;
411
+ }
412
+ if (deviceHandle != -1 )
413
+ close (deviceHandle);
414
+ /* Set up to test the next /dev/video source in line */
415
+ CameraNumber++;
416
+ } /* End while */
417
417
418
418
}; /* End icvInitCapture_V4L */
419
419
0 commit comments