getBackends static method

List<VideoCaptureAPIs> getBackends()

Returns list of all available backends

Implementation

static List<VideoCaptureAPIs> getBackends() {
  final p = calloc<ffi.Pointer<ffi.Int>>();
  final pszie = calloc<ffi.Int>();
  cvRun(() => cvg.cv_video_registry_getBackends(p, pszie));
  final backends = List.generate(pszie.value, (i) => VideoCaptureAPIs.fromValue(p.value[i]));
  calloc.free(p);
  calloc.free(pszie);
  return backends;
}