getAvailableBackends function

List<(int, int)> getAvailableBackends()

Implementation

List<(int backend, int target)> getAvailableBackends() {
  final p = calloc<cvg.VecPoint>();
  cdnn.cv_dnn_getAvailableBackends(p);
  final rval = List.generate(p.ref.length, (i) => (p.ref.ptr[i].x, p.ref.ptr[i].y));
  calloc.free(p);
  return rval;
}