getVARPSize function

(int, int, int) getVARPSize(
  1. VARP varp
)

Implementation

(int height, int width, int channels) getVARPSize(VARP varp) {
  final pHeight = malloc<ffi.Int>();
  final pWidth = malloc<ffi.Int>();
  final pChannels = malloc<ffi.Int>();
  c.mnn_cv_static_getVARPSize(varp.ptr, pHeight, pWidth, pChannels);
  final rval = (pHeight.value, pWidth.value, pChannels.value);
  malloc.free(pHeight);
  malloc.free(pWidth);
  malloc.free(pChannels);
  return rval;
}