openIndex method
Opens a camera for video capturing with API Preference and parameters.
https://docs.opencv.org/4.x/d8/dfe/classcv_1_1VideoCapture.html#a10867868137c2d142aac30a0648d00fe
Implementation
bool openIndex(int index, {int apiPreference = CAP_ANY}) {
final success = calloc<ffi.Bool>();
cvRun(() => cvideoio.cv_VideoCapture_open_3(ref, index, apiPreference, success, ffi.nullptr));
final rval = success.value;
calloc.free(success);
return rval;
}