getAvailableTargets function

List<int> getAvailableTargets(
  1. int backend
)

Implementation

List<int> getAvailableTargets(int backend) {
  final p = calloc<cvg.VecI32>();
  cvRun(() => cdnn.cv_dnn_getAvailableTargets(backend, p));
  final rval = List.generate(p.ref.length, (i) => p.ref.ptr[i]);
  calloc.free(p);
  return rval;
}