// FTP_CaptureTwoAndDetect error return codes: // // (where * indicates used in FTP_CaptureAndDetect): // // * 0 - Normal completion // 1 - Capture thread 1 timed out while trying to write FF file // 2 - Capture thread 2 timed out while trying to write FF file // 3 - Main timed out waiting for capture thread 1 to finish frame // 4 - Main timed out waiting for capture thread 2 to finish frame // 5 - Main timed out waiting for capture thread 1 to fully wrap up // 6 - Main timed out waiting for capture thread 2 to fully wrap up // 7 - Main timed out waiting for writing thread 1 to fully wrap up // 8 - Main timed out waiting for writing thread 2 to fully wrap up // 9 - Main timed out waiting for process thread to fully wrap up // * 10 - Memory not allocated for working arrays // 11 - Critical section not initialized // 12 - Capture 1 thread not created // 13 - Capture 1 thread could not begin // 14 - Capture 2 thread not created // 15 - Capture 2 thread could not begin // * 16 - Writing 1 thread not created // * 17 - Writing 1 thread could not begin // 18 - Writing 2 thread not created // 19 - Writing 2 thread could not begin // * 20 - Process thread not created // * 21 - Process thread could not begin // * 22 - Could not open output log file // * 23 - No video capture devices found // 24 - Only one video capture device found - requires 2 // * 25 - Unable to set up video capture device 1 // 26 - Unable to set up video capture device 2 // * 27 - Twilight calculation error for very high latitudes