From f38b063f148eac9ef9f621b4a11e86331cef8d33 Mon Sep 17 00:00:00 2001 From: Abdelaziz Mahdy Date: Tue, 25 Jun 2024 15:22:09 +0300 Subject: [PATCH 01/21] initial async object detect work --- ffigen.yaml | 2 + lib/src/objdetect/objdetect_async.dart | 665 +++++++++++++++++++ lib/src/opencv.g.dart | 852 +++++++++++++++++++++++-- src/calib3d/calib3d_async.h | 2 + src/objdetect/objdetect_async.cpp | 419 ++++++++++++ src/objdetect/objdetect_async.h | 75 +++ 6 files changed, 1978 insertions(+), 37 deletions(-) create mode 100644 lib/src/objdetect/objdetect_async.dart create mode 100644 src/objdetect/objdetect_async.cpp create mode 100644 src/objdetect/objdetect_async.h diff --git a/ffigen.yaml b/ffigen.yaml index 2ba29f62..b71e758d 100644 --- a/ffigen.yaml +++ b/ffigen.yaml @@ -36,6 +36,7 @@ headers: - src/imgproc/imgproc.h - src/imgproc/imgproc_async.h - src/objdetect/objdetect.h + - src/objdetect/objdetect_async.h - src/photo/photo.h - src/stitching/stitching.h - src/video/video.h @@ -62,6 +63,7 @@ headers: - src/imgproc/imgproc.h - src/imgproc/imgproc_async.h - src/objdetect/objdetect.h + - src/objdetect/objdetect_async.h - src/photo/photo.h - src/stitching/stitching.h - src/video/video.h diff --git a/lib/src/objdetect/objdetect_async.dart b/lib/src/objdetect/objdetect_async.dart new file mode 100644 index 00000000..4fcd3b9b --- /dev/null +++ b/lib/src/objdetect/objdetect_async.dart @@ -0,0 +1,665 @@ +library cv; + +import 'dart:ffi' as ffi; +import 'dart:typed_data'; +import 'package:ffi/ffi.dart'; +import '../core/base.dart'; +import '../core/mat.dart'; +import '../core/point.dart'; +import '../core/rect.dart'; +import '../core/size.dart'; +import '../core/vec.dart'; +import '../opencv.g.dart' as cvg; + +class CascadeClassifier extends CvStruct { + CascadeClassifier._(cvg.CascadeClassifierPtr ptr, [bool attach = true]) + : super.fromPointer(ptr) { + if (attach) { + finalizer.attach(this, ptr.cast(), detach: this); + } + } + + factory CascadeClassifier.empty() { + final p = calloc(); + cvRun(() => CFFI.CascadeClassifier_New(p)); + return CascadeClassifier._(p); + } + + factory CascadeClassifier.fromFile(String filename) { + final p = calloc(); + final cp = filename.toNativeUtf8().cast(); + cvRun(() => CFFI.CascadeClassifier_NewFromFile(cp, p)); + calloc.free(cp); + return CascadeClassifier._(p); + } + + Future loadAsync(String name) async { + final cname = name.toNativeUtf8().cast(); + final rval = cvRunAsync((callback) => CFFI.CascadeClassifier_Load_Async(ref, cname, callback), (c, p) { + final rval = p.cast().value != 0; + calloc.free(cname); + return c.complete(rval); + }); + return rval; + } + + Future detectMultiScaleAsync(InputArray image, + {double scaleFactor = 1.1, + int minNeighbors = 3, + int flags = 0, + (int, int) minSize = (0, 0), + (int, int) maxSize = (0, 0)}) async { + final ret = calloc(); + final rval = cvRunAsync((callback) => CFFI.CascadeClassifier_DetectMultiScaleWithParams_Async( + ref, + image.ref, + scaleFactor, + minNeighbors, + flags, + minSize.cvd.ref, + maxSize.cvd.ref, + ret, + callback), (c, _) { + return c.complete(VecRect.fromPointer(ret)); + }); + return rval; + } + + Future<(VecRect objects, VecInt numDetections)> detectMultiScale2Async(InputArray image, + {double scaleFactor = 1.1, + int minNeighbors = 3, + int flags = 0, + (int, int) minSize = (0, 0), + (int, int) maxSize = (0, 0)}) async { + final ret = calloc(); + final pnums = calloc(); + final rval = cvRunAsync<(VecRect, VecInt)>((callback) => CFFI.CascadeClassifier_DetectMultiScale2_Async( + ref, + image.ref, + scaleFactor, + minNeighbors, + flags, + minSize.cvd.ref, + maxSize.cvd.ref, + ret, + pnums, + callback), (c, _) { + return c.complete((VecRect.fromPointer(ret), VecInt.fromPointer(pnums))); + }); + return rval; + } + + Future<(VecRect objects, VecInt numDetections, VecDouble levelWeights)> detectMultiScale3Async(InputArray image, + {double scaleFactor = 1.1, + int minNeighbors = 3, + int flags = 0, + (int, int) minSize = (0, 0), + (int, int) maxSize = (0, 0), + bool outputRejectLevels = false}) async { + final objects = calloc(); + final rejectLevels = calloc(); + final levelWeights = calloc(); + final rval = cvRunAsync<(VecRect, VecInt, VecDouble)>((callback) => CFFI.CascadeClassifier_DetectMultiScale3_Async( + ref, + image.ref, + objects, + rejectLevels, + levelWeights, + scaleFactor, + minNeighbors, + flags, + minSize.cvd.ref, + maxSize.cvd.ref, + outputRejectLevels, + callback), (c, _) { + return c.complete((VecRect.fromPointer(objects), VecInt.fromPointer(rejectLevels), VecDouble.fromPointer(levelWeights))); + }); + return rval; + } + + Future emptyAsync() async { + final rval = cvRunAsync((callback) => CFFI.CascadeClassifier_Empty_Async(ref, callback), (c, p) { + final rval = p.cast().value; + return c.complete(rval); + }); + return rval; + } + + Future getFeatureTypeAsync() async { + final rval = cvRunAsync((callback) => CFFI.CascadeClassifier_getFeatureType_Async(ref, callback), (c, p) { + final rval = p.cast().value; + return c.complete(rval); + }); + return rval; + } + + Future<(int, int)> getOriginalWindowSizeAsync() async { + final p = calloc(); + final rval = cvRunAsync<(int, int)>((callback) => CFFI.CascadeClassifier_getOriginalWindowSize_Async(ref, p, callback), (c, _) { + final ret = (p.ref.width, p.ref.height); + calloc.free(p); + return c.complete(ret); + }); + return rval; + } + + Future isOldFormatCascadeAsync() async { + final rval = cvRunAsync((callback) => CFFI.CascadeClassifier_isOldFormatCascade_Async(ref, callback), (c, p) { + final rval = p.cast().value; + return c.complete(rval); + }); + return rval; + } + + @override + cvg.CascadeClassifier get ref => ptr.ref; + static final finalizer = OcvFinalizer(CFFI.addresses.CascadeClassifier_Close); + + void dispose() { + finalizer.detach(this); + CFFI.CascadeClassifier_Close(ptr); + } + + @override + List get props => [ptr.address]; +} + +class HOGDescriptor extends CvStruct { + HOGDescriptor._(cvg.HOGDescriptorPtr ptr, [bool attach = true]) + : super.fromPointer(ptr) { + if (attach) { + finalizer.attach(this, ptr.cast(), detach: this); + } + } + + factory HOGDescriptor.empty() { + final p = calloc(); + cvRun(() => CFFI.HOGDescriptor_New(p)); + return HOGDescriptor._(p); + } + + factory HOGDescriptor.fromFile(String filename) { + final p = calloc(); + final cp = filename.toNativeUtf8().cast(); + cvRun(() => CFFI.HOGDescriptor_NewFromFile(cp, p)); + calloc.free(cp); + return HOGDescriptor._(p); + } + + Future loadAsync(String name) async { + final cname = name.toNativeUtf8().cast(); + final rval = cvRunAsync((callback) => CFFI.HOGDescriptor_Load_Async(ref, cname, callback), (c, p) { + final rval = p.cast().value; + calloc.free(cname); + return c.complete(rval); + }); + return rval; + } + + Future<(VecFloat descriptors, VecPoint locations)> computeAsync(Mat img, + { (int, int) winStride = (0, 0), (int, int) padding = (0, 0) }) async { + final descriptors = calloc(); + final locations = calloc(); + final rval = cvRunAsync<(VecFloat, VecPoint)>((callback) => CFFI.HOGDescriptor_Compute_Async( + ref, + img.ref, + descriptors, + winStride.cvd.ref, + padding.cvd.ref, + locations, + callback), (c, _) { + return c.complete((VecFloat.fromPointer(descriptors), VecPoint.fromPointer(locations))); + }); + return rval; + } + + Future<(Mat grad, Mat angleOfs)> computeGradientAsync(InputArray img, + { (int, int) paddingTL = (0, 0), (int, int) paddingBR = (0, 0) }) async { + final grad = Mat.empty(); + final angleOfs = Mat.empty(); + final rval = cvRunAsync<(Mat, Mat)>((callback) => CFFI.HOGDescriptor_computeGradient_Async( + ref, + img.ref, + grad.ref, + angleOfs.ref, + paddingTL.cvd.ref, + paddingBR.cvd.ref, + callback), (c, _) { + return c.complete((grad, angleOfs)); + }); + return rval; + } + + Future<(VecPoint foundLocations, VecDouble weights, VecPoint searchLocations)> detect2Async(InputArray img, + { double hitThreshold = 0, (int, int) winStride = (0, 0), (int, int) padding = (0, 0) }) async { + final foundLocations = calloc(); + final searchLocations = calloc(); + final weights = calloc(); + final rval = cvRunAsync<(VecPoint, VecDouble, VecPoint)>((callback) => CFFI.HOGDescriptor_Detect_Async( + ref, + img.ref, + foundLocations, + weights, + hitThreshold, + winStride.cvd.ref, + padding.cvd.ref, + searchLocations, + callback), (c, _) { + return c.complete((VecPoint.fromPointer(foundLocations), VecDouble.fromPointer(weights), VecPoint.fromPointer(searchLocations))); + }); + return rval; + } + + Future<(VecPoint foundLocations, VecPoint searchLocations)> detectAsync(InputArray img, + { double hitThreshold = 0, (int, int) winStride = (0, 0), (int, int) padding = (0, 0) }) async { + final foundLocations = calloc(); + final searchLocations = calloc(); + final rval = cvRunAsync<(VecPoint, VecPoint)>((callback) => CFFI.HOGDescriptor_Detect2_Async( + ref, + img.ref, + foundLocations, + hitThreshold, + winStride.cvd.ref, + padding.cvd.ref, + searchLocations, + callback), (c, _) { + return c.complete((VecPoint.fromPointer(foundLocations), VecPoint.fromPointer(searchLocations))); + }); + return rval; + } + + Future detectMultiScaleAsync(InputArray image, + { double hitThreshold = 0, int minNeighbors = 3, (int, int) winStride = (0, 0), (int, int) padding = (0, 0), double scale = 1.05, double groupThreshold = 2.0, bool useMeanshiftGrouping = false }) async { + final rects = calloc(); + final rval = cvRunAsync((callback) => CFFI.HOGDescriptor_DetectMultiScaleWithParams_Async( + ref, + image.ref, + hitThreshold, + winStride.cvd.ref, + padding.cvd.ref, + scale, + groupThreshold, + useMeanshiftGrouping, + callback), (c, _) { + return c.complete(VecRect.fromPointer(rects)); + }); + return rval; + } + + static Future getDefaultPeopleDetectorAsync() async { + final v = calloc(); + final rval = cvRunAsync((callback) => CFFI.HOG_GetDefaultPeopleDetector_Async(v, callback), (c, _) { + return c.complete(VecFloat.fromPointer(v)); + }); + return rval; + } + + static Future getDaimlerPeopleDetectorAsync() async { + final v = calloc(); + final rval = cvRunAsync((callback) => CFFI.HOGDescriptor_getDaimlerPeopleDetector_Async(v, callback), (c, _) { + return c.complete(VecFloat.fromPointer(v)); + }); + return rval; + } + + Future getDescriptorSizeAsync() async { + final rval = cvRunAsync((callback) => CFFI.HOGDescriptor_getDescriptorSize_Async(ref, callback), (c, p) { + final rval = p.cast().value; + return c.complete(rval); + }); + return rval; + } + + Future getWinSigmaAsync() async { + final rval = cvRunAsync((callback) => CFFI.HOGDescriptor_getWinSigma_Async(ref, callback), (c, p) { + final rval = p.cast().value; + return c.complete(rval); + }); + return rval; + } + + Future<(VecRect rectList, VecDouble weights)> groupRectanglesAsync(VecRect rectList, VecDouble weights, int groupThreshold, double eps) async { + final rval = cvRunAsync<(VecRect, VecDouble)>((callback) => CFFI.HOGDescriptor_groupRectangles_Async(ref, rectList.ref, weights.ref, groupThreshold, eps, callback), (c, _) { + return c.complete((rectList, weights)); + }); + return rval; + } + + Future setSVMDetectorAsync(VecFloat det) async { + await cvRunAsync((callback) => CFFI.HOGDescriptor_SetSVMDetector_Async(ref, det.ref, callback), (c, _) { + return c.complete(); + }); + } + + @override + cvg.HOGDescriptor get ref => ptr.ref; + static final finalizer = OcvFinalizer(CFFI.addresses.HOGDescriptor_Close); + + void dispose() { + finalizer.detach(this); + CFFI.HOGDescriptor_Close(ptr); + } + + @override + List get props => [ptr.address]; +} + +Future groupRectanglesAsync(VecRect rects, int groupThreshold, double eps) async { + final rval = cvRunAsync((callback) => CFFI.GroupRectangles_Async(rects.ref, groupThreshold, eps, callback), (c, _) { + return c.complete(rects); + }); + return rval; +} + +class QRCodeDetector extends CvStruct { + QRCodeDetector._(cvg.QRCodeDetectorPtr ptr, [bool attach = true]) + : super.fromPointer(ptr) { + if (attach) { + finalizer.attach(this, ptr.cast(), detach: this); + } + } + + factory QRCodeDetector.empty() { + final p = calloc(); + cvRun(() => CFFI.QRCodeDetector_New(p)); + return QRCodeDetector._(p); + } + + Future<(String rval, Mat straightQRcode)> decodeCurvedAsync(InputArray img, VecPoint points, { OutputArray? straightQRcode }) async { + final s = straightQRcode?.ptr ?? calloc(); + final v = calloc>(); + final rval = cvRunAsync<(String, Mat)>((callback) => CFFI.QRCodeDetector_decodeCurved_Async( + ref, + img.ref, + points.ref, + s, + v, + callback), (c, _) { + final ss = v.value.cast().toDartString(); + calloc.free(v); + return c.complete((ss, Mat.fromPointer(s))); + }); + return rval; + } + + Future<(String rval, VecPoint points, Mat straightQRcode)> detectAndDecodeCurvedAsync(InputArray img, { VecPoint? points, Mat? straightQRcode }) async { + final p = points?.ptr ?? calloc(); + final s = straightQRcode?.ptr ?? calloc(); + final v = calloc>(); + final rval = cvRunAsync<(String, VecPoint, Mat)>((callback) => CFFI.QRCodeDetector_detectAndDecodeCurved_Async( + ref, + img.ref, + p, + s, + v, + callback), (c, _) { + final ss = v.value.cast().toDartString(); + calloc.free(v); + return c.complete((ss, VecPoint.fromPointer(p), Mat.fromPointer(s))); + }); + return rval; + } + + Future<(String ret, VecPoint points, Mat straightCode)> detectAndDecodeAsync(InputArray img, { VecPoint? points, OutputArray? straightCode }) async { + final code = straightCode?.ptr ?? calloc(); + final pts = points?.ptr ?? calloc(); + final v = calloc>(); + final rval = cvRunAsync<(String, VecPoint, Mat)>((callback) => CFFI.QRCodeDetector_DetectAndDecode_Async(ref, img.ref, pts, code, v, callback), (c, _) { + final s = v == ffi.nullptr ? "" : v.value.cast().toDartString(); + calloc.free(v); + return c.complete((s, VecPoint.fromPointer(pts), Mat.fromPointer(code))); + }); + return rval; + } + + Future<(bool ret, VecPoint points)> detectAsync(InputArray input, {VecPoint? points}) async { + final pts = points?.ptr ?? calloc(); + final rval = cvRunAsync<(bool, VecPoint)>((callback) => CFFI.QRCodeDetector_Detect_Async(ref, input.ref, pts, callback), (c, p) { + final ret = p.cast().value; + return c.complete((ret, VecPoint.fromPointer(pts))); + }); + return rval; + } + + Future<(String ret, VecPoint? points, Mat? straightCode)> decodeAsync(InputArray img, { VecPoint? points, Mat? straightCode }) async { + final p = points?.ptr ?? calloc(); + final ret = calloc>(); + final code = straightCode ?? Mat.empty(); + final rval = cvRunAsync<(String, VecPoint, Mat)>((callback) => CFFI.QRCodeDetector_Decode_Async(ref, img.ref, p, code.ref, ret, callback), (c, _) { + final info = ret.value.cast().toDartString(); + calloc.free(ret); + return c.complete((info, VecPoint.fromPointer(p), code)); + }); + return rval; + } + + Future<(bool ret, VecPoint points)> detectMultiAsync(InputArray img, {VecPoint? points}) async { + final pts = points?.ptr ?? calloc(); + final rval = cvRunAsync<(bool, VecPoint)>((callback) => CFFI.QRCodeDetector_DetectMulti_Async(ref, img.ref, pts, callback), (c, p) { + final ret = p.cast().value; + return c.complete((ret, VecPoint.fromPointer(pts))); + }); + return rval; + } + + Future<(bool, List, VecPoint, VecMat)> detectAndDecodeMultiAsync(InputArray img) async { + final info = calloc(); + final points = calloc(); + final codes = calloc(); + final rval = calloc(); + final ret = cvRunAsync<(bool, List, VecPoint, VecMat)>((callback) => CFFI.QRCodeDetector_DetectAndDecodeMulti_Async( + ref, + img.ref, + info, + points, + codes, + rval, + callback), (c, _) { + final ret = (rval.value, VecVecChar.fromPointer(info).asStringList(), VecPoint.fromPointer(points), VecMat.fromPointer(codes)); + calloc.free(rval); + return c.complete(ret); + }); + return ret; + } + + Future setEpsXAsync(double epsX) async { + await cvRunAsync((callback) => CFFI.QRCodeDetector_setEpsX_Async(ref, epsX, callback), (c, _) { + return c.complete(); + }); + } + + Future setEpsYAsync(double epsY) async { + await cvRunAsync((callback) => CFFI.QRCodeDetector_setEpsY_Async(ref, epsY, callback), (c, _) { + return c.complete(); + }); + } + + Future setUseAlignmentMarkersAsync(bool useAlignmentMarkers) async { + await cvRunAsync((callback) => CFFI.QRCodeDetector_setUseAlignmentMarkers_Async(ref, useAlignmentMarkers, callback), (c, _) { + return c.complete(); + }); + } + + @override + cvg.QRCodeDetector get ref => ptr.ref; + static final finalizer = OcvFinalizer(CFFI.addresses.QRCodeDetector_Close); + + void dispose() { + finalizer.detach(this); + CFFI.QRCodeDetector_Close(ptr); + } + + @override + List get props => [ptr.address]; +} + +class FaceDetectorYN extends CvStruct { + FaceDetectorYN._(cvg.FaceDetectorYNPtr ptr, [bool attach = true]) + : super.fromPointer(ptr) { + if (attach) { + finalizer.attach(this, ptr.cast(), detach: this); + } + } + + factory FaceDetectorYN.fromFile(String model, String config, (int, int) inputSize, + { double scoreThreshold = 0.9, double nmsThreshold = 0.3, int topK = 5000, int backendId = 0, int targetId = 0 }) { + final p = calloc(); + final cModel = model.toNativeUtf8().cast(); + final cConfig = config.toNativeUtf8().cast(); + cvRun(() => CFFI.FaceDetectorYN_New(cModel, cConfig, inputSize.cvd.ref, scoreThreshold, nmsThreshold, topK, backendId, targetId, p)); + calloc.free(cModel); + calloc.free(cConfig); + return FaceDetectorYN._(p); + } + + factory FaceDetectorYN.fromBuffer(String framework, Uint8List bufferModel, Uint8List bufferConfig, (int, int) inputSize, + { double scoreThreshold = 0.9, double nmsThreshold = 0.3, int topK = 5000, int backendId = 0, int targetId = 0 }) { + final p = calloc(); + final cFramework = framework.toNativeUtf8().cast(); + cvRun(() => CFFI.FaceDetectorYN_NewFromBuffer(cFramework, VecUChar.fromList(bufferModel).ref, VecUChar.fromList(bufferConfig).ref, inputSize.cvd.ref, scoreThreshold, nmsThreshold, topK, backendId, targetId, p)); + calloc.free(cFramework); + return FaceDetectorYN._(p); + } + + Future<(int, int)> getInputSizeAsync() async { + final p = calloc(); + final rval = cvRunAsync<(int, int)>((callback) => CFFI.FaceDetectorYN_GetInputSize_Async(ref, p, callback), (c, _) { + final ret = (p.ref.width, p.ref.height); + calloc.free(p); + return c.complete(ret); + }); + return rval; + } + + Future getScoreThresholdAsync() async { + final rval = cvRunAsync((callback) => CFFI.FaceDetectorYN_GetScoreThreshold_Async(ref, callback), (c, p) { + final rval = p.cast().value; + return c.complete(rval); + }); + return rval; + } + + Future getNmsThresholdAsync() async { + final rval = cvRunAsync((callback) => CFFI.FaceDetectorYN_GetNMSThreshold_Async(ref, callback), (c, p) { + final rval = p.cast().value; + return c.complete(rval); + }); + return rval; + } + + Future getTopKAsync() async { + final rval = cvRunAsync((callback) => CFFI.FaceDetectorYN_GetTopK_Async(ref, callback), (c, p) { + final rval = p.cast().value; + return c.complete(rval); + }); + return rval; + } + + Future detectAsync(Mat image) async { + final p = calloc(); + final rval = cvRunAsync((callback) => CFFI.FaceDetectorYN_Detect_Async(ref, image.ref, p, callback), (c, _) { + return c.complete(Mat.fromPointer(p)); + }); + return rval; + } + + Future setInputSizeAsync((int, int) inputSize) async { + await cvRunAsync((callback) => CFFI.FaceDetectorYN_SetInputSize_Async(ref, inputSize.cvd.ref, callback), (c, _) { + return c.complete(); + }); + } + + Future setScoreThresholdAsync(double scoreThreshold) async { + await cvRunAsync((callback) => CFFI.FaceDetectorYN_SetScoreThreshold_Async(ref, scoreThreshold, callback), (c, _) { + return c.complete(); + }); + } + + Future setNMSThresholdAsync(double nmsThreshold) async { + await cvRunAsync((callback) => CFFI.FaceDetectorYN_SetNMSThreshold_Async(ref, nmsThreshold, callback), (c, _) { + return c.complete(); + }); + } + + Future setTopKAsync(int topK) async { + await cvRunAsync((callback) => CFFI.FaceDetectorYN_SetTopK_Async(ref, topK, callback), (c, _) { + return c.complete(); + }); + } + + @override + cvg.FaceDetectorYN get ref => ptr.ref; + static final finalizer = OcvFinalizer(CFFI.addresses.FaceDetectorYN_Close); + + void dispose() { + finalizer.detach(this); + CFFI.FaceDetectorYN_Close(ptr); + } + + @override + List get props => [ptr.address]; +} + +class FaceRecognizerSF extends CvStruct { + FaceRecognizerSF._(cvg.FaceRecognizerSFPtr ptr, [bool attach = true]) + : super.fromPointer(ptr) { + if (attach) { + finalizer.attach(this, ptr.cast(), detach: this); + } + } + + factory FaceRecognizerSF.fromFile(String model, String config, + { int backendId = 0, int targetId = 0 }) { + final p = calloc(); + final cModel = model.toNativeUtf8().cast(); + final cConfig = config.toNativeUtf8().cast(); + cvRun(() => CFFI.FaceRecognizerSF_New(cModel, cConfig, backendId, targetId, p)); + calloc.free(cModel); + calloc.free(cConfig); + return FaceRecognizerSF._(p); + } + + Future alignCropAsync(Mat srcImg, Mat faceBox) async { + final p = calloc(); + final rval = cvRunAsync((callback) => CFFI.FaceRecognizerSF_AlignCrop_Async(ref, srcImg.ref, faceBox.ref, p, callback), (c, _) { + return c.complete(Mat.fromPointer(p)); + }); + return rval; + } + + Future featureAsync(Mat alignedImg, {bool clone = false}) async { + final p = calloc(); + final rval = cvRunAsync((callback) => CFFI.FaceRecognizerSF_Feature_Async(ref, alignedImg.ref, clone, p, callback), (c, _) { + return c.complete(Mat.fromPointer(p)); + }); + return rval; + } + + Future matchAsync(Mat faceFeature1, Mat faceFeature2, {int disType = FaceRecognizerSF.FR_COSINE}) async { + final rval = cvRunAsync((callback) => CFFI.FaceRecognizerSF_Match_Async(ref, faceFeature1.ref, faceFeature2.ref, disType, callback), (c, p) { + final rval = p.cast().value; + return c.complete(rval); + }); + return rval; + } + + @override + cvg.FaceRecognizerSF get ref => ptr.ref; + static final finalizer = OcvFinalizer(CFFI.addresses.FaceRecognizerSF_Close); + + void dispose() { + finalizer.detach(this); + CFFI.FaceRecognizerSF_Close(ptr); + } + + @override + List get props => [ptr.address]; + + @Deprecated("Use [FR_COSINE] instead.") + static const int DIS_TYPR_FR_COSINE = 0; + @Deprecated("Use [FR_NORM_L2] instead.") + static const int DIS_TYPE_FR_NORM_L2 = 1; + + static const int FR_COSINE = 0; + static const int FR_NORM_L2 = 1; +} diff --git a/lib/src/opencv.g.dart b/lib/src/opencv.g.dart index 68dc7002..323ea83d 100644 --- a/lib/src/opencv.g.dart +++ b/lib/src/opencv.g.dart @@ -2715,6 +2715,44 @@ class CvNative { Size, Size)>(); + ffi.Pointer CascadeClassifier_DetectMultiScale2_Async( + CascadeClassifier self, + Mat img, + double scaleFactor, + int minNeighbors, + int flags, + Size minSize, + Size maxSize, + CvCallback_2 callback, + ) { + return _CascadeClassifier_DetectMultiScale2_Async( + self, + img, + scaleFactor, + minNeighbors, + flags, + minSize, + maxSize, + callback, + ); + } + + late final _CascadeClassifier_DetectMultiScale2_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + CascadeClassifier, + Mat, + ffi.Double, + ffi.Int, + ffi.Int, + Size, + Size, + CvCallback_2)>>('CascadeClassifier_DetectMultiScale2_Async'); + late final _CascadeClassifier_DetectMultiScale2_Async = + _CascadeClassifier_DetectMultiScale2_AsyncPtr.asFunction< + ffi.Pointer Function(CascadeClassifier, Mat, double, int, + int, Size, Size, CvCallback_2)>(); + ffi.Pointer CascadeClassifier_DetectMultiScale3( CascadeClassifier self, Mat img, @@ -2772,6 +2810,47 @@ class CvNative { Size, bool)>(); + ffi.Pointer CascadeClassifier_DetectMultiScale3_Async( + CascadeClassifier self, + Mat img, + double scaleFactor, + int minNeighbors, + int flags, + Size minSize, + Size maxSize, + bool outputRejectLevels, + CvCallback_3 callback, + ) { + return _CascadeClassifier_DetectMultiScale3_Async( + self, + img, + scaleFactor, + minNeighbors, + flags, + minSize, + maxSize, + outputRejectLevels, + callback, + ); + } + + late final _CascadeClassifier_DetectMultiScale3_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + CascadeClassifier, + Mat, + ffi.Double, + ffi.Int, + ffi.Int, + Size, + Size, + ffi.Bool, + CvCallback_3)>>('CascadeClassifier_DetectMultiScale3_Async'); + late final _CascadeClassifier_DetectMultiScale3_Async = + _CascadeClassifier_DetectMultiScale3_AsyncPtr.asFunction< + ffi.Pointer Function(CascadeClassifier, Mat, double, int, + int, Size, Size, bool, CvCallback_3)>(); + ffi.Pointer CascadeClassifier_DetectMultiScaleWithParams( CascadeClassifier self, Mat img, @@ -2810,6 +2889,59 @@ class CvNative { ffi.Pointer Function(CascadeClassifier, Mat, ffi.Pointer, double, int, int, Size, Size)>(); + ffi.Pointer CascadeClassifier_DetectMultiScaleWithParams_Async( + CascadeClassifier self, + Mat img, + double scale, + int minNeighbors, + int flags, + Size minSize, + Size maxSize, + CvCallback_1 callback, + ) { + return _CascadeClassifier_DetectMultiScaleWithParams_Async( + self, + img, + scale, + minNeighbors, + flags, + minSize, + maxSize, + callback, + ); + } + + late final _CascadeClassifier_DetectMultiScaleWithParams_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, Mat, ffi.Double, + ffi.Int, ffi.Int, Size, Size, CvCallback_1)>>( + 'CascadeClassifier_DetectMultiScaleWithParams_Async'); + late final _CascadeClassifier_DetectMultiScaleWithParams_Async = + _CascadeClassifier_DetectMultiScaleWithParams_AsyncPtr.asFunction< + ffi.Pointer Function(CascadeClassifier, Mat, double, int, + int, Size, Size, CvCallback_1)>(); + + ffi.Pointer CascadeClassifier_DetectMultiScale_Async( + CascadeClassifier self, + Mat img, + CvCallback_1 callback, + ) { + return _CascadeClassifier_DetectMultiScale_Async( + self, + img, + callback, + ); + } + + late final _CascadeClassifier_DetectMultiScale_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, Mat, + CvCallback_1)>>('CascadeClassifier_DetectMultiScale_Async'); + late final _CascadeClassifier_DetectMultiScale_Async = + _CascadeClassifier_DetectMultiScale_AsyncPtr.asFunction< + ffi.Pointer Function( + CascadeClassifier, Mat, CvCallback_1)>(); + ffi.Pointer CascadeClassifier_Empty( CascadeClassifier self, ffi.Pointer rval, @@ -2828,6 +2960,24 @@ class CvNative { ffi.Pointer Function( CascadeClassifier, ffi.Pointer)>(); + ffi.Pointer CascadeClassifier_Empty_Async( + CascadeClassifier self, + CvCallback_1 callback, + ) { + return _CascadeClassifier_Empty_Async( + self, + callback, + ); + } + + late final _CascadeClassifier_Empty_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, + CvCallback_1)>>('CascadeClassifier_Empty_Async'); + late final _CascadeClassifier_Empty_Async = + _CascadeClassifier_Empty_AsyncPtr.asFunction< + ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); + ffi.Pointer CascadeClassifier_Load( CascadeClassifier self, ffi.Pointer name, @@ -2904,6 +3054,24 @@ class CvNative { ffi.Pointer Function( CascadeClassifier, ffi.Pointer)>(); + ffi.Pointer CascadeClassifier_getFeatureType_Async( + CascadeClassifier self, + CvCallback_1 callback, + ) { + return _CascadeClassifier_getFeatureType_Async( + self, + callback, + ); + } + + late final _CascadeClassifier_getFeatureType_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, + CvCallback_1)>>('CascadeClassifier_getFeatureType_Async'); + late final _CascadeClassifier_getFeatureType_Async = + _CascadeClassifier_getFeatureType_AsyncPtr.asFunction< + ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); + ffi.Pointer CascadeClassifier_getOriginalWindowSize( CascadeClassifier self, ffi.Pointer rval, @@ -2923,6 +3091,24 @@ class CvNative { ffi.Pointer Function( CascadeClassifier, ffi.Pointer)>(); + ffi.Pointer CascadeClassifier_getOriginalWindowSize_Async( + CascadeClassifier self, + CvCallback_1 callback, + ) { + return _CascadeClassifier_getOriginalWindowSize_Async( + self, + callback, + ); + } + + late final _CascadeClassifier_getOriginalWindowSize_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, + CvCallback_1)>>('CascadeClassifier_getOriginalWindowSize_Async'); + late final _CascadeClassifier_getOriginalWindowSize_Async = + _CascadeClassifier_getOriginalWindowSize_AsyncPtr.asFunction< + ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); + ffi.Pointer CascadeClassifier_isOldFormatCascade( CascadeClassifier self, ffi.Pointer rval, @@ -2942,6 +3128,24 @@ class CvNative { ffi.Pointer Function( CascadeClassifier, ffi.Pointer)>(); + ffi.Pointer CascadeClassifier_isOldFormatCascade_Async( + CascadeClassifier self, + CvCallback_1 callback, + ) { + return _CascadeClassifier_isOldFormatCascade_Async( + self, + callback, + ); + } + + late final _CascadeClassifier_isOldFormatCascade_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, + CvCallback_1)>>('CascadeClassifier_isOldFormatCascade_Async'); + late final _CascadeClassifier_isOldFormatCascade_Async = + _CascadeClassifier_isOldFormatCascade_AsyncPtr.asFunction< + ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); + ffi.Pointer Circle( Mat img, Point center, @@ -3823,6 +4027,26 @@ class CvNative { late final _FaceDetectorYN_Detect = _FaceDetectorYN_DetectPtr.asFunction< ffi.Pointer Function(FaceDetectorYN, Mat, ffi.Pointer)>(); + ffi.Pointer FaceDetectorYN_Detect_Async( + FaceDetectorYN self, + Mat img, + CvCallback_1 callback, + ) { + return _FaceDetectorYN_Detect_Async( + self, + img, + callback, + ); + } + + late final _FaceDetectorYN_Detect_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, Mat, + CvCallback_1)>>('FaceDetectorYN_Detect_Async'); + late final _FaceDetectorYN_Detect_Async = + _FaceDetectorYN_Detect_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, Mat, CvCallback_1)>(); + ffi.Pointer FaceDetectorYN_GetInputSize( FaceDetectorYN self, ffi.Pointer input_size, @@ -4090,6 +4314,29 @@ class CvNative { ffi.Pointer Function( FaceRecognizerSF, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer FaceRecognizerSF_AlignCrop_Async( + FaceRecognizerSF self, + Mat src_img, + Mat face_box, + CvCallback_1 callback, + ) { + return _FaceRecognizerSF_AlignCrop_Async( + self, + src_img, + face_box, + callback, + ); + } + + late final _FaceRecognizerSF_AlignCrop_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, + CvCallback_1)>>('FaceRecognizerSF_AlignCrop_Async'); + late final _FaceRecognizerSF_AlignCrop_Async = + _FaceRecognizerSF_AlignCrop_AsyncPtr.asFunction< + ffi.Pointer Function( + FaceRecognizerSF, Mat, Mat, CvCallback_1)>(); + void FaceRecognizerSF_Close( FaceRecognizerSFPtr self, ) { @@ -4127,6 +4374,29 @@ class CvNative { ffi.Pointer Function( FaceRecognizerSF, Mat, bool, ffi.Pointer)>(); + ffi.Pointer FaceRecognizerSF_Feature_Async( + FaceRecognizerSF self, + Mat aligned_img, + bool clone, + CvCallback_1 callback, + ) { + return _FaceRecognizerSF_Feature_Async( + self, + aligned_img, + clone, + callback, + ); + } + + late final _FaceRecognizerSF_Feature_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceRecognizerSF, Mat, ffi.Bool, + CvCallback_1)>>('FaceRecognizerSF_Feature_Async'); + late final _FaceRecognizerSF_Feature_Async = + _FaceRecognizerSF_Feature_AsyncPtr.asFunction< + ffi.Pointer Function( + FaceRecognizerSF, Mat, bool, CvCallback_1)>(); + ffi.Pointer FaceRecognizerSF_Match( FaceRecognizerSF self, Mat face_feature1, @@ -4151,6 +4421,31 @@ class CvNative { ffi.Pointer Function( FaceRecognizerSF, Mat, Mat, int, ffi.Pointer)>(); + ffi.Pointer FaceRecognizerSF_Match_Async( + FaceRecognizerSF self, + Mat face_feature1, + Mat face_feature2, + int dis_type, + CvCallback_1 callback, + ) { + return _FaceRecognizerSF_Match_Async( + self, + face_feature1, + face_feature2, + dis_type, + callback, + ); + } + + late final _FaceRecognizerSF_Match_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, ffi.Int, + CvCallback_1)>>('FaceRecognizerSF_Match_Async'); + late final _FaceRecognizerSF_Match_Async = + _FaceRecognizerSF_Match_AsyncPtr.asFunction< + ffi.Pointer Function( + FaceRecognizerSF, Mat, Mat, int, CvCallback_1)>(); + ffi.Pointer FaceRecognizerSF_New( ffi.Pointer model, ffi.Pointer config, @@ -5512,6 +5807,27 @@ class CvNative { late final _GroupRectangles = _GroupRectanglesPtr.asFunction< ffi.Pointer Function(VecRect, int, double)>(); + ffi.Pointer GroupRectangles_Async( + VecRect rects, + int groupThreshold, + double eps, + CvCallback_1 callback, + ) { + return _GroupRectangles_Async( + rects, + groupThreshold, + eps, + callback, + ); + } + + late final _GroupRectangles_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecRect, ffi.Int, ffi.Double, + CvCallback_1)>>('GroupRectangles_Async'); + late final _GroupRectangles_Async = _GroupRectangles_AsyncPtr.asFunction< + ffi.Pointer Function(VecRect, int, double, CvCallback_1)>(); + void HOGDescriptor_Close( HOGDescriptorPtr self, ) { @@ -5557,6 +5873,31 @@ class CvNative { ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, Size, Size, ffi.Pointer)>(); + ffi.Pointer HOGDescriptor_Compute_Async( + HOGDescriptor self, + Mat img, + Size winStride, + Size padding, + CvCallback_1 callback, + ) { + return _HOGDescriptor_Compute_Async( + self, + img, + winStride, + padding, + callback, + ); + } + + late final _HOGDescriptor_Compute_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, Mat, Size, Size, + CvCallback_1)>>('HOGDescriptor_Compute_Async'); + late final _HOGDescriptor_Compute_Async = + _HOGDescriptor_Compute_AsyncPtr.asFunction< + ffi.Pointer Function( + HOGDescriptor, Mat, Size, Size, CvCallback_1)>(); + ffi.Pointer HOGDescriptor_Detect( HOGDescriptor self, Mat img, @@ -5628,68 +5969,183 @@ class CvNative { ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, double, Size, Size, ffi.Pointer)>(); - ffi.Pointer HOGDescriptor_DetectMultiScale( + ffi.Pointer HOGDescriptor_Detect2_Async( + HOGDescriptor self, + Mat img, + double hitThresh, + Size winStride, + Size padding, + CvCallback_1 callback, + ) { + return _HOGDescriptor_Detect2_Async( + self, + img, + hitThresh, + winStride, + padding, + callback, + ); + } + + late final _HOGDescriptor_Detect2_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, Mat, ffi.Double, Size, + Size, CvCallback_1)>>('HOGDescriptor_Detect2_Async'); + late final _HOGDescriptor_Detect2_Async = + _HOGDescriptor_Detect2_AsyncPtr.asFunction< + ffi.Pointer Function( + HOGDescriptor, Mat, double, Size, Size, CvCallback_1)>(); + + ffi.Pointer HOGDescriptor_DetectMultiScale( + HOGDescriptor self, + Mat img, + ffi.Pointer rval, + ) { + return _HOGDescriptor_DetectMultiScale( + self, + img, + rval, + ); + } + + late final _HOGDescriptor_DetectMultiScalePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, Mat, + ffi.Pointer)>>('HOGDescriptor_DetectMultiScale'); + late final _HOGDescriptor_DetectMultiScale = + _HOGDescriptor_DetectMultiScalePtr.asFunction< + ffi.Pointer Function( + HOGDescriptor, Mat, ffi.Pointer)>(); + + ffi.Pointer HOGDescriptor_DetectMultiScaleWithParams( + HOGDescriptor self, + Mat img, + double hitThresh, + Size winStride, + Size padding, + double scale, + double finalThreshold, + bool useMeanshiftGrouping, + ffi.Pointer rval, + ) { + return _HOGDescriptor_DetectMultiScaleWithParams( + self, + img, + hitThresh, + winStride, + padding, + scale, + finalThreshold, + useMeanshiftGrouping, + rval, + ); + } + + late final _HOGDescriptor_DetectMultiScaleWithParamsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + HOGDescriptor, + Mat, + ffi.Double, + Size, + Size, + ffi.Double, + ffi.Double, + ffi.Bool, + ffi.Pointer)>>( + 'HOGDescriptor_DetectMultiScaleWithParams'); + late final _HOGDescriptor_DetectMultiScaleWithParams = + _HOGDescriptor_DetectMultiScaleWithParamsPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, Mat, double, Size, Size, + double, double, bool, ffi.Pointer)>(); + + ffi.Pointer HOGDescriptor_DetectMultiScaleWithParams_Async( + HOGDescriptor self, + Mat img, + double hitThresh, + Size winStride, + Size padding, + double scale, + double finalThreshold, + bool useMeanshiftGrouping, + CvCallback_1 callback, + ) { + return _HOGDescriptor_DetectMultiScaleWithParams_Async( + self, + img, + hitThresh, + winStride, + padding, + scale, + finalThreshold, + useMeanshiftGrouping, + callback, + ); + } + + late final _HOGDescriptor_DetectMultiScaleWithParams_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + HOGDescriptor, + Mat, + ffi.Double, + Size, + Size, + ffi.Double, + ffi.Double, + ffi.Bool, + CvCallback_1)>>('HOGDescriptor_DetectMultiScaleWithParams_Async'); + late final _HOGDescriptor_DetectMultiScaleWithParams_Async = + _HOGDescriptor_DetectMultiScaleWithParams_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, Mat, double, Size, Size, + double, double, bool, CvCallback_1)>(); + + ffi.Pointer HOGDescriptor_DetectMultiScale_Async( HOGDescriptor self, Mat img, - ffi.Pointer rval, + CvCallback_1 callback, ) { - return _HOGDescriptor_DetectMultiScale( + return _HOGDescriptor_DetectMultiScale_Async( self, img, - rval, + callback, ); } - late final _HOGDescriptor_DetectMultiScalePtr = _lookup< + late final _HOGDescriptor_DetectMultiScale_AsyncPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function(HOGDescriptor, Mat, - ffi.Pointer)>>('HOGDescriptor_DetectMultiScale'); - late final _HOGDescriptor_DetectMultiScale = - _HOGDescriptor_DetectMultiScalePtr.asFunction< - ffi.Pointer Function( - HOGDescriptor, Mat, ffi.Pointer)>(); + CvCallback_1)>>('HOGDescriptor_DetectMultiScale_Async'); + late final _HOGDescriptor_DetectMultiScale_Async = + _HOGDescriptor_DetectMultiScale_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, Mat, CvCallback_1)>(); - ffi.Pointer HOGDescriptor_DetectMultiScaleWithParams( + ffi.Pointer HOGDescriptor_Detect_Async( HOGDescriptor self, Mat img, double hitThresh, Size winStride, Size padding, - double scale, - double finalThreshold, - bool useMeanshiftGrouping, - ffi.Pointer rval, + CvCallback_1 callback, ) { - return _HOGDescriptor_DetectMultiScaleWithParams( + return _HOGDescriptor_Detect_Async( self, img, hitThresh, winStride, padding, - scale, - finalThreshold, - useMeanshiftGrouping, - rval, + callback, ); } - late final _HOGDescriptor_DetectMultiScaleWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - HOGDescriptor, - Mat, - ffi.Double, - Size, - Size, - ffi.Double, - ffi.Double, - ffi.Bool, - ffi.Pointer)>>( - 'HOGDescriptor_DetectMultiScaleWithParams'); - late final _HOGDescriptor_DetectMultiScaleWithParams = - _HOGDescriptor_DetectMultiScaleWithParamsPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, double, Size, Size, - double, double, bool, ffi.Pointer)>(); + late final _HOGDescriptor_Detect_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, Mat, ffi.Double, Size, + Size, CvCallback_1)>>('HOGDescriptor_Detect_Async'); + late final _HOGDescriptor_Detect_Async = + _HOGDescriptor_Detect_AsyncPtr.asFunction< + ffi.Pointer Function( + HOGDescriptor, Mat, double, Size, Size, CvCallback_1)>(); ffi.Pointer HOGDescriptor_Load( HOGDescriptor self, @@ -5789,6 +6245,35 @@ class CvNative { ffi.Pointer Function( HOGDescriptor, Mat, Mat, Mat, Size, Size)>(); + ffi.Pointer HOGDescriptor_computeGradient_Async( + HOGDescriptor self, + Mat img, + Mat grad, + Mat angleOfs, + Size paddingTL, + Size paddingBR, + CvCallback_1 callback, + ) { + return _HOGDescriptor_computeGradient_Async( + self, + img, + grad, + angleOfs, + paddingTL, + paddingBR, + callback, + ); + } + + late final _HOGDescriptor_computeGradient_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, Mat, Mat, Mat, Size, + Size, CvCallback_1)>>('HOGDescriptor_computeGradient_Async'); + late final _HOGDescriptor_computeGradient_Async = + _HOGDescriptor_computeGradient_AsyncPtr.asFunction< + ffi.Pointer Function( + HOGDescriptor, Mat, Mat, Mat, Size, Size, CvCallback_1)>(); + ffi.Pointer HOGDescriptor_getDaimlerPeopleDetector( ffi.Pointer rval, ) { @@ -5805,6 +6290,21 @@ class CvNative { _HOGDescriptor_getDaimlerPeopleDetectorPtr.asFunction< ffi.Pointer Function(ffi.Pointer)>(); + ffi.Pointer HOGDescriptor_getDaimlerPeopleDetector_Async( + CvCallback_1 callback, + ) { + return _HOGDescriptor_getDaimlerPeopleDetector_Async( + callback, + ); + } + + late final _HOGDescriptor_getDaimlerPeopleDetector_AsyncPtr = + _lookup Function(CvCallback_1)>>( + 'HOGDescriptor_getDaimlerPeopleDetector_Async'); + late final _HOGDescriptor_getDaimlerPeopleDetector_Async = + _HOGDescriptor_getDaimlerPeopleDetector_AsyncPtr.asFunction< + ffi.Pointer Function(CvCallback_1)>(); + ffi.Pointer HOGDescriptor_getDescriptorSize( HOGDescriptor self, ffi.Pointer rval, @@ -5824,6 +6324,24 @@ class CvNative { ffi.Pointer Function( HOGDescriptor, ffi.Pointer)>(); + ffi.Pointer HOGDescriptor_getDescriptorSize_Async( + HOGDescriptor self, + CvCallback_1 callback, + ) { + return _HOGDescriptor_getDescriptorSize_Async( + self, + callback, + ); + } + + late final _HOGDescriptor_getDescriptorSize_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, + CvCallback_1)>>('HOGDescriptor_getDescriptorSize_Async'); + late final _HOGDescriptor_getDescriptorSize_Async = + _HOGDescriptor_getDescriptorSize_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, CvCallback_1)>(); + ffi.Pointer HOGDescriptor_getWinSigma( HOGDescriptor self, ffi.Pointer rval, @@ -5843,6 +6361,24 @@ class CvNative { ffi.Pointer Function( HOGDescriptor, ffi.Pointer)>(); + ffi.Pointer HOGDescriptor_getWinSigma_Async( + HOGDescriptor self, + CvCallback_1 callback, + ) { + return _HOGDescriptor_getWinSigma_Async( + self, + callback, + ); + } + + late final _HOGDescriptor_getWinSigma_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + HOGDescriptor, CvCallback_1)>>('HOGDescriptor_getWinSigma_Async'); + late final _HOGDescriptor_getWinSigma_Async = + _HOGDescriptor_getWinSigma_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, CvCallback_1)>(); + ffi.Pointer HOGDescriptor_groupRectangles( HOGDescriptor self, VecRect rectList, @@ -5868,6 +6404,38 @@ class CvNative { ffi.Pointer Function( HOGDescriptor, VecRect, VecDouble, int, double)>(); + ffi.Pointer HOGDescriptor_groupRectangles_Async( + HOGDescriptor self, + VecRect rectList, + VecDouble weights, + int groupThreshold, + double eps, + CvCallback_1 callback, + ) { + return _HOGDescriptor_groupRectangles_Async( + self, + rectList, + weights, + groupThreshold, + eps, + callback, + ); + } + + late final _HOGDescriptor_groupRectangles_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + HOGDescriptor, + VecRect, + VecDouble, + ffi.Int, + ffi.Double, + CvCallback_1)>>('HOGDescriptor_groupRectangles_Async'); + late final _HOGDescriptor_groupRectangles_Async = + _HOGDescriptor_groupRectangles_AsyncPtr.asFunction< + ffi.Pointer Function( + HOGDescriptor, VecRect, VecDouble, int, double, CvCallback_1)>(); + ffi.Pointer HOG_GetDefaultPeopleDetector( ffi.Pointer rval, ) { @@ -13882,6 +14450,26 @@ class CvNative { ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, Mat, ffi.Pointer>)>(); + ffi.Pointer QRCodeDetector_Decode_Async( + QRCodeDetector self, + Mat input, + CvCallback_2 callback, + ) { + return _QRCodeDetector_Decode_Async( + self, + input, + callback, + ); + } + + late final _QRCodeDetector_Decode_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, + CvCallback_2)>>('QRCodeDetector_Decode_Async'); + late final _QRCodeDetector_Decode_Async = + _QRCodeDetector_Decode_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_2)>(); + ffi.Pointer QRCodeDetector_Detect( QRCodeDetector self, Mat input, @@ -13978,6 +14566,46 @@ class CvNative { ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer QRCodeDetector_DetectAndDecodeMulti_Async( + QRCodeDetector self, + Mat input, + CvCallback_4 callback, + ) { + return _QRCodeDetector_DetectAndDecodeMulti_Async( + self, + input, + callback, + ); + } + + late final _QRCodeDetector_DetectAndDecodeMulti_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, + CvCallback_4)>>('QRCodeDetector_DetectAndDecodeMulti_Async'); + late final _QRCodeDetector_DetectAndDecodeMulti_Async = + _QRCodeDetector_DetectAndDecodeMulti_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_4)>(); + + ffi.Pointer QRCodeDetector_DetectAndDecode_Async( + QRCodeDetector self, + Mat input, + CvCallback_3 callback, + ) { + return _QRCodeDetector_DetectAndDecode_Async( + self, + input, + callback, + ); + } + + late final _QRCodeDetector_DetectAndDecode_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, + CvCallback_3)>>('QRCodeDetector_DetectAndDecode_Async'); + late final _QRCodeDetector_DetectAndDecode_Async = + _QRCodeDetector_DetectAndDecode_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_3)>(); + ffi.Pointer QRCodeDetector_DetectMulti( QRCodeDetector self, Mat input, @@ -14004,6 +14632,46 @@ class CvNative { ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer QRCodeDetector_DetectMulti_Async( + QRCodeDetector self, + Mat input, + CvCallback_1 callback, + ) { + return _QRCodeDetector_DetectMulti_Async( + self, + input, + callback, + ); + } + + late final _QRCodeDetector_DetectMulti_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, + CvCallback_1)>>('QRCodeDetector_DetectMulti_Async'); + late final _QRCodeDetector_DetectMulti_Async = + _QRCodeDetector_DetectMulti_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_1)>(); + + ffi.Pointer QRCodeDetector_Detect_Async( + QRCodeDetector self, + Mat input, + CvCallback_1 callback, + ) { + return _QRCodeDetector_Detect_Async( + self, + input, + callback, + ); + } + + late final _QRCodeDetector_Detect_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, + CvCallback_1)>>('QRCodeDetector_Detect_Async'); + late final _QRCodeDetector_Detect_Async = + _QRCodeDetector_Detect_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_1)>(); + ffi.Pointer QRCodeDetector_New( ffi.Pointer rval, ) { @@ -14045,6 +14713,29 @@ class CvNative { ffi.Pointer Function(QRCodeDetector, Mat, VecPoint, ffi.Pointer, ffi.Pointer>)>(); + ffi.Pointer QRCodeDetector_decodeCurved_Async( + QRCodeDetector self, + Mat img, + VecPoint points, + CvCallback_2 callback, + ) { + return _QRCodeDetector_decodeCurved_Async( + self, + img, + points, + callback, + ); + } + + late final _QRCodeDetector_decodeCurved_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, VecPoint, + CvCallback_2)>>('QRCodeDetector_decodeCurved_Async'); + late final _QRCodeDetector_decodeCurved_Async = + _QRCodeDetector_decodeCurved_AsyncPtr.asFunction< + ffi.Pointer Function( + QRCodeDetector, Mat, VecPoint, CvCallback_2)>(); + ffi.Pointer QRCodeDetector_detectAndDecodeCurved( QRCodeDetector self, Mat img, @@ -14079,6 +14770,26 @@ class CvNative { ffi.Pointer, ffi.Pointer>)>(); + ffi.Pointer QRCodeDetector_detectAndDecodeCurved_Async( + QRCodeDetector self, + Mat img, + CvCallback_3 callback, + ) { + return _QRCodeDetector_detectAndDecodeCurved_Async( + self, + img, + callback, + ); + } + + late final _QRCodeDetector_detectAndDecodeCurved_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, + CvCallback_3)>>('QRCodeDetector_detectAndDecodeCurved_Async'); + late final _QRCodeDetector_detectAndDecodeCurved_Async = + _QRCodeDetector_detectAndDecodeCurved_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_3)>(); + ffi.Pointer QRCodeDetector_setEpsX( QRCodeDetector self, double epsX, @@ -14096,6 +14807,27 @@ class CvNative { late final _QRCodeDetector_setEpsX = _QRCodeDetector_setEpsXPtr.asFunction< ffi.Pointer Function(QRCodeDetector, double)>(); + ffi.Pointer QRCodeDetector_setEpsX_Async( + QRCodeDetector self, + double epsX, + CvCallback_1 callback, + ) { + return _QRCodeDetector_setEpsX_Async( + self, + epsX, + callback, + ); + } + + late final _QRCodeDetector_setEpsX_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, ffi.Double, + CvCallback_1)>>('QRCodeDetector_setEpsX_Async'); + late final _QRCodeDetector_setEpsX_Async = + _QRCodeDetector_setEpsX_AsyncPtr.asFunction< + ffi.Pointer Function( + QRCodeDetector, double, CvCallback_1)>(); + ffi.Pointer QRCodeDetector_setEpsY( QRCodeDetector self, double epsY, @@ -14113,6 +14845,27 @@ class CvNative { late final _QRCodeDetector_setEpsY = _QRCodeDetector_setEpsYPtr.asFunction< ffi.Pointer Function(QRCodeDetector, double)>(); + ffi.Pointer QRCodeDetector_setEpsY_Async( + QRCodeDetector self, + double epsY, + CvCallback_1 callback, + ) { + return _QRCodeDetector_setEpsY_Async( + self, + epsY, + callback, + ); + } + + late final _QRCodeDetector_setEpsY_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, ffi.Double, + CvCallback_1)>>('QRCodeDetector_setEpsY_Async'); + late final _QRCodeDetector_setEpsY_Async = + _QRCodeDetector_setEpsY_AsyncPtr.asFunction< + ffi.Pointer Function( + QRCodeDetector, double, CvCallback_1)>(); + ffi.Pointer QRCodeDetector_setUseAlignmentMarkers( QRCodeDetector self, bool useAlignmentMarkers, @@ -14131,6 +14884,26 @@ class CvNative { _QRCodeDetector_setUseAlignmentMarkersPtr.asFunction< ffi.Pointer Function(QRCodeDetector, bool)>(); + ffi.Pointer QRCodeDetector_setUseAlignmentMarkers_Async( + QRCodeDetector self, + bool useAlignmentMarkers, + CvCallback_1 callback, + ) { + return _QRCodeDetector_setUseAlignmentMarkers_Async( + self, + useAlignmentMarkers, + callback, + ); + } + + late final _QRCodeDetector_setUseAlignmentMarkers_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, ffi.Bool, + CvCallback_1)>>('QRCodeDetector_setUseAlignmentMarkers_Async'); + late final _QRCodeDetector_setUseAlignmentMarkers_Async = + _QRCodeDetector_setUseAlignmentMarkers_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, bool, CvCallback_1)>(); + ffi.Pointer RNG_Fill( RNG rng, Mat mat, @@ -22845,6 +23618,11 @@ typedef CvCallback_3Function = ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer); typedef DartCvCallback_3Function = void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer); +typedef CvCallback_4 = ffi.Pointer>; +typedef CvCallback_4Function = ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer); +typedef DartCvCallback_4Function = void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer); typedef CvCallback_5 = ffi.Pointer>; typedef CvCallback_5Function = ffi.Void Function( ffi.Pointer, diff --git a/src/calib3d/calib3d_async.h b/src/calib3d/calib3d_async.h index a9bdcd58..5bafc3c3 100644 --- a/src/calib3d/calib3d_async.h +++ b/src/calib3d/calib3d_async.h @@ -7,6 +7,8 @@ #define CVD_ASYNC_CALIB3D_H #include "core/types.h" +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/src/objdetect/objdetect_async.cpp b/src/objdetect/objdetect_async.cpp new file mode 100644 index 00000000..89aa1aa3 --- /dev/null +++ b/src/objdetect/objdetect_async.cpp @@ -0,0 +1,419 @@ +#include "objdetect_async.h" +#include "core/types.h" + +// Asynchronous functions for CascadeClassifier +CvStatus *CascadeClassifier_New_Async(CvCallback_1 callback) { + BEGIN_WRAP + callback(new CascadeClassifier{new cv::CascadeClassifier()}); + END_WRAP +} + +CvStatus *CascadeClassifier_NewFromFile_Async(const char *filename, CvCallback_1 callback) { + BEGIN_WRAP + callback(new CascadeClassifier{new cv::CascadeClassifier(filename)}); + END_WRAP +} + +CvStatus *CascadeClassifier_Load_Async(CascadeClassifier self, const char *name, CvCallback_1 callback) { + BEGIN_WRAP + int rval = self.ptr->load(name); + callback(new int(rval)); + END_WRAP +} + +CvStatus *CascadeClassifier_DetectMultiScale_Async(CascadeClassifier self, Mat img, CvCallback_1 callback) { + BEGIN_WRAP + std::vector rects; + self.ptr->detectMultiScale(*img.ptr, rects); + callback(new VecRect{new std::vector(rects)}); + END_WRAP +} + +CvStatus *CascadeClassifier_DetectMultiScaleWithParams_Async(CascadeClassifier self, Mat img, double scale, int minNeighbors, int flags, Size minSize, Size maxSize, CvCallback_1 callback) { + BEGIN_WRAP + std::vector rects; + auto minsize = cv::Size(minSize.width, minSize.height); + auto maxsize = cv::Size(maxSize.width, maxSize.height); + self.ptr->detectMultiScale(*img.ptr, rects, scale, minNeighbors, flags, minsize, maxsize); + callback(new VecRect{new std::vector(rects)}); + END_WRAP +} + +CvStatus *CascadeClassifier_DetectMultiScale2_Async(CascadeClassifier self, Mat img, double scaleFactor, int minNeighbors, int flags, Size minSize, Size maxSize, CvCallback_2 callback) { + BEGIN_WRAP + std::vector rects; + std::vector nums; + auto minsize = cv::Size(minSize.width, minSize.height); + auto maxsize = cv::Size(maxSize.width, maxSize.height); + self.ptr->detectMultiScale(*img.ptr, rects, nums, scaleFactor, minNeighbors, flags, minsize, maxsize); + callback(new VecRect{new std::vector(rects)}, new VecInt{new std::vector(nums)}); + END_WRAP +} + +CvStatus *CascadeClassifier_DetectMultiScale3_Async(CascadeClassifier self, Mat img, double scaleFactor, int minNeighbors, int flags, Size minSize, Size maxSize, bool outputRejectLevels, CvCallback_3 callback) { + BEGIN_WRAP + std::vector rects; + std::vector rejects; + std::vector weights; + auto minsize = cv::Size(minSize.width, minSize.height); + auto maxsize = cv::Size(maxSize.width, maxSize.height); + self.ptr->detectMultiScale(*img.ptr, rects, rejects, weights, scaleFactor, minNeighbors, flags, minsize, maxsize, outputRejectLevels); + callback(new VecRect{new std::vector(rects)}, new VecInt{new std::vector(rejects)}, new VecDouble{new std::vector(weights)}); + END_WRAP +} + +CvStatus *CascadeClassifier_Empty_Async(CascadeClassifier self, CvCallback_1 callback) { + BEGIN_WRAP + bool rval = self.ptr->empty(); + callback(new bool(rval)); + END_WRAP +} + +CvStatus *CascadeClassifier_getFeatureType_Async(CascadeClassifier self, CvCallback_1 callback) { + BEGIN_WRAP + int rval = self.ptr->getFeatureType(); + callback(new int(rval)); + END_WRAP +} + +CvStatus *CascadeClassifier_getOriginalWindowSize_Async(CascadeClassifier self, CvCallback_1 callback) { + BEGIN_WRAP + auto sz = self.ptr->getOriginalWindowSize(); + callback(new Size{sz.width, sz.height}); + END_WRAP +} + +CvStatus *CascadeClassifier_isOldFormatCascade_Async(CascadeClassifier self, CvCallback_1 callback) { + BEGIN_WRAP + bool rval = self.ptr->isOldFormatCascade(); + callback(new bool(rval)); + END_WRAP +} + +// Asynchronous functions for HOGDescriptor +CvStatus *HOGDescriptor_New_Async(CvCallback_1 callback) { + BEGIN_WRAP + callback(new HOGDescriptor{new cv::HOGDescriptor()}); + END_WRAP +} + +CvStatus *HOGDescriptor_NewFromFile_Async(const char *filename, CvCallback_1 callback) { + BEGIN_WRAP + callback(new HOGDescriptor{new cv::HOGDescriptor(filename)}); + END_WRAP +} + +CvStatus *HOGDescriptor_Load_Async(HOGDescriptor self, const char *name, CvCallback_1 callback) { + BEGIN_WRAP + bool rval = self.ptr->load(name); + callback(new bool(rval)); + END_WRAP +} + +CvStatus *HOGDescriptor_Detect_Async(HOGDescriptor self, Mat img, double hitThresh, Size winStride, Size padding, CvCallback_3 callback) { + BEGIN_WRAP + std::vector _foundLocations; + std::vector _searchLocations; + std::vector _weights; + self.ptr->detect(*img.ptr, _foundLocations, _weights, hitThresh, cv::Point(winStride.width, winStride.height), cv::Point(padding.width, padding.height), _searchLocations); + callback(new VecPoint{new std::vector(_foundLocations)}, new VecDouble{new std::vector(_weights)}, new VecPoint{new std::vector(_searchLocations)}); + END_WRAP +} + +CvStatus *HOGDescriptor_Detect2_Async(HOGDescriptor self, Mat img, double hitThresh, Size winStride, Size padding, CvCallback_2 callback) { + BEGIN_WRAP + std::vector _foundLocations; + std::vector _searchLocations; + self.ptr->detect(*img.ptr, _foundLocations, hitThresh, cv::Point(winStride.width, winStride.height), cv::Point(padding.width, padding.height), _searchLocations); + callback(new VecPoint{new std::vector(_foundLocations)}, new VecPoint{new std::vector(_searchLocations)}); + END_WRAP +} + +CvStatus *HOGDescriptor_DetectMultiScale_Async(HOGDescriptor self, Mat img, CvCallback_1 callback) { + BEGIN_WRAP + std::vector rects; + self.ptr->detectMultiScale(*img.ptr, rects); + callback(new VecRect{new std::vector(rects)}); + END_WRAP +} + +CvStatus *HOGDescriptor_DetectMultiScaleWithParams_Async(HOGDescriptor self, Mat img, double hitThresh, Size winStride, Size padding, double scale, double finalThreshold, bool useMeanshiftGrouping, CvCallback_1 callback) { + BEGIN_WRAP + std::vector rects; + auto winstride = cv::Size(winStride.width, winStride.height); + auto pad = cv::Size(padding.width, padding.height); + self.ptr->detectMultiScale(*img.ptr, rects, hitThresh, winstride, pad, scale, finalThreshold, useMeanshiftGrouping); + callback(new VecRect{new std::vector(rects)}); + END_WRAP +} + +CvStatus *HOGDescriptor_Compute_Async(HOGDescriptor self, Mat img, Size winStride, Size padding, CvCallback_2 callback) { + BEGIN_WRAP + std::vector _descriptors; + std::vector _locations; + self.ptr->compute(*img.ptr, _descriptors, cv::Size(winStride.width, winStride.height), cv::Size(padding.width, padding.height), _locations); + callback(new VecFloat{new std::vector(_descriptors)}, new VecPoint{new std::vector(_locations)}); + END_WRAP +} + +CvStatus *HOGDescriptor_computeGradient_Async(HOGDescriptor self, Mat img, Mat grad, Mat angleOfs, Size paddingTL, Size paddingBR, CvCallback_1 callback) { + BEGIN_WRAP + self.ptr->computeGradient(*img.ptr, *grad.ptr, *angleOfs.ptr, cv::Size(paddingTL.width, paddingTL.height), cv::Size(paddingBR.width, paddingBR.height)); + callback(grad, angleOfs); + END_WRAP +} + +CvStatus *HOG_GetDefaultPeopleDetector_Async(CvCallback_1 callback) { + BEGIN_WRAP + callback(new VecFloat{new std::vector(cv::HOGDescriptor::getDefaultPeopleDetector())}); + END_WRAP +} + +CvStatus *HOGDescriptor_SetSVMDetector_Async(HOGDescriptor self, VecFloat det, CvCallback_1 callback) { + BEGIN_WRAP + self.ptr->setSVMDetector(*det.ptr); + callback(new int(0)); + END_WRAP +} + +CvStatus *HOGDescriptor_getDaimlerPeopleDetector_Async(CvCallback_1 callback) { + BEGIN_WRAP + callback(new VecFloat{new std::vector(cv::HOGDescriptor::getDaimlerPeopleDetector())}); + END_WRAP +} + +CvStatus *HOGDescriptor_getDescriptorSize_Async(HOGDescriptor self, CvCallback_1 callback) { + BEGIN_WRAP + size_t rval = self.ptr->getDescriptorSize(); + callback(new size_t(rval)); + END_WRAP +} + +CvStatus *HOGDescriptor_getWinSigma_Async(HOGDescriptor self, CvCallback_1 callback) { + BEGIN_WRAP + double rval = self.ptr->getWinSigma(); + callback(new double(rval)); + END_WRAP +} + +CvStatus *HOGDescriptor_groupRectangles_Async(HOGDescriptor self, VecRect rectList, VecDouble weights, int groupThreshold, double eps, CvCallback_1 callback) { + BEGIN_WRAP + self.ptr->groupRectangles(*rectList.ptr, *weights.ptr, groupThreshold, eps); + callback(new int(0)); + END_WRAP +} + +CvStatus *GroupRectangles_Async(VecRect rects, int groupThreshold, double eps, CvCallback_1 callback) { + BEGIN_WRAP + cv::groupRectangles(*rects.ptr, groupThreshold, eps); + callback(new int(0)); + END_WRAP +} + +// Asynchronous functions for QRCodeDetector +CvStatus *QRCodeDetector_New_Async(CvCallback_1 callback) { + BEGIN_WRAP + callback(new QRCodeDetector{new cv::QRCodeDetector()}); + END_WRAP +} + +CvStatus *QRCodeDetector_DetectAndDecode_Async(QRCodeDetector self, Mat input, CvCallback_3 callback) { + BEGIN_WRAP + std::vector points_; + cv::Mat straight_qrcode; + auto info = self.ptr->detectAndDecode(*input.ptr, points_, straight_qrcode); + callback(new char*(strdup(info.c_str())), new VecPoint{new std::vector(points_)}, new Mat{new cv::Mat(straight_qrcode)}); + END_WRAP +} + +CvStatus *QRCodeDetector_Detect_Async(QRCodeDetector self, Mat input, CvCallback_2 callback) { + BEGIN_WRAP + std::vector _points; + bool rval = self.ptr->detect(*input.ptr, _points); + callback(new bool(rval), new VecPoint{new std::vector(_points)}); + END_WRAP +} + +CvStatus *QRCodeDetector_Decode_Async(QRCodeDetector self, Mat input, CvCallback_2 callback) { + BEGIN_WRAP + std::vector _points; + cv::Mat straight_qrcode; + auto info = self.ptr->detectAndDecode(*input.ptr, _points, straight_qrcode); + callback(new char*(strdup(info.c_str())), new VecPoint{new std::vector(_points)}, new Mat{new cv::Mat(straight_qrcode)}); + END_WRAP +} + +CvStatus *QRCodeDetector_decodeCurved_Async(QRCodeDetector self, Mat img, VecPoint points, CvCallback_2 callback) { + BEGIN_WRAP + cv::Mat _straight_qrcode; + auto ret = self.ptr->decodeCurved(*img.ptr, *points.ptr, _straight_qrcode); + callback(new char*(strdup(ret.c_str())), new Mat{new cv::Mat(_straight_qrcode)}); + END_WRAP +} + +CvStatus *QRCodeDetector_detectAndDecodeCurved_Async(QRCodeDetector self, Mat img, CvCallback_3 callback) { + BEGIN_WRAP + cv::Mat _straight_qrcode; + std::vector _points; + auto ret = self.ptr->detectAndDecodeCurved(*img.ptr, _points, _straight_qrcode); + callback(new char*(strdup(ret.c_str())), new VecPoint{new std::vector(_points)}, new Mat{new cv::Mat(_straight_qrcode)}); + END_WRAP +} + +CvStatus *QRCodeDetector_DetectMulti_Async(QRCodeDetector self, Mat input, CvCallback_2 callback) { + BEGIN_WRAP + std::vector _points; + bool rval = self.ptr->detectMulti(*input.ptr, _points); + callback(new bool(rval), new VecPoint{new std::vector(_points)}); + END_WRAP +} + +CvStatus *QRCodeDetector_DetectAndDecodeMulti_Async(QRCodeDetector self, Mat input, CvCallback_4 callback) { + BEGIN_WRAP + std::vector decodedCodes; + std::vector straightQrCodes; + std::vector points_; + bool rval = self.ptr->detectAndDecodeMulti(*input.ptr, decodedCodes, points_, straightQrCodes); + if (!rval) { + callback(new bool(rval), new VecVecChar{new std::vector>()}, new VecPoint{new std::vector()}, new VecMat{new std::vector()}); + } else { + std::vector> vecvec; + for (int i = 0; i < decodedCodes.size(); i++) { + vecvec.push_back(std::vector(decodedCodes[i].begin(), decodedCodes[i].end())); + } + callback(new bool(rval), new VecVecChar{new std::vector>(vecvec)}, new VecPoint{new std::vector(points_)}, new VecMat{new std::vector(straightQrCodes)}); + } + END_WRAP +} + +CvStatus *QRCodeDetector_setEpsX_Async(QRCodeDetector self, double epsX, CvCallback_1 callback) { + BEGIN_WRAP + self.ptr->setEpsX(epsX); + callback(new int(0)); + END_WRAP +} + +CvStatus *QRCodeDetector_setEpsY_Async(QRCodeDetector self, double epsY, CvCallback_1 callback) { + BEGIN_WRAP + self.ptr->setEpsY(epsY); + callback(new int(0)); + END_WRAP +} + +CvStatus *QRCodeDetector_setUseAlignmentMarkers_Async(QRCodeDetector self, bool useAlignmentMarkers, CvCallback_1 callback) { + BEGIN_WRAP + self.ptr->setUseAlignmentMarkers(useAlignmentMarkers); + callback(new int(0)); + END_WRAP +} + +// Asynchronous function for FaceDetectorYN +CvStatus *FaceDetectorYN_New_Async(const char *model, const char *config, Size input_size, float score_threshold, float nms_threshold, int top_k, int backend_id, int target_id, CvCallback_1 callback) { + BEGIN_WRAP + callback(new FaceDetectorYN{new cv::Ptr(cv::FaceDetectorYN::create(model, config, cv::Size(input_size.width, input_size.height), score_threshold, nms_threshold, top_k, backend_id, target_id))}); + END_WRAP +} + +CvStatus *FaceDetectorYN_NewFromBuffer_Async(const char *framework, VecUChar buffer, VecUChar buffer_config, Size input_size, float score_threshold, float nms_threshold, int top_k, int backend_id, int target_id, CvCallback_1 callback) { + BEGIN_WRAP + callback(new FaceDetectorYN{new cv::Ptr(cv::FaceDetectorYN::create(framework, *buffer.ptr, *buffer_config.ptr, cv::Size(input_size.width, input_size.height), score_threshold, nms_threshold, top_k, backend_id, target_id))}); + END_WRAP +} + +CvStatus *FaceDetectorYN_Detect_Async(FaceDetectorYN self, Mat img, CvCallback_1 callback) { + BEGIN_WRAP + cv::Mat faces; + (*self.ptr)->detect(*img.ptr, faces); + callback(new Mat{new cv::Mat(faces)}); + END_WRAP +} + +CvStatus *FaceDetectorYN_SetInputSize_Async(FaceDetectorYN self, Size input_size, CvCallback_1 callback) { + BEGIN_WRAP + (*self.ptr)->setInputSize(cv::Size(input_size.width, input_size.height)); + callback(new int(0)); + END_WRAP +} + +CvStatus *FaceDetectorYN_GetInputSize_Async(FaceDetectorYN self, CvCallback_1 callback) { + BEGIN_WRAP + cv::Size sz = (*self.ptr)->getInputSize(); + callback(new Size{sz.width, sz.height}); + END_WRAP +} + +CvStatus *FaceDetectorYN_SetScoreThreshold_Async(FaceDetectorYN self, float score_threshold, CvCallback_1 callback) { + BEGIN_WRAP + (*self.ptr)->setScoreThreshold(score_threshold); + callback(new int(0)); + END_WRAP +} + +CvStatus *FaceDetectorYN_GetScoreThreshold_Async(FaceDetectorYN self, CvCallback_1 callback) { + BEGIN_WRAP + float score_threshold = (*self.ptr)->getScoreThreshold(); + callback(new float(score_threshold)); + END_WRAP +} + +CvStatus *FaceDetectorYN_SetNMSThreshold_Async(FaceDetectorYN self, float nms_threshold, CvCallback_1 callback) { + BEGIN_WRAP + (*self.ptr)->setNMSThreshold(nms_threshold); + callback(new int(0)); + END_WRAP +} + +CvStatus *FaceDetectorYN_GetNMSThreshold_Async(FaceDetectorYN self, CvCallback_1 callback) { + BEGIN_WRAP + float nms_threshold = (*self.ptr)->getNMSThreshold(); + callback(new float(nms_threshold)); + END_WRAP +} + +CvStatus *FaceDetectorYN_SetTopK_Async(FaceDetectorYN self, int top_k, CvCallback_1 callback) { + BEGIN_WRAP + (*self.ptr)->setTopK(top_k); + callback(new int(0)); + END_WRAP +} + +CvStatus *FaceDetectorYN_GetTopK_Async(FaceDetectorYN self, CvCallback_1 callback) { + BEGIN_WRAP + int top_k = (*self.ptr)->getTopK(); + callback(new int(top_k)); + END_WRAP +} + +// Asynchronous functions for FaceRecognizerSF +CvStatus *FaceRecognizerSF_New_Async(const char *model, const char *config, int backend_id, int target_id, CvCallback_1 callback) { + BEGIN_WRAP + callback(new FaceRecognizerSF{new cv::Ptr(cv::FaceRecognizerSF::create(model, config, backend_id, target_id))}); + END_WRAP +} + +CvStatus *FaceRecognizerSF_AlignCrop_Async(FaceRecognizerSF self, Mat src_img, Mat face_box, CvCallback_1 callback) { + BEGIN_WRAP + cv::Mat aligned_img; + (*self.ptr)->alignCrop(*src_img.ptr, *face_box.ptr, aligned_img); + callback(new Mat{new cv::Mat(aligned_img)}); + END_WRAP +} + +CvStatus *FaceRecognizerSF_Feature_Async(FaceRecognizerSF self, Mat aligned_img, bool clone, CvCallback_1 callback) { + BEGIN_WRAP + cv::Mat face_feature; + (*self.ptr)->feature(*aligned_img.ptr, face_feature); + if (clone) { + callback(new Mat{new cv::Mat(face_feature.clone())}); + } else { + callback(new Mat{new cv::Mat(face_feature)}); + } + END_WRAP +} + +CvStatus *FaceRecognizerSF_Match_Async(FaceRecognizerSF self, Mat face_feature1, Mat face_feature2, int dis_type, CvCallback_1 callback) { + BEGIN_WRAP + double distance = (*self.ptr)->match(*face_feature1.ptr, *face_feature2.ptr, dis_type); + callback(new double(distance)); + END_WRAP +} diff --git a/src/objdetect/objdetect_async.h b/src/objdetect/objdetect_async.h new file mode 100644 index 00000000..54581150 --- /dev/null +++ b/src/objdetect/objdetect_async.h @@ -0,0 +1,75 @@ +/* Created by Rainyl. Licensed: Apache 2.0 license. Copyright (c) 2024 Rainyl. */ +#ifndef CVD_OBJDETECT_ASYNC_H_ +#define CVD_OBJDETECT_ASYNC_H_ + +#include "core/types.h" +#include + +#ifdef __cplusplus +#include + +extern "C" { +#endif +#ifdef __cplusplus +// Define types for the C++ classes used +CVD_TYPEDEF(cv::CascadeClassifier, CascadeClassifier); +CVD_TYPEDEF(cv::HOGDescriptor, HOGDescriptor); +CVD_TYPEDEF(cv::QRCodeDetector, QRCodeDetector); +CVD_TYPEDEF(cv::Ptr, FaceDetectorYN); +CVD_TYPEDEF(cv::Ptr, FaceRecognizerSF); +#else +// Define types for the C-compatible interface +CVD_TYPEDEF(void, CascadeClassifier); +CVD_TYPEDEF(void, HOGDescriptor); +CVD_TYPEDEF(void, QRCodeDetector); +CVD_TYPEDEF(void *, FaceDetectorYN); +CVD_TYPEDEF(void *, FaceRecognizerSF); +#endif +// CascadeClassifier +CvStatus *CascadeClassifier_DetectMultiScale_Async(CascadeClassifier self, Mat img, CvCallback_1 callback); +CvStatus *CascadeClassifier_DetectMultiScaleWithParams_Async(CascadeClassifier self, Mat img, double scale, int minNeighbors, int flags, Size minSize, Size maxSize, CvCallback_1 callback); +CvStatus *CascadeClassifier_DetectMultiScale2_Async(CascadeClassifier self, Mat img, double scaleFactor, int minNeighbors, int flags, Size minSize, Size maxSize, CvCallback_2 callback); +CvStatus *CascadeClassifier_DetectMultiScale3_Async(CascadeClassifier self, Mat img, double scaleFactor, int minNeighbors, int flags, Size minSize, Size maxSize, bool outputRejectLevels, CvCallback_3 callback); +CvStatus *CascadeClassifier_Empty_Async(CascadeClassifier self, CvCallback_1 callback); +CvStatus *CascadeClassifier_getFeatureType_Async(CascadeClassifier self, CvCallback_1 callback); +CvStatus *CascadeClassifier_getOriginalWindowSize_Async(CascadeClassifier self, CvCallback_1 callback); +CvStatus *CascadeClassifier_isOldFormatCascade_Async(CascadeClassifier self, CvCallback_1 callback); + +// HOGDescriptor +CvStatus *HOGDescriptor_Detect_Async(HOGDescriptor self, Mat img, double hitThresh, Size winStride, Size padding, CvCallback_1 callback); +CvStatus *HOGDescriptor_Detect2_Async(HOGDescriptor self, Mat img, double hitThresh, Size winStride, Size padding, CvCallback_1 callback); +CvStatus *HOGDescriptor_DetectMultiScale_Async(HOGDescriptor self, Mat img, CvCallback_1 callback); +CvStatus *HOGDescriptor_DetectMultiScaleWithParams_Async(HOGDescriptor self, Mat img, double hitThresh, Size winStride, Size padding, double scale, double finalThreshold, bool useMeanshiftGrouping, CvCallback_1 callback); +CvStatus *HOGDescriptor_Compute_Async(HOGDescriptor self, Mat img, Size winStride, Size padding, CvCallback_1 callback); +CvStatus *HOGDescriptor_computeGradient_Async(HOGDescriptor self, Mat img, Mat grad, Mat angleOfs, Size paddingTL, Size paddingBR, CvCallback_1 callback); +CvStatus *HOGDescriptor_getDaimlerPeopleDetector_Async(CvCallback_1 callback); +CvStatus *HOGDescriptor_getDescriptorSize_Async(HOGDescriptor self, CvCallback_1 callback); +CvStatus *HOGDescriptor_getWinSigma_Async(HOGDescriptor self, CvCallback_1 callback); +CvStatus *HOGDescriptor_groupRectangles_Async(HOGDescriptor self, VecRect rectList, VecDouble weights, int groupThreshold, double eps, CvCallback_1 callback); +CvStatus *GroupRectangles_Async(VecRect rects, int groupThreshold, double eps, CvCallback_1 callback); + +// QRCodeDetector +CvStatus *QRCodeDetector_DetectAndDecode_Async(QRCodeDetector self, Mat input, CvCallback_3 callback); +CvStatus *QRCodeDetector_Detect_Async(QRCodeDetector self, Mat input, CvCallback_1 callback); +CvStatus *QRCodeDetector_Decode_Async(QRCodeDetector self, Mat input, CvCallback_2 callback); +CvStatus *QRCodeDetector_decodeCurved_Async(QRCodeDetector self, Mat img, VecPoint points, CvCallback_2 callback); +CvStatus *QRCodeDetector_detectAndDecodeCurved_Async(QRCodeDetector self, Mat img, CvCallback_3 callback); +CvStatus *QRCodeDetector_DetectMulti_Async(QRCodeDetector self, Mat input, CvCallback_1 callback); +CvStatus *QRCodeDetector_DetectAndDecodeMulti_Async(QRCodeDetector self, Mat input, CvCallback_4 callback); +CvStatus *QRCodeDetector_setEpsX_Async(QRCodeDetector self, double epsX, CvCallback_1 callback); +CvStatus *QRCodeDetector_setEpsY_Async(QRCodeDetector self, double epsY, CvCallback_1 callback); +CvStatus *QRCodeDetector_setUseAlignmentMarkers_Async(QRCodeDetector self, bool useAlignmentMarkers, CvCallback_1 callback); + +// FaceDetectorYN +CvStatus *FaceDetectorYN_Detect_Async(FaceDetectorYN self, Mat img, CvCallback_1 callback); + +// FaceRecognizerSF +CvStatus *FaceRecognizerSF_AlignCrop_Async(FaceRecognizerSF self, Mat src_img, Mat face_box, CvCallback_1 callback); +CvStatus *FaceRecognizerSF_Feature_Async(FaceRecognizerSF self, Mat aligned_img, bool clone, CvCallback_1 callback); +CvStatus *FaceRecognizerSF_Match_Async(FaceRecognizerSF self, Mat face_feature1, Mat face_feature2, int dis_type, CvCallback_1 callback); + +#ifdef __cplusplus +} +#endif + +#endif // CVD_OBJDETECT_ASYNC_H_ From 93c0c0d3dc19b4eb9772305b222c0c8505d0eed1 Mon Sep 17 00:00:00 2001 From: Abdelaziz Mahdy Date: Tue, 25 Jun 2024 18:56:57 +0300 Subject: [PATCH 02/21] added missing headers --- lib/src/opencv.g.dart | 478 ++++++++++++++++++++++++++++-- src/objdetect/objdetect_async.cpp | 8 +- src/objdetect/objdetect_async.h | 39 ++- 3 files changed, 491 insertions(+), 34 deletions(-) diff --git a/lib/src/opencv.g.dart b/lib/src/opencv.g.dart index 323ea83d..52dc0180 100644 --- a/lib/src/opencv.g.dart +++ b/lib/src/opencv.g.dart @@ -3000,6 +3000,29 @@ class CvNative { ffi.Pointer Function( CascadeClassifier, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer CascadeClassifier_Load_Async( + CascadeClassifier self, + ffi.Pointer name, + CvCallback_1 callback, + ) { + return _CascadeClassifier_Load_Async( + self, + name, + callback, + ); + } + + late final _CascadeClassifier_Load_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + CascadeClassifier, + ffi.Pointer, + CvCallback_1)>>('CascadeClassifier_Load_Async'); + late final _CascadeClassifier_Load_Async = + _CascadeClassifier_Load_AsyncPtr.asFunction< + ffi.Pointer Function( + CascadeClassifier, ffi.Pointer, CvCallback_1)>(); + ffi.Pointer CascadeClassifier_New( ffi.Pointer rval, ) { @@ -3035,6 +3058,39 @@ class CvNative { ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer CascadeClassifier_NewFromFile_Async( + ffi.Pointer filename, + CvCallback_1 callback, + ) { + return _CascadeClassifier_NewFromFile_Async( + filename, + callback, + ); + } + + late final _CascadeClassifier_NewFromFile_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + CvCallback_1)>>('CascadeClassifier_NewFromFile_Async'); + late final _CascadeClassifier_NewFromFile_Async = + _CascadeClassifier_NewFromFile_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, CvCallback_1)>(); + + ffi.Pointer CascadeClassifier_New_Async( + CvCallback_1 callback, + ) { + return _CascadeClassifier_New_Async( + callback, + ); + } + + late final _CascadeClassifier_New_AsyncPtr = + _lookup Function(CvCallback_1)>>( + 'CascadeClassifier_New_Async'); + late final _CascadeClassifier_New_Async = _CascadeClassifier_New_AsyncPtr + .asFunction Function(CvCallback_1)>(); + ffi.Pointer CascadeClassifier_getFeatureType( CascadeClassifier self, ffi.Pointer rval, @@ -4065,6 +4121,24 @@ class CvNative { _FaceDetectorYN_GetInputSizePtr.asFunction< ffi.Pointer Function(FaceDetectorYN, ffi.Pointer)>(); + ffi.Pointer FaceDetectorYN_GetInputSize_Async( + FaceDetectorYN self, + CvCallback_1 callback, + ) { + return _FaceDetectorYN_GetInputSize_Async( + self, + callback, + ); + } + + late final _FaceDetectorYN_GetInputSize_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, + CvCallback_1)>>('FaceDetectorYN_GetInputSize_Async'); + late final _FaceDetectorYN_GetInputSize_Async = + _FaceDetectorYN_GetInputSize_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); + ffi.Pointer FaceDetectorYN_GetNMSThreshold( FaceDetectorYN self, ffi.Pointer nms_threshold, @@ -4084,6 +4158,24 @@ class CvNative { ffi.Pointer Function( FaceDetectorYN, ffi.Pointer)>(); + ffi.Pointer FaceDetectorYN_GetNMSThreshold_Async( + FaceDetectorYN self, + CvCallback_1 callback, + ) { + return _FaceDetectorYN_GetNMSThreshold_Async( + self, + callback, + ); + } + + late final _FaceDetectorYN_GetNMSThreshold_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, + CvCallback_1)>>('FaceDetectorYN_GetNMSThreshold_Async'); + late final _FaceDetectorYN_GetNMSThreshold_Async = + _FaceDetectorYN_GetNMSThreshold_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); + ffi.Pointer FaceDetectorYN_GetScoreThreshold( FaceDetectorYN self, ffi.Pointer score_threshold, @@ -4103,6 +4195,24 @@ class CvNative { ffi.Pointer Function( FaceDetectorYN, ffi.Pointer)>(); + ffi.Pointer FaceDetectorYN_GetScoreThreshold_Async( + FaceDetectorYN self, + CvCallback_1 callback, + ) { + return _FaceDetectorYN_GetScoreThreshold_Async( + self, + callback, + ); + } + + late final _FaceDetectorYN_GetScoreThreshold_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, + CvCallback_1)>>('FaceDetectorYN_GetScoreThreshold_Async'); + late final _FaceDetectorYN_GetScoreThreshold_Async = + _FaceDetectorYN_GetScoreThreshold_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); + ffi.Pointer FaceDetectorYN_GetTopK( FaceDetectorYN self, ffi.Pointer top_k, @@ -4120,6 +4230,24 @@ class CvNative { late final _FaceDetectorYN_GetTopK = _FaceDetectorYN_GetTopKPtr.asFunction< ffi.Pointer Function(FaceDetectorYN, ffi.Pointer)>(); + ffi.Pointer FaceDetectorYN_GetTopK_Async( + FaceDetectorYN self, + CvCallback_1 callback, + ) { + return _FaceDetectorYN_GetTopK_Async( + self, + callback, + ); + } + + late final _FaceDetectorYN_GetTopK_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + FaceDetectorYN, CvCallback_1)>>('FaceDetectorYN_GetTopK_Async'); + late final _FaceDetectorYN_GetTopK_Async = + _FaceDetectorYN_GetTopK_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); + ffi.Pointer FaceDetectorYN_New( ffi.Pointer model, ffi.Pointer config, @@ -4221,6 +4349,99 @@ class CvNative { int, ffi.Pointer)>(); + ffi.Pointer FaceDetectorYN_NewFromBuffer_Async( + ffi.Pointer framework, + VecUChar buffer, + VecUChar buffer_config, + Size input_size, + double score_threshold, + double nms_threshold, + int top_k, + int backend_id, + int target_id, + CvCallback_1 callback, + ) { + return _FaceDetectorYN_NewFromBuffer_Async( + framework, + buffer, + buffer_config, + input_size, + score_threshold, + nms_threshold, + top_k, + backend_id, + target_id, + callback, + ); + } + + late final _FaceDetectorYN_NewFromBuffer_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + VecUChar, + VecUChar, + Size, + ffi.Float, + ffi.Float, + ffi.Int, + ffi.Int, + ffi.Int, + CvCallback_1)>>('FaceDetectorYN_NewFromBuffer_Async'); + late final _FaceDetectorYN_NewFromBuffer_Async = + _FaceDetectorYN_NewFromBuffer_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, VecUChar, + VecUChar, Size, double, double, int, int, int, CvCallback_1)>(); + + ffi.Pointer FaceDetectorYN_New_Async( + ffi.Pointer model, + ffi.Pointer config, + Size input_size, + double score_threshold, + double nms_threshold, + int top_k, + int backend_id, + int target_id, + CvCallback_1 callback, + ) { + return _FaceDetectorYN_New_Async( + model, + config, + input_size, + score_threshold, + nms_threshold, + top_k, + backend_id, + target_id, + callback, + ); + } + + late final _FaceDetectorYN_New_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + Size, + ffi.Float, + ffi.Float, + ffi.Int, + ffi.Int, + ffi.Int, + CvCallback_1)>>('FaceDetectorYN_New_Async'); + late final _FaceDetectorYN_New_Async = + _FaceDetectorYN_New_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + Size, + double, + double, + int, + int, + int, + CvCallback_1)>(); + ffi.Pointer FaceDetectorYN_SetInputSize( FaceDetectorYN self, Size input_size, @@ -4238,6 +4459,26 @@ class CvNative { late final _FaceDetectorYN_SetInputSize = _FaceDetectorYN_SetInputSizePtr .asFunction Function(FaceDetectorYN, Size)>(); + ffi.Pointer FaceDetectorYN_SetInputSize_Async( + FaceDetectorYN self, + Size input_size, + CvCallback_1 callback, + ) { + return _FaceDetectorYN_SetInputSize_Async( + self, + input_size, + callback, + ); + } + + late final _FaceDetectorYN_SetInputSize_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, Size, + CvCallback_1)>>('FaceDetectorYN_SetInputSize_Async'); + late final _FaceDetectorYN_SetInputSize_Async = + _FaceDetectorYN_SetInputSize_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, Size, CvCallback_1)>(); + ffi.Pointer FaceDetectorYN_SetNMSThreshold( FaceDetectorYN self, double nms_threshold, @@ -4256,6 +4497,27 @@ class CvNative { _FaceDetectorYN_SetNMSThresholdPtr.asFunction< ffi.Pointer Function(FaceDetectorYN, double)>(); + ffi.Pointer FaceDetectorYN_SetNMSThreshold_Async( + FaceDetectorYN self, + double nms_threshold, + CvCallback_1 callback, + ) { + return _FaceDetectorYN_SetNMSThreshold_Async( + self, + nms_threshold, + callback, + ); + } + + late final _FaceDetectorYN_SetNMSThreshold_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, ffi.Float, + CvCallback_1)>>('FaceDetectorYN_SetNMSThreshold_Async'); + late final _FaceDetectorYN_SetNMSThreshold_Async = + _FaceDetectorYN_SetNMSThreshold_AsyncPtr.asFunction< + ffi.Pointer Function( + FaceDetectorYN, double, CvCallback_1)>(); + ffi.Pointer FaceDetectorYN_SetScoreThreshold( FaceDetectorYN self, double score_threshold, @@ -4274,6 +4536,27 @@ class CvNative { _FaceDetectorYN_SetScoreThresholdPtr.asFunction< ffi.Pointer Function(FaceDetectorYN, double)>(); + ffi.Pointer FaceDetectorYN_SetScoreThreshold_Async( + FaceDetectorYN self, + double score_threshold, + CvCallback_1 callback, + ) { + return _FaceDetectorYN_SetScoreThreshold_Async( + self, + score_threshold, + callback, + ); + } + + late final _FaceDetectorYN_SetScoreThreshold_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, ffi.Float, + CvCallback_1)>>('FaceDetectorYN_SetScoreThreshold_Async'); + late final _FaceDetectorYN_SetScoreThreshold_Async = + _FaceDetectorYN_SetScoreThreshold_AsyncPtr.asFunction< + ffi.Pointer Function( + FaceDetectorYN, double, CvCallback_1)>(); + ffi.Pointer FaceDetectorYN_SetTopK( FaceDetectorYN self, int top_k, @@ -4291,6 +4574,26 @@ class CvNative { late final _FaceDetectorYN_SetTopK = _FaceDetectorYN_SetTopKPtr.asFunction< ffi.Pointer Function(FaceDetectorYN, int)>(); + ffi.Pointer FaceDetectorYN_SetTopK_Async( + FaceDetectorYN self, + int top_k, + CvCallback_1 callback, + ) { + return _FaceDetectorYN_SetTopK_Async( + self, + top_k, + callback, + ); + } + + late final _FaceDetectorYN_SetTopK_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, ffi.Int, + CvCallback_1)>>('FaceDetectorYN_SetTopK_Async'); + late final _FaceDetectorYN_SetTopK_Async = + _FaceDetectorYN_SetTopK_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, int, CvCallback_1)>(); + ffi.Pointer FaceRecognizerSF_AlignCrop( FaceRecognizerSF self, Mat src_img, @@ -4474,6 +4777,35 @@ class CvNative { ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer)>(); + ffi.Pointer FaceRecognizerSF_New_Async( + ffi.Pointer model, + ffi.Pointer config, + int backend_id, + int target_id, + CvCallback_1 callback, + ) { + return _FaceRecognizerSF_New_Async( + model, + config, + backend_id, + target_id, + callback, + ); + } + + late final _FaceRecognizerSF_New_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Int, + CvCallback_1)>>('FaceRecognizerSF_New_Async'); + late final _FaceRecognizerSF_New_Async = + _FaceRecognizerSF_New_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, int, CvCallback_1)>(); + void FastFeatureDetector_Close( FastFeatureDetectorPtr f, ) { @@ -5878,7 +6210,7 @@ class CvNative { Mat img, Size winStride, Size padding, - CvCallback_1 callback, + CvCallback_2 callback, ) { return _HOGDescriptor_Compute_Async( self, @@ -5892,11 +6224,11 @@ class CvNative { late final _HOGDescriptor_Compute_AsyncPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function(HOGDescriptor, Mat, Size, Size, - CvCallback_1)>>('HOGDescriptor_Compute_Async'); + CvCallback_2)>>('HOGDescriptor_Compute_Async'); late final _HOGDescriptor_Compute_Async = _HOGDescriptor_Compute_AsyncPtr.asFunction< ffi.Pointer Function( - HOGDescriptor, Mat, Size, Size, CvCallback_1)>(); + HOGDescriptor, Mat, Size, Size, CvCallback_2)>(); ffi.Pointer HOGDescriptor_Detect( HOGDescriptor self, @@ -5975,7 +6307,7 @@ class CvNative { double hitThresh, Size winStride, Size padding, - CvCallback_1 callback, + CvCallback_2 callback, ) { return _HOGDescriptor_Detect2_Async( self, @@ -5990,11 +6322,11 @@ class CvNative { late final _HOGDescriptor_Detect2_AsyncPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function(HOGDescriptor, Mat, ffi.Double, Size, - Size, CvCallback_1)>>('HOGDescriptor_Detect2_Async'); + Size, CvCallback_2)>>('HOGDescriptor_Detect2_Async'); late final _HOGDescriptor_Detect2_Async = _HOGDescriptor_Detect2_AsyncPtr.asFunction< ffi.Pointer Function( - HOGDescriptor, Mat, double, Size, Size, CvCallback_1)>(); + HOGDescriptor, Mat, double, Size, Size, CvCallback_2)>(); ffi.Pointer HOGDescriptor_DetectMultiScale( HOGDescriptor self, @@ -6126,7 +6458,7 @@ class CvNative { double hitThresh, Size winStride, Size padding, - CvCallback_1 callback, + CvCallback_3 callback, ) { return _HOGDescriptor_Detect_Async( self, @@ -6141,11 +6473,11 @@ class CvNative { late final _HOGDescriptor_Detect_AsyncPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function(HOGDescriptor, Mat, ffi.Double, Size, - Size, CvCallback_1)>>('HOGDescriptor_Detect_Async'); + Size, CvCallback_3)>>('HOGDescriptor_Detect_Async'); late final _HOGDescriptor_Detect_Async = _HOGDescriptor_Detect_AsyncPtr.asFunction< ffi.Pointer Function( - HOGDescriptor, Mat, double, Size, Size, CvCallback_1)>(); + HOGDescriptor, Mat, double, Size, Size, CvCallback_3)>(); ffi.Pointer HOGDescriptor_Load( HOGDescriptor self, @@ -6167,6 +6499,27 @@ class CvNative { ffi.Pointer Function( HOGDescriptor, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer HOGDescriptor_Load_Async( + HOGDescriptor self, + ffi.Pointer name, + CvCallback_1 callback, + ) { + return _HOGDescriptor_Load_Async( + self, + name, + callback, + ); + } + + late final _HOGDescriptor_Load_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, ffi.Pointer, + CvCallback_1)>>('HOGDescriptor_Load_Async'); + late final _HOGDescriptor_Load_Async = + _HOGDescriptor_Load_AsyncPtr.asFunction< + ffi.Pointer Function( + HOGDescriptor, ffi.Pointer, CvCallback_1)>(); + ffi.Pointer HOGDescriptor_New( ffi.Pointer rval, ) { @@ -6201,6 +6554,39 @@ class CvNative { ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer HOGDescriptor_NewFromFile_Async( + ffi.Pointer filename, + CvCallback_1 callback, + ) { + return _HOGDescriptor_NewFromFile_Async( + filename, + callback, + ); + } + + late final _HOGDescriptor_NewFromFile_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + CvCallback_1)>>('HOGDescriptor_NewFromFile_Async'); + late final _HOGDescriptor_NewFromFile_Async = + _HOGDescriptor_NewFromFile_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, CvCallback_1)>(); + + ffi.Pointer HOGDescriptor_New_Async( + CvCallback_1 callback, + ) { + return _HOGDescriptor_New_Async( + callback, + ); + } + + late final _HOGDescriptor_New_AsyncPtr = + _lookup Function(CvCallback_1)>>( + 'HOGDescriptor_New_Async'); + late final _HOGDescriptor_New_Async = _HOGDescriptor_New_AsyncPtr.asFunction< + ffi.Pointer Function(CvCallback_1)>(); + ffi.Pointer HOGDescriptor_SetSVMDetector( HOGDescriptor self, VecFloat det, @@ -6218,6 +6604,27 @@ class CvNative { late final _HOGDescriptor_SetSVMDetector = _HOGDescriptor_SetSVMDetectorPtr .asFunction Function(HOGDescriptor, VecFloat)>(); + ffi.Pointer HOGDescriptor_SetSVMDetector_Async( + HOGDescriptor self, + VecFloat det, + CvCallback_1 callback, + ) { + return _HOGDescriptor_SetSVMDetector_Async( + self, + det, + callback, + ); + } + + late final _HOGDescriptor_SetSVMDetector_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, VecFloat, + CvCallback_1)>>('HOGDescriptor_SetSVMDetector_Async'); + late final _HOGDescriptor_SetSVMDetector_Async = + _HOGDescriptor_SetSVMDetector_AsyncPtr.asFunction< + ffi.Pointer Function( + HOGDescriptor, VecFloat, CvCallback_1)>(); + ffi.Pointer HOGDescriptor_computeGradient( HOGDescriptor self, Mat img, @@ -6252,7 +6659,7 @@ class CvNative { Mat angleOfs, Size paddingTL, Size paddingBR, - CvCallback_1 callback, + CvCallback_0 callback, ) { return _HOGDescriptor_computeGradient_Async( self, @@ -6268,11 +6675,11 @@ class CvNative { late final _HOGDescriptor_computeGradient_AsyncPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function(HOGDescriptor, Mat, Mat, Mat, Size, - Size, CvCallback_1)>>('HOGDescriptor_computeGradient_Async'); + Size, CvCallback_0)>>('HOGDescriptor_computeGradient_Async'); late final _HOGDescriptor_computeGradient_Async = _HOGDescriptor_computeGradient_AsyncPtr.asFunction< ffi.Pointer Function( - HOGDescriptor, Mat, Mat, Mat, Size, Size, CvCallback_1)>(); + HOGDescriptor, Mat, Mat, Mat, Size, Size, CvCallback_0)>(); ffi.Pointer HOGDescriptor_getDaimlerPeopleDetector( ffi.Pointer rval, @@ -6451,6 +6858,21 @@ class CvNative { late final _HOG_GetDefaultPeopleDetector = _HOG_GetDefaultPeopleDetectorPtr .asFunction Function(ffi.Pointer)>(); + ffi.Pointer HOG_GetDefaultPeopleDetector_Async( + CvCallback_1 callback, + ) { + return _HOG_GetDefaultPeopleDetector_Async( + callback, + ); + } + + late final _HOG_GetDefaultPeopleDetector_AsyncPtr = + _lookup Function(CvCallback_1)>>( + 'HOG_GetDefaultPeopleDetector_Async'); + late final _HOG_GetDefaultPeopleDetector_Async = + _HOG_GetDefaultPeopleDetector_AsyncPtr.asFunction< + ffi.Pointer Function(CvCallback_1)>(); + ffi.Pointer HoughCircles( Mat src, Mat circles, @@ -14453,7 +14875,7 @@ class CvNative { ffi.Pointer QRCodeDetector_Decode_Async( QRCodeDetector self, Mat input, - CvCallback_2 callback, + CvCallback_3 callback, ) { return _QRCodeDetector_Decode_Async( self, @@ -14465,10 +14887,10 @@ class CvNative { late final _QRCodeDetector_Decode_AsyncPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function(QRCodeDetector, Mat, - CvCallback_2)>>('QRCodeDetector_Decode_Async'); + CvCallback_3)>>('QRCodeDetector_Decode_Async'); late final _QRCodeDetector_Decode_Async = _QRCodeDetector_Decode_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_2)>(); + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_3)>(); ffi.Pointer QRCodeDetector_Detect( QRCodeDetector self, @@ -14635,7 +15057,7 @@ class CvNative { ffi.Pointer QRCodeDetector_DetectMulti_Async( QRCodeDetector self, Mat input, - CvCallback_1 callback, + CvCallback_2 callback, ) { return _QRCodeDetector_DetectMulti_Async( self, @@ -14647,15 +15069,15 @@ class CvNative { late final _QRCodeDetector_DetectMulti_AsyncPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function(QRCodeDetector, Mat, - CvCallback_1)>>('QRCodeDetector_DetectMulti_Async'); + CvCallback_2)>>('QRCodeDetector_DetectMulti_Async'); late final _QRCodeDetector_DetectMulti_Async = _QRCodeDetector_DetectMulti_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_1)>(); + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_2)>(); ffi.Pointer QRCodeDetector_Detect_Async( QRCodeDetector self, Mat input, - CvCallback_1 callback, + CvCallback_2 callback, ) { return _QRCodeDetector_Detect_Async( self, @@ -14667,10 +15089,10 @@ class CvNative { late final _QRCodeDetector_Detect_AsyncPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function(QRCodeDetector, Mat, - CvCallback_1)>>('QRCodeDetector_Detect_Async'); + CvCallback_2)>>('QRCodeDetector_Detect_Async'); late final _QRCodeDetector_Detect_Async = _QRCodeDetector_Detect_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_1)>(); + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_2)>(); ffi.Pointer QRCodeDetector_New( ffi.Pointer rval, @@ -14687,6 +15109,20 @@ class CvNative { late final _QRCodeDetector_New = _QRCodeDetector_NewPtr.asFunction< ffi.Pointer Function(ffi.Pointer)>(); + ffi.Pointer QRCodeDetector_New_Async( + CvCallback_1 callback, + ) { + return _QRCodeDetector_New_Async( + callback, + ); + } + + late final _QRCodeDetector_New_AsyncPtr = + _lookup Function(CvCallback_1)>>( + 'QRCodeDetector_New_Async'); + late final _QRCodeDetector_New_Async = _QRCodeDetector_New_AsyncPtr + .asFunction Function(CvCallback_1)>(); + ffi.Pointer QRCodeDetector_decodeCurved( QRCodeDetector self, Mat img, diff --git a/src/objdetect/objdetect_async.cpp b/src/objdetect/objdetect_async.cpp index 89aa1aa3..7de43b95 100644 --- a/src/objdetect/objdetect_async.cpp +++ b/src/objdetect/objdetect_async.cpp @@ -156,10 +156,10 @@ CvStatus *HOGDescriptor_Compute_Async(HOGDescriptor self, Mat img, Size winStrid END_WRAP } -CvStatus *HOGDescriptor_computeGradient_Async(HOGDescriptor self, Mat img, Mat grad, Mat angleOfs, Size paddingTL, Size paddingBR, CvCallback_1 callback) { +CvStatus *HOGDescriptor_computeGradient_Async(HOGDescriptor self, Mat img, Mat grad, Mat angleOfs, Size paddingTL, Size paddingBR, CvCallback_0 callback) { BEGIN_WRAP self.ptr->computeGradient(*img.ptr, *grad.ptr, *angleOfs.ptr, cv::Size(paddingTL.width, paddingTL.height), cv::Size(paddingBR.width, paddingBR.height)); - callback(grad, angleOfs); + callback(); END_WRAP } @@ -234,7 +234,7 @@ CvStatus *QRCodeDetector_Detect_Async(QRCodeDetector self, Mat input, CvCallback END_WRAP } -CvStatus *QRCodeDetector_Decode_Async(QRCodeDetector self, Mat input, CvCallback_2 callback) { +CvStatus *QRCodeDetector_Decode_Async(QRCodeDetector self, Mat input, CvCallback_3 callback) { BEGIN_WRAP std::vector _points; cv::Mat straight_qrcode; @@ -307,7 +307,7 @@ CvStatus *QRCodeDetector_setUseAlignmentMarkers_Async(QRCodeDetector self, bool END_WRAP } -// Asynchronous function for FaceDetectorYN +// Asynchronous functions for FaceDetectorYN CvStatus *FaceDetectorYN_New_Async(const char *model, const char *config, Size input_size, float score_threshold, float nms_threshold, int top_k, int backend_id, int target_id, CvCallback_1 callback) { BEGIN_WRAP callback(new FaceDetectorYN{new cv::Ptr(cv::FaceDetectorYN::create(model, config, cv::Size(input_size.width, input_size.height), score_threshold, nms_threshold, top_k, backend_id, target_id))}); diff --git a/src/objdetect/objdetect_async.h b/src/objdetect/objdetect_async.h index 54581150..3d7bd848 100644 --- a/src/objdetect/objdetect_async.h +++ b/src/objdetect/objdetect_async.h @@ -1,4 +1,4 @@ -/* Created by Rainyl. Licensed: Apache 2.0 license. Copyright (c) 2024 Rainyl. */ +/* Created by Rainyl. Licensed: Apache 2.0 license. Copyright (c) 2024 Rainyl. */ #ifndef CVD_OBJDETECT_ASYNC_H_ #define CVD_OBJDETECT_ASYNC_H_ @@ -7,9 +7,9 @@ #ifdef __cplusplus #include - extern "C" { #endif + #ifdef __cplusplus // Define types for the C++ classes used CVD_TYPEDEF(cv::CascadeClassifier, CascadeClassifier); @@ -25,7 +25,11 @@ CVD_TYPEDEF(void, QRCodeDetector); CVD_TYPEDEF(void *, FaceDetectorYN); CVD_TYPEDEF(void *, FaceRecognizerSF); #endif + // CascadeClassifier +CvStatus *CascadeClassifier_New_Async(CvCallback_1 callback); +CvStatus *CascadeClassifier_NewFromFile_Async(const char *filename, CvCallback_1 callback); +CvStatus *CascadeClassifier_Load_Async(CascadeClassifier self, const char *name, CvCallback_1 callback); CvStatus *CascadeClassifier_DetectMultiScale_Async(CascadeClassifier self, Mat img, CvCallback_1 callback); CvStatus *CascadeClassifier_DetectMultiScaleWithParams_Async(CascadeClassifier self, Mat img, double scale, int minNeighbors, int flags, Size minSize, Size maxSize, CvCallback_1 callback); CvStatus *CascadeClassifier_DetectMultiScale2_Async(CascadeClassifier self, Mat img, double scaleFactor, int minNeighbors, int flags, Size minSize, Size maxSize, CvCallback_2 callback); @@ -36,12 +40,17 @@ CvStatus *CascadeClassifier_getOriginalWindowSize_Async(CascadeClassifier self, CvStatus *CascadeClassifier_isOldFormatCascade_Async(CascadeClassifier self, CvCallback_1 callback); // HOGDescriptor -CvStatus *HOGDescriptor_Detect_Async(HOGDescriptor self, Mat img, double hitThresh, Size winStride, Size padding, CvCallback_1 callback); -CvStatus *HOGDescriptor_Detect2_Async(HOGDescriptor self, Mat img, double hitThresh, Size winStride, Size padding, CvCallback_1 callback); +CvStatus *HOGDescriptor_New_Async(CvCallback_1 callback); +CvStatus *HOGDescriptor_NewFromFile_Async(const char *filename, CvCallback_1 callback); +CvStatus *HOGDescriptor_Load_Async(HOGDescriptor self, const char *name, CvCallback_1 callback); +CvStatus *HOGDescriptor_Detect_Async(HOGDescriptor self, Mat img, double hitThresh, Size winStride, Size padding, CvCallback_3 callback); +CvStatus *HOGDescriptor_Detect2_Async(HOGDescriptor self, Mat img, double hitThresh, Size winStride, Size padding, CvCallback_2 callback); CvStatus *HOGDescriptor_DetectMultiScale_Async(HOGDescriptor self, Mat img, CvCallback_1 callback); CvStatus *HOGDescriptor_DetectMultiScaleWithParams_Async(HOGDescriptor self, Mat img, double hitThresh, Size winStride, Size padding, double scale, double finalThreshold, bool useMeanshiftGrouping, CvCallback_1 callback); -CvStatus *HOGDescriptor_Compute_Async(HOGDescriptor self, Mat img, Size winStride, Size padding, CvCallback_1 callback); -CvStatus *HOGDescriptor_computeGradient_Async(HOGDescriptor self, Mat img, Mat grad, Mat angleOfs, Size paddingTL, Size paddingBR, CvCallback_1 callback); +CvStatus *HOGDescriptor_Compute_Async(HOGDescriptor self, Mat img, Size winStride, Size padding, CvCallback_2 callback); +CvStatus *HOGDescriptor_computeGradient_Async(HOGDescriptor self, Mat img, Mat grad, Mat angleOfs, Size paddingTL, Size paddingBR, CvCallback_0 callback); +CvStatus *HOG_GetDefaultPeopleDetector_Async(CvCallback_1 callback); +CvStatus *HOGDescriptor_SetSVMDetector_Async(HOGDescriptor self, VecFloat det, CvCallback_1 callback); CvStatus *HOGDescriptor_getDaimlerPeopleDetector_Async(CvCallback_1 callback); CvStatus *HOGDescriptor_getDescriptorSize_Async(HOGDescriptor self, CvCallback_1 callback); CvStatus *HOGDescriptor_getWinSigma_Async(HOGDescriptor self, CvCallback_1 callback); @@ -49,21 +58,33 @@ CvStatus *HOGDescriptor_groupRectangles_Async(HOGDescriptor self, VecRect rectLi CvStatus *GroupRectangles_Async(VecRect rects, int groupThreshold, double eps, CvCallback_1 callback); // QRCodeDetector +CvStatus *QRCodeDetector_New_Async(CvCallback_1 callback); CvStatus *QRCodeDetector_DetectAndDecode_Async(QRCodeDetector self, Mat input, CvCallback_3 callback); -CvStatus *QRCodeDetector_Detect_Async(QRCodeDetector self, Mat input, CvCallback_1 callback); -CvStatus *QRCodeDetector_Decode_Async(QRCodeDetector self, Mat input, CvCallback_2 callback); +CvStatus *QRCodeDetector_Detect_Async(QRCodeDetector self, Mat input, CvCallback_2 callback); +CvStatus *QRCodeDetector_Decode_Async(QRCodeDetector self, Mat input, CvCallback_3 callback); CvStatus *QRCodeDetector_decodeCurved_Async(QRCodeDetector self, Mat img, VecPoint points, CvCallback_2 callback); CvStatus *QRCodeDetector_detectAndDecodeCurved_Async(QRCodeDetector self, Mat img, CvCallback_3 callback); -CvStatus *QRCodeDetector_DetectMulti_Async(QRCodeDetector self, Mat input, CvCallback_1 callback); +CvStatus *QRCodeDetector_DetectMulti_Async(QRCodeDetector self, Mat input, CvCallback_2 callback); CvStatus *QRCodeDetector_DetectAndDecodeMulti_Async(QRCodeDetector self, Mat input, CvCallback_4 callback); CvStatus *QRCodeDetector_setEpsX_Async(QRCodeDetector self, double epsX, CvCallback_1 callback); CvStatus *QRCodeDetector_setEpsY_Async(QRCodeDetector self, double epsY, CvCallback_1 callback); CvStatus *QRCodeDetector_setUseAlignmentMarkers_Async(QRCodeDetector self, bool useAlignmentMarkers, CvCallback_1 callback); // FaceDetectorYN +CvStatus *FaceDetectorYN_New_Async(const char *model, const char *config, Size input_size, float score_threshold, float nms_threshold, int top_k, int backend_id, int target_id, CvCallback_1 callback); +CvStatus *FaceDetectorYN_NewFromBuffer_Async(const char *framework, VecUChar buffer, VecUChar buffer_config, Size input_size, float score_threshold, float nms_threshold, int top_k, int backend_id, int target_id, CvCallback_1 callback); CvStatus *FaceDetectorYN_Detect_Async(FaceDetectorYN self, Mat img, CvCallback_1 callback); +CvStatus *FaceDetectorYN_SetInputSize_Async(FaceDetectorYN self, Size input_size, CvCallback_1 callback); +CvStatus *FaceDetectorYN_GetInputSize_Async(FaceDetectorYN self, CvCallback_1 callback); +CvStatus *FaceDetectorYN_SetScoreThreshold_Async(FaceDetectorYN self, float score_threshold, CvCallback_1 callback); +CvStatus *FaceDetectorYN_GetScoreThreshold_Async(FaceDetectorYN self, CvCallback_1 callback); +CvStatus *FaceDetectorYN_SetNMSThreshold_Async(FaceDetectorYN self, float nms_threshold, CvCallback_1 callback); +CvStatus *FaceDetectorYN_GetNMSThreshold_Async(FaceDetectorYN self, CvCallback_1 callback); +CvStatus *FaceDetectorYN_SetTopK_Async(FaceDetectorYN self, int top_k, CvCallback_1 callback); +CvStatus *FaceDetectorYN_GetTopK_Async(FaceDetectorYN self, CvCallback_1 callback); // FaceRecognizerSF +CvStatus *FaceRecognizerSF_New_Async(const char *model, const char *config, int backend_id, int target_id, CvCallback_1 callback); CvStatus *FaceRecognizerSF_AlignCrop_Async(FaceRecognizerSF self, Mat src_img, Mat face_box, CvCallback_1 callback); CvStatus *FaceRecognizerSF_Feature_Async(FaceRecognizerSF self, Mat aligned_img, bool clone, CvCallback_1 callback); CvStatus *FaceRecognizerSF_Match_Async(FaceRecognizerSF self, Mat face_feature1, Mat face_feature2, int dis_type, CvCallback_1 callback); From c51c0b433cc504bcc7250ba067481d9d906933fb Mon Sep 17 00:00:00 2001 From: Abdelaziz Mahdy Date: Tue, 25 Jun 2024 18:58:58 +0300 Subject: [PATCH 03/21] fixed some dart functions --- lib/src/objdetect/objdetect_async.dart | 503 ++++++++++++++++--------- 1 file changed, 323 insertions(+), 180 deletions(-) diff --git a/lib/src/objdetect/objdetect_async.dart b/lib/src/objdetect/objdetect_async.dart index 4fcd3b9b..9ab4ef29 100644 --- a/lib/src/objdetect/objdetect_async.dart +++ b/lib/src/objdetect/objdetect_async.dart @@ -35,7 +35,9 @@ class CascadeClassifier extends CvStruct { Future loadAsync(String name) async { final cname = name.toNativeUtf8().cast(); - final rval = cvRunAsync((callback) => CFFI.CascadeClassifier_Load_Async(ref, cname, callback), (c, p) { + final rval = cvRunAsync( + (callback) => CFFI.CascadeClassifier_Load_Async(ref, cname, callback), + (c, p) { final rval = p.cast().value != 0; calloc.free(cname); return c.complete(rval); @@ -50,22 +52,23 @@ class CascadeClassifier extends CvStruct { (int, int) minSize = (0, 0), (int, int) maxSize = (0, 0)}) async { final ret = calloc(); - final rval = cvRunAsync((callback) => CFFI.CascadeClassifier_DetectMultiScaleWithParams_Async( - ref, - image.ref, - scaleFactor, - minNeighbors, - flags, - minSize.cvd.ref, - maxSize.cvd.ref, - ret, - callback), (c, _) { + final rval = cvRunAsync( + (callback) => CFFI.CascadeClassifier_DetectMultiScaleWithParams_Async( + ref, + image.ref, + scaleFactor, + minNeighbors, + flags, + minSize.cvd.ref, + maxSize.cvd.ref, + callback), (c, _) { return c.complete(VecRect.fromPointer(ret)); }); return rval; } - Future<(VecRect objects, VecInt numDetections)> detectMultiScale2Async(InputArray image, + Future<(VecRect objects, VecInt numDetections)> detectMultiScale2Async( + InputArray image, {double scaleFactor = 1.1, int minNeighbors = 3, int flags = 0, @@ -73,52 +76,61 @@ class CascadeClassifier extends CvStruct { (int, int) maxSize = (0, 0)}) async { final ret = calloc(); final pnums = calloc(); - final rval = cvRunAsync<(VecRect, VecInt)>((callback) => CFFI.CascadeClassifier_DetectMultiScale2_Async( - ref, - image.ref, - scaleFactor, - minNeighbors, - flags, - minSize.cvd.ref, - maxSize.cvd.ref, - ret, - pnums, - callback), (c, _) { + final rval = cvRunAsync<(VecRect, VecInt)>( + (callback) => CFFI.CascadeClassifier_DetectMultiScale2_Async( + ref, + image.ref, + scaleFactor, + minNeighbors, + flags, + minSize.cvd.ref, + maxSize.cvd.ref, + ret, + pnums, + callback), (c, _) { return c.complete((VecRect.fromPointer(ret), VecInt.fromPointer(pnums))); }); return rval; } - Future<(VecRect objects, VecInt numDetections, VecDouble levelWeights)> detectMultiScale3Async(InputArray image, - {double scaleFactor = 1.1, - int minNeighbors = 3, - int flags = 0, - (int, int) minSize = (0, 0), - (int, int) maxSize = (0, 0), - bool outputRejectLevels = false}) async { + Future<(VecRect objects, VecInt numDetections, VecDouble levelWeights)> + detectMultiScale3Async(InputArray image, + {double scaleFactor = 1.1, + int minNeighbors = 3, + int flags = 0, + (int, int) minSize = (0, 0), + (int, int) maxSize = (0, 0), + bool outputRejectLevels = false}) async { final objects = calloc(); final rejectLevels = calloc(); final levelWeights = calloc(); - final rval = cvRunAsync<(VecRect, VecInt, VecDouble)>((callback) => CFFI.CascadeClassifier_DetectMultiScale3_Async( - ref, - image.ref, - objects, - rejectLevels, - levelWeights, - scaleFactor, - minNeighbors, - flags, - minSize.cvd.ref, - maxSize.cvd.ref, - outputRejectLevels, - callback), (c, _) { - return c.complete((VecRect.fromPointer(objects), VecInt.fromPointer(rejectLevels), VecDouble.fromPointer(levelWeights))); + final rval = cvRunAsync<(VecRect, VecInt, VecDouble)>( + (callback) => CFFI.CascadeClassifier_DetectMultiScale3_Async( + ref, + image.ref, + objects, + rejectLevels, + levelWeights, + scaleFactor, + minNeighbors, + flags, + minSize.cvd.ref, + maxSize.cvd.ref, + outputRejectLevels, + callback), (c, _) { + return c.complete(( + VecRect.fromPointer(objects), + VecInt.fromPointer(rejectLevels), + VecDouble.fromPointer(levelWeights) + )); }); return rval; } Future emptyAsync() async { - final rval = cvRunAsync((callback) => CFFI.CascadeClassifier_Empty_Async(ref, callback), (c, p) { + final rval = cvRunAsync( + (callback) => CFFI.CascadeClassifier_Empty_Async(ref, callback), + (c, p) { final rval = p.cast().value; return c.complete(rval); }); @@ -126,7 +138,9 @@ class CascadeClassifier extends CvStruct { } Future getFeatureTypeAsync() async { - final rval = cvRunAsync((callback) => CFFI.CascadeClassifier_getFeatureType_Async(ref, callback), (c, p) { + final rval = cvRunAsync( + (callback) => + CFFI.CascadeClassifier_getFeatureType_Async(ref, callback), (c, p) { final rval = p.cast().value; return c.complete(rval); }); @@ -135,7 +149,10 @@ class CascadeClassifier extends CvStruct { Future<(int, int)> getOriginalWindowSizeAsync() async { final p = calloc(); - final rval = cvRunAsync<(int, int)>((callback) => CFFI.CascadeClassifier_getOriginalWindowSize_Async(ref, p, callback), (c, _) { + final rval = cvRunAsync<(int, int)>( + (callback) => + CFFI.CascadeClassifier_getOriginalWindowSize_Async(ref, callback), + (c, _) { final ret = (p.ref.width, p.ref.height); calloc.free(p); return c.complete(ret); @@ -144,7 +161,10 @@ class CascadeClassifier extends CvStruct { } Future isOldFormatCascadeAsync() async { - final rval = cvRunAsync((callback) => CFFI.CascadeClassifier_isOldFormatCascade_Async(ref, callback), (c, p) { + final rval = cvRunAsync( + (callback) => + CFFI.CascadeClassifier_isOldFormatCascade_Async(ref, callback), + (c, p) { final rval = p.cast().value; return c.complete(rval); }); @@ -153,7 +173,8 @@ class CascadeClassifier extends CvStruct { @override cvg.CascadeClassifier get ref => ptr.ref; - static final finalizer = OcvFinalizer(CFFI.addresses.CascadeClassifier_Close); + static final finalizer = OcvFinalizer( + CFFI.addresses.CascadeClassifier_Close); void dispose() { finalizer.detach(this); @@ -188,7 +209,9 @@ class HOGDescriptor extends CvStruct { Future loadAsync(String name) async { final cname = name.toNativeUtf8().cast(); - final rval = cvRunAsync((callback) => CFFI.HOGDescriptor_Load_Async(ref, cname, callback), (c, p) { + final rval = cvRunAsync( + (callback) => CFFI.HOGDescriptor_Load_Async(ref, cname, callback), + (c, p) { final rval = p.cast().value; calloc.free(cname); return c.complete(rval); @@ -197,90 +220,115 @@ class HOGDescriptor extends CvStruct { } Future<(VecFloat descriptors, VecPoint locations)> computeAsync(Mat img, - { (int, int) winStride = (0, 0), (int, int) padding = (0, 0) }) async { + {(int, int) winStride = (0, 0), (int, int) padding = (0, 0)}) async { final descriptors = calloc(); final locations = calloc(); - final rval = cvRunAsync<(VecFloat, VecPoint)>((callback) => CFFI.HOGDescriptor_Compute_Async( - ref, - img.ref, - descriptors, - winStride.cvd.ref, - padding.cvd.ref, - locations, - callback), (c, _) { - return c.complete((VecFloat.fromPointer(descriptors), VecPoint.fromPointer(locations))); + final rval = cvRunAsync<(VecFloat, VecPoint)>( + (callback) => CFFI.HOGDescriptor_Compute_Async( + ref, + img.ref, + descriptors, + winStride.cvd.ref, + padding.cvd.ref, + locations, + callback), (c, _) { + return c.complete( + (VecFloat.fromPointer(descriptors), VecPoint.fromPointer(locations))); }); return rval; } Future<(Mat grad, Mat angleOfs)> computeGradientAsync(InputArray img, - { (int, int) paddingTL = (0, 0), (int, int) paddingBR = (0, 0) }) async { + {(int, int) paddingTL = (0, 0), (int, int) paddingBR = (0, 0)}) async { final grad = Mat.empty(); final angleOfs = Mat.empty(); - final rval = cvRunAsync<(Mat, Mat)>((callback) => CFFI.HOGDescriptor_computeGradient_Async( - ref, - img.ref, - grad.ref, - angleOfs.ref, - paddingTL.cvd.ref, - paddingBR.cvd.ref, - callback), (c, _) { + final rval = cvRunAsync<(Mat, Mat)>( + (callback) => CFFI.HOGDescriptor_computeGradient_Async( + ref, + img.ref, + grad.ref, + angleOfs.ref, + paddingTL.cvd.ref, + paddingBR.cvd.ref, + callback), (c, _) { return c.complete((grad, angleOfs)); }); return rval; } - Future<(VecPoint foundLocations, VecDouble weights, VecPoint searchLocations)> detect2Async(InputArray img, - { double hitThreshold = 0, (int, int) winStride = (0, 0), (int, int) padding = (0, 0) }) async { + Future<(VecPoint foundLocations, VecDouble weights, VecPoint searchLocations)> + detect2Async(InputArray img, + {double hitThreshold = 0, + (int, int) winStride = (0, 0), + (int, int) padding = (0, 0)}) async { final foundLocations = calloc(); final searchLocations = calloc(); final weights = calloc(); - final rval = cvRunAsync<(VecPoint, VecDouble, VecPoint)>((callback) => CFFI.HOGDescriptor_Detect_Async( - ref, - img.ref, - foundLocations, - weights, - hitThreshold, - winStride.cvd.ref, - padding.cvd.ref, - searchLocations, - callback), (c, _) { - return c.complete((VecPoint.fromPointer(foundLocations), VecDouble.fromPointer(weights), VecPoint.fromPointer(searchLocations))); - }); - return rval; - } - - Future<(VecPoint foundLocations, VecPoint searchLocations)> detectAsync(InputArray img, - { double hitThreshold = 0, (int, int) winStride = (0, 0), (int, int) padding = (0, 0) }) async { + final rval = cvRunAsync<(VecPoint, VecDouble, VecPoint)>( + (callback) => CFFI.HOGDescriptor_Detect_Async( + ref, + img.ref, + foundLocations, + weights, + hitThreshold, + winStride.cvd.ref, + padding.cvd.ref, + searchLocations, + callback), (c, _) { + return c.complete(( + VecPoint.fromPointer(foundLocations), + VecDouble.fromPointer(weights), + VecPoint.fromPointer(searchLocations) + )); + }); + return rval; + } + + Future<(VecPoint foundLocations, VecPoint searchLocations)> detectAsync( + InputArray img, + {double hitThreshold = 0, + (int, int) winStride = (0, 0), + (int, int) padding = (0, 0)}) async { final foundLocations = calloc(); final searchLocations = calloc(); - final rval = cvRunAsync<(VecPoint, VecPoint)>((callback) => CFFI.HOGDescriptor_Detect2_Async( - ref, - img.ref, - foundLocations, - hitThreshold, - winStride.cvd.ref, - padding.cvd.ref, - searchLocations, - callback), (c, _) { - return c.complete((VecPoint.fromPointer(foundLocations), VecPoint.fromPointer(searchLocations))); + final rval = cvRunAsync<(VecPoint, VecPoint)>( + (callback) => CFFI.HOGDescriptor_Detect2_Async( + ref, + img.ref, + foundLocations, + hitThreshold, + winStride.cvd.ref, + padding.cvd.ref, + searchLocations, + callback), (c, _) { + return c.complete(( + VecPoint.fromPointer(foundLocations), + VecPoint.fromPointer(searchLocations) + )); }); return rval; } Future detectMultiScaleAsync(InputArray image, - { double hitThreshold = 0, int minNeighbors = 3, (int, int) winStride = (0, 0), (int, int) padding = (0, 0), double scale = 1.05, double groupThreshold = 2.0, bool useMeanshiftGrouping = false }) async { + {double hitThreshold = 0, + int minNeighbors = 3, + (int, int) winStride = (0, 0), + (int, int) padding = (0, 0), + double scale = 1.05, + double groupThreshold = 2.0, + bool useMeanshiftGrouping = false}) async { final rects = calloc(); - final rval = cvRunAsync((callback) => CFFI.HOGDescriptor_DetectMultiScaleWithParams_Async( - ref, - image.ref, - hitThreshold, - winStride.cvd.ref, - padding.cvd.ref, - scale, - groupThreshold, - useMeanshiftGrouping, - callback), (c, _) { + final rval = cvRunAsync( + (callback) => CFFI.HOGDescriptor_DetectMultiScaleWithParams_Async( + ref, + image.ref, + hitThreshold, + winStride.cvd.ref, + padding.cvd.ref, + scale, + groupThreshold, + useMeanshiftGrouping, + callback), (c, _) { return c.complete(VecRect.fromPointer(rects)); }); return rval; @@ -288,7 +336,9 @@ class HOGDescriptor extends CvStruct { static Future getDefaultPeopleDetectorAsync() async { final v = calloc(); - final rval = cvRunAsync((callback) => CFFI.HOG_GetDefaultPeopleDetector_Async(v, callback), (c, _) { + final rval = cvRunAsync( + (callback) => CFFI.HOG_GetDefaultPeopleDetector_Async(callback), + (c, _) { return c.complete(VecFloat.fromPointer(v)); }); return rval; @@ -296,14 +346,19 @@ class HOGDescriptor extends CvStruct { static Future getDaimlerPeopleDetectorAsync() async { final v = calloc(); - final rval = cvRunAsync((callback) => CFFI.HOGDescriptor_getDaimlerPeopleDetector_Async(v, callback), (c, _) { + final rval = cvRunAsync( + (callback) => + CFFI.HOGDescriptor_getDaimlerPeopleDetector_Async(callback), + (c, _) { return c.complete(VecFloat.fromPointer(v)); }); return rval; } Future getDescriptorSizeAsync() async { - final rval = cvRunAsync((callback) => CFFI.HOGDescriptor_getDescriptorSize_Async(ref, callback), (c, p) { + final rval = cvRunAsync( + (callback) => CFFI.HOGDescriptor_getDescriptorSize_Async(ref, callback), + (c, p) { final rval = p.cast().value; return c.complete(rval); }); @@ -311,29 +366,42 @@ class HOGDescriptor extends CvStruct { } Future getWinSigmaAsync() async { - final rval = cvRunAsync((callback) => CFFI.HOGDescriptor_getWinSigma_Async(ref, callback), (c, p) { + final rval = cvRunAsync( + (callback) => CFFI.HOGDescriptor_getWinSigma_Async(ref, callback), + (c, p) { final rval = p.cast().value; return c.complete(rval); }); return rval; } - Future<(VecRect rectList, VecDouble weights)> groupRectanglesAsync(VecRect rectList, VecDouble weights, int groupThreshold, double eps) async { - final rval = cvRunAsync<(VecRect, VecDouble)>((callback) => CFFI.HOGDescriptor_groupRectangles_Async(ref, rectList.ref, weights.ref, groupThreshold, eps, callback), (c, _) { + Future<(VecRect rectList, VecDouble weights)> groupRectanglesAsync( + VecRect rectList, + VecDouble weights, + int groupThreshold, + double eps) async { + final rval = cvRunAsync<(VecRect, VecDouble)>( + (callback) => CFFI.HOGDescriptor_groupRectangles_Async( + ref, rectList.ref, weights.ref, groupThreshold, eps, callback), + (c, _) { return c.complete((rectList, weights)); }); return rval; } Future setSVMDetectorAsync(VecFloat det) async { - await cvRunAsync((callback) => CFFI.HOGDescriptor_SetSVMDetector_Async(ref, det.ref, callback), (c, _) { + await cvRunAsync( + (callback) => + CFFI.HOGDescriptor_SetSVMDetector_Async(ref, det.ref, callback), + (c, _) { return c.complete(); }); } @override cvg.HOGDescriptor get ref => ptr.ref; - static final finalizer = OcvFinalizer(CFFI.addresses.HOGDescriptor_Close); + static final finalizer = + OcvFinalizer(CFFI.addresses.HOGDescriptor_Close); void dispose() { finalizer.detach(this); @@ -344,8 +412,12 @@ class HOGDescriptor extends CvStruct { List get props => [ptr.address]; } -Future groupRectanglesAsync(VecRect rects, int groupThreshold, double eps) async { - final rval = cvRunAsync((callback) => CFFI.GroupRectangles_Async(rects.ref, groupThreshold, eps, callback), (c, _) { +Future groupRectanglesAsync( + VecRect rects, int groupThreshold, double eps) async { + final rval = cvRunAsync( + (callback) => + CFFI.GroupRectangles_Async(rects.ref, groupThreshold, eps, callback), + (c, _) { return c.complete(rects); }); return rval; @@ -365,16 +437,14 @@ class QRCodeDetector extends CvStruct { return QRCodeDetector._(p); } - Future<(String rval, Mat straightQRcode)> decodeCurvedAsync(InputArray img, VecPoint points, { OutputArray? straightQRcode }) async { + Future<(String rval, Mat straightQRcode)> decodeCurvedAsync( + InputArray img, VecPoint points, + {OutputArray? straightQRcode}) async { final s = straightQRcode?.ptr ?? calloc(); final v = calloc>(); - final rval = cvRunAsync<(String, Mat)>((callback) => CFFI.QRCodeDetector_decodeCurved_Async( - ref, - img.ref, - points.ref, - s, - v, - callback), (c, _) { + final rval = cvRunAsync<(String, Mat)>( + (callback) => CFFI.QRCodeDetector_decodeCurved_Async( + ref, img.ref, points.ref, s, v, callback), (c, _) { final ss = v.value.cast().toDartString(); calloc.free(v); return c.complete((ss, Mat.fromPointer(s))); @@ -382,17 +452,15 @@ class QRCodeDetector extends CvStruct { return rval; } - Future<(String rval, VecPoint points, Mat straightQRcode)> detectAndDecodeCurvedAsync(InputArray img, { VecPoint? points, Mat? straightQRcode }) async { + Future<(String rval, VecPoint points, Mat straightQRcode)> + detectAndDecodeCurvedAsync(InputArray img, + {VecPoint? points, Mat? straightQRcode}) async { final p = points?.ptr ?? calloc(); final s = straightQRcode?.ptr ?? calloc(); final v = calloc>(); - final rval = cvRunAsync<(String, VecPoint, Mat)>((callback) => CFFI.QRCodeDetector_detectAndDecodeCurved_Async( - ref, - img.ref, - p, - s, - v, - callback), (c, _) { + final rval = cvRunAsync<(String, VecPoint, Mat)>( + (callback) => CFFI.QRCodeDetector_detectAndDecodeCurved_Async( + ref, img.ref, p, s, v, callback), (c, _) { final ss = v.value.cast().toDartString(); calloc.free(v); return c.complete((ss, VecPoint.fromPointer(p), Mat.fromPointer(s))); @@ -400,11 +468,16 @@ class QRCodeDetector extends CvStruct { return rval; } - Future<(String ret, VecPoint points, Mat straightCode)> detectAndDecodeAsync(InputArray img, { VecPoint? points, OutputArray? straightCode }) async { + Future<(String ret, VecPoint points, Mat straightCode)> detectAndDecodeAsync( + InputArray img, + {VecPoint? points, + OutputArray? straightCode}) async { final code = straightCode?.ptr ?? calloc(); final pts = points?.ptr ?? calloc(); final v = calloc>(); - final rval = cvRunAsync<(String, VecPoint, Mat)>((callback) => CFFI.QRCodeDetector_DetectAndDecode_Async(ref, img.ref, pts, code, v, callback), (c, _) { + final rval = cvRunAsync<(String, VecPoint, Mat)>( + (callback) => CFFI.QRCodeDetector_DetectAndDecode_Async( + ref, img.ref, pts, code, v, callback), (c, _) { final s = v == ffi.nullptr ? "" : v.value.cast().toDartString(); calloc.free(v); return c.complete((s, VecPoint.fromPointer(pts), Mat.fromPointer(code))); @@ -412,20 +485,29 @@ class QRCodeDetector extends CvStruct { return rval; } - Future<(bool ret, VecPoint points)> detectAsync(InputArray input, {VecPoint? points}) async { + Future<(bool ret, VecPoint points)> detectAsync(InputArray input, + {VecPoint? points}) async { final pts = points?.ptr ?? calloc(); - final rval = cvRunAsync<(bool, VecPoint)>((callback) => CFFI.QRCodeDetector_Detect_Async(ref, input.ref, pts, callback), (c, p) { + final rval = cvRunAsync<(bool, VecPoint)>( + (callback) => + CFFI.QRCodeDetector_Detect_Async(ref, input.ref, pts, callback), + (c, p) { final ret = p.cast().value; return c.complete((ret, VecPoint.fromPointer(pts))); }); return rval; } - Future<(String ret, VecPoint? points, Mat? straightCode)> decodeAsync(InputArray img, { VecPoint? points, Mat? straightCode }) async { + Future<(String ret, VecPoint? points, Mat? straightCode)> decodeAsync( + InputArray img, + {VecPoint? points, + Mat? straightCode}) async { final p = points?.ptr ?? calloc(); final ret = calloc>(); final code = straightCode ?? Mat.empty(); - final rval = cvRunAsync<(String, VecPoint, Mat)>((callback) => CFFI.QRCodeDetector_Decode_Async(ref, img.ref, p, code.ref, ret, callback), (c, _) { + final rval = cvRunAsync<(String, VecPoint, Mat)>( + (callback) => CFFI.QRCodeDetector_Decode_Async( + ref, img.ref, p, code.ref, ret, callback), (c, _) { final info = ret.value.cast().toDartString(); calloc.free(ret); return c.complete((info, VecPoint.fromPointer(p), code)); @@ -433,29 +515,34 @@ class QRCodeDetector extends CvStruct { return rval; } - Future<(bool ret, VecPoint points)> detectMultiAsync(InputArray img, {VecPoint? points}) async { + Future<(bool ret, VecPoint points)> detectMultiAsync(InputArray img, + {VecPoint? points}) async { final pts = points?.ptr ?? calloc(); - final rval = cvRunAsync<(bool, VecPoint)>((callback) => CFFI.QRCodeDetector_DetectMulti_Async(ref, img.ref, pts, callback), (c, p) { + final rval = cvRunAsync<(bool, VecPoint)>( + (callback) => + CFFI.QRCodeDetector_DetectMulti_Async(ref, img.ref, pts, callback), + (c, p) { final ret = p.cast().value; return c.complete((ret, VecPoint.fromPointer(pts))); }); return rval; } - Future<(bool, List, VecPoint, VecMat)> detectAndDecodeMultiAsync(InputArray img) async { + Future<(bool, List, VecPoint, VecMat)> detectAndDecodeMultiAsync( + InputArray img) async { final info = calloc(); final points = calloc(); final codes = calloc(); final rval = calloc(); - final ret = cvRunAsync<(bool, List, VecPoint, VecMat)>((callback) => CFFI.QRCodeDetector_DetectAndDecodeMulti_Async( - ref, - img.ref, - info, - points, - codes, - rval, - callback), (c, _) { - final ret = (rval.value, VecVecChar.fromPointer(info).asStringList(), VecPoint.fromPointer(points), VecMat.fromPointer(codes)); + final ret = cvRunAsync<(bool, List, VecPoint, VecMat)>( + (callback) => CFFI.QRCodeDetector_DetectAndDecodeMulti_Async( + ref, img.ref, info, points, codes, rval, callback), (c, _) { + final ret = ( + rval.value, + VecVecChar.fromPointer(info).asStringList(), + VecPoint.fromPointer(points), + VecMat.fromPointer(codes) + ); calloc.free(rval); return c.complete(ret); }); @@ -463,26 +550,33 @@ class QRCodeDetector extends CvStruct { } Future setEpsXAsync(double epsX) async { - await cvRunAsync((callback) => CFFI.QRCodeDetector_setEpsX_Async(ref, epsX, callback), (c, _) { + await cvRunAsync( + (callback) => CFFI.QRCodeDetector_setEpsX_Async(ref, epsX, callback), + (c, _) { return c.complete(); }); } Future setEpsYAsync(double epsY) async { - await cvRunAsync((callback) => CFFI.QRCodeDetector_setEpsY_Async(ref, epsY, callback), (c, _) { + await cvRunAsync( + (callback) => CFFI.QRCodeDetector_setEpsY_Async(ref, epsY, callback), + (c, _) { return c.complete(); }); } Future setUseAlignmentMarkersAsync(bool useAlignmentMarkers) async { - await cvRunAsync((callback) => CFFI.QRCodeDetector_setUseAlignmentMarkers_Async(ref, useAlignmentMarkers, callback), (c, _) { + await cvRunAsync( + (callback) => CFFI.QRCodeDetector_setUseAlignmentMarkers_Async( + ref, useAlignmentMarkers, callback), (c, _) { return c.complete(); }); } @override cvg.QRCodeDetector get ref => ptr.ref; - static final finalizer = OcvFinalizer(CFFI.addresses.QRCodeDetector_Close); + static final finalizer = + OcvFinalizer(CFFI.addresses.QRCodeDetector_Close); void dispose() { finalizer.detach(this); @@ -501,29 +595,52 @@ class FaceDetectorYN extends CvStruct { } } - factory FaceDetectorYN.fromFile(String model, String config, (int, int) inputSize, - { double scoreThreshold = 0.9, double nmsThreshold = 0.3, int topK = 5000, int backendId = 0, int targetId = 0 }) { + factory FaceDetectorYN.fromFile( + String model, String config, (int, int) inputSize, + {double scoreThreshold = 0.9, + double nmsThreshold = 0.3, + int topK = 5000, + int backendId = 0, + int targetId = 0}) { final p = calloc(); final cModel = model.toNativeUtf8().cast(); final cConfig = config.toNativeUtf8().cast(); - cvRun(() => CFFI.FaceDetectorYN_New(cModel, cConfig, inputSize.cvd.ref, scoreThreshold, nmsThreshold, topK, backendId, targetId, p)); + cvRun(() => CFFI.FaceDetectorYN_New(cModel, cConfig, inputSize.cvd.ref, + scoreThreshold, nmsThreshold, topK, backendId, targetId, p)); calloc.free(cModel); calloc.free(cConfig); return FaceDetectorYN._(p); } - factory FaceDetectorYN.fromBuffer(String framework, Uint8List bufferModel, Uint8List bufferConfig, (int, int) inputSize, - { double scoreThreshold = 0.9, double nmsThreshold = 0.3, int topK = 5000, int backendId = 0, int targetId = 0 }) { + factory FaceDetectorYN.fromBuffer(String framework, Uint8List bufferModel, + Uint8List bufferConfig, (int, int) inputSize, + {double scoreThreshold = 0.9, + double nmsThreshold = 0.3, + int topK = 5000, + int backendId = 0, + int targetId = 0}) { final p = calloc(); final cFramework = framework.toNativeUtf8().cast(); - cvRun(() => CFFI.FaceDetectorYN_NewFromBuffer(cFramework, VecUChar.fromList(bufferModel).ref, VecUChar.fromList(bufferConfig).ref, inputSize.cvd.ref, scoreThreshold, nmsThreshold, topK, backendId, targetId, p)); + cvRun(() => CFFI.FaceDetectorYN_NewFromBuffer( + cFramework, + VecUChar.fromList(bufferModel).ref, + VecUChar.fromList(bufferConfig).ref, + inputSize.cvd.ref, + scoreThreshold, + nmsThreshold, + topK, + backendId, + targetId, + p)); calloc.free(cFramework); return FaceDetectorYN._(p); } Future<(int, int)> getInputSizeAsync() async { final p = calloc(); - final rval = cvRunAsync<(int, int)>((callback) => CFFI.FaceDetectorYN_GetInputSize_Async(ref, p, callback), (c, _) { + final rval = cvRunAsync<(int, int)>( + (callback) => CFFI.FaceDetectorYN_GetInputSize_Async(ref, callback), + (c, _) { final ret = (p.ref.width, p.ref.height); calloc.free(p); return c.complete(ret); @@ -532,7 +649,9 @@ class FaceDetectorYN extends CvStruct { } Future getScoreThresholdAsync() async { - final rval = cvRunAsync((callback) => CFFI.FaceDetectorYN_GetScoreThreshold_Async(ref, callback), (c, p) { + final rval = cvRunAsync( + (callback) => + CFFI.FaceDetectorYN_GetScoreThreshold_Async(ref, callback), (c, p) { final rval = p.cast().value; return c.complete(rval); }); @@ -540,7 +659,9 @@ class FaceDetectorYN extends CvStruct { } Future getNmsThresholdAsync() async { - final rval = cvRunAsync((callback) => CFFI.FaceDetectorYN_GetNMSThreshold_Async(ref, callback), (c, p) { + final rval = cvRunAsync( + (callback) => CFFI.FaceDetectorYN_GetNMSThreshold_Async(ref, callback), + (c, p) { final rval = p.cast().value; return c.complete(rval); }); @@ -548,7 +669,8 @@ class FaceDetectorYN extends CvStruct { } Future getTopKAsync() async { - final rval = cvRunAsync((callback) => CFFI.FaceDetectorYN_GetTopK_Async(ref, callback), (c, p) { + final rval = cvRunAsync( + (callback) => CFFI.FaceDetectorYN_GetTopK_Async(ref, callback), (c, p) { final rval = p.cast().value; return c.complete(rval); }); @@ -557,39 +679,50 @@ class FaceDetectorYN extends CvStruct { Future detectAsync(Mat image) async { final p = calloc(); - final rval = cvRunAsync((callback) => CFFI.FaceDetectorYN_Detect_Async(ref, image.ref, p, callback), (c, _) { + final rval = cvRunAsync( + (callback) => + CFFI.FaceDetectorYN_Detect_Async(ref, image.ref, callback), (c, _) { return c.complete(Mat.fromPointer(p)); }); return rval; } Future setInputSizeAsync((int, int) inputSize) async { - await cvRunAsync((callback) => CFFI.FaceDetectorYN_SetInputSize_Async(ref, inputSize.cvd.ref, callback), (c, _) { + await cvRunAsync( + (callback) => CFFI.FaceDetectorYN_SetInputSize_Async( + ref, inputSize.cvd.ref, callback), (c, _) { return c.complete(); }); } Future setScoreThresholdAsync(double scoreThreshold) async { - await cvRunAsync((callback) => CFFI.FaceDetectorYN_SetScoreThreshold_Async(ref, scoreThreshold, callback), (c, _) { + await cvRunAsync( + (callback) => CFFI.FaceDetectorYN_SetScoreThreshold_Async( + ref, scoreThreshold, callback), (c, _) { return c.complete(); }); } Future setNMSThresholdAsync(double nmsThreshold) async { - await cvRunAsync((callback) => CFFI.FaceDetectorYN_SetNMSThreshold_Async(ref, nmsThreshold, callback), (c, _) { + await cvRunAsync( + (callback) => CFFI.FaceDetectorYN_SetNMSThreshold_Async( + ref, nmsThreshold, callback), (c, _) { return c.complete(); }); } Future setTopKAsync(int topK) async { - await cvRunAsync((callback) => CFFI.FaceDetectorYN_SetTopK_Async(ref, topK, callback), (c, _) { + await cvRunAsync( + (callback) => CFFI.FaceDetectorYN_SetTopK_Async(ref, topK, callback), + (c, _) { return c.complete(); }); } @override cvg.FaceDetectorYN get ref => ptr.ref; - static final finalizer = OcvFinalizer(CFFI.addresses.FaceDetectorYN_Close); + static final finalizer = + OcvFinalizer(CFFI.addresses.FaceDetectorYN_Close); void dispose() { finalizer.detach(this); @@ -609,11 +742,12 @@ class FaceRecognizerSF extends CvStruct { } factory FaceRecognizerSF.fromFile(String model, String config, - { int backendId = 0, int targetId = 0 }) { + {int backendId = 0, int targetId = 0}) { final p = calloc(); final cModel = model.toNativeUtf8().cast(); final cConfig = config.toNativeUtf8().cast(); - cvRun(() => CFFI.FaceRecognizerSF_New(cModel, cConfig, backendId, targetId, p)); + cvRun(() => + CFFI.FaceRecognizerSF_New(cModel, cConfig, backendId, targetId, p)); calloc.free(cModel); calloc.free(cConfig); return FaceRecognizerSF._(p); @@ -621,7 +755,9 @@ class FaceRecognizerSF extends CvStruct { Future alignCropAsync(Mat srcImg, Mat faceBox) async { final p = calloc(); - final rval = cvRunAsync((callback) => CFFI.FaceRecognizerSF_AlignCrop_Async(ref, srcImg.ref, faceBox.ref, p, callback), (c, _) { + final rval = cvRunAsync( + (callback) => CFFI.FaceRecognizerSF_AlignCrop_Async( + ref, srcImg.ref, faceBox.ref, callback), (c, _) { return c.complete(Mat.fromPointer(p)); }); return rval; @@ -629,14 +765,20 @@ class FaceRecognizerSF extends CvStruct { Future featureAsync(Mat alignedImg, {bool clone = false}) async { final p = calloc(); - final rval = cvRunAsync((callback) => CFFI.FaceRecognizerSF_Feature_Async(ref, alignedImg.ref, clone, p, callback), (c, _) { + final rval = cvRunAsync( + (callback) => CFFI.FaceRecognizerSF_Feature_Async( + ref, alignedImg.ref, clone, callback), (c, _) { return c.complete(Mat.fromPointer(p)); }); return rval; } - Future matchAsync(Mat faceFeature1, Mat faceFeature2, {int disType = FaceRecognizerSF.FR_COSINE}) async { - final rval = cvRunAsync((callback) => CFFI.FaceRecognizerSF_Match_Async(ref, faceFeature1.ref, faceFeature2.ref, disType, callback), (c, p) { + Future matchAsync(Mat faceFeature1, Mat faceFeature2, + {int disType = FaceRecognizerSF.FR_COSINE}) async { + final rval = cvRunAsync( + (callback) => CFFI.FaceRecognizerSF_Match_Async( + ref, faceFeature1.ref, faceFeature2.ref, disType, callback), + (c, p) { final rval = p.cast().value; return c.complete(rval); }); @@ -645,7 +787,8 @@ class FaceRecognizerSF extends CvStruct { @override cvg.FaceRecognizerSF get ref => ptr.ref; - static final finalizer = OcvFinalizer(CFFI.addresses.FaceRecognizerSF_Close); + static final finalizer = OcvFinalizer( + CFFI.addresses.FaceRecognizerSF_Close); void dispose() { finalizer.detach(this); From 26ea4d68221680b5f58a8200c8f47bf8ed9d10f8 Mon Sep 17 00:00:00 2001 From: rainy liu Date: Wed, 26 Jun 2024 11:47:24 +0800 Subject: [PATCH 04/21] an example --- lib/src/objdetect/objdetect_async.dart | 60 +++++++++++++------------- 1 file changed, 29 insertions(+), 31 deletions(-) diff --git a/lib/src/objdetect/objdetect_async.dart b/lib/src/objdetect/objdetect_async.dart index 9ab4ef29..f6b5cbf0 100644 --- a/lib/src/objdetect/objdetect_async.dart +++ b/lib/src/objdetect/objdetect_async.dart @@ -93,37 +93,35 @@ class CascadeClassifier extends CvStruct { return rval; } - Future<(VecRect objects, VecInt numDetections, VecDouble levelWeights)> - detectMultiScale3Async(InputArray image, - {double scaleFactor = 1.1, - int minNeighbors = 3, - int flags = 0, - (int, int) minSize = (0, 0), - (int, int) maxSize = (0, 0), - bool outputRejectLevels = false}) async { - final objects = calloc(); - final rejectLevels = calloc(); - final levelWeights = calloc(); - final rval = cvRunAsync<(VecRect, VecInt, VecDouble)>( - (callback) => CFFI.CascadeClassifier_DetectMultiScale3_Async( - ref, - image.ref, - objects, - rejectLevels, - levelWeights, - scaleFactor, - minNeighbors, - flags, - minSize.cvd.ref, - maxSize.cvd.ref, - outputRejectLevels, - callback), (c, _) { - return c.complete(( - VecRect.fromPointer(objects), - VecInt.fromPointer(rejectLevels), - VecDouble.fromPointer(levelWeights) - )); - }); + Future<(VecRect objects, VecInt numDetections, VecDouble levelWeights)> detectMultiScale3Async( + InputArray image, { + double scaleFactor = 1.1, + int minNeighbors = 3, + int flags = 0, + (int, int) minSize = (0, 0), + (int, int) maxSize = (0, 0), + bool outputRejectLevels = false, + }) async { + final rval = cvRunAsync3<(VecRect, VecInt, VecDouble)>( + (callback) => CFFI.CascadeClassifier_DetectMultiScale3_Async( + ref, + image.ref, + scaleFactor, + minNeighbors, + flags, + minSize.cvd.ref, + maxSize.cvd.ref, + outputRejectLevels, + callback, + ), + (c, p1, p2, p3) => c.complete( + ( + VecRect.fromPointer(p1.cast()), + VecInt.fromPointer(p2.cast()), + VecDouble.fromPointer(p3.cast()) + ), + ), + ); return rval; } From 14cfc714644cf10d01511f8f246f68eda80c5037 Mon Sep 17 00:00:00 2001 From: Abdelaziz Mahdy Date: Wed, 26 Jun 2024 18:24:06 +0300 Subject: [PATCH 05/21] fixes dart errors --- lib/src/objdetect/objdetect_async.dart | 567 +++++++++++++++---------- 1 file changed, 339 insertions(+), 228 deletions(-) diff --git a/lib/src/objdetect/objdetect_async.dart b/lib/src/objdetect/objdetect_async.dart index f6b5cbf0..d02e1c17 100644 --- a/lib/src/objdetect/objdetect_async.dart +++ b/lib/src/objdetect/objdetect_async.dart @@ -45,55 +45,62 @@ class CascadeClassifier extends CvStruct { return rval; } - Future detectMultiScaleAsync(InputArray image, - {double scaleFactor = 1.1, - int minNeighbors = 3, - int flags = 0, - (int, int) minSize = (0, 0), - (int, int) maxSize = (0, 0)}) async { + Future detectMultiScaleAsync( + InputArray image, { + double scaleFactor = 1.1, + int minNeighbors = 3, + int flags = 0, + (int, int) minSize = (0, 0), + (int, int) maxSize = (0, 0), + }) async { final ret = calloc(); final rval = cvRunAsync( (callback) => CFFI.CascadeClassifier_DetectMultiScaleWithParams_Async( - ref, - image.ref, - scaleFactor, - minNeighbors, - flags, - minSize.cvd.ref, - maxSize.cvd.ref, - callback), (c, _) { + ref, + image.ref, + scaleFactor, + minNeighbors, + flags, + minSize.cvd.ref, + maxSize.cvd.ref, + callback, + ), (c, _) { return c.complete(VecRect.fromPointer(ret)); }); return rval; } Future<(VecRect objects, VecInt numDetections)> detectMultiScale2Async( - InputArray image, - {double scaleFactor = 1.1, - int minNeighbors = 3, - int flags = 0, - (int, int) minSize = (0, 0), - (int, int) maxSize = (0, 0)}) async { - final ret = calloc(); - final pnums = calloc(); - final rval = cvRunAsync<(VecRect, VecInt)>( + InputArray image, { + double scaleFactor = 1.1, + int minNeighbors = 3, + int flags = 0, + (int, int) minSize = (0, 0), + (int, int) maxSize = (0, 0), + }) async { + final rval = cvRunAsync2<(VecRect, VecInt)>( (callback) => CFFI.CascadeClassifier_DetectMultiScale2_Async( - ref, - image.ref, - scaleFactor, - minNeighbors, - flags, - minSize.cvd.ref, - maxSize.cvd.ref, - ret, - pnums, - callback), (c, _) { - return c.complete((VecRect.fromPointer(ret), VecInt.fromPointer(pnums))); + ref, + image.ref, + scaleFactor, + minNeighbors, + flags, + minSize.cvd.ref, + maxSize.cvd.ref, + callback, + ), (c, ret, pnums) { + return c.complete( + ( + VecRect.fromPointer(ret.cast()), + VecInt.fromPointer(pnums.cast()) + ), + ); }); return rval; } - Future<(VecRect objects, VecInt numDetections, VecDouble levelWeights)> detectMultiScale3Async( + Future<(VecRect objects, VecInt numDetections, VecDouble levelWeights)> + detectMultiScale3Async( InputArray image, { double scaleFactor = 1.1, int minNeighbors = 3, @@ -115,12 +122,12 @@ class CascadeClassifier extends CvStruct { callback, ), (c, p1, p2, p3) => c.complete( - ( - VecRect.fromPointer(p1.cast()), - VecInt.fromPointer(p2.cast()), - VecDouble.fromPointer(p3.cast()) - ), + ( + VecRect.fromPointer(p1.cast()), + VecInt.fromPointer(p2.cast()), + VecDouble.fromPointer(p3.cast()) ), + ), ); return rval; } @@ -172,7 +179,8 @@ class CascadeClassifier extends CvStruct { @override cvg.CascadeClassifier get ref => ptr.ref; static final finalizer = OcvFinalizer( - CFFI.addresses.CascadeClassifier_Close); + CFFI.addresses.CascadeClassifier_Close, + ); void dispose() { finalizer.detach(this); @@ -217,116 +225,125 @@ class HOGDescriptor extends CvStruct { return rval; } - Future<(VecFloat descriptors, VecPoint locations)> computeAsync(Mat img, - {(int, int) winStride = (0, 0), (int, int) padding = (0, 0)}) async { + Future<(VecFloat descriptors, VecPoint locations)> computeAsync( + Mat img, { + (int, int) winStride = (0, 0), + (int, int) padding = (0, 0), + }) async { final descriptors = calloc(); final locations = calloc(); - final rval = cvRunAsync<(VecFloat, VecPoint)>( + final rval = cvRunAsync2<(VecFloat, VecPoint)>( (callback) => CFFI.HOGDescriptor_Compute_Async( - ref, - img.ref, - descriptors, - winStride.cvd.ref, - padding.cvd.ref, - locations, - callback), (c, _) { + ref, + img.ref, + winStride.cvd.ref, + padding.cvd.ref, + callback, + ), (c, _, __) { return c.complete( - (VecFloat.fromPointer(descriptors), VecPoint.fromPointer(locations))); + (VecFloat.fromPointer(descriptors), VecPoint.fromPointer(locations)), + ); }); return rval; } - Future<(Mat grad, Mat angleOfs)> computeGradientAsync(InputArray img, - {(int, int) paddingTL = (0, 0), (int, int) paddingBR = (0, 0)}) async { + Future<(Mat grad, Mat angleOfs)> computeGradientAsync( + InputArray img, { + (int, int) paddingTL = (0, 0), + (int, int) paddingBR = (0, 0), + }) async { final grad = Mat.empty(); final angleOfs = Mat.empty(); - final rval = cvRunAsync<(Mat, Mat)>( + final rval = cvRunAsync0<(Mat, Mat)>( (callback) => CFFI.HOGDescriptor_computeGradient_Async( - ref, - img.ref, - grad.ref, - angleOfs.ref, - paddingTL.cvd.ref, - paddingBR.cvd.ref, - callback), (c, _) { + ref, + img.ref, + grad.ref, + angleOfs.ref, + paddingTL.cvd.ref, + paddingBR.cvd.ref, + callback, + ), (c) { return c.complete((grad, angleOfs)); }); return rval; } Future<(VecPoint foundLocations, VecDouble weights, VecPoint searchLocations)> - detect2Async(InputArray img, - {double hitThreshold = 0, - (int, int) winStride = (0, 0), - (int, int) padding = (0, 0)}) async { - final foundLocations = calloc(); - final searchLocations = calloc(); - final weights = calloc(); - final rval = cvRunAsync<(VecPoint, VecDouble, VecPoint)>( + detect2Async( + InputArray img, { + double hitThreshold = 0, + (int, int) winStride = (0, 0), + (int, int) padding = (0, 0), + }) async { + final rval = cvRunAsync3<(VecPoint, VecDouble, VecPoint)>( (callback) => CFFI.HOGDescriptor_Detect_Async( - ref, - img.ref, - foundLocations, - weights, - hitThreshold, - winStride.cvd.ref, - padding.cvd.ref, - searchLocations, - callback), (c, _) { - return c.complete(( - VecPoint.fromPointer(foundLocations), - VecDouble.fromPointer(weights), - VecPoint.fromPointer(searchLocations) - )); + ref, + img.ref, + hitThreshold, + winStride.cvd.ref, + padding.cvd.ref, + callback, + ), (c, foundLocations, weights, searchLocations) { + return c.complete( + ( + VecPoint.fromPointer(foundLocations.cast()), + VecDouble.fromPointer(weights.cast()), + VecPoint.fromPointer(searchLocations.cast()) + ), + ); }); return rval; } Future<(VecPoint foundLocations, VecPoint searchLocations)> detectAsync( - InputArray img, - {double hitThreshold = 0, - (int, int) winStride = (0, 0), - (int, int) padding = (0, 0)}) async { - final foundLocations = calloc(); - final searchLocations = calloc(); - final rval = cvRunAsync<(VecPoint, VecPoint)>( + InputArray img, { + double hitThreshold = 0, + (int, int) winStride = (0, 0), + (int, int) padding = (0, 0), + }) async { + final rval = cvRunAsync2<(VecPoint, VecPoint)>( (callback) => CFFI.HOGDescriptor_Detect2_Async( - ref, - img.ref, - foundLocations, - hitThreshold, - winStride.cvd.ref, - padding.cvd.ref, - searchLocations, - callback), (c, _) { - return c.complete(( - VecPoint.fromPointer(foundLocations), - VecPoint.fromPointer(searchLocations) - )); + ref, + img.ref, + hitThreshold, + winStride.cvd.ref, + padding.cvd.ref, + callback, + ), (c, foundLocations, searchLocations) { + return c.complete( + ( + VecPoint.fromPointer(foundLocations.cast()), + VecPoint.fromPointer(searchLocations.cast()) + ), + ); }); return rval; } - Future detectMultiScaleAsync(InputArray image, - {double hitThreshold = 0, - int minNeighbors = 3, - (int, int) winStride = (0, 0), - (int, int) padding = (0, 0), - double scale = 1.05, - double groupThreshold = 2.0, - bool useMeanshiftGrouping = false}) async { + Future detectMultiScaleAsync( + InputArray image, { + double hitThreshold = 0, + int minNeighbors = 3, + (int, int) winStride = (0, 0), + (int, int) padding = (0, 0), + double scale = 1.05, + double groupThreshold = 2.0, + bool useMeanshiftGrouping = false, + }) async { final rects = calloc(); final rval = cvRunAsync( (callback) => CFFI.HOGDescriptor_DetectMultiScaleWithParams_Async( - ref, - image.ref, - hitThreshold, - winStride.cvd.ref, - padding.cvd.ref, - scale, - groupThreshold, - useMeanshiftGrouping, - callback), (c, _) { + ref, + image.ref, + hitThreshold, + winStride.cvd.ref, + padding.cvd.ref, + scale, + groupThreshold, + useMeanshiftGrouping, + callback, + ), (c, _) { return c.complete(VecRect.fromPointer(rects)); }); return rval; @@ -374,14 +391,20 @@ class HOGDescriptor extends CvStruct { } Future<(VecRect rectList, VecDouble weights)> groupRectanglesAsync( - VecRect rectList, - VecDouble weights, - int groupThreshold, - double eps) async { + VecRect rectList, + VecDouble weights, + int groupThreshold, + double eps, + ) async { final rval = cvRunAsync<(VecRect, VecDouble)>( (callback) => CFFI.HOGDescriptor_groupRectangles_Async( - ref, rectList.ref, weights.ref, groupThreshold, eps, callback), - (c, _) { + ref, + rectList.ref, + weights.ref, + groupThreshold, + eps, + callback, + ), (c, _) { return c.complete((rectList, weights)); }); return rval; @@ -411,7 +434,10 @@ class HOGDescriptor extends CvStruct { } Future groupRectanglesAsync( - VecRect rects, int groupThreshold, double eps) async { + VecRect rects, + int groupThreshold, + double eps, +) async { final rval = cvRunAsync( (callback) => CFFI.GroupRectangles_Async(rects.ref, groupThreshold, eps, callback), @@ -436,105 +462,136 @@ class QRCodeDetector extends CvStruct { } Future<(String rval, Mat straightQRcode)> decodeCurvedAsync( - InputArray img, VecPoint points, - {OutputArray? straightQRcode}) async { - final s = straightQRcode?.ptr ?? calloc(); - final v = calloc>(); - final rval = cvRunAsync<(String, Mat)>( + InputArray img, + VecPoint points, { + OutputArray? straightQRcode, + }) async { + final rval = cvRunAsync2<(String, Mat)>( (callback) => CFFI.QRCodeDetector_decodeCurved_Async( - ref, img.ref, points.ref, s, v, callback), (c, _) { - final ss = v.value.cast().toDartString(); - calloc.free(v); - return c.complete((ss, Mat.fromPointer(s))); + ref, + img.ref, + points.ref, + callback, + ), (c, rval, straightQRcode) { + return c.complete( + ( + rval.cast().toDartString(), + Mat.fromPointer(straightQRcode.cast()) + ), + ); }); return rval; } Future<(String rval, VecPoint points, Mat straightQRcode)> - detectAndDecodeCurvedAsync(InputArray img, - {VecPoint? points, Mat? straightQRcode}) async { - final p = points?.ptr ?? calloc(); - final s = straightQRcode?.ptr ?? calloc(); - final v = calloc>(); - final rval = cvRunAsync<(String, VecPoint, Mat)>( + detectAndDecodeCurvedAsync( + InputArray img, { + VecPoint? points, + Mat? straightQRcode, + }) async { + final rval = cvRunAsync3<(String, VecPoint, Mat)>( (callback) => CFFI.QRCodeDetector_detectAndDecodeCurved_Async( - ref, img.ref, p, s, v, callback), (c, _) { - final ss = v.value.cast().toDartString(); - calloc.free(v); - return c.complete((ss, VecPoint.fromPointer(p), Mat.fromPointer(s))); + ref, + img.ref, + callback, + ), (c, rval, points, straightQRcode) { + return c.complete( + ( + rval.cast().toDartString(), + VecPoint.fromPointer(points.cast()), + Mat.fromPointer(straightQRcode.cast()), + ), + ); }); return rval; } Future<(String ret, VecPoint points, Mat straightCode)> detectAndDecodeAsync( - InputArray img, - {VecPoint? points, - OutputArray? straightCode}) async { - final code = straightCode?.ptr ?? calloc(); - final pts = points?.ptr ?? calloc(); - final v = calloc>(); - final rval = cvRunAsync<(String, VecPoint, Mat)>( - (callback) => CFFI.QRCodeDetector_DetectAndDecode_Async( - ref, img.ref, pts, code, v, callback), (c, _) { - final s = v == ffi.nullptr ? "" : v.value.cast().toDartString(); - calloc.free(v); - return c.complete((s, VecPoint.fromPointer(pts), Mat.fromPointer(code))); - }); - return rval; - } - - Future<(bool ret, VecPoint points)> detectAsync(InputArray input, - {VecPoint? points}) async { - final pts = points?.ptr ?? calloc(); - final rval = cvRunAsync<(bool, VecPoint)>( + InputArray img, { + VecPoint? points, + OutputArray? straightCode, + }) async { + final rval = cvRunAsync3<(String, VecPoint, Mat)>( (callback) => - CFFI.QRCodeDetector_Detect_Async(ref, input.ref, pts, callback), - (c, p) { - final ret = p.cast().value; - return c.complete((ret, VecPoint.fromPointer(pts))); + CFFI.QRCodeDetector_DetectAndDecode_Async(ref, img.ref, callback), + (c, ret, points, straightCode) { + return c.complete( + ( + ret.cast().toDartString(), + VecPoint.fromPointer(points.cast()), + Mat.fromPointer(straightCode.cast()), + ), + ); + }); + return rval; + } + + Future<(bool ret, VecPoint points)> detectAsync( + InputArray input, { + VecPoint? points, + }) async { + final rval = cvRunAsync2<(bool, VecPoint)>( + (callback) => + CFFI.QRCodeDetector_Detect_Async(ref, input.ref, callback), + (c, ret, points) { + return c.complete( + ( + ret.cast().value, + VecPoint.fromPointer(points.cast()) + ), + ); }); return rval; } Future<(String ret, VecPoint? points, Mat? straightCode)> decodeAsync( - InputArray img, - {VecPoint? points, - Mat? straightCode}) async { - final p = points?.ptr ?? calloc(); - final ret = calloc>(); - final code = straightCode ?? Mat.empty(); - final rval = cvRunAsync<(String, VecPoint, Mat)>( - (callback) => CFFI.QRCodeDetector_Decode_Async( - ref, img.ref, p, code.ref, ret, callback), (c, _) { - final info = ret.value.cast().toDartString(); - calloc.free(ret); - return c.complete((info, VecPoint.fromPointer(p), code)); - }); - return rval; - } - - Future<(bool ret, VecPoint points)> detectMultiAsync(InputArray img, - {VecPoint? points}) async { - final pts = points?.ptr ?? calloc(); - final rval = cvRunAsync<(bool, VecPoint)>( + InputArray img, { + VecPoint? points, + Mat? straightCode, + }) async { + final rval = cvRunAsync3<(String, VecPoint, Mat)>( + (callback) => CFFI.QRCodeDetector_Decode_Async(ref, img.ref, callback), + (c, ret, points, straightCode) { + return c.complete( + ( + ret.cast().toDartString(), + VecPoint.fromPointer(points.cast()), + Mat.fromPointer(straightCode.cast()), + ), + ); + }); + return rval; + } + + Future<(bool ret, VecPoint points)> detectMultiAsync( + InputArray img, { + VecPoint? points, + }) async { + final rval = cvRunAsync2<(bool, VecPoint)>( (callback) => - CFFI.QRCodeDetector_DetectMulti_Async(ref, img.ref, pts, callback), - (c, p) { - final ret = p.cast().value; - return c.complete((ret, VecPoint.fromPointer(pts))); + CFFI.QRCodeDetector_DetectMulti_Async(ref, img.ref, callback), + (c, ret, points) { + return c.complete(( + ret.cast().value, + VecPoint.fromPointer(points.cast()) + )); }); return rval; } Future<(bool, List, VecPoint, VecMat)> detectAndDecodeMultiAsync( - InputArray img) async { + InputArray img, + ) async { final info = calloc(); final points = calloc(); final codes = calloc(); final rval = calloc(); final ret = cvRunAsync<(bool, List, VecPoint, VecMat)>( (callback) => CFFI.QRCodeDetector_DetectAndDecodeMulti_Async( - ref, img.ref, info, points, codes, rval, callback), (c, _) { + ref, + img.ref, + callback, + ), (c, _) { final ret = ( rval.value, VecVecChar.fromPointer(info).asStringList(), @@ -566,7 +623,10 @@ class QRCodeDetector extends CvStruct { Future setUseAlignmentMarkersAsync(bool useAlignmentMarkers) async { await cvRunAsync( (callback) => CFFI.QRCodeDetector_setUseAlignmentMarkers_Async( - ref, useAlignmentMarkers, callback), (c, _) { + ref, + useAlignmentMarkers, + callback, + ), (c, _) { return c.complete(); }); } @@ -594,32 +654,51 @@ class FaceDetectorYN extends CvStruct { } factory FaceDetectorYN.fromFile( - String model, String config, (int, int) inputSize, - {double scoreThreshold = 0.9, - double nmsThreshold = 0.3, - int topK = 5000, - int backendId = 0, - int targetId = 0}) { + String model, + String config, + (int, int) inputSize, { + double scoreThreshold = 0.9, + double nmsThreshold = 0.3, + int topK = 5000, + int backendId = 0, + int targetId = 0, + }) { final p = calloc(); final cModel = model.toNativeUtf8().cast(); final cConfig = config.toNativeUtf8().cast(); - cvRun(() => CFFI.FaceDetectorYN_New(cModel, cConfig, inputSize.cvd.ref, - scoreThreshold, nmsThreshold, topK, backendId, targetId, p)); + cvRun( + () => CFFI.FaceDetectorYN_New( + cModel, + cConfig, + inputSize.cvd.ref, + scoreThreshold, + nmsThreshold, + topK, + backendId, + targetId, + p, + ), + ); calloc.free(cModel); calloc.free(cConfig); return FaceDetectorYN._(p); } - factory FaceDetectorYN.fromBuffer(String framework, Uint8List bufferModel, - Uint8List bufferConfig, (int, int) inputSize, - {double scoreThreshold = 0.9, - double nmsThreshold = 0.3, - int topK = 5000, - int backendId = 0, - int targetId = 0}) { + factory FaceDetectorYN.fromBuffer( + String framework, + Uint8List bufferModel, + Uint8List bufferConfig, + (int, int) inputSize, { + double scoreThreshold = 0.9, + double nmsThreshold = 0.3, + int topK = 5000, + int backendId = 0, + int targetId = 0, + }) { final p = calloc(); final cFramework = framework.toNativeUtf8().cast(); - cvRun(() => CFFI.FaceDetectorYN_NewFromBuffer( + cvRun( + () => CFFI.FaceDetectorYN_NewFromBuffer( cFramework, VecUChar.fromList(bufferModel).ref, VecUChar.fromList(bufferConfig).ref, @@ -629,7 +708,9 @@ class FaceDetectorYN extends CvStruct { topK, backendId, targetId, - p)); + p, + ), + ); calloc.free(cFramework); return FaceDetectorYN._(p); } @@ -688,7 +769,10 @@ class FaceDetectorYN extends CvStruct { Future setInputSizeAsync((int, int) inputSize) async { await cvRunAsync( (callback) => CFFI.FaceDetectorYN_SetInputSize_Async( - ref, inputSize.cvd.ref, callback), (c, _) { + ref, + inputSize.cvd.ref, + callback, + ), (c, _) { return c.complete(); }); } @@ -696,7 +780,10 @@ class FaceDetectorYN extends CvStruct { Future setScoreThresholdAsync(double scoreThreshold) async { await cvRunAsync( (callback) => CFFI.FaceDetectorYN_SetScoreThreshold_Async( - ref, scoreThreshold, callback), (c, _) { + ref, + scoreThreshold, + callback, + ), (c, _) { return c.complete(); }); } @@ -704,7 +791,10 @@ class FaceDetectorYN extends CvStruct { Future setNMSThresholdAsync(double nmsThreshold) async { await cvRunAsync( (callback) => CFFI.FaceDetectorYN_SetNMSThreshold_Async( - ref, nmsThreshold, callback), (c, _) { + ref, + nmsThreshold, + callback, + ), (c, _) { return c.complete(); }); } @@ -739,13 +829,18 @@ class FaceRecognizerSF extends CvStruct { } } - factory FaceRecognizerSF.fromFile(String model, String config, - {int backendId = 0, int targetId = 0}) { + factory FaceRecognizerSF.fromFile( + String model, + String config, { + int backendId = 0, + int targetId = 0, + }) { final p = calloc(); final cModel = model.toNativeUtf8().cast(); final cConfig = config.toNativeUtf8().cast(); - cvRun(() => - CFFI.FaceRecognizerSF_New(cModel, cConfig, backendId, targetId, p)); + cvRun( + () => CFFI.FaceRecognizerSF_New(cModel, cConfig, backendId, targetId, p), + ); calloc.free(cModel); calloc.free(cConfig); return FaceRecognizerSF._(p); @@ -755,7 +850,11 @@ class FaceRecognizerSF extends CvStruct { final p = calloc(); final rval = cvRunAsync( (callback) => CFFI.FaceRecognizerSF_AlignCrop_Async( - ref, srcImg.ref, faceBox.ref, callback), (c, _) { + ref, + srcImg.ref, + faceBox.ref, + callback, + ), (c, _) { return c.complete(Mat.fromPointer(p)); }); return rval; @@ -765,18 +864,29 @@ class FaceRecognizerSF extends CvStruct { final p = calloc(); final rval = cvRunAsync( (callback) => CFFI.FaceRecognizerSF_Feature_Async( - ref, alignedImg.ref, clone, callback), (c, _) { + ref, + alignedImg.ref, + clone, + callback, + ), (c, _) { return c.complete(Mat.fromPointer(p)); }); return rval; } - Future matchAsync(Mat faceFeature1, Mat faceFeature2, - {int disType = FaceRecognizerSF.FR_COSINE}) async { + Future matchAsync( + Mat faceFeature1, + Mat faceFeature2, { + int disType = FaceRecognizerSF.FR_COSINE, + }) async { final rval = cvRunAsync( (callback) => CFFI.FaceRecognizerSF_Match_Async( - ref, faceFeature1.ref, faceFeature2.ref, disType, callback), - (c, p) { + ref, + faceFeature1.ref, + faceFeature2.ref, + disType, + callback, + ), (c, p) { final rval = p.cast().value; return c.complete(rval); }); @@ -786,7 +896,8 @@ class FaceRecognizerSF extends CvStruct { @override cvg.FaceRecognizerSF get ref => ptr.ref; static final finalizer = OcvFinalizer( - CFFI.addresses.FaceRecognizerSF_Close); + CFFI.addresses.FaceRecognizerSF_Close, + ); void dispose() { finalizer.detach(this); From 3fd0262d00741fcbb587e4e9ca72462a787cf249 Mon Sep 17 00:00:00 2001 From: Abdelaziz Mahdy Date: Wed, 26 Jun 2024 18:30:40 +0300 Subject: [PATCH 06/21] added runasync4 --- lib/src/core/base.dart | 53 +++++++++++++++++++++----- lib/src/objdetect/objdetect_async.dart | 17 +++------ 2 files changed, 50 insertions(+), 20 deletions(-) diff --git a/lib/src/core/base.dart b/lib/src/core/base.dart index 5ab50a03..78946a9d 100644 --- a/lib/src/core/base.dart +++ b/lib/src/core/base.dart @@ -44,9 +44,11 @@ ffi.DynamicLibrary loadNativeLibrary() { "windows" => "$_libraryName.dll", "linux" || "android" || "fuchsia" => "lib$_libraryName.so", "macos" => "lib$_libraryName.dylib", - _ => throw UnsupportedError("Platform ${Platform.operatingSystem} not supported") + _ => throw UnsupportedError( + "Platform ${Platform.operatingSystem} not supported") }; - final libPath = Platform.environment["OPENCV_DART_LIB_PATH"] ?? defaultLibPath; + final libPath = + Platform.environment["OPENCV_DART_LIB_PATH"] ?? defaultLibPath; return ffi.DynamicLibrary.open(libPath); } @@ -62,7 +64,8 @@ abstract class ICvStruct extends CvObject { T get ref; } -abstract class CvStruct extends ICvStruct with EquatableMixin { +abstract class CvStruct extends ICvStruct + with EquatableMixin { CvStruct.fromPointer(super.ptr) : super.fromPointer(); } @@ -137,7 +140,8 @@ Future cvRunAsync2( Future cvRunAsync3( ffi.Pointer Function(cvg.CvCallback_3 callback) func, - void Function(Completer completer, VoidPtr p, VoidPtr p1, VoidPtr p2) onComplete, + void Function(Completer completer, VoidPtr p, VoidPtr p1, VoidPtr p2) + onComplete, ) { final completer = Completer(); late final NativeCallable ccallback; @@ -151,9 +155,33 @@ Future cvRunAsync3( return completer.future; } +Future cvRunAsync4( + ffi.Pointer Function(cvg.CvCallback_4 callback) func, + void Function( + Completer completer, + VoidPtr p, + VoidPtr p1, + VoidPtr p2, + VoidPtr p3, + ) onComplete, +) { + final completer = Completer(); + late final NativeCallable ccallback; + void onResponse(VoidPtr p, VoidPtr p1, VoidPtr p2, VoidPtr p3) { + onComplete(completer, p, p1, p2, p3); + ccallback.close(); + } + + ccallback = ffi.NativeCallable.listener(onResponse); + throwIfFailed(func(ccallback.nativeFunction)); + return completer.future; +} + Future cvRunAsync5( ffi.Pointer Function(cvg.CvCallback_5 callback) func, - void Function(Completer completer, VoidPtr p, VoidPtr p1, VoidPtr p2, VoidPtr p3, VoidPtr p4) onComplete, + void Function(Completer completer, VoidPtr p, VoidPtr p1, VoidPtr p2, + VoidPtr p3, VoidPtr p4) + onComplete, ) { final completer = Completer(); late final NativeCallable ccallback; @@ -168,11 +196,17 @@ Future cvRunAsync5( } // Completers for async -void matCompleter(Completer completer, VoidPtr p) => completer.complete(Mat.fromPointer(p.cast())); +void matCompleter(Completer completer, VoidPtr p) => + completer.complete(Mat.fromPointer(p.cast())); void matCompleter2(Completer<(Mat, Mat)> completer, VoidPtr p, VoidPtr p1) => completer.complete((Mat.fromPointer(p.cast()), Mat.fromPointer(p1.cast()))); -void matCompleter3(Completer<(Mat, Mat, Mat)> completer, VoidPtr p, VoidPtr p1, VoidPtr p2) => - completer.complete((Mat.fromPointer(p.cast()), Mat.fromPointer(p1.cast()), Mat.fromPointer(p2.cast()))); +void matCompleter3(Completer<(Mat, Mat, Mat)> completer, VoidPtr p, VoidPtr p1, + VoidPtr p2) => + completer.complete(( + Mat.fromPointer(p.cast()), + Mat.fromPointer(p1.cast()), + Mat.fromPointer(p2.cast()) + )); // Arena wrapper R cvRunArena( @@ -200,7 +234,8 @@ R cvRunArena( typedef NativeFinalizerFunctionT = ffi.Pointer>; -ffi.NativeFinalizer OcvFinalizer(NativeFinalizerFunctionT func) => +ffi.NativeFinalizer OcvFinalizer( + NativeFinalizerFunctionT func) => ffi.NativeFinalizer(func.cast()); // native types diff --git a/lib/src/objdetect/objdetect_async.dart b/lib/src/objdetect/objdetect_async.dart index d02e1c17..c02062cd 100644 --- a/lib/src/objdetect/objdetect_async.dart +++ b/lib/src/objdetect/objdetect_async.dart @@ -582,23 +582,18 @@ class QRCodeDetector extends CvStruct { Future<(bool, List, VecPoint, VecMat)> detectAndDecodeMultiAsync( InputArray img, ) async { - final info = calloc(); - final points = calloc(); - final codes = calloc(); - final rval = calloc(); - final ret = cvRunAsync<(bool, List, VecPoint, VecMat)>( + final ret = cvRunAsync4<(bool, List, VecPoint, VecMat)>( (callback) => CFFI.QRCodeDetector_DetectAndDecodeMulti_Async( ref, img.ref, callback, - ), (c, _) { + ), (c, info, points, codes, rval) { final ret = ( - rval.value, - VecVecChar.fromPointer(info).asStringList(), - VecPoint.fromPointer(points), - VecMat.fromPointer(codes) + rval.cast().value, + VecVecChar.fromPointer(info.cast()).asStringList(), + VecPoint.fromPointer(points.cast()), + VecMat.fromPointer(codes.cast()) ); - calloc.free(rval); return c.complete(ret); }); return ret; From ca74d8c0357b4988e5d48927a356c21d50c1a4d4 Mon Sep 17 00:00:00 2001 From: Abdelaziz Mahdy Date: Wed, 26 Jun 2024 19:34:14 +0300 Subject: [PATCH 07/21] fix memory leaks --- lib/src/objdetect/objdetect_async.dart | 97 ++++++++++++++------------ 1 file changed, 51 insertions(+), 46 deletions(-) diff --git a/lib/src/objdetect/objdetect_async.dart b/lib/src/objdetect/objdetect_async.dart index c02062cd..86c78ee7 100644 --- a/lib/src/objdetect/objdetect_async.dart +++ b/lib/src/objdetect/objdetect_async.dart @@ -40,6 +40,7 @@ class CascadeClassifier extends CvStruct { (c, p) { final rval = p.cast().value != 0; calloc.free(cname); + calloc.free(p); return c.complete(rval); }); return rval; @@ -53,7 +54,6 @@ class CascadeClassifier extends CvStruct { (int, int) minSize = (0, 0), (int, int) maxSize = (0, 0), }) async { - final ret = calloc(); final rval = cvRunAsync( (callback) => CFFI.CascadeClassifier_DetectMultiScaleWithParams_Async( ref, @@ -64,8 +64,8 @@ class CascadeClassifier extends CvStruct { minSize.cvd.ref, maxSize.cvd.ref, callback, - ), (c, _) { - return c.complete(VecRect.fromPointer(ret)); + ), (c, ret) { + return c.complete(VecRect.fromPointer(ret.cast())); }); return rval; } @@ -137,6 +137,7 @@ class CascadeClassifier extends CvStruct { (callback) => CFFI.CascadeClassifier_Empty_Async(ref, callback), (c, p) { final rval = p.cast().value; + calloc.free(p); return c.complete(rval); }); return rval; @@ -147,19 +148,20 @@ class CascadeClassifier extends CvStruct { (callback) => CFFI.CascadeClassifier_getFeatureType_Async(ref, callback), (c, p) { final rval = p.cast().value; + calloc.free(p); + return c.complete(rval); }); return rval; } Future<(int, int)> getOriginalWindowSizeAsync() async { - final p = calloc(); final rval = cvRunAsync<(int, int)>( (callback) => CFFI.CascadeClassifier_getOriginalWindowSize_Async(ref, callback), - (c, _) { - final ret = (p.ref.width, p.ref.height); - calloc.free(p); + (c, p) { + final size = p.cast().ref; + final ret = (size.width, size.height); return c.complete(ret); }); return rval; @@ -171,6 +173,7 @@ class CascadeClassifier extends CvStruct { CFFI.CascadeClassifier_isOldFormatCascade_Async(ref, callback), (c, p) { final rval = p.cast().value; + calloc.free(p); return c.complete(rval); }); return rval; @@ -220,6 +223,8 @@ class HOGDescriptor extends CvStruct { (c, p) { final rval = p.cast().value; calloc.free(cname); + calloc.free(p); + return c.complete(rval); }); return rval; @@ -230,8 +235,6 @@ class HOGDescriptor extends CvStruct { (int, int) winStride = (0, 0), (int, int) padding = (0, 0), }) async { - final descriptors = calloc(); - final locations = calloc(); final rval = cvRunAsync2<(VecFloat, VecPoint)>( (callback) => CFFI.HOGDescriptor_Compute_Async( ref, @@ -239,21 +242,24 @@ class HOGDescriptor extends CvStruct { winStride.cvd.ref, padding.cvd.ref, callback, - ), (c, _, __) { + ), (c, descriptors, locations) { return c.complete( - (VecFloat.fromPointer(descriptors), VecPoint.fromPointer(locations)), + ( + VecFloat.fromPointer(descriptors.cast()), + VecPoint.fromPointer(locations.cast()) + ), ); }); return rval; } Future<(Mat grad, Mat angleOfs)> computeGradientAsync( - InputArray img, { + InputArray img, + Mat grad, + Mat angleOfs, { (int, int) paddingTL = (0, 0), (int, int) paddingBR = (0, 0), }) async { - final grad = Mat.empty(); - final angleOfs = Mat.empty(); final rval = cvRunAsync0<(Mat, Mat)>( (callback) => CFFI.HOGDescriptor_computeGradient_Async( ref, @@ -331,7 +337,6 @@ class HOGDescriptor extends CvStruct { double groupThreshold = 2.0, bool useMeanshiftGrouping = false, }) async { - final rects = calloc(); final rval = cvRunAsync( (callback) => CFFI.HOGDescriptor_DetectMultiScaleWithParams_Async( ref, @@ -343,29 +348,24 @@ class HOGDescriptor extends CvStruct { groupThreshold, useMeanshiftGrouping, callback, - ), (c, _) { - return c.complete(VecRect.fromPointer(rects)); + ), (c, rects) { + return c.complete(VecRect.fromPointer(rects.cast())); }); return rval; } static Future getDefaultPeopleDetectorAsync() async { - final v = calloc(); - final rval = cvRunAsync( - (callback) => CFFI.HOG_GetDefaultPeopleDetector_Async(callback), - (c, _) { - return c.complete(VecFloat.fromPointer(v)); + final rval = + cvRunAsync(CFFI.HOG_GetDefaultPeopleDetector_Async, (c, v) { + return c.complete(VecFloat.fromPointer(v.cast())); }); return rval; } static Future getDaimlerPeopleDetectorAsync() async { - final v = calloc(); final rval = cvRunAsync( - (callback) => - CFFI.HOGDescriptor_getDaimlerPeopleDetector_Async(callback), - (c, _) { - return c.complete(VecFloat.fromPointer(v)); + CFFI.HOGDescriptor_getDaimlerPeopleDetector_Async, (c, v) { + return c.complete(VecFloat.fromPointer(v.cast())); }); return rval; } @@ -375,6 +375,7 @@ class HOGDescriptor extends CvStruct { (callback) => CFFI.HOGDescriptor_getDescriptorSize_Async(ref, callback), (c, p) { final rval = p.cast().value; + calloc.free(p); return c.complete(rval); }); return rval; @@ -385,6 +386,7 @@ class HOGDescriptor extends CvStruct { (callback) => CFFI.HOGDescriptor_getWinSigma_Async(ref, callback), (c, p) { final rval = p.cast().value; + calloc.free(p); return c.complete(rval); }); return rval; @@ -534,11 +536,10 @@ class QRCodeDetector extends CvStruct { (callback) => CFFI.QRCodeDetector_Detect_Async(ref, input.ref, callback), (c, ret, points) { + final retValue = ret.cast().value; + calloc.free(ret); return c.complete( - ( - ret.cast().value, - VecPoint.fromPointer(points.cast()) - ), + (retValue, VecPoint.fromPointer(points.cast())), ); }); return rval; @@ -571,8 +572,10 @@ class QRCodeDetector extends CvStruct { (callback) => CFFI.QRCodeDetector_DetectMulti_Async(ref, img.ref, callback), (c, ret, points) { + final retValue = ret.cast().value; + calloc.free(ret); return c.complete(( - ret.cast().value, + retValue, VecPoint.fromPointer(points.cast()) )); }); @@ -588,8 +591,10 @@ class QRCodeDetector extends CvStruct { img.ref, callback, ), (c, info, points, codes, rval) { + final rvalValue=rval.cast().value; + calloc.free(rval); final ret = ( - rval.cast().value, + rvalValue, VecVecChar.fromPointer(info.cast()).asStringList(), VecPoint.fromPointer(points.cast()), VecMat.fromPointer(codes.cast()) @@ -711,12 +716,11 @@ class FaceDetectorYN extends CvStruct { } Future<(int, int)> getInputSizeAsync() async { - final p = calloc(); final rval = cvRunAsync<(int, int)>( (callback) => CFFI.FaceDetectorYN_GetInputSize_Async(ref, callback), - (c, _) { - final ret = (p.ref.width, p.ref.height); - calloc.free(p); + (c, p) { + final size = p.cast().ref; + final ret = (size.width, size.height); return c.complete(ret); }); return rval; @@ -727,6 +731,7 @@ class FaceDetectorYN extends CvStruct { (callback) => CFFI.FaceDetectorYN_GetScoreThreshold_Async(ref, callback), (c, p) { final rval = p.cast().value; + calloc.free(p); return c.complete(rval); }); return rval; @@ -737,6 +742,7 @@ class FaceDetectorYN extends CvStruct { (callback) => CFFI.FaceDetectorYN_GetNMSThreshold_Async(ref, callback), (c, p) { final rval = p.cast().value; + calloc.free(p); return c.complete(rval); }); return rval; @@ -746,17 +752,17 @@ class FaceDetectorYN extends CvStruct { final rval = cvRunAsync( (callback) => CFFI.FaceDetectorYN_GetTopK_Async(ref, callback), (c, p) { final rval = p.cast().value; + calloc.free(p); return c.complete(rval); }); return rval; } Future detectAsync(Mat image) async { - final p = calloc(); final rval = cvRunAsync( (callback) => - CFFI.FaceDetectorYN_Detect_Async(ref, image.ref, callback), (c, _) { - return c.complete(Mat.fromPointer(p)); + CFFI.FaceDetectorYN_Detect_Async(ref, image.ref, callback), (c, p) { + return c.complete(Mat.fromPointer(p.cast())); }); return rval; } @@ -842,29 +848,27 @@ class FaceRecognizerSF extends CvStruct { } Future alignCropAsync(Mat srcImg, Mat faceBox) async { - final p = calloc(); final rval = cvRunAsync( (callback) => CFFI.FaceRecognizerSF_AlignCrop_Async( ref, srcImg.ref, faceBox.ref, callback, - ), (c, _) { - return c.complete(Mat.fromPointer(p)); + ), (c, p) { + return c.complete(Mat.fromPointer(p.cast())); }); return rval; } Future featureAsync(Mat alignedImg, {bool clone = false}) async { - final p = calloc(); final rval = cvRunAsync( (callback) => CFFI.FaceRecognizerSF_Feature_Async( ref, alignedImg.ref, clone, callback, - ), (c, _) { - return c.complete(Mat.fromPointer(p)); + ), (c, p) { + return c.complete(Mat.fromPointer(p.cast())); }); return rval; } @@ -883,6 +887,7 @@ class FaceRecognizerSF extends CvStruct { callback, ), (c, p) { final rval = p.cast().value; + calloc.free(p); return c.complete(rval); }); return rval; From 8a464551e0623c14bb5ee67c3c21fd8d3d3d66db Mon Sep 17 00:00:00 2001 From: Abdelaziz Mahdy Date: Wed, 26 Jun 2024 23:31:54 +0300 Subject: [PATCH 08/21] dnn impl --- ffigen.yaml | 2 + lib/src/dnn/dnn_async.dart | 444 +++++++++++++++++++++ lib/src/opencv.g.dart | 792 ++++++++++++++++++++++++++++++++++++- src/dnn/dnn_async.cpp | 314 +++++++++++++++ src/dnn/dnn_async.h | 67 ++++ 5 files changed, 1616 insertions(+), 3 deletions(-) create mode 100644 lib/src/dnn/dnn_async.dart create mode 100644 src/dnn/dnn_async.cpp create mode 100644 src/dnn/dnn_async.h diff --git a/ffigen.yaml b/ffigen.yaml index b71e758d..2fef60f4 100644 --- a/ffigen.yaml +++ b/ffigen.yaml @@ -25,6 +25,7 @@ headers: - src/core/version.h - src/dnn/asyncarray.h - src/dnn/dnn.h + - src/dnn/dnn_async.h - src/extra/aruco.h - src/extra/img_hash.h - src/extra/wechat_qrcode.h @@ -52,6 +53,7 @@ headers: - src/core/version.h - src/dnn/asyncarray.h - src/dnn/dnn.h + - src/dnn/dnn_async.h - src/extra/aruco.h - src/extra/img_hash.h - src/extra/wechat_qrcode.h diff --git a/lib/src/dnn/dnn_async.dart b/lib/src/dnn/dnn_async.dart new file mode 100644 index 00000000..21a06e61 --- /dev/null +++ b/lib/src/dnn/dnn_async.dart @@ -0,0 +1,444 @@ +library cv; + +import 'dart:ffi' as ffi; +import 'dart:typed_data'; +import 'package:ffi/ffi.dart'; + +import '../core/base.dart'; +import '../core/mat.dart'; +import '../core/mat_type.dart'; +import '../core/rect.dart'; +import '../core/scalar.dart'; +import '../core/size.dart'; +import '../core/vec.dart'; +import '../opencv.g.dart' as cvg; + +class Layer extends CvStruct { + Layer._(cvg.LayerPtr ptr, [bool attach = true]) : super.fromPointer(ptr) { + if (attach) { + finalizer.attach(this, ptr.cast(), detach: this); + } + } + + factory Layer.fromPointer(cvg.LayerPtr ptr, [bool attach = true]) => + Layer._(ptr, attach); + + static final finalizer = + OcvFinalizer(CFFI.addresses.Layer_Close); + + void dispose() { + finalizer.detach(this); + CFFI.Layer_Close(ptr); + } + + Future getNameAsync() async { + final p = calloc>(); + final rval = cvRunAsync( + (callback) => CFFI.Layer_GetName_Async(ref, callback), + (c, result) { + final rval = result.cast().toDartString(); + calloc.free(p); + return c.complete(rval); + }, + ); + return rval; + } + + Future getTypeAsync() async { + final p = calloc>(); + final rval = cvRunAsync( + (callback) => CFFI.Layer_GetType_Async(ref, callback), + (c, result) { + final rval = result.cast().toDartString(); + calloc.free(p); + return c.complete(rval); + }, + ); + return rval; + } + + Future inputNameToIndexAsync(String name) async { + final cName = name.toNativeUtf8().cast(); + final rval = cvRunAsync( + (callback) => CFFI.Layer_InputNameToIndex_Async(ref, cName, callback), + (c, p) { + final rval = p.cast().value; + calloc.free(cName); + calloc.free(p); + return c.complete(rval); + }, + ); + return rval; + } + + Future outputNameToIndexAsync(String name) async { + final cName = name.toNativeUtf8().cast(); + final rval = cvRunAsync( + (callback) => CFFI.Layer_OutputNameToIndex_Async(ref, cName, callback), + (c, p) { + final rval = p.cast().value; + calloc.free(cName); + calloc.free(p); + return c.complete(rval); + }, + ); + return rval; + } + + @override + List get props => [ptr.address]; + @override + cvg.Layer get ref => ptr.ref; +} + +class Net extends CvStruct { + Net._(cvg.NetPtr ptr, [bool attach = true]) : super.fromPointer(ptr) { + if (attach) { + finalizer.attach(this, ptr.cast(), detach: this); + } + } + + factory Net.empty() { + final p = calloc(); + cvRun(() => CFFI.Net_Create(p)); + return Net._(p); + } + + factory Net.fromFile(String path, + {String config = "", String framework = ""}) { + return using((arena) { + final cPath = path.toNativeUtf8(allocator: arena).cast(); + final cConfig = config.toNativeUtf8(allocator: arena).cast(); + final cFramework = + framework.toNativeUtf8(allocator: arena).cast(); + final p = calloc(); + cvRun(() => CFFI.Net_ReadNet(cPath, cConfig, cFramework, p)); + return Net._(p); + }); + } + + factory Net.fromBytes(String framework, Uint8List bufferModel, + {Uint8List? bufferConfig}) { + return using((arena) { + bufferConfig ??= Uint8List(0); + final cFramework = + framework.toNativeUtf8(allocator: arena).cast(); + final bufM = VecUChar.fromList(bufferModel); + final bufC = VecUChar.fromList(bufferConfig!); + final p = calloc(); + cvRun(() => CFFI.Net_ReadNetBytes(cFramework, bufM.ref, bufC.ref, p)); + return Net._(p); + }); + } + + factory Net.fromCaffe(String prototxt, String caffeModel) { + return using((arena) { + final cProto = prototxt.toNativeUtf8(allocator: arena).cast(); + final cCaffe = caffeModel.toNativeUtf8(allocator: arena).cast(); + final p = calloc(); + cvRun(() => CFFI.Net_ReadNetFromCaffe(cProto, cCaffe, p)); + return Net._(p); + }); + } + + factory Net.fromCaffeBytes(Uint8List bufferProto, Uint8List bufferModel) { + final p = calloc(); + final bufP = VecUChar.fromList(bufferProto); + final bufM = VecUChar.fromList(bufferModel); + cvRun(() => CFFI.Net_ReadNetFromCaffeBytes(bufP.ref, bufM.ref, p)); + return Net._(p); + } + + factory Net.fromOnnx(String path) { + return using((arena) { + final p = calloc(); + final cpath = path.toNativeUtf8(allocator: arena).cast(); + cvRun(() => CFFI.Net_ReadNetFromONNX(cpath, p)); + return Net._(p); + }); + } + + factory Net.fromOnnxBytes(Uint8List bufferModel) { + final p = calloc(); + final bufM = VecUChar.fromList(bufferModel); + cvRun(() => CFFI.Net_ReadNetFromONNXBytes(bufM.ref, p)); + return Net._(p); + } + + factory Net.fromTensorflow(String path, {String config = ""}) { + return using((arena) { + final p = calloc(); + final cpath = path.toNativeUtf8(allocator: arena).cast(); + final cconf = config.toNativeUtf8(allocator: arena).cast(); + cvRun(() => CFFI.Net_ReadNetFromTensorflow(cpath, cconf, p)); + return Net._(p); + }); + } + + factory Net.fromTensorflowBytes(Uint8List bufferModel, + {Uint8List? bufferConfig}) { + bufferConfig ??= Uint8List(0); + final bufM = VecUChar.fromList(bufferModel); + final bufC = VecUChar.fromList(bufferConfig); + final p = calloc(); + cvRun(() => CFFI.Net_ReadNetFromTensorflowBytes(bufM.ref, bufC.ref, p)); + return Net._(p); + } + + factory Net.fromTFLite(String path) { + return using((arena) { + final p = calloc(); + final cpath = path.toNativeUtf8(allocator: arena).cast(); + cvRun(() => CFFI.Net_ReadNetFromTFLite(cpath, p)); + return Net._(p); + }); + } + + factory Net.fromTFLiteBytes(Uint8List bufferModel) { + final bufM = VecUChar.fromList(bufferModel); + final p = calloc(); + cvRun(() => CFFI.Net_ReadNetFromTFLiteBytes(bufM.ref, p)); + return Net._(p); + } + + factory Net.fromTorch(String path, + {bool isBinary = true, bool evaluate = true}) { + return using((arena) { + final p = calloc(); + final cpath = path.toNativeUtf8(allocator: arena).cast(); + cvRun(() => CFFI.Net_ReadNetFromTorch(cpath, isBinary, evaluate, p)); + return Net._(p); + }); + } + + Future isEmptyAsync() async { + final rval = cvRunAsync( + (callback) => CFFI.Net_Empty_Async(ref, callback), + (c, p) { + final rval = p.cast().value; + calloc.free(p); + return c.complete(rval); + }, + ); + return rval; + } + + Future dumpAsync() async { + final p = calloc>(); + final rval = cvRunAsync( + (callback) => CFFI.Net_Dump_Async(ref, callback), + (c, result) { + final rval = result.cast().toDartString(); + calloc.free(p); + return c.complete(rval); + }, + ); + return rval; + } + + Future setInputAsync(InputArray blob, {String name = ""}) async { + final cname = name.toNativeUtf8().cast(); + await cvRunAsync0( + (callback) => CFFI.Net_SetInput_Async(ref, blob.ref, cname, callback), + (c) { + calloc.free(cname); + return c.complete(); + }, + ); + } + + Future forwardAsync({String outputName = ""}) async { + final rval = cvRunAsync( + (callback) => CFFI.Net_Forward_Async( + ref, outputName.toNativeUtf8().cast(), callback), + (c, result) => c.complete(Mat.fromPointer(result.cast())), + ); + return rval; + } + + Future forwardLayersAsync(List names) async { + final vecName = names.i8; + final rval = cvRunAsync( + (callback) => CFFI.Net_ForwardLayers_Async(ref, vecName.ref, callback), + (c, result) => c.complete(VecMat.fromPointer(result.cast())), + ); + return rval; + } + + Future setPreferableBackendAsync(int backendId) async { + await cvRunAsync0( + (callback) => + CFFI.Net_SetPreferableBackend_Async(ref, backendId, callback), + (c) => c.complete(), + ); + } + + Future setPreferableTargetAsync(int targetId) async { + await cvRunAsync0( + (callback) => CFFI.Net_SetPreferableTarget_Async(ref, targetId, callback), + (c) => c.complete(), + ); + } + + Future getPerfProfileAsync() async { + final rval = cvRunAsync( + (callback) => CFFI.Net_GetPerfProfile_Async(ref, callback), + (c, p) { + final rval = p.cast().value; + calloc.free(p); + return c.complete(rval); + }, + ); + return rval; + } + + Future getUnconnectedOutLayersAsync() async { + final rval = cvRunAsync( + (callback) => CFFI.Net_GetUnconnectedOutLayers_Async(ref, callback), + (c, result) => c.complete(VecInt.fromPointer(result.cast())), + ); + return rval; + } + + Future> getLayerNamesAsync() async { + final rval = cvRunAsync>( + (callback) => CFFI.Net_GetLayerNames_Async(ref, callback), + (c, result) => c.complete( + VecVecChar.fromPointer(result.cast()).asStringList()), + ); + return rval; + } + + Future<(VecFloat, VecInt)> getInputDetailsAsync() async { + final rval = cvRunAsync2<(VecFloat, VecInt)>( + (callback) => CFFI.Net_GetInputDetails_Async(ref, callback), + (c, sc, zp) => c.complete(( + VecFloat.fromPointer(sc.cast()), + VecInt.fromPointer(zp.cast()) + )), + ); + return rval; + } + + Future getBlobChannelAsync(Mat blob, int imgidx, int chnidx) async { + final rval = cvRunAsync( + (callback) => + CFFI.Net_GetBlobChannel_Async(blob.ref, imgidx, chnidx, callback), + (c, result) => c.complete(Mat.fromPointer(result.cast())), + ); + return rval; + } + + Future getBlobSizeAsync(Mat blob) async { + final rval = cvRunAsync( + (callback) => CFFI.Net_GetBlobSize_Async(blob.ref, callback), + (c, result) => c.complete(Scalar.fromPointer(result.cast())), + ); + return rval; + } + + Future getLayerAsync(int index) async { + final rval = cvRunAsync( + (callback) => CFFI.Net_GetLayer_Async(ref, index, callback), + (c, result) => c.complete(Layer.fromPointer(result.cast())), + ); + return rval; + } + + static Future blobFromImageAsync( + InputArray image, { + double scalefactor = 1.0, + (int, int) size = (0, 0), + Scalar? mean, + bool swapRB = false, + bool crop = false, + int ddepth = MatType.CV_32F, + }) async { + mean ??= Scalar.zeros; + final rval = await cvRunAsync( + (callback) => CFFI.Net_BlobFromImage_Async( + image.ref, + scalefactor, + size.cvd.ref, + mean!.ref, + swapRB, + crop, + ddepth, + callback, + ), + (c, mat) => c.complete(Mat.fromPointer(mat.cast())), + ); + return rval; + } + + static Future blobFromImagesAsync( + VecMat images, { + double scalefactor = 1.0, + (int, int) size = (0, 0), + Scalar? mean, + bool swapRB = false, + bool crop = false, + int ddepth = MatType.CV_32F, + }) async { + mean ??= Scalar.zeros; + final rval = await cvRunAsync( + (callback) => CFFI.Net_BlobFromImages_Async( + images.ref, + scalefactor, + size.cvd.ref, + mean!.ref, + swapRB, + crop, + ddepth, + callback, + ), + (c, blob) => c.complete(Mat.fromPointer(blob.cast())), + ); + return rval; + } + + static Future> imagesFromBlobAsync(Mat blob) async { + final rval = cvRunAsync>( + (callback) => CFFI.Net_ImagesFromBlob_Async(blob.ref, callback), + (c, result) => + c.complete(VecMat.fromPointer(result.cast()).toList()), + ); + return rval; + } + + static Future> NMSBoxesAsync( + VecRect bboxes, + VecFloat scores, + double scoreThreshold, + double nmsThreshold, { + double eta = 1.0, + int topK = 0, + }) async { + final rval = cvRunAsync>( + (callback) => CFFI.NMSBoxesWithParams_Async( + bboxes.ref, + scores.ref, + scoreThreshold, + nmsThreshold, + eta, + topK, + callback, + ), + (c, result) => + c.complete(VecInt.fromPointer(result.cast()).toList()), + ); + return rval; + } + + static final finalizer = OcvFinalizer(CFFI.addresses.Net_Close); + + void dispose() { + finalizer.detach(this); + CFFI.Net_Close(ptr); + } + + @override + List get props => [ptr.address]; + @override + cvg.Net get ref => ptr.ref; +} diff --git a/lib/src/opencv.g.dart b/lib/src/opencv.g.dart index 52dc0180..7079d0f8 100644 --- a/lib/src/opencv.g.dart +++ b/lib/src/opencv.g.dart @@ -8185,6 +8185,22 @@ class CvNative { late final _Layer_Close = _Layer_ClosePtr.asFunction(); + void Layer_Close_Async( + LayerPtr1 layer, + CvCallback_0 callback, + ) { + return _Layer_Close_Async( + layer, + callback, + ); + } + + late final _Layer_Close_AsyncPtr = + _lookup>( + 'Layer_Close_Async'); + late final _Layer_Close_Async = _Layer_Close_AsyncPtr.asFunction< + void Function(LayerPtr1, CvCallback_0)>(); + ffi.Pointer Layer_GetName( Layer layer, ffi.Pointer> rval, @@ -8203,6 +8219,23 @@ class CvNative { ffi.Pointer Function( Layer, ffi.Pointer>)>(); + ffi.Pointer Layer_GetName_Async( + Layer layer, + CvCallback_1 callback, + ) { + return _Layer_GetName_Async( + layer, + callback, + ); + } + + late final _Layer_GetName_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Layer, CvCallback_1)>>( + 'Layer_GetName_Async'); + late final _Layer_GetName_Async = _Layer_GetName_AsyncPtr.asFunction< + ffi.Pointer Function(Layer, CvCallback_1)>(); + ffi.Pointer Layer_GetType( Layer layer, ffi.Pointer> rval, @@ -8221,6 +8254,23 @@ class CvNative { ffi.Pointer Function( Layer, ffi.Pointer>)>(); + ffi.Pointer Layer_GetType_Async( + Layer layer, + CvCallback_1 callback, + ) { + return _Layer_GetType_Async( + layer, + callback, + ); + } + + late final _Layer_GetType_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Layer, CvCallback_1)>>( + 'Layer_GetType_Async'); + late final _Layer_GetType_Async = _Layer_GetType_AsyncPtr.asFunction< + ffi.Pointer Function(Layer, CvCallback_1)>(); + ffi.Pointer Layer_InputNameToIndex( Layer layer, ffi.Pointer name, @@ -8241,6 +8291,27 @@ class CvNative { ffi.Pointer Function( Layer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Layer_InputNameToIndex_Async( + Layer layer, + ffi.Pointer name, + CvCallback_1 callback, + ) { + return _Layer_InputNameToIndex_Async( + layer, + name, + callback, + ); + } + + late final _Layer_InputNameToIndex_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Layer, ffi.Pointer, + CvCallback_1)>>('Layer_InputNameToIndex_Async'); + late final _Layer_InputNameToIndex_Async = + _Layer_InputNameToIndex_AsyncPtr.asFunction< + ffi.Pointer Function( + Layer, ffi.Pointer, CvCallback_1)>(); + ffi.Pointer Layer_OutputNameToIndex( Layer layer, ffi.Pointer name, @@ -8261,6 +8332,27 @@ class CvNative { ffi.Pointer Function( Layer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Layer_OutputNameToIndex_Async( + Layer layer, + ffi.Pointer name, + CvCallback_1 callback, + ) { + return _Layer_OutputNameToIndex_Async( + layer, + name, + callback, + ); + } + + late final _Layer_OutputNameToIndex_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Layer, ffi.Pointer, + CvCallback_1)>>('Layer_OutputNameToIndex_Async'); + late final _Layer_OutputNameToIndex_Async = + _Layer_OutputNameToIndex_AsyncPtr.asFunction< + ffi.Pointer Function( + Layer, ffi.Pointer, CvCallback_1)>(); + ffi.Pointer Line( Mat img, Point pt1, @@ -13594,6 +13686,65 @@ class CvNative { ffi.Pointer Function(VecRect, VecFloat, double, double, ffi.Pointer, double, int)>(); + ffi.Pointer NMSBoxesWithParams_Async( + VecRect bboxes, + VecFloat scores, + double score_threshold, + double nms_threshold, + double eta, + int top_k, + CvCallback_1 callback, + ) { + return _NMSBoxesWithParams_Async( + bboxes, + scores, + score_threshold, + nms_threshold, + eta, + top_k, + callback, + ); + } + + late final _NMSBoxesWithParams_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecRect, + VecFloat, + ffi.Float, + ffi.Float, + ffi.Float, + ffi.Int, + CvCallback_1)>>('NMSBoxesWithParams_Async'); + late final _NMSBoxesWithParams_Async = + _NMSBoxesWithParams_AsyncPtr.asFunction< + ffi.Pointer Function( + VecRect, VecFloat, double, double, double, int, CvCallback_1)>(); + + ffi.Pointer NMSBoxes_Async( + VecRect bboxes, + VecFloat scores, + double score_threshold, + double nms_threshold, + CvCallback_1 callback, + ) { + return _NMSBoxes_Async( + bboxes, + scores, + score_threshold, + nms_threshold, + callback, + ); + } + + late final _NMSBoxes_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecRect, VecFloat, ffi.Float, + ffi.Float, CvCallback_1)>>('NMSBoxes_Async'); + late final _NMSBoxes_Async = _NMSBoxes_AsyncPtr.asFunction< + ffi.Pointer Function( + VecRect, VecFloat, double, double, CvCallback_1)>(); + ffi.Pointer Net_BlobFromImage( Mat image, Mat blob, @@ -13624,6 +13775,43 @@ class CvNative { ffi.Pointer Function( Mat, Mat, double, Size, Scalar, bool, bool, int)>(); + ffi.Pointer Net_BlobFromImage_Async( + Mat image, + double scalefactor, + Size size, + Scalar mean, + bool swapRB, + bool crop, + int ddepth, + CvCallback_1 callback, + ) { + return _Net_BlobFromImage_Async( + image, + scalefactor, + size, + mean, + swapRB, + crop, + ddepth, + callback, + ); + } + + late final _Net_BlobFromImage_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, + ffi.Double, + Size, + Scalar, + ffi.Bool, + ffi.Bool, + ffi.Int, + CvCallback_1)>>('Net_BlobFromImage_Async'); + late final _Net_BlobFromImage_Async = _Net_BlobFromImage_AsyncPtr.asFunction< + ffi.Pointer Function( + Mat, double, Size, Scalar, bool, bool, int, CvCallback_1)>(); + ffi.Pointer Net_BlobFromImages( VecMat images, Mat blob, @@ -13654,6 +13842,44 @@ class CvNative { ffi.Pointer Function( VecMat, Mat, double, Size, Scalar, bool, bool, int)>(); + ffi.Pointer Net_BlobFromImages_Async( + VecMat images, + double scalefactor, + Size size, + Scalar mean, + bool swapRB, + bool crop, + int ddepth, + CvCallback_1 callback, + ) { + return _Net_BlobFromImages_Async( + images, + scalefactor, + size, + mean, + swapRB, + crop, + ddepth, + callback, + ); + } + + late final _Net_BlobFromImages_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecMat, + ffi.Double, + Size, + Scalar, + ffi.Bool, + ffi.Bool, + ffi.Int, + CvCallback_1)>>('Net_BlobFromImages_Async'); + late final _Net_BlobFromImages_Async = + _Net_BlobFromImages_AsyncPtr.asFunction< + ffi.Pointer Function( + VecMat, double, Size, Scalar, bool, bool, int, CvCallback_1)>(); + void Net_Close( NetPtr net, ) { @@ -13666,6 +13892,22 @@ class CvNative { _lookup>('Net_Close'); late final _Net_Close = _Net_ClosePtr.asFunction(); + void Net_Close_Async( + NetPtr1 net, + CvCallback_0 callback, + ) { + return _Net_Close_Async( + net, + callback, + ); + } + + late final _Net_Close_AsyncPtr = + _lookup>( + 'Net_Close_Async'); + late final _Net_Close_Async = + _Net_Close_AsyncPtr.asFunction(); + ffi.Pointer Net_Create( ffi.Pointer rval, ) { @@ -13680,6 +13922,20 @@ class CvNative { late final _Net_Create = _Net_CreatePtr.asFunction< ffi.Pointer Function(ffi.Pointer)>(); + ffi.Pointer Net_Create_Async( + CvCallback_1 callback, + ) { + return _Net_Create_Async( + callback, + ); + } + + late final _Net_Create_AsyncPtr = + _lookup Function(CvCallback_1)>>( + 'Net_Create_Async'); + late final _Net_Create_Async = _Net_Create_AsyncPtr.asFunction< + ffi.Pointer Function(CvCallback_1)>(); + ffi.Pointer Net_Dump( Net net, ffi.Pointer> rval, @@ -13698,6 +13954,22 @@ class CvNative { ffi.Pointer Function( Net, ffi.Pointer>)>(); + ffi.Pointer Net_Dump_Async( + Net net, + CvCallback_1 callback, + ) { + return _Net_Dump_Async( + net, + callback, + ); + } + + late final _Net_Dump_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Net, CvCallback_1)>>('Net_Dump_Async'); + late final _Net_Dump_Async = _Net_Dump_AsyncPtr.asFunction< + ffi.Pointer Function(Net, CvCallback_1)>(); + ffi.Pointer Net_Empty( Net net, ffi.Pointer rval, @@ -13715,6 +13987,23 @@ class CvNative { late final _Net_Empty = _Net_EmptyPtr.asFunction< ffi.Pointer Function(Net, ffi.Pointer)>(); + ffi.Pointer Net_Empty_Async( + Net net, + CvCallback_1 callback, + ) { + return _Net_Empty_Async( + net, + callback, + ); + } + + late final _Net_Empty_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Net, CvCallback_1)>>( + 'Net_Empty_Async'); + late final _Net_Empty_Async = _Net_Empty_AsyncPtr.asFunction< + ffi.Pointer Function(Net, CvCallback_1)>(); + ffi.Pointer Net_Forward( Net net, ffi.Pointer outputName, @@ -13754,6 +14043,45 @@ class CvNative { late final _Net_ForwardLayers = _Net_ForwardLayersPtr.asFunction< ffi.Pointer Function(Net, ffi.Pointer, VecVecChar)>(); + ffi.Pointer Net_ForwardLayers_Async( + Net net, + VecVecChar outBlobNames, + CvCallback_1 callback, + ) { + return _Net_ForwardLayers_Async( + net, + outBlobNames, + callback, + ); + } + + late final _Net_ForwardLayers_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, VecVecChar, CvCallback_1)>>('Net_ForwardLayers_Async'); + late final _Net_ForwardLayers_Async = _Net_ForwardLayers_AsyncPtr.asFunction< + ffi.Pointer Function(Net, VecVecChar, CvCallback_1)>(); + + ffi.Pointer Net_Forward_Async( + Net net, + ffi.Pointer outputName, + CvCallback_1 callback, + ) { + return _Net_Forward_Async( + net, + outputName, + callback, + ); + } + + late final _Net_Forward_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Pointer, CvCallback_1)>>('Net_Forward_Async'); + late final _Net_Forward_Async = _Net_Forward_AsyncPtr.asFunction< + ffi.Pointer Function( + Net, ffi.Pointer, CvCallback_1)>(); + ffi.Pointer Net_FromNet( Net net, ffi.Pointer rval, @@ -13771,6 +14099,23 @@ class CvNative { late final _Net_FromNet = _Net_FromNetPtr.asFunction< ffi.Pointer Function(Net, ffi.Pointer)>(); + ffi.Pointer Net_FromNet_Async( + Net net, + CvCallback_1 callback, + ) { + return _Net_FromNet_Async( + net, + callback, + ); + } + + late final _Net_FromNet_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Net, CvCallback_1)>>( + 'Net_FromNet_Async'); + late final _Net_FromNet_Async = _Net_FromNet_AsyncPtr.asFunction< + ffi.Pointer Function(Net, CvCallback_1)>(); + ffi.Pointer Net_GetBlobChannel( Mat blob, int imgidx, @@ -13792,6 +14137,28 @@ class CvNative { late final _Net_GetBlobChannel = _Net_GetBlobChannelPtr.asFunction< ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + ffi.Pointer Net_GetBlobChannel_Async( + Mat blob, + int imgidx, + int chnidx, + CvCallback_1 callback, + ) { + return _Net_GetBlobChannel_Async( + blob, + imgidx, + chnidx, + callback, + ); + } + + late final _Net_GetBlobChannel_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, + CvCallback_1)>>('Net_GetBlobChannel_Async'); + late final _Net_GetBlobChannel_Async = + _Net_GetBlobChannel_AsyncPtr.asFunction< + ffi.Pointer Function(Mat, int, int, CvCallback_1)>(); + ffi.Pointer Net_GetBlobSize( Mat blob, ffi.Pointer rval, @@ -13809,9 +14176,26 @@ class CvNative { late final _Net_GetBlobSize = _Net_GetBlobSizePtr.asFunction< ffi.Pointer Function(Mat, ffi.Pointer)>(); - ffi.Pointer Net_GetInputDetails( - Net net, - ffi.Pointer scales, + ffi.Pointer Net_GetBlobSize_Async( + Mat blob, + CvCallback_1 callback, + ) { + return _Net_GetBlobSize_Async( + blob, + callback, + ); + } + + late final _Net_GetBlobSize_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Mat, CvCallback_1)>>( + 'Net_GetBlobSize_Async'); + late final _Net_GetBlobSize_Async = _Net_GetBlobSize_AsyncPtr.asFunction< + ffi.Pointer Function(Mat, CvCallback_1)>(); + + ffi.Pointer Net_GetInputDetails( + Net net, + ffi.Pointer scales, ffi.Pointer zeropoints, ) { return _Net_GetInputDetails( @@ -13829,6 +14213,23 @@ class CvNative { ffi.Pointer Function( Net, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Net_GetInputDetails_Async( + Net net, + CvCallback_2 callback, + ) { + return _Net_GetInputDetails_Async( + net, + callback, + ); + } + + late final _Net_GetInputDetails_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Net, CvCallback_2)>>( + 'Net_GetInputDetails_Async'); + late final _Net_GetInputDetails_Async = _Net_GetInputDetails_AsyncPtr + .asFunction Function(Net, CvCallback_2)>(); + ffi.Pointer Net_GetLayer( Net net, int layerid, @@ -13865,6 +14266,42 @@ class CvNative { late final _Net_GetLayerNames = _Net_GetLayerNamesPtr.asFunction< ffi.Pointer Function(Net, ffi.Pointer)>(); + ffi.Pointer Net_GetLayerNames_Async( + Net net, + CvCallback_1 callback, + ) { + return _Net_GetLayerNames_Async( + net, + callback, + ); + } + + late final _Net_GetLayerNames_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Net, CvCallback_1)>>( + 'Net_GetLayerNames_Async'); + late final _Net_GetLayerNames_Async = _Net_GetLayerNames_AsyncPtr.asFunction< + ffi.Pointer Function(Net, CvCallback_1)>(); + + ffi.Pointer Net_GetLayer_Async( + Net net, + int layerid, + CvCallback_1 callback, + ) { + return _Net_GetLayer_Async( + net, + layerid, + callback, + ); + } + + late final _Net_GetLayer_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Int, CvCallback_1)>>('Net_GetLayer_Async'); + late final _Net_GetLayer_Async = _Net_GetLayer_AsyncPtr.asFunction< + ffi.Pointer Function(Net, int, CvCallback_1)>(); + ffi.Pointer Net_GetPerfProfile( Net net, ffi.Pointer rval, @@ -13882,6 +14319,23 @@ class CvNative { late final _Net_GetPerfProfile = _Net_GetPerfProfilePtr.asFunction< ffi.Pointer Function(Net, ffi.Pointer)>(); + ffi.Pointer Net_GetPerfProfile_Async( + Net net, + CvCallback_1 callback, + ) { + return _Net_GetPerfProfile_Async( + net, + callback, + ); + } + + late final _Net_GetPerfProfile_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Net, CvCallback_1)>>( + 'Net_GetPerfProfile_Async'); + late final _Net_GetPerfProfile_Async = _Net_GetPerfProfile_AsyncPtr + .asFunction Function(Net, CvCallback_1)>(); + ffi.Pointer Net_GetUnconnectedOutLayers( Net net, ffi.Pointer rval, @@ -13899,6 +14353,24 @@ class CvNative { late final _Net_GetUnconnectedOutLayers = _Net_GetUnconnectedOutLayersPtr .asFunction Function(Net, ffi.Pointer)>(); + ffi.Pointer Net_GetUnconnectedOutLayers_Async( + Net net, + CvCallback_1 callback, + ) { + return _Net_GetUnconnectedOutLayers_Async( + net, + callback, + ); + } + + late final _Net_GetUnconnectedOutLayers_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Net, CvCallback_1)>>( + 'Net_GetUnconnectedOutLayers_Async'); + late final _Net_GetUnconnectedOutLayers_Async = + _Net_GetUnconnectedOutLayers_AsyncPtr.asFunction< + ffi.Pointer Function(Net, CvCallback_1)>(); + ffi.Pointer Net_ImagesFromBlob( Mat blob, ffi.Pointer rval, @@ -13916,6 +14388,23 @@ class CvNative { late final _Net_ImagesFromBlob = _Net_ImagesFromBlobPtr.asFunction< ffi.Pointer Function(Mat, ffi.Pointer)>(); + ffi.Pointer Net_ImagesFromBlob_Async( + Mat blob, + CvCallback_1 callback, + ) { + return _Net_ImagesFromBlob_Async( + blob, + callback, + ); + } + + late final _Net_ImagesFromBlob_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Mat, CvCallback_1)>>( + 'Net_ImagesFromBlob_Async'); + late final _Net_ImagesFromBlob_Async = _Net_ImagesFromBlob_AsyncPtr + .asFunction Function(Mat, CvCallback_1)>(); + ffi.Pointer Net_ReadNet( ffi.Pointer model, ffi.Pointer config, @@ -13963,6 +14452,28 @@ class CvNative { ffi.Pointer Function( ffi.Pointer, VecUChar, VecUChar, ffi.Pointer)>(); + ffi.Pointer Net_ReadNetBytes_Async( + ffi.Pointer framework, + VecUChar model, + VecUChar config, + CvCallback_1 callback, + ) { + return _Net_ReadNetBytes_Async( + framework, + model, + config, + callback, + ); + } + + late final _Net_ReadNetBytes_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, VecUChar, + VecUChar, CvCallback_1)>>('Net_ReadNetBytes_Async'); + late final _Net_ReadNetBytes_Async = _Net_ReadNetBytes_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, VecUChar, VecUChar, CvCallback_1)>(); + ffi.Pointer Net_ReadNetFromCaffe( ffi.Pointer prototxt, ffi.Pointer caffeModel, @@ -14006,6 +14517,49 @@ class CvNative { ffi.Pointer Function( VecUChar, VecUChar, ffi.Pointer)>(); + ffi.Pointer Net_ReadNetFromCaffeBytes_Async( + VecUChar prototxt, + VecUChar caffeModel, + CvCallback_1 callback, + ) { + return _Net_ReadNetFromCaffeBytes_Async( + prototxt, + caffeModel, + callback, + ); + } + + late final _Net_ReadNetFromCaffeBytes_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecUChar, VecUChar, + CvCallback_1)>>('Net_ReadNetFromCaffeBytes_Async'); + late final _Net_ReadNetFromCaffeBytes_Async = + _Net_ReadNetFromCaffeBytes_AsyncPtr.asFunction< + ffi.Pointer Function(VecUChar, VecUChar, CvCallback_1)>(); + + ffi.Pointer Net_ReadNetFromCaffe_Async( + ffi.Pointer prototxt, + ffi.Pointer caffeModel, + CvCallback_1 callback, + ) { + return _Net_ReadNetFromCaffe_Async( + prototxt, + caffeModel, + callback, + ); + } + + late final _Net_ReadNetFromCaffe_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + CvCallback_1)>>('Net_ReadNetFromCaffe_Async'); + late final _Net_ReadNetFromCaffe_Async = + _Net_ReadNetFromCaffe_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, CvCallback_1)>(); + ffi.Pointer Net_ReadNetFromONNX( ffi.Pointer model, ffi.Pointer rval, @@ -14041,6 +14595,43 @@ class CvNative { late final _Net_ReadNetFromONNXBytes = _Net_ReadNetFromONNXBytesPtr .asFunction Function(VecUChar, ffi.Pointer)>(); + ffi.Pointer Net_ReadNetFromONNXBytes_Async( + VecUChar model, + CvCallback_1 callback, + ) { + return _Net_ReadNetFromONNXBytes_Async( + model, + callback, + ); + } + + late final _Net_ReadNetFromONNXBytes_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecUChar, CvCallback_1)>>('Net_ReadNetFromONNXBytes_Async'); + late final _Net_ReadNetFromONNXBytes_Async = + _Net_ReadNetFromONNXBytes_AsyncPtr.asFunction< + ffi.Pointer Function(VecUChar, CvCallback_1)>(); + + ffi.Pointer Net_ReadNetFromONNX_Async( + ffi.Pointer model, + CvCallback_1 callback, + ) { + return _Net_ReadNetFromONNX_Async( + model, + callback, + ); + } + + late final _Net_ReadNetFromONNX_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + CvCallback_1)>>('Net_ReadNetFromONNX_Async'); + late final _Net_ReadNetFromONNX_Async = + _Net_ReadNetFromONNX_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, CvCallback_1)>(); + ffi.Pointer Net_ReadNetFromTFLite( ffi.Pointer model, ffi.Pointer rval, @@ -14076,6 +14667,43 @@ class CvNative { late final _Net_ReadNetFromTFLiteBytes = _Net_ReadNetFromTFLiteBytesPtr .asFunction Function(VecUChar, ffi.Pointer)>(); + ffi.Pointer Net_ReadNetFromTFLiteBytes_Async( + VecUChar bufferModel, + CvCallback_1 callback, + ) { + return _Net_ReadNetFromTFLiteBytes_Async( + bufferModel, + callback, + ); + } + + late final _Net_ReadNetFromTFLiteBytes_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecUChar, CvCallback_1)>>('Net_ReadNetFromTFLiteBytes_Async'); + late final _Net_ReadNetFromTFLiteBytes_Async = + _Net_ReadNetFromTFLiteBytes_AsyncPtr.asFunction< + ffi.Pointer Function(VecUChar, CvCallback_1)>(); + + ffi.Pointer Net_ReadNetFromTFLite_Async( + ffi.Pointer model, + CvCallback_1 callback, + ) { + return _Net_ReadNetFromTFLite_Async( + model, + callback, + ); + } + + late final _Net_ReadNetFromTFLite_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + CvCallback_1)>>('Net_ReadNetFromTFLite_Async'); + late final _Net_ReadNetFromTFLite_Async = + _Net_ReadNetFromTFLite_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, CvCallback_1)>(); + ffi.Pointer Net_ReadNetFromTensorflow( ffi.Pointer model, ffi.Pointer config, @@ -14120,6 +14748,49 @@ class CvNative { ffi.Pointer Function( VecUChar, VecUChar, ffi.Pointer)>(); + ffi.Pointer Net_ReadNetFromTensorflowBytes_Async( + VecUChar model, + VecUChar config, + CvCallback_1 callback, + ) { + return _Net_ReadNetFromTensorflowBytes_Async( + model, + config, + callback, + ); + } + + late final _Net_ReadNetFromTensorflowBytes_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecUChar, VecUChar, + CvCallback_1)>>('Net_ReadNetFromTensorflowBytes_Async'); + late final _Net_ReadNetFromTensorflowBytes_Async = + _Net_ReadNetFromTensorflowBytes_AsyncPtr.asFunction< + ffi.Pointer Function(VecUChar, VecUChar, CvCallback_1)>(); + + ffi.Pointer Net_ReadNetFromTensorflow_Async( + ffi.Pointer model, + ffi.Pointer config, + CvCallback_1 callback, + ) { + return _Net_ReadNetFromTensorflow_Async( + model, + config, + callback, + ); + } + + late final _Net_ReadNetFromTensorflow_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + CvCallback_1)>>('Net_ReadNetFromTensorflow_Async'); + late final _Net_ReadNetFromTensorflow_Async = + _Net_ReadNetFromTensorflow_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, CvCallback_1)>(); + ffi.Pointer Net_ReadNetFromTorch( ffi.Pointer model, bool isBinary, @@ -14142,6 +14813,54 @@ class CvNative { ffi.Pointer Function( ffi.Pointer, bool, bool, ffi.Pointer)>(); + ffi.Pointer Net_ReadNetFromTorch_Async( + ffi.Pointer model, + bool isBinary, + bool evaluate, + CvCallback_1 callback, + ) { + return _Net_ReadNetFromTorch_Async( + model, + isBinary, + evaluate, + callback, + ); + } + + late final _Net_ReadNetFromTorch_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Bool, + ffi.Bool, CvCallback_1)>>('Net_ReadNetFromTorch_Async'); + late final _Net_ReadNetFromTorch_Async = + _Net_ReadNetFromTorch_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, bool, bool, CvCallback_1)>(); + + ffi.Pointer Net_ReadNet_Async( + ffi.Pointer model, + ffi.Pointer config, + ffi.Pointer framework, + CvCallback_1 callback, + ) { + return _Net_ReadNet_Async( + model, + config, + framework, + callback, + ); + } + + late final _Net_ReadNet_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CvCallback_1)>>('Net_ReadNet_Async'); + late final _Net_ReadNet_Async = _Net_ReadNet_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, CvCallback_1)>(); + ffi.Pointer Net_SetInput( Net net, Mat blob, @@ -14161,6 +14880,28 @@ class CvNative { late final _Net_SetInput = _Net_SetInputPtr.asFunction< ffi.Pointer Function(Net, Mat, ffi.Pointer)>(); + ffi.Pointer Net_SetInput_Async( + Net net, + Mat blob, + ffi.Pointer name, + CvCallback_0 callback, + ) { + return _Net_SetInput_Async( + net, + blob, + name, + callback, + ); + } + + late final _Net_SetInput_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Net, Mat, ffi.Pointer, + CvCallback_0)>>('Net_SetInput_Async'); + late final _Net_SetInput_Async = _Net_SetInput_AsyncPtr.asFunction< + ffi.Pointer Function( + Net, Mat, ffi.Pointer, CvCallback_0)>(); + ffi.Pointer Net_SetPreferableBackend( Net net, int backend, @@ -14177,6 +14918,26 @@ class CvNative { late final _Net_SetPreferableBackend = _Net_SetPreferableBackendPtr .asFunction Function(Net, int)>(); + ffi.Pointer Net_SetPreferableBackend_Async( + Net net, + int backend, + CvCallback_0 callback, + ) { + return _Net_SetPreferableBackend_Async( + net, + backend, + callback, + ); + } + + late final _Net_SetPreferableBackend_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Int, CvCallback_0)>>('Net_SetPreferableBackend_Async'); + late final _Net_SetPreferableBackend_Async = + _Net_SetPreferableBackend_AsyncPtr.asFunction< + ffi.Pointer Function(Net, int, CvCallback_0)>(); + ffi.Pointer Net_SetPreferableTarget( Net net, int target, @@ -14193,6 +14954,25 @@ class CvNative { late final _Net_SetPreferableTarget = _Net_SetPreferableTargetPtr.asFunction< ffi.Pointer Function(Net, int)>(); + ffi.Pointer Net_SetPreferableTarget_Async( + Net net, + int target, + CvCallback_0 callback, + ) { + return _Net_SetPreferableTarget_Async( + net, + target, + callback, + ); + } + + late final _Net_SetPreferableTarget_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Int, CvCallback_0)>>('Net_SetPreferableTarget_Async'); + late final _Net_SetPreferableTarget_Async = _Net_SetPreferableTarget_AsyncPtr + .asFunction Function(Net, int, CvCallback_0)>(); + ffi.Pointer Net_forwardAsync( Net net, ffi.Pointer outputName, @@ -23872,6 +24652,8 @@ class _SymbolAddresses { get KalmanFilter_Close => _library._KalmanFilter_ClosePtr; ffi.Pointer> get Layer_Close => _library._Layer_ClosePtr; + ffi.Pointer> + get Layer_Close_Async => _library._Layer_Close_AsyncPtr; ffi.Pointer> get MSER_Close => _library._MSER_ClosePtr; ffi.Pointer> get Mat_Close => @@ -23882,6 +24664,8 @@ class _SymbolAddresses { get MergeMertens_Close => _library._MergeMertens_ClosePtr; ffi.Pointer> get Net_Close => _library._Net_ClosePtr; + ffi.Pointer> + get Net_Close_Async => _library._Net_Close_AsyncPtr; ffi.Pointer> get ORB_Close => _library._ORB_ClosePtr; ffi.Pointer> @@ -24273,6 +25057,7 @@ final class Layer extends ffi.Struct { } typedef LayerPtr = ffi.Pointer; +typedef LayerPtr1 = ffi.Pointer; final class MSER extends ffi.Struct { external ffi.Pointer ptr; @@ -24371,6 +25156,7 @@ final class Net extends ffi.Struct { } typedef NetPtr = ffi.Pointer; +typedef NetPtr1 = ffi.Pointer; final class ORB extends ffi.Struct { external ffi.Pointer ptr; diff --git a/src/dnn/dnn_async.cpp b/src/dnn/dnn_async.cpp new file mode 100644 index 00000000..e61b654d --- /dev/null +++ b/src/dnn/dnn_async.cpp @@ -0,0 +1,314 @@ +#include "dnn_async.h" +#include "core/types.h" + +// Asynchronous functions for Net +CvStatus *Net_Create_Async(CvCallback_1 callback) +{ + BEGIN_WRAP + callback(new Net{new cv::dnn::Net()}); + END_WRAP +} + +CvStatus *Net_FromNet_Async(Net net, CvCallback_1 callback) +{ + BEGIN_WRAP + callback(new Net{new cv::dnn::Net(*net.ptr)}); + END_WRAP +} + +CvStatus *Net_ReadNet_Async(const char *model, const char *config, const char *framework, CvCallback_1 callback) +{ + BEGIN_WRAP + callback(new Net{new cv::dnn::Net(cv::dnn::readNet(model, config, framework))}); + END_WRAP +} + +CvStatus *Net_ReadNetBytes_Async(const char *framework, VecUChar model, VecUChar config, CvCallback_1 callback) +{ + BEGIN_WRAP + callback(new Net{new cv::dnn::Net(cv::dnn::readNet(framework, *model.ptr, *config.ptr))}); + END_WRAP +} + +CvStatus *Net_ReadNetFromCaffe_Async(const char *prototxt, const char *caffeModel, CvCallback_1 callback) +{ + BEGIN_WRAP + callback(new Net{new cv::dnn::Net(cv::dnn::readNetFromCaffe(prototxt, caffeModel))}); + END_WRAP +} + +CvStatus *Net_ReadNetFromCaffeBytes_Async(VecUChar prototxt, VecUChar caffeModel, CvCallback_1 callback) +{ + BEGIN_WRAP + callback(new Net{new cv::dnn::Net(cv::dnn::readNetFromCaffe(*prototxt.ptr, *caffeModel.ptr))}); + END_WRAP +} + +CvStatus *Net_ReadNetFromTensorflow_Async(const char *model, const char *config, CvCallback_1 callback) +{ + BEGIN_WRAP + callback(new Net{new cv::dnn::Net(cv::dnn::readNetFromTensorflow(model, config))}); + END_WRAP +} + +CvStatus *Net_ReadNetFromTensorflowBytes_Async(VecUChar model, VecUChar config, CvCallback_1 callback) +{ + BEGIN_WRAP + callback(new Net{new cv::dnn::Net(cv::dnn::readNetFromTensorflow(*model.ptr, *config.ptr))}); + END_WRAP +} + +CvStatus *Net_ReadNetFromTFLite_Async(const char *model, CvCallback_1 callback) +{ + BEGIN_WRAP + callback(new Net{new cv::dnn::Net(cv::dnn::readNetFromTFLite(model))}); + END_WRAP +} + +CvStatus *Net_ReadNetFromTFLiteBytes_Async(VecUChar bufferModel, CvCallback_1 callback) +{ + BEGIN_WRAP + callback(new Net{new cv::dnn::Net(cv::dnn::readNetFromTFLite(*bufferModel.ptr))}); + END_WRAP +} + +CvStatus *Net_ReadNetFromTorch_Async(const char *model, bool isBinary, bool evaluate, CvCallback_1 callback) +{ + BEGIN_WRAP + callback(new Net{new cv::dnn::Net(cv::dnn::readNetFromTorch(model, isBinary, evaluate))}); + END_WRAP +} + +CvStatus *Net_ReadNetFromONNX_Async(const char *model, CvCallback_1 callback) +{ + BEGIN_WRAP + callback(new Net{new cv::dnn::Net(cv::dnn::readNetFromONNX(model))}); + END_WRAP +} + +CvStatus *Net_ReadNetFromONNXBytes_Async(VecUChar model, CvCallback_1 callback) +{ + BEGIN_WRAP + callback(new Net{new cv::dnn::Net(cv::dnn::readNetFromONNX(*model.ptr))}); + END_WRAP +} + +void Net_Close_Async(NetPtr net, CvCallback_0 callback) +{ + CVD_FREE(net); + callback(); +} + +CvStatus *Net_BlobFromImage_Async(Mat image, double scalefactor, Size size, Scalar mean, bool swapRB, bool crop, int ddepth, CvCallback_1 callback) +{ + BEGIN_WRAP + cv::Size sz(size.width, size.height); + cv::Scalar cm(mean.val1, mean.val2, mean.val3, mean.val4); + Mat *blob = new Mat{new cv::Mat()}; + cv::dnn::blobFromImage(*image.ptr, *blob->ptr, scalefactor, sz, cm, swapRB, crop, ddepth); + callback(blob); + END_WRAP +} + +CvStatus *Net_BlobFromImages_Async(VecMat images, double scalefactor, Size size, Scalar mean, bool swapRB, bool crop, int ddepth, CvCallback_1 callback) +{ + BEGIN_WRAP + cv::Size sz(size.width, size.height); + cv::Scalar cm = cv::Scalar(mean.val1, mean.val2, mean.val3, mean.val4); + Mat *blob = new Mat{new cv::Mat()}; + cv::dnn::blobFromImages(*images.ptr, *blob->ptr, scalefactor, sz, cm, swapRB, crop, ddepth); + callback(blob); + END_WRAP +} + +CvStatus *Net_ImagesFromBlob_Async(Mat blob, CvCallback_1 callback) +{ + BEGIN_WRAP + std::vector imgs; + cv::dnn::imagesFromBlob(*blob.ptr, imgs); + callback(new VecMat{new std::vector(imgs)}); + END_WRAP +} + +CvStatus *Net_Empty_Async(Net net, CvCallback_1 callback) +{ + BEGIN_WRAP + bool rval = net.ptr->empty(); + callback(new bool(rval)); + END_WRAP +} + +CvStatus *Net_Dump_Async(Net net, CvCallback_1 callback) +{ + BEGIN_WRAP + auto ss = net.ptr->dump(); + callback(new char *(strdup(ss.c_str()))); + END_WRAP +} + +CvStatus *Net_SetInput_Async(Net net, Mat blob, const char *name, CvCallback_0 callback) +{ + BEGIN_WRAP + net.ptr->setInput(*blob.ptr, name); + callback(); + END_WRAP +} + +CvStatus *Net_Forward_Async(Net net, const char *outputName, CvCallback_1 callback) +{ + BEGIN_WRAP + callback(new Mat{new cv::Mat(net.ptr->forward(outputName))}); + END_WRAP +} + +CvStatus *Net_ForwardLayers_Async(Net net, VecVecChar outBlobNames, CvCallback_1 callback) +{ + BEGIN_WRAP + std::vector blobs; + std::vector names; + for (int i = 0; i < outBlobNames.ptr->size(); ++i) + { + auto n = outBlobNames.ptr->at(i); + names.push_back(cv::String(n.begin(), n.end())); + } + net.ptr->forward(blobs, names); + callback(new VecMat{new std::vector(blobs)}); + END_WRAP +} + +CvStatus *Net_SetPreferableBackend_Async(Net net, int backend, CvCallback_0 callback) +{ + BEGIN_WRAP + net.ptr->setPreferableBackend(backend); + callback(); + END_WRAP +} + +CvStatus *Net_SetPreferableTarget_Async(Net net, int target, CvCallback_0 callback) +{ + BEGIN_WRAP + net.ptr->setPreferableTarget(target); + callback(); + END_WRAP +} + +CvStatus *Net_GetPerfProfile_Async(Net net, CvCallback_1 callback) +{ + BEGIN_WRAP + std::vector layersTimes; + int64_t rval = net.ptr->getPerfProfile(layersTimes); + callback(new int64_t(rval)); + END_WRAP +} + +CvStatus *Net_GetUnconnectedOutLayers_Async(Net net, CvCallback_1 callback) +{ + BEGIN_WRAP + std::vector layers = net.ptr->getUnconnectedOutLayers(); + callback(new VecInt{new std::vector(layers)}); + END_WRAP +} + +CvStatus *Net_GetLayerNames_Async(Net net, CvCallback_1 callback) +{ + BEGIN_WRAP + std::vector> vec; + std::vector cstrs = net.ptr->getLayerNames(); + for (size_t i = 0; i < cstrs.size(); i++) + { + std::vector cstr(cstrs[i].begin(), cstrs[i].end()); + vec.push_back(cstr); + } + callback(new VecVecChar{new std::vector>(vec)}); + END_WRAP +} + +CvStatus *Net_GetInputDetails_Async(Net net, CvCallback_2 callback) +{ + BEGIN_WRAP + std::vector sc; + std::vector zp; + net.ptr->getInputDetails(sc, zp); + callback(new VecFloat{new std::vector(sc)}, new VecInt{new std::vector(zp)}); + END_WRAP +} + +CvStatus *Net_GetBlobChannel_Async(Mat blob, int imgidx, int chnidx, CvCallback_1 callback) +{ + BEGIN_WRAP + size_t w = blob.ptr->size[3]; + size_t h = blob.ptr->size[2]; + callback(new Mat{new cv::Mat(h, w, CV_32F, blob.ptr->ptr(imgidx, chnidx))}); + END_WRAP +} + +CvStatus *Net_GetBlobSize_Async(Mat blob, CvCallback_1 callback) +{ + BEGIN_WRAP + callback(new Scalar{(double)(blob.ptr->size[0]), (double)(blob.ptr->size[1]), (double)(blob.ptr->size[2]), (double)(blob.ptr->size[3])}); + END_WRAP +} + +CvStatus *Net_GetLayer_Async(Net net, int layerid, CvCallback_1 callback) +{ + BEGIN_WRAP + callback(new Layer{new cv::Ptr(net.ptr->getLayer(layerid))}); + END_WRAP +} + +CvStatus *Layer_InputNameToIndex_Async(Layer layer, const char *name, CvCallback_1 callback) +{ + BEGIN_WRAP + int rval = (*layer.ptr)->inputNameToIndex(name); + callback(new int(rval)); + END_WRAP +} + +CvStatus *Layer_OutputNameToIndex_Async(Layer layer, const char *name, CvCallback_1 callback) +{ + BEGIN_WRAP + int rval = (*layer.ptr)->outputNameToIndex(name); + callback(new int(rval)); + END_WRAP +} + +CvStatus *Layer_GetName_Async(Layer layer, CvCallback_1 callback) +{ + BEGIN_WRAP + auto ss = (*layer.ptr)->name; + callback(new char *(strdup(ss.c_str()))); + END_WRAP +} + +CvStatus *Layer_GetType_Async(Layer layer, CvCallback_1 callback) +{ + BEGIN_WRAP + auto ss = (*layer.ptr)->type; + callback(new char *(strdup(ss.c_str()))); + END_WRAP +} + +void Layer_Close_Async(LayerPtr layer, CvCallback_0 callback) +{ + layer->ptr->reset(); + CVD_FREE(layer); + callback(); +} + +CvStatus *NMSBoxes_Async(VecRect bboxes, VecFloat scores, float score_threshold, float nms_threshold, CvCallback_1 callback) +{ + BEGIN_WRAP + std::vector v; + cv::dnn::NMSBoxes(*bboxes.ptr, *scores.ptr, score_threshold, nms_threshold, v, 1.f, 0); + callback(new VecInt{new std::vector(v)}); + END_WRAP +} + +CvStatus *NMSBoxesWithParams_Async(VecRect bboxes, VecFloat scores, const float score_threshold, const float nms_threshold, const float eta, const int top_k, CvCallback_1 callback) +{ + BEGIN_WRAP + std::vector v; + cv::dnn::NMSBoxes(*bboxes.ptr, *scores.ptr, score_threshold, nms_threshold, v, eta, top_k); + callback(new VecInt{new std::vector(v)}); + END_WRAP +} diff --git a/src/dnn/dnn_async.h b/src/dnn/dnn_async.h new file mode 100644 index 00000000..a52964d2 --- /dev/null +++ b/src/dnn/dnn_async.h @@ -0,0 +1,67 @@ +#ifndef CVD_DNN_ASYNC_H_ +#define CVD_DNN_ASYNC_H_ + +#include "core/types.h" +#include + +#ifdef __cplusplus +#include +#include +extern "C" { +#endif + +#ifdef __cplusplus +// Define types for the C++ classes used +CVD_TYPEDEF(cv::dnn::Net, Net); +CVD_TYPEDEF(cv::Ptr, Layer); +#else +// Define types for the C-compatible interface +CVD_TYPEDEF(void, Net); +CVD_TYPEDEF(void, Layer); +#endif + +// Asynchronous functions for Net +CvStatus *Net_Create_Async(CvCallback_1 callback); +CvStatus *Net_FromNet_Async(Net net, CvCallback_1 callback); +CvStatus *Net_ReadNet_Async(const char *model, const char *config, const char *framework, CvCallback_1 callback); +CvStatus *Net_ReadNetBytes_Async(const char *framework, VecUChar model, VecUChar config, CvCallback_1 callback); +CvStatus *Net_ReadNetFromCaffe_Async(const char *prototxt, const char *caffeModel, CvCallback_1 callback); +CvStatus *Net_ReadNetFromCaffeBytes_Async(VecUChar prototxt, VecUChar caffeModel, CvCallback_1 callback); +CvStatus *Net_ReadNetFromTensorflow_Async(const char *model, const char *config, CvCallback_1 callback); +CvStatus *Net_ReadNetFromTensorflowBytes_Async(VecUChar model, VecUChar config, CvCallback_1 callback); +CvStatus *Net_ReadNetFromTFLite_Async(const char *model, CvCallback_1 callback); +CvStatus *Net_ReadNetFromTFLiteBytes_Async(VecUChar bufferModel, CvCallback_1 callback); +CvStatus *Net_ReadNetFromTorch_Async(const char *model, bool isBinary, bool evaluate, CvCallback_1 callback); +CvStatus *Net_ReadNetFromONNX_Async(const char *model, CvCallback_1 callback); +CvStatus *Net_ReadNetFromONNXBytes_Async(VecUChar model, CvCallback_1 callback); +void Net_Close_Async(NetPtr net, CvCallback_0 callback); +CvStatus *Net_BlobFromImage_Async(Mat image, double scalefactor, Size size, Scalar mean, bool swapRB, bool crop, int ddepth, CvCallback_1 callback); +CvStatus *Net_BlobFromImages_Async(VecMat images, double scalefactor, Size size, Scalar mean, bool swapRB, bool crop, int ddepth, CvCallback_1 callback); +CvStatus *Net_ImagesFromBlob_Async(Mat blob, CvCallback_1 callback); +CvStatus *Net_Empty_Async(Net net, CvCallback_1 callback); +CvStatus *Net_Dump_Async(Net net, CvCallback_1 callback); +CvStatus *Net_SetInput_Async(Net net, Mat blob, const char *name, CvCallback_0 callback); +CvStatus *Net_Forward_Async(Net net, const char *outputName, CvCallback_1 callback); +CvStatus *Net_ForwardLayers_Async(Net net, VecVecChar outBlobNames, CvCallback_1 callback); +CvStatus *Net_SetPreferableBackend_Async(Net net, int backend, CvCallback_0 callback); +CvStatus *Net_SetPreferableTarget_Async(Net net, int target, CvCallback_0 callback); +CvStatus *Net_GetPerfProfile_Async(Net net, CvCallback_1 callback); +CvStatus *Net_GetUnconnectedOutLayers_Async(Net net, CvCallback_1 callback); +CvStatus *Net_GetLayerNames_Async(Net net, CvCallback_1 callback); +CvStatus *Net_GetInputDetails_Async(Net net, CvCallback_2 callback); +CvStatus *Net_GetBlobChannel_Async(Mat blob, int imgidx, int chnidx, CvCallback_1 callback); +CvStatus *Net_GetBlobSize_Async(Mat blob, CvCallback_1 callback); +CvStatus *Net_GetLayer_Async(Net net, int layerid, CvCallback_1 callback); +CvStatus *Layer_InputNameToIndex_Async(Layer layer, const char *name, CvCallback_1 callback); +CvStatus *Layer_OutputNameToIndex_Async(Layer layer, const char *name, CvCallback_1 callback); +CvStatus *Layer_GetName_Async(Layer layer, CvCallback_1 callback); +CvStatus *Layer_GetType_Async(Layer layer, CvCallback_1 callback); +void Layer_Close_Async(LayerPtr layer, CvCallback_0 callback); +CvStatus *NMSBoxes_Async(VecRect bboxes, VecFloat scores, float score_threshold, float nms_threshold, CvCallback_1 callback); +CvStatus *NMSBoxesWithParams_Async(VecRect bboxes, VecFloat scores, const float score_threshold, const float nms_threshold, const float eta, const int top_k, CvCallback_1 callback); + +#ifdef __cplusplus +} +#endif + +#endif // CVD_DNN_ASYNC_H_ From b77c54e6340584a0c3ddbb9d55f2c7adbf2aa4c8 Mon Sep 17 00:00:00 2001 From: rainy liu Date: Thu, 27 Jun 2024 11:04:32 +0800 Subject: [PATCH 09/21] add precommit script --- example/test/widget_test.dart | 1 + lib/src/contrib/aruco_dict.dart | 3 +- lib/src/core/base.dart | 31 +- lib/src/dnn/dnn_async.dart | 48 +- lib/src/objdetect/objdetect_async.dart | 146 +- lib/src/opencv.g.dart | 11872 +++++++++-------------- scripts/pre-commit | 2 + 7 files changed, 4816 insertions(+), 7287 deletions(-) create mode 100644 scripts/pre-commit diff --git a/example/test/widget_test.dart b/example/test/widget_test.dart index e69de29b..8b137891 100644 --- a/example/test/widget_test.dart +++ b/example/test/widget_test.dart @@ -0,0 +1 @@ + diff --git a/lib/src/contrib/aruco_dict.dart b/lib/src/contrib/aruco_dict.dart index e0ced4a6..6d5b6283 100644 --- a/lib/src/contrib/aruco_dict.dart +++ b/lib/src/contrib/aruco_dict.dart @@ -95,8 +95,7 @@ class ArucoDictionary extends CvStruct { @override cvg.ArucoDictionary get ref => ptr.ref; - static final finalizer = - OcvFinalizer(CFFI.addresses.ArucoDictionary_Close); + static final finalizer = OcvFinalizer(CFFI.addresses.ArucoDictionary_Close); void dispose() { finalizer.detach(this); diff --git a/lib/src/core/base.dart b/lib/src/core/base.dart index 78946a9d..936fe887 100644 --- a/lib/src/core/base.dart +++ b/lib/src/core/base.dart @@ -44,11 +44,9 @@ ffi.DynamicLibrary loadNativeLibrary() { "windows" => "$_libraryName.dll", "linux" || "android" || "fuchsia" => "lib$_libraryName.so", "macos" => "lib$_libraryName.dylib", - _ => throw UnsupportedError( - "Platform ${Platform.operatingSystem} not supported") + _ => throw UnsupportedError("Platform ${Platform.operatingSystem} not supported") }; - final libPath = - Platform.environment["OPENCV_DART_LIB_PATH"] ?? defaultLibPath; + final libPath = Platform.environment["OPENCV_DART_LIB_PATH"] ?? defaultLibPath; return ffi.DynamicLibrary.open(libPath); } @@ -64,8 +62,7 @@ abstract class ICvStruct extends CvObject { T get ref; } -abstract class CvStruct extends ICvStruct - with EquatableMixin { +abstract class CvStruct extends ICvStruct with EquatableMixin { CvStruct.fromPointer(super.ptr) : super.fromPointer(); } @@ -140,8 +137,7 @@ Future cvRunAsync2( Future cvRunAsync3( ffi.Pointer Function(cvg.CvCallback_3 callback) func, - void Function(Completer completer, VoidPtr p, VoidPtr p1, VoidPtr p2) - onComplete, + void Function(Completer completer, VoidPtr p, VoidPtr p1, VoidPtr p2) onComplete, ) { final completer = Completer(); late final NativeCallable ccallback; @@ -179,9 +175,7 @@ Future cvRunAsync4( Future cvRunAsync5( ffi.Pointer Function(cvg.CvCallback_5 callback) func, - void Function(Completer completer, VoidPtr p, VoidPtr p1, VoidPtr p2, - VoidPtr p3, VoidPtr p4) - onComplete, + void Function(Completer completer, VoidPtr p, VoidPtr p1, VoidPtr p2, VoidPtr p3, VoidPtr p4) onComplete, ) { final completer = Completer(); late final NativeCallable ccallback; @@ -196,17 +190,11 @@ Future cvRunAsync5( } // Completers for async -void matCompleter(Completer completer, VoidPtr p) => - completer.complete(Mat.fromPointer(p.cast())); +void matCompleter(Completer completer, VoidPtr p) => completer.complete(Mat.fromPointer(p.cast())); void matCompleter2(Completer<(Mat, Mat)> completer, VoidPtr p, VoidPtr p1) => completer.complete((Mat.fromPointer(p.cast()), Mat.fromPointer(p1.cast()))); -void matCompleter3(Completer<(Mat, Mat, Mat)> completer, VoidPtr p, VoidPtr p1, - VoidPtr p2) => - completer.complete(( - Mat.fromPointer(p.cast()), - Mat.fromPointer(p1.cast()), - Mat.fromPointer(p2.cast()) - )); +void matCompleter3(Completer<(Mat, Mat, Mat)> completer, VoidPtr p, VoidPtr p1, VoidPtr p2) => + completer.complete((Mat.fromPointer(p.cast()), Mat.fromPointer(p1.cast()), Mat.fromPointer(p2.cast()))); // Arena wrapper R cvRunArena( @@ -234,8 +222,7 @@ R cvRunArena( typedef NativeFinalizerFunctionT = ffi.Pointer>; -ffi.NativeFinalizer OcvFinalizer( - NativeFinalizerFunctionT func) => +ffi.NativeFinalizer OcvFinalizer(NativeFinalizerFunctionT func) => ffi.NativeFinalizer(func.cast()); // native types diff --git a/lib/src/dnn/dnn_async.dart b/lib/src/dnn/dnn_async.dart index 21a06e61..00ed83a9 100644 --- a/lib/src/dnn/dnn_async.dart +++ b/lib/src/dnn/dnn_async.dart @@ -20,11 +20,9 @@ class Layer extends CvStruct { } } - factory Layer.fromPointer(cvg.LayerPtr ptr, [bool attach = true]) => - Layer._(ptr, attach); + factory Layer.fromPointer(cvg.LayerPtr ptr, [bool attach = true]) => Layer._(ptr, attach); - static final finalizer = - OcvFinalizer(CFFI.addresses.Layer_Close); + static final finalizer = OcvFinalizer(CFFI.addresses.Layer_Close); void dispose() { finalizer.detach(this); @@ -104,25 +102,21 @@ class Net extends CvStruct { return Net._(p); } - factory Net.fromFile(String path, - {String config = "", String framework = ""}) { + factory Net.fromFile(String path, {String config = "", String framework = ""}) { return using((arena) { final cPath = path.toNativeUtf8(allocator: arena).cast(); final cConfig = config.toNativeUtf8(allocator: arena).cast(); - final cFramework = - framework.toNativeUtf8(allocator: arena).cast(); + final cFramework = framework.toNativeUtf8(allocator: arena).cast(); final p = calloc(); cvRun(() => CFFI.Net_ReadNet(cPath, cConfig, cFramework, p)); return Net._(p); }); } - factory Net.fromBytes(String framework, Uint8List bufferModel, - {Uint8List? bufferConfig}) { + factory Net.fromBytes(String framework, Uint8List bufferModel, {Uint8List? bufferConfig}) { return using((arena) { bufferConfig ??= Uint8List(0); - final cFramework = - framework.toNativeUtf8(allocator: arena).cast(); + final cFramework = framework.toNativeUtf8(allocator: arena).cast(); final bufM = VecUChar.fromList(bufferModel); final bufC = VecUChar.fromList(bufferConfig!); final p = calloc(); @@ -175,8 +169,7 @@ class Net extends CvStruct { }); } - factory Net.fromTensorflowBytes(Uint8List bufferModel, - {Uint8List? bufferConfig}) { + factory Net.fromTensorflowBytes(Uint8List bufferModel, {Uint8List? bufferConfig}) { bufferConfig ??= Uint8List(0); final bufM = VecUChar.fromList(bufferModel); final bufC = VecUChar.fromList(bufferConfig); @@ -201,8 +194,7 @@ class Net extends CvStruct { return Net._(p); } - factory Net.fromTorch(String path, - {bool isBinary = true, bool evaluate = true}) { + factory Net.fromTorch(String path, {bool isBinary = true, bool evaluate = true}) { return using((arena) { final p = calloc(); final cpath = path.toNativeUtf8(allocator: arena).cast(); @@ -249,8 +241,7 @@ class Net extends CvStruct { Future forwardAsync({String outputName = ""}) async { final rval = cvRunAsync( - (callback) => CFFI.Net_Forward_Async( - ref, outputName.toNativeUtf8().cast(), callback), + (callback) => CFFI.Net_Forward_Async(ref, outputName.toNativeUtf8().cast(), callback), (c, result) => c.complete(Mat.fromPointer(result.cast())), ); return rval; @@ -267,8 +258,7 @@ class Net extends CvStruct { Future setPreferableBackendAsync(int backendId) async { await cvRunAsync0( - (callback) => - CFFI.Net_SetPreferableBackend_Async(ref, backendId, callback), + (callback) => CFFI.Net_SetPreferableBackend_Async(ref, backendId, callback), (c) => c.complete(), ); } @@ -303,8 +293,7 @@ class Net extends CvStruct { Future> getLayerNamesAsync() async { final rval = cvRunAsync>( (callback) => CFFI.Net_GetLayerNames_Async(ref, callback), - (c, result) => c.complete( - VecVecChar.fromPointer(result.cast()).asStringList()), + (c, result) => c.complete(VecVecChar.fromPointer(result.cast()).asStringList()), ); return rval; } @@ -312,18 +301,15 @@ class Net extends CvStruct { Future<(VecFloat, VecInt)> getInputDetailsAsync() async { final rval = cvRunAsync2<(VecFloat, VecInt)>( (callback) => CFFI.Net_GetInputDetails_Async(ref, callback), - (c, sc, zp) => c.complete(( - VecFloat.fromPointer(sc.cast()), - VecInt.fromPointer(zp.cast()) - )), + (c, sc, zp) => c.complete( + (VecFloat.fromPointer(sc.cast()), VecInt.fromPointer(zp.cast()))), ); return rval; } Future getBlobChannelAsync(Mat blob, int imgidx, int chnidx) async { final rval = cvRunAsync( - (callback) => - CFFI.Net_GetBlobChannel_Async(blob.ref, imgidx, chnidx, callback), + (callback) => CFFI.Net_GetBlobChannel_Async(blob.ref, imgidx, chnidx, callback), (c, result) => c.complete(Mat.fromPointer(result.cast())), ); return rval; @@ -400,8 +386,7 @@ class Net extends CvStruct { static Future> imagesFromBlobAsync(Mat blob) async { final rval = cvRunAsync>( (callback) => CFFI.Net_ImagesFromBlob_Async(blob.ref, callback), - (c, result) => - c.complete(VecMat.fromPointer(result.cast()).toList()), + (c, result) => c.complete(VecMat.fromPointer(result.cast()).toList()), ); return rval; } @@ -424,8 +409,7 @@ class Net extends CvStruct { topK, callback, ), - (c, result) => - c.complete(VecInt.fromPointer(result.cast()).toList()), + (c, result) => c.complete(VecInt.fromPointer(result.cast()).toList()), ); return rval; } diff --git a/lib/src/objdetect/objdetect_async.dart b/lib/src/objdetect/objdetect_async.dart index 86c78ee7..c9d64cbf 100644 --- a/lib/src/objdetect/objdetect_async.dart +++ b/lib/src/objdetect/objdetect_async.dart @@ -12,8 +12,7 @@ import '../core/vec.dart'; import '../opencv.g.dart' as cvg; class CascadeClassifier extends CvStruct { - CascadeClassifier._(cvg.CascadeClassifierPtr ptr, [bool attach = true]) - : super.fromPointer(ptr) { + CascadeClassifier._(cvg.CascadeClassifierPtr ptr, [bool attach = true]) : super.fromPointer(ptr) { if (attach) { finalizer.attach(this, ptr.cast(), detach: this); } @@ -35,9 +34,8 @@ class CascadeClassifier extends CvStruct { Future loadAsync(String name) async { final cname = name.toNativeUtf8().cast(); - final rval = cvRunAsync( - (callback) => CFFI.CascadeClassifier_Load_Async(ref, cname, callback), - (c, p) { + final rval = + cvRunAsync((callback) => CFFI.CascadeClassifier_Load_Async(ref, cname, callback), (c, p) { final rval = p.cast().value != 0; calloc.free(cname); calloc.free(p); @@ -90,17 +88,13 @@ class CascadeClassifier extends CvStruct { callback, ), (c, ret, pnums) { return c.complete( - ( - VecRect.fromPointer(ret.cast()), - VecInt.fromPointer(pnums.cast()) - ), + (VecRect.fromPointer(ret.cast()), VecInt.fromPointer(pnums.cast())), ); }); return rval; } - Future<(VecRect objects, VecInt numDetections, VecDouble levelWeights)> - detectMultiScale3Async( + Future<(VecRect objects, VecInt rejectLevels, VecDouble levelWeights)> detectMultiScale3Async( InputArray image, { double scaleFactor = 1.1, int minNeighbors = 3, @@ -133,9 +127,7 @@ class CascadeClassifier extends CvStruct { } Future emptyAsync() async { - final rval = cvRunAsync( - (callback) => CFFI.CascadeClassifier_Empty_Async(ref, callback), - (c, p) { + final rval = cvRunAsync((callback) => CFFI.CascadeClassifier_Empty_Async(ref, callback), (c, p) { final rval = p.cast().value; calloc.free(p); return c.complete(rval); @@ -144,9 +136,8 @@ class CascadeClassifier extends CvStruct { } Future getFeatureTypeAsync() async { - final rval = cvRunAsync( - (callback) => - CFFI.CascadeClassifier_getFeatureType_Async(ref, callback), (c, p) { + final rval = + cvRunAsync((callback) => CFFI.CascadeClassifier_getFeatureType_Async(ref, callback), (c, p) { final rval = p.cast().value; calloc.free(p); @@ -157,9 +148,7 @@ class CascadeClassifier extends CvStruct { Future<(int, int)> getOriginalWindowSizeAsync() async { final rval = cvRunAsync<(int, int)>( - (callback) => - CFFI.CascadeClassifier_getOriginalWindowSize_Async(ref, callback), - (c, p) { + (callback) => CFFI.CascadeClassifier_getOriginalWindowSize_Async(ref, callback), (c, p) { final size = p.cast().ref; final ret = (size.width, size.height); return c.complete(ret); @@ -169,9 +158,7 @@ class CascadeClassifier extends CvStruct { Future isOldFormatCascadeAsync() async { final rval = cvRunAsync( - (callback) => - CFFI.CascadeClassifier_isOldFormatCascade_Async(ref, callback), - (c, p) { + (callback) => CFFI.CascadeClassifier_isOldFormatCascade_Async(ref, callback), (c, p) { final rval = p.cast().value; calloc.free(p); return c.complete(rval); @@ -195,8 +182,7 @@ class CascadeClassifier extends CvStruct { } class HOGDescriptor extends CvStruct { - HOGDescriptor._(cvg.HOGDescriptorPtr ptr, [bool attach = true]) - : super.fromPointer(ptr) { + HOGDescriptor._(cvg.HOGDescriptorPtr ptr, [bool attach = true]) : super.fromPointer(ptr) { if (attach) { finalizer.attach(this, ptr.cast(), detach: this); } @@ -218,9 +204,7 @@ class HOGDescriptor extends CvStruct { Future loadAsync(String name) async { final cname = name.toNativeUtf8().cast(); - final rval = cvRunAsync( - (callback) => CFFI.HOGDescriptor_Load_Async(ref, cname, callback), - (c, p) { + final rval = cvRunAsync((callback) => CFFI.HOGDescriptor_Load_Async(ref, cname, callback), (c, p) { final rval = p.cast().value; calloc.free(cname); calloc.free(p); @@ -275,8 +259,7 @@ class HOGDescriptor extends CvStruct { return rval; } - Future<(VecPoint foundLocations, VecDouble weights, VecPoint searchLocations)> - detect2Async( + Future<(VecPoint foundLocations, VecDouble weights, VecPoint searchLocations)> detect2Async( InputArray img, { double hitThreshold = 0, (int, int) winStride = (0, 0), @@ -355,25 +338,22 @@ class HOGDescriptor extends CvStruct { } static Future getDefaultPeopleDetectorAsync() async { - final rval = - cvRunAsync(CFFI.HOG_GetDefaultPeopleDetector_Async, (c, v) { + final rval = cvRunAsync(CFFI.HOG_GetDefaultPeopleDetector_Async, (c, v) { return c.complete(VecFloat.fromPointer(v.cast())); }); return rval; } static Future getDaimlerPeopleDetectorAsync() async { - final rval = cvRunAsync( - CFFI.HOGDescriptor_getDaimlerPeopleDetector_Async, (c, v) { + final rval = cvRunAsync(CFFI.HOGDescriptor_getDaimlerPeopleDetector_Async, (c, v) { return c.complete(VecFloat.fromPointer(v.cast())); }); return rval; } Future getDescriptorSizeAsync() async { - final rval = cvRunAsync( - (callback) => CFFI.HOGDescriptor_getDescriptorSize_Async(ref, callback), - (c, p) { + final rval = + cvRunAsync((callback) => CFFI.HOGDescriptor_getDescriptorSize_Async(ref, callback), (c, p) { final rval = p.cast().value; calloc.free(p); return c.complete(rval); @@ -382,9 +362,8 @@ class HOGDescriptor extends CvStruct { } Future getWinSigmaAsync() async { - final rval = cvRunAsync( - (callback) => CFFI.HOGDescriptor_getWinSigma_Async(ref, callback), - (c, p) { + final rval = + cvRunAsync((callback) => CFFI.HOGDescriptor_getWinSigma_Async(ref, callback), (c, p) { final rval = p.cast().value; calloc.free(p); return c.complete(rval); @@ -413,9 +392,7 @@ class HOGDescriptor extends CvStruct { } Future setSVMDetectorAsync(VecFloat det) async { - await cvRunAsync( - (callback) => - CFFI.HOGDescriptor_SetSVMDetector_Async(ref, det.ref, callback), + await cvRunAsync((callback) => CFFI.HOGDescriptor_SetSVMDetector_Async(ref, det.ref, callback), (c, _) { return c.complete(); }); @@ -423,8 +400,7 @@ class HOGDescriptor extends CvStruct { @override cvg.HOGDescriptor get ref => ptr.ref; - static final finalizer = - OcvFinalizer(CFFI.addresses.HOGDescriptor_Close); + static final finalizer = OcvFinalizer(CFFI.addresses.HOGDescriptor_Close); void dispose() { finalizer.detach(this); @@ -441,17 +417,14 @@ Future groupRectanglesAsync( double eps, ) async { final rval = cvRunAsync( - (callback) => - CFFI.GroupRectangles_Async(rects.ref, groupThreshold, eps, callback), - (c, _) { + (callback) => CFFI.GroupRectangles_Async(rects.ref, groupThreshold, eps, callback), (c, _) { return c.complete(rects); }); return rval; } class QRCodeDetector extends CvStruct { - QRCodeDetector._(cvg.QRCodeDetectorPtr ptr, [bool attach = true]) - : super.fromPointer(ptr) { + QRCodeDetector._(cvg.QRCodeDetectorPtr ptr, [bool attach = true]) : super.fromPointer(ptr) { if (attach) { finalizer.attach(this, ptr.cast(), detach: this); } @@ -476,17 +449,13 @@ class QRCodeDetector extends CvStruct { callback, ), (c, rval, straightQRcode) { return c.complete( - ( - rval.cast().toDartString(), - Mat.fromPointer(straightQRcode.cast()) - ), + (rval.cast().toDartString(), Mat.fromPointer(straightQRcode.cast())), ); }); return rval; } - Future<(String rval, VecPoint points, Mat straightQRcode)> - detectAndDecodeCurvedAsync( + Future<(String rval, VecPoint points, Mat straightQRcode)> detectAndDecodeCurvedAsync( InputArray img, { VecPoint? points, Mat? straightQRcode, @@ -514,8 +483,7 @@ class QRCodeDetector extends CvStruct { OutputArray? straightCode, }) async { final rval = cvRunAsync3<(String, VecPoint, Mat)>( - (callback) => - CFFI.QRCodeDetector_DetectAndDecode_Async(ref, img.ref, callback), + (callback) => CFFI.QRCodeDetector_DetectAndDecode_Async(ref, img.ref, callback), (c, ret, points, straightCode) { return c.complete( ( @@ -533,9 +501,7 @@ class QRCodeDetector extends CvStruct { VecPoint? points, }) async { final rval = cvRunAsync2<(bool, VecPoint)>( - (callback) => - CFFI.QRCodeDetector_Detect_Async(ref, input.ref, callback), - (c, ret, points) { + (callback) => CFFI.QRCodeDetector_Detect_Async(ref, input.ref, callback), (c, ret, points) { final retValue = ret.cast().value; calloc.free(ret); return c.complete( @@ -569,15 +535,10 @@ class QRCodeDetector extends CvStruct { VecPoint? points, }) async { final rval = cvRunAsync2<(bool, VecPoint)>( - (callback) => - CFFI.QRCodeDetector_DetectMulti_Async(ref, img.ref, callback), - (c, ret, points) { + (callback) => CFFI.QRCodeDetector_DetectMulti_Async(ref, img.ref, callback), (c, ret, points) { final retValue = ret.cast().value; calloc.free(ret); - return c.complete(( - retValue, - VecPoint.fromPointer(points.cast()) - )); + return c.complete((retValue, VecPoint.fromPointer(points.cast()))); }); return rval; } @@ -591,7 +552,7 @@ class QRCodeDetector extends CvStruct { img.ref, callback, ), (c, info, points, codes, rval) { - final rvalValue=rval.cast().value; + final rvalValue = rval.cast().value; calloc.free(rval); final ret = ( rvalValue, @@ -605,17 +566,13 @@ class QRCodeDetector extends CvStruct { } Future setEpsXAsync(double epsX) async { - await cvRunAsync( - (callback) => CFFI.QRCodeDetector_setEpsX_Async(ref, epsX, callback), - (c, _) { + await cvRunAsync((callback) => CFFI.QRCodeDetector_setEpsX_Async(ref, epsX, callback), (c, _) { return c.complete(); }); } Future setEpsYAsync(double epsY) async { - await cvRunAsync( - (callback) => CFFI.QRCodeDetector_setEpsY_Async(ref, epsY, callback), - (c, _) { + await cvRunAsync((callback) => CFFI.QRCodeDetector_setEpsY_Async(ref, epsY, callback), (c, _) { return c.complete(); }); } @@ -633,8 +590,7 @@ class QRCodeDetector extends CvStruct { @override cvg.QRCodeDetector get ref => ptr.ref; - static final finalizer = - OcvFinalizer(CFFI.addresses.QRCodeDetector_Close); + static final finalizer = OcvFinalizer(CFFI.addresses.QRCodeDetector_Close); void dispose() { finalizer.detach(this); @@ -646,8 +602,7 @@ class QRCodeDetector extends CvStruct { } class FaceDetectorYN extends CvStruct { - FaceDetectorYN._(cvg.FaceDetectorYNPtr ptr, [bool attach = true]) - : super.fromPointer(ptr) { + FaceDetectorYN._(cvg.FaceDetectorYNPtr ptr, [bool attach = true]) : super.fromPointer(ptr) { if (attach) { finalizer.attach(this, ptr.cast(), detach: this); } @@ -716,9 +671,8 @@ class FaceDetectorYN extends CvStruct { } Future<(int, int)> getInputSizeAsync() async { - final rval = cvRunAsync<(int, int)>( - (callback) => CFFI.FaceDetectorYN_GetInputSize_Async(ref, callback), - (c, p) { + final rval = + cvRunAsync<(int, int)>((callback) => CFFI.FaceDetectorYN_GetInputSize_Async(ref, callback), (c, p) { final size = p.cast().ref; final ret = (size.width, size.height); return c.complete(ret); @@ -727,9 +681,8 @@ class FaceDetectorYN extends CvStruct { } Future getScoreThresholdAsync() async { - final rval = cvRunAsync( - (callback) => - CFFI.FaceDetectorYN_GetScoreThreshold_Async(ref, callback), (c, p) { + final rval = + cvRunAsync((callback) => CFFI.FaceDetectorYN_GetScoreThreshold_Async(ref, callback), (c, p) { final rval = p.cast().value; calloc.free(p); return c.complete(rval); @@ -738,9 +691,8 @@ class FaceDetectorYN extends CvStruct { } Future getNmsThresholdAsync() async { - final rval = cvRunAsync( - (callback) => CFFI.FaceDetectorYN_GetNMSThreshold_Async(ref, callback), - (c, p) { + final rval = + cvRunAsync((callback) => CFFI.FaceDetectorYN_GetNMSThreshold_Async(ref, callback), (c, p) { final rval = p.cast().value; calloc.free(p); return c.complete(rval); @@ -749,8 +701,7 @@ class FaceDetectorYN extends CvStruct { } Future getTopKAsync() async { - final rval = cvRunAsync( - (callback) => CFFI.FaceDetectorYN_GetTopK_Async(ref, callback), (c, p) { + final rval = cvRunAsync((callback) => CFFI.FaceDetectorYN_GetTopK_Async(ref, callback), (c, p) { final rval = p.cast().value; calloc.free(p); return c.complete(rval); @@ -759,9 +710,8 @@ class FaceDetectorYN extends CvStruct { } Future detectAsync(Mat image) async { - final rval = cvRunAsync( - (callback) => - CFFI.FaceDetectorYN_Detect_Async(ref, image.ref, callback), (c, p) { + final rval = + cvRunAsync((callback) => CFFI.FaceDetectorYN_Detect_Async(ref, image.ref, callback), (c, p) { return c.complete(Mat.fromPointer(p.cast())); }); return rval; @@ -801,17 +751,14 @@ class FaceDetectorYN extends CvStruct { } Future setTopKAsync(int topK) async { - await cvRunAsync( - (callback) => CFFI.FaceDetectorYN_SetTopK_Async(ref, topK, callback), - (c, _) { + await cvRunAsync((callback) => CFFI.FaceDetectorYN_SetTopK_Async(ref, topK, callback), (c, _) { return c.complete(); }); } @override cvg.FaceDetectorYN get ref => ptr.ref; - static final finalizer = - OcvFinalizer(CFFI.addresses.FaceDetectorYN_Close); + static final finalizer = OcvFinalizer(CFFI.addresses.FaceDetectorYN_Close); void dispose() { finalizer.detach(this); @@ -823,8 +770,7 @@ class FaceDetectorYN extends CvStruct { } class FaceRecognizerSF extends CvStruct { - FaceRecognizerSF._(cvg.FaceRecognizerSFPtr ptr, [bool attach = true]) - : super.fromPointer(ptr) { + FaceRecognizerSF._(cvg.FaceRecognizerSFPtr ptr, [bool attach = true]) : super.fromPointer(ptr) { if (attach) { finalizer.attach(this, ptr.cast(), detach: this); } diff --git a/lib/src/opencv.g.dart b/lib/src/opencv.g.dart index 7079d0f8..b90e75c1 100644 --- a/lib/src/opencv.g.dart +++ b/lib/src/opencv.g.dart @@ -16,16 +16,13 @@ import 'dart:ffi' as ffi; /// class CvNative { /// Holds the symbol lookup function. - final ffi.Pointer Function(String symbolName) - _lookup; + final ffi.Pointer Function(String symbolName) _lookup; /// The symbols are looked up in [dynamicLibrary]. CvNative(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; /// The symbols are looked up with [lookup]. - CvNative.fromLookup( - ffi.Pointer Function(String symbolName) - lookup) + CvNative.fromLookup(ffi.Pointer Function(String symbolName) lookup) : _lookup = lookup; void AKAZE_Close( @@ -36,10 +33,8 @@ class CvNative { ); } - late final _AKAZE_ClosePtr = - _lookup>('AKAZE_Close'); - late final _AKAZE_Close = - _AKAZE_ClosePtr.asFunction(); + late final _AKAZE_ClosePtr = _lookup>('AKAZE_Close'); + late final _AKAZE_Close = _AKAZE_ClosePtr.asFunction(); ffi.Pointer AKAZE_Create( ffi.Pointer rval, @@ -49,11 +44,10 @@ class CvNative { ); } - late final _AKAZE_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('AKAZE_Create'); - late final _AKAZE_Create = _AKAZE_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _AKAZE_CreatePtr = + _lookup Function(ffi.Pointer)>>('AKAZE_Create'); + late final _AKAZE_Create = + _AKAZE_CreatePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer AKAZE_Detect( AKAZE a, @@ -67,12 +61,11 @@ class CvNative { ); } - late final _AKAZE_DetectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - AKAZE, Mat, ffi.Pointer)>>('AKAZE_Detect'); - late final _AKAZE_Detect = _AKAZE_DetectPtr.asFunction< - ffi.Pointer Function(AKAZE, Mat, ffi.Pointer)>(); + late final _AKAZE_DetectPtr = + _lookup Function(AKAZE, Mat, ffi.Pointer)>>( + 'AKAZE_Detect'); + late final _AKAZE_Detect = + _AKAZE_DetectPtr.asFunction Function(AKAZE, Mat, ffi.Pointer)>(); ffi.Pointer AKAZE_DetectAndCompute( AKAZE a, @@ -91,12 +84,10 @@ class CvNative { } late final _AKAZE_DetectAndComputePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(AKAZE, Mat, Mat, Mat, - ffi.Pointer)>>('AKAZE_DetectAndCompute'); + ffi.NativeFunction Function(AKAZE, Mat, Mat, Mat, ffi.Pointer)>>( + 'AKAZE_DetectAndCompute'); late final _AKAZE_DetectAndCompute = _AKAZE_DetectAndComputePtr.asFunction< - ffi.Pointer Function( - AKAZE, Mat, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function(AKAZE, Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer AdaptiveThreshold( Mat src, @@ -120,11 +111,10 @@ class CvNative { late final _AdaptiveThresholdPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Double, ffi.Int, ffi.Int, - ffi.Int, ffi.Double)>>('AdaptiveThreshold'); + ffi.Pointer Function( + Mat, Mat, ffi.Double, ffi.Int, ffi.Int, ffi.Int, ffi.Double)>>('AdaptiveThreshold'); late final _AdaptiveThreshold = _AdaptiveThresholdPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, double, int, int, int, double)>(); + ffi.Pointer Function(Mat, Mat, double, int, int, int, double)>(); void AgastFeatureDetector_Close( AgastFeatureDetectorPtr a, @@ -135,10 +125,9 @@ class CvNative { } late final _AgastFeatureDetector_ClosePtr = - _lookup>( - 'AgastFeatureDetector_Close'); - late final _AgastFeatureDetector_Close = _AgastFeatureDetector_ClosePtr - .asFunction(); + _lookup>('AgastFeatureDetector_Close'); + late final _AgastFeatureDetector_Close = + _AgastFeatureDetector_ClosePtr.asFunction(); ffi.Pointer AgastFeatureDetector_Create( ffi.Pointer rval, @@ -148,14 +137,11 @@ class CvNative { ); } - late final _AgastFeatureDetector_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>( - 'AgastFeatureDetector_Create'); - late final _AgastFeatureDetector_Create = - _AgastFeatureDetector_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _AgastFeatureDetector_CreatePtr = + _lookup Function(ffi.Pointer)>>( + 'AgastFeatureDetector_Create'); + late final _AgastFeatureDetector_Create = _AgastFeatureDetector_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer AgastFeatureDetector_Detect( AgastFeatureDetector a, @@ -171,12 +157,10 @@ class CvNative { late final _AgastFeatureDetector_DetectPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(AgastFeatureDetector, Mat, - ffi.Pointer)>>('AgastFeatureDetector_Detect'); - late final _AgastFeatureDetector_Detect = - _AgastFeatureDetector_DetectPtr.asFunction< ffi.Pointer Function( - AgastFeatureDetector, Mat, ffi.Pointer)>(); + AgastFeatureDetector, Mat, ffi.Pointer)>>('AgastFeatureDetector_Detect'); + late final _AgastFeatureDetector_Detect = _AgastFeatureDetector_DetectPtr.asFunction< + ffi.Pointer Function(AgastFeatureDetector, Mat, ffi.Pointer)>(); void AlignMTB_Close( AlignMTBPtr b, @@ -187,10 +171,8 @@ class CvNative { } late final _AlignMTB_ClosePtr = - _lookup>( - 'AlignMTB_Close'); - late final _AlignMTB_Close = - _AlignMTB_ClosePtr.asFunction(); + _lookup>('AlignMTB_Close'); + late final _AlignMTB_Close = _AlignMTB_ClosePtr.asFunction(); ffi.Pointer AlignMTB_Create( ffi.Pointer rval, @@ -200,12 +182,10 @@ class CvNative { ); } - late final _AlignMTB_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('AlignMTB_Create'); - late final _AlignMTB_Create = _AlignMTB_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _AlignMTB_CreatePtr = + _lookup Function(ffi.Pointer)>>('AlignMTB_Create'); + late final _AlignMTB_Create = + _AlignMTB_CreatePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer AlignMTB_CreateWithParams( int max_bits, @@ -222,13 +202,11 @@ class CvNative { } late final _AlignMTB_CreateWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Int, ffi.Bool, - ffi.Pointer)>>('AlignMTB_CreateWithParams'); - late final _AlignMTB_CreateWithParams = - _AlignMTB_CreateWithParamsPtr.asFunction< - ffi.Pointer Function( - int, int, bool, ffi.Pointer)>(); + ffi + .NativeFunction Function(ffi.Int, ffi.Int, ffi.Bool, ffi.Pointer)>>( + 'AlignMTB_CreateWithParams'); + late final _AlignMTB_CreateWithParams = _AlignMTB_CreateWithParamsPtr.asFunction< + ffi.Pointer Function(int, int, bool, ffi.Pointer)>(); ffi.Pointer AlignMTB_Process( AlignMTB b, @@ -242,10 +220,9 @@ class CvNative { ); } - late final _AlignMTB_ProcessPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - AlignMTB, VecMat, ffi.Pointer)>>('AlignMTB_Process'); + late final _AlignMTB_ProcessPtr = + _lookup Function(AlignMTB, VecMat, ffi.Pointer)>>( + 'AlignMTB_Process'); late final _AlignMTB_Process = _AlignMTB_ProcessPtr.asFunction< ffi.Pointer Function(AlignMTB, VecMat, ffi.Pointer)>(); @@ -261,11 +238,9 @@ class CvNative { ); } - late final _ApplyColorMapPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int)>>('ApplyColorMap'); - late final _ApplyColorMap = _ApplyColorMapPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int)>(); + late final _ApplyColorMapPtr = + _lookup Function(Mat, Mat, ffi.Int)>>('ApplyColorMap'); + late final _ApplyColorMap = _ApplyColorMapPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer ApplyCustomColorMap( Mat src, @@ -279,11 +254,10 @@ class CvNative { ); } - late final _ApplyCustomColorMapPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'ApplyCustomColorMap'); - late final _ApplyCustomColorMap = _ApplyCustomColorMapPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _ApplyCustomColorMapPtr = + _lookup Function(Mat, Mat, Mat)>>('ApplyCustomColorMap'); + late final _ApplyCustomColorMap = + _ApplyCustomColorMapPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer ApproxPolyDP( VecPoint curve, @@ -301,11 +275,10 @@ class CvNative { late final _ApproxPolyDPPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecPoint, ffi.Double, ffi.Bool, - ffi.Pointer)>>('ApproxPolyDP'); + ffi.Pointer Function( + VecPoint, ffi.Double, ffi.Bool, ffi.Pointer)>>('ApproxPolyDP'); late final _ApproxPolyDP = _ApproxPolyDPPtr.asFunction< - ffi.Pointer Function( - VecPoint, double, bool, ffi.Pointer)>(); + ffi.Pointer Function(VecPoint, double, bool, ffi.Pointer)>(); ffi.Pointer ArcLength( VecPoint curve, @@ -320,12 +293,10 @@ class CvNative { } late final _ArcLengthPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Bool, ffi.Pointer)>>('ArcLength'); - late final _ArcLength = _ArcLengthPtr.asFunction< - ffi.Pointer Function( - VecPoint, bool, ffi.Pointer)>(); + ffi.NativeFunction Function(VecPoint, ffi.Bool, ffi.Pointer)>>( + 'ArcLength'); + late final _ArcLength = + _ArcLengthPtr.asFunction Function(VecPoint, bool, ffi.Pointer)>(); ffi.Pointer ArrowedLine( Mat img, @@ -351,11 +322,10 @@ class CvNative { late final _ArrowedLinePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Point, Point, Scalar, ffi.Int, - ffi.Int, ffi.Int, ffi.Double)>>('ArrowedLine'); + ffi.Pointer Function( + Mat, Point, Point, Scalar, ffi.Int, ffi.Int, ffi.Int, ffi.Double)>>('ArrowedLine'); late final _ArrowedLine = _ArrowedLinePtr.asFunction< - ffi.Pointer Function( - Mat, Point, Point, Scalar, int, int, int, double)>(); + ffi.Pointer Function(Mat, Point, Point, Scalar, int, int, int, double)>(); void ArucoDetectorParameters_Close( ArucoDetectorParametersPtr ap, @@ -365,11 +335,11 @@ class CvNative { ); } - late final _ArucoDetectorParameters_ClosePtr = _lookup< - ffi.NativeFunction>( - 'ArucoDetectorParameters_Close'); - late final _ArucoDetectorParameters_Close = _ArucoDetectorParameters_ClosePtr - .asFunction(); + late final _ArucoDetectorParameters_ClosePtr = + _lookup>( + 'ArucoDetectorParameters_Close'); + late final _ArucoDetectorParameters_Close = + _ArucoDetectorParameters_ClosePtr.asFunction(); ffi.Pointer ArucoDetectorParameters_Create( ffi.Pointer rval, @@ -379,15 +349,11 @@ class CvNative { ); } - late final _ArucoDetectorParameters_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>( - 'ArucoDetectorParameters_Create'); - late final _ArucoDetectorParameters_Create = - _ArucoDetectorParameters_CreatePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer)>(); + late final _ArucoDetectorParameters_CreatePtr = + _lookup Function(ffi.Pointer)>>( + 'ArucoDetectorParameters_Create'); + late final _ArucoDetectorParameters_Create = _ArucoDetectorParameters_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAdaptiveThreshConstant( ArucoDetectorParameters ap, @@ -400,14 +366,12 @@ class CvNative { } late final _ArucoDetectorParameters_GetAdaptiveThreshConstantPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAdaptiveThreshConstant'); late final _ArucoDetectorParameters_GetAdaptiveThreshConstant = _ArucoDetectorParameters_GetAdaptiveThreshConstantPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAdaptiveThreshWinSizeMax( ArucoDetectorParameters ap, @@ -420,14 +384,11 @@ class CvNative { } late final _ArucoDetectorParameters_GetAdaptiveThreshWinSizeMaxPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAdaptiveThreshWinSizeMax'); late final _ArucoDetectorParameters_GetAdaptiveThreshWinSizeMax = _ArucoDetectorParameters_GetAdaptiveThreshWinSizeMaxPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAdaptiveThreshWinSizeMin( ArucoDetectorParameters ap, @@ -440,14 +401,11 @@ class CvNative { } late final _ArucoDetectorParameters_GetAdaptiveThreshWinSizeMinPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAdaptiveThreshWinSizeMin'); late final _ArucoDetectorParameters_GetAdaptiveThreshWinSizeMin = _ArucoDetectorParameters_GetAdaptiveThreshWinSizeMinPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAdaptiveThreshWinSizeStep( ArucoDetectorParameters ap, @@ -460,14 +418,11 @@ class CvNative { } late final _ArucoDetectorParameters_GetAdaptiveThreshWinSizeStepPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAdaptiveThreshWinSizeStep'); late final _ArucoDetectorParameters_GetAdaptiveThreshWinSizeStep = _ArucoDetectorParameters_GetAdaptiveThreshWinSizeStepPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagCriticalRad( ArucoDetectorParameters ap, @@ -480,14 +435,12 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagCriticalRadPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagCriticalRad'); late final _ArucoDetectorParameters_GetAprilTagCriticalRad = _ArucoDetectorParameters_GetAprilTagCriticalRadPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagDeglitch( ArucoDetectorParameters ap, @@ -500,14 +453,10 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagDeglitchPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagDeglitch'); - late final _ArucoDetectorParameters_GetAprilTagDeglitch = - _ArucoDetectorParameters_GetAprilTagDeglitchPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + late final _ArucoDetectorParameters_GetAprilTagDeglitch = _ArucoDetectorParameters_GetAprilTagDeglitchPtr + .asFunction Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagMaxLineFitMse( ArucoDetectorParameters ap, @@ -520,14 +469,12 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagMaxLineFitMsePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagMaxLineFitMse'); late final _ArucoDetectorParameters_GetAprilTagMaxLineFitMse = _ArucoDetectorParameters_GetAprilTagMaxLineFitMsePtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagMaxNmaxima( ArucoDetectorParameters ap, @@ -540,14 +487,11 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagMaxNmaximaPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagMaxNmaxima'); late final _ArucoDetectorParameters_GetAprilTagMaxNmaxima = _ArucoDetectorParameters_GetAprilTagMaxNmaximaPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagMinClusterPixels( ArucoDetectorParameters ap, @@ -560,14 +504,11 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagMinClusterPixelsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagMinClusterPixels'); late final _ArucoDetectorParameters_GetAprilTagMinClusterPixels = _ArucoDetectorParameters_GetAprilTagMinClusterPixelsPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagMinWhiteBlackDiff( ArucoDetectorParameters ap, @@ -580,14 +521,11 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagMinWhiteBlackDiffPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagMinWhiteBlackDiff'); late final _ArucoDetectorParameters_GetAprilTagMinWhiteBlackDiff = _ArucoDetectorParameters_GetAprilTagMinWhiteBlackDiffPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagQuadDecimate( ArucoDetectorParameters ap, @@ -600,14 +538,12 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagQuadDecimatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagQuadDecimate'); late final _ArucoDetectorParameters_GetAprilTagQuadDecimate = _ArucoDetectorParameters_GetAprilTagQuadDecimatePtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagQuadSigma( ArucoDetectorParameters ap, @@ -620,17 +556,13 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagQuadSigmaPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagQuadSigma'); - late final _ArucoDetectorParameters_GetAprilTagQuadSigma = - _ArucoDetectorParameters_GetAprilTagQuadSigmaPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + late final _ArucoDetectorParameters_GetAprilTagQuadSigma = _ArucoDetectorParameters_GetAprilTagQuadSigmaPtr + .asFunction Function(ArucoDetectorParameters, ffi.Pointer)>(); - ffi.Pointer - ArucoDetectorParameters_GetCornerRefinementMaxIterations( + ffi.Pointer ArucoDetectorParameters_GetCornerRefinementMaxIterations( ArucoDetectorParameters ap, ffi.Pointer rval, ) { @@ -640,16 +572,12 @@ class CvNative { ); } - late final _ArucoDetectorParameters_GetCornerRefinementMaxIterationsPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( - 'ArucoDetectorParameters_GetCornerRefinementMaxIterations'); + late final _ArucoDetectorParameters_GetCornerRefinementMaxIterationsPtr = _lookup< + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + 'ArucoDetectorParameters_GetCornerRefinementMaxIterations'); late final _ArucoDetectorParameters_GetCornerRefinementMaxIterations = _ArucoDetectorParameters_GetCornerRefinementMaxIterationsPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetCornerRefinementMethod( ArucoDetectorParameters ap, @@ -662,14 +590,11 @@ class CvNative { } late final _ArucoDetectorParameters_GetCornerRefinementMethodPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetCornerRefinementMethod'); late final _ArucoDetectorParameters_GetCornerRefinementMethod = _ArucoDetectorParameters_GetCornerRefinementMethodPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetCornerRefinementMinAccuracy( ArucoDetectorParameters ap, @@ -681,16 +606,13 @@ class CvNative { ); } - late final _ArucoDetectorParameters_GetCornerRefinementMinAccuracyPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( - 'ArucoDetectorParameters_GetCornerRefinementMinAccuracy'); + late final _ArucoDetectorParameters_GetCornerRefinementMinAccuracyPtr = _lookup< + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + 'ArucoDetectorParameters_GetCornerRefinementMinAccuracy'); late final _ArucoDetectorParameters_GetCornerRefinementMinAccuracy = _ArucoDetectorParameters_GetCornerRefinementMinAccuracyPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetCornerRefinementWinSize( ArucoDetectorParameters ap, @@ -703,14 +625,11 @@ class CvNative { } late final _ArucoDetectorParameters_GetCornerRefinementWinSizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetCornerRefinementWinSize'); late final _ArucoDetectorParameters_GetCornerRefinementWinSize = _ArucoDetectorParameters_GetCornerRefinementWinSizePtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetDetectInvertedMarker( ArucoDetectorParameters ap, @@ -723,14 +642,11 @@ class CvNative { } late final _ArucoDetectorParameters_GetDetectInvertedMarkerPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetDetectInvertedMarker'); late final _ArucoDetectorParameters_GetDetectInvertedMarker = _ArucoDetectorParameters_GetDetectInvertedMarkerPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetErrorCorrectionRate( ArucoDetectorParameters ap, @@ -743,14 +659,12 @@ class CvNative { } late final _ArucoDetectorParameters_GetErrorCorrectionRatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetErrorCorrectionRate'); late final _ArucoDetectorParameters_GetErrorCorrectionRate = _ArucoDetectorParameters_GetErrorCorrectionRatePtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMarkerBorderBits( ArucoDetectorParameters ap, @@ -763,14 +677,10 @@ class CvNative { } late final _ArucoDetectorParameters_GetMarkerBorderBitsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMarkerBorderBits'); - late final _ArucoDetectorParameters_GetMarkerBorderBits = - _ArucoDetectorParameters_GetMarkerBorderBitsPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + late final _ArucoDetectorParameters_GetMarkerBorderBits = _ArucoDetectorParameters_GetMarkerBorderBitsPtr + .asFunction Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMaxErroneousBitsInBorderRate( ArucoDetectorParameters ap, @@ -782,16 +692,13 @@ class CvNative { ); } - late final _ArucoDetectorParameters_GetMaxErroneousBitsInBorderRatePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( - 'ArucoDetectorParameters_GetMaxErroneousBitsInBorderRate'); + late final _ArucoDetectorParameters_GetMaxErroneousBitsInBorderRatePtr = _lookup< + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + 'ArucoDetectorParameters_GetMaxErroneousBitsInBorderRate'); late final _ArucoDetectorParameters_GetMaxErroneousBitsInBorderRate = _ArucoDetectorParameters_GetMaxErroneousBitsInBorderRatePtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMaxMarkerPerimeterRate( ArucoDetectorParameters ap, @@ -804,14 +711,12 @@ class CvNative { } late final _ArucoDetectorParameters_GetMaxMarkerPerimeterRatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMaxMarkerPerimeterRate'); late final _ArucoDetectorParameters_GetMaxMarkerPerimeterRate = _ArucoDetectorParameters_GetMaxMarkerPerimeterRatePtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMinCornerDistanceRate( ArucoDetectorParameters ap, @@ -824,14 +729,12 @@ class CvNative { } late final _ArucoDetectorParameters_GetMinCornerDistanceRatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMinCornerDistanceRate'); late final _ArucoDetectorParameters_GetMinCornerDistanceRate = _ArucoDetectorParameters_GetMinCornerDistanceRatePtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMinDistanceToBorder( ArucoDetectorParameters ap, @@ -844,14 +747,11 @@ class CvNative { } late final _ArucoDetectorParameters_GetMinDistanceToBorderPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMinDistanceToBorder'); late final _ArucoDetectorParameters_GetMinDistanceToBorder = _ArucoDetectorParameters_GetMinDistanceToBorderPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMinMarkerDistanceRate( ArucoDetectorParameters ap, @@ -864,14 +764,12 @@ class CvNative { } late final _ArucoDetectorParameters_GetMinMarkerDistanceRatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMinMarkerDistanceRate'); late final _ArucoDetectorParameters_GetMinMarkerDistanceRate = _ArucoDetectorParameters_GetMinMarkerDistanceRatePtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMinMarkerPerimeterRate( ArucoDetectorParameters ap, @@ -884,14 +782,12 @@ class CvNative { } late final _ArucoDetectorParameters_GetMinMarkerPerimeterRatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMinMarkerPerimeterRate'); late final _ArucoDetectorParameters_GetMinMarkerPerimeterRate = _ArucoDetectorParameters_GetMinMarkerPerimeterRatePtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMinOtsuStdDev( ArucoDetectorParameters ap, @@ -904,17 +800,13 @@ class CvNative { } late final _ArucoDetectorParameters_GetMinOtsuStdDevPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMinOtsuStdDev'); - late final _ArucoDetectorParameters_GetMinOtsuStdDev = - _ArucoDetectorParameters_GetMinOtsuStdDevPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + late final _ArucoDetectorParameters_GetMinOtsuStdDev = _ArucoDetectorParameters_GetMinOtsuStdDevPtr + .asFunction Function(ArucoDetectorParameters, ffi.Pointer)>(); - ffi.Pointer - ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCell( + ffi.Pointer ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCell( ArucoDetectorParameters ap, ffi.Pointer rval, ) { @@ -924,20 +816,15 @@ class CvNative { ); } - late final _ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCellPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( - 'ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCell'); + late final _ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCellPtr = _lookup< + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + 'ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCell'); late final _ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCell = - _ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCellPtr - .asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + _ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCellPtr.asFunction< + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); - ffi.Pointer - ArucoDetectorParameters_GetPerspectiveRemovePixelPerCell( + ffi.Pointer ArucoDetectorParameters_GetPerspectiveRemovePixelPerCell( ArucoDetectorParameters ap, ffi.Pointer rval, ) { @@ -947,16 +834,12 @@ class CvNative { ); } - late final _ArucoDetectorParameters_GetPerspectiveRemovePixelPerCellPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( - 'ArucoDetectorParameters_GetPerspectiveRemovePixelPerCell'); + late final _ArucoDetectorParameters_GetPerspectiveRemovePixelPerCellPtr = _lookup< + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + 'ArucoDetectorParameters_GetPerspectiveRemovePixelPerCell'); late final _ArucoDetectorParameters_GetPerspectiveRemovePixelPerCell = _ArucoDetectorParameters_GetPerspectiveRemovePixelPerCellPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetPolygonalApproxAccuracyRate( ArucoDetectorParameters ap, @@ -968,16 +851,13 @@ class CvNative { ); } - late final _ArucoDetectorParameters_GetPolygonalApproxAccuracyRatePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( - 'ArucoDetectorParameters_GetPolygonalApproxAccuracyRate'); + late final _ArucoDetectorParameters_GetPolygonalApproxAccuracyRatePtr = _lookup< + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + 'ArucoDetectorParameters_GetPolygonalApproxAccuracyRate'); late final _ArucoDetectorParameters_GetPolygonalApproxAccuracyRate = _ArucoDetectorParameters_GetPolygonalApproxAccuracyRatePtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_SetAdaptiveThreshConstant( ArucoDetectorParameters ap, @@ -989,11 +869,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAdaptiveThreshConstantPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Double)>>( - 'ArucoDetectorParameters_SetAdaptiveThreshConstant'); + late final _ArucoDetectorParameters_SetAdaptiveThreshConstantPtr = + _lookup Function(ArucoDetectorParameters, ffi.Double)>>( + 'ArucoDetectorParameters_SetAdaptiveThreshConstant'); late final _ArucoDetectorParameters_SetAdaptiveThreshConstant = _ArucoDetectorParameters_SetAdaptiveThreshConstantPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1008,10 +886,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMaxPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Int)>>('ArucoDetectorParameters_SetAdaptiveThreshWinSizeMax'); + late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMaxPtr = + _lookup Function(ArucoDetectorParameters, ffi.Int)>>( + 'ArucoDetectorParameters_SetAdaptiveThreshWinSizeMax'); late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMax = _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMaxPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1026,10 +903,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMinPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Int)>>('ArucoDetectorParameters_SetAdaptiveThreshWinSizeMin'); + late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMinPtr = + _lookup Function(ArucoDetectorParameters, ffi.Int)>>( + 'ArucoDetectorParameters_SetAdaptiveThreshWinSizeMin'); late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMin = _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMinPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1044,11 +920,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeStepPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Int)>>( - 'ArucoDetectorParameters_SetAdaptiveThreshWinSizeStep'); + late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeStepPtr = + _lookup Function(ArucoDetectorParameters, ffi.Int)>>( + 'ArucoDetectorParameters_SetAdaptiveThreshWinSizeStep'); late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeStep = _ArucoDetectorParameters_SetAdaptiveThreshWinSizeStepPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1063,10 +937,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagCriticalRadPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Float)>>('ArucoDetectorParameters_SetAprilTagCriticalRad'); + late final _ArucoDetectorParameters_SetAprilTagCriticalRadPtr = + _lookup Function(ArucoDetectorParameters, ffi.Float)>>( + 'ArucoDetectorParameters_SetAprilTagCriticalRad'); late final _ArucoDetectorParameters_SetAprilTagCriticalRad = _ArucoDetectorParameters_SetAprilTagCriticalRadPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1081,13 +954,11 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagDeglitchPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Int)>>('ArucoDetectorParameters_SetAprilTagDeglitch'); - late final _ArucoDetectorParameters_SetAprilTagDeglitch = - _ArucoDetectorParameters_SetAprilTagDeglitchPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, int)>(); + late final _ArucoDetectorParameters_SetAprilTagDeglitchPtr = + _lookup Function(ArucoDetectorParameters, ffi.Int)>>( + 'ArucoDetectorParameters_SetAprilTagDeglitch'); + late final _ArucoDetectorParameters_SetAprilTagDeglitch = _ArucoDetectorParameters_SetAprilTagDeglitchPtr + .asFunction Function(ArucoDetectorParameters, int)>(); ffi.Pointer ArucoDetectorParameters_SetAprilTagMaxLineFitMse( ArucoDetectorParameters ap, @@ -1099,10 +970,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagMaxLineFitMsePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Float)>>('ArucoDetectorParameters_SetAprilTagMaxLineFitMse'); + late final _ArucoDetectorParameters_SetAprilTagMaxLineFitMsePtr = + _lookup Function(ArucoDetectorParameters, ffi.Float)>>( + 'ArucoDetectorParameters_SetAprilTagMaxLineFitMse'); late final _ArucoDetectorParameters_SetAprilTagMaxLineFitMse = _ArucoDetectorParameters_SetAprilTagMaxLineFitMsePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1117,10 +987,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagMaxNmaximaPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Int)>>('ArucoDetectorParameters_SetAprilTagMaxNmaxima'); + late final _ArucoDetectorParameters_SetAprilTagMaxNmaximaPtr = + _lookup Function(ArucoDetectorParameters, ffi.Int)>>( + 'ArucoDetectorParameters_SetAprilTagMaxNmaxima'); late final _ArucoDetectorParameters_SetAprilTagMaxNmaxima = _ArucoDetectorParameters_SetAprilTagMaxNmaximaPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1135,10 +1004,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagMinClusterPixelsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Int)>>('ArucoDetectorParameters_SetAprilTagMinClusterPixels'); + late final _ArucoDetectorParameters_SetAprilTagMinClusterPixelsPtr = + _lookup Function(ArucoDetectorParameters, ffi.Int)>>( + 'ArucoDetectorParameters_SetAprilTagMinClusterPixels'); late final _ArucoDetectorParameters_SetAprilTagMinClusterPixels = _ArucoDetectorParameters_SetAprilTagMinClusterPixelsPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1153,11 +1021,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagMinWhiteBlackDiffPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Int)>>( - 'ArucoDetectorParameters_SetAprilTagMinWhiteBlackDiff'); + late final _ArucoDetectorParameters_SetAprilTagMinWhiteBlackDiffPtr = + _lookup Function(ArucoDetectorParameters, ffi.Int)>>( + 'ArucoDetectorParameters_SetAprilTagMinWhiteBlackDiff'); late final _ArucoDetectorParameters_SetAprilTagMinWhiteBlackDiff = _ArucoDetectorParameters_SetAprilTagMinWhiteBlackDiffPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1172,10 +1038,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagQuadDecimatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Float)>>('ArucoDetectorParameters_SetAprilTagQuadDecimate'); + late final _ArucoDetectorParameters_SetAprilTagQuadDecimatePtr = + _lookup Function(ArucoDetectorParameters, ffi.Float)>>( + 'ArucoDetectorParameters_SetAprilTagQuadDecimate'); late final _ArucoDetectorParameters_SetAprilTagQuadDecimate = _ArucoDetectorParameters_SetAprilTagQuadDecimatePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1190,16 +1055,13 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagQuadSigmaPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Float)>>('ArucoDetectorParameters_SetAprilTagQuadSigma'); - late final _ArucoDetectorParameters_SetAprilTagQuadSigma = - _ArucoDetectorParameters_SetAprilTagQuadSigmaPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, double)>(); + late final _ArucoDetectorParameters_SetAprilTagQuadSigmaPtr = + _lookup Function(ArucoDetectorParameters, ffi.Float)>>( + 'ArucoDetectorParameters_SetAprilTagQuadSigma'); + late final _ArucoDetectorParameters_SetAprilTagQuadSigma = _ArucoDetectorParameters_SetAprilTagQuadSigmaPtr + .asFunction Function(ArucoDetectorParameters, double)>(); - ffi.Pointer - ArucoDetectorParameters_SetCornerRefinementMaxIterations( + ffi.Pointer ArucoDetectorParameters_SetCornerRefinementMaxIterations( ArucoDetectorParameters ap, int cornerRefinementMaxIterations, ) { @@ -1210,10 +1072,7 @@ class CvNative { } late final _ArucoDetectorParameters_SetCornerRefinementMaxIterationsPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Int)>>( + _lookup Function(ArucoDetectorParameters, ffi.Int)>>( 'ArucoDetectorParameters_SetCornerRefinementMaxIterations'); late final _ArucoDetectorParameters_SetCornerRefinementMaxIterations = _ArucoDetectorParameters_SetCornerRefinementMaxIterationsPtr.asFunction< @@ -1229,10 +1088,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetCornerRefinementMethodPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Int)>>('ArucoDetectorParameters_SetCornerRefinementMethod'); + late final _ArucoDetectorParameters_SetCornerRefinementMethodPtr = + _lookup Function(ArucoDetectorParameters, ffi.Int)>>( + 'ArucoDetectorParameters_SetCornerRefinementMethod'); late final _ArucoDetectorParameters_SetCornerRefinementMethod = _ArucoDetectorParameters_SetCornerRefinementMethodPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1248,10 +1106,7 @@ class CvNative { } late final _ArucoDetectorParameters_SetCornerRefinementMinAccuracyPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Double)>>( + _lookup Function(ArucoDetectorParameters, ffi.Double)>>( 'ArucoDetectorParameters_SetCornerRefinementMinAccuracy'); late final _ArucoDetectorParameters_SetCornerRefinementMinAccuracy = _ArucoDetectorParameters_SetCornerRefinementMinAccuracyPtr.asFunction< @@ -1267,10 +1122,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetCornerRefinementWinSizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Int)>>('ArucoDetectorParameters_SetCornerRefinementWinSize'); + late final _ArucoDetectorParameters_SetCornerRefinementWinSizePtr = + _lookup Function(ArucoDetectorParameters, ffi.Int)>>( + 'ArucoDetectorParameters_SetCornerRefinementWinSize'); late final _ArucoDetectorParameters_SetCornerRefinementWinSize = _ArucoDetectorParameters_SetCornerRefinementWinSizePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1285,10 +1139,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetDetectInvertedMarkerPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Bool)>>('ArucoDetectorParameters_SetDetectInvertedMarker'); + late final _ArucoDetectorParameters_SetDetectInvertedMarkerPtr = + _lookup Function(ArucoDetectorParameters, ffi.Bool)>>( + 'ArucoDetectorParameters_SetDetectInvertedMarker'); late final _ArucoDetectorParameters_SetDetectInvertedMarker = _ArucoDetectorParameters_SetDetectInvertedMarkerPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, bool)>(); @@ -1303,10 +1156,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetErrorCorrectionRatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Double)>>('ArucoDetectorParameters_SetErrorCorrectionRate'); + late final _ArucoDetectorParameters_SetErrorCorrectionRatePtr = + _lookup Function(ArucoDetectorParameters, ffi.Double)>>( + 'ArucoDetectorParameters_SetErrorCorrectionRate'); late final _ArucoDetectorParameters_SetErrorCorrectionRate = _ArucoDetectorParameters_SetErrorCorrectionRatePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1321,13 +1173,11 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMarkerBorderBitsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Int)>>('ArucoDetectorParameters_SetMarkerBorderBits'); - late final _ArucoDetectorParameters_SetMarkerBorderBits = - _ArucoDetectorParameters_SetMarkerBorderBitsPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, int)>(); + late final _ArucoDetectorParameters_SetMarkerBorderBitsPtr = + _lookup Function(ArucoDetectorParameters, ffi.Int)>>( + 'ArucoDetectorParameters_SetMarkerBorderBits'); + late final _ArucoDetectorParameters_SetMarkerBorderBits = _ArucoDetectorParameters_SetMarkerBorderBitsPtr + .asFunction Function(ArucoDetectorParameters, int)>(); ffi.Pointer ArucoDetectorParameters_SetMaxErroneousBitsInBorderRate( ArucoDetectorParameters ap, @@ -1340,10 +1190,7 @@ class CvNative { } late final _ArucoDetectorParameters_SetMaxErroneousBitsInBorderRatePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Double)>>( + _lookup Function(ArucoDetectorParameters, ffi.Double)>>( 'ArucoDetectorParameters_SetMaxErroneousBitsInBorderRate'); late final _ArucoDetectorParameters_SetMaxErroneousBitsInBorderRate = _ArucoDetectorParameters_SetMaxErroneousBitsInBorderRatePtr.asFunction< @@ -1359,11 +1206,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMaxMarkerPerimeterRatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Double)>>( - 'ArucoDetectorParameters_SetMaxMarkerPerimeterRate'); + late final _ArucoDetectorParameters_SetMaxMarkerPerimeterRatePtr = + _lookup Function(ArucoDetectorParameters, ffi.Double)>>( + 'ArucoDetectorParameters_SetMaxMarkerPerimeterRate'); late final _ArucoDetectorParameters_SetMaxMarkerPerimeterRate = _ArucoDetectorParameters_SetMaxMarkerPerimeterRatePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1378,10 +1223,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMinCornerDistanceRatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Double)>>('ArucoDetectorParameters_SetMinCornerDistanceRate'); + late final _ArucoDetectorParameters_SetMinCornerDistanceRatePtr = + _lookup Function(ArucoDetectorParameters, ffi.Double)>>( + 'ArucoDetectorParameters_SetMinCornerDistanceRate'); late final _ArucoDetectorParameters_SetMinCornerDistanceRate = _ArucoDetectorParameters_SetMinCornerDistanceRatePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1396,10 +1240,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMinDistanceToBorderPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Int)>>('ArucoDetectorParameters_SetMinDistanceToBorder'); + late final _ArucoDetectorParameters_SetMinDistanceToBorderPtr = + _lookup Function(ArucoDetectorParameters, ffi.Int)>>( + 'ArucoDetectorParameters_SetMinDistanceToBorder'); late final _ArucoDetectorParameters_SetMinDistanceToBorder = _ArucoDetectorParameters_SetMinDistanceToBorderPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1414,10 +1257,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMinMarkerDistanceRatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Double)>>('ArucoDetectorParameters_SetMinMarkerDistanceRate'); + late final _ArucoDetectorParameters_SetMinMarkerDistanceRatePtr = + _lookup Function(ArucoDetectorParameters, ffi.Double)>>( + 'ArucoDetectorParameters_SetMinMarkerDistanceRate'); late final _ArucoDetectorParameters_SetMinMarkerDistanceRate = _ArucoDetectorParameters_SetMinMarkerDistanceRatePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1432,11 +1274,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMinMarkerPerimeterRatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Double)>>( - 'ArucoDetectorParameters_SetMinMarkerPerimeterRate'); + late final _ArucoDetectorParameters_SetMinMarkerPerimeterRatePtr = + _lookup Function(ArucoDetectorParameters, ffi.Double)>>( + 'ArucoDetectorParameters_SetMinMarkerPerimeterRate'); late final _ArucoDetectorParameters_SetMinMarkerPerimeterRate = _ArucoDetectorParameters_SetMinMarkerPerimeterRatePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1451,16 +1291,13 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMinOtsuStdDevPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Double)>>('ArucoDetectorParameters_SetMinOtsuStdDev'); - late final _ArucoDetectorParameters_SetMinOtsuStdDev = - _ArucoDetectorParameters_SetMinOtsuStdDevPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, double)>(); + late final _ArucoDetectorParameters_SetMinOtsuStdDevPtr = + _lookup Function(ArucoDetectorParameters, ffi.Double)>>( + 'ArucoDetectorParameters_SetMinOtsuStdDev'); + late final _ArucoDetectorParameters_SetMinOtsuStdDev = _ArucoDetectorParameters_SetMinOtsuStdDevPtr + .asFunction Function(ArucoDetectorParameters, double)>(); - ffi.Pointer - ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCell( + ffi.Pointer ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCell( ArucoDetectorParameters ap, double perspectiveRemoveIgnoredMarginPerCell, ) { @@ -1471,19 +1308,13 @@ class CvNative { } late final _ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCellPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Double)>>( + _lookup Function(ArucoDetectorParameters, ffi.Double)>>( 'ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCell'); late final _ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCell = - _ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCellPtr - .asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, double)>(); + _ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCellPtr.asFunction< + ffi.Pointer Function(ArucoDetectorParameters, double)>(); - ffi.Pointer - ArucoDetectorParameters_SetPerspectiveRemovePixelPerCell( + ffi.Pointer ArucoDetectorParameters_SetPerspectiveRemovePixelPerCell( ArucoDetectorParameters ap, int perspectiveRemovePixelPerCell, ) { @@ -1494,10 +1325,7 @@ class CvNative { } late final _ArucoDetectorParameters_SetPerspectiveRemovePixelPerCellPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Int)>>( + _lookup Function(ArucoDetectorParameters, ffi.Int)>>( 'ArucoDetectorParameters_SetPerspectiveRemovePixelPerCell'); late final _ArucoDetectorParameters_SetPerspectiveRemovePixelPerCell = _ArucoDetectorParameters_SetPerspectiveRemovePixelPerCellPtr.asFunction< @@ -1514,10 +1342,7 @@ class CvNative { } late final _ArucoDetectorParameters_SetPolygonalApproxAccuracyRatePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Double)>>( + _lookup Function(ArucoDetectorParameters, ffi.Double)>>( 'ArucoDetectorParameters_SetPolygonalApproxAccuracyRate'); late final _ArucoDetectorParameters_SetPolygonalApproxAccuracyRate = _ArucoDetectorParameters_SetPolygonalApproxAccuracyRatePtr.asFunction< @@ -1532,10 +1357,8 @@ class CvNative { } late final _ArucoDetector_ClosePtr = - _lookup>( - 'ArucoDetector_Close'); - late final _ArucoDetector_Close = - _ArucoDetector_ClosePtr.asFunction(); + _lookup>('ArucoDetector_Close'); + late final _ArucoDetector_Close = _ArucoDetector_ClosePtr.asFunction(); ffi.Pointer ArucoDetector_DetectMarkers( ArucoDetector ad, @@ -1555,20 +1378,11 @@ class CvNative { late final _ArucoDetector_DetectMarkersPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetector, - Mat, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer Function(ArucoDetector, Mat, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('ArucoDetector_DetectMarkers'); - late final _ArucoDetector_DetectMarkers = - _ArucoDetector_DetectMarkersPtr.asFunction< - ffi.Pointer Function( - ArucoDetector, - Mat, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + late final _ArucoDetector_DetectMarkers = _ArucoDetector_DetectMarkersPtr.asFunction< + ffi.Pointer Function( + ArucoDetector, Mat, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer ArucoDetector_New( ffi.Pointer rval, @@ -1578,12 +1392,11 @@ class CvNative { ); } - late final _ArucoDetector_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('ArucoDetector_New'); - late final _ArucoDetector_New = _ArucoDetector_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _ArucoDetector_NewPtr = + _lookup Function(ffi.Pointer)>>( + 'ArucoDetector_New'); + late final _ArucoDetector_New = + _ArucoDetector_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer ArucoDetector_NewWithParams( ArucoDictionary dictionary, @@ -1599,14 +1412,10 @@ class CvNative { late final _ArucoDetector_NewWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ArucoDictionary, - ArucoDetectorParameters, + ffi.Pointer Function(ArucoDictionary, ArucoDetectorParameters, ffi.Pointer)>>('ArucoDetector_NewWithParams'); - late final _ArucoDetector_NewWithParams = - _ArucoDetector_NewWithParamsPtr.asFunction< - ffi.Pointer Function(ArucoDictionary, - ArucoDetectorParameters, ffi.Pointer)>(); + late final _ArucoDetector_NewWithParams = _ArucoDetector_NewWithParamsPtr.asFunction< + ffi.Pointer Function(ArucoDictionary, ArucoDetectorParameters, ffi.Pointer)>(); void ArucoDictionary_Close( ArucoDictionaryPtr self, @@ -1617,8 +1426,7 @@ class CvNative { } late final _ArucoDictionary_ClosePtr = - _lookup>( - 'ArucoDictionary_Close'); + _lookup>('ArucoDictionary_Close'); late final _ArucoDictionary_Close = _ArucoDictionary_ClosePtr.asFunction(); @@ -1636,13 +1444,11 @@ class CvNative { ); } - late final _ArucoDrawDetectedMarkersPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, VecVecPoint2f, VecInt, Scalar)>>('ArucoDrawDetectedMarkers'); - late final _ArucoDrawDetectedMarkers = - _ArucoDrawDetectedMarkersPtr.asFunction< - ffi.Pointer Function(Mat, VecVecPoint2f, VecInt, Scalar)>(); + late final _ArucoDrawDetectedMarkersPtr = + _lookup Function(Mat, VecVecPoint2f, VecInt, Scalar)>>( + 'ArucoDrawDetectedMarkers'); + late final _ArucoDrawDetectedMarkers = _ArucoDrawDetectedMarkersPtr.asFunction< + ffi.Pointer Function(Mat, VecVecPoint2f, VecInt, Scalar)>(); ffi.Pointer ArucoGenerateImageMarker( int dictionaryId, @@ -1660,12 +1466,11 @@ class CvNative { ); } - late final _ArucoGenerateImageMarkerPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Int, ffi.Int, Mat, - ffi.Int)>>('ArucoGenerateImageMarker'); - late final _ArucoGenerateImageMarker = _ArucoGenerateImageMarkerPtr - .asFunction Function(int, int, int, Mat, int)>(); + late final _ArucoGenerateImageMarkerPtr = + _lookup Function(ffi.Int, ffi.Int, ffi.Int, Mat, ffi.Int)>>( + 'ArucoGenerateImageMarker'); + late final _ArucoGenerateImageMarker = + _ArucoGenerateImageMarkerPtr.asFunction Function(int, int, int, Mat, int)>(); void AsyncArray_Close( AsyncArrayPtr a, @@ -1676,10 +1481,8 @@ class CvNative { } late final _AsyncArray_ClosePtr = - _lookup>( - 'AsyncArray_Close'); - late final _AsyncArray_Close = - _AsyncArray_ClosePtr.asFunction(); + _lookup>('AsyncArray_Close'); + late final _AsyncArray_Close = _AsyncArray_ClosePtr.asFunction(); ffi.Pointer AsyncArray_Get( AsyncArray async_out, @@ -1691,11 +1494,10 @@ class CvNative { ); } - late final _AsyncArray_GetPtr = _lookup< - ffi.NativeFunction Function(AsyncArray, Mat)>>( - 'AsyncArray_Get'); - late final _AsyncArray_Get = _AsyncArray_GetPtr.asFunction< - ffi.Pointer Function(AsyncArray, Mat)>(); + late final _AsyncArray_GetPtr = + _lookup Function(AsyncArray, Mat)>>('AsyncArray_Get'); + late final _AsyncArray_Get = + _AsyncArray_GetPtr.asFunction Function(AsyncArray, Mat)>(); ffi.Pointer AsyncArray_New( ffi.Pointer rval, @@ -1705,12 +1507,10 @@ class CvNative { ); } - late final _AsyncArray_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('AsyncArray_New'); - late final _AsyncArray_New = _AsyncArray_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _AsyncArray_NewPtr = + _lookup Function(ffi.Pointer)>>('AsyncArray_New'); + late final _AsyncArray_New = + _AsyncArray_NewPtr.asFunction Function(ffi.Pointer)>(); void BFMatcher_Close( BFMatcherPtr b, @@ -1721,10 +1521,8 @@ class CvNative { } late final _BFMatcher_ClosePtr = - _lookup>( - 'BFMatcher_Close'); - late final _BFMatcher_Close = - _BFMatcher_ClosePtr.asFunction(); + _lookup>('BFMatcher_Close'); + late final _BFMatcher_Close = _BFMatcher_ClosePtr.asFunction(); ffi.Pointer BFMatcher_Create( ffi.Pointer rval, @@ -1734,12 +1532,10 @@ class CvNative { ); } - late final _BFMatcher_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('BFMatcher_Create'); - late final _BFMatcher_Create = _BFMatcher_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _BFMatcher_CreatePtr = + _lookup Function(ffi.Pointer)>>('BFMatcher_Create'); + late final _BFMatcher_Create = + _BFMatcher_CreatePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer BFMatcher_CreateWithParams( int normType, @@ -1753,13 +1549,11 @@ class CvNative { ); } - late final _BFMatcher_CreateWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Bool, - ffi.Pointer)>>('BFMatcher_CreateWithParams'); - late final _BFMatcher_CreateWithParams = - _BFMatcher_CreateWithParamsPtr.asFunction< - ffi.Pointer Function(int, bool, ffi.Pointer)>(); + late final _BFMatcher_CreateWithParamsPtr = + _lookup Function(ffi.Int, ffi.Bool, ffi.Pointer)>>( + 'BFMatcher_CreateWithParams'); + late final _BFMatcher_CreateWithParams = _BFMatcher_CreateWithParamsPtr.asFunction< + ffi.Pointer Function(int, bool, ffi.Pointer)>(); ffi.Pointer BFMatcher_KnnMatch( BFMatcher b, @@ -1779,11 +1573,10 @@ class CvNative { late final _BFMatcher_KnnMatchPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(BFMatcher, Mat, Mat, ffi.Int, - ffi.Pointer)>>('BFMatcher_KnnMatch'); + ffi.Pointer Function( + BFMatcher, Mat, Mat, ffi.Int, ffi.Pointer)>>('BFMatcher_KnnMatch'); late final _BFMatcher_KnnMatch = _BFMatcher_KnnMatchPtr.asFunction< - ffi.Pointer Function( - BFMatcher, Mat, Mat, int, ffi.Pointer)>(); + ffi.Pointer Function(BFMatcher, Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer BFMatcher_Match( BFMatcher b, @@ -1800,12 +1593,10 @@ class CvNative { } late final _BFMatcher_MatchPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - BFMatcher, Mat, Mat, ffi.Pointer)>>('BFMatcher_Match'); + ffi.NativeFunction Function(BFMatcher, Mat, Mat, ffi.Pointer)>>( + 'BFMatcher_Match'); late final _BFMatcher_Match = _BFMatcher_MatchPtr.asFunction< - ffi.Pointer Function( - BFMatcher, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function(BFMatcher, Mat, Mat, ffi.Pointer)>(); void BRISK_Close( BRISKPtr b, @@ -1815,10 +1606,8 @@ class CvNative { ); } - late final _BRISK_ClosePtr = - _lookup>('BRISK_Close'); - late final _BRISK_Close = - _BRISK_ClosePtr.asFunction(); + late final _BRISK_ClosePtr = _lookup>('BRISK_Close'); + late final _BRISK_Close = _BRISK_ClosePtr.asFunction(); ffi.Pointer BRISK_Create( ffi.Pointer rval, @@ -1828,11 +1617,10 @@ class CvNative { ); } - late final _BRISK_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('BRISK_Create'); - late final _BRISK_Create = _BRISK_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _BRISK_CreatePtr = + _lookup Function(ffi.Pointer)>>('BRISK_Create'); + late final _BRISK_Create = + _BRISK_CreatePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer BRISK_Detect( BRISK b, @@ -1846,12 +1634,11 @@ class CvNative { ); } - late final _BRISK_DetectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - BRISK, Mat, ffi.Pointer)>>('BRISK_Detect'); - late final _BRISK_Detect = _BRISK_DetectPtr.asFunction< - ffi.Pointer Function(BRISK, Mat, ffi.Pointer)>(); + late final _BRISK_DetectPtr = + _lookup Function(BRISK, Mat, ffi.Pointer)>>( + 'BRISK_Detect'); + late final _BRISK_Detect = + _BRISK_DetectPtr.asFunction Function(BRISK, Mat, ffi.Pointer)>(); ffi.Pointer BRISK_DetectAndCompute( BRISK b, @@ -1870,12 +1657,10 @@ class CvNative { } late final _BRISK_DetectAndComputePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(BRISK, Mat, Mat, Mat, - ffi.Pointer)>>('BRISK_DetectAndCompute'); + ffi.NativeFunction Function(BRISK, Mat, Mat, Mat, ffi.Pointer)>>( + 'BRISK_DetectAndCompute'); late final _BRISK_DetectAndCompute = _BRISK_DetectAndComputePtr.asFunction< - ffi.Pointer Function( - BRISK, Mat, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function(BRISK, Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer BackgroundSubtractorKNN_Apply( BackgroundSubtractorKNN self, @@ -1889,13 +1674,11 @@ class CvNative { ); } - late final _BackgroundSubtractorKNN_ApplyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(BackgroundSubtractorKNN, Mat, - Mat)>>('BackgroundSubtractorKNN_Apply'); - late final _BackgroundSubtractorKNN_Apply = - _BackgroundSubtractorKNN_ApplyPtr.asFunction< - ffi.Pointer Function(BackgroundSubtractorKNN, Mat, Mat)>(); + late final _BackgroundSubtractorKNN_ApplyPtr = + _lookup Function(BackgroundSubtractorKNN, Mat, Mat)>>( + 'BackgroundSubtractorKNN_Apply'); + late final _BackgroundSubtractorKNN_Apply = _BackgroundSubtractorKNN_ApplyPtr.asFunction< + ffi.Pointer Function(BackgroundSubtractorKNN, Mat, Mat)>(); void BackgroundSubtractorKNN_Close( BackgroundSubtractorKNNPtr self, @@ -1905,11 +1688,11 @@ class CvNative { ); } - late final _BackgroundSubtractorKNN_ClosePtr = _lookup< - ffi.NativeFunction>( - 'BackgroundSubtractorKNN_Close'); - late final _BackgroundSubtractorKNN_Close = _BackgroundSubtractorKNN_ClosePtr - .asFunction(); + late final _BackgroundSubtractorKNN_ClosePtr = + _lookup>( + 'BackgroundSubtractorKNN_Close'); + late final _BackgroundSubtractorKNN_Close = + _BackgroundSubtractorKNN_ClosePtr.asFunction(); ffi.Pointer BackgroundSubtractorKNN_Create( ffi.Pointer rval, @@ -1919,15 +1702,11 @@ class CvNative { ); } - late final _BackgroundSubtractorKNN_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>( - 'BackgroundSubtractorKNN_Create'); - late final _BackgroundSubtractorKNN_Create = - _BackgroundSubtractorKNN_CreatePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer)>(); + late final _BackgroundSubtractorKNN_CreatePtr = + _lookup Function(ffi.Pointer)>>( + 'BackgroundSubtractorKNN_Create'); + late final _BackgroundSubtractorKNN_Create = _BackgroundSubtractorKNN_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer BackgroundSubtractorKNN_CreateWithParams( int history, @@ -1944,14 +1723,11 @@ class CvNative { } late final _BackgroundSubtractorKNN_CreateWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Double, ffi.Bool, - ffi.Pointer)>>( - 'BackgroundSubtractorKNN_CreateWithParams'); - late final _BackgroundSubtractorKNN_CreateWithParams = - _BackgroundSubtractorKNN_CreateWithParamsPtr.asFunction< - ffi.Pointer Function( - int, double, bool, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Double, ffi.Bool, + ffi.Pointer)>>('BackgroundSubtractorKNN_CreateWithParams'); + late final _BackgroundSubtractorKNN_CreateWithParams = _BackgroundSubtractorKNN_CreateWithParamsPtr + .asFunction Function(int, double, bool, ffi.Pointer)>(); ffi.Pointer BackgroundSubtractorMOG2_Apply( BackgroundSubtractorMOG2 self, @@ -1965,13 +1741,11 @@ class CvNative { ); } - late final _BackgroundSubtractorMOG2_ApplyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(BackgroundSubtractorMOG2, Mat, - Mat)>>('BackgroundSubtractorMOG2_Apply'); - late final _BackgroundSubtractorMOG2_Apply = - _BackgroundSubtractorMOG2_ApplyPtr.asFunction< - ffi.Pointer Function(BackgroundSubtractorMOG2, Mat, Mat)>(); + late final _BackgroundSubtractorMOG2_ApplyPtr = + _lookup Function(BackgroundSubtractorMOG2, Mat, Mat)>>( + 'BackgroundSubtractorMOG2_Apply'); + late final _BackgroundSubtractorMOG2_Apply = _BackgroundSubtractorMOG2_ApplyPtr.asFunction< + ffi.Pointer Function(BackgroundSubtractorMOG2, Mat, Mat)>(); void BackgroundSubtractorMOG2_Close( BackgroundSubtractorMOG2Ptr self, @@ -1981,12 +1755,11 @@ class CvNative { ); } - late final _BackgroundSubtractorMOG2_ClosePtr = _lookup< - ffi.NativeFunction>( - 'BackgroundSubtractorMOG2_Close'); + late final _BackgroundSubtractorMOG2_ClosePtr = + _lookup>( + 'BackgroundSubtractorMOG2_Close'); late final _BackgroundSubtractorMOG2_Close = - _BackgroundSubtractorMOG2_ClosePtr.asFunction< - void Function(BackgroundSubtractorMOG2Ptr)>(); + _BackgroundSubtractorMOG2_ClosePtr.asFunction(); ffi.Pointer BackgroundSubtractorMOG2_Create( ffi.Pointer rval, @@ -1996,15 +1769,11 @@ class CvNative { ); } - late final _BackgroundSubtractorMOG2_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>( - 'BackgroundSubtractorMOG2_Create'); - late final _BackgroundSubtractorMOG2_Create = - _BackgroundSubtractorMOG2_CreatePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer)>(); + late final _BackgroundSubtractorMOG2_CreatePtr = + _lookup Function(ffi.Pointer)>>( + 'BackgroundSubtractorMOG2_Create'); + late final _BackgroundSubtractorMOG2_Create = _BackgroundSubtractorMOG2_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer BackgroundSubtractorMOG2_CreateWithParams( int history, @@ -2021,14 +1790,11 @@ class CvNative { } late final _BackgroundSubtractorMOG2_CreateWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Double, ffi.Bool, - ffi.Pointer)>>( - 'BackgroundSubtractorMOG2_CreateWithParams'); - late final _BackgroundSubtractorMOG2_CreateWithParams = - _BackgroundSubtractorMOG2_CreateWithParamsPtr.asFunction< - ffi.Pointer Function( - int, double, bool, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Double, ffi.Bool, + ffi.Pointer)>>('BackgroundSubtractorMOG2_CreateWithParams'); + late final _BackgroundSubtractorMOG2_CreateWithParams = _BackgroundSubtractorMOG2_CreateWithParamsPtr + .asFunction Function(int, double, bool, ffi.Pointer)>(); ffi.Pointer BilateralFilter( Mat src, @@ -2046,12 +1812,11 @@ class CvNative { ); } - late final _BilateralFilterPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Double, ffi.Double)>>('BilateralFilter'); - late final _BilateralFilter = _BilateralFilterPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, double, double)>(); + late final _BilateralFilterPtr = + _lookup Function(Mat, Mat, ffi.Int, ffi.Double, ffi.Double)>>( + 'BilateralFilter'); + late final _BilateralFilter = + _BilateralFilterPtr.asFunction Function(Mat, Mat, int, double, double)>(); void BlockMeanHash_Close( BlockMeanHashPtr self, @@ -2062,10 +1827,8 @@ class CvNative { } late final _BlockMeanHash_ClosePtr = - _lookup>( - 'BlockMeanHash_Close'); - late final _BlockMeanHash_Close = - _BlockMeanHash_ClosePtr.asFunction(); + _lookup>('BlockMeanHash_Close'); + late final _BlockMeanHash_Close = _BlockMeanHash_ClosePtr.asFunction(); ffi.Pointer BlockMeanHash_Compare( BlockMeanHash self, @@ -2082,12 +1845,11 @@ class CvNative { } late final _BlockMeanHash_ComparePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(BlockMeanHash, Mat, Mat, - ffi.Pointer)>>('BlockMeanHash_Compare'); + ffi + .NativeFunction Function(BlockMeanHash, Mat, Mat, ffi.Pointer)>>( + 'BlockMeanHash_Compare'); late final _BlockMeanHash_Compare = _BlockMeanHash_ComparePtr.asFunction< - ffi.Pointer Function( - BlockMeanHash, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function(BlockMeanHash, Mat, Mat, ffi.Pointer)>(); ffi.Pointer BlockMeanHash_Compute( BlockMeanHash self, @@ -2101,12 +1863,11 @@ class CvNative { ); } - late final _BlockMeanHash_ComputePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - BlockMeanHash, Mat, Mat)>>('BlockMeanHash_Compute'); - late final _BlockMeanHash_Compute = _BlockMeanHash_ComputePtr.asFunction< - ffi.Pointer Function(BlockMeanHash, Mat, Mat)>(); + late final _BlockMeanHash_ComputePtr = + _lookup Function(BlockMeanHash, Mat, Mat)>>( + 'BlockMeanHash_Compute'); + late final _BlockMeanHash_Compute = + _BlockMeanHash_ComputePtr.asFunction Function(BlockMeanHash, Mat, Mat)>(); ffi.Pointer BlockMeanHash_Create( int mode, @@ -2118,12 +1879,11 @@ class CvNative { ); } - late final _BlockMeanHash_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, ffi.Pointer)>>('BlockMeanHash_Create'); - late final _BlockMeanHash_Create = _BlockMeanHash_CreatePtr.asFunction< - ffi.Pointer Function(int, ffi.Pointer)>(); + late final _BlockMeanHash_CreatePtr = + _lookup Function(ffi.Int, ffi.Pointer)>>( + 'BlockMeanHash_Create'); + late final _BlockMeanHash_Create = + _BlockMeanHash_CreatePtr.asFunction Function(int, ffi.Pointer)>(); ffi.Pointer BlockMeanHash_GetMean( BlockMeanHash self, @@ -2139,13 +1899,11 @@ class CvNative { late final _BlockMeanHash_GetMeanPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - BlockMeanHash, - ffi.Pointer>, + ffi.Pointer Function(BlockMeanHash, ffi.Pointer>, ffi.Pointer)>>('BlockMeanHash_GetMean'); late final _BlockMeanHash_GetMean = _BlockMeanHash_GetMeanPtr.asFunction< - ffi.Pointer Function(BlockMeanHash, - ffi.Pointer>, ffi.Pointer)>(); + ffi.Pointer Function( + BlockMeanHash, ffi.Pointer>, ffi.Pointer)>(); ffi.Pointer BlockMeanHash_SetMode( BlockMeanHash self, @@ -2157,12 +1915,11 @@ class CvNative { ); } - late final _BlockMeanHash_SetModePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - BlockMeanHash, ffi.Int)>>('BlockMeanHash_SetMode'); - late final _BlockMeanHash_SetMode = _BlockMeanHash_SetModePtr.asFunction< - ffi.Pointer Function(BlockMeanHash, int)>(); + late final _BlockMeanHash_SetModePtr = + _lookup Function(BlockMeanHash, ffi.Int)>>( + 'BlockMeanHash_SetMode'); + late final _BlockMeanHash_SetMode = + _BlockMeanHash_SetModePtr.asFunction Function(BlockMeanHash, int)>(); ffi.Pointer Blur( Mat src, @@ -2176,11 +1933,8 @@ class CvNative { ); } - late final _BlurPtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, Size)>>('Blur'); - late final _Blur = - _BlurPtr.asFunction Function(Mat, Mat, Size)>(); + late final _BlurPtr = _lookup Function(Mat, Mat, Size)>>('Blur'); + late final _Blur = _BlurPtr.asFunction Function(Mat, Mat, Size)>(); ffi.Pointer BoundingRect( VecPoint pts, @@ -2192,12 +1946,11 @@ class CvNative { ); } - late final _BoundingRectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('BoundingRect'); - late final _BoundingRect = _BoundingRectPtr.asFunction< - ffi.Pointer Function(VecPoint, ffi.Pointer)>(); + late final _BoundingRectPtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'BoundingRect'); + late final _BoundingRect = + _BoundingRectPtr.asFunction Function(VecPoint, ffi.Pointer)>(); ffi.Pointer BoxFilter( Mat src, @@ -2213,12 +1966,9 @@ class CvNative { ); } - late final _BoxFilterPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, Size)>>('BoxFilter'); - late final _BoxFilter = _BoxFilterPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, Size)>(); + late final _BoxFilterPtr = + _lookup Function(Mat, Mat, ffi.Int, Size)>>('BoxFilter'); + late final _BoxFilter = _BoxFilterPtr.asFunction Function(Mat, Mat, int, Size)>(); ffi.Pointer BoxPoints( RotatedRect rect, @@ -2230,12 +1980,11 @@ class CvNative { ); } - late final _BoxPointsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - RotatedRect, ffi.Pointer)>>('BoxPoints'); - late final _BoxPoints = _BoxPointsPtr.asFunction< - ffi.Pointer Function(RotatedRect, ffi.Pointer)>(); + late final _BoxPointsPtr = + _lookup Function(RotatedRect, ffi.Pointer)>>( + 'BoxPoints'); + late final _BoxPoints = + _BoxPointsPtr.asFunction Function(RotatedRect, ffi.Pointer)>(); ffi.Pointer CLAHE_Apply( CLAHE c, @@ -2249,11 +1998,9 @@ class CvNative { ); } - late final _CLAHE_ApplyPtr = _lookup< - ffi.NativeFunction Function(CLAHE, Mat, Mat)>>( - 'CLAHE_Apply'); - late final _CLAHE_Apply = _CLAHE_ApplyPtr.asFunction< - ffi.Pointer Function(CLAHE, Mat, Mat)>(); + late final _CLAHE_ApplyPtr = + _lookup Function(CLAHE, Mat, Mat)>>('CLAHE_Apply'); + late final _CLAHE_Apply = _CLAHE_ApplyPtr.asFunction Function(CLAHE, Mat, Mat)>(); void CLAHE_Close( CLAHEPtr c, @@ -2263,10 +2010,8 @@ class CvNative { ); } - late final _CLAHE_ClosePtr = - _lookup>('CLAHE_Close'); - late final _CLAHE_Close = - _CLAHE_ClosePtr.asFunction(); + late final _CLAHE_ClosePtr = _lookup>('CLAHE_Close'); + late final _CLAHE_Close = _CLAHE_ClosePtr.asFunction(); ffi.Pointer CLAHE_CollectGarbage( CLAHE c, @@ -2277,10 +2022,9 @@ class CvNative { } late final _CLAHE_CollectGarbagePtr = - _lookup Function(CLAHE)>>( - 'CLAHE_CollectGarbage'); - late final _CLAHE_CollectGarbage = _CLAHE_CollectGarbagePtr.asFunction< - ffi.Pointer Function(CLAHE)>(); + _lookup Function(CLAHE)>>('CLAHE_CollectGarbage'); + late final _CLAHE_CollectGarbage = + _CLAHE_CollectGarbagePtr.asFunction Function(CLAHE)>(); ffi.Pointer CLAHE_Create( ffi.Pointer rval, @@ -2290,11 +2034,10 @@ class CvNative { ); } - late final _CLAHE_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('CLAHE_Create'); - late final _CLAHE_Create = _CLAHE_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _CLAHE_CreatePtr = + _lookup Function(ffi.Pointer)>>('CLAHE_Create'); + late final _CLAHE_Create = + _CLAHE_CreatePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer CLAHE_CreateWithParams( double clipLimit, @@ -2308,10 +2051,9 @@ class CvNative { ); } - late final _CLAHE_CreateWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Double, Size, ffi.Pointer)>>('CLAHE_CreateWithParams'); + late final _CLAHE_CreateWithParamsPtr = + _lookup Function(ffi.Double, Size, ffi.Pointer)>>( + 'CLAHE_CreateWithParams'); late final _CLAHE_CreateWithParams = _CLAHE_CreateWithParamsPtr.asFunction< ffi.Pointer Function(double, Size, ffi.Pointer)>(); @@ -2325,12 +2067,11 @@ class CvNative { ); } - late final _CLAHE_GetClipLimitPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - CLAHE, ffi.Pointer)>>('CLAHE_GetClipLimit'); - late final _CLAHE_GetClipLimit = _CLAHE_GetClipLimitPtr.asFunction< - ffi.Pointer Function(CLAHE, ffi.Pointer)>(); + late final _CLAHE_GetClipLimitPtr = + _lookup Function(CLAHE, ffi.Pointer)>>( + 'CLAHE_GetClipLimit'); + late final _CLAHE_GetClipLimit = + _CLAHE_GetClipLimitPtr.asFunction Function(CLAHE, ffi.Pointer)>(); ffi.Pointer CLAHE_GetTilesGridSize( CLAHE c, @@ -2342,12 +2083,11 @@ class CvNative { ); } - late final _CLAHE_GetTilesGridSizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - CLAHE, ffi.Pointer)>>('CLAHE_GetTilesGridSize'); - late final _CLAHE_GetTilesGridSize = _CLAHE_GetTilesGridSizePtr.asFunction< - ffi.Pointer Function(CLAHE, ffi.Pointer)>(); + late final _CLAHE_GetTilesGridSizePtr = + _lookup Function(CLAHE, ffi.Pointer)>>( + 'CLAHE_GetTilesGridSize'); + late final _CLAHE_GetTilesGridSize = + _CLAHE_GetTilesGridSizePtr.asFunction Function(CLAHE, ffi.Pointer)>(); ffi.Pointer CLAHE_SetClipLimit( CLAHE c, @@ -2359,12 +2099,10 @@ class CvNative { ); } - late final _CLAHE_SetClipLimitPtr = _lookup< - ffi - .NativeFunction Function(CLAHE, ffi.Double)>>( - 'CLAHE_SetClipLimit'); - late final _CLAHE_SetClipLimit = _CLAHE_SetClipLimitPtr.asFunction< - ffi.Pointer Function(CLAHE, double)>(); + late final _CLAHE_SetClipLimitPtr = + _lookup Function(CLAHE, ffi.Double)>>('CLAHE_SetClipLimit'); + late final _CLAHE_SetClipLimit = + _CLAHE_SetClipLimitPtr.asFunction Function(CLAHE, double)>(); ffi.Pointer CLAHE_SetTilesGridSize( CLAHE c, @@ -2377,10 +2115,9 @@ class CvNative { } late final _CLAHE_SetTilesGridSizePtr = - _lookup Function(CLAHE, Size)>>( - 'CLAHE_SetTilesGridSize'); - late final _CLAHE_SetTilesGridSize = _CLAHE_SetTilesGridSizePtr.asFunction< - ffi.Pointer Function(CLAHE, Size)>(); + _lookup Function(CLAHE, Size)>>('CLAHE_SetTilesGridSize'); + late final _CLAHE_SetTilesGridSize = + _CLAHE_SetTilesGridSizePtr.asFunction Function(CLAHE, Size)>(); ffi.Pointer CalcBackProject( VecMat mats, @@ -2401,12 +2138,10 @@ class CvNative { } late final _CalcBackProjectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecMat, VecInt, Mat, Mat, VecFloat, - ffi.Bool)>>('CalcBackProject'); + ffi.NativeFunction Function(VecMat, VecInt, Mat, Mat, VecFloat, ffi.Bool)>>( + 'CalcBackProject'); late final _CalcBackProject = _CalcBackProjectPtr.asFunction< - ffi.Pointer Function( - VecMat, VecInt, Mat, Mat, VecFloat, bool)>(); + ffi.Pointer Function(VecMat, VecInt, Mat, Mat, VecFloat, bool)>(); ffi.Pointer CalcHist( VecMat mats, @@ -2430,11 +2165,9 @@ class CvNative { late final _CalcHistPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecMat, VecInt, Mat, Mat, VecInt, - VecFloat, ffi.Bool)>>('CalcHist'); + ffi.Pointer Function(VecMat, VecInt, Mat, Mat, VecInt, VecFloat, ffi.Bool)>>('CalcHist'); late final _CalcHist = _CalcHistPtr.asFunction< - ffi.Pointer Function( - VecMat, VecInt, Mat, Mat, VecInt, VecFloat, bool)>(); + ffi.Pointer Function(VecMat, VecInt, Mat, Mat, VecInt, VecFloat, bool)>(); ffi.Pointer CalcOpticalFlowFarneback( Mat prevImg, @@ -2464,21 +2197,10 @@ class CvNative { late final _CalcOpticalFlowFarnebackPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - Mat, - Mat, - ffi.Double, - ffi.Int, - ffi.Int, - ffi.Int, - ffi.Int, - ffi.Double, - ffi.Int)>>('CalcOpticalFlowFarneback'); - late final _CalcOpticalFlowFarneback = - _CalcOpticalFlowFarnebackPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Mat, double, int, int, int, int, double, int)>(); + ffi.Pointer Function(Mat, Mat, Mat, ffi.Double, ffi.Int, ffi.Int, ffi.Int, ffi.Int, + ffi.Double, ffi.Int)>>('CalcOpticalFlowFarneback'); + late final _CalcOpticalFlowFarneback = _CalcOpticalFlowFarnebackPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, double, int, int, int, int, double, int)>(); ffi.Pointer CalcOpticalFlowPyrLK( Mat prevImg, @@ -2500,11 +2222,10 @@ class CvNative { late final _CalcOpticalFlowPyrLKPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, VecPoint2f, VecPoint2f, - VecUChar, VecFloat)>>('CalcOpticalFlowPyrLK'); + ffi.Pointer Function( + Mat, Mat, VecPoint2f, VecPoint2f, VecUChar, VecFloat)>>('CalcOpticalFlowPyrLK'); late final _CalcOpticalFlowPyrLK = _CalcOpticalFlowPyrLKPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, VecPoint2f, VecPoint2f, VecUChar, VecFloat)>(); + ffi.Pointer Function(Mat, Mat, VecPoint2f, VecPoint2f, VecUChar, VecFloat)>(); ffi.Pointer CalcOpticalFlowPyrLKWithParams( Mat prevImg, @@ -2548,20 +2269,9 @@ class CvNative { TermCriteria, ffi.Int, ffi.Double)>>('CalcOpticalFlowPyrLKWithParams'); - late final _CalcOpticalFlowPyrLKWithParams = - _CalcOpticalFlowPyrLKWithParamsPtr.asFunction< - ffi.Pointer Function( - Mat, - Mat, - VecPoint2f, - VecPoint2f, - ffi.Pointer, - ffi.Pointer, - Size, - int, - TermCriteria, - int, - double)>(); + late final _CalcOpticalFlowPyrLKWithParams = _CalcOpticalFlowPyrLKWithParamsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, VecPoint2f, VecPoint2f, ffi.Pointer, + ffi.Pointer, Size, int, TermCriteria, int, double)>(); ffi.Pointer CalibrateCamera( VecVecPoint3f objectPoints, @@ -2591,20 +2301,11 @@ class CvNative { late final _CalibrateCameraPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecVecPoint3f, - VecVecPoint2f, - Size, - Mat, - Mat, - Mat, - Mat, - ffi.Int, - TermCriteria, - ffi.Pointer)>>('CalibrateCamera'); + ffi.Pointer Function(VecVecPoint3f, VecVecPoint2f, Size, Mat, Mat, Mat, Mat, ffi.Int, + TermCriteria, ffi.Pointer)>>('CalibrateCamera'); late final _CalibrateCamera = _CalibrateCameraPtr.asFunction< - ffi.Pointer Function(VecVecPoint3f, VecVecPoint2f, Size, Mat, - Mat, Mat, Mat, int, TermCriteria, ffi.Pointer)>(); + ffi.Pointer Function(VecVecPoint3f, VecVecPoint2f, Size, Mat, Mat, Mat, Mat, int, + TermCriteria, ffi.Pointer)>(); ffi.Pointer Canny( Mat src, @@ -2626,10 +2327,9 @@ class CvNative { late final _CannyPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Double, ffi.Double, ffi.Int, ffi.Bool)>>('Canny'); - late final _Canny = _CannyPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, double, int, bool)>(); + ffi.Pointer Function(Mat, Mat, ffi.Double, ffi.Double, ffi.Int, ffi.Bool)>>('Canny'); + late final _Canny = + _CannyPtr.asFunction Function(Mat, Mat, double, double, int, bool)>(); void CascadeClassifier_Close( CascadeClassifierPtr self, @@ -2640,10 +2340,9 @@ class CvNative { } late final _CascadeClassifier_ClosePtr = - _lookup>( - 'CascadeClassifier_Close'); - late final _CascadeClassifier_Close = _CascadeClassifier_ClosePtr.asFunction< - void Function(CascadeClassifierPtr)>(); + _lookup>('CascadeClassifier_Close'); + late final _CascadeClassifier_Close = + _CascadeClassifier_ClosePtr.asFunction(); ffi.Pointer CascadeClassifier_DetectMultiScale( CascadeClassifier self, @@ -2658,13 +2357,10 @@ class CvNative { } late final _CascadeClassifier_DetectMultiScalePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, Mat, - ffi.Pointer)>>('CascadeClassifier_DetectMultiScale'); - late final _CascadeClassifier_DetectMultiScale = - _CascadeClassifier_DetectMultiScalePtr.asFunction< - ffi.Pointer Function( - CascadeClassifier, Mat, ffi.Pointer)>(); + ffi.NativeFunction Function(CascadeClassifier, Mat, ffi.Pointer)>>( + 'CascadeClassifier_DetectMultiScale'); + late final _CascadeClassifier_DetectMultiScale = _CascadeClassifier_DetectMultiScalePtr.asFunction< + ffi.Pointer Function(CascadeClassifier, Mat, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_DetectMultiScale2( CascadeClassifier self, @@ -2692,28 +2388,11 @@ class CvNative { late final _CascadeClassifier_DetectMultiScale2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - CascadeClassifier, - Mat, - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Int, - ffi.Int, - Size, - Size)>>('CascadeClassifier_DetectMultiScale2'); - late final _CascadeClassifier_DetectMultiScale2 = - _CascadeClassifier_DetectMultiScale2Ptr.asFunction< - ffi.Pointer Function( - CascadeClassifier, - Mat, - ffi.Pointer, - ffi.Pointer, - double, - int, - int, - Size, - Size)>(); + ffi.Pointer Function(CascadeClassifier, Mat, ffi.Pointer, ffi.Pointer, + ffi.Double, ffi.Int, ffi.Int, Size, Size)>>('CascadeClassifier_DetectMultiScale2'); + late final _CascadeClassifier_DetectMultiScale2 = _CascadeClassifier_DetectMultiScale2Ptr.asFunction< + ffi.Pointer Function( + CascadeClassifier, Mat, ffi.Pointer, ffi.Pointer, double, int, int, Size, Size)>(); ffi.Pointer CascadeClassifier_DetectMultiScale2_Async( CascadeClassifier self, @@ -2739,19 +2418,12 @@ class CvNative { late final _CascadeClassifier_DetectMultiScale2_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - CascadeClassifier, - Mat, - ffi.Double, - ffi.Int, - ffi.Int, - Size, - Size, + ffi.Pointer Function(CascadeClassifier, Mat, ffi.Double, ffi.Int, ffi.Int, Size, Size, CvCallback_2)>>('CascadeClassifier_DetectMultiScale2_Async'); late final _CascadeClassifier_DetectMultiScale2_Async = _CascadeClassifier_DetectMultiScale2_AsyncPtr.asFunction< - ffi.Pointer Function(CascadeClassifier, Mat, double, int, - int, Size, Size, CvCallback_2)>(); + ffi.Pointer Function( + CascadeClassifier, Mat, double, int, int, Size, Size, CvCallback_2)>(); ffi.Pointer CascadeClassifier_DetectMultiScale3( CascadeClassifier self, @@ -2795,20 +2467,9 @@ class CvNative { Size, Size, ffi.Bool)>>('CascadeClassifier_DetectMultiScale3'); - late final _CascadeClassifier_DetectMultiScale3 = - _CascadeClassifier_DetectMultiScale3Ptr.asFunction< - ffi.Pointer Function( - CascadeClassifier, - Mat, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - double, - int, - int, - Size, - Size, - bool)>(); + late final _CascadeClassifier_DetectMultiScale3 = _CascadeClassifier_DetectMultiScale3Ptr.asFunction< + ffi.Pointer Function(CascadeClassifier, Mat, ffi.Pointer, ffi.Pointer, + ffi.Pointer, double, int, int, Size, Size, bool)>(); ffi.Pointer CascadeClassifier_DetectMultiScale3_Async( CascadeClassifier self, @@ -2836,20 +2497,12 @@ class CvNative { late final _CascadeClassifier_DetectMultiScale3_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - CascadeClassifier, - Mat, - ffi.Double, - ffi.Int, - ffi.Int, - Size, - Size, - ffi.Bool, - CvCallback_3)>>('CascadeClassifier_DetectMultiScale3_Async'); + ffi.Pointer Function(CascadeClassifier, Mat, ffi.Double, ffi.Int, ffi.Int, Size, Size, + ffi.Bool, CvCallback_3)>>('CascadeClassifier_DetectMultiScale3_Async'); late final _CascadeClassifier_DetectMultiScale3_Async = _CascadeClassifier_DetectMultiScale3_AsyncPtr.asFunction< - ffi.Pointer Function(CascadeClassifier, Mat, double, int, - int, Size, Size, bool, CvCallback_3)>(); + ffi.Pointer Function( + CascadeClassifier, Mat, double, int, int, Size, Size, bool, CvCallback_3)>(); ffi.Pointer CascadeClassifier_DetectMultiScaleWithParams( CascadeClassifier self, @@ -2875,19 +2528,12 @@ class CvNative { late final _CascadeClassifier_DetectMultiScaleWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - CascadeClassifier, - Mat, - ffi.Pointer, - ffi.Double, - ffi.Int, - ffi.Int, - Size, - Size)>>('CascadeClassifier_DetectMultiScaleWithParams'); + ffi.Pointer Function(CascadeClassifier, Mat, ffi.Pointer, ffi.Double, ffi.Int, + ffi.Int, Size, Size)>>('CascadeClassifier_DetectMultiScaleWithParams'); late final _CascadeClassifier_DetectMultiScaleWithParams = _CascadeClassifier_DetectMultiScaleWithParamsPtr.asFunction< - ffi.Pointer Function(CascadeClassifier, Mat, - ffi.Pointer, double, int, int, Size, Size)>(); + ffi.Pointer Function( + CascadeClassifier, Mat, ffi.Pointer, double, int, int, Size, Size)>(); ffi.Pointer CascadeClassifier_DetectMultiScaleWithParams_Async( CascadeClassifier self, @@ -2912,14 +2558,13 @@ class CvNative { } late final _CascadeClassifier_DetectMultiScaleWithParams_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, Mat, ffi.Double, - ffi.Int, ffi.Int, Size, Size, CvCallback_1)>>( - 'CascadeClassifier_DetectMultiScaleWithParams_Async'); + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, Mat, ffi.Double, ffi.Int, ffi.Int, Size, Size, + CvCallback_1)>>('CascadeClassifier_DetectMultiScaleWithParams_Async'); late final _CascadeClassifier_DetectMultiScaleWithParams_Async = _CascadeClassifier_DetectMultiScaleWithParams_AsyncPtr.asFunction< - ffi.Pointer Function(CascadeClassifier, Mat, double, int, - int, Size, Size, CvCallback_1)>(); + ffi.Pointer Function( + CascadeClassifier, Mat, double, int, int, Size, Size, CvCallback_1)>(); ffi.Pointer CascadeClassifier_DetectMultiScale_Async( CascadeClassifier self, @@ -2933,14 +2578,11 @@ class CvNative { ); } - late final _CascadeClassifier_DetectMultiScale_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, Mat, - CvCallback_1)>>('CascadeClassifier_DetectMultiScale_Async'); - late final _CascadeClassifier_DetectMultiScale_Async = - _CascadeClassifier_DetectMultiScale_AsyncPtr.asFunction< - ffi.Pointer Function( - CascadeClassifier, Mat, CvCallback_1)>(); + late final _CascadeClassifier_DetectMultiScale_AsyncPtr = + _lookup Function(CascadeClassifier, Mat, CvCallback_1)>>( + 'CascadeClassifier_DetectMultiScale_Async'); + late final _CascadeClassifier_DetectMultiScale_Async = _CascadeClassifier_DetectMultiScale_AsyncPtr + .asFunction Function(CascadeClassifier, Mat, CvCallback_1)>(); ffi.Pointer CascadeClassifier_Empty( CascadeClassifier self, @@ -2952,13 +2594,11 @@ class CvNative { ); } - late final _CascadeClassifier_EmptyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, - ffi.Pointer)>>('CascadeClassifier_Empty'); + late final _CascadeClassifier_EmptyPtr = + _lookup Function(CascadeClassifier, ffi.Pointer)>>( + 'CascadeClassifier_Empty'); late final _CascadeClassifier_Empty = _CascadeClassifier_EmptyPtr.asFunction< - ffi.Pointer Function( - CascadeClassifier, ffi.Pointer)>(); + ffi.Pointer Function(CascadeClassifier, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_Empty_Async( CascadeClassifier self, @@ -2970,13 +2610,11 @@ class CvNative { ); } - late final _CascadeClassifier_Empty_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, - CvCallback_1)>>('CascadeClassifier_Empty_Async'); - late final _CascadeClassifier_Empty_Async = - _CascadeClassifier_Empty_AsyncPtr.asFunction< - ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); + late final _CascadeClassifier_Empty_AsyncPtr = + _lookup Function(CascadeClassifier, CvCallback_1)>>( + 'CascadeClassifier_Empty_Async'); + late final _CascadeClassifier_Empty_Async = _CascadeClassifier_Empty_AsyncPtr.asFunction< + ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); ffi.Pointer CascadeClassifier_Load( CascadeClassifier self, @@ -2993,12 +2631,9 @@ class CvNative { late final _CascadeClassifier_LoadPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - CascadeClassifier, - ffi.Pointer, - ffi.Pointer)>>('CascadeClassifier_Load'); + CascadeClassifier, ffi.Pointer, ffi.Pointer)>>('CascadeClassifier_Load'); late final _CascadeClassifier_Load = _CascadeClassifier_LoadPtr.asFunction< - ffi.Pointer Function( - CascadeClassifier, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(CascadeClassifier, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_Load_Async( CascadeClassifier self, @@ -3015,13 +2650,9 @@ class CvNative { late final _CascadeClassifier_Load_AsyncPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - CascadeClassifier, - ffi.Pointer, - CvCallback_1)>>('CascadeClassifier_Load_Async'); - late final _CascadeClassifier_Load_Async = - _CascadeClassifier_Load_AsyncPtr.asFunction< - ffi.Pointer Function( - CascadeClassifier, ffi.Pointer, CvCallback_1)>(); + CascadeClassifier, ffi.Pointer, CvCallback_1)>>('CascadeClassifier_Load_Async'); + late final _CascadeClassifier_Load_Async = _CascadeClassifier_Load_AsyncPtr.asFunction< + ffi.Pointer Function(CascadeClassifier, ffi.Pointer, CvCallback_1)>(); ffi.Pointer CascadeClassifier_New( ffi.Pointer rval, @@ -3031,12 +2662,11 @@ class CvNative { ); } - late final _CascadeClassifier_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('CascadeClassifier_New'); - late final _CascadeClassifier_New = _CascadeClassifier_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _CascadeClassifier_NewPtr = + _lookup Function(ffi.Pointer)>>( + 'CascadeClassifier_New'); + late final _CascadeClassifier_New = + _CascadeClassifier_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer CascadeClassifier_NewFromFile( ffi.Pointer filename, @@ -3049,14 +2679,11 @@ class CvNative { } late final _CascadeClassifier_NewFromFilePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>( - 'CascadeClassifier_NewFromFile'); - late final _CascadeClassifier_NewFromFile = - _CascadeClassifier_NewFromFilePtr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer)>>('CascadeClassifier_NewFromFile'); + late final _CascadeClassifier_NewFromFile = _CascadeClassifier_NewFromFilePtr.asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_NewFromFile_Async( ffi.Pointer filename, @@ -3068,14 +2695,11 @@ class CvNative { ); } - late final _CascadeClassifier_NewFromFile_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - CvCallback_1)>>('CascadeClassifier_NewFromFile_Async'); - late final _CascadeClassifier_NewFromFile_Async = - _CascadeClassifier_NewFromFile_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, CvCallback_1)>(); + late final _CascadeClassifier_NewFromFile_AsyncPtr = + _lookup Function(ffi.Pointer, CvCallback_1)>>( + 'CascadeClassifier_NewFromFile_Async'); + late final _CascadeClassifier_NewFromFile_Async = _CascadeClassifier_NewFromFile_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, CvCallback_1)>(); ffi.Pointer CascadeClassifier_New_Async( CvCallback_1 callback, @@ -3088,8 +2712,8 @@ class CvNative { late final _CascadeClassifier_New_AsyncPtr = _lookup Function(CvCallback_1)>>( 'CascadeClassifier_New_Async'); - late final _CascadeClassifier_New_Async = _CascadeClassifier_New_AsyncPtr - .asFunction Function(CvCallback_1)>(); + late final _CascadeClassifier_New_Async = + _CascadeClassifier_New_AsyncPtr.asFunction Function(CvCallback_1)>(); ffi.Pointer CascadeClassifier_getFeatureType( CascadeClassifier self, @@ -3101,14 +2725,11 @@ class CvNative { ); } - late final _CascadeClassifier_getFeatureTypePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, - ffi.Pointer)>>('CascadeClassifier_getFeatureType'); - late final _CascadeClassifier_getFeatureType = - _CascadeClassifier_getFeatureTypePtr.asFunction< - ffi.Pointer Function( - CascadeClassifier, ffi.Pointer)>(); + late final _CascadeClassifier_getFeatureTypePtr = + _lookup Function(CascadeClassifier, ffi.Pointer)>>( + 'CascadeClassifier_getFeatureType'); + late final _CascadeClassifier_getFeatureType = _CascadeClassifier_getFeatureTypePtr.asFunction< + ffi.Pointer Function(CascadeClassifier, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_getFeatureType_Async( CascadeClassifier self, @@ -3120,13 +2741,11 @@ class CvNative { ); } - late final _CascadeClassifier_getFeatureType_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, - CvCallback_1)>>('CascadeClassifier_getFeatureType_Async'); - late final _CascadeClassifier_getFeatureType_Async = - _CascadeClassifier_getFeatureType_AsyncPtr.asFunction< - ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); + late final _CascadeClassifier_getFeatureType_AsyncPtr = + _lookup Function(CascadeClassifier, CvCallback_1)>>( + 'CascadeClassifier_getFeatureType_Async'); + late final _CascadeClassifier_getFeatureType_Async = _CascadeClassifier_getFeatureType_AsyncPtr.asFunction< + ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); ffi.Pointer CascadeClassifier_getOriginalWindowSize( CascadeClassifier self, @@ -3138,14 +2757,11 @@ class CvNative { ); } - late final _CascadeClassifier_getOriginalWindowSizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, - ffi.Pointer)>>('CascadeClassifier_getOriginalWindowSize'); - late final _CascadeClassifier_getOriginalWindowSize = - _CascadeClassifier_getOriginalWindowSizePtr.asFunction< - ffi.Pointer Function( - CascadeClassifier, ffi.Pointer)>(); + late final _CascadeClassifier_getOriginalWindowSizePtr = + _lookup Function(CascadeClassifier, ffi.Pointer)>>( + 'CascadeClassifier_getOriginalWindowSize'); + late final _CascadeClassifier_getOriginalWindowSize = _CascadeClassifier_getOriginalWindowSizePtr + .asFunction Function(CascadeClassifier, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_getOriginalWindowSize_Async( CascadeClassifier self, @@ -3157,10 +2773,9 @@ class CvNative { ); } - late final _CascadeClassifier_getOriginalWindowSize_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, - CvCallback_1)>>('CascadeClassifier_getOriginalWindowSize_Async'); + late final _CascadeClassifier_getOriginalWindowSize_AsyncPtr = + _lookup Function(CascadeClassifier, CvCallback_1)>>( + 'CascadeClassifier_getOriginalWindowSize_Async'); late final _CascadeClassifier_getOriginalWindowSize_Async = _CascadeClassifier_getOriginalWindowSize_AsyncPtr.asFunction< ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); @@ -3175,14 +2790,11 @@ class CvNative { ); } - late final _CascadeClassifier_isOldFormatCascadePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, - ffi.Pointer)>>('CascadeClassifier_isOldFormatCascade'); - late final _CascadeClassifier_isOldFormatCascade = - _CascadeClassifier_isOldFormatCascadePtr.asFunction< - ffi.Pointer Function( - CascadeClassifier, ffi.Pointer)>(); + late final _CascadeClassifier_isOldFormatCascadePtr = + _lookup Function(CascadeClassifier, ffi.Pointer)>>( + 'CascadeClassifier_isOldFormatCascade'); + late final _CascadeClassifier_isOldFormatCascade = _CascadeClassifier_isOldFormatCascadePtr.asFunction< + ffi.Pointer Function(CascadeClassifier, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_isOldFormatCascade_Async( CascadeClassifier self, @@ -3194,13 +2806,11 @@ class CvNative { ); } - late final _CascadeClassifier_isOldFormatCascade_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, - CvCallback_1)>>('CascadeClassifier_isOldFormatCascade_Async'); - late final _CascadeClassifier_isOldFormatCascade_Async = - _CascadeClassifier_isOldFormatCascade_AsyncPtr.asFunction< - ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); + late final _CascadeClassifier_isOldFormatCascade_AsyncPtr = + _lookup Function(CascadeClassifier, CvCallback_1)>>( + 'CascadeClassifier_isOldFormatCascade_Async'); + late final _CascadeClassifier_isOldFormatCascade_Async = _CascadeClassifier_isOldFormatCascade_AsyncPtr + .asFunction Function(CascadeClassifier, CvCallback_1)>(); ffi.Pointer Circle( Mat img, @@ -3218,12 +2828,10 @@ class CvNative { ); } - late final _CirclePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Point, ffi.Int, Scalar, ffi.Int)>>('Circle'); - late final _Circle = _CirclePtr.asFunction< - ffi.Pointer Function(Mat, Point, int, Scalar, int)>(); + late final _CirclePtr = + _lookup Function(Mat, Point, ffi.Int, Scalar, ffi.Int)>>( + 'Circle'); + late final _Circle = _CirclePtr.asFunction Function(Mat, Point, int, Scalar, int)>(); ffi.Pointer CircleWithParams( Mat img, @@ -3247,8 +2855,8 @@ class CvNative { late final _CircleWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Point, ffi.Int, Scalar, ffi.Int, - ffi.Int, ffi.Int)>>('CircleWithParams'); + ffi.Pointer Function( + Mat, Point, ffi.Int, Scalar, ffi.Int, ffi.Int, ffi.Int)>>('CircleWithParams'); late final _CircleWithParams = _CircleWithParamsPtr.asFunction< ffi.Pointer Function(Mat, Point, int, Scalar, int, int, int)>(); @@ -3266,13 +2874,11 @@ class CvNative { ); } - late final _ClipLinePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Rect, Point, Point, ffi.Pointer)>>('ClipLine'); - late final _ClipLine = _ClipLinePtr.asFunction< - ffi.Pointer Function( - Rect, Point, Point, ffi.Pointer)>(); + late final _ClipLinePtr = + _lookup Function(Rect, Point, Point, ffi.Pointer)>>( + 'ClipLine'); + late final _ClipLine = + _ClipLinePtr.asFunction Function(Rect, Point, Point, ffi.Pointer)>(); ffi.Pointer ColorChange( Mat src, @@ -3293,11 +2899,10 @@ class CvNative { } late final _ColorChangePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Float, ffi.Float, ffi.Float)>>('ColorChange'); - late final _ColorChange = _ColorChangePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, double, double, double)>(); + ffi.NativeFunction Function(Mat, Mat, Mat, ffi.Float, ffi.Float, ffi.Float)>>( + 'ColorChange'); + late final _ColorChange = + _ColorChangePtr.asFunction Function(Mat, Mat, Mat, double, double, double)>(); ffi.Pointer CompareHist( Mat hist1, @@ -3313,12 +2918,11 @@ class CvNative { ); } - late final _CompareHistPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Pointer)>>('CompareHist'); - late final _CompareHist = _CompareHistPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, ffi.Pointer)>(); + late final _CompareHistPtr = + _lookup Function(Mat, Mat, ffi.Int, ffi.Pointer)>>( + 'CompareHist'); + late final _CompareHist = + _CompareHistPtr.asFunction Function(Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer ConnectedComponents( Mat src, @@ -3340,11 +2944,10 @@ class CvNative { late final _ConnectedComponentsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer)>>('ConnectedComponents'); + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('ConnectedComponents'); late final _ConnectedComponents = _ConnectedComponentsPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer ConnectedComponentsWithStats( Mat src, @@ -3370,12 +2973,10 @@ class CvNative { late final _ConnectedComponentsWithStatsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, ffi.Int, ffi.Int, - ffi.Int, ffi.Pointer)>>('ConnectedComponentsWithStats'); - late final _ConnectedComponentsWithStats = - _ConnectedComponentsWithStatsPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, Mat, Mat, Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer)>>('ConnectedComponentsWithStats'); + late final _ConnectedComponentsWithStats = _ConnectedComponentsWithStatsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer ContourArea( VecPoint pts, @@ -3387,12 +2988,11 @@ class CvNative { ); } - late final _ContourAreaPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('ContourArea'); - late final _ContourArea = _ContourAreaPtr.asFunction< - ffi.Pointer Function(VecPoint, ffi.Pointer)>(); + late final _ContourAreaPtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'ContourArea'); + late final _ContourArea = + _ContourAreaPtr.asFunction Function(VecPoint, ffi.Pointer)>(); ffi.Pointer ConvexHull( VecPoint points, @@ -3408,12 +3008,11 @@ class CvNative { ); } - late final _ConvexHullPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, Mat, ffi.Bool, ffi.Bool)>>('ConvexHull'); - late final _ConvexHull = _ConvexHullPtr.asFunction< - ffi.Pointer Function(VecPoint, Mat, bool, bool)>(); + late final _ConvexHullPtr = + _lookup Function(VecPoint, Mat, ffi.Bool, ffi.Bool)>>( + 'ConvexHull'); + late final _ConvexHull = + _ConvexHullPtr.asFunction Function(VecPoint, Mat, bool, bool)>(); ffi.Pointer ConvexityDefects( VecPoint points, @@ -3427,12 +3026,10 @@ class CvNative { ); } - late final _ConvexityDefectsPtr = _lookup< - ffi - .NativeFunction Function(VecPoint, Mat, Mat)>>( - 'ConvexityDefects'); - late final _ConvexityDefects = _ConvexityDefectsPtr.asFunction< - ffi.Pointer Function(VecPoint, Mat, Mat)>(); + late final _ConvexityDefectsPtr = + _lookup Function(VecPoint, Mat, Mat)>>('ConvexityDefects'); + late final _ConvexityDefects = + _ConvexityDefectsPtr.asFunction Function(VecPoint, Mat, Mat)>(); ffi.Pointer CornerSubPix( Mat img, @@ -3450,13 +3047,11 @@ class CvNative { ); } - late final _CornerSubPixPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, VecPoint2f, Size, Size, TermCriteria)>>('CornerSubPix'); + late final _CornerSubPixPtr = + _lookup Function(Mat, VecPoint2f, Size, Size, TermCriteria)>>( + 'CornerSubPix'); late final _CornerSubPix = _CornerSubPixPtr.asFunction< - ffi.Pointer Function( - Mat, VecPoint2f, Size, Size, TermCriteria)>(); + ffi.Pointer Function(Mat, VecPoint2f, Size, Size, TermCriteria)>(); void CvStatus_Close( ffi.Pointer self, @@ -3467,10 +3062,8 @@ class CvNative { } late final _CvStatus_ClosePtr = - _lookup)>>( - 'CvStatus_Close'); - late final _CvStatus_Close = - _CvStatus_ClosePtr.asFunction)>(); + _lookup)>>('CvStatus_Close'); + late final _CvStatus_Close = _CvStatus_ClosePtr.asFunction)>(); ffi.Pointer CvtColor( Mat src, @@ -3484,11 +3077,9 @@ class CvNative { ); } - late final _CvtColorPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int)>>('CvtColor'); - late final _CvtColor = - _CvtColorPtr.asFunction Function(Mat, Mat, int)>(); + late final _CvtColorPtr = + _lookup Function(Mat, Mat, ffi.Int)>>('CvtColor'); + late final _CvtColor = _CvtColorPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer CvtColor_Async( Mat src, @@ -3502,12 +3093,11 @@ class CvNative { ); } - late final _CvtColor_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, CvCallback_1)>>('CvtColor_Async'); - late final _CvtColor_Async = _CvtColor_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, int, CvCallback_1)>(); + late final _CvtColor_AsyncPtr = + _lookup Function(Mat, ffi.Int, CvCallback_1)>>( + 'CvtColor_Async'); + late final _CvtColor_Async = + _CvtColor_AsyncPtr.asFunction Function(Mat, int, CvCallback_1)>(); ffi.Pointer DetailEnhance( Mat src, @@ -3523,12 +3113,11 @@ class CvNative { ); } - late final _DetailEnhancePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Float, ffi.Float)>>('DetailEnhance'); - late final _DetailEnhance = _DetailEnhancePtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, double)>(); + late final _DetailEnhancePtr = + _lookup Function(Mat, Mat, ffi.Float, ffi.Float)>>( + 'DetailEnhance'); + late final _DetailEnhance = + _DetailEnhancePtr.asFunction Function(Mat, Mat, double, double)>(); ffi.Pointer Dilate( Mat src, @@ -3542,11 +3131,9 @@ class CvNative { ); } - late final _DilatePtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, Mat)>>('Dilate'); - late final _Dilate = - _DilatePtr.asFunction Function(Mat, Mat, Mat)>(); + late final _DilatePtr = + _lookup Function(Mat, Mat, Mat)>>('Dilate'); + late final _Dilate = _DilatePtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer DilateWithParams( Mat src, @@ -3569,9 +3156,8 @@ class CvNative { } late final _DilateWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Point, ffi.Int, ffi.Int, - Scalar)>>('DilateWithParams'); + ffi.NativeFunction Function(Mat, Mat, Mat, Point, ffi.Int, ffi.Int, Scalar)>>( + 'DilateWithParams'); late final _DilateWithParams = _DilateWithParamsPtr.asFunction< ffi.Pointer Function(Mat, Mat, Mat, Point, int, int, Scalar)>(); @@ -3593,12 +3179,11 @@ class CvNative { ); } - late final _DistanceTransformPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Int, ffi.Int, ffi.Int)>>('DistanceTransform'); - late final _DistanceTransform = _DistanceTransformPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, int, int, int)>(); + late final _DistanceTransformPtr = + _lookup Function(Mat, Mat, Mat, ffi.Int, ffi.Int, ffi.Int)>>( + 'DistanceTransform'); + late final _DistanceTransform = + _DistanceTransformPtr.asFunction Function(Mat, Mat, Mat, int, int, int)>(); ffi.Pointer DrawChessboardCorners( Mat image, @@ -3614,12 +3199,11 @@ class CvNative { ); } - late final _DrawChessboardCornersPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Size, Mat, ffi.Bool)>>('DrawChessboardCorners'); - late final _DrawChessboardCorners = _DrawChessboardCornersPtr.asFunction< - ffi.Pointer Function(Mat, Size, Mat, bool)>(); + late final _DrawChessboardCornersPtr = + _lookup Function(Mat, Size, Mat, ffi.Bool)>>( + 'DrawChessboardCorners'); + late final _DrawChessboardCorners = + _DrawChessboardCornersPtr.asFunction Function(Mat, Size, Mat, bool)>(); ffi.Pointer DrawContours( Mat src, @@ -3637,12 +3221,11 @@ class CvNative { ); } - late final _DrawContoursPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, VecVecPoint, ffi.Int, Scalar, ffi.Int)>>('DrawContours'); - late final _DrawContours = _DrawContoursPtr.asFunction< - ffi.Pointer Function(Mat, VecVecPoint, int, Scalar, int)>(); + late final _DrawContoursPtr = + _lookup Function(Mat, VecVecPoint, ffi.Int, Scalar, ffi.Int)>>( + 'DrawContours'); + late final _DrawContours = + _DrawContoursPtr.asFunction Function(Mat, VecVecPoint, int, Scalar, int)>(); ffi.Pointer DrawContoursWithParams( Mat src, @@ -3670,19 +3253,10 @@ class CvNative { late final _DrawContoursWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - VecVecPoint, - ffi.Int, - Scalar, - ffi.Int, - ffi.Int, - Mat, - ffi.Int, + ffi.Pointer Function(Mat, VecVecPoint, ffi.Int, Scalar, ffi.Int, ffi.Int, Mat, ffi.Int, Point)>>('DrawContoursWithParams'); late final _DrawContoursWithParams = _DrawContoursWithParamsPtr.asFunction< - ffi.Pointer Function( - Mat, VecVecPoint, int, Scalar, int, int, Mat, int, Point)>(); + ffi.Pointer Function(Mat, VecVecPoint, int, Scalar, int, int, Mat, int, Point)>(); ffi.Pointer DrawKeyPoints( Mat src, @@ -3700,12 +3274,11 @@ class CvNative { ); } - late final _DrawKeyPointsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, VecKeyPoint, Mat, Scalar, ffi.Int)>>('DrawKeyPoints'); - late final _DrawKeyPoints = _DrawKeyPointsPtr.asFunction< - ffi.Pointer Function(Mat, VecKeyPoint, Mat, Scalar, int)>(); + late final _DrawKeyPointsPtr = + _lookup Function(Mat, VecKeyPoint, Mat, Scalar, ffi.Int)>>( + 'DrawKeyPoints'); + late final _DrawKeyPoints = + _DrawKeyPointsPtr.asFunction Function(Mat, VecKeyPoint, Mat, Scalar, int)>(); ffi.Pointer DrawMatches( Mat img1, @@ -3735,20 +3308,11 @@ class CvNative { late final _DrawMatchesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - VecKeyPoint, - Mat, - VecKeyPoint, - VecDMatch, - Mat, - Scalar, - Scalar, - VecChar, - ffi.Int)>>('DrawMatches'); + ffi.Pointer Function(Mat, VecKeyPoint, Mat, VecKeyPoint, VecDMatch, Mat, Scalar, Scalar, + VecChar, ffi.Int)>>('DrawMatches'); late final _DrawMatches = _DrawMatchesPtr.asFunction< - ffi.Pointer Function(Mat, VecKeyPoint, Mat, VecKeyPoint, - VecDMatch, Mat, Scalar, Scalar, VecChar, int)>(); + ffi.Pointer Function( + Mat, VecKeyPoint, Mat, VecKeyPoint, VecDMatch, Mat, Scalar, Scalar, VecChar, int)>(); ffi.Pointer EdgePreservingFilter( Mat src, @@ -3766,12 +3330,11 @@ class CvNative { ); } - late final _EdgePreservingFilterPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Float, - ffi.Float)>>('EdgePreservingFilter'); - late final _EdgePreservingFilter = _EdgePreservingFilterPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, double, double)>(); + late final _EdgePreservingFilterPtr = + _lookup Function(Mat, Mat, ffi.Int, ffi.Float, ffi.Float)>>( + 'EdgePreservingFilter'); + late final _EdgePreservingFilter = + _EdgePreservingFilterPtr.asFunction Function(Mat, Mat, int, double, double)>(); ffi.Pointer Ellipse( Mat img, @@ -3797,11 +3360,10 @@ class CvNative { late final _EllipsePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Point, Point, ffi.Double, - ffi.Double, ffi.Double, Scalar, ffi.Int)>>('Ellipse'); + ffi.Pointer Function( + Mat, Point, Point, ffi.Double, ffi.Double, ffi.Double, Scalar, ffi.Int)>>('Ellipse'); late final _Ellipse = _EllipsePtr.asFunction< - ffi.Pointer Function( - Mat, Point, Point, double, double, double, Scalar, int)>(); + ffi.Pointer Function(Mat, Point, Point, double, double, double, Scalar, int)>(); ffi.Pointer EllipseWithParams( Mat img, @@ -3831,20 +3393,10 @@ class CvNative { late final _EllipseWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - Point, - Point, - ffi.Double, - ffi.Double, - ffi.Double, - Scalar, - ffi.Int, - ffi.Int, - ffi.Int)>>('EllipseWithParams'); + ffi.Pointer Function(Mat, Point, Point, ffi.Double, ffi.Double, ffi.Double, Scalar, + ffi.Int, ffi.Int, ffi.Int)>>('EllipseWithParams'); late final _EllipseWithParams = _EllipseWithParamsPtr.asFunction< - ffi.Pointer Function( - Mat, Point, Point, double, double, double, Scalar, int, int, int)>(); + ffi.Pointer Function(Mat, Point, Point, double, double, double, Scalar, int, int, int)>(); ffi.Pointer EqualizeHist( Mat src, @@ -3857,10 +3409,8 @@ class CvNative { } late final _EqualizeHistPtr = - _lookup Function(Mat, Mat)>>( - 'EqualizeHist'); - late final _EqualizeHist = - _EqualizeHistPtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('EqualizeHist'); + late final _EqualizeHist = _EqualizeHistPtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Erode( Mat src, @@ -3874,11 +3424,8 @@ class CvNative { ); } - late final _ErodePtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, Mat)>>('Erode'); - late final _Erode = - _ErodePtr.asFunction Function(Mat, Mat, Mat)>(); + late final _ErodePtr = _lookup Function(Mat, Mat, Mat)>>('Erode'); + late final _Erode = _ErodePtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer ErodeWithParams( Mat src, @@ -3901,9 +3448,8 @@ class CvNative { } late final _ErodeWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Point, ffi.Int, ffi.Int, - Scalar)>>('ErodeWithParams'); + ffi.NativeFunction Function(Mat, Mat, Mat, Point, ffi.Int, ffi.Int, Scalar)>>( + 'ErodeWithParams'); late final _ErodeWithParams = _ErodeWithParamsPtr.asFunction< ffi.Pointer Function(Mat, Mat, Mat, Point, int, int, Scalar)>(); @@ -3919,13 +3465,11 @@ class CvNative { ); } - late final _EstimateAffine2DPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint2f, VecPoint2f, ffi.Pointer)>>('EstimateAffine2D'); + late final _EstimateAffine2DPtr = + _lookup Function(VecPoint2f, VecPoint2f, ffi.Pointer)>>( + 'EstimateAffine2D'); late final _EstimateAffine2D = _EstimateAffine2DPtr.asFunction< - ffi.Pointer Function( - VecPoint2f, VecPoint2f, ffi.Pointer)>(); + ffi.Pointer Function(VecPoint2f, VecPoint2f, ffi.Pointer)>(); ffi.Pointer EstimateAffine2DWithParams( VecPoint2f from, @@ -3953,20 +3497,11 @@ class CvNative { late final _EstimateAffine2DWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecPoint2f, - VecPoint2f, - Mat, - ffi.Int, - ffi.Double, - ffi.Size, - ffi.Double, - ffi.Size, - ffi.Pointer)>>('EstimateAffine2DWithParams'); - late final _EstimateAffine2DWithParams = - _EstimateAffine2DWithParamsPtr.asFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, Mat, int, - double, int, double, int, ffi.Pointer)>(); + ffi.Pointer Function(VecPoint2f, VecPoint2f, Mat, ffi.Int, ffi.Double, ffi.Size, + ffi.Double, ffi.Size, ffi.Pointer)>>('EstimateAffine2DWithParams'); + late final _EstimateAffine2DWithParams = _EstimateAffine2DWithParamsPtr.asFunction< + ffi.Pointer Function( + VecPoint2f, VecPoint2f, Mat, int, double, int, double, int, ffi.Pointer)>(); ffi.Pointer EstimateAffinePartial2D( VecPoint2f from, @@ -3980,13 +3515,11 @@ class CvNative { ); } - late final _EstimateAffinePartial2DPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, - ffi.Pointer)>>('EstimateAffinePartial2D'); + late final _EstimateAffinePartial2DPtr = + _lookup Function(VecPoint2f, VecPoint2f, ffi.Pointer)>>( + 'EstimateAffinePartial2D'); late final _EstimateAffinePartial2D = _EstimateAffinePartial2DPtr.asFunction< - ffi.Pointer Function( - VecPoint2f, VecPoint2f, ffi.Pointer)>(); + ffi.Pointer Function(VecPoint2f, VecPoint2f, ffi.Pointer)>(); ffi.Pointer EstimateAffinePartial2DWithParams( VecPoint2f from, @@ -4014,20 +3547,11 @@ class CvNative { late final _EstimateAffinePartial2DWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecPoint2f, - VecPoint2f, - Mat, - ffi.Int, - ffi.Double, - ffi.Size, - ffi.Double, - ffi.Size, - ffi.Pointer)>>('EstimateAffinePartial2DWithParams'); - late final _EstimateAffinePartial2DWithParams = - _EstimateAffinePartial2DWithParamsPtr.asFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, Mat, int, - double, int, double, int, ffi.Pointer)>(); + ffi.Pointer Function(VecPoint2f, VecPoint2f, Mat, ffi.Int, ffi.Double, ffi.Size, + ffi.Double, ffi.Size, ffi.Pointer)>>('EstimateAffinePartial2DWithParams'); + late final _EstimateAffinePartial2DWithParams = _EstimateAffinePartial2DWithParamsPtr.asFunction< + ffi.Pointer Function( + VecPoint2f, VecPoint2f, Mat, int, double, int, double, int, ffi.Pointer)>(); ffi.Pointer Eye( int rows, @@ -4044,11 +3568,8 @@ class CvNative { } late final _EyePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Eye'); - late final _Eye = _EyePtr.asFunction< - ffi.Pointer Function(int, int, int, ffi.Pointer)>(); + ffi.NativeFunction Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Eye'); + late final _Eye = _EyePtr.asFunction Function(int, int, int, ffi.Pointer)>(); void FaceDetectorYN_Close( FaceDetectorYNPtr self, @@ -4059,10 +3580,8 @@ class CvNative { } late final _FaceDetectorYN_ClosePtr = - _lookup>( - 'FaceDetectorYN_Close'); - late final _FaceDetectorYN_Close = - _FaceDetectorYN_ClosePtr.asFunction(); + _lookup>('FaceDetectorYN_Close'); + late final _FaceDetectorYN_Close = _FaceDetectorYN_ClosePtr.asFunction(); ffi.Pointer FaceDetectorYN_Detect( FaceDetectorYN self, @@ -4076,10 +3595,9 @@ class CvNative { ); } - late final _FaceDetectorYN_DetectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - FaceDetectorYN, Mat, ffi.Pointer)>>('FaceDetectorYN_Detect'); + late final _FaceDetectorYN_DetectPtr = + _lookup Function(FaceDetectorYN, Mat, ffi.Pointer)>>( + 'FaceDetectorYN_Detect'); late final _FaceDetectorYN_Detect = _FaceDetectorYN_DetectPtr.asFunction< ffi.Pointer Function(FaceDetectorYN, Mat, ffi.Pointer)>(); @@ -4095,13 +3613,11 @@ class CvNative { ); } - late final _FaceDetectorYN_Detect_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceDetectorYN, Mat, - CvCallback_1)>>('FaceDetectorYN_Detect_Async'); - late final _FaceDetectorYN_Detect_Async = - _FaceDetectorYN_Detect_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, Mat, CvCallback_1)>(); + late final _FaceDetectorYN_Detect_AsyncPtr = + _lookup Function(FaceDetectorYN, Mat, CvCallback_1)>>( + 'FaceDetectorYN_Detect_Async'); + late final _FaceDetectorYN_Detect_Async = _FaceDetectorYN_Detect_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, Mat, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_GetInputSize( FaceDetectorYN self, @@ -4113,13 +3629,11 @@ class CvNative { ); } - late final _FaceDetectorYN_GetInputSizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceDetectorYN, - ffi.Pointer)>>('FaceDetectorYN_GetInputSize'); - late final _FaceDetectorYN_GetInputSize = - _FaceDetectorYN_GetInputSizePtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, ffi.Pointer)>(); + late final _FaceDetectorYN_GetInputSizePtr = + _lookup Function(FaceDetectorYN, ffi.Pointer)>>( + 'FaceDetectorYN_GetInputSize'); + late final _FaceDetectorYN_GetInputSize = _FaceDetectorYN_GetInputSizePtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, ffi.Pointer)>(); ffi.Pointer FaceDetectorYN_GetInputSize_Async( FaceDetectorYN self, @@ -4131,13 +3645,11 @@ class CvNative { ); } - late final _FaceDetectorYN_GetInputSize_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceDetectorYN, - CvCallback_1)>>('FaceDetectorYN_GetInputSize_Async'); - late final _FaceDetectorYN_GetInputSize_Async = - _FaceDetectorYN_GetInputSize_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); + late final _FaceDetectorYN_GetInputSize_AsyncPtr = + _lookup Function(FaceDetectorYN, CvCallback_1)>>( + 'FaceDetectorYN_GetInputSize_Async'); + late final _FaceDetectorYN_GetInputSize_Async = _FaceDetectorYN_GetInputSize_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_GetNMSThreshold( FaceDetectorYN self, @@ -4149,14 +3661,11 @@ class CvNative { ); } - late final _FaceDetectorYN_GetNMSThresholdPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceDetectorYN, - ffi.Pointer)>>('FaceDetectorYN_GetNMSThreshold'); - late final _FaceDetectorYN_GetNMSThreshold = - _FaceDetectorYN_GetNMSThresholdPtr.asFunction< - ffi.Pointer Function( - FaceDetectorYN, ffi.Pointer)>(); + late final _FaceDetectorYN_GetNMSThresholdPtr = + _lookup Function(FaceDetectorYN, ffi.Pointer)>>( + 'FaceDetectorYN_GetNMSThreshold'); + late final _FaceDetectorYN_GetNMSThreshold = _FaceDetectorYN_GetNMSThresholdPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, ffi.Pointer)>(); ffi.Pointer FaceDetectorYN_GetNMSThreshold_Async( FaceDetectorYN self, @@ -4168,13 +3677,11 @@ class CvNative { ); } - late final _FaceDetectorYN_GetNMSThreshold_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceDetectorYN, - CvCallback_1)>>('FaceDetectorYN_GetNMSThreshold_Async'); - late final _FaceDetectorYN_GetNMSThreshold_Async = - _FaceDetectorYN_GetNMSThreshold_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); + late final _FaceDetectorYN_GetNMSThreshold_AsyncPtr = + _lookup Function(FaceDetectorYN, CvCallback_1)>>( + 'FaceDetectorYN_GetNMSThreshold_Async'); + late final _FaceDetectorYN_GetNMSThreshold_Async = _FaceDetectorYN_GetNMSThreshold_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_GetScoreThreshold( FaceDetectorYN self, @@ -4186,14 +3693,11 @@ class CvNative { ); } - late final _FaceDetectorYN_GetScoreThresholdPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceDetectorYN, - ffi.Pointer)>>('FaceDetectorYN_GetScoreThreshold'); - late final _FaceDetectorYN_GetScoreThreshold = - _FaceDetectorYN_GetScoreThresholdPtr.asFunction< - ffi.Pointer Function( - FaceDetectorYN, ffi.Pointer)>(); + late final _FaceDetectorYN_GetScoreThresholdPtr = + _lookup Function(FaceDetectorYN, ffi.Pointer)>>( + 'FaceDetectorYN_GetScoreThreshold'); + late final _FaceDetectorYN_GetScoreThreshold = _FaceDetectorYN_GetScoreThresholdPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, ffi.Pointer)>(); ffi.Pointer FaceDetectorYN_GetScoreThreshold_Async( FaceDetectorYN self, @@ -4205,13 +3709,11 @@ class CvNative { ); } - late final _FaceDetectorYN_GetScoreThreshold_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceDetectorYN, - CvCallback_1)>>('FaceDetectorYN_GetScoreThreshold_Async'); - late final _FaceDetectorYN_GetScoreThreshold_Async = - _FaceDetectorYN_GetScoreThreshold_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); + late final _FaceDetectorYN_GetScoreThreshold_AsyncPtr = + _lookup Function(FaceDetectorYN, CvCallback_1)>>( + 'FaceDetectorYN_GetScoreThreshold_Async'); + late final _FaceDetectorYN_GetScoreThreshold_Async = _FaceDetectorYN_GetScoreThreshold_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_GetTopK( FaceDetectorYN self, @@ -4223,10 +3725,9 @@ class CvNative { ); } - late final _FaceDetectorYN_GetTopKPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - FaceDetectorYN, ffi.Pointer)>>('FaceDetectorYN_GetTopK'); + late final _FaceDetectorYN_GetTopKPtr = + _lookup Function(FaceDetectorYN, ffi.Pointer)>>( + 'FaceDetectorYN_GetTopK'); late final _FaceDetectorYN_GetTopK = _FaceDetectorYN_GetTopKPtr.asFunction< ffi.Pointer Function(FaceDetectorYN, ffi.Pointer)>(); @@ -4240,13 +3741,11 @@ class CvNative { ); } - late final _FaceDetectorYN_GetTopK_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - FaceDetectorYN, CvCallback_1)>>('FaceDetectorYN_GetTopK_Async'); - late final _FaceDetectorYN_GetTopK_Async = - _FaceDetectorYN_GetTopK_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); + late final _FaceDetectorYN_GetTopK_AsyncPtr = + _lookup Function(FaceDetectorYN, CvCallback_1)>>( + 'FaceDetectorYN_GetTopK_Async'); + late final _FaceDetectorYN_GetTopK_Async = _FaceDetectorYN_GetTopK_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_New( ffi.Pointer model, @@ -4274,27 +3773,11 @@ class CvNative { late final _FaceDetectorYN_NewPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - Size, - ffi.Float, - ffi.Float, - ffi.Int, - ffi.Int, - ffi.Int, - ffi.Pointer)>>('FaceDetectorYN_New'); + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, Size, ffi.Float, + ffi.Float, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('FaceDetectorYN_New'); late final _FaceDetectorYN_New = _FaceDetectorYN_NewPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - Size, - double, - double, - int, - int, - int, - ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, Size, double, double, int, + int, int, ffi.Pointer)>(); ffi.Pointer FaceDetectorYN_NewFromBuffer( ffi.Pointer framework, @@ -4335,19 +3818,9 @@ class CvNative { ffi.Int, ffi.Int, ffi.Pointer)>>('FaceDetectorYN_NewFromBuffer'); - late final _FaceDetectorYN_NewFromBuffer = - _FaceDetectorYN_NewFromBufferPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - VecUChar, - VecUChar, - Size, - double, - double, - int, - int, - int, - ffi.Pointer)>(); + late final _FaceDetectorYN_NewFromBuffer = _FaceDetectorYN_NewFromBufferPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, VecUChar, VecUChar, Size, double, double, int, + int, int, ffi.Pointer)>(); ffi.Pointer FaceDetectorYN_NewFromBuffer_Async( ffi.Pointer framework, @@ -4377,21 +3850,11 @@ class CvNative { late final _FaceDetectorYN_NewFromBuffer_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - VecUChar, - VecUChar, - Size, - ffi.Float, - ffi.Float, - ffi.Int, - ffi.Int, - ffi.Int, - CvCallback_1)>>('FaceDetectorYN_NewFromBuffer_Async'); - late final _FaceDetectorYN_NewFromBuffer_Async = - _FaceDetectorYN_NewFromBuffer_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, VecUChar, - VecUChar, Size, double, double, int, int, int, CvCallback_1)>(); + ffi.Pointer Function(ffi.Pointer, VecUChar, VecUChar, Size, ffi.Float, + ffi.Float, ffi.Int, ffi.Int, ffi.Int, CvCallback_1)>>('FaceDetectorYN_NewFromBuffer_Async'); + late final _FaceDetectorYN_NewFromBuffer_Async = _FaceDetectorYN_NewFromBuffer_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, VecUChar, VecUChar, Size, double, double, int, int, int, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_New_Async( ffi.Pointer model, @@ -4419,28 +3882,11 @@ class CvNative { late final _FaceDetectorYN_New_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - Size, - ffi.Float, - ffi.Float, - ffi.Int, - ffi.Int, - ffi.Int, - CvCallback_1)>>('FaceDetectorYN_New_Async'); - late final _FaceDetectorYN_New_Async = - _FaceDetectorYN_New_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - Size, - double, - double, - int, - int, - int, - CvCallback_1)>(); + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, Size, ffi.Float, + ffi.Float, ffi.Int, ffi.Int, ffi.Int, CvCallback_1)>>('FaceDetectorYN_New_Async'); + late final _FaceDetectorYN_New_Async = _FaceDetectorYN_New_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, Size, double, double, int, int, int, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_SetInputSize( FaceDetectorYN self, @@ -4452,12 +3898,11 @@ class CvNative { ); } - late final _FaceDetectorYN_SetInputSizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - FaceDetectorYN, Size)>>('FaceDetectorYN_SetInputSize'); - late final _FaceDetectorYN_SetInputSize = _FaceDetectorYN_SetInputSizePtr - .asFunction Function(FaceDetectorYN, Size)>(); + late final _FaceDetectorYN_SetInputSizePtr = + _lookup Function(FaceDetectorYN, Size)>>( + 'FaceDetectorYN_SetInputSize'); + late final _FaceDetectorYN_SetInputSize = + _FaceDetectorYN_SetInputSizePtr.asFunction Function(FaceDetectorYN, Size)>(); ffi.Pointer FaceDetectorYN_SetInputSize_Async( FaceDetectorYN self, @@ -4471,13 +3916,11 @@ class CvNative { ); } - late final _FaceDetectorYN_SetInputSize_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceDetectorYN, Size, - CvCallback_1)>>('FaceDetectorYN_SetInputSize_Async'); - late final _FaceDetectorYN_SetInputSize_Async = - _FaceDetectorYN_SetInputSize_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, Size, CvCallback_1)>(); + late final _FaceDetectorYN_SetInputSize_AsyncPtr = + _lookup Function(FaceDetectorYN, Size, CvCallback_1)>>( + 'FaceDetectorYN_SetInputSize_Async'); + late final _FaceDetectorYN_SetInputSize_Async = _FaceDetectorYN_SetInputSize_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, Size, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_SetNMSThreshold( FaceDetectorYN self, @@ -4489,13 +3932,11 @@ class CvNative { ); } - late final _FaceDetectorYN_SetNMSThresholdPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - FaceDetectorYN, ffi.Float)>>('FaceDetectorYN_SetNMSThreshold'); + late final _FaceDetectorYN_SetNMSThresholdPtr = + _lookup Function(FaceDetectorYN, ffi.Float)>>( + 'FaceDetectorYN_SetNMSThreshold'); late final _FaceDetectorYN_SetNMSThreshold = - _FaceDetectorYN_SetNMSThresholdPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, double)>(); + _FaceDetectorYN_SetNMSThresholdPtr.asFunction Function(FaceDetectorYN, double)>(); ffi.Pointer FaceDetectorYN_SetNMSThreshold_Async( FaceDetectorYN self, @@ -4509,14 +3950,11 @@ class CvNative { ); } - late final _FaceDetectorYN_SetNMSThreshold_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceDetectorYN, ffi.Float, - CvCallback_1)>>('FaceDetectorYN_SetNMSThreshold_Async'); - late final _FaceDetectorYN_SetNMSThreshold_Async = - _FaceDetectorYN_SetNMSThreshold_AsyncPtr.asFunction< - ffi.Pointer Function( - FaceDetectorYN, double, CvCallback_1)>(); + late final _FaceDetectorYN_SetNMSThreshold_AsyncPtr = + _lookup Function(FaceDetectorYN, ffi.Float, CvCallback_1)>>( + 'FaceDetectorYN_SetNMSThreshold_Async'); + late final _FaceDetectorYN_SetNMSThreshold_Async = _FaceDetectorYN_SetNMSThreshold_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, double, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_SetScoreThreshold( FaceDetectorYN self, @@ -4528,13 +3966,11 @@ class CvNative { ); } - late final _FaceDetectorYN_SetScoreThresholdPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - FaceDetectorYN, ffi.Float)>>('FaceDetectorYN_SetScoreThreshold'); - late final _FaceDetectorYN_SetScoreThreshold = - _FaceDetectorYN_SetScoreThresholdPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, double)>(); + late final _FaceDetectorYN_SetScoreThresholdPtr = + _lookup Function(FaceDetectorYN, ffi.Float)>>( + 'FaceDetectorYN_SetScoreThreshold'); + late final _FaceDetectorYN_SetScoreThreshold = _FaceDetectorYN_SetScoreThresholdPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, double)>(); ffi.Pointer FaceDetectorYN_SetScoreThreshold_Async( FaceDetectorYN self, @@ -4548,14 +3984,11 @@ class CvNative { ); } - late final _FaceDetectorYN_SetScoreThreshold_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceDetectorYN, ffi.Float, - CvCallback_1)>>('FaceDetectorYN_SetScoreThreshold_Async'); - late final _FaceDetectorYN_SetScoreThreshold_Async = - _FaceDetectorYN_SetScoreThreshold_AsyncPtr.asFunction< - ffi.Pointer Function( - FaceDetectorYN, double, CvCallback_1)>(); + late final _FaceDetectorYN_SetScoreThreshold_AsyncPtr = + _lookup Function(FaceDetectorYN, ffi.Float, CvCallback_1)>>( + 'FaceDetectorYN_SetScoreThreshold_Async'); + late final _FaceDetectorYN_SetScoreThreshold_Async = _FaceDetectorYN_SetScoreThreshold_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, double, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_SetTopK( FaceDetectorYN self, @@ -4567,12 +4000,11 @@ class CvNative { ); } - late final _FaceDetectorYN_SetTopKPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - FaceDetectorYN, ffi.Int)>>('FaceDetectorYN_SetTopK'); - late final _FaceDetectorYN_SetTopK = _FaceDetectorYN_SetTopKPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, int)>(); + late final _FaceDetectorYN_SetTopKPtr = + _lookup Function(FaceDetectorYN, ffi.Int)>>( + 'FaceDetectorYN_SetTopK'); + late final _FaceDetectorYN_SetTopK = + _FaceDetectorYN_SetTopKPtr.asFunction Function(FaceDetectorYN, int)>(); ffi.Pointer FaceDetectorYN_SetTopK_Async( FaceDetectorYN self, @@ -4586,13 +4018,11 @@ class CvNative { ); } - late final _FaceDetectorYN_SetTopK_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceDetectorYN, ffi.Int, - CvCallback_1)>>('FaceDetectorYN_SetTopK_Async'); - late final _FaceDetectorYN_SetTopK_Async = - _FaceDetectorYN_SetTopK_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, int, CvCallback_1)>(); + late final _FaceDetectorYN_SetTopK_AsyncPtr = + _lookup Function(FaceDetectorYN, ffi.Int, CvCallback_1)>>( + 'FaceDetectorYN_SetTopK_Async'); + late final _FaceDetectorYN_SetTopK_Async = _FaceDetectorYN_SetTopK_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, int, CvCallback_1)>(); ffi.Pointer FaceRecognizerSF_AlignCrop( FaceRecognizerSF self, @@ -4609,13 +4039,10 @@ class CvNative { } late final _FaceRecognizerSF_AlignCropPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, - ffi.Pointer)>>('FaceRecognizerSF_AlignCrop'); - late final _FaceRecognizerSF_AlignCrop = - _FaceRecognizerSF_AlignCropPtr.asFunction< - ffi.Pointer Function( - FaceRecognizerSF, Mat, Mat, ffi.Pointer)>(); + ffi.NativeFunction Function(FaceRecognizerSF, Mat, Mat, ffi.Pointer)>>( + 'FaceRecognizerSF_AlignCrop'); + late final _FaceRecognizerSF_AlignCrop = _FaceRecognizerSF_AlignCropPtr.asFunction< + ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, ffi.Pointer)>(); ffi.Pointer FaceRecognizerSF_AlignCrop_Async( FaceRecognizerSF self, @@ -4631,14 +4058,11 @@ class CvNative { ); } - late final _FaceRecognizerSF_AlignCrop_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, - CvCallback_1)>>('FaceRecognizerSF_AlignCrop_Async'); - late final _FaceRecognizerSF_AlignCrop_Async = - _FaceRecognizerSF_AlignCrop_AsyncPtr.asFunction< - ffi.Pointer Function( - FaceRecognizerSF, Mat, Mat, CvCallback_1)>(); + late final _FaceRecognizerSF_AlignCrop_AsyncPtr = + _lookup Function(FaceRecognizerSF, Mat, Mat, CvCallback_1)>>( + 'FaceRecognizerSF_AlignCrop_Async'); + late final _FaceRecognizerSF_AlignCrop_Async = _FaceRecognizerSF_AlignCrop_AsyncPtr.asFunction< + ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, CvCallback_1)>(); void FaceRecognizerSF_Close( FaceRecognizerSFPtr self, @@ -4649,10 +4073,9 @@ class CvNative { } late final _FaceRecognizerSF_ClosePtr = - _lookup>( - 'FaceRecognizerSF_Close'); - late final _FaceRecognizerSF_Close = _FaceRecognizerSF_ClosePtr.asFunction< - void Function(FaceRecognizerSFPtr)>(); + _lookup>('FaceRecognizerSF_Close'); + late final _FaceRecognizerSF_Close = + _FaceRecognizerSF_ClosePtr.asFunction(); ffi.Pointer FaceRecognizerSF_Feature( FaceRecognizerSF self, @@ -4669,13 +4092,11 @@ class CvNative { } late final _FaceRecognizerSF_FeaturePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceRecognizerSF, Mat, ffi.Bool, - ffi.Pointer)>>('FaceRecognizerSF_Feature'); - late final _FaceRecognizerSF_Feature = - _FaceRecognizerSF_FeaturePtr.asFunction< - ffi.Pointer Function( - FaceRecognizerSF, Mat, bool, ffi.Pointer)>(); + ffi + .NativeFunction Function(FaceRecognizerSF, Mat, ffi.Bool, ffi.Pointer)>>( + 'FaceRecognizerSF_Feature'); + late final _FaceRecognizerSF_Feature = _FaceRecognizerSF_FeaturePtr.asFunction< + ffi.Pointer Function(FaceRecognizerSF, Mat, bool, ffi.Pointer)>(); ffi.Pointer FaceRecognizerSF_Feature_Async( FaceRecognizerSF self, @@ -4692,13 +4113,10 @@ class CvNative { } late final _FaceRecognizerSF_Feature_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceRecognizerSF, Mat, ffi.Bool, - CvCallback_1)>>('FaceRecognizerSF_Feature_Async'); - late final _FaceRecognizerSF_Feature_Async = - _FaceRecognizerSF_Feature_AsyncPtr.asFunction< - ffi.Pointer Function( - FaceRecognizerSF, Mat, bool, CvCallback_1)>(); + ffi.NativeFunction Function(FaceRecognizerSF, Mat, ffi.Bool, CvCallback_1)>>( + 'FaceRecognizerSF_Feature_Async'); + late final _FaceRecognizerSF_Feature_Async = _FaceRecognizerSF_Feature_AsyncPtr.asFunction< + ffi.Pointer Function(FaceRecognizerSF, Mat, bool, CvCallback_1)>(); ffi.Pointer FaceRecognizerSF_Match( FaceRecognizerSF self, @@ -4718,11 +4136,10 @@ class CvNative { late final _FaceRecognizerSF_MatchPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, ffi.Int, - ffi.Pointer)>>('FaceRecognizerSF_Match'); + ffi.Pointer Function( + FaceRecognizerSF, Mat, Mat, ffi.Int, ffi.Pointer)>>('FaceRecognizerSF_Match'); late final _FaceRecognizerSF_Match = _FaceRecognizerSF_MatchPtr.asFunction< - ffi.Pointer Function( - FaceRecognizerSF, Mat, Mat, int, ffi.Pointer)>(); + ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer FaceRecognizerSF_Match_Async( FaceRecognizerSF self, @@ -4741,13 +4158,11 @@ class CvNative { } late final _FaceRecognizerSF_Match_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, ffi.Int, - CvCallback_1)>>('FaceRecognizerSF_Match_Async'); - late final _FaceRecognizerSF_Match_Async = - _FaceRecognizerSF_Match_AsyncPtr.asFunction< - ffi.Pointer Function( - FaceRecognizerSF, Mat, Mat, int, CvCallback_1)>(); + ffi + .NativeFunction Function(FaceRecognizerSF, Mat, Mat, ffi.Int, CvCallback_1)>>( + 'FaceRecognizerSF_Match_Async'); + late final _FaceRecognizerSF_Match_Async = _FaceRecognizerSF_Match_AsyncPtr.asFunction< + ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, int, CvCallback_1)>(); ffi.Pointer FaceRecognizerSF_New( ffi.Pointer model, @@ -4767,15 +4182,11 @@ class CvNative { late final _FaceRecognizerSF_NewPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Int, + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Int, ffi.Pointer)>>('FaceRecognizerSF_New'); late final _FaceRecognizerSF_New = _FaceRecognizerSF_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer)>(); ffi.Pointer FaceRecognizerSF_New_Async( ffi.Pointer model, @@ -4795,16 +4206,10 @@ class CvNative { late final _FaceRecognizerSF_New_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Int, + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Int, CvCallback_1)>>('FaceRecognizerSF_New_Async'); - late final _FaceRecognizerSF_New_Async = - _FaceRecognizerSF_New_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, int, CvCallback_1)>(); + late final _FaceRecognizerSF_New_Async = _FaceRecognizerSF_New_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, int, CvCallback_1)>(); void FastFeatureDetector_Close( FastFeatureDetectorPtr f, @@ -4815,10 +4220,9 @@ class CvNative { } late final _FastFeatureDetector_ClosePtr = - _lookup>( - 'FastFeatureDetector_Close'); - late final _FastFeatureDetector_Close = _FastFeatureDetector_ClosePtr - .asFunction(); + _lookup>('FastFeatureDetector_Close'); + late final _FastFeatureDetector_Close = + _FastFeatureDetector_ClosePtr.asFunction(); ffi.Pointer FastFeatureDetector_Create( ffi.Pointer rval, @@ -4828,13 +4232,11 @@ class CvNative { ); } - late final _FastFeatureDetector_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('FastFeatureDetector_Create'); - late final _FastFeatureDetector_Create = - _FastFeatureDetector_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _FastFeatureDetector_CreatePtr = + _lookup Function(ffi.Pointer)>>( + 'FastFeatureDetector_Create'); + late final _FastFeatureDetector_Create = _FastFeatureDetector_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer FastFeatureDetector_CreateWithParams( int threshold, @@ -4851,14 +4253,11 @@ class CvNative { } late final _FastFeatureDetector_CreateWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Bool, ffi.Int, - ffi.Pointer)>>( - 'FastFeatureDetector_CreateWithParams'); - late final _FastFeatureDetector_CreateWithParams = - _FastFeatureDetector_CreateWithParamsPtr.asFunction< - ffi.Pointer Function( - int, bool, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Bool, ffi.Int, + ffi.Pointer)>>('FastFeatureDetector_CreateWithParams'); + late final _FastFeatureDetector_CreateWithParams = _FastFeatureDetector_CreateWithParamsPtr.asFunction< + ffi.Pointer Function(int, bool, int, ffi.Pointer)>(); ffi.Pointer FastFeatureDetector_Detect( FastFeatureDetector f, @@ -4874,12 +4273,10 @@ class CvNative { late final _FastFeatureDetector_DetectPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(FastFeatureDetector, Mat, - ffi.Pointer)>>('FastFeatureDetector_Detect'); - late final _FastFeatureDetector_Detect = - _FastFeatureDetector_DetectPtr.asFunction< ffi.Pointer Function( - FastFeatureDetector, Mat, ffi.Pointer)>(); + FastFeatureDetector, Mat, ffi.Pointer)>>('FastFeatureDetector_Detect'); + late final _FastFeatureDetector_Detect = _FastFeatureDetector_DetectPtr.asFunction< + ffi.Pointer Function(FastFeatureDetector, Mat, ffi.Pointer)>(); ffi.Pointer FastNlMeansDenoising( Mat src, @@ -4892,10 +4289,9 @@ class CvNative { } late final _FastNlMeansDenoisingPtr = - _lookup Function(Mat, Mat)>>( - 'FastNlMeansDenoising'); - late final _FastNlMeansDenoising = _FastNlMeansDenoisingPtr.asFunction< - ffi.Pointer Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('FastNlMeansDenoising'); + late final _FastNlMeansDenoising = + _FastNlMeansDenoisingPtr.asFunction Function(Mat, Mat)>(); ffi.Pointer FastNlMeansDenoisingColored( Mat src, @@ -4908,10 +4304,9 @@ class CvNative { } late final _FastNlMeansDenoisingColoredPtr = - _lookup Function(Mat, Mat)>>( - 'FastNlMeansDenoisingColored'); - late final _FastNlMeansDenoisingColored = _FastNlMeansDenoisingColoredPtr - .asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('FastNlMeansDenoisingColored'); + late final _FastNlMeansDenoisingColored = + _FastNlMeansDenoisingColoredPtr.asFunction Function(Mat, Mat)>(); ffi.Pointer FastNlMeansDenoisingColoredMulti( VecMat src, @@ -4927,13 +4322,11 @@ class CvNative { ); } - late final _FastNlMeansDenoisingColoredMultiPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecMat, Mat, ffi.Int, - ffi.Int)>>('FastNlMeansDenoisingColoredMulti'); - late final _FastNlMeansDenoisingColoredMulti = - _FastNlMeansDenoisingColoredMultiPtr.asFunction< - ffi.Pointer Function(VecMat, Mat, int, int)>(); + late final _FastNlMeansDenoisingColoredMultiPtr = + _lookup Function(VecMat, Mat, ffi.Int, ffi.Int)>>( + 'FastNlMeansDenoisingColoredMulti'); + late final _FastNlMeansDenoisingColoredMulti = _FastNlMeansDenoisingColoredMultiPtr.asFunction< + ffi.Pointer Function(VecMat, Mat, int, int)>(); ffi.Pointer FastNlMeansDenoisingColoredMultiWithParams( VecMat src, @@ -4959,19 +4352,10 @@ class CvNative { late final _FastNlMeansDenoisingColoredMultiWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecMat, - Mat, - ffi.Int, - ffi.Int, - ffi.Float, - ffi.Float, - ffi.Int, + ffi.Pointer Function(VecMat, Mat, ffi.Int, ffi.Int, ffi.Float, ffi.Float, ffi.Int, ffi.Int)>>('FastNlMeansDenoisingColoredMultiWithParams'); - late final _FastNlMeansDenoisingColoredMultiWithParams = - _FastNlMeansDenoisingColoredMultiWithParamsPtr.asFunction< - ffi.Pointer Function( - VecMat, Mat, int, int, double, double, int, int)>(); + late final _FastNlMeansDenoisingColoredMultiWithParams = _FastNlMeansDenoisingColoredMultiWithParamsPtr + .asFunction Function(VecMat, Mat, int, int, double, double, int, int)>(); ffi.Pointer FastNlMeansDenoisingColoredWithParams( Mat src, @@ -4992,12 +4376,11 @@ class CvNative { } late final _FastNlMeansDenoisingColoredWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Float, ffi.Float, - ffi.Int, ffi.Int)>>('FastNlMeansDenoisingColoredWithParams'); - late final _FastNlMeansDenoisingColoredWithParams = - _FastNlMeansDenoisingColoredWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, double, int, int)>(); + ffi + .NativeFunction Function(Mat, Mat, ffi.Float, ffi.Float, ffi.Int, ffi.Int)>>( + 'FastNlMeansDenoisingColoredWithParams'); + late final _FastNlMeansDenoisingColoredWithParams = _FastNlMeansDenoisingColoredWithParamsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, double, double, int, int)>(); ffi.Pointer FastNlMeansDenoisingWithParams( Mat src, @@ -5015,13 +4398,11 @@ class CvNative { ); } - late final _FastNlMeansDenoisingWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Float, ffi.Int, - ffi.Int)>>('FastNlMeansDenoisingWithParams'); - late final _FastNlMeansDenoisingWithParams = - _FastNlMeansDenoisingWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, int, int)>(); + late final _FastNlMeansDenoisingWithParamsPtr = + _lookup Function(Mat, Mat, ffi.Float, ffi.Int, ffi.Int)>>( + 'FastNlMeansDenoisingWithParams'); + late final _FastNlMeansDenoisingWithParams = _FastNlMeansDenoisingWithParamsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, double, int, int)>(); ffi.Pointer FillPoly( Mat img, @@ -5035,12 +4416,9 @@ class CvNative { ); } - late final _FillPolyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, VecVecPoint, Scalar)>>('FillPoly'); - late final _FillPoly = _FillPolyPtr.asFunction< - ffi.Pointer Function(Mat, VecVecPoint, Scalar)>(); + late final _FillPolyPtr = + _lookup Function(Mat, VecVecPoint, Scalar)>>('FillPoly'); + late final _FillPoly = _FillPolyPtr.asFunction Function(Mat, VecVecPoint, Scalar)>(); ffi.Pointer FillPolyWithParams( Mat img, @@ -5061,12 +4439,11 @@ class CvNative { } late final _FillPolyWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, VecVecPoint, Scalar, ffi.Int, - ffi.Int, Point)>>('FillPolyWithParams'); + ffi + .NativeFunction Function(Mat, VecVecPoint, Scalar, ffi.Int, ffi.Int, Point)>>( + 'FillPolyWithParams'); late final _FillPolyWithParams = _FillPolyWithParamsPtr.asFunction< - ffi.Pointer Function( - Mat, VecVecPoint, Scalar, int, int, Point)>(); + ffi.Pointer Function(Mat, VecVecPoint, Scalar, int, int, Point)>(); ffi.Pointer Filter2D( Mat src, @@ -5090,10 +4467,9 @@ class CvNative { late final _Filter2DPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, Mat, Point, ffi.Double, ffi.Int)>>('Filter2D'); - late final _Filter2D = _Filter2DPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, Mat, Point, double, int)>(); + ffi.Pointer Function(Mat, Mat, ffi.Int, Mat, Point, ffi.Double, ffi.Int)>>('Filter2D'); + late final _Filter2D = + _Filter2DPtr.asFunction Function(Mat, Mat, int, Mat, Point, double, int)>(); ffi.Pointer FindChessboardCorners( Mat image, @@ -5112,12 +4488,10 @@ class CvNative { } late final _FindChessboardCornersPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Size, Mat, ffi.Int, - ffi.Pointer)>>('FindChessboardCorners'); + ffi.NativeFunction Function(Mat, Size, Mat, ffi.Int, ffi.Pointer)>>( + 'FindChessboardCorners'); late final _FindChessboardCorners = _FindChessboardCornersPtr.asFunction< - ffi.Pointer Function( - Mat, Size, Mat, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, Size, Mat, int, ffi.Pointer)>(); ffi.Pointer FindChessboardCornersSB( Mat image, @@ -5136,12 +4510,10 @@ class CvNative { } late final _FindChessboardCornersSBPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Size, Mat, ffi.Int, - ffi.Pointer)>>('FindChessboardCornersSB'); + ffi.NativeFunction Function(Mat, Size, Mat, ffi.Int, ffi.Pointer)>>( + 'FindChessboardCornersSB'); late final _FindChessboardCornersSB = _FindChessboardCornersSBPtr.asFunction< - ffi.Pointer Function( - Mat, Size, Mat, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, Size, Mat, int, ffi.Pointer)>(); ffi.Pointer FindChessboardCornersSBWithMeta( Mat image, @@ -5163,12 +4535,10 @@ class CvNative { late final _FindChessboardCornersSBWithMetaPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Size, Mat, ffi.Int, Mat, - ffi.Pointer)>>('FindChessboardCornersSBWithMeta'); - late final _FindChessboardCornersSBWithMeta = - _FindChessboardCornersSBWithMetaPtr.asFunction< ffi.Pointer Function( - Mat, Size, Mat, int, Mat, ffi.Pointer)>(); + Mat, Size, Mat, ffi.Int, Mat, ffi.Pointer)>>('FindChessboardCornersSBWithMeta'); + late final _FindChessboardCornersSBWithMeta = _FindChessboardCornersSBWithMetaPtr.asFunction< + ffi.Pointer Function(Mat, Size, Mat, int, Mat, ffi.Pointer)>(); ffi.Pointer FindContours( Mat src, @@ -5188,11 +4558,10 @@ class CvNative { late final _FindContoursPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, - ffi.Pointer)>>('FindContours'); + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('FindContours'); late final _FindContours = _FindContoursPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, Mat, int, int, ffi.Pointer)>(); ffi.Pointer FindHomography( Mat src, @@ -5218,11 +4587,10 @@ class CvNative { late final _FindHomographyPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Double, Mat, - ffi.Int, ffi.Double, ffi.Pointer)>>('FindHomography'); + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Double, Mat, ffi.Int, ffi.Double, ffi.Pointer)>>('FindHomography'); late final _FindHomography = _FindHomographyPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, int, double, Mat, int, double, ffi.Pointer)>(); + ffi.Pointer Function(Mat, Mat, int, double, Mat, int, double, ffi.Pointer)>(); ffi.Pointer FindTransformECC( Mat templateImage, @@ -5248,11 +4616,10 @@ class CvNative { late final _FindTransformECCPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, ffi.Int, TermCriteria, - Mat, ffi.Int, ffi.Pointer)>>('FindTransformECC'); + ffi.Pointer Function(Mat, Mat, Mat, ffi.Int, TermCriteria, Mat, ffi.Int, + ffi.Pointer)>>('FindTransformECC'); late final _FindTransformECC = _FindTransformECCPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, int, TermCriteria, Mat, int, - ffi.Pointer)>(); + ffi.Pointer Function(Mat, Mat, Mat, int, TermCriteria, Mat, int, ffi.Pointer)>(); ffi.Pointer Fisheye_EstimateNewCameraMatrixForUndistortRectify( Mat k, @@ -5277,14 +4644,12 @@ class CvNative { } late final _Fisheye_EstimateNewCameraMatrixForUndistortRectifyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Size, Mat, Mat, ffi.Double, Size, ffi.Double)>>( - 'Fisheye_EstimateNewCameraMatrixForUndistortRectify'); + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Size, Mat, Mat, ffi.Double, Size, + ffi.Double)>>('Fisheye_EstimateNewCameraMatrixForUndistortRectify'); late final _Fisheye_EstimateNewCameraMatrixForUndistortRectify = _Fisheye_EstimateNewCameraMatrixForUndistortRectifyPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Size, Mat, Mat, double, Size, double)>(); + ffi.Pointer Function(Mat, Mat, Size, Mat, Mat, double, Size, double)>(); ffi.Pointer Fisheye_UndistortImage( Mat distorted, @@ -5300,12 +4665,11 @@ class CvNative { ); } - late final _Fisheye_UndistortImagePtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, Mat, Mat)>>( - 'Fisheye_UndistortImage'); - late final _Fisheye_UndistortImage = _Fisheye_UndistortImagePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat)>(); + late final _Fisheye_UndistortImagePtr = + _lookup Function(Mat, Mat, Mat, Mat)>>( + 'Fisheye_UndistortImage'); + late final _Fisheye_UndistortImage = + _Fisheye_UndistortImagePtr.asFunction Function(Mat, Mat, Mat, Mat)>(); ffi.Pointer Fisheye_UndistortImageWithParams( Mat distorted, @@ -5325,13 +4689,11 @@ class CvNative { ); } - late final _Fisheye_UndistortImageWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, - Size)>>('Fisheye_UndistortImageWithParams'); - late final _Fisheye_UndistortImageWithParams = - _Fisheye_UndistortImageWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, Size)>(); + late final _Fisheye_UndistortImageWithParamsPtr = + _lookup Function(Mat, Mat, Mat, Mat, Mat, Size)>>( + 'Fisheye_UndistortImageWithParams'); + late final _Fisheye_UndistortImageWithParams = _Fisheye_UndistortImageWithParamsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, Size)>(); ffi.Pointer Fisheye_UndistortPoints( Mat distorted, @@ -5351,12 +4713,11 @@ class CvNative { ); } - late final _Fisheye_UndistortPointsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, Mat, Mat)>>('Fisheye_UndistortPoints'); - late final _Fisheye_UndistortPoints = _Fisheye_UndistortPointsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, Mat)>(); + late final _Fisheye_UndistortPointsPtr = + _lookup Function(Mat, Mat, Mat, Mat, Mat, Mat)>>( + 'Fisheye_UndistortPoints'); + late final _Fisheye_UndistortPoints = + _Fisheye_UndistortPointsPtr.asFunction Function(Mat, Mat, Mat, Mat, Mat, Mat)>(); ffi.Pointer FitEllipse( VecPoint pts, @@ -5368,12 +4729,11 @@ class CvNative { ); } - late final _FitEllipsePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('FitEllipse'); - late final _FitEllipse = _FitEllipsePtr.asFunction< - ffi.Pointer Function(VecPoint, ffi.Pointer)>(); + late final _FitEllipsePtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'FitEllipse'); + late final _FitEllipse = + _FitEllipsePtr.asFunction Function(VecPoint, ffi.Pointer)>(); ffi.Pointer FitLine( VecPoint pts, @@ -5395,11 +4755,10 @@ class CvNative { late final _FitLinePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecPoint, Mat, ffi.Int, ffi.Double, - ffi.Double, ffi.Double)>>('FitLine'); - late final _FitLine = _FitLinePtr.asFunction< - ffi.Pointer Function( - VecPoint, Mat, int, double, double, double)>(); + ffi.Pointer Function( + VecPoint, Mat, ffi.Int, ffi.Double, ffi.Double, ffi.Double)>>('FitLine'); + late final _FitLine = + _FitLinePtr.asFunction Function(VecPoint, Mat, int, double, double, double)>(); void FlannBasedMatcher_Close( FlannBasedMatcherPtr f, @@ -5410,10 +4769,9 @@ class CvNative { } late final _FlannBasedMatcher_ClosePtr = - _lookup>( - 'FlannBasedMatcher_Close'); - late final _FlannBasedMatcher_Close = _FlannBasedMatcher_ClosePtr.asFunction< - void Function(FlannBasedMatcherPtr)>(); + _lookup>('FlannBasedMatcher_Close'); + late final _FlannBasedMatcher_Close = + _FlannBasedMatcher_ClosePtr.asFunction(); ffi.Pointer FlannBasedMatcher_Create( ffi.Pointer rval, @@ -5423,13 +4781,11 @@ class CvNative { ); } - late final _FlannBasedMatcher_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('FlannBasedMatcher_Create'); - late final _FlannBasedMatcher_Create = - _FlannBasedMatcher_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _FlannBasedMatcher_CreatePtr = + _lookup Function(ffi.Pointer)>>( + 'FlannBasedMatcher_Create'); + late final _FlannBasedMatcher_Create = _FlannBasedMatcher_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer FlannBasedMatcher_KnnMatch( FlannBasedMatcher f, @@ -5451,10 +4807,8 @@ class CvNative { ffi.NativeFunction< ffi.Pointer Function(FlannBasedMatcher, Mat, Mat, ffi.Int, ffi.Pointer)>>('FlannBasedMatcher_KnnMatch'); - late final _FlannBasedMatcher_KnnMatch = - _FlannBasedMatcher_KnnMatchPtr.asFunction< - ffi.Pointer Function( - FlannBasedMatcher, Mat, Mat, int, ffi.Pointer)>(); + late final _FlannBasedMatcher_KnnMatch = _FlannBasedMatcher_KnnMatchPtr.asFunction< + ffi.Pointer Function(FlannBasedMatcher, Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer GArrayGArrayPoint_FromVec( VecVecPoint points, @@ -5467,13 +4821,10 @@ class CvNative { } late final _GArrayGArrayPoint_FromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecVecPoint, - ffi.Pointer)>>('GArrayGArrayPoint_FromVec'); - late final _GArrayGArrayPoint_FromVec = - _GArrayGArrayPoint_FromVecPtr.asFunction< - ffi.Pointer Function( - VecVecPoint, ffi.Pointer)>(); + ffi.NativeFunction Function(VecVecPoint, ffi.Pointer)>>( + 'GArrayGArrayPoint_FromVec'); + late final _GArrayGArrayPoint_FromVec = _GArrayGArrayPoint_FromVecPtr.asFunction< + ffi.Pointer Function(VecVecPoint, ffi.Pointer)>(); ffi.Pointer GArrayPoint2d_FromVec( VecPoint v, @@ -5485,10 +4836,9 @@ class CvNative { ); } - late final _GArrayPoint2d_FromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('GArrayPoint2d_FromVec'); + late final _GArrayPoint2d_FromVecPtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'GArrayPoint2d_FromVec'); late final _GArrayPoint2d_FromVec = _GArrayPoint2d_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -5502,10 +4852,9 @@ class CvNative { ); } - late final _GArrayPoint2f_FromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('GArrayPoint2f_FromVec'); + late final _GArrayPoint2f_FromVecPtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'GArrayPoint2f_FromVec'); late final _GArrayPoint2f_FromVec = _GArrayPoint2f_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -5519,10 +4868,9 @@ class CvNative { ); } - late final _GArrayPoint2i_FromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('GArrayPoint2i_FromVec'); + late final _GArrayPoint2i_FromVecPtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'GArrayPoint2i_FromVec'); late final _GArrayPoint2i_FromVec = _GArrayPoint2i_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -5536,10 +4884,9 @@ class CvNative { ); } - late final _GArrayPoint3d_FromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('GArrayPoint3d_FromVec'); + late final _GArrayPoint3d_FromVecPtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'GArrayPoint3d_FromVec'); late final _GArrayPoint3d_FromVec = _GArrayPoint3d_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -5553,10 +4900,9 @@ class CvNative { ); } - late final _GArrayPoint3f_FromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('GArrayPoint3f_FromVec'); + late final _GArrayPoint3f_FromVecPtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'GArrayPoint3f_FromVec'); late final _GArrayPoint3f_FromVec = _GArrayPoint3f_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -5570,10 +4916,9 @@ class CvNative { ); } - late final _GArrayPoint3i_FromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('GArrayPoint3i_FromVec'); + late final _GArrayPoint3i_FromVecPtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'GArrayPoint3i_FromVec'); late final _GArrayPoint3i_FromVec = _GArrayPoint3i_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -5587,10 +4932,9 @@ class CvNative { ); } - late final _GArrayPoint_FromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('GArrayPoint_FromVec'); + late final _GArrayPoint_FromVecPtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'GArrayPoint_FromVec'); late final _GArrayPoint_FromVec = _GArrayPoint_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -5604,12 +4948,11 @@ class CvNative { ); } - late final _GArrayPrim_FromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPrim, ffi.Pointer)>>('GArrayPrim_FromVec'); - late final _GArrayPrim_FromVec = _GArrayPrim_FromVecPtr.asFunction< - ffi.Pointer Function(VecPrim, ffi.Pointer)>(); + late final _GArrayPrim_FromVecPtr = + _lookup Function(VecPrim, ffi.Pointer)>>( + 'GArrayPrim_FromVec'); + late final _GArrayPrim_FromVec = + _GArrayPrim_FromVecPtr.asFunction Function(VecPrim, ffi.Pointer)>(); ffi.Pointer GArrayVec4i_FromVec( VecVec4i v, @@ -5621,10 +4964,9 @@ class CvNative { ); } - late final _GArrayVec4i_FromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVec4i, ffi.Pointer)>>('GArrayVec4i_FromVec'); + late final _GArrayVec4i_FromVecPtr = + _lookup Function(VecVec4i, ffi.Pointer)>>( + 'GArrayVec4i_FromVec'); late final _GArrayVec4i_FromVec = _GArrayVec4i_FromVecPtr.asFunction< ffi.Pointer Function(VecVec4i, ffi.Pointer)>(); @@ -5637,10 +4979,8 @@ class CvNative { } late final _GFTTDetector_ClosePtr = - _lookup>( - 'GFTTDetector_Close'); - late final _GFTTDetector_Close = - _GFTTDetector_ClosePtr.asFunction(); + _lookup>('GFTTDetector_Close'); + late final _GFTTDetector_Close = _GFTTDetector_ClosePtr.asFunction(); ffi.Pointer GFTTDetector_Create( ffi.Pointer rval, @@ -5650,12 +4990,11 @@ class CvNative { ); } - late final _GFTTDetector_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('GFTTDetector_Create'); - late final _GFTTDetector_Create = _GFTTDetector_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _GFTTDetector_CreatePtr = + _lookup Function(ffi.Pointer)>>( + 'GFTTDetector_Create'); + late final _GFTTDetector_Create = + _GFTTDetector_CreatePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer GFTTDetector_Detect( GFTTDetector a, @@ -5670,12 +5009,10 @@ class CvNative { } late final _GFTTDetector_DetectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(GFTTDetector, Mat, - ffi.Pointer)>>('GFTTDetector_Detect'); + ffi.NativeFunction Function(GFTTDetector, Mat, ffi.Pointer)>>( + 'GFTTDetector_Detect'); late final _GFTTDetector_Detect = _GFTTDetector_DetectPtr.asFunction< - ffi.Pointer Function( - GFTTDetector, Mat, ffi.Pointer)>(); + ffi.Pointer Function(GFTTDetector, Mat, ffi.Pointer)>(); ffi.Pointer GaussianBlur( Mat src, @@ -5697,10 +5034,9 @@ class CvNative { late final _GaussianBlurPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Size, ffi.Double, ffi.Double, - ffi.Int)>>('GaussianBlur'); - late final _GaussianBlur = _GaussianBlurPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Size, double, double, int)>(); + ffi.Pointer Function(Mat, Mat, Size, ffi.Double, ffi.Double, ffi.Int)>>('GaussianBlur'); + late final _GaussianBlur = + _GaussianBlurPtr.asFunction Function(Mat, Mat, Size, double, double, int)>(); ffi.Pointer GaussianBlur_Async( Mat src, @@ -5722,11 +5058,10 @@ class CvNative { late final _GaussianBlur_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Size, ffi.Double, ffi.Double, - ffi.Int, CvCallback_1)>>('GaussianBlur_Async'); + ffi.Pointer Function( + Mat, Size, ffi.Double, ffi.Double, ffi.Int, CvCallback_1)>>('GaussianBlur_Async'); late final _GaussianBlur_Async = _GaussianBlur_AsyncPtr.asFunction< - ffi.Pointer Function( - Mat, Size, double, double, int, CvCallback_1)>(); + ffi.Pointer Function(Mat, Size, double, double, int, CvCallback_1)>(); ffi.Pointer GetAffineTransform( VecPoint src, @@ -5740,10 +5075,9 @@ class CvNative { ); } - late final _GetAffineTransformPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, VecPoint, ffi.Pointer)>>('GetAffineTransform'); + late final _GetAffineTransformPtr = + _lookup Function(VecPoint, VecPoint, ffi.Pointer)>>( + 'GetAffineTransform'); late final _GetAffineTransform = _GetAffineTransformPtr.asFunction< ffi.Pointer Function(VecPoint, VecPoint, ffi.Pointer)>(); @@ -5759,13 +5093,11 @@ class CvNative { ); } - late final _GetAffineTransform2fPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, - ffi.Pointer)>>('GetAffineTransform2f'); + late final _GetAffineTransform2fPtr = + _lookup Function(VecPoint2f, VecPoint2f, ffi.Pointer)>>( + 'GetAffineTransform2f'); late final _GetAffineTransform2f = _GetAffineTransform2fPtr.asFunction< - ffi.Pointer Function( - VecPoint2f, VecPoint2f, ffi.Pointer)>(); + ffi.Pointer Function(VecPoint2f, VecPoint2f, ffi.Pointer)>(); ffi.Pointer GetCVTickCount( ffi.Pointer rval, @@ -5775,12 +5107,10 @@ class CvNative { ); } - late final _GetCVTickCountPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('GetCVTickCount'); - late final _GetCVTickCount = _GetCVTickCountPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _GetCVTickCountPtr = + _lookup Function(ffi.Pointer)>>('GetCVTickCount'); + late final _GetCVTickCount = + _GetCVTickCountPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer GetGaussianKernel( int ksize, @@ -5797,11 +5127,10 @@ class CvNative { } late final _GetGaussianKernelPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Double, ffi.Int, - ffi.Pointer)>>('GetGaussianKernel'); - late final _GetGaussianKernel = _GetGaussianKernelPtr.asFunction< - ffi.Pointer Function(int, double, int, ffi.Pointer)>(); + ffi.NativeFunction Function(ffi.Int, ffi.Double, ffi.Int, ffi.Pointer)>>( + 'GetGaussianKernel'); + late final _GetGaussianKernel = + _GetGaussianKernelPtr.asFunction Function(int, double, int, ffi.Pointer)>(); ffi.Pointer GetNumThreads( ffi.Pointer rval, @@ -5811,12 +5140,10 @@ class CvNative { ); } - late final _GetNumThreadsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('GetNumThreads'); - late final _GetNumThreads = _GetNumThreadsPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _GetNumThreadsPtr = + _lookup Function(ffi.Pointer)>>('GetNumThreads'); + late final _GetNumThreads = + _GetNumThreadsPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer GetOptimalNewCameraMatrixWithParams( Mat cameraMatrix, @@ -5842,19 +5169,11 @@ class CvNative { late final _GetOptimalNewCameraMatrixWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - Mat, - Size, - ffi.Double, - Size, - ffi.Pointer, - ffi.Bool, + ffi.Pointer Function(Mat, Mat, Size, ffi.Double, Size, ffi.Pointer, ffi.Bool, ffi.Pointer)>>('GetOptimalNewCameraMatrixWithParams'); - late final _GetOptimalNewCameraMatrixWithParams = - _GetOptimalNewCameraMatrixWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Size, double, Size, - ffi.Pointer, bool, ffi.Pointer)>(); + late final _GetOptimalNewCameraMatrixWithParams = _GetOptimalNewCameraMatrixWithParamsPtr.asFunction< + ffi.Pointer Function( + Mat, Mat, Size, double, Size, ffi.Pointer, bool, ffi.Pointer)>(); ffi.Pointer GetPerspectiveTransform( VecPoint src, @@ -5871,12 +5190,10 @@ class CvNative { } late final _GetPerspectiveTransformPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecPoint, VecPoint, ffi.Pointer, - ffi.Int)>>('GetPerspectiveTransform'); + ffi.NativeFunction Function(VecPoint, VecPoint, ffi.Pointer, ffi.Int)>>( + 'GetPerspectiveTransform'); late final _GetPerspectiveTransform = _GetPerspectiveTransformPtr.asFunction< - ffi.Pointer Function( - VecPoint, VecPoint, ffi.Pointer, int)>(); + ffi.Pointer Function(VecPoint, VecPoint, ffi.Pointer, int)>(); ffi.Pointer GetPerspectiveTransform2f( VecPoint2f src, @@ -5893,13 +5210,11 @@ class CvNative { } late final _GetPerspectiveTransform2fPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, - ffi.Pointer, ffi.Int)>>('GetPerspectiveTransform2f'); - late final _GetPerspectiveTransform2f = - _GetPerspectiveTransform2fPtr.asFunction< - ffi.Pointer Function( - VecPoint2f, VecPoint2f, ffi.Pointer, int)>(); + ffi + .NativeFunction Function(VecPoint2f, VecPoint2f, ffi.Pointer, ffi.Int)>>( + 'GetPerspectiveTransform2f'); + late final _GetPerspectiveTransform2f = _GetPerspectiveTransform2fPtr.asFunction< + ffi.Pointer Function(VecPoint2f, VecPoint2f, ffi.Pointer, int)>(); ffi.Pointer GetRectSubPix( Mat src, @@ -5915,12 +5230,10 @@ class CvNative { ); } - late final _GetRectSubPixPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Size, Point2f, Mat)>>('GetRectSubPix'); - late final _GetRectSubPix = _GetRectSubPixPtr.asFunction< - ffi.Pointer Function(Mat, Size, Point2f, Mat)>(); + late final _GetRectSubPixPtr = + _lookup Function(Mat, Size, Point2f, Mat)>>('GetRectSubPix'); + late final _GetRectSubPix = + _GetRectSubPixPtr.asFunction Function(Mat, Size, Point2f, Mat)>(); ffi.Pointer GetRotationMatrix2D( Point2f center, @@ -5937,12 +5250,11 @@ class CvNative { } late final _GetRotationMatrix2DPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Point2f, ffi.Double, ffi.Double, - ffi.Pointer)>>('GetRotationMatrix2D'); + ffi + .NativeFunction Function(Point2f, ffi.Double, ffi.Double, ffi.Pointer)>>( + 'GetRotationMatrix2D'); late final _GetRotationMatrix2D = _GetRotationMatrix2DPtr.asFunction< - ffi.Pointer Function( - Point2f, double, double, ffi.Pointer)>(); + ffi.Pointer Function(Point2f, double, double, ffi.Pointer)>(); ffi.Pointer GetStructuringElement( int shape, @@ -5956,12 +5268,11 @@ class CvNative { ); } - late final _GetStructuringElementPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, Size, ffi.Pointer)>>('GetStructuringElement'); - late final _GetStructuringElement = _GetStructuringElementPtr.asFunction< - ffi.Pointer Function(int, Size, ffi.Pointer)>(); + late final _GetStructuringElementPtr = + _lookup Function(ffi.Int, Size, ffi.Pointer)>>( + 'GetStructuringElement'); + late final _GetStructuringElement = + _GetStructuringElementPtr.asFunction Function(int, Size, ffi.Pointer)>(); ffi.Pointer GetTextSizeWithBaseline( ffi.Pointer text, @@ -5983,16 +5294,11 @@ class CvNative { late final _GetTextSizeWithBaselinePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Double, - ffi.Int, - ffi.Pointer, - ffi.Pointer)>>('GetTextSizeWithBaseline'); + ffi.Pointer Function(ffi.Pointer, ffi.Int, ffi.Double, ffi.Int, + ffi.Pointer, ffi.Pointer)>>('GetTextSizeWithBaseline'); late final _GetTextSizeWithBaseline = _GetTextSizeWithBaselinePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, double, int, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, int, double, int, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer GetTickFrequency( ffi.Pointer rval, @@ -6002,12 +5308,11 @@ class CvNative { ); } - late final _GetTickFrequencyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('GetTickFrequency'); - late final _GetTickFrequency = _GetTickFrequencyPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _GetTickFrequencyPtr = + _lookup Function(ffi.Pointer)>>( + 'GetTickFrequency'); + late final _GetTickFrequency = + _GetTickFrequencyPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer GoodFeaturesToTrack( Mat img, @@ -6035,19 +5340,11 @@ class CvNative { late final _GoodFeaturesToTrackPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - ffi.Pointer, - ffi.Int, - ffi.Double, - ffi.Double, - Mat, - ffi.Int, - ffi.Bool, - ffi.Double)>>('GoodFeaturesToTrack'); + ffi.Pointer Function(Mat, ffi.Pointer, ffi.Int, ffi.Double, ffi.Double, Mat, + ffi.Int, ffi.Bool, ffi.Double)>>('GoodFeaturesToTrack'); late final _GoodFeaturesToTrack = _GoodFeaturesToTrackPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer, int, double, - double, Mat, int, bool, double)>(); + ffi.Pointer Function( + Mat, ffi.Pointer, int, double, double, Mat, int, bool, double)>(); ffi.Pointer GoodFeaturesToTrackWithGradient( Mat img, @@ -6077,21 +5374,11 @@ class CvNative { late final _GoodFeaturesToTrackWithGradientPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - ffi.Pointer, - ffi.Int, - ffi.Double, - ffi.Double, - Mat, - ffi.Int, - ffi.Int, - ffi.Bool, - ffi.Double)>>('GoodFeaturesToTrackWithGradient'); - late final _GoodFeaturesToTrackWithGradient = - _GoodFeaturesToTrackWithGradientPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer, int, - double, double, Mat, int, int, bool, double)>(); + ffi.Pointer Function(Mat, ffi.Pointer, ffi.Int, ffi.Double, ffi.Double, Mat, + ffi.Int, ffi.Int, ffi.Bool, ffi.Double)>>('GoodFeaturesToTrackWithGradient'); + late final _GoodFeaturesToTrackWithGradient = _GoodFeaturesToTrackWithGradientPtr.asFunction< + ffi.Pointer Function( + Mat, ffi.Pointer, int, double, double, Mat, int, int, bool, double)>(); ffi.Pointer GrabCut( Mat img, @@ -6113,12 +5400,11 @@ class CvNative { ); } - late final _GrabCutPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Rect, Mat, Mat, ffi.Int, ffi.Int)>>('GrabCut'); - late final _GrabCut = _GrabCutPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Rect, Mat, Mat, int, int)>(); + late final _GrabCutPtr = + _lookup Function(Mat, Mat, Rect, Mat, Mat, ffi.Int, ffi.Int)>>( + 'GrabCut'); + late final _GrabCut = + _GrabCutPtr.asFunction Function(Mat, Mat, Rect, Mat, Mat, int, int)>(); ffi.Pointer GroupRectangles( VecRect rects, @@ -6132,12 +5418,11 @@ class CvNative { ); } - late final _GroupRectanglesPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecRect, ffi.Int, ffi.Double)>>('GroupRectangles'); - late final _GroupRectangles = _GroupRectanglesPtr.asFunction< - ffi.Pointer Function(VecRect, int, double)>(); + late final _GroupRectanglesPtr = + _lookup Function(VecRect, ffi.Int, ffi.Double)>>( + 'GroupRectangles'); + late final _GroupRectangles = + _GroupRectanglesPtr.asFunction Function(VecRect, int, double)>(); ffi.Pointer GroupRectangles_Async( VecRect rects, @@ -6153,10 +5438,9 @@ class CvNative { ); } - late final _GroupRectangles_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecRect, ffi.Int, ffi.Double, - CvCallback_1)>>('GroupRectangles_Async'); + late final _GroupRectangles_AsyncPtr = + _lookup Function(VecRect, ffi.Int, ffi.Double, CvCallback_1)>>( + 'GroupRectangles_Async'); late final _GroupRectangles_Async = _GroupRectangles_AsyncPtr.asFunction< ffi.Pointer Function(VecRect, int, double, CvCallback_1)>(); @@ -6169,10 +5453,8 @@ class CvNative { } late final _HOGDescriptor_ClosePtr = - _lookup>( - 'HOGDescriptor_Close'); - late final _HOGDescriptor_Close = - _HOGDescriptor_ClosePtr.asFunction(); + _lookup>('HOGDescriptor_Close'); + late final _HOGDescriptor_Close = _HOGDescriptor_ClosePtr.asFunction(); ffi.Pointer HOGDescriptor_Compute( HOGDescriptor self, @@ -6194,16 +5476,11 @@ class CvNative { late final _HOGDescriptor_ComputePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - HOGDescriptor, - Mat, - ffi.Pointer, - Size, - Size, + ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, Size, Size, ffi.Pointer)>>('HOGDescriptor_Compute'); late final _HOGDescriptor_Compute = _HOGDescriptor_ComputePtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, - Size, Size, ffi.Pointer)>(); + ffi.Pointer Function( + HOGDescriptor, Mat, ffi.Pointer, Size, Size, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_Compute_Async( HOGDescriptor self, @@ -6222,13 +5499,10 @@ class CvNative { } late final _HOGDescriptor_Compute_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, Mat, Size, Size, - CvCallback_2)>>('HOGDescriptor_Compute_Async'); - late final _HOGDescriptor_Compute_Async = - _HOGDescriptor_Compute_AsyncPtr.asFunction< - ffi.Pointer Function( - HOGDescriptor, Mat, Size, Size, CvCallback_2)>(); + ffi.NativeFunction Function(HOGDescriptor, Mat, Size, Size, CvCallback_2)>>( + 'HOGDescriptor_Compute_Async'); + late final _HOGDescriptor_Compute_Async = _HOGDescriptor_Compute_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, Mat, Size, Size, CvCallback_2)>(); ffi.Pointer HOGDescriptor_Detect( HOGDescriptor self, @@ -6254,18 +5528,11 @@ class CvNative { late final _HOGDescriptor_DetectPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - HOGDescriptor, - Mat, - ffi.Pointer, - ffi.Pointer, - ffi.Double, - Size, - Size, - ffi.Pointer)>>('HOGDescriptor_Detect'); + ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, ffi.Pointer, + ffi.Double, Size, Size, ffi.Pointer)>>('HOGDescriptor_Detect'); late final _HOGDescriptor_Detect = _HOGDescriptor_DetectPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, - ffi.Pointer, double, Size, Size, ffi.Pointer)>(); + ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, ffi.Pointer, + double, Size, Size, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_Detect2( HOGDescriptor self, @@ -6289,17 +5556,11 @@ class CvNative { late final _HOGDescriptor_Detect2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - HOGDescriptor, - Mat, - ffi.Pointer, - ffi.Double, - Size, - Size, + ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, ffi.Double, Size, Size, ffi.Pointer)>>('HOGDescriptor_Detect2'); late final _HOGDescriptor_Detect2 = _HOGDescriptor_Detect2Ptr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, - double, Size, Size, ffi.Pointer)>(); + ffi.Pointer Function( + HOGDescriptor, Mat, ffi.Pointer, double, Size, Size, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_Detect2_Async( HOGDescriptor self, @@ -6321,12 +5582,10 @@ class CvNative { late final _HOGDescriptor_Detect2_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, Mat, ffi.Double, Size, - Size, CvCallback_2)>>('HOGDescriptor_Detect2_Async'); - late final _HOGDescriptor_Detect2_Async = - _HOGDescriptor_Detect2_AsyncPtr.asFunction< ffi.Pointer Function( - HOGDescriptor, Mat, double, Size, Size, CvCallback_2)>(); + HOGDescriptor, Mat, ffi.Double, Size, Size, CvCallback_2)>>('HOGDescriptor_Detect2_Async'); + late final _HOGDescriptor_Detect2_Async = _HOGDescriptor_Detect2_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, Mat, double, Size, Size, CvCallback_2)>(); ffi.Pointer HOGDescriptor_DetectMultiScale( HOGDescriptor self, @@ -6340,14 +5599,11 @@ class CvNative { ); } - late final _HOGDescriptor_DetectMultiScalePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, Mat, - ffi.Pointer)>>('HOGDescriptor_DetectMultiScale'); - late final _HOGDescriptor_DetectMultiScale = - _HOGDescriptor_DetectMultiScalePtr.asFunction< - ffi.Pointer Function( - HOGDescriptor, Mat, ffi.Pointer)>(); + late final _HOGDescriptor_DetectMultiScalePtr = + _lookup Function(HOGDescriptor, Mat, ffi.Pointer)>>( + 'HOGDescriptor_DetectMultiScale'); + late final _HOGDescriptor_DetectMultiScale = _HOGDescriptor_DetectMultiScalePtr.asFunction< + ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_DetectMultiScaleWithParams( HOGDescriptor self, @@ -6374,22 +5630,13 @@ class CvNative { } late final _HOGDescriptor_DetectMultiScaleWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - HOGDescriptor, - Mat, - ffi.Double, - Size, - Size, - ffi.Double, - ffi.Double, - ffi.Bool, - ffi.Pointer)>>( - 'HOGDescriptor_DetectMultiScaleWithParams'); + ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, Mat, ffi.Double, Size, Size, ffi.Double, ffi.Double, + ffi.Bool, ffi.Pointer)>>('HOGDescriptor_DetectMultiScaleWithParams'); late final _HOGDescriptor_DetectMultiScaleWithParams = _HOGDescriptor_DetectMultiScaleWithParamsPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, double, Size, Size, - double, double, bool, ffi.Pointer)>(); + ffi.Pointer Function( + HOGDescriptor, Mat, double, Size, Size, double, double, bool, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_DetectMultiScaleWithParams_Async( HOGDescriptor self, @@ -6417,20 +5664,12 @@ class CvNative { late final _HOGDescriptor_DetectMultiScaleWithParams_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - HOGDescriptor, - Mat, - ffi.Double, - Size, - Size, - ffi.Double, - ffi.Double, - ffi.Bool, - CvCallback_1)>>('HOGDescriptor_DetectMultiScaleWithParams_Async'); + ffi.Pointer Function(HOGDescriptor, Mat, ffi.Double, Size, Size, ffi.Double, ffi.Double, + ffi.Bool, CvCallback_1)>>('HOGDescriptor_DetectMultiScaleWithParams_Async'); late final _HOGDescriptor_DetectMultiScaleWithParams_Async = _HOGDescriptor_DetectMultiScaleWithParams_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, double, Size, Size, - double, double, bool, CvCallback_1)>(); + ffi.Pointer Function( + HOGDescriptor, Mat, double, Size, Size, double, double, bool, CvCallback_1)>(); ffi.Pointer HOGDescriptor_DetectMultiScale_Async( HOGDescriptor self, @@ -6444,13 +5683,11 @@ class CvNative { ); } - late final _HOGDescriptor_DetectMultiScale_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, Mat, - CvCallback_1)>>('HOGDescriptor_DetectMultiScale_Async'); - late final _HOGDescriptor_DetectMultiScale_Async = - _HOGDescriptor_DetectMultiScale_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, CvCallback_1)>(); + late final _HOGDescriptor_DetectMultiScale_AsyncPtr = + _lookup Function(HOGDescriptor, Mat, CvCallback_1)>>( + 'HOGDescriptor_DetectMultiScale_Async'); + late final _HOGDescriptor_DetectMultiScale_Async = _HOGDescriptor_DetectMultiScale_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, Mat, CvCallback_1)>(); ffi.Pointer HOGDescriptor_Detect_Async( HOGDescriptor self, @@ -6472,12 +5709,10 @@ class CvNative { late final _HOGDescriptor_Detect_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, Mat, ffi.Double, Size, - Size, CvCallback_3)>>('HOGDescriptor_Detect_Async'); - late final _HOGDescriptor_Detect_Async = - _HOGDescriptor_Detect_AsyncPtr.asFunction< ffi.Pointer Function( - HOGDescriptor, Mat, double, Size, Size, CvCallback_3)>(); + HOGDescriptor, Mat, ffi.Double, Size, Size, CvCallback_3)>>('HOGDescriptor_Detect_Async'); + late final _HOGDescriptor_Detect_Async = _HOGDescriptor_Detect_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, Mat, double, Size, Size, CvCallback_3)>(); ffi.Pointer HOGDescriptor_Load( HOGDescriptor self, @@ -6493,11 +5728,10 @@ class CvNative { late final _HOGDescriptor_LoadPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, ffi.Pointer, - ffi.Pointer)>>('HOGDescriptor_Load'); + ffi.Pointer Function( + HOGDescriptor, ffi.Pointer, ffi.Pointer)>>('HOGDescriptor_Load'); late final _HOGDescriptor_Load = _HOGDescriptor_LoadPtr.asFunction< - ffi.Pointer Function( - HOGDescriptor, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(HOGDescriptor, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_Load_Async( HOGDescriptor self, @@ -6513,12 +5747,10 @@ class CvNative { late final _HOGDescriptor_Load_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, ffi.Pointer, - CvCallback_1)>>('HOGDescriptor_Load_Async'); - late final _HOGDescriptor_Load_Async = - _HOGDescriptor_Load_AsyncPtr.asFunction< ffi.Pointer Function( - HOGDescriptor, ffi.Pointer, CvCallback_1)>(); + HOGDescriptor, ffi.Pointer, CvCallback_1)>>('HOGDescriptor_Load_Async'); + late final _HOGDescriptor_Load_Async = _HOGDescriptor_Load_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, ffi.Pointer, CvCallback_1)>(); ffi.Pointer HOGDescriptor_New( ffi.Pointer rval, @@ -6528,12 +5760,11 @@ class CvNative { ); } - late final _HOGDescriptor_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('HOGDescriptor_New'); - late final _HOGDescriptor_New = _HOGDescriptor_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _HOGDescriptor_NewPtr = + _lookup Function(ffi.Pointer)>>( + 'HOGDescriptor_New'); + late final _HOGDescriptor_New = + _HOGDescriptor_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer HOGDescriptor_NewFromFile( ffi.Pointer filename, @@ -6546,13 +5777,11 @@ class CvNative { } late final _HOGDescriptor_NewFromFilePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer)>>('HOGDescriptor_NewFromFile'); - late final _HOGDescriptor_NewFromFile = - _HOGDescriptor_NewFromFilePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi + .NativeFunction Function(ffi.Pointer, ffi.Pointer)>>( + 'HOGDescriptor_NewFromFile'); + late final _HOGDescriptor_NewFromFile = _HOGDescriptor_NewFromFilePtr.asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_NewFromFile_Async( ffi.Pointer filename, @@ -6564,14 +5793,11 @@ class CvNative { ); } - late final _HOGDescriptor_NewFromFile_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - CvCallback_1)>>('HOGDescriptor_NewFromFile_Async'); - late final _HOGDescriptor_NewFromFile_Async = - _HOGDescriptor_NewFromFile_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, CvCallback_1)>(); + late final _HOGDescriptor_NewFromFile_AsyncPtr = + _lookup Function(ffi.Pointer, CvCallback_1)>>( + 'HOGDescriptor_NewFromFile_Async'); + late final _HOGDescriptor_NewFromFile_Async = _HOGDescriptor_NewFromFile_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, CvCallback_1)>(); ffi.Pointer HOGDescriptor_New_Async( CvCallback_1 callback, @@ -6582,10 +5808,9 @@ class CvNative { } late final _HOGDescriptor_New_AsyncPtr = - _lookup Function(CvCallback_1)>>( - 'HOGDescriptor_New_Async'); - late final _HOGDescriptor_New_Async = _HOGDescriptor_New_AsyncPtr.asFunction< - ffi.Pointer Function(CvCallback_1)>(); + _lookup Function(CvCallback_1)>>('HOGDescriptor_New_Async'); + late final _HOGDescriptor_New_Async = + _HOGDescriptor_New_AsyncPtr.asFunction Function(CvCallback_1)>(); ffi.Pointer HOGDescriptor_SetSVMDetector( HOGDescriptor self, @@ -6597,12 +5822,11 @@ class CvNative { ); } - late final _HOGDescriptor_SetSVMDetectorPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - HOGDescriptor, VecFloat)>>('HOGDescriptor_SetSVMDetector'); - late final _HOGDescriptor_SetSVMDetector = _HOGDescriptor_SetSVMDetectorPtr - .asFunction Function(HOGDescriptor, VecFloat)>(); + late final _HOGDescriptor_SetSVMDetectorPtr = + _lookup Function(HOGDescriptor, VecFloat)>>( + 'HOGDescriptor_SetSVMDetector'); + late final _HOGDescriptor_SetSVMDetector = + _HOGDescriptor_SetSVMDetectorPtr.asFunction Function(HOGDescriptor, VecFloat)>(); ffi.Pointer HOGDescriptor_SetSVMDetector_Async( HOGDescriptor self, @@ -6616,14 +5840,11 @@ class CvNative { ); } - late final _HOGDescriptor_SetSVMDetector_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, VecFloat, - CvCallback_1)>>('HOGDescriptor_SetSVMDetector_Async'); - late final _HOGDescriptor_SetSVMDetector_Async = - _HOGDescriptor_SetSVMDetector_AsyncPtr.asFunction< - ffi.Pointer Function( - HOGDescriptor, VecFloat, CvCallback_1)>(); + late final _HOGDescriptor_SetSVMDetector_AsyncPtr = + _lookup Function(HOGDescriptor, VecFloat, CvCallback_1)>>( + 'HOGDescriptor_SetSVMDetector_Async'); + late final _HOGDescriptor_SetSVMDetector_Async = _HOGDescriptor_SetSVMDetector_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, VecFloat, CvCallback_1)>(); ffi.Pointer HOGDescriptor_computeGradient( HOGDescriptor self, @@ -6643,14 +5864,11 @@ class CvNative { ); } - late final _HOGDescriptor_computeGradientPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, Mat, Mat, Mat, Size, - Size)>>('HOGDescriptor_computeGradient'); - late final _HOGDescriptor_computeGradient = - _HOGDescriptor_computeGradientPtr.asFunction< - ffi.Pointer Function( - HOGDescriptor, Mat, Mat, Mat, Size, Size)>(); + late final _HOGDescriptor_computeGradientPtr = + _lookup Function(HOGDescriptor, Mat, Mat, Mat, Size, Size)>>( + 'HOGDescriptor_computeGradient'); + late final _HOGDescriptor_computeGradient = _HOGDescriptor_computeGradientPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, Mat, Mat, Mat, Size, Size)>(); ffi.Pointer HOGDescriptor_computeGradient_Async( HOGDescriptor self, @@ -6674,12 +5892,10 @@ class CvNative { late final _HOGDescriptor_computeGradient_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, Mat, Mat, Mat, Size, - Size, CvCallback_0)>>('HOGDescriptor_computeGradient_Async'); - late final _HOGDescriptor_computeGradient_Async = - _HOGDescriptor_computeGradient_AsyncPtr.asFunction< - ffi.Pointer Function( - HOGDescriptor, Mat, Mat, Mat, Size, Size, CvCallback_0)>(); + ffi.Pointer Function(HOGDescriptor, Mat, Mat, Mat, Size, Size, + CvCallback_0)>>('HOGDescriptor_computeGradient_Async'); + late final _HOGDescriptor_computeGradient_Async = _HOGDescriptor_computeGradient_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, Mat, Mat, Mat, Size, Size, CvCallback_0)>(); ffi.Pointer HOGDescriptor_getDaimlerPeopleDetector( ffi.Pointer rval, @@ -6689,13 +5905,11 @@ class CvNative { ); } - late final _HOGDescriptor_getDaimlerPeopleDetectorPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>( - 'HOGDescriptor_getDaimlerPeopleDetector'); - late final _HOGDescriptor_getDaimlerPeopleDetector = - _HOGDescriptor_getDaimlerPeopleDetectorPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _HOGDescriptor_getDaimlerPeopleDetectorPtr = + _lookup Function(ffi.Pointer)>>( + 'HOGDescriptor_getDaimlerPeopleDetector'); + late final _HOGDescriptor_getDaimlerPeopleDetector = _HOGDescriptor_getDaimlerPeopleDetectorPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer HOGDescriptor_getDaimlerPeopleDetector_Async( CvCallback_1 callback, @@ -6708,9 +5922,8 @@ class CvNative { late final _HOGDescriptor_getDaimlerPeopleDetector_AsyncPtr = _lookup Function(CvCallback_1)>>( 'HOGDescriptor_getDaimlerPeopleDetector_Async'); - late final _HOGDescriptor_getDaimlerPeopleDetector_Async = - _HOGDescriptor_getDaimlerPeopleDetector_AsyncPtr.asFunction< - ffi.Pointer Function(CvCallback_1)>(); + late final _HOGDescriptor_getDaimlerPeopleDetector_Async = _HOGDescriptor_getDaimlerPeopleDetector_AsyncPtr + .asFunction Function(CvCallback_1)>(); ffi.Pointer HOGDescriptor_getDescriptorSize( HOGDescriptor self, @@ -6722,14 +5935,11 @@ class CvNative { ); } - late final _HOGDescriptor_getDescriptorSizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, - ffi.Pointer)>>('HOGDescriptor_getDescriptorSize'); - late final _HOGDescriptor_getDescriptorSize = - _HOGDescriptor_getDescriptorSizePtr.asFunction< - ffi.Pointer Function( - HOGDescriptor, ffi.Pointer)>(); + late final _HOGDescriptor_getDescriptorSizePtr = + _lookup Function(HOGDescriptor, ffi.Pointer)>>( + 'HOGDescriptor_getDescriptorSize'); + late final _HOGDescriptor_getDescriptorSize = _HOGDescriptor_getDescriptorSizePtr.asFunction< + ffi.Pointer Function(HOGDescriptor, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_getDescriptorSize_Async( HOGDescriptor self, @@ -6741,13 +5951,11 @@ class CvNative { ); } - late final _HOGDescriptor_getDescriptorSize_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, - CvCallback_1)>>('HOGDescriptor_getDescriptorSize_Async'); - late final _HOGDescriptor_getDescriptorSize_Async = - _HOGDescriptor_getDescriptorSize_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, CvCallback_1)>(); + late final _HOGDescriptor_getDescriptorSize_AsyncPtr = + _lookup Function(HOGDescriptor, CvCallback_1)>>( + 'HOGDescriptor_getDescriptorSize_Async'); + late final _HOGDescriptor_getDescriptorSize_Async = _HOGDescriptor_getDescriptorSize_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, CvCallback_1)>(); ffi.Pointer HOGDescriptor_getWinSigma( HOGDescriptor self, @@ -6759,14 +5967,11 @@ class CvNative { ); } - late final _HOGDescriptor_getWinSigmaPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, - ffi.Pointer)>>('HOGDescriptor_getWinSigma'); - late final _HOGDescriptor_getWinSigma = - _HOGDescriptor_getWinSigmaPtr.asFunction< - ffi.Pointer Function( - HOGDescriptor, ffi.Pointer)>(); + late final _HOGDescriptor_getWinSigmaPtr = + _lookup Function(HOGDescriptor, ffi.Pointer)>>( + 'HOGDescriptor_getWinSigma'); + late final _HOGDescriptor_getWinSigma = _HOGDescriptor_getWinSigmaPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_getWinSigma_Async( HOGDescriptor self, @@ -6778,13 +5983,11 @@ class CvNative { ); } - late final _HOGDescriptor_getWinSigma_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - HOGDescriptor, CvCallback_1)>>('HOGDescriptor_getWinSigma_Async'); - late final _HOGDescriptor_getWinSigma_Async = - _HOGDescriptor_getWinSigma_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, CvCallback_1)>(); + late final _HOGDescriptor_getWinSigma_AsyncPtr = + _lookup Function(HOGDescriptor, CvCallback_1)>>( + 'HOGDescriptor_getWinSigma_Async'); + late final _HOGDescriptor_getWinSigma_Async = _HOGDescriptor_getWinSigma_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, CvCallback_1)>(); ffi.Pointer HOGDescriptor_groupRectangles( HOGDescriptor self, @@ -6804,12 +6007,10 @@ class CvNative { late final _HOGDescriptor_groupRectanglesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, VecRect, VecDouble, - ffi.Int, ffi.Double)>>('HOGDescriptor_groupRectangles'); - late final _HOGDescriptor_groupRectangles = - _HOGDescriptor_groupRectanglesPtr.asFunction< ffi.Pointer Function( - HOGDescriptor, VecRect, VecDouble, int, double)>(); + HOGDescriptor, VecRect, VecDouble, ffi.Int, ffi.Double)>>('HOGDescriptor_groupRectangles'); + late final _HOGDescriptor_groupRectangles = _HOGDescriptor_groupRectanglesPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, VecRect, VecDouble, int, double)>(); ffi.Pointer HOGDescriptor_groupRectangles_Async( HOGDescriptor self, @@ -6831,17 +6032,10 @@ class CvNative { late final _HOGDescriptor_groupRectangles_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - HOGDescriptor, - VecRect, - VecDouble, - ffi.Int, - ffi.Double, + ffi.Pointer Function(HOGDescriptor, VecRect, VecDouble, ffi.Int, ffi.Double, CvCallback_1)>>('HOGDescriptor_groupRectangles_Async'); - late final _HOGDescriptor_groupRectangles_Async = - _HOGDescriptor_groupRectangles_AsyncPtr.asFunction< - ffi.Pointer Function( - HOGDescriptor, VecRect, VecDouble, int, double, CvCallback_1)>(); + late final _HOGDescriptor_groupRectangles_Async = _HOGDescriptor_groupRectangles_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, VecRect, VecDouble, int, double, CvCallback_1)>(); ffi.Pointer HOG_GetDefaultPeopleDetector( ffi.Pointer rval, @@ -6851,12 +6045,11 @@ class CvNative { ); } - late final _HOG_GetDefaultPeopleDetectorPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('HOG_GetDefaultPeopleDetector'); - late final _HOG_GetDefaultPeopleDetector = _HOG_GetDefaultPeopleDetectorPtr - .asFunction Function(ffi.Pointer)>(); + late final _HOG_GetDefaultPeopleDetectorPtr = + _lookup Function(ffi.Pointer)>>( + 'HOG_GetDefaultPeopleDetector'); + late final _HOG_GetDefaultPeopleDetector = + _HOG_GetDefaultPeopleDetectorPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer HOG_GetDefaultPeopleDetector_Async( CvCallback_1 callback, @@ -6870,8 +6063,7 @@ class CvNative { _lookup Function(CvCallback_1)>>( 'HOG_GetDefaultPeopleDetector_Async'); late final _HOG_GetDefaultPeopleDetector_Async = - _HOG_GetDefaultPeopleDetector_AsyncPtr.asFunction< - ffi.Pointer Function(CvCallback_1)>(); + _HOG_GetDefaultPeopleDetector_AsyncPtr.asFunction Function(CvCallback_1)>(); ffi.Pointer HoughCircles( Mat src, @@ -6889,12 +6081,11 @@ class CvNative { ); } - late final _HoughCirclesPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Double, ffi.Double)>>('HoughCircles'); - late final _HoughCircles = _HoughCirclesPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, double, double)>(); + late final _HoughCirclesPtr = + _lookup Function(Mat, Mat, ffi.Int, ffi.Double, ffi.Double)>>( + 'HoughCircles'); + late final _HoughCircles = + _HoughCirclesPtr.asFunction Function(Mat, Mat, int, double, double)>(); ffi.Pointer HoughCirclesWithParams( Mat src, @@ -6922,19 +6113,10 @@ class CvNative { late final _HoughCirclesWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - Mat, - ffi.Int, - ffi.Double, - ffi.Double, - ffi.Double, - ffi.Double, - ffi.Int, - ffi.Int)>>('HoughCirclesWithParams'); + ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Double, ffi.Double, ffi.Double, ffi.Double, + ffi.Int, ffi.Int)>>('HoughCirclesWithParams'); late final _HoughCirclesWithParams = _HoughCirclesWithParamsPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, int, double, double, double, double, int, int)>(); + ffi.Pointer Function(Mat, Mat, int, double, double, double, double, int, int)>(); ffi.Pointer HoughLines( Mat src, @@ -6962,19 +6144,10 @@ class CvNative { late final _HoughLinesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - Mat, - ffi.Double, - ffi.Double, - ffi.Int, - ffi.Double, - ffi.Double, - ffi.Double, - ffi.Double)>>('HoughLines'); + ffi.Pointer Function(Mat, Mat, ffi.Double, ffi.Double, ffi.Int, ffi.Double, ffi.Double, + ffi.Double, ffi.Double)>>('HoughLines'); late final _HoughLines = _HoughLinesPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, double, double, int, double, double, double, double)>(); + ffi.Pointer Function(Mat, Mat, double, double, int, double, double, double, double)>(); ffi.Pointer HoughLinesP( Mat src, @@ -6992,12 +6165,11 @@ class CvNative { ); } - late final _HoughLinesPPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Double, ffi.Double, ffi.Int)>>('HoughLinesP'); - late final _HoughLinesP = _HoughLinesPPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, double, int)>(); + late final _HoughLinesPPtr = + _lookup Function(Mat, Mat, ffi.Double, ffi.Double, ffi.Int)>>( + 'HoughLinesP'); + late final _HoughLinesP = + _HoughLinesPPtr.asFunction Function(Mat, Mat, double, double, int)>(); ffi.Pointer HoughLinesPWithParams( Mat src, @@ -7021,11 +6193,10 @@ class CvNative { late final _HoughLinesPWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Double, ffi.Double, - ffi.Int, ffi.Double, ffi.Double)>>('HoughLinesPWithParams'); + ffi.Pointer Function( + Mat, Mat, ffi.Double, ffi.Double, ffi.Int, ffi.Double, ffi.Double)>>('HoughLinesPWithParams'); late final _HoughLinesPWithParams = _HoughLinesPWithParamsPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, double, double, int, double, double)>(); + ffi.Pointer Function(Mat, Mat, double, double, int, double, double)>(); ffi.Pointer HoughLinesPointSet( Mat points, @@ -7054,21 +6225,11 @@ class CvNative { } late final _HoughLinesPointSetPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, - Mat, - ffi.Int, - ffi.Int, - ffi.Double, - ffi.Double, - ffi.Double, - ffi.Double, - ffi.Double, - ffi.Double)>>('HoughLinesPointSet'); + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Double, ffi.Double, ffi.Double, + ffi.Double, ffi.Double, ffi.Double)>>('HoughLinesPointSet'); late final _HoughLinesPointSet = _HoughLinesPointSetPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, int, double, double, double, - double, double, double)>(); + ffi.Pointer Function(Mat, Mat, int, int, double, double, double, double, double, double)>(); ffi.Pointer IlluminationChange( Mat src, @@ -7086,12 +6247,11 @@ class CvNative { ); } - late final _IlluminationChangePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Float, ffi.Float)>>('IlluminationChange'); - late final _IlluminationChange = _IlluminationChangePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, double, double)>(); + late final _IlluminationChangePtr = + _lookup Function(Mat, Mat, Mat, ffi.Float, ffi.Float)>>( + 'IlluminationChange'); + late final _IlluminationChange = + _IlluminationChangePtr.asFunction Function(Mat, Mat, Mat, double, double)>(); ffi.Pointer Image_IMDecode( VecUChar buf, @@ -7105,12 +6265,11 @@ class CvNative { ); } - late final _Image_IMDecodePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecUChar, ffi.Int, ffi.Pointer)>>('Image_IMDecode'); - late final _Image_IMDecode = _Image_IMDecodePtr.asFunction< - ffi.Pointer Function(VecUChar, int, ffi.Pointer)>(); + late final _Image_IMDecodePtr = + _lookup Function(VecUChar, ffi.Int, ffi.Pointer)>>( + 'Image_IMDecode'); + late final _Image_IMDecode = + _Image_IMDecodePtr.asFunction Function(VecUChar, int, ffi.Pointer)>(); ffi.Pointer Image_IMDecode_Async( VecUChar buf, @@ -7124,12 +6283,11 @@ class CvNative { ); } - late final _Image_IMDecode_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecUChar, ffi.Int, CvCallback_1)>>('Image_IMDecode_Async'); - late final _Image_IMDecode_Async = _Image_IMDecode_AsyncPtr.asFunction< - ffi.Pointer Function(VecUChar, int, CvCallback_1)>(); + late final _Image_IMDecode_AsyncPtr = + _lookup Function(VecUChar, ffi.Int, CvCallback_1)>>( + 'Image_IMDecode_Async'); + late final _Image_IMDecode_Async = + _Image_IMDecode_AsyncPtr.asFunction Function(VecUChar, int, CvCallback_1)>(); ffi.Pointer Image_IMEncode( ffi.Pointer fileExt, @@ -7147,11 +6305,11 @@ class CvNative { late final _Image_IMEncodePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, Mat, - ffi.Pointer, ffi.Pointer)>>('Image_IMEncode'); + ffi.Pointer Function( + ffi.Pointer, Mat, ffi.Pointer, ffi.Pointer)>>('Image_IMEncode'); late final _Image_IMEncode = _Image_IMEncodePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, Mat, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, Mat, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Image_IMEncode_Async( ffi.Pointer fileExt, @@ -7165,13 +6323,11 @@ class CvNative { ); } - late final _Image_IMEncode_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, Mat, - CvCallback_2)>>('Image_IMEncode_Async'); + late final _Image_IMEncode_AsyncPtr = + _lookup Function(ffi.Pointer, Mat, CvCallback_2)>>( + 'Image_IMEncode_Async'); late final _Image_IMEncode_Async = _Image_IMEncode_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, Mat, CvCallback_2)>(); + ffi.Pointer Function(ffi.Pointer, Mat, CvCallback_2)>(); ffi.Pointer Image_IMEncode_WithParams( ffi.Pointer fileExt, @@ -7191,16 +6347,11 @@ class CvNative { late final _Image_IMEncode_WithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - Mat, - VecInt, - ffi.Pointer, + ffi.Pointer Function(ffi.Pointer, Mat, VecInt, ffi.Pointer, ffi.Pointer)>>('Image_IMEncode_WithParams'); - late final _Image_IMEncode_WithParams = - _Image_IMEncode_WithParamsPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, Mat, VecInt, - ffi.Pointer, ffi.Pointer)>(); + late final _Image_IMEncode_WithParams = _Image_IMEncode_WithParamsPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, Mat, VecInt, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Image_IMEncode_WithParams_Async( ffi.Pointer fileExt, @@ -7217,13 +6368,11 @@ class CvNative { } late final _Image_IMEncode_WithParams_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, Mat, VecInt, - CvCallback_2)>>('Image_IMEncode_WithParams_Async'); - late final _Image_IMEncode_WithParams_Async = - _Image_IMEncode_WithParams_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, Mat, VecInt, CvCallback_2)>(); + ffi + .NativeFunction Function(ffi.Pointer, Mat, VecInt, CvCallback_2)>>( + 'Image_IMEncode_WithParams_Async'); + late final _Image_IMEncode_WithParams_Async = _Image_IMEncode_WithParams_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, Mat, VecInt, CvCallback_2)>(); ffi.Pointer Image_IMRead( ffi.Pointer filename, @@ -7239,11 +6388,9 @@ class CvNative { late final _Image_IMReadPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('Image_IMRead'); + ffi.Pointer Function(ffi.Pointer, ffi.Int, ffi.Pointer)>>('Image_IMRead'); late final _Image_IMRead = _Image_IMReadPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer Image_IMRead_Async( ffi.Pointer filename, @@ -7258,12 +6405,10 @@ class CvNative { } late final _Image_IMRead_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - CvCallback_1)>>('Image_IMRead_Async'); + ffi.NativeFunction Function(ffi.Pointer, ffi.Int, CvCallback_1)>>( + 'Image_IMRead_Async'); late final _Image_IMRead_Async = _Image_IMRead_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, CvCallback_1)>(); + ffi.Pointer Function(ffi.Pointer, int, CvCallback_1)>(); ffi.Pointer Image_IMWrite( ffi.Pointer filename, @@ -7278,12 +6423,11 @@ class CvNative { } late final _Image_IMWritePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, Mat, - ffi.Pointer)>>('Image_IMWrite'); + ffi + .NativeFunction Function(ffi.Pointer, Mat, ffi.Pointer)>>( + 'Image_IMWrite'); late final _Image_IMWrite = _Image_IMWritePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, Mat, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, Mat, ffi.Pointer)>(); ffi.Pointer Image_IMWrite_Async( ffi.Pointer filename, @@ -7297,13 +6441,11 @@ class CvNative { ); } - late final _Image_IMWrite_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, Mat, - CvCallback_1)>>('Image_IMWrite_Async'); + late final _Image_IMWrite_AsyncPtr = + _lookup Function(ffi.Pointer, Mat, CvCallback_1)>>( + 'Image_IMWrite_Async'); late final _Image_IMWrite_Async = _Image_IMWrite_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, Mat, CvCallback_1)>(); + ffi.Pointer Function(ffi.Pointer, Mat, CvCallback_1)>(); ffi.Pointer Image_IMWrite_WithParams( ffi.Pointer filename, @@ -7321,12 +6463,10 @@ class CvNative { late final _Image_IMWrite_WithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, Mat, VecInt, - ffi.Pointer)>>('Image_IMWrite_WithParams'); - late final _Image_IMWrite_WithParams = - _Image_IMWrite_WithParamsPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, Mat, VecInt, ffi.Pointer)>(); + ffi.Pointer, Mat, VecInt, ffi.Pointer)>>('Image_IMWrite_WithParams'); + late final _Image_IMWrite_WithParams = _Image_IMWrite_WithParamsPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, Mat, VecInt, ffi.Pointer)>(); ffi.Pointer Image_IMWrite_WithParams_Async( ffi.Pointer filename, @@ -7343,13 +6483,11 @@ class CvNative { } late final _Image_IMWrite_WithParams_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, Mat, VecInt, - CvCallback_1)>>('Image_IMWrite_WithParams_Async'); - late final _Image_IMWrite_WithParams_Async = - _Image_IMWrite_WithParams_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, Mat, VecInt, CvCallback_1)>(); + ffi + .NativeFunction Function(ffi.Pointer, Mat, VecInt, CvCallback_1)>>( + 'Image_IMWrite_WithParams_Async'); + late final _Image_IMWrite_WithParams_Async = _Image_IMWrite_WithParams_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, Mat, VecInt, CvCallback_1)>(); ffi.Pointer InitUndistortRectifyMap( Mat cameraMatrix, @@ -7374,12 +6512,10 @@ class CvNative { } late final _InitUndistortRectifyMapPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, Size, ffi.Int, Mat, - Mat)>>('InitUndistortRectifyMap'); + ffi.NativeFunction Function(Mat, Mat, Mat, Mat, Size, ffi.Int, Mat, Mat)>>( + 'InitUndistortRectifyMap'); late final _InitUndistortRectifyMap = _InitUndistortRectifyMapPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, Size, int, Mat, Mat)>(); + ffi.Pointer Function(Mat, Mat, Mat, Mat, Size, int, Mat, Mat)>(); ffi.Pointer Integral( Mat src, @@ -7399,12 +6535,11 @@ class CvNative { ); } - late final _IntegralPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, ffi.Int, ffi.Int)>>('Integral'); - late final _Integral = _IntegralPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, int, int)>(); + late final _IntegralPtr = + _lookup Function(Mat, Mat, Mat, Mat, ffi.Int, ffi.Int)>>( + 'Integral'); + late final _Integral = + _IntegralPtr.asFunction Function(Mat, Mat, Mat, Mat, int, int)>(); ffi.Pointer InvertAffineTransform( Mat src, @@ -7417,10 +6552,9 @@ class CvNative { } late final _InvertAffineTransformPtr = - _lookup Function(Mat, Mat)>>( - 'InvertAffineTransform'); - late final _InvertAffineTransform = _InvertAffineTransformPtr.asFunction< - ffi.Pointer Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('InvertAffineTransform'); + late final _InvertAffineTransform = + _InvertAffineTransformPtr.asFunction Function(Mat, Mat)>(); void KAZE_Close( KAZEPtr a, @@ -7430,8 +6564,7 @@ class CvNative { ); } - late final _KAZE_ClosePtr = - _lookup>('KAZE_Close'); + late final _KAZE_ClosePtr = _lookup>('KAZE_Close'); late final _KAZE_Close = _KAZE_ClosePtr.asFunction(); ffi.Pointer KAZE_Create( @@ -7442,11 +6575,9 @@ class CvNative { ); } - late final _KAZE_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('KAZE_Create'); - late final _KAZE_Create = _KAZE_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _KAZE_CreatePtr = + _lookup Function(ffi.Pointer)>>('KAZE_Create'); + late final _KAZE_Create = _KAZE_CreatePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer KAZE_Detect( KAZE a, @@ -7460,12 +6591,11 @@ class CvNative { ); } - late final _KAZE_DetectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KAZE, Mat, ffi.Pointer)>>('KAZE_Detect'); - late final _KAZE_Detect = _KAZE_DetectPtr.asFunction< - ffi.Pointer Function(KAZE, Mat, ffi.Pointer)>(); + late final _KAZE_DetectPtr = + _lookup Function(KAZE, Mat, ffi.Pointer)>>( + 'KAZE_Detect'); + late final _KAZE_Detect = + _KAZE_DetectPtr.asFunction Function(KAZE, Mat, ffi.Pointer)>(); ffi.Pointer KAZE_DetectAndCompute( KAZE a, @@ -7484,12 +6614,10 @@ class CvNative { } late final _KAZE_DetectAndComputePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(KAZE, Mat, Mat, Mat, - ffi.Pointer)>>('KAZE_DetectAndCompute'); + ffi.NativeFunction Function(KAZE, Mat, Mat, Mat, ffi.Pointer)>>( + 'KAZE_DetectAndCompute'); late final _KAZE_DetectAndCompute = _KAZE_DetectAndComputePtr.asFunction< - ffi.Pointer Function( - KAZE, Mat, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function(KAZE, Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer KMeans( Mat data, @@ -7515,11 +6643,10 @@ class CvNative { late final _KMeansPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, Mat, TermCriteria, - ffi.Int, ffi.Int, Mat, ffi.Pointer)>>('KMeans'); + ffi.Pointer Function( + Mat, ffi.Int, Mat, TermCriteria, ffi.Int, ffi.Int, Mat, ffi.Pointer)>>('KMeans'); late final _KMeans = _KMeansPtr.asFunction< - ffi.Pointer Function(Mat, int, Mat, TermCriteria, int, int, Mat, - ffi.Pointer)>(); + ffi.Pointer Function(Mat, int, Mat, TermCriteria, int, int, Mat, ffi.Pointer)>(); ffi.Pointer KMeansPoints( VecPoint2f pts, @@ -7545,11 +6672,11 @@ class CvNative { late final _KMeansPointsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecPoint2f, ffi.Int, Mat, TermCriteria, - ffi.Int, ffi.Int, Mat, ffi.Pointer)>>('KMeansPoints'); + ffi.Pointer Function(VecPoint2f, ffi.Int, Mat, TermCriteria, ffi.Int, ffi.Int, Mat, + ffi.Pointer)>>('KMeansPoints'); late final _KMeansPoints = _KMeansPointsPtr.asFunction< - ffi.Pointer Function(VecPoint2f, int, Mat, TermCriteria, int, - int, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + VecPoint2f, int, Mat, TermCriteria, int, int, Mat, ffi.Pointer)>(); void KalmanFilter_Close( KalmanFilterPtr self, @@ -7560,10 +6687,8 @@ class CvNative { } late final _KalmanFilter_ClosePtr = - _lookup>( - 'KalmanFilter_Close'); - late final _KalmanFilter_Close = - _KalmanFilter_ClosePtr.asFunction(); + _lookup>('KalmanFilter_Close'); + late final _KalmanFilter_Close = _KalmanFilter_ClosePtr.asFunction(); ffi.Pointer KalmanFilter_Correct( KalmanFilter self, @@ -7577,10 +6702,9 @@ class CvNative { ); } - late final _KalmanFilter_CorrectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KalmanFilter, Mat, ffi.Pointer)>>('KalmanFilter_Correct'); + late final _KalmanFilter_CorrectPtr = + _lookup Function(KalmanFilter, Mat, ffi.Pointer)>>( + 'KalmanFilter_Correct'); late final _KalmanFilter_Correct = _KalmanFilter_CorrectPtr.asFunction< ffi.Pointer Function(KalmanFilter, Mat, ffi.Pointer)>(); @@ -7594,13 +6718,11 @@ class CvNative { ); } - late final _KalmanFilter_GetControlMatrixPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(KalmanFilter, - ffi.Pointer)>>('KalmanFilter_GetControlMatrix'); - late final _KalmanFilter_GetControlMatrix = - _KalmanFilter_GetControlMatrixPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetControlMatrixPtr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetControlMatrix'); + late final _KalmanFilter_GetControlMatrix = _KalmanFilter_GetControlMatrixPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetErrorCovPost( KalmanFilter self, @@ -7612,13 +6734,11 @@ class CvNative { ); } - late final _KalmanFilter_GetErrorCovPostPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetErrorCovPost'); - late final _KalmanFilter_GetErrorCovPost = - _KalmanFilter_GetErrorCovPostPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetErrorCovPostPtr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetErrorCovPost'); + late final _KalmanFilter_GetErrorCovPost = _KalmanFilter_GetErrorCovPostPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetErrorCovPre( KalmanFilter self, @@ -7630,13 +6750,11 @@ class CvNative { ); } - late final _KalmanFilter_GetErrorCovPrePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetErrorCovPre'); - late final _KalmanFilter_GetErrorCovPre = - _KalmanFilter_GetErrorCovPrePtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetErrorCovPrePtr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetErrorCovPre'); + late final _KalmanFilter_GetErrorCovPre = _KalmanFilter_GetErrorCovPrePtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetGain( KalmanFilter self, @@ -7648,12 +6766,11 @@ class CvNative { ); } - late final _KalmanFilter_GetGainPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetGain'); - late final _KalmanFilter_GetGain = _KalmanFilter_GetGainPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetGainPtr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetGain'); + late final _KalmanFilter_GetGain = + _KalmanFilter_GetGainPtr.asFunction Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetMeasurementMatrix( KalmanFilter self, @@ -7665,13 +6782,11 @@ class CvNative { ); } - late final _KalmanFilter_GetMeasurementMatrixPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(KalmanFilter, - ffi.Pointer)>>('KalmanFilter_GetMeasurementMatrix'); - late final _KalmanFilter_GetMeasurementMatrix = - _KalmanFilter_GetMeasurementMatrixPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetMeasurementMatrixPtr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetMeasurementMatrix'); + late final _KalmanFilter_GetMeasurementMatrix = _KalmanFilter_GetMeasurementMatrixPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetMeasurementNoiseCov( KalmanFilter self, @@ -7683,13 +6798,11 @@ class CvNative { ); } - late final _KalmanFilter_GetMeasurementNoiseCovPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(KalmanFilter, - ffi.Pointer)>>('KalmanFilter_GetMeasurementNoiseCov'); - late final _KalmanFilter_GetMeasurementNoiseCov = - _KalmanFilter_GetMeasurementNoiseCovPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetMeasurementNoiseCovPtr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetMeasurementNoiseCov'); + late final _KalmanFilter_GetMeasurementNoiseCov = _KalmanFilter_GetMeasurementNoiseCovPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetProcessNoiseCov( KalmanFilter self, @@ -7701,13 +6814,11 @@ class CvNative { ); } - late final _KalmanFilter_GetProcessNoiseCovPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(KalmanFilter, - ffi.Pointer)>>('KalmanFilter_GetProcessNoiseCov'); - late final _KalmanFilter_GetProcessNoiseCov = - _KalmanFilter_GetProcessNoiseCovPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetProcessNoiseCovPtr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetProcessNoiseCov'); + late final _KalmanFilter_GetProcessNoiseCov = _KalmanFilter_GetProcessNoiseCovPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetStatePost( KalmanFilter self, @@ -7719,13 +6830,11 @@ class CvNative { ); } - late final _KalmanFilter_GetStatePostPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetStatePost'); - late final _KalmanFilter_GetStatePost = - _KalmanFilter_GetStatePostPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetStatePostPtr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetStatePost'); + late final _KalmanFilter_GetStatePost = _KalmanFilter_GetStatePostPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetStatePre( KalmanFilter self, @@ -7737,13 +6846,11 @@ class CvNative { ); } - late final _KalmanFilter_GetStatePrePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetStatePre'); - late final _KalmanFilter_GetStatePre = - _KalmanFilter_GetStatePrePtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetStatePrePtr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetStatePre'); + late final _KalmanFilter_GetStatePre = _KalmanFilter_GetStatePrePtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetTemp1( KalmanFilter self, @@ -7755,12 +6862,11 @@ class CvNative { ); } - late final _KalmanFilter_GetTemp1Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetTemp1'); - late final _KalmanFilter_GetTemp1 = _KalmanFilter_GetTemp1Ptr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetTemp1Ptr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetTemp1'); + late final _KalmanFilter_GetTemp1 = + _KalmanFilter_GetTemp1Ptr.asFunction Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetTemp2( KalmanFilter self, @@ -7772,12 +6878,11 @@ class CvNative { ); } - late final _KalmanFilter_GetTemp2Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetTemp2'); - late final _KalmanFilter_GetTemp2 = _KalmanFilter_GetTemp2Ptr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetTemp2Ptr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetTemp2'); + late final _KalmanFilter_GetTemp2 = + _KalmanFilter_GetTemp2Ptr.asFunction Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetTemp3( KalmanFilter self, @@ -7789,12 +6894,11 @@ class CvNative { ); } - late final _KalmanFilter_GetTemp3Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetTemp3'); - late final _KalmanFilter_GetTemp3 = _KalmanFilter_GetTemp3Ptr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetTemp3Ptr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetTemp3'); + late final _KalmanFilter_GetTemp3 = + _KalmanFilter_GetTemp3Ptr.asFunction Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetTemp4( KalmanFilter self, @@ -7806,12 +6910,11 @@ class CvNative { ); } - late final _KalmanFilter_GetTemp4Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetTemp4'); - late final _KalmanFilter_GetTemp4 = _KalmanFilter_GetTemp4Ptr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetTemp4Ptr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetTemp4'); + late final _KalmanFilter_GetTemp4 = + _KalmanFilter_GetTemp4Ptr.asFunction Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetTemp5( KalmanFilter self, @@ -7823,12 +6926,11 @@ class CvNative { ); } - late final _KalmanFilter_GetTemp5Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetTemp5'); - late final _KalmanFilter_GetTemp5 = _KalmanFilter_GetTemp5Ptr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetTemp5Ptr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetTemp5'); + late final _KalmanFilter_GetTemp5 = + _KalmanFilter_GetTemp5Ptr.asFunction Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetTransitionMatrix( KalmanFilter self, @@ -7840,13 +6942,11 @@ class CvNative { ); } - late final _KalmanFilter_GetTransitionMatrixPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(KalmanFilter, - ffi.Pointer)>>('KalmanFilter_GetTransitionMatrix'); - late final _KalmanFilter_GetTransitionMatrix = - _KalmanFilter_GetTransitionMatrixPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetTransitionMatrixPtr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetTransitionMatrix'); + late final _KalmanFilter_GetTransitionMatrix = _KalmanFilter_GetTransitionMatrixPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_Init( KalmanFilter self, @@ -7860,12 +6960,11 @@ class CvNative { ); } - late final _KalmanFilter_InitPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KalmanFilter, ffi.Int, ffi.Int)>>('KalmanFilter_Init'); - late final _KalmanFilter_Init = _KalmanFilter_InitPtr.asFunction< - ffi.Pointer Function(KalmanFilter, int, int)>(); + late final _KalmanFilter_InitPtr = + _lookup Function(KalmanFilter, ffi.Int, ffi.Int)>>( + 'KalmanFilter_Init'); + late final _KalmanFilter_Init = + _KalmanFilter_InitPtr.asFunction Function(KalmanFilter, int, int)>(); ffi.Pointer KalmanFilter_InitWithParams( KalmanFilter self, @@ -7884,12 +6983,11 @@ class CvNative { } late final _KalmanFilter_InitWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(KalmanFilter, ffi.Int, ffi.Int, - ffi.Int, ffi.Int)>>('KalmanFilter_InitWithParams'); - late final _KalmanFilter_InitWithParams = - _KalmanFilter_InitWithParamsPtr.asFunction< - ffi.Pointer Function(KalmanFilter, int, int, int, int)>(); + ffi + .NativeFunction Function(KalmanFilter, ffi.Int, ffi.Int, ffi.Int, ffi.Int)>>( + 'KalmanFilter_InitWithParams'); + late final _KalmanFilter_InitWithParams = _KalmanFilter_InitWithParamsPtr.asFunction< + ffi.Pointer Function(KalmanFilter, int, int, int, int)>(); ffi.Pointer KalmanFilter_New( int dynamParams, @@ -7909,11 +7007,10 @@ class CvNative { late final _KalmanFilter_NewPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer)>>('KalmanFilter_New'); + ffi.Pointer Function( + ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('KalmanFilter_New'); late final _KalmanFilter_New = _KalmanFilter_NewPtr.asFunction< - ffi.Pointer Function( - int, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(int, int, int, int, ffi.Pointer)>(); ffi.Pointer KalmanFilter_Predict( KalmanFilter self, @@ -7925,12 +7022,11 @@ class CvNative { ); } - late final _KalmanFilter_PredictPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KalmanFilter, ffi.Pointer)>>('KalmanFilter_Predict'); - late final _KalmanFilter_Predict = _KalmanFilter_PredictPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_PredictPtr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_Predict'); + late final _KalmanFilter_Predict = + _KalmanFilter_PredictPtr.asFunction Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_PredictWithParams( KalmanFilter self, @@ -7944,14 +7040,11 @@ class CvNative { ); } - late final _KalmanFilter_PredictWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(KalmanFilter, Mat, - ffi.Pointer)>>('KalmanFilter_PredictWithParams'); - late final _KalmanFilter_PredictWithParams = - _KalmanFilter_PredictWithParamsPtr.asFunction< - ffi.Pointer Function( - KalmanFilter, Mat, ffi.Pointer)>(); + late final _KalmanFilter_PredictWithParamsPtr = + _lookup Function(KalmanFilter, Mat, ffi.Pointer)>>( + 'KalmanFilter_PredictWithParams'); + late final _KalmanFilter_PredictWithParams = _KalmanFilter_PredictWithParamsPtr.asFunction< + ffi.Pointer Function(KalmanFilter, Mat, ffi.Pointer)>(); ffi.Pointer KalmanFilter_SetControlMatrix( KalmanFilter self, @@ -7963,12 +7056,11 @@ class CvNative { ); } - late final _KalmanFilter_SetControlMatrixPtr = _lookup< - ffi - .NativeFunction Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetControlMatrix'); - late final _KalmanFilter_SetControlMatrix = _KalmanFilter_SetControlMatrixPtr - .asFunction Function(KalmanFilter, Mat)>(); + late final _KalmanFilter_SetControlMatrixPtr = + _lookup Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetControlMatrix'); + late final _KalmanFilter_SetControlMatrix = + _KalmanFilter_SetControlMatrixPtr.asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetErrorCovPost( KalmanFilter self, @@ -7980,12 +7072,11 @@ class CvNative { ); } - late final _KalmanFilter_SetErrorCovPostPtr = _lookup< - ffi - .NativeFunction Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetErrorCovPost'); - late final _KalmanFilter_SetErrorCovPost = _KalmanFilter_SetErrorCovPostPtr - .asFunction Function(KalmanFilter, Mat)>(); + late final _KalmanFilter_SetErrorCovPostPtr = + _lookup Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetErrorCovPost'); + late final _KalmanFilter_SetErrorCovPost = + _KalmanFilter_SetErrorCovPostPtr.asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetErrorCovPre( KalmanFilter self, @@ -7997,12 +7088,11 @@ class CvNative { ); } - late final _KalmanFilter_SetErrorCovPrePtr = _lookup< - ffi - .NativeFunction Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetErrorCovPre'); - late final _KalmanFilter_SetErrorCovPre = _KalmanFilter_SetErrorCovPrePtr - .asFunction Function(KalmanFilter, Mat)>(); + late final _KalmanFilter_SetErrorCovPrePtr = + _lookup Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetErrorCovPre'); + late final _KalmanFilter_SetErrorCovPre = + _KalmanFilter_SetErrorCovPrePtr.asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetGain( KalmanFilter self, @@ -8014,12 +7104,10 @@ class CvNative { ); } - late final _KalmanFilter_SetGainPtr = _lookup< - ffi - .NativeFunction Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetGain'); - late final _KalmanFilter_SetGain = _KalmanFilter_SetGainPtr.asFunction< - ffi.Pointer Function(KalmanFilter, Mat)>(); + late final _KalmanFilter_SetGainPtr = + _lookup Function(KalmanFilter, Mat)>>('KalmanFilter_SetGain'); + late final _KalmanFilter_SetGain = + _KalmanFilter_SetGainPtr.asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetMeasurementMatrix( KalmanFilter self, @@ -8031,13 +7119,11 @@ class CvNative { ); } - late final _KalmanFilter_SetMeasurementMatrixPtr = _lookup< - ffi - .NativeFunction Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetMeasurementMatrix'); + late final _KalmanFilter_SetMeasurementMatrixPtr = + _lookup Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetMeasurementMatrix'); late final _KalmanFilter_SetMeasurementMatrix = - _KalmanFilter_SetMeasurementMatrixPtr.asFunction< - ffi.Pointer Function(KalmanFilter, Mat)>(); + _KalmanFilter_SetMeasurementMatrixPtr.asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetMeasurementNoiseCov( KalmanFilter self, @@ -8049,13 +7135,11 @@ class CvNative { ); } - late final _KalmanFilter_SetMeasurementNoiseCovPtr = _lookup< - ffi - .NativeFunction Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetMeasurementNoiseCov'); + late final _KalmanFilter_SetMeasurementNoiseCovPtr = + _lookup Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetMeasurementNoiseCov'); late final _KalmanFilter_SetMeasurementNoiseCov = - _KalmanFilter_SetMeasurementNoiseCovPtr.asFunction< - ffi.Pointer Function(KalmanFilter, Mat)>(); + _KalmanFilter_SetMeasurementNoiseCovPtr.asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetProcessNoiseCov( KalmanFilter self, @@ -8067,13 +7151,11 @@ class CvNative { ); } - late final _KalmanFilter_SetProcessNoiseCovPtr = _lookup< - ffi - .NativeFunction Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetProcessNoiseCov'); + late final _KalmanFilter_SetProcessNoiseCovPtr = + _lookup Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetProcessNoiseCov'); late final _KalmanFilter_SetProcessNoiseCov = - _KalmanFilter_SetProcessNoiseCovPtr.asFunction< - ffi.Pointer Function(KalmanFilter, Mat)>(); + _KalmanFilter_SetProcessNoiseCovPtr.asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetStatePost( KalmanFilter self, @@ -8085,12 +7167,11 @@ class CvNative { ); } - late final _KalmanFilter_SetStatePostPtr = _lookup< - ffi - .NativeFunction Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetStatePost'); - late final _KalmanFilter_SetStatePost = _KalmanFilter_SetStatePostPtr - .asFunction Function(KalmanFilter, Mat)>(); + late final _KalmanFilter_SetStatePostPtr = + _lookup Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetStatePost'); + late final _KalmanFilter_SetStatePost = + _KalmanFilter_SetStatePostPtr.asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetStatePre( KalmanFilter self, @@ -8102,12 +7183,11 @@ class CvNative { ); } - late final _KalmanFilter_SetStatePrePtr = _lookup< - ffi - .NativeFunction Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetStatePre'); - late final _KalmanFilter_SetStatePre = _KalmanFilter_SetStatePrePtr - .asFunction Function(KalmanFilter, Mat)>(); + late final _KalmanFilter_SetStatePrePtr = + _lookup Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetStatePre'); + late final _KalmanFilter_SetStatePre = + _KalmanFilter_SetStatePrePtr.asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetTransitionMatrix( KalmanFilter self, @@ -8119,13 +7199,11 @@ class CvNative { ); } - late final _KalmanFilter_SetTransitionMatrixPtr = _lookup< - ffi - .NativeFunction Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetTransitionMatrix'); + late final _KalmanFilter_SetTransitionMatrixPtr = + _lookup Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetTransitionMatrix'); late final _KalmanFilter_SetTransitionMatrix = - _KalmanFilter_SetTransitionMatrixPtr.asFunction< - ffi.Pointer Function(KalmanFilter, Mat)>(); + _KalmanFilter_SetTransitionMatrixPtr.asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer LUT( Mat src, @@ -8139,10 +7217,8 @@ class CvNative { ); } - late final _LUTPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>('LUT'); - late final _LUT = - _LUTPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _LUTPtr = _lookup Function(Mat, Mat, Mat)>>('LUT'); + late final _LUT = _LUTPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Laplacian( Mat src, @@ -8166,11 +7242,10 @@ class CvNative { late final _LaplacianPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Double, - ffi.Double, ffi.Int)>>('Laplacian'); - late final _Laplacian = _LaplacianPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, int, int, double, double, int)>(); + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Int, ffi.Double, ffi.Double, ffi.Int)>>('Laplacian'); + late final _Laplacian = + _LaplacianPtr.asFunction Function(Mat, Mat, int, int, double, double, int)>(); void Layer_Close( LayerPtr layer, @@ -8180,10 +7255,8 @@ class CvNative { ); } - late final _Layer_ClosePtr = - _lookup>('Layer_Close'); - late final _Layer_Close = - _Layer_ClosePtr.asFunction(); + late final _Layer_ClosePtr = _lookup>('Layer_Close'); + late final _Layer_Close = _Layer_ClosePtr.asFunction(); void Layer_Close_Async( LayerPtr1 layer, @@ -8196,10 +7269,8 @@ class CvNative { } late final _Layer_Close_AsyncPtr = - _lookup>( - 'Layer_Close_Async'); - late final _Layer_Close_Async = _Layer_Close_AsyncPtr.asFunction< - void Function(LayerPtr1, CvCallback_0)>(); + _lookup>('Layer_Close_Async'); + late final _Layer_Close_Async = _Layer_Close_AsyncPtr.asFunction(); ffi.Pointer Layer_GetName( Layer layer, @@ -8211,13 +7282,11 @@ class CvNative { ); } - late final _Layer_GetNamePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Layer, ffi.Pointer>)>>('Layer_GetName'); + late final _Layer_GetNamePtr = + _lookup Function(Layer, ffi.Pointer>)>>( + 'Layer_GetName'); late final _Layer_GetName = _Layer_GetNamePtr.asFunction< - ffi.Pointer Function( - Layer, ffi.Pointer>)>(); + ffi.Pointer Function(Layer, ffi.Pointer>)>(); ffi.Pointer Layer_GetName_Async( Layer layer, @@ -8229,12 +7298,10 @@ class CvNative { ); } - late final _Layer_GetName_AsyncPtr = _lookup< - ffi - .NativeFunction Function(Layer, CvCallback_1)>>( - 'Layer_GetName_Async'); - late final _Layer_GetName_Async = _Layer_GetName_AsyncPtr.asFunction< - ffi.Pointer Function(Layer, CvCallback_1)>(); + late final _Layer_GetName_AsyncPtr = + _lookup Function(Layer, CvCallback_1)>>('Layer_GetName_Async'); + late final _Layer_GetName_Async = + _Layer_GetName_AsyncPtr.asFunction Function(Layer, CvCallback_1)>(); ffi.Pointer Layer_GetType( Layer layer, @@ -8246,13 +7313,11 @@ class CvNative { ); } - late final _Layer_GetTypePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Layer, ffi.Pointer>)>>('Layer_GetType'); + late final _Layer_GetTypePtr = + _lookup Function(Layer, ffi.Pointer>)>>( + 'Layer_GetType'); late final _Layer_GetType = _Layer_GetTypePtr.asFunction< - ffi.Pointer Function( - Layer, ffi.Pointer>)>(); + ffi.Pointer Function(Layer, ffi.Pointer>)>(); ffi.Pointer Layer_GetType_Async( Layer layer, @@ -8264,12 +7329,10 @@ class CvNative { ); } - late final _Layer_GetType_AsyncPtr = _lookup< - ffi - .NativeFunction Function(Layer, CvCallback_1)>>( - 'Layer_GetType_Async'); - late final _Layer_GetType_Async = _Layer_GetType_AsyncPtr.asFunction< - ffi.Pointer Function(Layer, CvCallback_1)>(); + late final _Layer_GetType_AsyncPtr = + _lookup Function(Layer, CvCallback_1)>>('Layer_GetType_Async'); + late final _Layer_GetType_Async = + _Layer_GetType_AsyncPtr.asFunction Function(Layer, CvCallback_1)>(); ffi.Pointer Layer_InputNameToIndex( Layer layer, @@ -8285,11 +7348,10 @@ class CvNative { late final _Layer_InputNameToIndexPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Layer, ffi.Pointer, - ffi.Pointer)>>('Layer_InputNameToIndex'); + ffi.Pointer Function( + Layer, ffi.Pointer, ffi.Pointer)>>('Layer_InputNameToIndex'); late final _Layer_InputNameToIndex = _Layer_InputNameToIndexPtr.asFunction< - ffi.Pointer Function( - Layer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(Layer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Layer_InputNameToIndex_Async( Layer layer, @@ -8303,14 +7365,11 @@ class CvNative { ); } - late final _Layer_InputNameToIndex_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Layer, ffi.Pointer, - CvCallback_1)>>('Layer_InputNameToIndex_Async'); - late final _Layer_InputNameToIndex_Async = - _Layer_InputNameToIndex_AsyncPtr.asFunction< - ffi.Pointer Function( - Layer, ffi.Pointer, CvCallback_1)>(); + late final _Layer_InputNameToIndex_AsyncPtr = + _lookup Function(Layer, ffi.Pointer, CvCallback_1)>>( + 'Layer_InputNameToIndex_Async'); + late final _Layer_InputNameToIndex_Async = _Layer_InputNameToIndex_AsyncPtr.asFunction< + ffi.Pointer Function(Layer, ffi.Pointer, CvCallback_1)>(); ffi.Pointer Layer_OutputNameToIndex( Layer layer, @@ -8326,11 +7385,10 @@ class CvNative { late final _Layer_OutputNameToIndexPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Layer, ffi.Pointer, - ffi.Pointer)>>('Layer_OutputNameToIndex'); + ffi.Pointer Function( + Layer, ffi.Pointer, ffi.Pointer)>>('Layer_OutputNameToIndex'); late final _Layer_OutputNameToIndex = _Layer_OutputNameToIndexPtr.asFunction< - ffi.Pointer Function( - Layer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(Layer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Layer_OutputNameToIndex_Async( Layer layer, @@ -8344,14 +7402,11 @@ class CvNative { ); } - late final _Layer_OutputNameToIndex_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Layer, ffi.Pointer, - CvCallback_1)>>('Layer_OutputNameToIndex_Async'); - late final _Layer_OutputNameToIndex_Async = - _Layer_OutputNameToIndex_AsyncPtr.asFunction< - ffi.Pointer Function( - Layer, ffi.Pointer, CvCallback_1)>(); + late final _Layer_OutputNameToIndex_AsyncPtr = + _lookup Function(Layer, ffi.Pointer, CvCallback_1)>>( + 'Layer_OutputNameToIndex_Async'); + late final _Layer_OutputNameToIndex_Async = _Layer_OutputNameToIndex_AsyncPtr.asFunction< + ffi.Pointer Function(Layer, ffi.Pointer, CvCallback_1)>(); ffi.Pointer Line( Mat img, @@ -8375,11 +7430,9 @@ class CvNative { late final _LinePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Point, Point, Scalar, ffi.Int, ffi.Int, ffi.Int)>>('Line'); - late final _Line = _LinePtr.asFunction< - ffi.Pointer Function( - Mat, Point, Point, Scalar, int, int, int)>(); + ffi.Pointer Function(Mat, Point, Point, Scalar, ffi.Int, ffi.Int, ffi.Int)>>('Line'); + late final _Line = + _LinePtr.asFunction Function(Mat, Point, Point, Scalar, int, int, int)>(); ffi.Pointer LinearPolar( Mat src, @@ -8397,12 +7450,11 @@ class CvNative { ); } - late final _LinearPolarPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Point2f, ffi.Double, ffi.Int)>>('LinearPolar'); - late final _LinearPolar = _LinearPolarPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Point2f, double, int)>(); + late final _LinearPolarPtr = + _lookup Function(Mat, Mat, Point2f, ffi.Double, ffi.Int)>>( + 'LinearPolar'); + late final _LinearPolar = + _LinearPolarPtr.asFunction Function(Mat, Mat, Point2f, double, int)>(); ffi.Pointer LogPolar( Mat src, @@ -8420,12 +7472,11 @@ class CvNative { ); } - late final _LogPolarPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Point2f, ffi.Double, ffi.Int)>>('LogPolar'); - late final _LogPolar = _LogPolarPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Point2f, double, int)>(); + late final _LogPolarPtr = + _lookup Function(Mat, Mat, Point2f, ffi.Double, ffi.Int)>>( + 'LogPolar'); + late final _LogPolar = + _LogPolarPtr.asFunction Function(Mat, Mat, Point2f, double, int)>(); void MSER_Close( MSERPtr a, @@ -8435,8 +7486,7 @@ class CvNative { ); } - late final _MSER_ClosePtr = - _lookup>('MSER_Close'); + late final _MSER_ClosePtr = _lookup>('MSER_Close'); late final _MSER_Close = _MSER_ClosePtr.asFunction(); ffi.Pointer MSER_Create( @@ -8447,11 +7497,9 @@ class CvNative { ); } - late final _MSER_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('MSER_Create'); - late final _MSER_Create = _MSER_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _MSER_CreatePtr = + _lookup Function(ffi.Pointer)>>('MSER_Create'); + late final _MSER_Create = _MSER_CreatePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer MSER_Detect( MSER a, @@ -8465,12 +7513,11 @@ class CvNative { ); } - late final _MSER_DetectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - MSER, Mat, ffi.Pointer)>>('MSER_Detect'); - late final _MSER_Detect = _MSER_DetectPtr.asFunction< - ffi.Pointer Function(MSER, Mat, ffi.Pointer)>(); + late final _MSER_DetectPtr = + _lookup Function(MSER, Mat, ffi.Pointer)>>( + 'MSER_Detect'); + late final _MSER_Detect = + _MSER_DetectPtr.asFunction Function(MSER, Mat, ffi.Pointer)>(); ffi.Pointer Mat_AbsDiff( Mat src1, @@ -8484,11 +7531,9 @@ class CvNative { ); } - late final _Mat_AbsDiffPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_AbsDiff'); - late final _Mat_AbsDiff = _Mat_AbsDiffPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_AbsDiffPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_AbsDiff'); + late final _Mat_AbsDiff = _Mat_AbsDiffPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_Accumulate( Mat src, @@ -8501,10 +7546,8 @@ class CvNative { } late final _Mat_AccumulatePtr = - _lookup Function(Mat, Mat)>>( - 'Mat_Accumulate'); - late final _Mat_Accumulate = - _Mat_AccumulatePtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('Mat_Accumulate'); + late final _Mat_Accumulate = _Mat_AccumulatePtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_AccumulateProduct( Mat src1, @@ -8518,11 +7561,10 @@ class CvNative { ); } - late final _Mat_AccumulateProductPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_AccumulateProduct'); - late final _Mat_AccumulateProduct = _Mat_AccumulateProductPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_AccumulateProductPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_AccumulateProduct'); + late final _Mat_AccumulateProduct = + _Mat_AccumulateProductPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_AccumulateProductWithMask( Mat src1, @@ -8538,12 +7580,11 @@ class CvNative { ); } - late final _Mat_AccumulateProductWithMaskPtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, Mat, Mat)>>( - 'Mat_AccumulateProductWithMask'); - late final _Mat_AccumulateProductWithMask = _Mat_AccumulateProductWithMaskPtr - .asFunction Function(Mat, Mat, Mat, Mat)>(); + late final _Mat_AccumulateProductWithMaskPtr = + _lookup Function(Mat, Mat, Mat, Mat)>>( + 'Mat_AccumulateProductWithMask'); + late final _Mat_AccumulateProductWithMask = + _Mat_AccumulateProductWithMaskPtr.asFunction Function(Mat, Mat, Mat, Mat)>(); ffi.Pointer Mat_AccumulateSquare( Mat src, @@ -8556,10 +7597,9 @@ class CvNative { } late final _Mat_AccumulateSquarePtr = - _lookup Function(Mat, Mat)>>( - 'Mat_AccumulateSquare'); - late final _Mat_AccumulateSquare = _Mat_AccumulateSquarePtr.asFunction< - ffi.Pointer Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('Mat_AccumulateSquare'); + late final _Mat_AccumulateSquare = + _Mat_AccumulateSquarePtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_AccumulateSquareWithMask( Mat src, @@ -8573,11 +7613,11 @@ class CvNative { ); } - late final _Mat_AccumulateSquareWithMaskPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_AccumulateSquareWithMask'); - late final _Mat_AccumulateSquareWithMask = _Mat_AccumulateSquareWithMaskPtr - .asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_AccumulateSquareWithMaskPtr = + _lookup Function(Mat, Mat, Mat)>>( + 'Mat_AccumulateSquareWithMask'); + late final _Mat_AccumulateSquareWithMask = + _Mat_AccumulateSquareWithMaskPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_AccumulateWithMask( Mat src, @@ -8591,11 +7631,10 @@ class CvNative { ); } - late final _Mat_AccumulateWithMaskPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_AccumulateWithMask'); - late final _Mat_AccumulateWithMask = _Mat_AccumulateWithMaskPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_AccumulateWithMaskPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_AccumulateWithMask'); + late final _Mat_AccumulateWithMask = + _Mat_AccumulateWithMaskPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_AccumulatedWeighted( Mat src, @@ -8609,12 +7648,11 @@ class CvNative { ); } - late final _Mat_AccumulatedWeightedPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Double)>>('Mat_AccumulatedWeighted'); - late final _Mat_AccumulatedWeighted = _Mat_AccumulatedWeightedPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double)>(); + late final _Mat_AccumulatedWeightedPtr = + _lookup Function(Mat, Mat, ffi.Double)>>( + 'Mat_AccumulatedWeighted'); + late final _Mat_AccumulatedWeighted = + _Mat_AccumulatedWeightedPtr.asFunction Function(Mat, Mat, double)>(); ffi.Pointer Mat_AccumulatedWeightedWithMask( Mat src, @@ -8630,13 +7668,11 @@ class CvNative { ); } - late final _Mat_AccumulatedWeightedWithMaskPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Double, Mat)>>('Mat_AccumulatedWeightedWithMask'); + late final _Mat_AccumulatedWeightedWithMaskPtr = + _lookup Function(Mat, Mat, ffi.Double, Mat)>>( + 'Mat_AccumulatedWeightedWithMask'); late final _Mat_AccumulatedWeightedWithMask = - _Mat_AccumulatedWeightedWithMaskPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, Mat)>(); + _Mat_AccumulatedWeightedWithMaskPtr.asFunction Function(Mat, Mat, double, Mat)>(); ffi.Pointer Mat_Add( Mat src1, @@ -8650,11 +7686,9 @@ class CvNative { ); } - late final _Mat_AddPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_Add'); - late final _Mat_Add = - _Mat_AddPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_AddPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_Add'); + late final _Mat_Add = _Mat_AddPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_AddF64( Mat m, @@ -8666,11 +7700,9 @@ class CvNative { ); } - late final _Mat_AddF64Ptr = _lookup< - ffi.NativeFunction Function(Mat, double_t)>>( - 'Mat_AddF64'); - late final _Mat_AddF64 = - _Mat_AddF64Ptr.asFunction Function(Mat, double)>(); + late final _Mat_AddF64Ptr = + _lookup Function(Mat, double_t)>>('Mat_AddF64'); + late final _Mat_AddF64 = _Mat_AddF64Ptr.asFunction Function(Mat, double)>(); ffi.Pointer Mat_AddFloat( Mat m, @@ -8683,10 +7715,8 @@ class CvNative { } late final _Mat_AddFloatPtr = - _lookup Function(Mat, float_t)>>( - 'Mat_AddFloat'); - late final _Mat_AddFloat = _Mat_AddFloatPtr.asFunction< - ffi.Pointer Function(Mat, double)>(); + _lookup Function(Mat, float_t)>>('Mat_AddFloat'); + late final _Mat_AddFloat = _Mat_AddFloatPtr.asFunction Function(Mat, double)>(); ffi.Pointer Mat_AddI32( Mat m, @@ -8698,11 +7728,9 @@ class CvNative { ); } - late final _Mat_AddI32Ptr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int32)>>( - 'Mat_AddI32'); - late final _Mat_AddI32 = - _Mat_AddI32Ptr.asFunction Function(Mat, int)>(); + late final _Mat_AddI32Ptr = + _lookup Function(Mat, ffi.Int32)>>('Mat_AddI32'); + late final _Mat_AddI32 = _Mat_AddI32Ptr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_AddSChar( Mat m, @@ -8714,11 +7742,9 @@ class CvNative { ); } - late final _Mat_AddSCharPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int8)>>( - 'Mat_AddSChar'); - late final _Mat_AddSChar = - _Mat_AddSCharPtr.asFunction Function(Mat, int)>(); + late final _Mat_AddSCharPtr = + _lookup Function(Mat, ffi.Int8)>>('Mat_AddSChar'); + late final _Mat_AddSChar = _Mat_AddSCharPtr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_AddUChar( Mat m, @@ -8730,11 +7756,9 @@ class CvNative { ); } - late final _Mat_AddUCharPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Uint8)>>( - 'Mat_AddUChar'); - late final _Mat_AddUChar = - _Mat_AddUCharPtr.asFunction Function(Mat, int)>(); + late final _Mat_AddUCharPtr = + _lookup Function(Mat, ffi.Uint8)>>('Mat_AddUChar'); + late final _Mat_AddUChar = _Mat_AddUCharPtr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_AddWeighted( Mat src1, @@ -8755,11 +7779,11 @@ class CvNative { } late final _Mat_AddWeightedPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Double, Mat, ffi.Double, - ffi.Double, Mat)>>('Mat_AddWeighted'); - late final _Mat_AddWeighted = _Mat_AddWeightedPtr.asFunction< - ffi.Pointer Function(Mat, double, Mat, double, double, Mat)>(); + ffi + .NativeFunction Function(Mat, ffi.Double, Mat, ffi.Double, ffi.Double, Mat)>>( + 'Mat_AddWeighted'); + late final _Mat_AddWeighted = + _Mat_AddWeightedPtr.asFunction Function(Mat, double, Mat, double, double, Mat)>(); ffi.Pointer Mat_BatchDistance( Mat src1, @@ -8789,11 +7813,10 @@ class CvNative { late final _Mat_BatchDistancePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, ffi.Int, Mat, ffi.Int, - ffi.Int, Mat, ffi.Int, ffi.Bool)>>('Mat_BatchDistance'); + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Int, Mat, ffi.Int, ffi.Int, Mat, ffi.Int, ffi.Bool)>>('Mat_BatchDistance'); late final _Mat_BatchDistance = _Mat_BatchDistancePtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Mat, int, Mat, int, int, Mat, int, bool)>(); + ffi.Pointer Function(Mat, Mat, Mat, int, Mat, int, int, Mat, int, bool)>(); ffi.Pointer Mat_BitwiseAnd( Mat src1, @@ -8807,11 +7830,9 @@ class CvNative { ); } - late final _Mat_BitwiseAndPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_BitwiseAnd'); - late final _Mat_BitwiseAnd = _Mat_BitwiseAndPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_BitwiseAndPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_BitwiseAnd'); + late final _Mat_BitwiseAnd = _Mat_BitwiseAndPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_BitwiseAndWithMask( Mat src1, @@ -8827,12 +7848,11 @@ class CvNative { ); } - late final _Mat_BitwiseAndWithMaskPtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, Mat, Mat)>>( - 'Mat_BitwiseAndWithMask'); - late final _Mat_BitwiseAndWithMask = _Mat_BitwiseAndWithMaskPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat)>(); + late final _Mat_BitwiseAndWithMaskPtr = + _lookup Function(Mat, Mat, Mat, Mat)>>( + 'Mat_BitwiseAndWithMask'); + late final _Mat_BitwiseAndWithMask = + _Mat_BitwiseAndWithMaskPtr.asFunction Function(Mat, Mat, Mat, Mat)>(); ffi.Pointer Mat_BitwiseNot( Mat src1, @@ -8845,10 +7865,8 @@ class CvNative { } late final _Mat_BitwiseNotPtr = - _lookup Function(Mat, Mat)>>( - 'Mat_BitwiseNot'); - late final _Mat_BitwiseNot = - _Mat_BitwiseNotPtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('Mat_BitwiseNot'); + late final _Mat_BitwiseNot = _Mat_BitwiseNotPtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_BitwiseNotWithMask( Mat src1, @@ -8862,11 +7880,10 @@ class CvNative { ); } - late final _Mat_BitwiseNotWithMaskPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_BitwiseNotWithMask'); - late final _Mat_BitwiseNotWithMask = _Mat_BitwiseNotWithMaskPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_BitwiseNotWithMaskPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_BitwiseNotWithMask'); + late final _Mat_BitwiseNotWithMask = + _Mat_BitwiseNotWithMaskPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_BitwiseOr( Mat src1, @@ -8880,11 +7897,9 @@ class CvNative { ); } - late final _Mat_BitwiseOrPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_BitwiseOr'); - late final _Mat_BitwiseOr = _Mat_BitwiseOrPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_BitwiseOrPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_BitwiseOr'); + late final _Mat_BitwiseOr = _Mat_BitwiseOrPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_BitwiseOrWithMask( Mat src1, @@ -8900,12 +7915,11 @@ class CvNative { ); } - late final _Mat_BitwiseOrWithMaskPtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, Mat, Mat)>>( - 'Mat_BitwiseOrWithMask'); - late final _Mat_BitwiseOrWithMask = _Mat_BitwiseOrWithMaskPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat)>(); + late final _Mat_BitwiseOrWithMaskPtr = + _lookup Function(Mat, Mat, Mat, Mat)>>( + 'Mat_BitwiseOrWithMask'); + late final _Mat_BitwiseOrWithMask = + _Mat_BitwiseOrWithMaskPtr.asFunction Function(Mat, Mat, Mat, Mat)>(); ffi.Pointer Mat_BitwiseXor( Mat src1, @@ -8919,11 +7933,9 @@ class CvNative { ); } - late final _Mat_BitwiseXorPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_BitwiseXor'); - late final _Mat_BitwiseXor = _Mat_BitwiseXorPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_BitwiseXorPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_BitwiseXor'); + late final _Mat_BitwiseXor = _Mat_BitwiseXorPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_BitwiseXorWithMask( Mat src1, @@ -8939,12 +7951,11 @@ class CvNative { ); } - late final _Mat_BitwiseXorWithMaskPtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, Mat, Mat)>>( - 'Mat_BitwiseXorWithMask'); - late final _Mat_BitwiseXorWithMask = _Mat_BitwiseXorWithMaskPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat)>(); + late final _Mat_BitwiseXorWithMaskPtr = + _lookup Function(Mat, Mat, Mat, Mat)>>( + 'Mat_BitwiseXorWithMask'); + late final _Mat_BitwiseXorWithMask = + _Mat_BitwiseXorWithMaskPtr.asFunction Function(Mat, Mat, Mat, Mat)>(); ffi.Pointer Mat_BorderInterpolate( int p, @@ -8961,9 +7972,9 @@ class CvNative { } late final _Mat_BorderInterpolatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer)>>('Mat_BorderInterpolate'); + ffi + .NativeFunction Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_BorderInterpolate'); late final _Mat_BorderInterpolate = _Mat_BorderInterpolatePtr.asFunction< ffi.Pointer Function(int, int, int, ffi.Pointer)>(); @@ -8983,12 +7994,11 @@ class CvNative { ); } - late final _Mat_CalcCovarMatrixPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Int, ffi.Int)>>('Mat_CalcCovarMatrix'); - late final _Mat_CalcCovarMatrix = _Mat_CalcCovarMatrixPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, int, int)>(); + late final _Mat_CalcCovarMatrixPtr = + _lookup Function(Mat, Mat, Mat, ffi.Int, ffi.Int)>>( + 'Mat_CalcCovarMatrix'); + late final _Mat_CalcCovarMatrix = + _Mat_CalcCovarMatrixPtr.asFunction Function(Mat, Mat, Mat, int, int)>(); ffi.Pointer Mat_CartToPolar( Mat x, @@ -9006,12 +8016,11 @@ class CvNative { ); } - late final _Mat_CartToPolarPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, ffi.Bool)>>('Mat_CartToPolar'); - late final _Mat_CartToPolar = _Mat_CartToPolarPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, bool)>(); + late final _Mat_CartToPolarPtr = + _lookup Function(Mat, Mat, Mat, Mat, ffi.Bool)>>( + 'Mat_CartToPolar'); + late final _Mat_CartToPolar = + _Mat_CartToPolarPtr.asFunction Function(Mat, Mat, Mat, Mat, bool)>(); ffi.Pointer Mat_Channels( Mat m, @@ -9023,12 +8032,10 @@ class CvNative { ); } - late final _Mat_ChannelsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_Channels'); - late final _Mat_Channels = _Mat_ChannelsPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_ChannelsPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Channels'); + late final _Mat_Channels = + _Mat_ChannelsPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_CheckRange( Mat m, @@ -9050,16 +8057,10 @@ class CvNative { late final _Mat_CheckRangePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - ffi.Bool, - ffi.Pointer, - ffi.Double, - ffi.Double, + ffi.Pointer Function(Mat, ffi.Bool, ffi.Pointer, ffi.Double, ffi.Double, ffi.Pointer)>>('Mat_CheckRange'); late final _Mat_CheckRange = _Mat_CheckRangePtr.asFunction< - ffi.Pointer Function(Mat, bool, ffi.Pointer, double, - double, ffi.Pointer)>(); + ffi.Pointer Function(Mat, bool, ffi.Pointer, double, double, ffi.Pointer)>(); ffi.Pointer Mat_Clone( Mat m, @@ -9071,11 +8072,9 @@ class CvNative { ); } - late final _Mat_ClonePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>>('Mat_Clone'); - late final _Mat_Clone = _Mat_ClonePtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_ClonePtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Clone'); + late final _Mat_Clone = _Mat_ClonePtr.asFunction Function(Mat, ffi.Pointer)>(); void Mat_Close( MatPtr m, @@ -9085,8 +8084,7 @@ class CvNative { ); } - late final _Mat_ClosePtr = - _lookup>('Mat_Close'); + late final _Mat_ClosePtr = _lookup>('Mat_Close'); late final _Mat_Close = _Mat_ClosePtr.asFunction(); void Mat_CloseVoid( @@ -9098,10 +8096,8 @@ class CvNative { } late final _Mat_CloseVoidPtr = - _lookup)>>( - 'Mat_CloseVoid'); - late final _Mat_CloseVoid = - _Mat_CloseVoidPtr.asFunction)>(); + _lookup)>>('Mat_CloseVoid'); + late final _Mat_CloseVoid = _Mat_CloseVoidPtr.asFunction)>(); ffi.Pointer Mat_Cols( Mat m, @@ -9113,12 +8109,9 @@ class CvNative { ); } - late final _Mat_ColsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_Cols'); - late final _Mat_Cols = _Mat_ColsPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_ColsPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Cols'); + late final _Mat_Cols = _Mat_ColsPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Compare( Mat src1, @@ -9134,12 +8127,9 @@ class CvNative { ); } - late final _Mat_ComparePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Int)>>('Mat_Compare'); - late final _Mat_Compare = _Mat_ComparePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, int)>(); + late final _Mat_ComparePtr = + _lookup Function(Mat, Mat, Mat, ffi.Int)>>('Mat_Compare'); + late final _Mat_Compare = _Mat_ComparePtr.asFunction Function(Mat, Mat, Mat, int)>(); ffi.Pointer Mat_CompleteSymm( Mat m, @@ -9151,11 +8141,9 @@ class CvNative { ); } - late final _Mat_CompleteSymmPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Bool)>>( - 'Mat_CompleteSymm'); - late final _Mat_CompleteSymm = _Mat_CompleteSymmPtr.asFunction< - ffi.Pointer Function(Mat, bool)>(); + late final _Mat_CompleteSymmPtr = + _lookup Function(Mat, ffi.Bool)>>('Mat_CompleteSymm'); + late final _Mat_CompleteSymm = _Mat_CompleteSymmPtr.asFunction Function(Mat, bool)>(); ffi.Pointer Mat_ConvertFp16( Mat m, @@ -9167,12 +8155,10 @@ class CvNative { ); } - late final _Mat_ConvertFp16Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_ConvertFp16'); - late final _Mat_ConvertFp16 = _Mat_ConvertFp16Ptr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_ConvertFp16Ptr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_ConvertFp16'); + late final _Mat_ConvertFp16 = + _Mat_ConvertFp16Ptr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_ConvertScaleAbs( Mat src, @@ -9188,12 +8174,11 @@ class CvNative { ); } - late final _Mat_ConvertScaleAbsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Double, ffi.Double)>>('Mat_ConvertScaleAbs'); - late final _Mat_ConvertScaleAbs = _Mat_ConvertScaleAbsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, double)>(); + late final _Mat_ConvertScaleAbsPtr = + _lookup Function(Mat, Mat, ffi.Double, ffi.Double)>>( + 'Mat_ConvertScaleAbs'); + late final _Mat_ConvertScaleAbs = + _Mat_ConvertScaleAbsPtr.asFunction Function(Mat, Mat, double, double)>(); ffi.Pointer Mat_ConvertTo( Mat m, @@ -9207,11 +8192,9 @@ class CvNative { ); } - late final _Mat_ConvertToPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_ConvertTo'); - late final _Mat_ConvertTo = _Mat_ConvertToPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int)>(); + late final _Mat_ConvertToPtr = + _lookup Function(Mat, Mat, ffi.Int)>>('Mat_ConvertTo'); + late final _Mat_ConvertTo = _Mat_ConvertToPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_ConvertToWithParams( Mat m, @@ -9229,12 +8212,11 @@ class CvNative { ); } - late final _Mat_ConvertToWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Float, - ffi.Float)>>('Mat_ConvertToWithParams'); - late final _Mat_ConvertToWithParams = _Mat_ConvertToWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, double, double)>(); + late final _Mat_ConvertToWithParamsPtr = + _lookup Function(Mat, Mat, ffi.Int, ffi.Float, ffi.Float)>>( + 'Mat_ConvertToWithParams'); + late final _Mat_ConvertToWithParams = + _Mat_ConvertToWithParamsPtr.asFunction Function(Mat, Mat, int, double, double)>(); ffi.Pointer Mat_CopyMakeBorder( Mat src, @@ -9260,11 +8242,10 @@ class CvNative { late final _Mat_CopyMakeBorderPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Int, ffi.Int, Scalar)>>('Mat_CopyMakeBorder'); + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Int, Scalar)>>('Mat_CopyMakeBorder'); late final _Mat_CopyMakeBorder = _Mat_CopyMakeBorderPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, int, int, int, int, int, Scalar)>(); + ffi.Pointer Function(Mat, Mat, int, int, int, int, int, Scalar)>(); ffi.Pointer Mat_CopyTo( Mat m, @@ -9277,10 +8258,8 @@ class CvNative { } late final _Mat_CopyToPtr = - _lookup Function(Mat, Mat)>>( - 'Mat_CopyTo'); - late final _Mat_CopyTo = - _Mat_CopyToPtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('Mat_CopyTo'); + late final _Mat_CopyTo = _Mat_CopyToPtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_CopyToWithMask( Mat m, @@ -9294,11 +8273,10 @@ class CvNative { ); } - late final _Mat_CopyToWithMaskPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_CopyToWithMask'); - late final _Mat_CopyToWithMask = _Mat_CopyToWithMaskPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_CopyToWithMaskPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_CopyToWithMask'); + late final _Mat_CopyToWithMask = + _Mat_CopyToWithMaskPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_CountNonZero( Mat src, @@ -9310,12 +8288,11 @@ class CvNative { ); } - late final _Mat_CountNonZeroPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_CountNonZero'); - late final _Mat_CountNonZero = _Mat_CountNonZeroPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_CountNonZeroPtr = + _lookup Function(Mat, ffi.Pointer)>>( + 'Mat_CountNonZero'); + late final _Mat_CountNonZero = + _Mat_CountNonZeroPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_DCT( Mat src, @@ -9329,11 +8306,9 @@ class CvNative { ); } - late final _Mat_DCTPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_DCT'); - late final _Mat_DCT = - _Mat_DCTPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_DCTPtr = + _lookup Function(Mat, Mat, ffi.Int)>>('Mat_DCT'); + late final _Mat_DCT = _Mat_DCTPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_DFT( Mat m, @@ -9347,11 +8322,9 @@ class CvNative { ); } - late final _Mat_DFTPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_DFT'); - late final _Mat_DFT = - _Mat_DFTPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_DFTPtr = + _lookup Function(Mat, Mat, ffi.Int)>>('Mat_DFT'); + late final _Mat_DFT = _Mat_DFTPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_Data( Mat m, @@ -9363,12 +8336,10 @@ class CvNative { ); } - late final _Mat_DataPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_Data'); - late final _Mat_Data = _Mat_DataPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_DataPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Data'); + late final _Mat_Data = + _Mat_DataPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_DataPtr( Mat m, @@ -9384,11 +8355,10 @@ class CvNative { late final _Mat_DataPtrPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer>, - ffi.Pointer)>>('Mat_DataPtr'); + ffi.Pointer Function( + Mat, ffi.Pointer>, ffi.Pointer)>>('Mat_DataPtr'); late final _Mat_DataPtr1 = _Mat_DataPtrPtr.asFunction< - ffi.Pointer Function( - Mat, ffi.Pointer>, ffi.Pointer)>(); + ffi.Pointer Function(Mat, ffi.Pointer>, ffi.Pointer)>(); ffi.Pointer Mat_Determinant( Mat m, @@ -9400,12 +8370,11 @@ class CvNative { ); } - late final _Mat_DeterminantPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_Determinant'); - late final _Mat_Determinant = _Mat_DeterminantPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_DeterminantPtr = + _lookup Function(Mat, ffi.Pointer)>>( + 'Mat_Determinant'); + late final _Mat_Determinant = + _Mat_DeterminantPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Divide( Mat src1, @@ -9419,11 +8388,9 @@ class CvNative { ); } - late final _Mat_DividePtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_Divide'); - late final _Mat_Divide = _Mat_DividePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_DividePtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_Divide'); + late final _Mat_Divide = _Mat_DividePtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_DivideF64( Mat m, @@ -9435,11 +8402,9 @@ class CvNative { ); } - late final _Mat_DivideF64Ptr = _lookup< - ffi.NativeFunction Function(Mat, double_t)>>( - 'Mat_DivideF64'); - late final _Mat_DivideF64 = _Mat_DivideF64Ptr.asFunction< - ffi.Pointer Function(Mat, double)>(); + late final _Mat_DivideF64Ptr = + _lookup Function(Mat, double_t)>>('Mat_DivideF64'); + late final _Mat_DivideF64 = _Mat_DivideF64Ptr.asFunction Function(Mat, double)>(); ffi.Pointer Mat_DivideFloat( Mat m, @@ -9452,10 +8417,8 @@ class CvNative { } late final _Mat_DivideFloatPtr = - _lookup Function(Mat, float_t)>>( - 'Mat_DivideFloat'); - late final _Mat_DivideFloat = _Mat_DivideFloatPtr.asFunction< - ffi.Pointer Function(Mat, double)>(); + _lookup Function(Mat, float_t)>>('Mat_DivideFloat'); + late final _Mat_DivideFloat = _Mat_DivideFloatPtr.asFunction Function(Mat, double)>(); ffi.Pointer Mat_DivideI32( Mat m, @@ -9467,11 +8430,9 @@ class CvNative { ); } - late final _Mat_DivideI32Ptr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int32)>>( - 'Mat_DivideI32'); - late final _Mat_DivideI32 = - _Mat_DivideI32Ptr.asFunction Function(Mat, int)>(); + late final _Mat_DivideI32Ptr = + _lookup Function(Mat, ffi.Int32)>>('Mat_DivideI32'); + late final _Mat_DivideI32 = _Mat_DivideI32Ptr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_DivideSChar( Mat m, @@ -9483,11 +8444,9 @@ class CvNative { ); } - late final _Mat_DivideSCharPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int8)>>( - 'Mat_DivideSChar'); - late final _Mat_DivideSChar = _Mat_DivideSCharPtr.asFunction< - ffi.Pointer Function(Mat, int)>(); + late final _Mat_DivideSCharPtr = + _lookup Function(Mat, ffi.Int8)>>('Mat_DivideSChar'); + late final _Mat_DivideSChar = _Mat_DivideSCharPtr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_DivideUChar( Mat m, @@ -9499,11 +8458,9 @@ class CvNative { ); } - late final _Mat_DivideUCharPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Uint8)>>( - 'Mat_DivideUChar'); - late final _Mat_DivideUChar = _Mat_DivideUCharPtr.asFunction< - ffi.Pointer Function(Mat, int)>(); + late final _Mat_DivideUCharPtr = + _lookup Function(Mat, ffi.Uint8)>>('Mat_DivideUChar'); + late final _Mat_DivideUChar = _Mat_DivideUCharPtr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_Eigen( Mat src, @@ -9519,12 +8476,11 @@ class CvNative { ); } - late final _Mat_EigenPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Pointer)>>('Mat_Eigen'); - late final _Mat_Eigen = _Mat_EigenPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, ffi.Pointer)>(); + late final _Mat_EigenPtr = + _lookup Function(Mat, Mat, Mat, ffi.Pointer)>>( + 'Mat_Eigen'); + late final _Mat_Eigen = + _Mat_EigenPtr.asFunction Function(Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer Mat_EigenNonSymmetric( Mat src, @@ -9538,11 +8494,10 @@ class CvNative { ); } - late final _Mat_EigenNonSymmetricPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_EigenNonSymmetric'); - late final _Mat_EigenNonSymmetric = _Mat_EigenNonSymmetricPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_EigenNonSymmetricPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_EigenNonSymmetric'); + late final _Mat_EigenNonSymmetric = + _Mat_EigenNonSymmetricPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_ElemSize( Mat m, @@ -9554,12 +8509,10 @@ class CvNative { ); } - late final _Mat_ElemSizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_ElemSize'); - late final _Mat_ElemSize = _Mat_ElemSizePtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_ElemSizePtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_ElemSize'); + late final _Mat_ElemSize = + _Mat_ElemSizePtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Empty( Mat m, @@ -9571,12 +8524,10 @@ class CvNative { ); } - late final _Mat_EmptyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_Empty'); - late final _Mat_Empty = _Mat_EmptyPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_EmptyPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Empty'); + late final _Mat_Empty = + _Mat_EmptyPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Exp( Mat src, @@ -9588,11 +8539,8 @@ class CvNative { ); } - late final _Mat_ExpPtr = - _lookup Function(Mat, Mat)>>( - 'Mat_Exp'); - late final _Mat_Exp = - _Mat_ExpPtr.asFunction Function(Mat, Mat)>(); + late final _Mat_ExpPtr = _lookup Function(Mat, Mat)>>('Mat_Exp'); + late final _Mat_Exp = _Mat_ExpPtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_ExtractChannel( Mat src, @@ -9606,12 +8554,10 @@ class CvNative { ); } - late final _Mat_ExtractChannelPtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, ffi.Int)>>( - 'Mat_ExtractChannel'); - late final _Mat_ExtractChannel = _Mat_ExtractChannelPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int)>(); + late final _Mat_ExtractChannelPtr = + _lookup Function(Mat, Mat, ffi.Int)>>('Mat_ExtractChannel'); + late final _Mat_ExtractChannel = + _Mat_ExtractChannelPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_FindNonZero( Mat src, @@ -9624,10 +8570,8 @@ class CvNative { } late final _Mat_FindNonZeroPtr = - _lookup Function(Mat, Mat)>>( - 'Mat_FindNonZero'); - late final _Mat_FindNonZero = _Mat_FindNonZeroPtr.asFunction< - ffi.Pointer Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('Mat_FindNonZero'); + late final _Mat_FindNonZero = _Mat_FindNonZeroPtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_Flip( Mat src, @@ -9641,11 +8585,9 @@ class CvNative { ); } - late final _Mat_FlipPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_Flip'); - late final _Mat_Flip = - _Mat_FlipPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_FlipPtr = + _lookup Function(Mat, Mat, ffi.Int)>>('Mat_Flip'); + late final _Mat_Flip = _Mat_FlipPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_FromCMat( Mat m, @@ -9657,12 +8599,10 @@ class CvNative { ); } - late final _Mat_FromCMatPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_FromCMat'); - late final _Mat_FromCMat = _Mat_FromCMatPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_FromCMatPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_FromCMat'); + late final _Mat_FromCMat = + _Mat_FromCMatPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_FromPtr( Mat m, @@ -9686,11 +8626,10 @@ class CvNative { late final _Mat_FromPtrPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_FromPtr'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_FromPtr'); late final _Mat_FromPtr = _Mat_FromPtrPtr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, int, int, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_Gemm( Mat src1, @@ -9714,11 +8653,9 @@ class CvNative { late final _Mat_GemmPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Double, Mat, ffi.Double, - Mat, ffi.Int)>>('Mat_Gemm'); - late final _Mat_Gemm = _Mat_GemmPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, double, Mat, double, Mat, int)>(); + ffi.Pointer Function(Mat, Mat, ffi.Double, Mat, ffi.Double, Mat, ffi.Int)>>('Mat_Gemm'); + late final _Mat_Gemm = + _Mat_GemmPtr.asFunction Function(Mat, Mat, double, Mat, double, Mat, int)>(); ffi.Pointer Mat_GetDouble( Mat m, @@ -9735,11 +8672,10 @@ class CvNative { } late final _Mat_GetDoublePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, - ffi.Pointer)>>('Mat_GetDouble'); - late final _Mat_GetDouble = _Mat_GetDoublePtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetDouble'); + late final _Mat_GetDouble = + _Mat_GetDoublePtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetDouble3( Mat m, @@ -9759,11 +8695,10 @@ class CvNative { late final _Mat_GetDouble3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer)>>('Mat_GetDouble3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetDouble3'); late final _Mat_GetDouble3 = _Mat_GetDouble3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetFloat( Mat m, @@ -9780,11 +8715,10 @@ class CvNative { } late final _Mat_GetFloatPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetFloat'); - late final _Mat_GetFloat = _Mat_GetFloatPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetFloat'); + late final _Mat_GetFloat = + _Mat_GetFloatPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetFloat3( Mat m, @@ -9804,11 +8738,10 @@ class CvNative { late final _Mat_GetFloat3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer)>>('Mat_GetFloat3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetFloat3'); late final _Mat_GetFloat3 = _Mat_GetFloat3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetInt( Mat m, @@ -9825,11 +8758,10 @@ class CvNative { } late final _Mat_GetIntPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetInt'); - late final _Mat_GetInt = _Mat_GetIntPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetInt'); + late final _Mat_GetInt = + _Mat_GetIntPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetInt3( Mat m, @@ -9849,11 +8781,10 @@ class CvNative { late final _Mat_GetInt3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer)>>('Mat_GetInt3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetInt3'); late final _Mat_GetInt3 = _Mat_GetInt3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetOptimalDFTSize( int vecsize, @@ -9865,12 +8796,11 @@ class CvNative { ); } - late final _Mat_GetOptimalDFTSizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, ffi.Pointer)>>('Mat_GetOptimalDFTSize'); - late final _Mat_GetOptimalDFTSize = _Mat_GetOptimalDFTSizePtr.asFunction< - ffi.Pointer Function(int, ffi.Pointer)>(); + late final _Mat_GetOptimalDFTSizePtr = + _lookup Function(ffi.Int, ffi.Pointer)>>( + 'Mat_GetOptimalDFTSize'); + late final _Mat_GetOptimalDFTSize = + _Mat_GetOptimalDFTSizePtr.asFunction Function(int, ffi.Pointer)>(); ffi.Pointer Mat_GetSChar( Mat m, @@ -9887,11 +8817,10 @@ class CvNative { } late final _Mat_GetSCharPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetSChar'); - late final _Mat_GetSChar = _Mat_GetSCharPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetSChar'); + late final _Mat_GetSChar = + _Mat_GetSCharPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetSChar3( Mat m, @@ -9911,11 +8840,10 @@ class CvNative { late final _Mat_GetSChar3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer)>>('Mat_GetSChar3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetSChar3'); late final _Mat_GetSChar3 = _Mat_GetSChar3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetShort( Mat m, @@ -9932,11 +8860,10 @@ class CvNative { } late final _Mat_GetShortPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetShort'); - late final _Mat_GetShort = _Mat_GetShortPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetShort'); + late final _Mat_GetShort = + _Mat_GetShortPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetShort3( Mat m, @@ -9956,11 +8883,10 @@ class CvNative { late final _Mat_GetShort3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer)>>('Mat_GetShort3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetShort3'); late final _Mat_GetShort3 = _Mat_GetShort3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetUChar( Mat m, @@ -9977,11 +8903,10 @@ class CvNative { } late final _Mat_GetUCharPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetUChar'); - late final _Mat_GetUChar = _Mat_GetUCharPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetUChar'); + late final _Mat_GetUChar = + _Mat_GetUCharPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetUChar3( Mat m, @@ -10001,11 +8926,10 @@ class CvNative { late final _Mat_GetUChar3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer)>>('Mat_GetUChar3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetUChar3'); late final _Mat_GetUChar3 = _Mat_GetUChar3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetUShort( Mat m, @@ -10022,11 +8946,10 @@ class CvNative { } late final _Mat_GetUShortPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, - ffi.Pointer)>>('Mat_GetUShort'); - late final _Mat_GetUShort = _Mat_GetUShortPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetUShort'); + late final _Mat_GetUShort = + _Mat_GetUShortPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetUShort3( Mat m, @@ -10046,11 +8969,10 @@ class CvNative { late final _Mat_GetUShort3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer)>>('Mat_GetUShort3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetUShort3'); late final _Mat_GetUShort3 = _Mat_GetUShort3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec2b( Mat m, @@ -10066,12 +8988,11 @@ class CvNative { ); } - late final _Mat_GetVec2bPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec2b'); - late final _Mat_GetVec2b = _Mat_GetVec2bPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec2bPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec2b'); + late final _Mat_GetVec2b = + _Mat_GetVec2bPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec2d( Mat m, @@ -10087,12 +9008,11 @@ class CvNative { ); } - late final _Mat_GetVec2dPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec2d'); - late final _Mat_GetVec2d = _Mat_GetVec2dPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec2dPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec2d'); + late final _Mat_GetVec2d = + _Mat_GetVec2dPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec2f( Mat m, @@ -10108,12 +9028,11 @@ class CvNative { ); } - late final _Mat_GetVec2fPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec2f'); - late final _Mat_GetVec2f = _Mat_GetVec2fPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec2fPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec2f'); + late final _Mat_GetVec2f = + _Mat_GetVec2fPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec2i( Mat m, @@ -10129,12 +9048,11 @@ class CvNative { ); } - late final _Mat_GetVec2iPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec2i'); - late final _Mat_GetVec2i = _Mat_GetVec2iPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec2iPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec2i'); + late final _Mat_GetVec2i = + _Mat_GetVec2iPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec2s( Mat m, @@ -10150,12 +9068,11 @@ class CvNative { ); } - late final _Mat_GetVec2sPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec2s'); - late final _Mat_GetVec2s = _Mat_GetVec2sPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec2sPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec2s'); + late final _Mat_GetVec2s = + _Mat_GetVec2sPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec2w( Mat m, @@ -10171,12 +9088,11 @@ class CvNative { ); } - late final _Mat_GetVec2wPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec2w'); - late final _Mat_GetVec2w = _Mat_GetVec2wPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec2wPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec2w'); + late final _Mat_GetVec2w = + _Mat_GetVec2wPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec3b( Mat m, @@ -10192,12 +9108,11 @@ class CvNative { ); } - late final _Mat_GetVec3bPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec3b'); - late final _Mat_GetVec3b = _Mat_GetVec3bPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec3bPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec3b'); + late final _Mat_GetVec3b = + _Mat_GetVec3bPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec3d( Mat m, @@ -10213,12 +9128,11 @@ class CvNative { ); } - late final _Mat_GetVec3dPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec3d'); - late final _Mat_GetVec3d = _Mat_GetVec3dPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec3dPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec3d'); + late final _Mat_GetVec3d = + _Mat_GetVec3dPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec3f( Mat m, @@ -10234,12 +9148,11 @@ class CvNative { ); } - late final _Mat_GetVec3fPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec3f'); - late final _Mat_GetVec3f = _Mat_GetVec3fPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec3fPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec3f'); + late final _Mat_GetVec3f = + _Mat_GetVec3fPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec3i( Mat m, @@ -10255,12 +9168,11 @@ class CvNative { ); } - late final _Mat_GetVec3iPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec3i'); - late final _Mat_GetVec3i = _Mat_GetVec3iPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec3iPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec3i'); + late final _Mat_GetVec3i = + _Mat_GetVec3iPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec3s( Mat m, @@ -10276,12 +9188,11 @@ class CvNative { ); } - late final _Mat_GetVec3sPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec3s'); - late final _Mat_GetVec3s = _Mat_GetVec3sPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec3sPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec3s'); + late final _Mat_GetVec3s = + _Mat_GetVec3sPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec3w( Mat m, @@ -10297,12 +9208,11 @@ class CvNative { ); } - late final _Mat_GetVec3wPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec3w'); - late final _Mat_GetVec3w = _Mat_GetVec3wPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec3wPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec3w'); + late final _Mat_GetVec3w = + _Mat_GetVec3wPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec4b( Mat m, @@ -10318,12 +9228,11 @@ class CvNative { ); } - late final _Mat_GetVec4bPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec4b'); - late final _Mat_GetVec4b = _Mat_GetVec4bPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec4bPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec4b'); + late final _Mat_GetVec4b = + _Mat_GetVec4bPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec4d( Mat m, @@ -10339,12 +9248,11 @@ class CvNative { ); } - late final _Mat_GetVec4dPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec4d'); - late final _Mat_GetVec4d = _Mat_GetVec4dPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec4dPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec4d'); + late final _Mat_GetVec4d = + _Mat_GetVec4dPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec4f( Mat m, @@ -10360,12 +9268,11 @@ class CvNative { ); } - late final _Mat_GetVec4fPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec4f'); - late final _Mat_GetVec4f = _Mat_GetVec4fPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec4fPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec4f'); + late final _Mat_GetVec4f = + _Mat_GetVec4fPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec4i( Mat m, @@ -10381,12 +9288,11 @@ class CvNative { ); } - late final _Mat_GetVec4iPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec4i'); - late final _Mat_GetVec4i = _Mat_GetVec4iPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec4iPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec4i'); + late final _Mat_GetVec4i = + _Mat_GetVec4iPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec4s( Mat m, @@ -10402,12 +9308,11 @@ class CvNative { ); } - late final _Mat_GetVec4sPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec4s'); - late final _Mat_GetVec4s = _Mat_GetVec4sPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec4sPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec4s'); + late final _Mat_GetVec4s = + _Mat_GetVec4sPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec4w( Mat m, @@ -10423,13 +9328,12 @@ class CvNative { ); } - late final _Mat_GetVec4wPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec4w'); - late final _Mat_GetVec4w = _Mat_GetVec4wPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); - + late final _Mat_GetVec4wPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec4w'); + late final _Mat_GetVec4w = + _Mat_GetVec4wPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + ffi.Pointer Mat_GetVec6d( Mat m, int row, @@ -10444,12 +9348,11 @@ class CvNative { ); } - late final _Mat_GetVec6dPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec6d'); - late final _Mat_GetVec6d = _Mat_GetVec6dPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec6dPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec6d'); + late final _Mat_GetVec6d = + _Mat_GetVec6dPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec6f( Mat m, @@ -10465,12 +9368,11 @@ class CvNative { ); } - late final _Mat_GetVec6fPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec6f'); - late final _Mat_GetVec6f = _Mat_GetVec6fPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec6fPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec6f'); + late final _Mat_GetVec6f = + _Mat_GetVec6fPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec6i( Mat m, @@ -10486,12 +9388,11 @@ class CvNative { ); } - late final _Mat_GetVec6iPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec6i'); - late final _Mat_GetVec6i = _Mat_GetVec6iPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec6iPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec6i'); + late final _Mat_GetVec6i = + _Mat_GetVec6iPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec8i( Mat m, @@ -10507,12 +9408,11 @@ class CvNative { ); } - late final _Mat_GetVec8iPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec8i'); - late final _Mat_GetVec8i = _Mat_GetVec8iPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec8iPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec8i'); + late final _Mat_GetVec8i = + _Mat_GetVec8iPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_Hconcat( Mat src1, @@ -10526,11 +9426,9 @@ class CvNative { ); } - late final _Mat_HconcatPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_Hconcat'); - late final _Mat_Hconcat = _Mat_HconcatPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_HconcatPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_Hconcat'); + late final _Mat_Hconcat = _Mat_HconcatPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_Idct( Mat src, @@ -10544,11 +9442,9 @@ class CvNative { ); } - late final _Mat_IdctPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_Idct'); - late final _Mat_Idct = - _Mat_IdctPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_IdctPtr = + _lookup Function(Mat, Mat, ffi.Int)>>('Mat_Idct'); + late final _Mat_Idct = _Mat_IdctPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_Idft( Mat src, @@ -10564,12 +9460,9 @@ class CvNative { ); } - late final _Mat_IdftPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Int)>>('Mat_Idft'); - late final _Mat_Idft = _Mat_IdftPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, int)>(); + late final _Mat_IdftPtr = + _lookup Function(Mat, Mat, ffi.Int, ffi.Int)>>('Mat_Idft'); + late final _Mat_Idft = _Mat_IdftPtr.asFunction Function(Mat, Mat, int, int)>(); ffi.Pointer Mat_InRange( Mat src, @@ -10585,11 +9478,9 @@ class CvNative { ); } - late final _Mat_InRangePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat)>>('Mat_InRange'); - late final _Mat_InRange = _Mat_InRangePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat)>(); + late final _Mat_InRangePtr = + _lookup Function(Mat, Mat, Mat, Mat)>>('Mat_InRange'); + late final _Mat_InRange = _Mat_InRangePtr.asFunction Function(Mat, Mat, Mat, Mat)>(); ffi.Pointer Mat_InRangeWithScalar( Mat src, @@ -10605,12 +9496,11 @@ class CvNative { ); } - late final _Mat_InRangeWithScalarPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Scalar, Scalar, Mat)>>('Mat_InRangeWithScalar'); - late final _Mat_InRangeWithScalar = _Mat_InRangeWithScalarPtr.asFunction< - ffi.Pointer Function(Mat, Scalar, Scalar, Mat)>(); + late final _Mat_InRangeWithScalarPtr = + _lookup Function(Mat, Scalar, Scalar, Mat)>>( + 'Mat_InRangeWithScalar'); + late final _Mat_InRangeWithScalar = + _Mat_InRangeWithScalarPtr.asFunction Function(Mat, Scalar, Scalar, Mat)>(); ffi.Pointer Mat_InsertChannel( Mat src, @@ -10624,12 +9514,10 @@ class CvNative { ); } - late final _Mat_InsertChannelPtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, ffi.Int)>>( - 'Mat_InsertChannel'); - late final _Mat_InsertChannel = _Mat_InsertChannelPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int)>(); + late final _Mat_InsertChannelPtr = + _lookup Function(Mat, Mat, ffi.Int)>>('Mat_InsertChannel'); + late final _Mat_InsertChannel = + _Mat_InsertChannelPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_Invert( Mat src, @@ -10645,12 +9533,11 @@ class CvNative { ); } - late final _Mat_InvertPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Pointer)>>('Mat_Invert'); - late final _Mat_Invert = _Mat_InvertPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, ffi.Pointer)>(); + late final _Mat_InvertPtr = + _lookup Function(Mat, Mat, ffi.Int, ffi.Pointer)>>( + 'Mat_Invert'); + late final _Mat_Invert = + _Mat_InvertPtr.asFunction Function(Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer Mat_IsContinuous( Mat m, @@ -10662,12 +9549,11 @@ class CvNative { ); } - late final _Mat_IsContinuousPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_IsContinuous'); - late final _Mat_IsContinuous = _Mat_IsContinuousPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_IsContinuousPtr = + _lookup Function(Mat, ffi.Pointer)>>( + 'Mat_IsContinuous'); + late final _Mat_IsContinuous = + _Mat_IsContinuousPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Log( Mat src, @@ -10679,11 +9565,8 @@ class CvNative { ); } - late final _Mat_LogPtr = - _lookup Function(Mat, Mat)>>( - 'Mat_Log'); - late final _Mat_Log = - _Mat_LogPtr.asFunction Function(Mat, Mat)>(); + late final _Mat_LogPtr = _lookup Function(Mat, Mat)>>('Mat_Log'); + late final _Mat_Log = _Mat_LogPtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_Magnitude( Mat x, @@ -10697,11 +9580,9 @@ class CvNative { ); } - late final _Mat_MagnitudePtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_Magnitude'); - late final _Mat_Magnitude = _Mat_MagnitudePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_MagnitudePtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_Magnitude'); + late final _Mat_Magnitude = _Mat_MagnitudePtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_Max( Mat src1, @@ -10715,11 +9596,9 @@ class CvNative { ); } - late final _Mat_MaxPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_Max'); - late final _Mat_Max = - _Mat_MaxPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_MaxPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_Max'); + late final _Mat_Max = _Mat_MaxPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_Mean( Mat m, @@ -10731,12 +9610,9 @@ class CvNative { ); } - late final _Mat_MeanPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_Mean'); - late final _Mat_Mean = _Mat_MeanPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_MeanPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Mean'); + late final _Mat_Mean = _Mat_MeanPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_MeanStdDev( Mat src, @@ -10751,12 +9627,10 @@ class CvNative { } late final _Mat_MeanStdDevPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer, - ffi.Pointer)>>('Mat_MeanStdDev'); + ffi.NativeFunction Function(Mat, ffi.Pointer, ffi.Pointer)>>( + 'Mat_MeanStdDev'); late final _Mat_MeanStdDev = _Mat_MeanStdDevPtr.asFunction< - ffi.Pointer Function( - Mat, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(Mat, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Mat_MeanStdDevWithMask( Mat src, @@ -10774,11 +9648,10 @@ class CvNative { late final _Mat_MeanStdDevWithMaskPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer, - ffi.Pointer, Mat)>>('Mat_MeanStdDevWithMask'); + ffi.Pointer Function( + Mat, ffi.Pointer, ffi.Pointer, Mat)>>('Mat_MeanStdDevWithMask'); late final _Mat_MeanStdDevWithMask = _Mat_MeanStdDevWithMaskPtr.asFunction< - ffi.Pointer Function( - Mat, ffi.Pointer, ffi.Pointer, Mat)>(); + ffi.Pointer Function(Mat, ffi.Pointer, ffi.Pointer, Mat)>(); ffi.Pointer Mat_MeanWithMask( Mat m, @@ -10792,12 +9665,11 @@ class CvNative { ); } - late final _Mat_MeanWithMaskPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Pointer)>>('Mat_MeanWithMask'); - late final _Mat_MeanWithMask = _Mat_MeanWithMaskPtr.asFunction< - ffi.Pointer Function(Mat, Mat, ffi.Pointer)>(); + late final _Mat_MeanWithMaskPtr = + _lookup Function(Mat, Mat, ffi.Pointer)>>( + 'Mat_MeanWithMask'); + late final _Mat_MeanWithMask = + _Mat_MeanWithMaskPtr.asFunction Function(Mat, Mat, ffi.Pointer)>(); ffi.Pointer Mat_Merge( VecMat mats, @@ -10810,10 +9682,8 @@ class CvNative { } late final _Mat_MergePtr = - _lookup Function(VecMat, Mat)>>( - 'Mat_Merge'); - late final _Mat_Merge = - _Mat_MergePtr.asFunction Function(VecMat, Mat)>(); + _lookup Function(VecMat, Mat)>>('Mat_Merge'); + late final _Mat_Merge = _Mat_MergePtr.asFunction Function(VecMat, Mat)>(); ffi.Pointer Mat_Min( Mat src1, @@ -10827,11 +9697,9 @@ class CvNative { ); } - late final _Mat_MinPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_Min'); - late final _Mat_Min = - _Mat_MinPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_MinPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_Min'); + late final _Mat_Min = _Mat_MinPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_MinMaxIdx( Mat m, @@ -10851,19 +9719,11 @@ class CvNative { late final _Mat_MinMaxIdxPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('Mat_MinMaxIdx'); + ffi.Pointer Function(Mat, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('Mat_MinMaxIdx'); late final _Mat_MinMaxIdx = _Mat_MinMaxIdxPtr.asFunction< - ffi.Pointer Function( - Mat, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function(Mat, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Mat_MinMaxLoc( Mat m, @@ -10883,15 +9743,11 @@ class CvNative { late final _Mat_MinMaxLocPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('Mat_MinMaxLoc'); + ffi.Pointer Function(Mat, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('Mat_MinMaxLoc'); late final _Mat_MinMaxLoc = _Mat_MinMaxLocPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer, - ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Mat_MixChannels( VecMat src, @@ -10905,12 +9761,10 @@ class CvNative { ); } - late final _Mat_MixChannelsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecMat, VecMat, VecInt)>>('Mat_MixChannels'); - late final _Mat_MixChannels = _Mat_MixChannelsPtr.asFunction< - ffi.Pointer Function(VecMat, VecMat, VecInt)>(); + late final _Mat_MixChannelsPtr = + _lookup Function(VecMat, VecMat, VecInt)>>('Mat_MixChannels'); + late final _Mat_MixChannels = + _Mat_MixChannelsPtr.asFunction Function(VecMat, VecMat, VecInt)>(); ffi.Pointer Mat_MulSpectrums( Mat a, @@ -10926,12 +9780,10 @@ class CvNative { ); } - late final _Mat_MulSpectrumsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Int)>>('Mat_MulSpectrums'); - late final _Mat_MulSpectrums = _Mat_MulSpectrumsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, int)>(); + late final _Mat_MulSpectrumsPtr = + _lookup Function(Mat, Mat, Mat, ffi.Int)>>('Mat_MulSpectrums'); + late final _Mat_MulSpectrums = + _Mat_MulSpectrumsPtr.asFunction Function(Mat, Mat, Mat, int)>(); ffi.Pointer Mat_Multiply( Mat src1, @@ -10945,11 +9797,9 @@ class CvNative { ); } - late final _Mat_MultiplyPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_Multiply'); - late final _Mat_Multiply = _Mat_MultiplyPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_MultiplyPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_Multiply'); + late final _Mat_Multiply = _Mat_MultiplyPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_MultiplyF64( Mat m, @@ -10961,11 +9811,9 @@ class CvNative { ); } - late final _Mat_MultiplyF64Ptr = _lookup< - ffi.NativeFunction Function(Mat, double_t)>>( - 'Mat_MultiplyF64'); - late final _Mat_MultiplyF64 = _Mat_MultiplyF64Ptr.asFunction< - ffi.Pointer Function(Mat, double)>(); + late final _Mat_MultiplyF64Ptr = + _lookup Function(Mat, double_t)>>('Mat_MultiplyF64'); + late final _Mat_MultiplyF64 = _Mat_MultiplyF64Ptr.asFunction Function(Mat, double)>(); ffi.Pointer Mat_MultiplyFloat( Mat m, @@ -10978,10 +9826,9 @@ class CvNative { } late final _Mat_MultiplyFloatPtr = - _lookup Function(Mat, float_t)>>( - 'Mat_MultiplyFloat'); - late final _Mat_MultiplyFloat = _Mat_MultiplyFloatPtr.asFunction< - ffi.Pointer Function(Mat, double)>(); + _lookup Function(Mat, float_t)>>('Mat_MultiplyFloat'); + late final _Mat_MultiplyFloat = + _Mat_MultiplyFloatPtr.asFunction Function(Mat, double)>(); ffi.Pointer Mat_MultiplyI32( Mat m, @@ -10993,11 +9840,9 @@ class CvNative { ); } - late final _Mat_MultiplyI32Ptr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int32)>>( - 'Mat_MultiplyI32'); - late final _Mat_MultiplyI32 = _Mat_MultiplyI32Ptr.asFunction< - ffi.Pointer Function(Mat, int)>(); + late final _Mat_MultiplyI32Ptr = + _lookup Function(Mat, ffi.Int32)>>('Mat_MultiplyI32'); + late final _Mat_MultiplyI32 = _Mat_MultiplyI32Ptr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_MultiplyMatrix( Mat x, @@ -11011,12 +9856,11 @@ class CvNative { ); } - late final _Mat_MultiplyMatrixPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Pointer)>>('Mat_MultiplyMatrix'); - late final _Mat_MultiplyMatrix = _Mat_MultiplyMatrixPtr.asFunction< - ffi.Pointer Function(Mat, Mat, ffi.Pointer)>(); + late final _Mat_MultiplyMatrixPtr = + _lookup Function(Mat, Mat, ffi.Pointer)>>( + 'Mat_MultiplyMatrix'); + late final _Mat_MultiplyMatrix = + _Mat_MultiplyMatrixPtr.asFunction Function(Mat, Mat, ffi.Pointer)>(); ffi.Pointer Mat_MultiplySChar( Mat m, @@ -11028,11 +9872,10 @@ class CvNative { ); } - late final _Mat_MultiplySCharPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int8)>>( - 'Mat_MultiplySChar'); - late final _Mat_MultiplySChar = _Mat_MultiplySCharPtr.asFunction< - ffi.Pointer Function(Mat, int)>(); + late final _Mat_MultiplySCharPtr = + _lookup Function(Mat, ffi.Int8)>>('Mat_MultiplySChar'); + late final _Mat_MultiplySChar = + _Mat_MultiplySCharPtr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_MultiplyUChar( Mat m, @@ -11044,11 +9887,10 @@ class CvNative { ); } - late final _Mat_MultiplyUCharPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Uint8)>>( - 'Mat_MultiplyUChar'); - late final _Mat_MultiplyUChar = _Mat_MultiplyUCharPtr.asFunction< - ffi.Pointer Function(Mat, int)>(); + late final _Mat_MultiplyUCharPtr = + _lookup Function(Mat, ffi.Uint8)>>('Mat_MultiplyUChar'); + late final _Mat_MultiplyUChar = + _Mat_MultiplyUCharPtr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_MultiplyWithParams( Mat src1, @@ -11066,12 +9908,11 @@ class CvNative { ); } - late final _Mat_MultiplyWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Double, ffi.Int)>>('Mat_MultiplyWithParams'); - late final _Mat_MultiplyWithParams = _Mat_MultiplyWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, double, int)>(); + late final _Mat_MultiplyWithParamsPtr = + _lookup Function(Mat, Mat, Mat, ffi.Double, ffi.Int)>>( + 'Mat_MultiplyWithParams'); + late final _Mat_MultiplyWithParams = + _Mat_MultiplyWithParamsPtr.asFunction Function(Mat, Mat, Mat, double, int)>(); /// @brief Create empty Mat /// @@ -11092,11 +9933,9 @@ class CvNative { ); } - late final _Mat_NewPtr = _lookup< - ffi.NativeFunction Function(ffi.Pointer)>>( - 'Mat_New'); - late final _Mat_New = _Mat_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _Mat_NewPtr = + _lookup Function(ffi.Pointer)>>('Mat_New'); + late final _Mat_New = _Mat_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer Mat_NewFromBytes( int rows, @@ -11118,16 +9957,10 @@ class CvNative { late final _Mat_NewFromBytesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, - ffi.Int, - ffi.Int, - ffi.Pointer, - ffi.Int, + ffi.Pointer Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer, ffi.Int, ffi.Pointer)>>('Mat_NewFromBytes'); late final _Mat_NewFromBytes = _Mat_NewFromBytesPtr.asFunction< - ffi.Pointer Function( - int, int, int, ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function(int, int, int, ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer Mat_NewFromScalar( Scalar ar, @@ -11141,12 +9974,11 @@ class CvNative { ); } - late final _Mat_NewFromScalarPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Scalar, ffi.Int, ffi.Pointer)>>('Mat_NewFromScalar'); - late final _Mat_NewFromScalar = _Mat_NewFromScalarPtr.asFunction< - ffi.Pointer Function(Scalar, int, ffi.Pointer)>(); + late final _Mat_NewFromScalarPtr = + _lookup Function(Scalar, ffi.Int, ffi.Pointer)>>( + 'Mat_NewFromScalar'); + late final _Mat_NewFromScalar = + _Mat_NewFromScalarPtr.asFunction Function(Scalar, int, ffi.Pointer)>(); ffi.Pointer Mat_NewFromVecPoint( VecPoint vec, @@ -11158,12 +9990,11 @@ class CvNative { ); } - late final _Mat_NewFromVecPointPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('Mat_NewFromVecPoint'); - late final _Mat_NewFromVecPoint = _Mat_NewFromVecPointPtr.asFunction< - ffi.Pointer Function(VecPoint, ffi.Pointer)>(); + late final _Mat_NewFromVecPointPtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'Mat_NewFromVecPoint'); + late final _Mat_NewFromVecPoint = + _Mat_NewFromVecPointPtr.asFunction Function(VecPoint, ffi.Pointer)>(); ffi.Pointer Mat_NewFromVecPoint2f( VecPoint2f vec, @@ -11175,12 +10006,11 @@ class CvNative { ); } - late final _Mat_NewFromVecPoint2fPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint2f, ffi.Pointer)>>('Mat_NewFromVecPoint2f'); - late final _Mat_NewFromVecPoint2f = _Mat_NewFromVecPoint2fPtr.asFunction< - ffi.Pointer Function(VecPoint2f, ffi.Pointer)>(); + late final _Mat_NewFromVecPoint2fPtr = + _lookup Function(VecPoint2f, ffi.Pointer)>>( + 'Mat_NewFromVecPoint2f'); + late final _Mat_NewFromVecPoint2f = + _Mat_NewFromVecPoint2fPtr.asFunction Function(VecPoint2f, ffi.Pointer)>(); ffi.Pointer Mat_NewFromVecPoint3f( VecPoint3f vec, @@ -11192,12 +10022,11 @@ class CvNative { ); } - late final _Mat_NewFromVecPoint3fPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint3f, ffi.Pointer)>>('Mat_NewFromVecPoint3f'); - late final _Mat_NewFromVecPoint3f = _Mat_NewFromVecPoint3fPtr.asFunction< - ffi.Pointer Function(VecPoint3f, ffi.Pointer)>(); + late final _Mat_NewFromVecPoint3fPtr = + _lookup Function(VecPoint3f, ffi.Pointer)>>( + 'Mat_NewFromVecPoint3f'); + late final _Mat_NewFromVecPoint3f = + _Mat_NewFromVecPoint3fPtr.asFunction Function(VecPoint3f, ffi.Pointer)>(); ffi.Pointer Mat_NewWithSize( int rows, @@ -11214,11 +10043,10 @@ class CvNative { } late final _Mat_NewWithSizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_NewWithSize'); - late final _Mat_NewWithSize = _Mat_NewWithSizePtr.asFunction< - ffi.Pointer Function(int, int, int, ffi.Pointer)>(); + ffi.NativeFunction Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_NewWithSize'); + late final _Mat_NewWithSize = + _Mat_NewWithSizePtr.asFunction Function(int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_NewWithSizeFromScalar( Scalar ar, @@ -11238,12 +10066,10 @@ class CvNative { late final _Mat_NewWithSizeFromScalarPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Scalar, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer)>>('Mat_NewWithSizeFromScalar'); - late final _Mat_NewWithSizeFromScalar = - _Mat_NewWithSizeFromScalarPtr.asFunction< ffi.Pointer Function( - Scalar, int, int, int, ffi.Pointer)>(); + Scalar, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_NewWithSizeFromScalar'); + late final _Mat_NewWithSizeFromScalar = _Mat_NewWithSizeFromScalarPtr.asFunction< + ffi.Pointer Function(Scalar, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_NewWithSizes( VecInt sizes, @@ -11257,12 +10083,11 @@ class CvNative { ); } - late final _Mat_NewWithSizesPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecInt, ffi.Int, ffi.Pointer)>>('Mat_NewWithSizes'); - late final _Mat_NewWithSizes = _Mat_NewWithSizesPtr.asFunction< - ffi.Pointer Function(VecInt, int, ffi.Pointer)>(); + late final _Mat_NewWithSizesPtr = + _lookup Function(VecInt, ffi.Int, ffi.Pointer)>>( + 'Mat_NewWithSizes'); + late final _Mat_NewWithSizes = + _Mat_NewWithSizesPtr.asFunction Function(VecInt, int, ffi.Pointer)>(); ffi.Pointer Mat_NewWithSizesFromBytes( VecInt sizes, @@ -11278,14 +10103,11 @@ class CvNative { ); } - late final _Mat_NewWithSizesFromBytesPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecInt, ffi.Int, VecChar, - ffi.Pointer)>>('Mat_NewWithSizesFromBytes'); - late final _Mat_NewWithSizesFromBytes = - _Mat_NewWithSizesFromBytesPtr.asFunction< - ffi.Pointer Function( - VecInt, int, VecChar, ffi.Pointer)>(); + late final _Mat_NewWithSizesFromBytesPtr = + _lookup Function(VecInt, ffi.Int, VecChar, ffi.Pointer)>>( + 'Mat_NewWithSizesFromBytes'); + late final _Mat_NewWithSizesFromBytes = _Mat_NewWithSizesFromBytesPtr.asFunction< + ffi.Pointer Function(VecInt, int, VecChar, ffi.Pointer)>(); ffi.Pointer Mat_NewWithSizesFromScalar( VecInt sizes, @@ -11301,14 +10123,11 @@ class CvNative { ); } - late final _Mat_NewWithSizesFromScalarPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecInt, ffi.Int, Scalar, - ffi.Pointer)>>('Mat_NewWithSizesFromScalar'); - late final _Mat_NewWithSizesFromScalar = - _Mat_NewWithSizesFromScalarPtr.asFunction< - ffi.Pointer Function( - VecInt, int, Scalar, ffi.Pointer)>(); + late final _Mat_NewWithSizesFromScalarPtr = + _lookup Function(VecInt, ffi.Int, Scalar, ffi.Pointer)>>( + 'Mat_NewWithSizesFromScalar'); + late final _Mat_NewWithSizesFromScalar = _Mat_NewWithSizesFromScalarPtr.asFunction< + ffi.Pointer Function(VecInt, int, Scalar, ffi.Pointer)>(); ffi.Pointer Mat_Normalize( Mat src, @@ -11326,12 +10145,11 @@ class CvNative { ); } - late final _Mat_NormalizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Double, ffi.Double, ffi.Int)>>('Mat_Normalize'); - late final _Mat_Normalize = _Mat_NormalizePtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, double, int)>(); + late final _Mat_NormalizePtr = + _lookup Function(Mat, Mat, ffi.Double, ffi.Double, ffi.Int)>>( + 'Mat_Normalize'); + late final _Mat_Normalize = + _Mat_NormalizePtr.asFunction Function(Mat, Mat, double, double, int)>(); ffi.Pointer Mat_PCACompute( Mat src, @@ -11349,12 +10167,11 @@ class CvNative { ); } - late final _Mat_PCAComputePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, ffi.Int)>>('Mat_PCACompute'); - late final _Mat_PCACompute = _Mat_PCAComputePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, int)>(); + late final _Mat_PCAComputePtr = + _lookup Function(Mat, Mat, Mat, Mat, ffi.Int)>>( + 'Mat_PCACompute'); + late final _Mat_PCACompute = + _Mat_PCAComputePtr.asFunction Function(Mat, Mat, Mat, Mat, int)>(); ffi.Pointer Mat_PatchNaNs( Mat m, @@ -11366,11 +10183,9 @@ class CvNative { ); } - late final _Mat_PatchNaNsPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Double)>>( - 'Mat_PatchNaNs'); - late final _Mat_PatchNaNs = _Mat_PatchNaNsPtr.asFunction< - ffi.Pointer Function(Mat, double)>(); + late final _Mat_PatchNaNsPtr = + _lookup Function(Mat, ffi.Double)>>('Mat_PatchNaNs'); + late final _Mat_PatchNaNs = _Mat_PatchNaNsPtr.asFunction Function(Mat, double)>(); ffi.Pointer Mat_PerspectiveTransform( Mat src, @@ -11384,11 +10199,10 @@ class CvNative { ); } - late final _Mat_PerspectiveTransformPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_PerspectiveTransform'); - late final _Mat_PerspectiveTransform = _Mat_PerspectiveTransformPtr - .asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_PerspectiveTransformPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_PerspectiveTransform'); + late final _Mat_PerspectiveTransform = + _Mat_PerspectiveTransformPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_Phase( Mat x, @@ -11404,12 +10218,9 @@ class CvNative { ); } - late final _Mat_PhasePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Bool)>>('Mat_Phase'); - late final _Mat_Phase = _Mat_PhasePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, bool)>(); + late final _Mat_PhasePtr = + _lookup Function(Mat, Mat, Mat, ffi.Bool)>>('Mat_Phase'); + late final _Mat_Phase = _Mat_PhasePtr.asFunction Function(Mat, Mat, Mat, bool)>(); ffi.Pointer Mat_PolarToCart( Mat magnitude, @@ -11427,12 +10238,11 @@ class CvNative { ); } - late final _Mat_PolarToCartPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, ffi.Bool)>>('Mat_PolarToCart'); - late final _Mat_PolarToCart = _Mat_PolarToCartPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, bool)>(); + late final _Mat_PolarToCartPtr = + _lookup Function(Mat, Mat, Mat, Mat, ffi.Bool)>>( + 'Mat_PolarToCart'); + late final _Mat_PolarToCart = + _Mat_PolarToCartPtr.asFunction Function(Mat, Mat, Mat, Mat, bool)>(); ffi.Pointer Mat_Pow( Mat src, @@ -11446,11 +10256,9 @@ class CvNative { ); } - late final _Mat_PowPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Double, Mat)>>('Mat_Pow'); - late final _Mat_Pow = _Mat_PowPtr.asFunction< - ffi.Pointer Function(Mat, double, Mat)>(); + late final _Mat_PowPtr = + _lookup Function(Mat, ffi.Double, Mat)>>('Mat_Pow'); + late final _Mat_Pow = _Mat_PowPtr.asFunction Function(Mat, double, Mat)>(); ffi.Pointer Mat_Ptr_f32_1( Mat m, @@ -11465,12 +10273,11 @@ class CvNative { } late final _Mat_Ptr_f32_1Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_f32_1'); + ffi + .NativeFunction Function(Mat, ffi.Int, ffi.Pointer>)>>( + 'Mat_Ptr_f32_1'); late final _Mat_Ptr_f32_1 = _Mat_Ptr_f32_1Ptr.asFunction< - ffi.Pointer Function( - Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_f32_2( Mat m, @@ -11488,11 +10295,10 @@ class CvNative { late final _Mat_Ptr_f32_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_f32_2'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_f32_2'); late final _Mat_Ptr_f32_2 = _Mat_Ptr_f32_2Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_f32_3( Mat m, @@ -11512,11 +10318,10 @@ class CvNative { late final _Mat_Ptr_f32_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_f32_3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_f32_3'); late final _Mat_Ptr_f32_3 = _Mat_Ptr_f32_3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_f64_1( Mat m, @@ -11532,11 +10337,10 @@ class CvNative { late final _Mat_Ptr_f64_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_f64_1'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_f64_1'); late final _Mat_Ptr_f64_1 = _Mat_Ptr_f64_1Ptr.asFunction< - ffi.Pointer Function( - Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_f64_2( Mat m, @@ -11554,11 +10358,10 @@ class CvNative { late final _Mat_Ptr_f64_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_f64_2'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_f64_2'); late final _Mat_Ptr_f64_2 = _Mat_Ptr_f64_2Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_f64_3( Mat m, @@ -11578,11 +10381,10 @@ class CvNative { late final _Mat_Ptr_f64_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_f64_3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_f64_3'); late final _Mat_Ptr_f64_3 = _Mat_Ptr_f64_3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i16_1( Mat m, @@ -11597,12 +10399,11 @@ class CvNative { } late final _Mat_Ptr_i16_1Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_i16_1'); + ffi + .NativeFunction Function(Mat, ffi.Int, ffi.Pointer>)>>( + 'Mat_Ptr_i16_1'); late final _Mat_Ptr_i16_1 = _Mat_Ptr_i16_1Ptr.asFunction< - ffi.Pointer Function( - Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i16_2( Mat m, @@ -11620,11 +10421,10 @@ class CvNative { late final _Mat_Ptr_i16_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_i16_2'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i16_2'); late final _Mat_Ptr_i16_2 = _Mat_Ptr_i16_2Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i16_3( Mat m, @@ -11644,11 +10444,10 @@ class CvNative { late final _Mat_Ptr_i16_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_i16_3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i16_3'); late final _Mat_Ptr_i16_3 = _Mat_Ptr_i16_3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i32_1( Mat m, @@ -11664,11 +10463,9 @@ class CvNative { late final _Mat_Ptr_i32_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_i32_1'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i32_1'); late final _Mat_Ptr_i32_1 = _Mat_Ptr_i32_1Ptr.asFunction< - ffi.Pointer Function( - Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i32_2( Mat m, @@ -11686,11 +10483,10 @@ class CvNative { late final _Mat_Ptr_i32_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_i32_2'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i32_2'); late final _Mat_Ptr_i32_2 = _Mat_Ptr_i32_2Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i32_3( Mat m, @@ -11710,11 +10506,10 @@ class CvNative { late final _Mat_Ptr_i32_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_i32_3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i32_3'); late final _Mat_Ptr_i32_3 = _Mat_Ptr_i32_3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i8_1( Mat m, @@ -11730,11 +10525,9 @@ class CvNative { late final _Mat_Ptr_i8_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_i8_1'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i8_1'); late final _Mat_Ptr_i8_1 = _Mat_Ptr_i8_1Ptr.asFunction< - ffi.Pointer Function( - Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i8_2( Mat m, @@ -11752,11 +10545,10 @@ class CvNative { late final _Mat_Ptr_i8_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_i8_2'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i8_2'); late final _Mat_Ptr_i8_2 = _Mat_Ptr_i8_2Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i8_3( Mat m, @@ -11776,11 +10568,10 @@ class CvNative { late final _Mat_Ptr_i8_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_i8_3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i8_3'); late final _Mat_Ptr_i8_3 = _Mat_Ptr_i8_3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_u16_1( Mat m, @@ -11795,12 +10586,10 @@ class CvNative { } late final _Mat_Ptr_u16_1Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_u16_1'); + ffi.NativeFunction Function(Mat, ffi.Int, ffi.Pointer>)>>( + 'Mat_Ptr_u16_1'); late final _Mat_Ptr_u16_1 = _Mat_Ptr_u16_1Ptr.asFunction< - ffi.Pointer Function( - Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_u16_2( Mat m, @@ -11818,11 +10607,10 @@ class CvNative { late final _Mat_Ptr_u16_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_u16_2'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_u16_2'); late final _Mat_Ptr_u16_2 = _Mat_Ptr_u16_2Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_u16_3( Mat m, @@ -11842,11 +10630,10 @@ class CvNative { late final _Mat_Ptr_u16_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_u16_3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_u16_3'); late final _Mat_Ptr_u16_3 = _Mat_Ptr_u16_3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_u8_1( Mat m, @@ -11861,12 +10648,10 @@ class CvNative { } late final _Mat_Ptr_u8_1Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_u8_1'); + ffi.NativeFunction Function(Mat, ffi.Int, ffi.Pointer>)>>( + 'Mat_Ptr_u8_1'); late final _Mat_Ptr_u8_1 = _Mat_Ptr_u8_1Ptr.asFunction< - ffi.Pointer Function( - Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_u8_2( Mat m, @@ -11884,11 +10669,10 @@ class CvNative { late final _Mat_Ptr_u8_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_u8_2'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_u8_2'); late final _Mat_Ptr_u8_2 = _Mat_Ptr_u8_2Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_u8_3( Mat m, @@ -11908,11 +10692,10 @@ class CvNative { late final _Mat_Ptr_u8_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_u8_3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_u8_3'); late final _Mat_Ptr_u8_3 = _Mat_Ptr_u8_3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Reduce( Mat src, @@ -11930,12 +10713,11 @@ class CvNative { ); } - late final _Mat_ReducePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Int, ffi.Int)>>('Mat_Reduce'); - late final _Mat_Reduce = _Mat_ReducePtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, int, int)>(); + late final _Mat_ReducePtr = + _lookup Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Int)>>( + 'Mat_Reduce'); + late final _Mat_Reduce = + _Mat_ReducePtr.asFunction Function(Mat, Mat, int, int, int)>(); ffi.Pointer Mat_ReduceArgMax( Mat src, @@ -11951,12 +10733,11 @@ class CvNative { ); } - late final _Mat_ReduceArgMaxPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Bool)>>('Mat_ReduceArgMax'); - late final _Mat_ReduceArgMax = _Mat_ReduceArgMaxPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, bool)>(); + late final _Mat_ReduceArgMaxPtr = + _lookup Function(Mat, Mat, ffi.Int, ffi.Bool)>>( + 'Mat_ReduceArgMax'); + late final _Mat_ReduceArgMax = + _Mat_ReduceArgMaxPtr.asFunction Function(Mat, Mat, int, bool)>(); ffi.Pointer Mat_ReduceArgMin( Mat src, @@ -11972,12 +10753,11 @@ class CvNative { ); } - late final _Mat_ReduceArgMinPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Bool)>>('Mat_ReduceArgMin'); - late final _Mat_ReduceArgMin = _Mat_ReduceArgMinPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, bool)>(); + late final _Mat_ReduceArgMinPtr = + _lookup Function(Mat, Mat, ffi.Int, ffi.Bool)>>( + 'Mat_ReduceArgMin'); + late final _Mat_ReduceArgMin = + _Mat_ReduceArgMinPtr.asFunction Function(Mat, Mat, int, bool)>(); ffi.Pointer Mat_Region( Mat m, @@ -11991,12 +10771,10 @@ class CvNative { ); } - late final _Mat_RegionPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Rect, ffi.Pointer)>>('Mat_Region'); - late final _Mat_Region = _Mat_RegionPtr.asFunction< - ffi.Pointer Function(Mat, Rect, ffi.Pointer)>(); + late final _Mat_RegionPtr = + _lookup Function(Mat, Rect, ffi.Pointer)>>('Mat_Region'); + late final _Mat_Region = + _Mat_RegionPtr.asFunction Function(Mat, Rect, ffi.Pointer)>(); ffi.Pointer Mat_Release( ffi.Pointer m, @@ -12006,11 +10784,9 @@ class CvNative { ); } - late final _Mat_ReleasePtr = _lookup< - ffi.NativeFunction Function(ffi.Pointer)>>( - 'Mat_Release'); - late final _Mat_Release = _Mat_ReleasePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _Mat_ReleasePtr = + _lookup Function(ffi.Pointer)>>('Mat_Release'); + late final _Mat_Release = _Mat_ReleasePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer Mat_Repeat( Mat src, @@ -12026,12 +10802,9 @@ class CvNative { ); } - late final _Mat_RepeatPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Mat)>>('Mat_Repeat'); - late final _Mat_Repeat = _Mat_RepeatPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Mat)>(); + late final _Mat_RepeatPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Mat)>>('Mat_Repeat'); + late final _Mat_Repeat = _Mat_RepeatPtr.asFunction Function(Mat, int, int, Mat)>(); ffi.Pointer Mat_Reshape( Mat m, @@ -12047,12 +10820,11 @@ class CvNative { ); } - late final _Mat_ReshapePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_Reshape'); - late final _Mat_Reshape = _Mat_ReshapePtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_ReshapePtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_Reshape'); + late final _Mat_Reshape = + _Mat_ReshapePtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_Rows( Mat m, @@ -12064,12 +10836,9 @@ class CvNative { ); } - late final _Mat_RowsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_Rows'); - late final _Mat_Rows = _Mat_RowsPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_RowsPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Rows'); + late final _Mat_Rows = _Mat_RowsPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_ScaleAdd( Mat src1, @@ -12085,12 +10854,10 @@ class CvNative { ); } - late final _Mat_ScaleAddPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Double, Mat, Mat)>>('Mat_ScaleAdd'); - late final _Mat_ScaleAdd = _Mat_ScaleAddPtr.asFunction< - ffi.Pointer Function(Mat, double, Mat, Mat)>(); + late final _Mat_ScaleAddPtr = + _lookup Function(Mat, ffi.Double, Mat, Mat)>>('Mat_ScaleAdd'); + late final _Mat_ScaleAdd = + _Mat_ScaleAddPtr.asFunction Function(Mat, double, Mat, Mat)>(); ffi.Pointer Mat_SetDouble( Mat m, @@ -12106,12 +10873,11 @@ class CvNative { ); } - late final _Mat_SetDoublePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Double)>>('Mat_SetDouble'); - late final _Mat_SetDouble = _Mat_SetDoublePtr.asFunction< - ffi.Pointer Function(Mat, int, int, double)>(); + late final _Mat_SetDoublePtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Double)>>( + 'Mat_SetDouble'); + late final _Mat_SetDouble = + _Mat_SetDoublePtr.asFunction Function(Mat, int, int, double)>(); ffi.Pointer Mat_SetDouble3( Mat m, @@ -12129,12 +10895,11 @@ class CvNative { ); } - late final _Mat_SetDouble3Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Double)>>('Mat_SetDouble3'); - late final _Mat_SetDouble3 = _Mat_SetDouble3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, double)>(); + late final _Mat_SetDouble3Ptr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Double)>>( + 'Mat_SetDouble3'); + late final _Mat_SetDouble3 = + _Mat_SetDouble3Ptr.asFunction Function(Mat, int, int, int, double)>(); ffi.Pointer Mat_SetFloat( Mat m, @@ -12150,12 +10915,11 @@ class CvNative { ); } - late final _Mat_SetFloatPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Float)>>('Mat_SetFloat'); - late final _Mat_SetFloat = _Mat_SetFloatPtr.asFunction< - ffi.Pointer Function(Mat, int, int, double)>(); + late final _Mat_SetFloatPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Float)>>( + 'Mat_SetFloat'); + late final _Mat_SetFloat = + _Mat_SetFloatPtr.asFunction Function(Mat, int, int, double)>(); ffi.Pointer Mat_SetFloat3( Mat m, @@ -12173,12 +10937,11 @@ class CvNative { ); } - late final _Mat_SetFloat3Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Float)>>('Mat_SetFloat3'); - late final _Mat_SetFloat3 = _Mat_SetFloat3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, double)>(); + late final _Mat_SetFloat3Ptr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Float)>>( + 'Mat_SetFloat3'); + late final _Mat_SetFloat3 = + _Mat_SetFloat3Ptr.asFunction Function(Mat, int, int, int, double)>(); ffi.Pointer Mat_SetIdentity( Mat src, @@ -12190,11 +10953,9 @@ class CvNative { ); } - late final _Mat_SetIdentityPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Double)>>( - 'Mat_SetIdentity'); - late final _Mat_SetIdentity = _Mat_SetIdentityPtr.asFunction< - ffi.Pointer Function(Mat, double)>(); + late final _Mat_SetIdentityPtr = + _lookup Function(Mat, ffi.Double)>>('Mat_SetIdentity'); + late final _Mat_SetIdentity = _Mat_SetIdentityPtr.asFunction Function(Mat, double)>(); ffi.Pointer Mat_SetInt( Mat m, @@ -12210,12 +10971,10 @@ class CvNative { ); } - late final _Mat_SetIntPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int32)>>('Mat_SetInt'); - late final _Mat_SetInt = _Mat_SetIntPtr.asFunction< - ffi.Pointer Function(Mat, int, int, int)>(); + late final _Mat_SetIntPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int32)>>( + 'Mat_SetInt'); + late final _Mat_SetInt = _Mat_SetIntPtr.asFunction Function(Mat, int, int, int)>(); ffi.Pointer Mat_SetInt3( Mat m, @@ -12233,12 +10992,11 @@ class CvNative { ); } - late final _Mat_SetInt3Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int32)>>('Mat_SetInt3'); - late final _Mat_SetInt3 = _Mat_SetInt3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, int)>(); + late final _Mat_SetInt3Ptr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int32)>>( + 'Mat_SetInt3'); + late final _Mat_SetInt3 = + _Mat_SetInt3Ptr.asFunction Function(Mat, int, int, int, int)>(); ffi.Pointer Mat_SetSChar( Mat m, @@ -12254,12 +11012,11 @@ class CvNative { ); } - late final _Mat_SetSCharPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int8)>>('Mat_SetSChar'); - late final _Mat_SetSChar = _Mat_SetSCharPtr.asFunction< - ffi.Pointer Function(Mat, int, int, int)>(); + late final _Mat_SetSCharPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int8)>>( + 'Mat_SetSChar'); + late final _Mat_SetSChar = + _Mat_SetSCharPtr.asFunction Function(Mat, int, int, int)>(); ffi.Pointer Mat_SetSChar3( Mat m, @@ -12277,12 +11034,11 @@ class CvNative { ); } - late final _Mat_SetSChar3Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int8)>>('Mat_SetSChar3'); - late final _Mat_SetSChar3 = _Mat_SetSChar3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, int)>(); + late final _Mat_SetSChar3Ptr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int8)>>( + 'Mat_SetSChar3'); + late final _Mat_SetSChar3 = + _Mat_SetSChar3Ptr.asFunction Function(Mat, int, int, int, int)>(); ffi.Pointer Mat_SetShort( Mat m, @@ -12298,12 +11054,11 @@ class CvNative { ); } - late final _Mat_SetShortPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int16)>>('Mat_SetShort'); - late final _Mat_SetShort = _Mat_SetShortPtr.asFunction< - ffi.Pointer Function(Mat, int, int, int)>(); + late final _Mat_SetShortPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int16)>>( + 'Mat_SetShort'); + late final _Mat_SetShort = + _Mat_SetShortPtr.asFunction Function(Mat, int, int, int)>(); ffi.Pointer Mat_SetShort3( Mat m, @@ -12321,12 +11076,11 @@ class CvNative { ); } - late final _Mat_SetShort3Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int16)>>('Mat_SetShort3'); - late final _Mat_SetShort3 = _Mat_SetShort3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, int)>(); + late final _Mat_SetShort3Ptr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int16)>>( + 'Mat_SetShort3'); + late final _Mat_SetShort3 = + _Mat_SetShort3Ptr.asFunction Function(Mat, int, int, int, int)>(); ffi.Pointer Mat_SetTo( Mat m, @@ -12339,10 +11093,8 @@ class CvNative { } late final _Mat_SetToPtr = - _lookup Function(Mat, Scalar)>>( - 'Mat_SetTo'); - late final _Mat_SetTo = - _Mat_SetToPtr.asFunction Function(Mat, Scalar)>(); + _lookup Function(Mat, Scalar)>>('Mat_SetTo'); + late final _Mat_SetTo = _Mat_SetToPtr.asFunction Function(Mat, Scalar)>(); ffi.Pointer Mat_SetUChar( Mat m, @@ -12358,12 +11110,11 @@ class CvNative { ); } - late final _Mat_SetUCharPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Uint8)>>('Mat_SetUChar'); - late final _Mat_SetUChar = _Mat_SetUCharPtr.asFunction< - ffi.Pointer Function(Mat, int, int, int)>(); + late final _Mat_SetUCharPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Uint8)>>( + 'Mat_SetUChar'); + late final _Mat_SetUChar = + _Mat_SetUCharPtr.asFunction Function(Mat, int, int, int)>(); ffi.Pointer Mat_SetUChar3( Mat m, @@ -12381,12 +11132,11 @@ class CvNative { ); } - late final _Mat_SetUChar3Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Uint8)>>('Mat_SetUChar3'); - late final _Mat_SetUChar3 = _Mat_SetUChar3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, int)>(); + late final _Mat_SetUChar3Ptr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Uint8)>>( + 'Mat_SetUChar3'); + late final _Mat_SetUChar3 = + _Mat_SetUChar3Ptr.asFunction Function(Mat, int, int, int, int)>(); ffi.Pointer Mat_SetUShort( Mat m, @@ -12402,12 +11152,11 @@ class CvNative { ); } - late final _Mat_SetUShortPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Uint16)>>('Mat_SetUShort'); - late final _Mat_SetUShort = _Mat_SetUShortPtr.asFunction< - ffi.Pointer Function(Mat, int, int, int)>(); + late final _Mat_SetUShortPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Uint16)>>( + 'Mat_SetUShort'); + late final _Mat_SetUShort = + _Mat_SetUShortPtr.asFunction Function(Mat, int, int, int)>(); ffi.Pointer Mat_SetUShort3( Mat m, @@ -12425,12 +11174,11 @@ class CvNative { ); } - late final _Mat_SetUShort3Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Uint16)>>('Mat_SetUShort3'); - late final _Mat_SetUShort3 = _Mat_SetUShort3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, int)>(); + late final _Mat_SetUShort3Ptr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Uint16)>>( + 'Mat_SetUShort3'); + late final _Mat_SetUShort3 = + _Mat_SetUShort3Ptr.asFunction Function(Mat, int, int, int, int)>(); ffi.Pointer Mat_SetVec2b( Mat m, @@ -12446,12 +11194,11 @@ class CvNative { ); } - late final _Mat_SetVec2bPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec2b)>>('Mat_SetVec2b'); - late final _Mat_SetVec2b = _Mat_SetVec2bPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec2b)>(); + late final _Mat_SetVec2bPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec2b)>>( + 'Mat_SetVec2b'); + late final _Mat_SetVec2b = + _Mat_SetVec2bPtr.asFunction Function(Mat, int, int, Vec2b)>(); ffi.Pointer Mat_SetVec2d( Mat m, @@ -12467,12 +11214,11 @@ class CvNative { ); } - late final _Mat_SetVec2dPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec2d)>>('Mat_SetVec2d'); - late final _Mat_SetVec2d = _Mat_SetVec2dPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec2d)>(); + late final _Mat_SetVec2dPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec2d)>>( + 'Mat_SetVec2d'); + late final _Mat_SetVec2d = + _Mat_SetVec2dPtr.asFunction Function(Mat, int, int, Vec2d)>(); ffi.Pointer Mat_SetVec2f( Mat m, @@ -12488,12 +11234,11 @@ class CvNative { ); } - late final _Mat_SetVec2fPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec2f)>>('Mat_SetVec2f'); - late final _Mat_SetVec2f = _Mat_SetVec2fPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec2f)>(); + late final _Mat_SetVec2fPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec2f)>>( + 'Mat_SetVec2f'); + late final _Mat_SetVec2f = + _Mat_SetVec2fPtr.asFunction Function(Mat, int, int, Vec2f)>(); ffi.Pointer Mat_SetVec2i( Mat m, @@ -12509,12 +11254,11 @@ class CvNative { ); } - late final _Mat_SetVec2iPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec2i)>>('Mat_SetVec2i'); - late final _Mat_SetVec2i = _Mat_SetVec2iPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec2i)>(); + late final _Mat_SetVec2iPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec2i)>>( + 'Mat_SetVec2i'); + late final _Mat_SetVec2i = + _Mat_SetVec2iPtr.asFunction Function(Mat, int, int, Vec2i)>(); ffi.Pointer Mat_SetVec2s( Mat m, @@ -12530,12 +11274,11 @@ class CvNative { ); } - late final _Mat_SetVec2sPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec2s)>>('Mat_SetVec2s'); - late final _Mat_SetVec2s = _Mat_SetVec2sPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec2s)>(); + late final _Mat_SetVec2sPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec2s)>>( + 'Mat_SetVec2s'); + late final _Mat_SetVec2s = + _Mat_SetVec2sPtr.asFunction Function(Mat, int, int, Vec2s)>(); ffi.Pointer Mat_SetVec2w( Mat m, @@ -12551,12 +11294,11 @@ class CvNative { ); } - late final _Mat_SetVec2wPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec2w)>>('Mat_SetVec2w'); - late final _Mat_SetVec2w = _Mat_SetVec2wPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec2w)>(); + late final _Mat_SetVec2wPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec2w)>>( + 'Mat_SetVec2w'); + late final _Mat_SetVec2w = + _Mat_SetVec2wPtr.asFunction Function(Mat, int, int, Vec2w)>(); ffi.Pointer Mat_SetVec3b( Mat m, @@ -12572,12 +11314,11 @@ class CvNative { ); } - late final _Mat_SetVec3bPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec3b)>>('Mat_SetVec3b'); - late final _Mat_SetVec3b = _Mat_SetVec3bPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec3b)>(); + late final _Mat_SetVec3bPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec3b)>>( + 'Mat_SetVec3b'); + late final _Mat_SetVec3b = + _Mat_SetVec3bPtr.asFunction Function(Mat, int, int, Vec3b)>(); ffi.Pointer Mat_SetVec3d( Mat m, @@ -12593,12 +11334,11 @@ class CvNative { ); } - late final _Mat_SetVec3dPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec3d)>>('Mat_SetVec3d'); - late final _Mat_SetVec3d = _Mat_SetVec3dPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec3d)>(); + late final _Mat_SetVec3dPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec3d)>>( + 'Mat_SetVec3d'); + late final _Mat_SetVec3d = + _Mat_SetVec3dPtr.asFunction Function(Mat, int, int, Vec3d)>(); ffi.Pointer Mat_SetVec3f( Mat m, @@ -12614,12 +11354,11 @@ class CvNative { ); } - late final _Mat_SetVec3fPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec3f)>>('Mat_SetVec3f'); - late final _Mat_SetVec3f = _Mat_SetVec3fPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec3f)>(); + late final _Mat_SetVec3fPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec3f)>>( + 'Mat_SetVec3f'); + late final _Mat_SetVec3f = + _Mat_SetVec3fPtr.asFunction Function(Mat, int, int, Vec3f)>(); ffi.Pointer Mat_SetVec3i( Mat m, @@ -12635,12 +11374,11 @@ class CvNative { ); } - late final _Mat_SetVec3iPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec3i)>>('Mat_SetVec3i'); - late final _Mat_SetVec3i = _Mat_SetVec3iPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec3i)>(); + late final _Mat_SetVec3iPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec3i)>>( + 'Mat_SetVec3i'); + late final _Mat_SetVec3i = + _Mat_SetVec3iPtr.asFunction Function(Mat, int, int, Vec3i)>(); ffi.Pointer Mat_SetVec3s( Mat m, @@ -12656,12 +11394,11 @@ class CvNative { ); } - late final _Mat_SetVec3sPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec3s)>>('Mat_SetVec3s'); - late final _Mat_SetVec3s = _Mat_SetVec3sPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec3s)>(); + late final _Mat_SetVec3sPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec3s)>>( + 'Mat_SetVec3s'); + late final _Mat_SetVec3s = + _Mat_SetVec3sPtr.asFunction Function(Mat, int, int, Vec3s)>(); ffi.Pointer Mat_SetVec3w( Mat m, @@ -12677,12 +11414,11 @@ class CvNative { ); } - late final _Mat_SetVec3wPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec3w)>>('Mat_SetVec3w'); - late final _Mat_SetVec3w = _Mat_SetVec3wPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec3w)>(); + late final _Mat_SetVec3wPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec3w)>>( + 'Mat_SetVec3w'); + late final _Mat_SetVec3w = + _Mat_SetVec3wPtr.asFunction Function(Mat, int, int, Vec3w)>(); ffi.Pointer Mat_SetVec4b( Mat m, @@ -12698,12 +11434,11 @@ class CvNative { ); } - late final _Mat_SetVec4bPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec4b)>>('Mat_SetVec4b'); - late final _Mat_SetVec4b = _Mat_SetVec4bPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec4b)>(); + late final _Mat_SetVec4bPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec4b)>>( + 'Mat_SetVec4b'); + late final _Mat_SetVec4b = + _Mat_SetVec4bPtr.asFunction Function(Mat, int, int, Vec4b)>(); ffi.Pointer Mat_SetVec4d( Mat m, @@ -12719,12 +11454,11 @@ class CvNative { ); } - late final _Mat_SetVec4dPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec4d)>>('Mat_SetVec4d'); - late final _Mat_SetVec4d = _Mat_SetVec4dPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec4d)>(); + late final _Mat_SetVec4dPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec4d)>>( + 'Mat_SetVec4d'); + late final _Mat_SetVec4d = + _Mat_SetVec4dPtr.asFunction Function(Mat, int, int, Vec4d)>(); ffi.Pointer Mat_SetVec4f( Mat m, @@ -12740,12 +11474,11 @@ class CvNative { ); } - late final _Mat_SetVec4fPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec4f)>>('Mat_SetVec4f'); - late final _Mat_SetVec4f = _Mat_SetVec4fPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec4f)>(); + late final _Mat_SetVec4fPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec4f)>>( + 'Mat_SetVec4f'); + late final _Mat_SetVec4f = + _Mat_SetVec4fPtr.asFunction Function(Mat, int, int, Vec4f)>(); ffi.Pointer Mat_SetVec4i( Mat m, @@ -12761,12 +11494,11 @@ class CvNative { ); } - late final _Mat_SetVec4iPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec4i)>>('Mat_SetVec4i'); - late final _Mat_SetVec4i = _Mat_SetVec4iPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec4i)>(); + late final _Mat_SetVec4iPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec4i)>>( + 'Mat_SetVec4i'); + late final _Mat_SetVec4i = + _Mat_SetVec4iPtr.asFunction Function(Mat, int, int, Vec4i)>(); ffi.Pointer Mat_SetVec4s( Mat m, @@ -12782,12 +11514,11 @@ class CvNative { ); } - late final _Mat_SetVec4sPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec4s)>>('Mat_SetVec4s'); - late final _Mat_SetVec4s = _Mat_SetVec4sPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec4s)>(); + late final _Mat_SetVec4sPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec4s)>>( + 'Mat_SetVec4s'); + late final _Mat_SetVec4s = + _Mat_SetVec4sPtr.asFunction Function(Mat, int, int, Vec4s)>(); ffi.Pointer Mat_SetVec4w( Mat m, @@ -12803,12 +11534,11 @@ class CvNative { ); } - late final _Mat_SetVec4wPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec4w)>>('Mat_SetVec4w'); - late final _Mat_SetVec4w = _Mat_SetVec4wPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec4w)>(); + late final _Mat_SetVec4wPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec4w)>>( + 'Mat_SetVec4w'); + late final _Mat_SetVec4w = + _Mat_SetVec4wPtr.asFunction Function(Mat, int, int, Vec4w)>(); ffi.Pointer Mat_SetVec6d( Mat m, @@ -12824,12 +11554,11 @@ class CvNative { ); } - late final _Mat_SetVec6dPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec6d)>>('Mat_SetVec6d'); - late final _Mat_SetVec6d = _Mat_SetVec6dPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec6d)>(); + late final _Mat_SetVec6dPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec6d)>>( + 'Mat_SetVec6d'); + late final _Mat_SetVec6d = + _Mat_SetVec6dPtr.asFunction Function(Mat, int, int, Vec6d)>(); ffi.Pointer Mat_SetVec6f( Mat m, @@ -12845,12 +11574,11 @@ class CvNative { ); } - late final _Mat_SetVec6fPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec6f)>>('Mat_SetVec6f'); - late final _Mat_SetVec6f = _Mat_SetVec6fPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec6f)>(); + late final _Mat_SetVec6fPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec6f)>>( + 'Mat_SetVec6f'); + late final _Mat_SetVec6f = + _Mat_SetVec6fPtr.asFunction Function(Mat, int, int, Vec6f)>(); ffi.Pointer Mat_SetVec6i( Mat m, @@ -12866,12 +11594,11 @@ class CvNative { ); } - late final _Mat_SetVec6iPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec6i)>>('Mat_SetVec6i'); - late final _Mat_SetVec6i = _Mat_SetVec6iPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec6i)>(); + late final _Mat_SetVec6iPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec6i)>>( + 'Mat_SetVec6i'); + late final _Mat_SetVec6i = + _Mat_SetVec6iPtr.asFunction Function(Mat, int, int, Vec6i)>(); ffi.Pointer Mat_SetVec8i( Mat m, @@ -12887,12 +11614,11 @@ class CvNative { ); } - late final _Mat_SetVec8iPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec8i)>>('Mat_SetVec8i'); - late final _Mat_SetVec8i = _Mat_SetVec8iPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec8i)>(); + late final _Mat_SetVec8iPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec8i)>>( + 'Mat_SetVec8i'); + late final _Mat_SetVec8i = + _Mat_SetVec8iPtr.asFunction Function(Mat, int, int, Vec8i)>(); ffi.Pointer Mat_Size( Mat m, @@ -12904,12 +11630,9 @@ class CvNative { ); } - late final _Mat_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_Size'); - late final _Mat_Size = _Mat_SizePtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_SizePtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Size'); + late final _Mat_Size = _Mat_SizePtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Solve( Mat src1, @@ -12928,12 +11651,10 @@ class CvNative { } late final _Mat_SolvePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Int, ffi.Pointer)>>('Mat_Solve'); - late final _Mat_Solve = _Mat_SolvePtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Mat, int, ffi.Pointer)>(); + ffi.NativeFunction Function(Mat, Mat, Mat, ffi.Int, ffi.Pointer)>>( + 'Mat_Solve'); + late final _Mat_Solve = + _Mat_SolvePtr.asFunction Function(Mat, Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer Mat_SolveCubic( Mat coeffs, @@ -12947,12 +11668,11 @@ class CvNative { ); } - late final _Mat_SolveCubicPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Pointer)>>('Mat_SolveCubic'); - late final _Mat_SolveCubic = _Mat_SolveCubicPtr.asFunction< - ffi.Pointer Function(Mat, Mat, ffi.Pointer)>(); + late final _Mat_SolveCubicPtr = + _lookup Function(Mat, Mat, ffi.Pointer)>>( + 'Mat_SolveCubic'); + late final _Mat_SolveCubic = + _Mat_SolveCubicPtr.asFunction Function(Mat, Mat, ffi.Pointer)>(); ffi.Pointer Mat_SolvePoly( Mat coeffs, @@ -12968,12 +11688,11 @@ class CvNative { ); } - late final _Mat_SolvePolyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Pointer)>>('Mat_SolvePoly'); - late final _Mat_SolvePoly = _Mat_SolvePolyPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, ffi.Pointer)>(); + late final _Mat_SolvePolyPtr = + _lookup Function(Mat, Mat, ffi.Int, ffi.Pointer)>>( + 'Mat_SolvePoly'); + late final _Mat_SolvePoly = + _Mat_SolvePolyPtr.asFunction Function(Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer Mat_Sort( Mat src, @@ -12987,11 +11706,9 @@ class CvNative { ); } - late final _Mat_SortPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_Sort'); - late final _Mat_Sort = - _Mat_SortPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_SortPtr = + _lookup Function(Mat, Mat, ffi.Int)>>('Mat_Sort'); + late final _Mat_Sort = _Mat_SortPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_SortIdx( Mat src, @@ -13005,11 +11722,9 @@ class CvNative { ); } - late final _Mat_SortIdxPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_SortIdx'); - late final _Mat_SortIdx = _Mat_SortIdxPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int)>(); + late final _Mat_SortIdxPtr = + _lookup Function(Mat, Mat, ffi.Int)>>('Mat_SortIdx'); + late final _Mat_SortIdx = _Mat_SortIdxPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_Split( Mat src, @@ -13021,12 +11736,10 @@ class CvNative { ); } - late final _Mat_SplitPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_Split'); - late final _Mat_Split = _Mat_SplitPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_SplitPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Split'); + late final _Mat_Split = + _Mat_SplitPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Sqrt( Mat m, @@ -13038,11 +11751,9 @@ class CvNative { ); } - late final _Mat_SqrtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>>('Mat_Sqrt'); - late final _Mat_Sqrt = _Mat_SqrtPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_SqrtPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Sqrt'); + late final _Mat_Sqrt = _Mat_SqrtPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Step( Mat m, @@ -13054,12 +11765,9 @@ class CvNative { ); } - late final _Mat_StepPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_Step'); - late final _Mat_Step = _Mat_StepPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_StepPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Step'); + late final _Mat_Step = _Mat_StepPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Subtract( Mat src1, @@ -13073,11 +11781,9 @@ class CvNative { ); } - late final _Mat_SubtractPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_Subtract'); - late final _Mat_Subtract = _Mat_SubtractPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_SubtractPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_Subtract'); + late final _Mat_Subtract = _Mat_SubtractPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_SubtractF64( Mat m, @@ -13089,11 +11795,9 @@ class CvNative { ); } - late final _Mat_SubtractF64Ptr = _lookup< - ffi.NativeFunction Function(Mat, double_t)>>( - 'Mat_SubtractF64'); - late final _Mat_SubtractF64 = _Mat_SubtractF64Ptr.asFunction< - ffi.Pointer Function(Mat, double)>(); + late final _Mat_SubtractF64Ptr = + _lookup Function(Mat, double_t)>>('Mat_SubtractF64'); + late final _Mat_SubtractF64 = _Mat_SubtractF64Ptr.asFunction Function(Mat, double)>(); ffi.Pointer Mat_SubtractFloat( Mat m, @@ -13106,10 +11810,9 @@ class CvNative { } late final _Mat_SubtractFloatPtr = - _lookup Function(Mat, float_t)>>( - 'Mat_SubtractFloat'); - late final _Mat_SubtractFloat = _Mat_SubtractFloatPtr.asFunction< - ffi.Pointer Function(Mat, double)>(); + _lookup Function(Mat, float_t)>>('Mat_SubtractFloat'); + late final _Mat_SubtractFloat = + _Mat_SubtractFloatPtr.asFunction Function(Mat, double)>(); ffi.Pointer Mat_SubtractI32( Mat m, @@ -13121,11 +11824,9 @@ class CvNative { ); } - late final _Mat_SubtractI32Ptr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int32)>>( - 'Mat_SubtractI32'); - late final _Mat_SubtractI32 = _Mat_SubtractI32Ptr.asFunction< - ffi.Pointer Function(Mat, int)>(); + late final _Mat_SubtractI32Ptr = + _lookup Function(Mat, ffi.Int32)>>('Mat_SubtractI32'); + late final _Mat_SubtractI32 = _Mat_SubtractI32Ptr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_SubtractSChar( Mat m, @@ -13137,11 +11838,10 @@ class CvNative { ); } - late final _Mat_SubtractSCharPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int8)>>( - 'Mat_SubtractSChar'); - late final _Mat_SubtractSChar = _Mat_SubtractSCharPtr.asFunction< - ffi.Pointer Function(Mat, int)>(); + late final _Mat_SubtractSCharPtr = + _lookup Function(Mat, ffi.Int8)>>('Mat_SubtractSChar'); + late final _Mat_SubtractSChar = + _Mat_SubtractSCharPtr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_SubtractUChar( Mat m, @@ -13153,11 +11853,10 @@ class CvNative { ); } - late final _Mat_SubtractUCharPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Uint8)>>( - 'Mat_SubtractUChar'); - late final _Mat_SubtractUChar = _Mat_SubtractUCharPtr.asFunction< - ffi.Pointer Function(Mat, int)>(); + late final _Mat_SubtractUCharPtr = + _lookup Function(Mat, ffi.Uint8)>>('Mat_SubtractUChar'); + late final _Mat_SubtractUChar = + _Mat_SubtractUCharPtr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_Sum( Mat src, @@ -13169,11 +11868,9 @@ class CvNative { ); } - late final _Mat_SumPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>>('Mat_Sum'); - late final _Mat_Sum = _Mat_SumPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_SumPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Sum'); + late final _Mat_Sum = _Mat_SumPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_T( Mat x, @@ -13185,11 +11882,9 @@ class CvNative { ); } - late final _Mat_TPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>>('Mat_T'); - late final _Mat_T = _Mat_TPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_TPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_T'); + late final _Mat_T = _Mat_TPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_ToVecChar( Mat m, @@ -13201,12 +11896,10 @@ class CvNative { ); } - late final _Mat_ToVecCharPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_ToVecChar'); - late final _Mat_ToVecChar = _Mat_ToVecCharPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_ToVecCharPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_ToVecChar'); + late final _Mat_ToVecChar = + _Mat_ToVecCharPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_ToVecUChar( Mat m, @@ -13218,12 +11911,11 @@ class CvNative { ); } - late final _Mat_ToVecUCharPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_ToVecUChar'); - late final _Mat_ToVecUChar = _Mat_ToVecUCharPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_ToVecUCharPtr = + _lookup Function(Mat, ffi.Pointer)>>( + 'Mat_ToVecUChar'); + late final _Mat_ToVecUChar = + _Mat_ToVecUCharPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Total( Mat m, @@ -13235,12 +11927,10 @@ class CvNative { ); } - late final _Mat_TotalPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_Total'); - late final _Mat_Total = _Mat_TotalPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_TotalPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Total'); + late final _Mat_Total = + _Mat_TotalPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Trace( Mat src, @@ -13252,12 +11942,10 @@ class CvNative { ); } - late final _Mat_TracePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_Trace'); - late final _Mat_Trace = _Mat_TracePtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_TracePtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Trace'); + late final _Mat_Trace = + _Mat_TracePtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Transform( Mat src, @@ -13271,11 +11959,9 @@ class CvNative { ); } - late final _Mat_TransformPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_Transform'); - late final _Mat_Transform = _Mat_TransformPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_TransformPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_Transform'); + late final _Mat_Transform = _Mat_TransformPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_Transpose( Mat src, @@ -13288,10 +11974,8 @@ class CvNative { } late final _Mat_TransposePtr = - _lookup Function(Mat, Mat)>>( - 'Mat_Transpose'); - late final _Mat_Transpose = - _Mat_TransposePtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('Mat_Transpose'); + late final _Mat_Transpose = _Mat_TransposePtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_Type( Mat m, @@ -13303,12 +11987,9 @@ class CvNative { ); } - late final _Mat_TypePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_Type'); - late final _Mat_Type = _Mat_TypePtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_TypePtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Type'); + late final _Mat_Type = _Mat_TypePtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Vconcat( Mat src1, @@ -13322,11 +12003,9 @@ class CvNative { ); } - late final _Mat_VconcatPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_Vconcat'); - late final _Mat_Vconcat = _Mat_VconcatPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_VconcatPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_Vconcat'); + late final _Mat_Vconcat = _Mat_VconcatPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_colRange( Mat m, @@ -13342,12 +12021,11 @@ class CvNative { ); } - late final _Mat_colRangePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_colRange'); - late final _Mat_colRange = _Mat_colRangePtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_colRangePtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_colRange'); + late final _Mat_colRange = + _Mat_colRangePtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_rowRange( Mat m, @@ -13363,12 +12041,11 @@ class CvNative { ); } - late final _Mat_rowRangePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_rowRange'); - late final _Mat_rowRange = _Mat_rowRangePtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_rowRangePtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_rowRange'); + late final _Mat_rowRange = + _Mat_rowRangePtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer MatchShapes( VecPoint contour1, @@ -13388,11 +12065,10 @@ class CvNative { late final _MatchShapesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecPoint, VecPoint, ffi.Int, - ffi.Double, ffi.Pointer)>>('MatchShapes'); + ffi.Pointer Function( + VecPoint, VecPoint, ffi.Int, ffi.Double, ffi.Pointer)>>('MatchShapes'); late final _MatchShapes = _MatchShapesPtr.asFunction< - ffi.Pointer Function( - VecPoint, VecPoint, int, double, ffi.Pointer)>(); + ffi.Pointer Function(VecPoint, VecPoint, int, double, ffi.Pointer)>(); ffi.Pointer MatchTemplate( Mat image, @@ -13410,12 +12086,11 @@ class CvNative { ); } - late final _MatchTemplatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Int, Mat)>>('MatchTemplate'); - late final _MatchTemplate = _MatchTemplatePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, int, Mat)>(); + late final _MatchTemplatePtr = + _lookup Function(Mat, Mat, Mat, ffi.Int, Mat)>>( + 'MatchTemplate'); + late final _MatchTemplate = + _MatchTemplatePtr.asFunction Function(Mat, Mat, Mat, int, Mat)>(); ffi.Pointer MedianBlur( Mat src, @@ -13429,11 +12104,9 @@ class CvNative { ); } - late final _MedianBlurPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int)>>('MedianBlur'); - late final _MedianBlur = _MedianBlurPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int)>(); + late final _MedianBlurPtr = + _lookup Function(Mat, Mat, ffi.Int)>>('MedianBlur'); + late final _MedianBlur = _MedianBlurPtr.asFunction Function(Mat, Mat, int)>(); void MergeMertens_Close( MergeMertensPtr b, @@ -13444,10 +12117,8 @@ class CvNative { } late final _MergeMertens_ClosePtr = - _lookup>( - 'MergeMertens_Close'); - late final _MergeMertens_Close = - _MergeMertens_ClosePtr.asFunction(); + _lookup>('MergeMertens_Close'); + late final _MergeMertens_Close = _MergeMertens_ClosePtr.asFunction(); ffi.Pointer MergeMertens_Create( ffi.Pointer rval, @@ -13457,12 +12128,11 @@ class CvNative { ); } - late final _MergeMertens_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('MergeMertens_Create'); - late final _MergeMertens_Create = _MergeMertens_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _MergeMertens_CreatePtr = + _lookup Function(ffi.Pointer)>>( + 'MergeMertens_Create'); + late final _MergeMertens_Create = + _MergeMertens_CreatePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer MergeMertens_CreateWithParams( double contrast_weight, @@ -13480,12 +12150,10 @@ class CvNative { late final _MergeMertens_CreateWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Float, ffi.Float, ffi.Float, - ffi.Pointer)>>('MergeMertens_CreateWithParams'); - late final _MergeMertens_CreateWithParams = - _MergeMertens_CreateWithParamsPtr.asFunction< ffi.Pointer Function( - double, double, double, ffi.Pointer)>(); + ffi.Float, ffi.Float, ffi.Float, ffi.Pointer)>>('MergeMertens_CreateWithParams'); + late final _MergeMertens_CreateWithParams = _MergeMertens_CreateWithParamsPtr.asFunction< + ffi.Pointer Function(double, double, double, ffi.Pointer)>(); ffi.Pointer MergeMertens_Process( MergeMertens b, @@ -13499,12 +12167,11 @@ class CvNative { ); } - late final _MergeMertens_ProcessPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - MergeMertens, VecMat, Mat)>>('MergeMertens_Process'); - late final _MergeMertens_Process = _MergeMertens_ProcessPtr.asFunction< - ffi.Pointer Function(MergeMertens, VecMat, Mat)>(); + late final _MergeMertens_ProcessPtr = + _lookup Function(MergeMertens, VecMat, Mat)>>( + 'MergeMertens_Process'); + late final _MergeMertens_Process = + _MergeMertens_ProcessPtr.asFunction Function(MergeMertens, VecMat, Mat)>(); ffi.Pointer MinAreaRect( VecPoint pts, @@ -13516,12 +12183,11 @@ class CvNative { ); } - late final _MinAreaRectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('MinAreaRect'); - late final _MinAreaRect = _MinAreaRectPtr.asFunction< - ffi.Pointer Function(VecPoint, ffi.Pointer)>(); + late final _MinAreaRectPtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'MinAreaRect'); + late final _MinAreaRect = + _MinAreaRectPtr.asFunction Function(VecPoint, ffi.Pointer)>(); ffi.Pointer MinEnclosingCircle( VecPoint pts, @@ -13537,11 +12203,10 @@ class CvNative { late final _MinEnclosingCirclePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecPoint, ffi.Pointer, - ffi.Pointer)>>('MinEnclosingCircle'); + ffi.Pointer Function( + VecPoint, ffi.Pointer, ffi.Pointer)>>('MinEnclosingCircle'); late final _MinEnclosingCircle = _MinEnclosingCirclePtr.asFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(VecPoint, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Moments( Mat src, @@ -13555,12 +12220,11 @@ class CvNative { ); } - late final _MomentsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Bool, ffi.Pointer)>>('Moments'); - late final _Moments = _MomentsPtr.asFunction< - ffi.Pointer Function(Mat, bool, ffi.Pointer)>(); + late final _MomentsPtr = + _lookup Function(Mat, ffi.Bool, ffi.Pointer)>>( + 'Moments'); + late final _Moments = + _MomentsPtr.asFunction Function(Mat, bool, ffi.Pointer)>(); ffi.Pointer MorphologyDefaultBorderValue( ffi.Pointer rval, @@ -13570,12 +12234,11 @@ class CvNative { ); } - late final _MorphologyDefaultBorderValuePtr = _lookup< - ffi - .NativeFunction Function(ffi.Pointer)>>( - 'MorphologyDefaultBorderValue'); - late final _MorphologyDefaultBorderValue = _MorphologyDefaultBorderValuePtr - .asFunction Function(ffi.Pointer)>(); + late final _MorphologyDefaultBorderValuePtr = + _lookup Function(ffi.Pointer)>>( + 'MorphologyDefaultBorderValue'); + late final _MorphologyDefaultBorderValue = + _MorphologyDefaultBorderValuePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer MorphologyEx( Mat src, @@ -13591,12 +12254,10 @@ class CvNative { ); } - late final _MorphologyExPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, Mat)>>('MorphologyEx'); - late final _MorphologyEx = _MorphologyExPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, Mat)>(); + late final _MorphologyExPtr = + _lookup Function(Mat, Mat, ffi.Int, Mat)>>('MorphologyEx'); + late final _MorphologyEx = + _MorphologyExPtr.asFunction Function(Mat, Mat, int, Mat)>(); ffi.Pointer MorphologyExWithParams( Mat src, @@ -13622,11 +12283,10 @@ class CvNative { late final _MorphologyExWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, Mat, Point, ffi.Int, - ffi.Int, Scalar)>>('MorphologyExWithParams'); + ffi.Pointer Function( + Mat, Mat, ffi.Int, Mat, Point, ffi.Int, ffi.Int, Scalar)>>('MorphologyExWithParams'); late final _MorphologyExWithParams = _MorphologyExWithParamsPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, int, Mat, Point, int, int, Scalar)>(); + ffi.Pointer Function(Mat, Mat, int, Mat, Point, int, int, Scalar)>(); ffi.Pointer NMSBoxes( VecRect bboxes, @@ -13646,11 +12306,10 @@ class CvNative { late final _NMSBoxesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecRect, VecFloat, ffi.Float, - ffi.Float, ffi.Pointer)>>('NMSBoxes'); + ffi.Pointer Function( + VecRect, VecFloat, ffi.Float, ffi.Float, ffi.Pointer)>>('NMSBoxes'); late final _NMSBoxes = _NMSBoxesPtr.asFunction< - ffi.Pointer Function( - VecRect, VecFloat, double, double, ffi.Pointer)>(); + ffi.Pointer Function(VecRect, VecFloat, double, double, ffi.Pointer)>(); ffi.Pointer NMSBoxesWithParams( VecRect bboxes, @@ -13674,17 +12333,10 @@ class CvNative { late final _NMSBoxesWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecRect, - VecFloat, - ffi.Float, - ffi.Float, - ffi.Pointer, - ffi.Float, - ffi.Int)>>('NMSBoxesWithParams'); + ffi.Pointer Function(VecRect, VecFloat, ffi.Float, ffi.Float, ffi.Pointer, + ffi.Float, ffi.Int)>>('NMSBoxesWithParams'); late final _NMSBoxesWithParams = _NMSBoxesWithParamsPtr.asFunction< - ffi.Pointer Function(VecRect, VecFloat, double, double, - ffi.Pointer, double, int)>(); + ffi.Pointer Function(VecRect, VecFloat, double, double, ffi.Pointer, double, int)>(); ffi.Pointer NMSBoxesWithParams_Async( VecRect bboxes, @@ -13708,18 +12360,10 @@ class CvNative { late final _NMSBoxesWithParams_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecRect, - VecFloat, - ffi.Float, - ffi.Float, - ffi.Float, - ffi.Int, + ffi.Pointer Function(VecRect, VecFloat, ffi.Float, ffi.Float, ffi.Float, ffi.Int, CvCallback_1)>>('NMSBoxesWithParams_Async'); - late final _NMSBoxesWithParams_Async = - _NMSBoxesWithParams_AsyncPtr.asFunction< - ffi.Pointer Function( - VecRect, VecFloat, double, double, double, int, CvCallback_1)>(); + late final _NMSBoxesWithParams_Async = _NMSBoxesWithParams_AsyncPtr.asFunction< + ffi.Pointer Function(VecRect, VecFloat, double, double, double, int, CvCallback_1)>(); ffi.Pointer NMSBoxes_Async( VecRect bboxes, @@ -13739,11 +12383,10 @@ class CvNative { late final _NMSBoxes_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecRect, VecFloat, ffi.Float, - ffi.Float, CvCallback_1)>>('NMSBoxes_Async'); + ffi.Pointer Function( + VecRect, VecFloat, ffi.Float, ffi.Float, CvCallback_1)>>('NMSBoxes_Async'); late final _NMSBoxes_Async = _NMSBoxes_AsyncPtr.asFunction< - ffi.Pointer Function( - VecRect, VecFloat, double, double, CvCallback_1)>(); + ffi.Pointer Function(VecRect, VecFloat, double, double, CvCallback_1)>(); ffi.Pointer Net_BlobFromImage( Mat image, @@ -13769,11 +12412,10 @@ class CvNative { late final _Net_BlobFromImagePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Double, Size, Scalar, - ffi.Bool, ffi.Bool, ffi.Int)>>('Net_BlobFromImage'); + ffi.Pointer Function( + Mat, Mat, ffi.Double, Size, Scalar, ffi.Bool, ffi.Bool, ffi.Int)>>('Net_BlobFromImage'); late final _Net_BlobFromImage = _Net_BlobFromImagePtr.asFunction< - ffi.Pointer Function( - Mat, Mat, double, Size, Scalar, bool, bool, int)>(); + ffi.Pointer Function(Mat, Mat, double, Size, Scalar, bool, bool, int)>(); ffi.Pointer Net_BlobFromImage_Async( Mat image, @@ -13799,18 +12441,10 @@ class CvNative { late final _Net_BlobFromImage_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - ffi.Double, - Size, - Scalar, - ffi.Bool, - ffi.Bool, - ffi.Int, + ffi.Pointer Function(Mat, ffi.Double, Size, Scalar, ffi.Bool, ffi.Bool, ffi.Int, CvCallback_1)>>('Net_BlobFromImage_Async'); late final _Net_BlobFromImage_Async = _Net_BlobFromImage_AsyncPtr.asFunction< - ffi.Pointer Function( - Mat, double, Size, Scalar, bool, bool, int, CvCallback_1)>(); + ffi.Pointer Function(Mat, double, Size, Scalar, bool, bool, int, CvCallback_1)>(); ffi.Pointer Net_BlobFromImages( VecMat images, @@ -13836,11 +12470,10 @@ class CvNative { late final _Net_BlobFromImagesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecMat, Mat, ffi.Double, Size, Scalar, - ffi.Bool, ffi.Bool, ffi.Int)>>('Net_BlobFromImages'); + ffi.Pointer Function( + VecMat, Mat, ffi.Double, Size, Scalar, ffi.Bool, ffi.Bool, ffi.Int)>>('Net_BlobFromImages'); late final _Net_BlobFromImages = _Net_BlobFromImagesPtr.asFunction< - ffi.Pointer Function( - VecMat, Mat, double, Size, Scalar, bool, bool, int)>(); + ffi.Pointer Function(VecMat, Mat, double, Size, Scalar, bool, bool, int)>(); ffi.Pointer Net_BlobFromImages_Async( VecMat images, @@ -13866,19 +12499,10 @@ class CvNative { late final _Net_BlobFromImages_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecMat, - ffi.Double, - Size, - Scalar, - ffi.Bool, - ffi.Bool, - ffi.Int, + ffi.Pointer Function(VecMat, ffi.Double, Size, Scalar, ffi.Bool, ffi.Bool, ffi.Int, CvCallback_1)>>('Net_BlobFromImages_Async'); - late final _Net_BlobFromImages_Async = - _Net_BlobFromImages_AsyncPtr.asFunction< - ffi.Pointer Function( - VecMat, double, Size, Scalar, bool, bool, int, CvCallback_1)>(); + late final _Net_BlobFromImages_Async = _Net_BlobFromImages_AsyncPtr.asFunction< + ffi.Pointer Function(VecMat, double, Size, Scalar, bool, bool, int, CvCallback_1)>(); void Net_Close( NetPtr net, @@ -13888,8 +12512,7 @@ class CvNative { ); } - late final _Net_ClosePtr = - _lookup>('Net_Close'); + late final _Net_ClosePtr = _lookup>('Net_Close'); late final _Net_Close = _Net_ClosePtr.asFunction(); void Net_Close_Async( @@ -13903,10 +12526,8 @@ class CvNative { } late final _Net_Close_AsyncPtr = - _lookup>( - 'Net_Close_Async'); - late final _Net_Close_Async = - _Net_Close_AsyncPtr.asFunction(); + _lookup>('Net_Close_Async'); + late final _Net_Close_Async = _Net_Close_AsyncPtr.asFunction(); ffi.Pointer Net_Create( ffi.Pointer rval, @@ -13916,11 +12537,9 @@ class CvNative { ); } - late final _Net_CreatePtr = _lookup< - ffi.NativeFunction Function(ffi.Pointer)>>( - 'Net_Create'); - late final _Net_Create = _Net_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _Net_CreatePtr = + _lookup Function(ffi.Pointer)>>('Net_Create'); + late final _Net_Create = _Net_CreatePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer Net_Create_Async( CvCallback_1 callback, @@ -13931,10 +12550,9 @@ class CvNative { } late final _Net_Create_AsyncPtr = - _lookup Function(CvCallback_1)>>( - 'Net_Create_Async'); - late final _Net_Create_Async = _Net_Create_AsyncPtr.asFunction< - ffi.Pointer Function(CvCallback_1)>(); + _lookup Function(CvCallback_1)>>('Net_Create_Async'); + late final _Net_Create_Async = + _Net_Create_AsyncPtr.asFunction Function(CvCallback_1)>(); ffi.Pointer Net_Dump( Net net, @@ -13946,13 +12564,11 @@ class CvNative { ); } - late final _Net_DumpPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Pointer>)>>('Net_Dump'); - late final _Net_Dump = _Net_DumpPtr.asFunction< - ffi.Pointer Function( - Net, ffi.Pointer>)>(); + late final _Net_DumpPtr = + _lookup Function(Net, ffi.Pointer>)>>( + 'Net_Dump'); + late final _Net_Dump = + _Net_DumpPtr.asFunction Function(Net, ffi.Pointer>)>(); ffi.Pointer Net_Dump_Async( Net net, @@ -13964,11 +12580,10 @@ class CvNative { ); } - late final _Net_Dump_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Net, CvCallback_1)>>('Net_Dump_Async'); - late final _Net_Dump_Async = _Net_Dump_AsyncPtr.asFunction< - ffi.Pointer Function(Net, CvCallback_1)>(); + late final _Net_Dump_AsyncPtr = + _lookup Function(Net, CvCallback_1)>>('Net_Dump_Async'); + late final _Net_Dump_Async = + _Net_Dump_AsyncPtr.asFunction Function(Net, CvCallback_1)>(); ffi.Pointer Net_Empty( Net net, @@ -13980,12 +12595,10 @@ class CvNative { ); } - late final _Net_EmptyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Pointer)>>('Net_Empty'); - late final _Net_Empty = _Net_EmptyPtr.asFunction< - ffi.Pointer Function(Net, ffi.Pointer)>(); + late final _Net_EmptyPtr = + _lookup Function(Net, ffi.Pointer)>>('Net_Empty'); + late final _Net_Empty = + _Net_EmptyPtr.asFunction Function(Net, ffi.Pointer)>(); ffi.Pointer Net_Empty_Async( Net net, @@ -13997,12 +12610,10 @@ class CvNative { ); } - late final _Net_Empty_AsyncPtr = _lookup< - ffi - .NativeFunction Function(Net, CvCallback_1)>>( - 'Net_Empty_Async'); - late final _Net_Empty_Async = _Net_Empty_AsyncPtr.asFunction< - ffi.Pointer Function(Net, CvCallback_1)>(); + late final _Net_Empty_AsyncPtr = + _lookup Function(Net, CvCallback_1)>>('Net_Empty_Async'); + late final _Net_Empty_Async = + _Net_Empty_AsyncPtr.asFunction Function(Net, CvCallback_1)>(); ffi.Pointer Net_Forward( Net net, @@ -14017,12 +12628,10 @@ class CvNative { } late final _Net_ForwardPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Pointer, ffi.Pointer)>>('Net_Forward'); + ffi.NativeFunction Function(Net, ffi.Pointer, ffi.Pointer)>>( + 'Net_Forward'); late final _Net_Forward = _Net_ForwardPtr.asFunction< - ffi.Pointer Function( - Net, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(Net, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_ForwardLayers( Net net, @@ -14036,10 +12645,9 @@ class CvNative { ); } - late final _Net_ForwardLayersPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Pointer, VecVecChar)>>('Net_ForwardLayers'); + late final _Net_ForwardLayersPtr = + _lookup Function(Net, ffi.Pointer, VecVecChar)>>( + 'Net_ForwardLayers'); late final _Net_ForwardLayers = _Net_ForwardLayersPtr.asFunction< ffi.Pointer Function(Net, ffi.Pointer, VecVecChar)>(); @@ -14055,12 +12663,11 @@ class CvNative { ); } - late final _Net_ForwardLayers_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, VecVecChar, CvCallback_1)>>('Net_ForwardLayers_Async'); - late final _Net_ForwardLayers_Async = _Net_ForwardLayers_AsyncPtr.asFunction< - ffi.Pointer Function(Net, VecVecChar, CvCallback_1)>(); + late final _Net_ForwardLayers_AsyncPtr = + _lookup Function(Net, VecVecChar, CvCallback_1)>>( + 'Net_ForwardLayers_Async'); + late final _Net_ForwardLayers_Async = + _Net_ForwardLayers_AsyncPtr.asFunction Function(Net, VecVecChar, CvCallback_1)>(); ffi.Pointer Net_Forward_Async( Net net, @@ -14074,13 +12681,11 @@ class CvNative { ); } - late final _Net_Forward_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Pointer, CvCallback_1)>>('Net_Forward_Async'); + late final _Net_Forward_AsyncPtr = + _lookup Function(Net, ffi.Pointer, CvCallback_1)>>( + 'Net_Forward_Async'); late final _Net_Forward_Async = _Net_Forward_AsyncPtr.asFunction< - ffi.Pointer Function( - Net, ffi.Pointer, CvCallback_1)>(); + ffi.Pointer Function(Net, ffi.Pointer, CvCallback_1)>(); ffi.Pointer Net_FromNet( Net net, @@ -14092,12 +12697,10 @@ class CvNative { ); } - late final _Net_FromNetPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Pointer)>>('Net_FromNet'); - late final _Net_FromNet = _Net_FromNetPtr.asFunction< - ffi.Pointer Function(Net, ffi.Pointer)>(); + late final _Net_FromNetPtr = + _lookup Function(Net, ffi.Pointer)>>('Net_FromNet'); + late final _Net_FromNet = + _Net_FromNetPtr.asFunction Function(Net, ffi.Pointer)>(); ffi.Pointer Net_FromNet_Async( Net net, @@ -14109,12 +12712,10 @@ class CvNative { ); } - late final _Net_FromNet_AsyncPtr = _lookup< - ffi - .NativeFunction Function(Net, CvCallback_1)>>( - 'Net_FromNet_Async'); - late final _Net_FromNet_Async = _Net_FromNet_AsyncPtr.asFunction< - ffi.Pointer Function(Net, CvCallback_1)>(); + late final _Net_FromNet_AsyncPtr = + _lookup Function(Net, CvCallback_1)>>('Net_FromNet_Async'); + late final _Net_FromNet_Async = + _Net_FromNet_AsyncPtr.asFunction Function(Net, CvCallback_1)>(); ffi.Pointer Net_GetBlobChannel( Mat blob, @@ -14130,12 +12731,11 @@ class CvNative { ); } - late final _Net_GetBlobChannelPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Net_GetBlobChannel'); - late final _Net_GetBlobChannel = _Net_GetBlobChannelPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Net_GetBlobChannelPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Net_GetBlobChannel'); + late final _Net_GetBlobChannel = + _Net_GetBlobChannelPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Net_GetBlobChannel_Async( Mat blob, @@ -14151,13 +12751,11 @@ class CvNative { ); } - late final _Net_GetBlobChannel_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, - CvCallback_1)>>('Net_GetBlobChannel_Async'); + late final _Net_GetBlobChannel_AsyncPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, CvCallback_1)>>( + 'Net_GetBlobChannel_Async'); late final _Net_GetBlobChannel_Async = - _Net_GetBlobChannel_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, int, int, CvCallback_1)>(); + _Net_GetBlobChannel_AsyncPtr.asFunction Function(Mat, int, int, CvCallback_1)>(); ffi.Pointer Net_GetBlobSize( Mat blob, @@ -14169,12 +12767,11 @@ class CvNative { ); } - late final _Net_GetBlobSizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Net_GetBlobSize'); - late final _Net_GetBlobSize = _Net_GetBlobSizePtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Net_GetBlobSizePtr = + _lookup Function(Mat, ffi.Pointer)>>( + 'Net_GetBlobSize'); + late final _Net_GetBlobSize = + _Net_GetBlobSizePtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Net_GetBlobSize_Async( Mat blob, @@ -14186,12 +12783,10 @@ class CvNative { ); } - late final _Net_GetBlobSize_AsyncPtr = _lookup< - ffi - .NativeFunction Function(Mat, CvCallback_1)>>( - 'Net_GetBlobSize_Async'); - late final _Net_GetBlobSize_Async = _Net_GetBlobSize_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, CvCallback_1)>(); + late final _Net_GetBlobSize_AsyncPtr = + _lookup Function(Mat, CvCallback_1)>>('Net_GetBlobSize_Async'); + late final _Net_GetBlobSize_Async = + _Net_GetBlobSize_AsyncPtr.asFunction Function(Mat, CvCallback_1)>(); ffi.Pointer Net_GetInputDetails( Net net, @@ -14206,12 +12801,11 @@ class CvNative { } late final _Net_GetInputDetailsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Net, ffi.Pointer, - ffi.Pointer)>>('Net_GetInputDetails'); + ffi + .NativeFunction Function(Net, ffi.Pointer, ffi.Pointer)>>( + 'Net_GetInputDetails'); late final _Net_GetInputDetails = _Net_GetInputDetailsPtr.asFunction< - ffi.Pointer Function( - Net, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(Net, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_GetInputDetails_Async( Net net, @@ -14223,12 +12817,11 @@ class CvNative { ); } - late final _Net_GetInputDetails_AsyncPtr = _lookup< - ffi - .NativeFunction Function(Net, CvCallback_2)>>( - 'Net_GetInputDetails_Async'); - late final _Net_GetInputDetails_Async = _Net_GetInputDetails_AsyncPtr - .asFunction Function(Net, CvCallback_2)>(); + late final _Net_GetInputDetails_AsyncPtr = + _lookup Function(Net, CvCallback_2)>>( + 'Net_GetInputDetails_Async'); + late final _Net_GetInputDetails_Async = + _Net_GetInputDetails_AsyncPtr.asFunction Function(Net, CvCallback_2)>(); ffi.Pointer Net_GetLayer( Net net, @@ -14242,12 +12835,11 @@ class CvNative { ); } - late final _Net_GetLayerPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Int, ffi.Pointer)>>('Net_GetLayer'); - late final _Net_GetLayer = _Net_GetLayerPtr.asFunction< - ffi.Pointer Function(Net, int, ffi.Pointer)>(); + late final _Net_GetLayerPtr = + _lookup Function(Net, ffi.Int, ffi.Pointer)>>( + 'Net_GetLayer'); + late final _Net_GetLayer = + _Net_GetLayerPtr.asFunction Function(Net, int, ffi.Pointer)>(); ffi.Pointer Net_GetLayerNames( Net net, @@ -14259,12 +12851,11 @@ class CvNative { ); } - late final _Net_GetLayerNamesPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Pointer)>>('Net_GetLayerNames'); - late final _Net_GetLayerNames = _Net_GetLayerNamesPtr.asFunction< - ffi.Pointer Function(Net, ffi.Pointer)>(); + late final _Net_GetLayerNamesPtr = + _lookup Function(Net, ffi.Pointer)>>( + 'Net_GetLayerNames'); + late final _Net_GetLayerNames = + _Net_GetLayerNamesPtr.asFunction Function(Net, ffi.Pointer)>(); ffi.Pointer Net_GetLayerNames_Async( Net net, @@ -14276,12 +12867,11 @@ class CvNative { ); } - late final _Net_GetLayerNames_AsyncPtr = _lookup< - ffi - .NativeFunction Function(Net, CvCallback_1)>>( - 'Net_GetLayerNames_Async'); - late final _Net_GetLayerNames_Async = _Net_GetLayerNames_AsyncPtr.asFunction< - ffi.Pointer Function(Net, CvCallback_1)>(); + late final _Net_GetLayerNames_AsyncPtr = + _lookup Function(Net, CvCallback_1)>>( + 'Net_GetLayerNames_Async'); + late final _Net_GetLayerNames_Async = + _Net_GetLayerNames_AsyncPtr.asFunction Function(Net, CvCallback_1)>(); ffi.Pointer Net_GetLayer_Async( Net net, @@ -14295,12 +12885,11 @@ class CvNative { ); } - late final _Net_GetLayer_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Int, CvCallback_1)>>('Net_GetLayer_Async'); - late final _Net_GetLayer_Async = _Net_GetLayer_AsyncPtr.asFunction< - ffi.Pointer Function(Net, int, CvCallback_1)>(); + late final _Net_GetLayer_AsyncPtr = + _lookup Function(Net, ffi.Int, CvCallback_1)>>( + 'Net_GetLayer_Async'); + late final _Net_GetLayer_Async = + _Net_GetLayer_AsyncPtr.asFunction Function(Net, int, CvCallback_1)>(); ffi.Pointer Net_GetPerfProfile( Net net, @@ -14312,12 +12901,11 @@ class CvNative { ); } - late final _Net_GetPerfProfilePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Pointer)>>('Net_GetPerfProfile'); - late final _Net_GetPerfProfile = _Net_GetPerfProfilePtr.asFunction< - ffi.Pointer Function(Net, ffi.Pointer)>(); + late final _Net_GetPerfProfilePtr = + _lookup Function(Net, ffi.Pointer)>>( + 'Net_GetPerfProfile'); + late final _Net_GetPerfProfile = + _Net_GetPerfProfilePtr.asFunction Function(Net, ffi.Pointer)>(); ffi.Pointer Net_GetPerfProfile_Async( Net net, @@ -14329,12 +12917,11 @@ class CvNative { ); } - late final _Net_GetPerfProfile_AsyncPtr = _lookup< - ffi - .NativeFunction Function(Net, CvCallback_1)>>( - 'Net_GetPerfProfile_Async'); - late final _Net_GetPerfProfile_Async = _Net_GetPerfProfile_AsyncPtr - .asFunction Function(Net, CvCallback_1)>(); + late final _Net_GetPerfProfile_AsyncPtr = + _lookup Function(Net, CvCallback_1)>>( + 'Net_GetPerfProfile_Async'); + late final _Net_GetPerfProfile_Async = + _Net_GetPerfProfile_AsyncPtr.asFunction Function(Net, CvCallback_1)>(); ffi.Pointer Net_GetUnconnectedOutLayers( Net net, @@ -14346,12 +12933,11 @@ class CvNative { ); } - late final _Net_GetUnconnectedOutLayersPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Pointer)>>('Net_GetUnconnectedOutLayers'); - late final _Net_GetUnconnectedOutLayers = _Net_GetUnconnectedOutLayersPtr - .asFunction Function(Net, ffi.Pointer)>(); + late final _Net_GetUnconnectedOutLayersPtr = + _lookup Function(Net, ffi.Pointer)>>( + 'Net_GetUnconnectedOutLayers'); + late final _Net_GetUnconnectedOutLayers = + _Net_GetUnconnectedOutLayersPtr.asFunction Function(Net, ffi.Pointer)>(); ffi.Pointer Net_GetUnconnectedOutLayers_Async( Net net, @@ -14363,13 +12949,11 @@ class CvNative { ); } - late final _Net_GetUnconnectedOutLayers_AsyncPtr = _lookup< - ffi - .NativeFunction Function(Net, CvCallback_1)>>( - 'Net_GetUnconnectedOutLayers_Async'); + late final _Net_GetUnconnectedOutLayers_AsyncPtr = + _lookup Function(Net, CvCallback_1)>>( + 'Net_GetUnconnectedOutLayers_Async'); late final _Net_GetUnconnectedOutLayers_Async = - _Net_GetUnconnectedOutLayers_AsyncPtr.asFunction< - ffi.Pointer Function(Net, CvCallback_1)>(); + _Net_GetUnconnectedOutLayers_AsyncPtr.asFunction Function(Net, CvCallback_1)>(); ffi.Pointer Net_ImagesFromBlob( Mat blob, @@ -14381,12 +12965,11 @@ class CvNative { ); } - late final _Net_ImagesFromBlobPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Net_ImagesFromBlob'); - late final _Net_ImagesFromBlob = _Net_ImagesFromBlobPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Net_ImagesFromBlobPtr = + _lookup Function(Mat, ffi.Pointer)>>( + 'Net_ImagesFromBlob'); + late final _Net_ImagesFromBlob = + _Net_ImagesFromBlobPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Net_ImagesFromBlob_Async( Mat blob, @@ -14398,12 +12981,11 @@ class CvNative { ); } - late final _Net_ImagesFromBlob_AsyncPtr = _lookup< - ffi - .NativeFunction Function(Mat, CvCallback_1)>>( - 'Net_ImagesFromBlob_Async'); - late final _Net_ImagesFromBlob_Async = _Net_ImagesFromBlob_AsyncPtr - .asFunction Function(Mat, CvCallback_1)>(); + late final _Net_ImagesFromBlob_AsyncPtr = + _lookup Function(Mat, CvCallback_1)>>( + 'Net_ImagesFromBlob_Async'); + late final _Net_ImagesFromBlob_Async = + _Net_ImagesFromBlob_AsyncPtr.asFunction Function(Mat, CvCallback_1)>(); ffi.Pointer Net_ReadNet( ffi.Pointer model, @@ -14421,14 +13003,11 @@ class CvNative { late final _Net_ReadNetPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('Net_ReadNet'); late final _Net_ReadNet = _Net_ReadNetPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_ReadNetBytes( ffi.Pointer framework, @@ -14446,11 +13025,10 @@ class CvNative { late final _Net_ReadNetBytesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, VecUChar, - VecUChar, ffi.Pointer)>>('Net_ReadNetBytes'); + ffi.Pointer Function( + ffi.Pointer, VecUChar, VecUChar, ffi.Pointer)>>('Net_ReadNetBytes'); late final _Net_ReadNetBytes = _Net_ReadNetBytesPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, VecUChar, VecUChar, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, VecUChar, VecUChar, ffi.Pointer)>(); ffi.Pointer Net_ReadNetBytes_Async( ffi.Pointer framework, @@ -14468,11 +13046,10 @@ class CvNative { late final _Net_ReadNetBytes_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, VecUChar, - VecUChar, CvCallback_1)>>('Net_ReadNetBytes_Async'); + ffi.Pointer Function( + ffi.Pointer, VecUChar, VecUChar, CvCallback_1)>>('Net_ReadNetBytes_Async'); late final _Net_ReadNetBytes_Async = _Net_ReadNetBytes_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, VecUChar, VecUChar, CvCallback_1)>(); + ffi.Pointer Function(ffi.Pointer, VecUChar, VecUChar, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromCaffe( ffi.Pointer prototxt, @@ -14489,12 +13066,9 @@ class CvNative { late final _Net_ReadNetFromCaffePtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('Net_ReadNetFromCaffe'); + ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('Net_ReadNetFromCaffe'); late final _Net_ReadNetFromCaffe = _Net_ReadNetFromCaffePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromCaffeBytes( VecUChar prototxt, @@ -14508,14 +13082,11 @@ class CvNative { ); } - late final _Net_ReadNetFromCaffeBytesPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecUChar, VecUChar, - ffi.Pointer)>>('Net_ReadNetFromCaffeBytes'); - late final _Net_ReadNetFromCaffeBytes = - _Net_ReadNetFromCaffeBytesPtr.asFunction< - ffi.Pointer Function( - VecUChar, VecUChar, ffi.Pointer)>(); + late final _Net_ReadNetFromCaffeBytesPtr = + _lookup Function(VecUChar, VecUChar, ffi.Pointer)>>( + 'Net_ReadNetFromCaffeBytes'); + late final _Net_ReadNetFromCaffeBytes = _Net_ReadNetFromCaffeBytesPtr.asFunction< + ffi.Pointer Function(VecUChar, VecUChar, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromCaffeBytes_Async( VecUChar prototxt, @@ -14529,13 +13100,11 @@ class CvNative { ); } - late final _Net_ReadNetFromCaffeBytes_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecUChar, VecUChar, - CvCallback_1)>>('Net_ReadNetFromCaffeBytes_Async'); - late final _Net_ReadNetFromCaffeBytes_Async = - _Net_ReadNetFromCaffeBytes_AsyncPtr.asFunction< - ffi.Pointer Function(VecUChar, VecUChar, CvCallback_1)>(); + late final _Net_ReadNetFromCaffeBytes_AsyncPtr = + _lookup Function(VecUChar, VecUChar, CvCallback_1)>>( + 'Net_ReadNetFromCaffeBytes_Async'); + late final _Net_ReadNetFromCaffeBytes_Async = _Net_ReadNetFromCaffeBytes_AsyncPtr.asFunction< + ffi.Pointer Function(VecUChar, VecUChar, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromCaffe_Async( ffi.Pointer prototxt, @@ -14552,13 +13121,9 @@ class CvNative { late final _Net_ReadNetFromCaffe_AsyncPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - CvCallback_1)>>('Net_ReadNetFromCaffe_Async'); - late final _Net_ReadNetFromCaffe_Async = - _Net_ReadNetFromCaffe_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, CvCallback_1)>(); + ffi.Pointer, ffi.Pointer, CvCallback_1)>>('Net_ReadNetFromCaffe_Async'); + late final _Net_ReadNetFromCaffe_Async = _Net_ReadNetFromCaffe_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromONNX( ffi.Pointer model, @@ -14570,13 +13135,11 @@ class CvNative { ); } - late final _Net_ReadNetFromONNXPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('Net_ReadNetFromONNX'); + late final _Net_ReadNetFromONNXPtr = + _lookup Function(ffi.Pointer, ffi.Pointer)>>( + 'Net_ReadNetFromONNX'); late final _Net_ReadNetFromONNX = _Net_ReadNetFromONNXPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromONNXBytes( VecUChar model, @@ -14588,12 +13151,11 @@ class CvNative { ); } - late final _Net_ReadNetFromONNXBytesPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecUChar, ffi.Pointer)>>('Net_ReadNetFromONNXBytes'); - late final _Net_ReadNetFromONNXBytes = _Net_ReadNetFromONNXBytesPtr - .asFunction Function(VecUChar, ffi.Pointer)>(); + late final _Net_ReadNetFromONNXBytesPtr = + _lookup Function(VecUChar, ffi.Pointer)>>( + 'Net_ReadNetFromONNXBytes'); + late final _Net_ReadNetFromONNXBytes = + _Net_ReadNetFromONNXBytesPtr.asFunction Function(VecUChar, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromONNXBytes_Async( VecUChar model, @@ -14605,13 +13167,11 @@ class CvNative { ); } - late final _Net_ReadNetFromONNXBytes_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecUChar, CvCallback_1)>>('Net_ReadNetFromONNXBytes_Async'); + late final _Net_ReadNetFromONNXBytes_AsyncPtr = + _lookup Function(VecUChar, CvCallback_1)>>( + 'Net_ReadNetFromONNXBytes_Async'); late final _Net_ReadNetFromONNXBytes_Async = - _Net_ReadNetFromONNXBytes_AsyncPtr.asFunction< - ffi.Pointer Function(VecUChar, CvCallback_1)>(); + _Net_ReadNetFromONNXBytes_AsyncPtr.asFunction Function(VecUChar, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromONNX_Async( ffi.Pointer model, @@ -14623,14 +13183,11 @@ class CvNative { ); } - late final _Net_ReadNetFromONNX_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - CvCallback_1)>>('Net_ReadNetFromONNX_Async'); - late final _Net_ReadNetFromONNX_Async = - _Net_ReadNetFromONNX_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, CvCallback_1)>(); + late final _Net_ReadNetFromONNX_AsyncPtr = + _lookup Function(ffi.Pointer, CvCallback_1)>>( + 'Net_ReadNetFromONNX_Async'); + late final _Net_ReadNetFromONNX_Async = _Net_ReadNetFromONNX_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromTFLite( ffi.Pointer model, @@ -14642,13 +13199,11 @@ class CvNative { ); } - late final _Net_ReadNetFromTFLitePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer)>>('Net_ReadNetFromTFLite'); + late final _Net_ReadNetFromTFLitePtr = + _lookup Function(ffi.Pointer, ffi.Pointer)>>( + 'Net_ReadNetFromTFLite'); late final _Net_ReadNetFromTFLite = _Net_ReadNetFromTFLitePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromTFLiteBytes( VecUChar bufferModel, @@ -14660,12 +13215,11 @@ class CvNative { ); } - late final _Net_ReadNetFromTFLiteBytesPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecUChar, ffi.Pointer)>>('Net_ReadNetFromTFLiteBytes'); - late final _Net_ReadNetFromTFLiteBytes = _Net_ReadNetFromTFLiteBytesPtr - .asFunction Function(VecUChar, ffi.Pointer)>(); + late final _Net_ReadNetFromTFLiteBytesPtr = + _lookup Function(VecUChar, ffi.Pointer)>>( + 'Net_ReadNetFromTFLiteBytes'); + late final _Net_ReadNetFromTFLiteBytes = + _Net_ReadNetFromTFLiteBytesPtr.asFunction Function(VecUChar, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromTFLiteBytes_Async( VecUChar bufferModel, @@ -14677,13 +13231,11 @@ class CvNative { ); } - late final _Net_ReadNetFromTFLiteBytes_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecUChar, CvCallback_1)>>('Net_ReadNetFromTFLiteBytes_Async'); - late final _Net_ReadNetFromTFLiteBytes_Async = - _Net_ReadNetFromTFLiteBytes_AsyncPtr.asFunction< - ffi.Pointer Function(VecUChar, CvCallback_1)>(); + late final _Net_ReadNetFromTFLiteBytes_AsyncPtr = + _lookup Function(VecUChar, CvCallback_1)>>( + 'Net_ReadNetFromTFLiteBytes_Async'); + late final _Net_ReadNetFromTFLiteBytes_Async = _Net_ReadNetFromTFLiteBytes_AsyncPtr.asFunction< + ffi.Pointer Function(VecUChar, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromTFLite_Async( ffi.Pointer model, @@ -14695,14 +13247,11 @@ class CvNative { ); } - late final _Net_ReadNetFromTFLite_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - CvCallback_1)>>('Net_ReadNetFromTFLite_Async'); - late final _Net_ReadNetFromTFLite_Async = - _Net_ReadNetFromTFLite_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, CvCallback_1)>(); + late final _Net_ReadNetFromTFLite_AsyncPtr = + _lookup Function(ffi.Pointer, CvCallback_1)>>( + 'Net_ReadNetFromTFLite_Async'); + late final _Net_ReadNetFromTFLite_Async = _Net_ReadNetFromTFLite_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromTensorflow( ffi.Pointer model, @@ -14719,13 +13268,9 @@ class CvNative { late final _Net_ReadNetFromTensorflowPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('Net_ReadNetFromTensorflow'); - late final _Net_ReadNetFromTensorflow = - _Net_ReadNetFromTensorflowPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('Net_ReadNetFromTensorflow'); + late final _Net_ReadNetFromTensorflow = _Net_ReadNetFromTensorflowPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromTensorflowBytes( VecUChar model, @@ -14739,14 +13284,11 @@ class CvNative { ); } - late final _Net_ReadNetFromTensorflowBytesPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecUChar, VecUChar, - ffi.Pointer)>>('Net_ReadNetFromTensorflowBytes'); - late final _Net_ReadNetFromTensorflowBytes = - _Net_ReadNetFromTensorflowBytesPtr.asFunction< - ffi.Pointer Function( - VecUChar, VecUChar, ffi.Pointer)>(); + late final _Net_ReadNetFromTensorflowBytesPtr = + _lookup Function(VecUChar, VecUChar, ffi.Pointer)>>( + 'Net_ReadNetFromTensorflowBytes'); + late final _Net_ReadNetFromTensorflowBytes = _Net_ReadNetFromTensorflowBytesPtr.asFunction< + ffi.Pointer Function(VecUChar, VecUChar, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromTensorflowBytes_Async( VecUChar model, @@ -14760,13 +13302,11 @@ class CvNative { ); } - late final _Net_ReadNetFromTensorflowBytes_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecUChar, VecUChar, - CvCallback_1)>>('Net_ReadNetFromTensorflowBytes_Async'); - late final _Net_ReadNetFromTensorflowBytes_Async = - _Net_ReadNetFromTensorflowBytes_AsyncPtr.asFunction< - ffi.Pointer Function(VecUChar, VecUChar, CvCallback_1)>(); + late final _Net_ReadNetFromTensorflowBytes_AsyncPtr = + _lookup Function(VecUChar, VecUChar, CvCallback_1)>>( + 'Net_ReadNetFromTensorflowBytes_Async'); + late final _Net_ReadNetFromTensorflowBytes_Async = _Net_ReadNetFromTensorflowBytes_AsyncPtr.asFunction< + ffi.Pointer Function(VecUChar, VecUChar, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromTensorflow_Async( ffi.Pointer model, @@ -14782,14 +13322,10 @@ class CvNative { late final _Net_ReadNetFromTensorflow_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, CvCallback_1)>>('Net_ReadNetFromTensorflow_Async'); - late final _Net_ReadNetFromTensorflow_Async = - _Net_ReadNetFromTensorflow_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, CvCallback_1)>(); + late final _Net_ReadNetFromTensorflow_Async = _Net_ReadNetFromTensorflow_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromTorch( ffi.Pointer model, @@ -14807,11 +13343,10 @@ class CvNative { late final _Net_ReadNetFromTorchPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Bool, - ffi.Bool, ffi.Pointer)>>('Net_ReadNetFromTorch'); + ffi.Pointer Function( + ffi.Pointer, ffi.Bool, ffi.Bool, ffi.Pointer)>>('Net_ReadNetFromTorch'); late final _Net_ReadNetFromTorch = _Net_ReadNetFromTorchPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, bool, bool, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, bool, bool, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromTorch_Async( ffi.Pointer model, @@ -14829,12 +13364,10 @@ class CvNative { late final _Net_ReadNetFromTorch_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Bool, - ffi.Bool, CvCallback_1)>>('Net_ReadNetFromTorch_Async'); - late final _Net_ReadNetFromTorch_Async = - _Net_ReadNetFromTorch_AsyncPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, bool, bool, CvCallback_1)>(); + ffi.Pointer, ffi.Bool, ffi.Bool, CvCallback_1)>>('Net_ReadNetFromTorch_Async'); + late final _Net_ReadNetFromTorch_Async = _Net_ReadNetFromTorch_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, bool, bool, CvCallback_1)>(); ffi.Pointer Net_ReadNet_Async( ffi.Pointer model, @@ -14852,14 +13385,11 @@ class CvNative { late final _Net_ReadNet_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, CvCallback_1)>>('Net_ReadNet_Async'); late final _Net_ReadNet_Async = _Net_ReadNet_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, CvCallback_1)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, CvCallback_1)>(); ffi.Pointer Net_SetInput( Net net, @@ -14873,12 +13403,11 @@ class CvNative { ); } - late final _Net_SetInputPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, Mat, ffi.Pointer)>>('Net_SetInput'); - late final _Net_SetInput = _Net_SetInputPtr.asFunction< - ffi.Pointer Function(Net, Mat, ffi.Pointer)>(); + late final _Net_SetInputPtr = + _lookup Function(Net, Mat, ffi.Pointer)>>( + 'Net_SetInput'); + late final _Net_SetInput = + _Net_SetInputPtr.asFunction Function(Net, Mat, ffi.Pointer)>(); ffi.Pointer Net_SetInput_Async( Net net, @@ -14895,12 +13424,10 @@ class CvNative { } late final _Net_SetInput_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Net, Mat, ffi.Pointer, - CvCallback_0)>>('Net_SetInput_Async'); + ffi.NativeFunction Function(Net, Mat, ffi.Pointer, CvCallback_0)>>( + 'Net_SetInput_Async'); late final _Net_SetInput_Async = _Net_SetInput_AsyncPtr.asFunction< - ffi.Pointer Function( - Net, Mat, ffi.Pointer, CvCallback_0)>(); + ffi.Pointer Function(Net, Mat, ffi.Pointer, CvCallback_0)>(); ffi.Pointer Net_SetPreferableBackend( Net net, @@ -14913,10 +13440,9 @@ class CvNative { } late final _Net_SetPreferableBackendPtr = - _lookup Function(Net, ffi.Int)>>( - 'Net_SetPreferableBackend'); - late final _Net_SetPreferableBackend = _Net_SetPreferableBackendPtr - .asFunction Function(Net, int)>(); + _lookup Function(Net, ffi.Int)>>('Net_SetPreferableBackend'); + late final _Net_SetPreferableBackend = + _Net_SetPreferableBackendPtr.asFunction Function(Net, int)>(); ffi.Pointer Net_SetPreferableBackend_Async( Net net, @@ -14930,13 +13456,11 @@ class CvNative { ); } - late final _Net_SetPreferableBackend_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Int, CvCallback_0)>>('Net_SetPreferableBackend_Async'); + late final _Net_SetPreferableBackend_AsyncPtr = + _lookup Function(Net, ffi.Int, CvCallback_0)>>( + 'Net_SetPreferableBackend_Async'); late final _Net_SetPreferableBackend_Async = - _Net_SetPreferableBackend_AsyncPtr.asFunction< - ffi.Pointer Function(Net, int, CvCallback_0)>(); + _Net_SetPreferableBackend_AsyncPtr.asFunction Function(Net, int, CvCallback_0)>(); ffi.Pointer Net_SetPreferableTarget( Net net, @@ -14949,10 +13473,9 @@ class CvNative { } late final _Net_SetPreferableTargetPtr = - _lookup Function(Net, ffi.Int)>>( - 'Net_SetPreferableTarget'); - late final _Net_SetPreferableTarget = _Net_SetPreferableTargetPtr.asFunction< - ffi.Pointer Function(Net, int)>(); + _lookup Function(Net, ffi.Int)>>('Net_SetPreferableTarget'); + late final _Net_SetPreferableTarget = + _Net_SetPreferableTargetPtr.asFunction Function(Net, int)>(); ffi.Pointer Net_SetPreferableTarget_Async( Net net, @@ -14966,12 +13489,11 @@ class CvNative { ); } - late final _Net_SetPreferableTarget_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Int, CvCallback_0)>>('Net_SetPreferableTarget_Async'); - late final _Net_SetPreferableTarget_Async = _Net_SetPreferableTarget_AsyncPtr - .asFunction Function(Net, int, CvCallback_0)>(); + late final _Net_SetPreferableTarget_AsyncPtr = + _lookup Function(Net, ffi.Int, CvCallback_0)>>( + 'Net_SetPreferableTarget_Async'); + late final _Net_SetPreferableTarget_Async = + _Net_SetPreferableTarget_AsyncPtr.asFunction Function(Net, int, CvCallback_0)>(); ffi.Pointer Net_forwardAsync( Net net, @@ -14987,11 +13509,10 @@ class CvNative { late final _Net_forwardAsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Net, ffi.Pointer, - ffi.Pointer)>>('Net_forwardAsync'); + ffi.Pointer Function( + Net, ffi.Pointer, ffi.Pointer)>>('Net_forwardAsync'); late final _Net_forwardAsync = _Net_forwardAsyncPtr.asFunction< - ffi.Pointer Function( - Net, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(Net, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Norm( Mat src1, @@ -15005,12 +13526,10 @@ class CvNative { ); } - late final _NormPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Pointer)>>('Norm'); - late final _Norm = _NormPtr.asFunction< - ffi.Pointer Function(Mat, int, ffi.Pointer)>(); + late final _NormPtr = + _lookup Function(Mat, ffi.Int, ffi.Pointer)>>( + 'Norm'); + late final _Norm = _NormPtr.asFunction Function(Mat, int, ffi.Pointer)>(); ffi.Pointer NormWithMats( Mat src1, @@ -15026,12 +13545,11 @@ class CvNative { ); } - late final _NormWithMatsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Pointer)>>('NormWithMats'); - late final _NormWithMats = _NormWithMatsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, ffi.Pointer)>(); + late final _NormWithMatsPtr = + _lookup Function(Mat, Mat, ffi.Int, ffi.Pointer)>>( + 'NormWithMats'); + late final _NormWithMats = + _NormWithMatsPtr.asFunction Function(Mat, Mat, int, ffi.Pointer)>(); void ORB_Close( ORBPtr o, @@ -15041,8 +13559,7 @@ class CvNative { ); } - late final _ORB_ClosePtr = - _lookup>('ORB_Close'); + late final _ORB_ClosePtr = _lookup>('ORB_Close'); late final _ORB_Close = _ORB_ClosePtr.asFunction(); ffi.Pointer ORB_Create( @@ -15053,11 +13570,9 @@ class CvNative { ); } - late final _ORB_CreatePtr = _lookup< - ffi.NativeFunction Function(ffi.Pointer)>>( - 'ORB_Create'); - late final _ORB_Create = _ORB_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _ORB_CreatePtr = + _lookup Function(ffi.Pointer)>>('ORB_Create'); + late final _ORB_Create = _ORB_CreatePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer ORB_CreateWithParams( int nfeatures, @@ -15087,20 +13602,10 @@ class CvNative { late final _ORB_CreateWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, - ffi.Float, - ffi.Int, - ffi.Int, - ffi.Int, - ffi.Int, - ffi.Int, - ffi.Int, - ffi.Int, - ffi.Pointer)>>('ORB_CreateWithParams'); + ffi.Pointer Function(ffi.Int, ffi.Float, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Int, + ffi.Int, ffi.Int, ffi.Pointer)>>('ORB_CreateWithParams'); late final _ORB_CreateWithParams = _ORB_CreateWithParamsPtr.asFunction< - ffi.Pointer Function( - int, double, int, int, int, int, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(int, double, int, int, int, int, int, int, int, ffi.Pointer)>(); ffi.Pointer ORB_Detect( ORB o, @@ -15114,12 +13619,11 @@ class CvNative { ); } - late final _ORB_DetectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ORB, Mat, ffi.Pointer)>>('ORB_Detect'); - late final _ORB_Detect = _ORB_DetectPtr.asFunction< - ffi.Pointer Function(ORB, Mat, ffi.Pointer)>(); + late final _ORB_DetectPtr = + _lookup Function(ORB, Mat, ffi.Pointer)>>( + 'ORB_Detect'); + late final _ORB_Detect = + _ORB_DetectPtr.asFunction Function(ORB, Mat, ffi.Pointer)>(); ffi.Pointer ORB_DetectAndCompute( ORB o, @@ -15138,12 +13642,10 @@ class CvNative { } late final _ORB_DetectAndComputePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ORB, Mat, Mat, Mat, - ffi.Pointer)>>('ORB_DetectAndCompute'); + ffi.NativeFunction Function(ORB, Mat, Mat, Mat, ffi.Pointer)>>( + 'ORB_DetectAndCompute'); late final _ORB_DetectAndCompute = _ORB_DetectAndComputePtr.asFunction< - ffi.Pointer Function( - ORB, Mat, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function(ORB, Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer Ones( int rows, @@ -15160,11 +13662,9 @@ class CvNative { } late final _OnesPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Ones'); - late final _Ones = _OnesPtr.asFunction< - ffi.Pointer Function(int, int, int, ffi.Pointer)>(); + ffi + .NativeFunction Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Ones'); + late final _Ones = _OnesPtr.asFunction Function(int, int, int, ffi.Pointer)>(); ffi.Pointer PencilSketch( Mat src, @@ -15185,11 +13685,10 @@ class CvNative { } late final _PencilSketchPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Float, ffi.Float, ffi.Float)>>('PencilSketch'); - late final _PencilSketch = _PencilSketchPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, double, double, double)>(); + ffi.NativeFunction Function(Mat, Mat, Mat, ffi.Float, ffi.Float, ffi.Float)>>( + 'PencilSketch'); + late final _PencilSketch = + _PencilSketchPtr.asFunction Function(Mat, Mat, Mat, double, double, double)>(); ffi.Pointer PhaseCorrelate( Mat src1, @@ -15209,11 +13708,10 @@ class CvNative { late final _PhaseCorrelatePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, ffi.Pointer, - ffi.Pointer)>>('PhaseCorrelate'); + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Pointer, ffi.Pointer)>>('PhaseCorrelate'); late final _PhaseCorrelate = _PhaseCorrelatePtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(Mat, Mat, Mat, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer PhotoInpaint( Mat src, @@ -15231,12 +13729,11 @@ class CvNative { ); } - late final _PhotoInpaintPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Float, ffi.Int)>>('PhotoInpaint'); - late final _PhotoInpaint = _PhotoInpaintPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, double, int)>(); + late final _PhotoInpaintPtr = + _lookup Function(Mat, Mat, Mat, ffi.Float, ffi.Int)>>( + 'PhotoInpaint'); + late final _PhotoInpaint = + _PhotoInpaintPtr.asFunction Function(Mat, Mat, Mat, double, int)>(); ffi.Pointer PointPolygonTest( VecPoint pts, @@ -15254,11 +13751,10 @@ class CvNative { late final _PointPolygonTestPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecPoint, Point2f, ffi.Bool, - ffi.Pointer)>>('PointPolygonTest'); + ffi.Pointer Function( + VecPoint, Point2f, ffi.Bool, ffi.Pointer)>>('PointPolygonTest'); late final _PointPolygonTest = _PointPolygonTestPtr.asFunction< - ffi.Pointer Function( - VecPoint, Point2f, bool, ffi.Pointer)>(); + ffi.Pointer Function(VecPoint, Point2f, bool, ffi.Pointer)>(); ffi.Pointer Polylines( Mat img, @@ -15277,11 +13773,10 @@ class CvNative { } late final _PolylinesPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, VecVecPoint, ffi.Bool, Scalar, ffi.Int)>>('Polylines'); - late final _Polylines = _PolylinesPtr.asFunction< - ffi.Pointer Function(Mat, VecVecPoint, bool, Scalar, int)>(); + ffi.NativeFunction Function(Mat, VecVecPoint, ffi.Bool, Scalar, ffi.Int)>>( + 'Polylines'); + late final _Polylines = + _PolylinesPtr.asFunction Function(Mat, VecVecPoint, bool, Scalar, int)>(); ffi.Pointer Prim_from_Circle( Point center, @@ -15305,11 +13800,10 @@ class CvNative { late final _Prim_from_CirclePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Point, Scalar, ffi.Int, ffi.Int, - ffi.Int, ffi.Int, ffi.Pointer)>>('Prim_from_Circle'); + ffi.Pointer Function( + Point, Scalar, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Prim_from_Circle'); late final _Prim_from_Circle = _Prim_from_CirclePtr.asFunction< - ffi.Pointer Function( - Point, Scalar, int, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Point, Scalar, int, int, int, int, ffi.Pointer)>(); ffi.Pointer Prim_from_FText( ffi.Pointer text, @@ -15331,11 +13825,10 @@ class CvNative { late final _Prim_from_FTextPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, Point, - ffi.Int, Scalar, ffi.Pointer)>>('Prim_from_FText'); + ffi.Pointer Function( + ffi.Pointer, ffi.Int, Point, ffi.Int, Scalar, ffi.Pointer)>>('Prim_from_FText'); late final _Prim_from_FText = _Prim_from_FTextPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, Point, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, int, Point, int, Scalar, ffi.Pointer)>(); ffi.Pointer Prim_from_Image( Point org, @@ -15351,12 +13844,11 @@ class CvNative { ); } - late final _Prim_from_ImagePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Point, Mat, Mat, ffi.Pointer)>>('Prim_from_Image'); - late final _Prim_from_Image = _Prim_from_ImagePtr.asFunction< - ffi.Pointer Function(Point, Mat, Mat, ffi.Pointer)>(); + late final _Prim_from_ImagePtr = + _lookup Function(Point, Mat, Mat, ffi.Pointer)>>( + 'Prim_from_Image'); + late final _Prim_from_Image = + _Prim_from_ImagePtr.asFunction Function(Point, Mat, Mat, ffi.Pointer)>(); ffi.Pointer Prim_from_Line( Scalar color, @@ -15380,11 +13872,10 @@ class CvNative { late final _Prim_from_LinePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Scalar, ffi.Int, Point, Point, ffi.Int, - ffi.Int, ffi.Pointer)>>('Prim_from_Line'); + ffi.Pointer Function( + Scalar, ffi.Int, Point, Point, ffi.Int, ffi.Int, ffi.Pointer)>>('Prim_from_Line'); late final _Prim_from_Line = _Prim_from_LinePtr.asFunction< - ffi.Pointer Function( - Scalar, int, Point, Point, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Scalar, int, Point, Point, int, int, ffi.Pointer)>(); ffi.Pointer Prim_from_Mosaic( int cellSz, @@ -15400,12 +13891,11 @@ class CvNative { ); } - late final _Prim_from_MosaicPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, ffi.Int, Rect, ffi.Pointer)>>('Prim_from_Mosaic'); - late final _Prim_from_Mosaic = _Prim_from_MosaicPtr.asFunction< - ffi.Pointer Function(int, int, Rect, ffi.Pointer)>(); + late final _Prim_from_MosaicPtr = + _lookup Function(ffi.Int, ffi.Int, Rect, ffi.Pointer)>>( + 'Prim_from_Mosaic'); + late final _Prim_from_Mosaic = + _Prim_from_MosaicPtr.asFunction Function(int, int, Rect, ffi.Pointer)>(); ffi.Pointer Prim_from_Poly( VecPoint points, @@ -15427,11 +13917,10 @@ class CvNative { late final _Prim_from_PolyPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecPoint, Scalar, ffi.Int, ffi.Int, - ffi.Int, ffi.Pointer)>>('Prim_from_Poly'); + ffi.Pointer Function( + VecPoint, Scalar, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Prim_from_Poly'); late final _Prim_from_Poly = _Prim_from_PolyPtr.asFunction< - ffi.Pointer Function( - VecPoint, Scalar, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(VecPoint, Scalar, int, int, int, ffi.Pointer)>(); ffi.Pointer Prim_from_Rect( Scalar color, @@ -15453,11 +13942,10 @@ class CvNative { late final _Prim_from_RectPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Scalar, ffi.Int, Rect, ffi.Int, - ffi.Int, ffi.Pointer)>>('Prim_from_Rect'); + ffi.Pointer Function( + Scalar, ffi.Int, Rect, ffi.Int, ffi.Int, ffi.Pointer)>>('Prim_from_Rect'); late final _Prim_from_Rect = _Prim_from_RectPtr.asFunction< - ffi.Pointer Function( - Scalar, int, Rect, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Scalar, int, Rect, int, int, ffi.Pointer)>(); ffi.Pointer Prim_from_Text( bool bottom_left_origin, @@ -15487,20 +13975,11 @@ class CvNative { late final _Prim_from_TextPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Bool, - Scalar, - ffi.Int, - ffi.Double, - ffi.Int, - Point, - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer)>>('Prim_from_Text'); + ffi.Pointer Function(ffi.Bool, Scalar, ffi.Int, ffi.Double, ffi.Int, Point, + ffi.Pointer, ffi.Int, ffi.Int, ffi.Pointer)>>('Prim_from_Text'); late final _Prim_from_Text = _Prim_from_TextPtr.asFunction< - ffi.Pointer Function(bool, Scalar, int, double, int, Point, - ffi.Pointer, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + bool, Scalar, int, double, int, Point, ffi.Pointer, int, int, ffi.Pointer)>(); ffi.Pointer PutText( Mat img, @@ -15524,11 +14003,10 @@ class CvNative { late final _PutTextPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer, Point, - ffi.Int, ffi.Double, Scalar, ffi.Int)>>('PutText'); + ffi.Pointer Function( + Mat, ffi.Pointer, Point, ffi.Int, ffi.Double, Scalar, ffi.Int)>>('PutText'); late final _PutText = _PutTextPtr.asFunction< - ffi.Pointer Function( - Mat, ffi.Pointer, Point, int, double, Scalar, int)>(); + ffi.Pointer Function(Mat, ffi.Pointer, Point, int, double, Scalar, int)>(); ffi.Pointer PutTextWithParams( Mat img, @@ -15556,19 +14034,11 @@ class CvNative { late final _PutTextWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - ffi.Pointer, - Point, - ffi.Int, - ffi.Double, - Scalar, - ffi.Int, - ffi.Int, - ffi.Bool)>>('PutTextWithParams'); + ffi.Pointer Function(Mat, ffi.Pointer, Point, ffi.Int, ffi.Double, Scalar, + ffi.Int, ffi.Int, ffi.Bool)>>('PutTextWithParams'); late final _PutTextWithParams = _PutTextWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer, Point, int, - double, Scalar, int, int, bool)>(); + ffi.Pointer Function( + Mat, ffi.Pointer, Point, int, double, Scalar, int, int, bool)>(); ffi.Pointer PyrDown( Mat src, @@ -15584,11 +14054,9 @@ class CvNative { ); } - late final _PyrDownPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Size, ffi.Int)>>('PyrDown'); - late final _PyrDown = _PyrDownPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Size, int)>(); + late final _PyrDownPtr = + _lookup Function(Mat, Mat, Size, ffi.Int)>>('PyrDown'); + late final _PyrDown = _PyrDownPtr.asFunction Function(Mat, Mat, Size, int)>(); ffi.Pointer PyrUp( Mat src, @@ -15604,11 +14072,9 @@ class CvNative { ); } - late final _PyrUpPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Size, ffi.Int)>>('PyrUp'); - late final _PyrUp = _PyrUpPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Size, int)>(); + late final _PyrUpPtr = + _lookup Function(Mat, Mat, Size, ffi.Int)>>('PyrUp'); + late final _PyrUp = _PyrUpPtr.asFunction Function(Mat, Mat, Size, int)>(); void QRCodeDetector_Close( QRCodeDetectorPtr self, @@ -15619,10 +14085,8 @@ class CvNative { } late final _QRCodeDetector_ClosePtr = - _lookup>( - 'QRCodeDetector_Close'); - late final _QRCodeDetector_Close = - _QRCodeDetector_ClosePtr.asFunction(); + _lookup>('QRCodeDetector_Close'); + late final _QRCodeDetector_Close = _QRCodeDetector_ClosePtr.asFunction(); ffi.Pointer QRCodeDetector_Decode( QRCodeDetector self, @@ -15642,15 +14106,11 @@ class CvNative { late final _QRCodeDetector_DecodePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - QRCodeDetector, - Mat, - ffi.Pointer, - Mat, + ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, Mat, ffi.Pointer>)>>('QRCodeDetector_Decode'); late final _QRCodeDetector_Decode = _QRCodeDetector_DecodePtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, - Mat, ffi.Pointer>)>(); + ffi.Pointer Function( + QRCodeDetector, Mat, ffi.Pointer, Mat, ffi.Pointer>)>(); ffi.Pointer QRCodeDetector_Decode_Async( QRCodeDetector self, @@ -15664,13 +14124,11 @@ class CvNative { ); } - late final _QRCodeDetector_Decode_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, - CvCallback_3)>>('QRCodeDetector_Decode_Async'); - late final _QRCodeDetector_Decode_Async = - _QRCodeDetector_Decode_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_3)>(); + late final _QRCodeDetector_Decode_AsyncPtr = + _lookup Function(QRCodeDetector, Mat, CvCallback_3)>>( + 'QRCodeDetector_Decode_Async'); + late final _QRCodeDetector_Decode_Async = _QRCodeDetector_Decode_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_3)>(); ffi.Pointer QRCodeDetector_Detect( QRCodeDetector self, @@ -15689,13 +14147,9 @@ class CvNative { late final _QRCodeDetector_DetectPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - QRCodeDetector, - Mat, - ffi.Pointer, - ffi.Pointer)>>('QRCodeDetector_Detect'); + QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer)>>('QRCodeDetector_Detect'); late final _QRCodeDetector_Detect = _QRCodeDetector_DetectPtr.asFunction< - ffi.Pointer Function( - QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer QRCodeDetector_DetectAndDecode( QRCodeDetector self, @@ -15714,22 +14168,12 @@ class CvNative { } late final _QRCodeDetector_DetectAndDecodePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - QRCodeDetector, - Mat, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>( - 'QRCodeDetector_DetectAndDecode'); - late final _QRCodeDetector_DetectAndDecode = - _QRCodeDetector_DetectAndDecodePtr.asFunction< - ffi.Pointer Function( - QRCodeDetector, - Mat, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>>('QRCodeDetector_DetectAndDecode'); + late final _QRCodeDetector_DetectAndDecode = _QRCodeDetector_DetectAndDecodePtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>(); ffi.Pointer QRCodeDetector_DetectAndDecodeMulti( QRCodeDetector self, @@ -15751,22 +14195,11 @@ class CvNative { late final _QRCodeDetector_DetectAndDecodeMultiPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - QRCodeDetector, - Mat, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('QRCodeDetector_DetectAndDecodeMulti'); - late final _QRCodeDetector_DetectAndDecodeMulti = - _QRCodeDetector_DetectAndDecodeMultiPtr.asFunction< - ffi.Pointer Function( - QRCodeDetector, - Mat, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('QRCodeDetector_DetectAndDecodeMulti'); + late final _QRCodeDetector_DetectAndDecodeMulti = _QRCodeDetector_DetectAndDecodeMultiPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer QRCodeDetector_DetectAndDecodeMulti_Async( QRCodeDetector self, @@ -15780,13 +14213,11 @@ class CvNative { ); } - late final _QRCodeDetector_DetectAndDecodeMulti_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, - CvCallback_4)>>('QRCodeDetector_DetectAndDecodeMulti_Async'); - late final _QRCodeDetector_DetectAndDecodeMulti_Async = - _QRCodeDetector_DetectAndDecodeMulti_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_4)>(); + late final _QRCodeDetector_DetectAndDecodeMulti_AsyncPtr = + _lookup Function(QRCodeDetector, Mat, CvCallback_4)>>( + 'QRCodeDetector_DetectAndDecodeMulti_Async'); + late final _QRCodeDetector_DetectAndDecodeMulti_Async = _QRCodeDetector_DetectAndDecodeMulti_AsyncPtr + .asFunction Function(QRCodeDetector, Mat, CvCallback_4)>(); ffi.Pointer QRCodeDetector_DetectAndDecode_Async( QRCodeDetector self, @@ -15800,13 +14231,11 @@ class CvNative { ); } - late final _QRCodeDetector_DetectAndDecode_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, - CvCallback_3)>>('QRCodeDetector_DetectAndDecode_Async'); - late final _QRCodeDetector_DetectAndDecode_Async = - _QRCodeDetector_DetectAndDecode_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_3)>(); + late final _QRCodeDetector_DetectAndDecode_AsyncPtr = + _lookup Function(QRCodeDetector, Mat, CvCallback_3)>>( + 'QRCodeDetector_DetectAndDecode_Async'); + late final _QRCodeDetector_DetectAndDecode_Async = _QRCodeDetector_DetectAndDecode_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_3)>(); ffi.Pointer QRCodeDetector_DetectMulti( QRCodeDetector self, @@ -15824,15 +14253,10 @@ class CvNative { late final _QRCodeDetector_DetectMultiPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - QRCodeDetector, - Mat, - ffi.Pointer, + ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer)>>('QRCodeDetector_DetectMulti'); - late final _QRCodeDetector_DetectMulti = - _QRCodeDetector_DetectMultiPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, - ffi.Pointer, ffi.Pointer)>(); + late final _QRCodeDetector_DetectMulti = _QRCodeDetector_DetectMultiPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer QRCodeDetector_DetectMulti_Async( QRCodeDetector self, @@ -15846,13 +14270,11 @@ class CvNative { ); } - late final _QRCodeDetector_DetectMulti_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, - CvCallback_2)>>('QRCodeDetector_DetectMulti_Async'); - late final _QRCodeDetector_DetectMulti_Async = - _QRCodeDetector_DetectMulti_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_2)>(); + late final _QRCodeDetector_DetectMulti_AsyncPtr = + _lookup Function(QRCodeDetector, Mat, CvCallback_2)>>( + 'QRCodeDetector_DetectMulti_Async'); + late final _QRCodeDetector_DetectMulti_Async = _QRCodeDetector_DetectMulti_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_2)>(); ffi.Pointer QRCodeDetector_Detect_Async( QRCodeDetector self, @@ -15866,13 +14288,11 @@ class CvNative { ); } - late final _QRCodeDetector_Detect_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, - CvCallback_2)>>('QRCodeDetector_Detect_Async'); - late final _QRCodeDetector_Detect_Async = - _QRCodeDetector_Detect_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_2)>(); + late final _QRCodeDetector_Detect_AsyncPtr = + _lookup Function(QRCodeDetector, Mat, CvCallback_2)>>( + 'QRCodeDetector_Detect_Async'); + late final _QRCodeDetector_Detect_Async = _QRCodeDetector_Detect_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_2)>(); ffi.Pointer QRCodeDetector_New( ffi.Pointer rval, @@ -15882,12 +14302,11 @@ class CvNative { ); } - late final _QRCodeDetector_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('QRCodeDetector_New'); - late final _QRCodeDetector_New = _QRCodeDetector_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _QRCodeDetector_NewPtr = + _lookup Function(ffi.Pointer)>>( + 'QRCodeDetector_New'); + late final _QRCodeDetector_New = + _QRCodeDetector_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer QRCodeDetector_New_Async( CvCallback_1 callback, @@ -15898,10 +14317,9 @@ class CvNative { } late final _QRCodeDetector_New_AsyncPtr = - _lookup Function(CvCallback_1)>>( - 'QRCodeDetector_New_Async'); - late final _QRCodeDetector_New_Async = _QRCodeDetector_New_AsyncPtr - .asFunction Function(CvCallback_1)>(); + _lookup Function(CvCallback_1)>>('QRCodeDetector_New_Async'); + late final _QRCodeDetector_New_Async = + _QRCodeDetector_New_AsyncPtr.asFunction Function(CvCallback_1)>(); ffi.Pointer QRCodeDetector_decodeCurved( QRCodeDetector self, @@ -15920,14 +14338,12 @@ class CvNative { } late final _QRCodeDetector_decodeCurvedPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, VecPoint, - ffi.Pointer, ffi.Pointer>)>>( - 'QRCodeDetector_decodeCurved'); - late final _QRCodeDetector_decodeCurved = - _QRCodeDetector_decodeCurvedPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, VecPoint, - ffi.Pointer, ffi.Pointer>)>(); + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, VecPoint, ffi.Pointer, + ffi.Pointer>)>>('QRCodeDetector_decodeCurved'); + late final _QRCodeDetector_decodeCurved = _QRCodeDetector_decodeCurvedPtr.asFunction< + ffi.Pointer Function( + QRCodeDetector, Mat, VecPoint, ffi.Pointer, ffi.Pointer>)>(); ffi.Pointer QRCodeDetector_decodeCurved_Async( QRCodeDetector self, @@ -15944,13 +14360,10 @@ class CvNative { } late final _QRCodeDetector_decodeCurved_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, VecPoint, - CvCallback_2)>>('QRCodeDetector_decodeCurved_Async'); - late final _QRCodeDetector_decodeCurved_Async = - _QRCodeDetector_decodeCurved_AsyncPtr.asFunction< - ffi.Pointer Function( - QRCodeDetector, Mat, VecPoint, CvCallback_2)>(); + ffi.NativeFunction Function(QRCodeDetector, Mat, VecPoint, CvCallback_2)>>( + 'QRCodeDetector_decodeCurved_Async'); + late final _QRCodeDetector_decodeCurved_Async = _QRCodeDetector_decodeCurved_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, VecPoint, CvCallback_2)>(); ffi.Pointer QRCodeDetector_detectAndDecodeCurved( QRCodeDetector self, @@ -15969,22 +14382,12 @@ class CvNative { } late final _QRCodeDetector_detectAndDecodeCurvedPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - QRCodeDetector, - Mat, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>( - 'QRCodeDetector_detectAndDecodeCurved'); - late final _QRCodeDetector_detectAndDecodeCurved = - _QRCodeDetector_detectAndDecodeCurvedPtr.asFunction< - ffi.Pointer Function( - QRCodeDetector, - Mat, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>>('QRCodeDetector_detectAndDecodeCurved'); + late final _QRCodeDetector_detectAndDecodeCurved = _QRCodeDetector_detectAndDecodeCurvedPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>(); ffi.Pointer QRCodeDetector_detectAndDecodeCurved_Async( QRCodeDetector self, @@ -15998,13 +14401,11 @@ class CvNative { ); } - late final _QRCodeDetector_detectAndDecodeCurved_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, - CvCallback_3)>>('QRCodeDetector_detectAndDecodeCurved_Async'); - late final _QRCodeDetector_detectAndDecodeCurved_Async = - _QRCodeDetector_detectAndDecodeCurved_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_3)>(); + late final _QRCodeDetector_detectAndDecodeCurved_AsyncPtr = + _lookup Function(QRCodeDetector, Mat, CvCallback_3)>>( + 'QRCodeDetector_detectAndDecodeCurved_Async'); + late final _QRCodeDetector_detectAndDecodeCurved_Async = _QRCodeDetector_detectAndDecodeCurved_AsyncPtr + .asFunction Function(QRCodeDetector, Mat, CvCallback_3)>(); ffi.Pointer QRCodeDetector_setEpsX( QRCodeDetector self, @@ -16016,12 +14417,11 @@ class CvNative { ); } - late final _QRCodeDetector_setEpsXPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - QRCodeDetector, ffi.Double)>>('QRCodeDetector_setEpsX'); - late final _QRCodeDetector_setEpsX = _QRCodeDetector_setEpsXPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, double)>(); + late final _QRCodeDetector_setEpsXPtr = + _lookup Function(QRCodeDetector, ffi.Double)>>( + 'QRCodeDetector_setEpsX'); + late final _QRCodeDetector_setEpsX = + _QRCodeDetector_setEpsXPtr.asFunction Function(QRCodeDetector, double)>(); ffi.Pointer QRCodeDetector_setEpsX_Async( QRCodeDetector self, @@ -16035,14 +14435,11 @@ class CvNative { ); } - late final _QRCodeDetector_setEpsX_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, ffi.Double, - CvCallback_1)>>('QRCodeDetector_setEpsX_Async'); - late final _QRCodeDetector_setEpsX_Async = - _QRCodeDetector_setEpsX_AsyncPtr.asFunction< - ffi.Pointer Function( - QRCodeDetector, double, CvCallback_1)>(); + late final _QRCodeDetector_setEpsX_AsyncPtr = + _lookup Function(QRCodeDetector, ffi.Double, CvCallback_1)>>( + 'QRCodeDetector_setEpsX_Async'); + late final _QRCodeDetector_setEpsX_Async = _QRCodeDetector_setEpsX_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, double, CvCallback_1)>(); ffi.Pointer QRCodeDetector_setEpsY( QRCodeDetector self, @@ -16054,12 +14451,11 @@ class CvNative { ); } - late final _QRCodeDetector_setEpsYPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - QRCodeDetector, ffi.Double)>>('QRCodeDetector_setEpsY'); - late final _QRCodeDetector_setEpsY = _QRCodeDetector_setEpsYPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, double)>(); + late final _QRCodeDetector_setEpsYPtr = + _lookup Function(QRCodeDetector, ffi.Double)>>( + 'QRCodeDetector_setEpsY'); + late final _QRCodeDetector_setEpsY = + _QRCodeDetector_setEpsYPtr.asFunction Function(QRCodeDetector, double)>(); ffi.Pointer QRCodeDetector_setEpsY_Async( QRCodeDetector self, @@ -16073,14 +14469,11 @@ class CvNative { ); } - late final _QRCodeDetector_setEpsY_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, ffi.Double, - CvCallback_1)>>('QRCodeDetector_setEpsY_Async'); - late final _QRCodeDetector_setEpsY_Async = - _QRCodeDetector_setEpsY_AsyncPtr.asFunction< - ffi.Pointer Function( - QRCodeDetector, double, CvCallback_1)>(); + late final _QRCodeDetector_setEpsY_AsyncPtr = + _lookup Function(QRCodeDetector, ffi.Double, CvCallback_1)>>( + 'QRCodeDetector_setEpsY_Async'); + late final _QRCodeDetector_setEpsY_Async = _QRCodeDetector_setEpsY_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, double, CvCallback_1)>(); ffi.Pointer QRCodeDetector_setUseAlignmentMarkers( QRCodeDetector self, @@ -16092,13 +14485,11 @@ class CvNative { ); } - late final _QRCodeDetector_setUseAlignmentMarkersPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, - ffi.Bool)>>('QRCodeDetector_setUseAlignmentMarkers'); - late final _QRCodeDetector_setUseAlignmentMarkers = - _QRCodeDetector_setUseAlignmentMarkersPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, bool)>(); + late final _QRCodeDetector_setUseAlignmentMarkersPtr = + _lookup Function(QRCodeDetector, ffi.Bool)>>( + 'QRCodeDetector_setUseAlignmentMarkers'); + late final _QRCodeDetector_setUseAlignmentMarkers = _QRCodeDetector_setUseAlignmentMarkersPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, bool)>(); ffi.Pointer QRCodeDetector_setUseAlignmentMarkers_Async( QRCodeDetector self, @@ -16112,13 +14503,11 @@ class CvNative { ); } - late final _QRCodeDetector_setUseAlignmentMarkers_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, ffi.Bool, - CvCallback_1)>>('QRCodeDetector_setUseAlignmentMarkers_Async'); - late final _QRCodeDetector_setUseAlignmentMarkers_Async = - _QRCodeDetector_setUseAlignmentMarkers_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, bool, CvCallback_1)>(); + late final _QRCodeDetector_setUseAlignmentMarkers_AsyncPtr = + _lookup Function(QRCodeDetector, ffi.Bool, CvCallback_1)>>( + 'QRCodeDetector_setUseAlignmentMarkers_Async'); + late final _QRCodeDetector_setUseAlignmentMarkers_Async = _QRCodeDetector_setUseAlignmentMarkers_AsyncPtr + .asFunction Function(QRCodeDetector, bool, CvCallback_1)>(); ffi.Pointer RNG_Fill( RNG rng, @@ -16140,10 +14529,9 @@ class CvNative { late final _RNG_FillPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(RNG, Mat, ffi.Int, ffi.Double, - ffi.Double, ffi.Bool)>>('RNG_Fill'); - late final _RNG_Fill = _RNG_FillPtr.asFunction< - ffi.Pointer Function(RNG, Mat, int, double, double, bool)>(); + ffi.Pointer Function(RNG, Mat, ffi.Int, ffi.Double, ffi.Double, ffi.Bool)>>('RNG_Fill'); + late final _RNG_Fill = + _RNG_FillPtr.asFunction Function(RNG, Mat, int, double, double, bool)>(); ffi.Pointer RNG_Gaussian( RNG rng, @@ -16157,12 +14545,11 @@ class CvNative { ); } - late final _RNG_GaussianPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - RNG, ffi.Double, ffi.Pointer)>>('RNG_Gaussian'); - late final _RNG_Gaussian = _RNG_GaussianPtr.asFunction< - ffi.Pointer Function(RNG, double, ffi.Pointer)>(); + late final _RNG_GaussianPtr = + _lookup Function(RNG, ffi.Double, ffi.Pointer)>>( + 'RNG_Gaussian'); + late final _RNG_Gaussian = + _RNG_GaussianPtr.asFunction Function(RNG, double, ffi.Pointer)>(); ffi.Pointer RNG_Next( RNG rng, @@ -16174,12 +14561,10 @@ class CvNative { ); } - late final _RNG_NextPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - RNG, ffi.Pointer)>>('RNG_Next'); - late final _RNG_Next = _RNG_NextPtr.asFunction< - ffi.Pointer Function(RNG, ffi.Pointer)>(); + late final _RNG_NextPtr = + _lookup Function(RNG, ffi.Pointer)>>('RNG_Next'); + late final _RNG_Next = + _RNG_NextPtr.asFunction Function(RNG, ffi.Pointer)>(); ffi.Pointer RNG_Uniform( RNG rng, @@ -16196,11 +14581,10 @@ class CvNative { } late final _RNG_UniformPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - RNG, ffi.Int, ffi.Int, ffi.Pointer)>>('RNG_Uniform'); - late final _RNG_Uniform = _RNG_UniformPtr.asFunction< - ffi.Pointer Function(RNG, int, int, ffi.Pointer)>(); + ffi.NativeFunction Function(RNG, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'RNG_Uniform'); + late final _RNG_Uniform = + _RNG_UniformPtr.asFunction Function(RNG, int, int, ffi.Pointer)>(); ffi.Pointer RNG_UniformDouble( RNG rng, @@ -16218,11 +14602,10 @@ class CvNative { late final _RNG_UniformDoublePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(RNG, ffi.Double, ffi.Double, - ffi.Pointer)>>('RNG_UniformDouble'); + ffi.Pointer Function( + RNG, ffi.Double, ffi.Double, ffi.Pointer)>>('RNG_UniformDouble'); late final _RNG_UniformDouble = _RNG_UniformDoublePtr.asFunction< - ffi.Pointer Function( - RNG, double, double, ffi.Pointer)>(); + ffi.Pointer Function(RNG, double, double, ffi.Pointer)>(); ffi.Pointer RandN( Mat mat, @@ -16236,11 +14619,9 @@ class CvNative { ); } - late final _RandNPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Scalar, Scalar)>>('RandN'); - late final _RandN = _RandNPtr.asFunction< - ffi.Pointer Function(Mat, Scalar, Scalar)>(); + late final _RandNPtr = + _lookup Function(Mat, Scalar, Scalar)>>('RandN'); + late final _RandN = _RandNPtr.asFunction Function(Mat, Scalar, Scalar)>(); ffi.Pointer RandShuffle( Mat mat, @@ -16251,10 +14632,8 @@ class CvNative { } late final _RandShufflePtr = - _lookup Function(Mat)>>( - 'RandShuffle'); - late final _RandShuffle = - _RandShufflePtr.asFunction Function(Mat)>(); + _lookup Function(Mat)>>('RandShuffle'); + late final _RandShuffle = _RandShufflePtr.asFunction Function(Mat)>(); ffi.Pointer RandShuffleWithParams( Mat mat, @@ -16268,12 +14647,11 @@ class CvNative { ); } - late final _RandShuffleWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Double, RNG)>>('RandShuffleWithParams'); - late final _RandShuffleWithParams = _RandShuffleWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, double, RNG)>(); + late final _RandShuffleWithParamsPtr = + _lookup Function(Mat, ffi.Double, RNG)>>( + 'RandShuffleWithParams'); + late final _RandShuffleWithParams = + _RandShuffleWithParamsPtr.asFunction Function(Mat, double, RNG)>(); ffi.Pointer RandU( Mat mat, @@ -16287,11 +14665,9 @@ class CvNative { ); } - late final _RandUPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Scalar, Scalar)>>('RandU'); - late final _RandU = _RandUPtr.asFunction< - ffi.Pointer Function(Mat, Scalar, Scalar)>(); + late final _RandUPtr = + _lookup Function(Mat, Scalar, Scalar)>>('RandU'); + late final _RandU = _RandUPtr.asFunction Function(Mat, Scalar, Scalar)>(); ffi.Pointer Rectangle( Mat img, @@ -16307,12 +14683,9 @@ class CvNative { ); } - late final _RectanglePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Rect, Scalar, ffi.Int)>>('Rectangle'); - late final _Rectangle = _RectanglePtr.asFunction< - ffi.Pointer Function(Mat, Rect, Scalar, int)>(); + late final _RectanglePtr = + _lookup Function(Mat, Rect, Scalar, ffi.Int)>>('Rectangle'); + late final _Rectangle = _RectanglePtr.asFunction Function(Mat, Rect, Scalar, int)>(); ffi.Pointer RectangleWithParams( Mat img, @@ -16333,11 +14706,10 @@ class CvNative { } late final _RectangleWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Rect, Scalar, ffi.Int, ffi.Int, - ffi.Int)>>('RectangleWithParams'); - late final _RectangleWithParams = _RectangleWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Rect, Scalar, int, int, int)>(); + ffi.NativeFunction Function(Mat, Rect, Scalar, ffi.Int, ffi.Int, ffi.Int)>>( + 'RectangleWithParams'); + late final _RectangleWithParams = + _RectangleWithParamsPtr.asFunction Function(Mat, Rect, Scalar, int, int, int)>(); ffi.Pointer Remap( Mat src, @@ -16360,11 +14732,10 @@ class CvNative { } late final _RemapPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, ffi.Int, ffi.Int, Scalar)>>('Remap'); - late final _Remap = _RemapPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, int, int, Scalar)>(); + ffi + .NativeFunction Function(Mat, Mat, Mat, Mat, ffi.Int, ffi.Int, Scalar)>>('Remap'); + late final _Remap = + _RemapPtr.asFunction Function(Mat, Mat, Mat, Mat, int, int, Scalar)>(); ffi.Pointer Resize( Mat src, @@ -16386,10 +14757,9 @@ class CvNative { late final _ResizePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Size, ffi.Double, ffi.Double, ffi.Int)>>('Resize'); - late final _Resize = _ResizePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Size, double, double, int)>(); + ffi.Pointer Function(Mat, Mat, Size, ffi.Double, ffi.Double, ffi.Int)>>('Resize'); + late final _Resize = + _ResizePtr.asFunction Function(Mat, Mat, Size, double, double, int)>(); void Rng_Close( RNGPtr rng, @@ -16399,8 +14769,7 @@ class CvNative { ); } - late final _Rng_ClosePtr = - _lookup>('Rng_Close'); + late final _Rng_ClosePtr = _lookup>('Rng_Close'); late final _Rng_Close = _Rng_ClosePtr.asFunction(); ffi.Pointer Rng_New( @@ -16411,11 +14780,9 @@ class CvNative { ); } - late final _Rng_NewPtr = _lookup< - ffi.NativeFunction Function(ffi.Pointer)>>( - 'Rng_New'); - late final _Rng_New = _Rng_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _Rng_NewPtr = + _lookup Function(ffi.Pointer)>>('Rng_New'); + late final _Rng_New = _Rng_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer Rng_NewWithState( int state, @@ -16427,12 +14794,11 @@ class CvNative { ); } - late final _Rng_NewWithStatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Uint64, ffi.Pointer)>>('Rng_NewWithState'); - late final _Rng_NewWithState = _Rng_NewWithStatePtr.asFunction< - ffi.Pointer Function(int, ffi.Pointer)>(); + late final _Rng_NewWithStatePtr = + _lookup Function(ffi.Uint64, ffi.Pointer)>>( + 'Rng_NewWithState'); + late final _Rng_NewWithState = + _Rng_NewWithStatePtr.asFunction Function(int, ffi.Pointer)>(); ffi.Pointer Rotate( Mat src, @@ -16446,11 +14812,9 @@ class CvNative { ); } - late final _RotatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Rotate'); - late final _Rotate = - _RotatePtr.asFunction Function(Mat, Mat, int)>(); + late final _RotatePtr = + _lookup Function(Mat, Mat, ffi.Int)>>('Rotate'); + late final _Rotate = _RotatePtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer RotatedRect_BoundingRect( RotatedRect rect, @@ -16462,13 +14826,11 @@ class CvNative { ); } - late final _RotatedRect_BoundingRectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - RotatedRect, ffi.Pointer)>>('RotatedRect_BoundingRect'); - late final _RotatedRect_BoundingRect = - _RotatedRect_BoundingRectPtr.asFunction< - ffi.Pointer Function(RotatedRect, ffi.Pointer)>(); + late final _RotatedRect_BoundingRectPtr = + _lookup Function(RotatedRect, ffi.Pointer)>>( + 'RotatedRect_BoundingRect'); + late final _RotatedRect_BoundingRect = _RotatedRect_BoundingRectPtr.asFunction< + ffi.Pointer Function(RotatedRect, ffi.Pointer)>(); ffi.Pointer RotatedRect_BoundingRect2f( RotatedRect rect, @@ -16480,13 +14842,11 @@ class CvNative { ); } - late final _RotatedRect_BoundingRect2fPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - RotatedRect, ffi.Pointer)>>('RotatedRect_BoundingRect2f'); - late final _RotatedRect_BoundingRect2f = - _RotatedRect_BoundingRect2fPtr.asFunction< - ffi.Pointer Function(RotatedRect, ffi.Pointer)>(); + late final _RotatedRect_BoundingRect2fPtr = + _lookup Function(RotatedRect, ffi.Pointer)>>( + 'RotatedRect_BoundingRect2f'); + late final _RotatedRect_BoundingRect2f = _RotatedRect_BoundingRect2fPtr.asFunction< + ffi.Pointer Function(RotatedRect, ffi.Pointer)>(); ffi.Pointer RotatedRect_Points( RotatedRect rect, @@ -16498,10 +14858,9 @@ class CvNative { ); } - late final _RotatedRect_PointsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - RotatedRect, ffi.Pointer)>>('RotatedRect_Points'); + late final _RotatedRect_PointsPtr = + _lookup Function(RotatedRect, ffi.Pointer)>>( + 'RotatedRect_Points'); late final _RotatedRect_Points = _RotatedRect_PointsPtr.asFunction< ffi.Pointer Function(RotatedRect, ffi.Pointer)>(); @@ -16513,8 +14872,7 @@ class CvNative { ); } - late final _SIFT_ClosePtr = - _lookup>('SIFT_Close'); + late final _SIFT_ClosePtr = _lookup>('SIFT_Close'); late final _SIFT_Close = _SIFT_ClosePtr.asFunction(); ffi.Pointer SIFT_Create( @@ -16525,11 +14883,9 @@ class CvNative { ); } - late final _SIFT_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('SIFT_Create'); - late final _SIFT_Create = _SIFT_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _SIFT_CreatePtr = + _lookup Function(ffi.Pointer)>>('SIFT_Create'); + late final _SIFT_Create = _SIFT_CreatePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer SIFT_Detect( SIFT f, @@ -16543,12 +14899,11 @@ class CvNative { ); } - late final _SIFT_DetectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - SIFT, Mat, ffi.Pointer)>>('SIFT_Detect'); - late final _SIFT_Detect = _SIFT_DetectPtr.asFunction< - ffi.Pointer Function(SIFT, Mat, ffi.Pointer)>(); + late final _SIFT_DetectPtr = + _lookup Function(SIFT, Mat, ffi.Pointer)>>( + 'SIFT_Detect'); + late final _SIFT_Detect = + _SIFT_DetectPtr.asFunction Function(SIFT, Mat, ffi.Pointer)>(); ffi.Pointer SIFT_DetectAndCompute( SIFT f, @@ -16567,12 +14922,10 @@ class CvNative { } late final _SIFT_DetectAndComputePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(SIFT, Mat, Mat, Mat, - ffi.Pointer)>>('SIFT_DetectAndCompute'); + ffi.NativeFunction Function(SIFT, Mat, Mat, Mat, ffi.Pointer)>>( + 'SIFT_DetectAndCompute'); late final _SIFT_DetectAndCompute = _SIFT_DetectAndComputePtr.asFunction< - ffi.Pointer Function( - SIFT, Mat, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function(SIFT, Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer SVD_Compute( Mat src, @@ -16592,11 +14945,10 @@ class CvNative { late final _SVD_ComputePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer, - ffi.Pointer, ffi.Pointer, ffi.Int)>>('SVD_Compute'); + ffi.Pointer Function( + Mat, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int)>>('SVD_Compute'); late final _SVD_Compute = _SVD_ComputePtr.asFunction< - ffi.Pointer Function( - Mat, ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function(Mat, ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); ffi.Pointer SVD_Compute_Async( Mat src, @@ -16610,12 +14962,11 @@ class CvNative { ); } - late final _SVD_Compute_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, CvCallback_3)>>('SVD_Compute_Async'); - late final _SVD_Compute_Async = _SVD_Compute_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, int, CvCallback_3)>(); + late final _SVD_Compute_AsyncPtr = + _lookup Function(Mat, ffi.Int, CvCallback_3)>>( + 'SVD_Compute_Async'); + late final _SVD_Compute_Async = + _SVD_Compute_AsyncPtr.asFunction Function(Mat, int, CvCallback_3)>(); ffi.Pointer SVD_backSubst( Mat w, @@ -16633,12 +14984,11 @@ class CvNative { ); } - late final _SVD_backSubstPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, ffi.Pointer)>>('SVD_backSubst'); - late final _SVD_backSubst = _SVD_backSubstPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, ffi.Pointer)>(); + late final _SVD_backSubstPtr = + _lookup Function(Mat, Mat, Mat, Mat, ffi.Pointer)>>( + 'SVD_backSubst'); + late final _SVD_backSubst = + _SVD_backSubstPtr.asFunction Function(Mat, Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer SVD_backSubst_Async( Mat w, @@ -16656,12 +15006,11 @@ class CvNative { ); } - late final _SVD_backSubst_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, CvCallback_1)>>('SVD_backSubst_Async'); - late final _SVD_backSubst_Async = _SVD_backSubst_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, CvCallback_1)>(); + late final _SVD_backSubst_AsyncPtr = + _lookup Function(Mat, Mat, Mat, Mat, CvCallback_1)>>( + 'SVD_backSubst_Async'); + late final _SVD_backSubst_Async = + _SVD_backSubst_AsyncPtr.asFunction Function(Mat, Mat, Mat, Mat, CvCallback_1)>(); ffi.Pointer Scharr( Mat src, @@ -16687,11 +15036,10 @@ class CvNative { late final _ScharrPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Double, ffi.Double, ffi.Int)>>('Scharr'); - late final _Scharr = _ScharrPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, int, int, int, double, double, int)>(); + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Double, ffi.Double, ffi.Int)>>('Scharr'); + late final _Scharr = + _ScharrPtr.asFunction Function(Mat, Mat, int, int, int, double, double, int)>(); ffi.Pointer SeamlessClone( Mat src, @@ -16711,12 +15059,11 @@ class CvNative { ); } - late final _SeamlessClonePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Point, Mat, ffi.Int)>>('SeamlessClone'); - late final _SeamlessClone = _SeamlessClonePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Point, Mat, int)>(); + late final _SeamlessClonePtr = + _lookup Function(Mat, Mat, Mat, Point, Mat, ffi.Int)>>( + 'SeamlessClone'); + late final _SeamlessClone = + _SeamlessClonePtr.asFunction Function(Mat, Mat, Mat, Point, Mat, int)>(); ffi.Pointer SepFilter2D( Mat src, @@ -16742,11 +15089,10 @@ class CvNative { late final _SepFilter2DPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, Mat, Mat, Point, - ffi.Double, ffi.Int)>>('SepFilter2D'); + ffi.Pointer Function( + Mat, Mat, ffi.Int, Mat, Mat, Point, ffi.Double, ffi.Int)>>('SepFilter2D'); late final _SepFilter2D = _SepFilter2DPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, int, Mat, Mat, Point, double, int)>(); + ffi.Pointer Function(Mat, Mat, int, Mat, Mat, Point, double, int)>(); ffi.Pointer SetNumThreads( int n, @@ -16757,10 +15103,8 @@ class CvNative { } late final _SetNumThreadsPtr = - _lookup Function(ffi.Int)>>( - 'SetNumThreads'); - late final _SetNumThreads = - _SetNumThreadsPtr.asFunction Function(int)>(); + _lookup Function(ffi.Int)>>('SetNumThreads'); + late final _SetNumThreads = _SetNumThreadsPtr.asFunction Function(int)>(); ffi.Pointer SetRNGSeed( int seed, @@ -16771,10 +15115,8 @@ class CvNative { } late final _SetRNGSeedPtr = - _lookup Function(ffi.Int)>>( - 'SetRNGSeed'); - late final _SetRNGSeed = - _SetRNGSeedPtr.asFunction Function(int)>(); + _lookup Function(ffi.Int)>>('SetRNGSeed'); + late final _SetRNGSeed = _SetRNGSeedPtr.asFunction Function(int)>(); ffi.Pointer SimpleBlobDetectorParams_Create( ffi.Pointer rval, @@ -16784,15 +15126,11 @@ class CvNative { ); } - late final _SimpleBlobDetectorParams_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>( - 'SimpleBlobDetectorParams_Create'); - late final _SimpleBlobDetectorParams_Create = - _SimpleBlobDetectorParams_CreatePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer)>(); + late final _SimpleBlobDetectorParams_CreatePtr = + _lookup Function(ffi.Pointer)>>( + 'SimpleBlobDetectorParams_Create'); + late final _SimpleBlobDetectorParams_Create = _SimpleBlobDetectorParams_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); void SimpleBlobDetector_Close( SimpleBlobDetectorPtr b, @@ -16803,10 +15141,9 @@ class CvNative { } late final _SimpleBlobDetector_ClosePtr = - _lookup>( - 'SimpleBlobDetector_Close'); - late final _SimpleBlobDetector_Close = _SimpleBlobDetector_ClosePtr - .asFunction(); + _lookup>('SimpleBlobDetector_Close'); + late final _SimpleBlobDetector_Close = + _SimpleBlobDetector_ClosePtr.asFunction(); ffi.Pointer SimpleBlobDetector_Create( ffi.Pointer rval, @@ -16816,13 +15153,11 @@ class CvNative { ); } - late final _SimpleBlobDetector_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('SimpleBlobDetector_Create'); - late final _SimpleBlobDetector_Create = - _SimpleBlobDetector_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _SimpleBlobDetector_CreatePtr = + _lookup Function(ffi.Pointer)>>( + 'SimpleBlobDetector_Create'); + late final _SimpleBlobDetector_Create = _SimpleBlobDetector_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer SimpleBlobDetector_Create_WithParams( SimpleBlobDetectorParams params, @@ -16835,14 +15170,11 @@ class CvNative { } late final _SimpleBlobDetector_Create_WithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - SimpleBlobDetectorParams, ffi.Pointer)>>( - 'SimpleBlobDetector_Create_WithParams'); - late final _SimpleBlobDetector_Create_WithParams = - _SimpleBlobDetector_Create_WithParamsPtr.asFunction< - ffi.Pointer Function( - SimpleBlobDetectorParams, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(SimpleBlobDetectorParams, + ffi.Pointer)>>('SimpleBlobDetector_Create_WithParams'); + late final _SimpleBlobDetector_Create_WithParams = _SimpleBlobDetector_Create_WithParamsPtr.asFunction< + ffi.Pointer Function(SimpleBlobDetectorParams, ffi.Pointer)>(); ffi.Pointer SimpleBlobDetector_Detect( SimpleBlobDetector b, @@ -16857,13 +15189,11 @@ class CvNative { } late final _SimpleBlobDetector_DetectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(SimpleBlobDetector, Mat, - ffi.Pointer)>>('SimpleBlobDetector_Detect'); - late final _SimpleBlobDetector_Detect = - _SimpleBlobDetector_DetectPtr.asFunction< - ffi.Pointer Function( - SimpleBlobDetector, Mat, ffi.Pointer)>(); + ffi + .NativeFunction Function(SimpleBlobDetector, Mat, ffi.Pointer)>>( + 'SimpleBlobDetector_Detect'); + late final _SimpleBlobDetector_Detect = _SimpleBlobDetector_DetectPtr.asFunction< + ffi.Pointer Function(SimpleBlobDetector, Mat, ffi.Pointer)>(); ffi.Pointer Sobel( Mat src, @@ -16891,11 +15221,10 @@ class CvNative { late final _SobelPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Int, ffi.Double, ffi.Double, ffi.Int)>>('Sobel'); + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Double, ffi.Double, ffi.Int)>>('Sobel'); late final _Sobel = _SobelPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, int, int, int, int, double, double, int)>(); + ffi.Pointer Function(Mat, Mat, int, int, int, int, double, double, int)>(); ffi.Pointer SpatialGradient( Mat src, @@ -16913,12 +15242,11 @@ class CvNative { ); } - late final _SpatialGradientPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Int, ffi.Int)>>('SpatialGradient'); - late final _SpatialGradient = _SpatialGradientPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, int, int)>(); + late final _SpatialGradientPtr = + _lookup Function(Mat, Mat, Mat, ffi.Int, ffi.Int)>>( + 'SpatialGradient'); + late final _SpatialGradient = + _SpatialGradientPtr.asFunction Function(Mat, Mat, Mat, int, int)>(); ffi.Pointer SqBoxFilter( Mat src, @@ -16934,12 +15262,9 @@ class CvNative { ); } - late final _SqBoxFilterPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, Size)>>('SqBoxFilter'); - late final _SqBoxFilter = _SqBoxFilterPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, Size)>(); + late final _SqBoxFilterPtr = + _lookup Function(Mat, Mat, ffi.Int, Size)>>('SqBoxFilter'); + late final _SqBoxFilter = _SqBoxFilterPtr.asFunction Function(Mat, Mat, int, Size)>(); void Stitcher_Close( PtrStitcherPtr stitcher, @@ -16950,10 +15275,8 @@ class CvNative { } late final _Stitcher_ClosePtr = - _lookup>( - 'Stitcher_Close'); - late final _Stitcher_Close = - _Stitcher_ClosePtr.asFunction(); + _lookup>('Stitcher_Close'); + late final _Stitcher_Close = _Stitcher_ClosePtr.asFunction(); ffi.Pointer Stitcher_Component( Stitcher self, @@ -16965,12 +15288,11 @@ class CvNative { ); } - late final _Stitcher_ComponentPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Stitcher, ffi.Pointer)>>('Stitcher_Component'); - late final _Stitcher_Component = _Stitcher_ComponentPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_ComponentPtr = + _lookup Function(Stitcher, ffi.Pointer)>>( + 'Stitcher_Component'); + late final _Stitcher_Component = + _Stitcher_ComponentPtr.asFunction Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_ComposePanorama( Stitcher self, @@ -16984,14 +15306,11 @@ class CvNative { ); } - late final _Stitcher_ComposePanoramaPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Stitcher, Mat, - ffi.Pointer)>>('Stitcher_ComposePanorama'); - late final _Stitcher_ComposePanorama = - _Stitcher_ComposePanoramaPtr.asFunction< - ffi.Pointer Function( - Stitcher, Mat, ffi.Pointer)>(); + late final _Stitcher_ComposePanoramaPtr = + _lookup Function(Stitcher, Mat, ffi.Pointer)>>( + 'Stitcher_ComposePanorama'); + late final _Stitcher_ComposePanorama = _Stitcher_ComposePanoramaPtr.asFunction< + ffi.Pointer Function(Stitcher, Mat, ffi.Pointer)>(); ffi.Pointer Stitcher_ComposePanorama_1( Stitcher self, @@ -17008,13 +15327,10 @@ class CvNative { } late final _Stitcher_ComposePanorama_1Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Stitcher, VecMat, Mat, - ffi.Pointer)>>('Stitcher_ComposePanorama_1'); - late final _Stitcher_ComposePanorama_1 = - _Stitcher_ComposePanorama_1Ptr.asFunction< - ffi.Pointer Function( - Stitcher, VecMat, Mat, ffi.Pointer)>(); + ffi.NativeFunction Function(Stitcher, VecMat, Mat, ffi.Pointer)>>( + 'Stitcher_ComposePanorama_1'); + late final _Stitcher_ComposePanorama_1 = _Stitcher_ComposePanorama_1Ptr.asFunction< + ffi.Pointer Function(Stitcher, VecMat, Mat, ffi.Pointer)>(); ffi.Pointer Stitcher_Create( int mode, @@ -17026,12 +15342,11 @@ class CvNative { ); } - late final _Stitcher_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, ffi.Pointer)>>('Stitcher_Create'); - late final _Stitcher_Create = _Stitcher_CreatePtr.asFunction< - ffi.Pointer Function(int, ffi.Pointer)>(); + late final _Stitcher_CreatePtr = + _lookup Function(ffi.Int, ffi.Pointer)>>( + 'Stitcher_Create'); + late final _Stitcher_Create = + _Stitcher_CreatePtr.asFunction Function(int, ffi.Pointer)>(); ffi.Pointer Stitcher_EstimateTransform( Stitcher self, @@ -17048,13 +15363,10 @@ class CvNative { } late final _Stitcher_EstimateTransformPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Stitcher, VecMat, VecMat, - ffi.Pointer)>>('Stitcher_EstimateTransform'); - late final _Stitcher_EstimateTransform = - _Stitcher_EstimateTransformPtr.asFunction< - ffi.Pointer Function( - Stitcher, VecMat, VecMat, ffi.Pointer)>(); + ffi.NativeFunction Function(Stitcher, VecMat, VecMat, ffi.Pointer)>>( + 'Stitcher_EstimateTransform'); + late final _Stitcher_EstimateTransform = _Stitcher_EstimateTransformPtr.asFunction< + ffi.Pointer Function(Stitcher, VecMat, VecMat, ffi.Pointer)>(); ffi.Pointer Stitcher_Get( PtrStitcher self, @@ -17066,12 +15378,11 @@ class CvNative { ); } - late final _Stitcher_GetPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - PtrStitcher, ffi.Pointer)>>('Stitcher_Get'); - late final _Stitcher_Get = _Stitcher_GetPtr.asFunction< - ffi.Pointer Function(PtrStitcher, ffi.Pointer)>(); + late final _Stitcher_GetPtr = + _lookup Function(PtrStitcher, ffi.Pointer)>>( + 'Stitcher_Get'); + late final _Stitcher_Get = + _Stitcher_GetPtr.asFunction Function(PtrStitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetCompositingResol( Stitcher self, @@ -17083,13 +15394,11 @@ class CvNative { ); } - late final _Stitcher_GetCompositingResolPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Stitcher, - ffi.Pointer)>>('Stitcher_GetCompositingResol'); - late final _Stitcher_GetCompositingResol = - _Stitcher_GetCompositingResolPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetCompositingResolPtr = + _lookup Function(Stitcher, ffi.Pointer)>>( + 'Stitcher_GetCompositingResol'); + late final _Stitcher_GetCompositingResol = _Stitcher_GetCompositingResolPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetInterpolationFlags( Stitcher self, @@ -17101,13 +15410,11 @@ class CvNative { ); } - late final _Stitcher_GetInterpolationFlagsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Stitcher, - ffi.Pointer)>>('Stitcher_GetInterpolationFlags'); - late final _Stitcher_GetInterpolationFlags = - _Stitcher_GetInterpolationFlagsPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetInterpolationFlagsPtr = + _lookup Function(Stitcher, ffi.Pointer)>>( + 'Stitcher_GetInterpolationFlags'); + late final _Stitcher_GetInterpolationFlags = _Stitcher_GetInterpolationFlagsPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetPanoConfidenceThresh( Stitcher self, @@ -17119,13 +15426,11 @@ class CvNative { ); } - late final _Stitcher_GetPanoConfidenceThreshPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Stitcher, - ffi.Pointer)>>('Stitcher_GetPanoConfidenceThresh'); - late final _Stitcher_GetPanoConfidenceThresh = - _Stitcher_GetPanoConfidenceThreshPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetPanoConfidenceThreshPtr = + _lookup Function(Stitcher, ffi.Pointer)>>( + 'Stitcher_GetPanoConfidenceThresh'); + late final _Stitcher_GetPanoConfidenceThresh = _Stitcher_GetPanoConfidenceThreshPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetRegistrationResol( Stitcher self, @@ -17137,13 +15442,11 @@ class CvNative { ); } - late final _Stitcher_GetRegistrationResolPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Stitcher, - ffi.Pointer)>>('Stitcher_GetRegistrationResol'); - late final _Stitcher_GetRegistrationResol = - _Stitcher_GetRegistrationResolPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetRegistrationResolPtr = + _lookup Function(Stitcher, ffi.Pointer)>>( + 'Stitcher_GetRegistrationResol'); + late final _Stitcher_GetRegistrationResol = _Stitcher_GetRegistrationResolPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetSeamEstimationResol( Stitcher self, @@ -17155,13 +15458,11 @@ class CvNative { ); } - late final _Stitcher_GetSeamEstimationResolPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Stitcher, - ffi.Pointer)>>('Stitcher_GetSeamEstimationResol'); - late final _Stitcher_GetSeamEstimationResol = - _Stitcher_GetSeamEstimationResolPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetSeamEstimationResolPtr = + _lookup Function(Stitcher, ffi.Pointer)>>( + 'Stitcher_GetSeamEstimationResol'); + late final _Stitcher_GetSeamEstimationResol = _Stitcher_GetSeamEstimationResolPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetWaveCorrectKind( Stitcher self, @@ -17173,13 +15474,11 @@ class CvNative { ); } - late final _Stitcher_GetWaveCorrectKindPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Stitcher, ffi.Pointer)>>('Stitcher_GetWaveCorrectKind'); - late final _Stitcher_GetWaveCorrectKind = - _Stitcher_GetWaveCorrectKindPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetWaveCorrectKindPtr = + _lookup Function(Stitcher, ffi.Pointer)>>( + 'Stitcher_GetWaveCorrectKind'); + late final _Stitcher_GetWaveCorrectKind = _Stitcher_GetWaveCorrectKindPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetWaveCorrection( Stitcher self, @@ -17191,13 +15490,11 @@ class CvNative { ); } - late final _Stitcher_GetWaveCorrectionPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Stitcher, ffi.Pointer)>>('Stitcher_GetWaveCorrection'); - late final _Stitcher_GetWaveCorrection = - _Stitcher_GetWaveCorrectionPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetWaveCorrectionPtr = + _lookup Function(Stitcher, ffi.Pointer)>>( + 'Stitcher_GetWaveCorrection'); + late final _Stitcher_GetWaveCorrection = _Stitcher_GetWaveCorrectionPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_SetCompositingResol( Stitcher self, @@ -17209,12 +15506,11 @@ class CvNative { ); } - late final _Stitcher_SetCompositingResolPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Stitcher, ffi.Double)>>('Stitcher_SetCompositingResol'); - late final _Stitcher_SetCompositingResol = _Stitcher_SetCompositingResolPtr - .asFunction Function(Stitcher, double)>(); + late final _Stitcher_SetCompositingResolPtr = + _lookup Function(Stitcher, ffi.Double)>>( + 'Stitcher_SetCompositingResol'); + late final _Stitcher_SetCompositingResol = + _Stitcher_SetCompositingResolPtr.asFunction Function(Stitcher, double)>(); ffi.Pointer Stitcher_SetInterpolationFlags( Stitcher self, @@ -17226,13 +15522,11 @@ class CvNative { ); } - late final _Stitcher_SetInterpolationFlagsPtr = _lookup< - ffi - .NativeFunction Function(Stitcher, ffi.Int)>>( - 'Stitcher_SetInterpolationFlags'); + late final _Stitcher_SetInterpolationFlagsPtr = + _lookup Function(Stitcher, ffi.Int)>>( + 'Stitcher_SetInterpolationFlags'); late final _Stitcher_SetInterpolationFlags = - _Stitcher_SetInterpolationFlagsPtr.asFunction< - ffi.Pointer Function(Stitcher, int)>(); + _Stitcher_SetInterpolationFlagsPtr.asFunction Function(Stitcher, int)>(); ffi.Pointer Stitcher_SetPanoConfidenceThresh( Stitcher self, @@ -17244,13 +15538,11 @@ class CvNative { ); } - late final _Stitcher_SetPanoConfidenceThreshPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Stitcher, ffi.Double)>>('Stitcher_SetPanoConfidenceThresh'); + late final _Stitcher_SetPanoConfidenceThreshPtr = + _lookup Function(Stitcher, ffi.Double)>>( + 'Stitcher_SetPanoConfidenceThresh'); late final _Stitcher_SetPanoConfidenceThresh = - _Stitcher_SetPanoConfidenceThreshPtr.asFunction< - ffi.Pointer Function(Stitcher, double)>(); + _Stitcher_SetPanoConfidenceThreshPtr.asFunction Function(Stitcher, double)>(); ffi.Pointer Stitcher_SetRegistrationResol( Stitcher self, @@ -17262,12 +15554,11 @@ class CvNative { ); } - late final _Stitcher_SetRegistrationResolPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Stitcher, ffi.Double)>>('Stitcher_SetRegistrationResol'); - late final _Stitcher_SetRegistrationResol = _Stitcher_SetRegistrationResolPtr - .asFunction Function(Stitcher, double)>(); + late final _Stitcher_SetRegistrationResolPtr = + _lookup Function(Stitcher, ffi.Double)>>( + 'Stitcher_SetRegistrationResol'); + late final _Stitcher_SetRegistrationResol = + _Stitcher_SetRegistrationResolPtr.asFunction Function(Stitcher, double)>(); ffi.Pointer Stitcher_SetSeamEstimationResol( Stitcher self, @@ -17279,13 +15570,11 @@ class CvNative { ); } - late final _Stitcher_SetSeamEstimationResolPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Stitcher, ffi.Double)>>('Stitcher_SetSeamEstimationResol'); + late final _Stitcher_SetSeamEstimationResolPtr = + _lookup Function(Stitcher, ffi.Double)>>( + 'Stitcher_SetSeamEstimationResol'); late final _Stitcher_SetSeamEstimationResol = - _Stitcher_SetSeamEstimationResolPtr.asFunction< - ffi.Pointer Function(Stitcher, double)>(); + _Stitcher_SetSeamEstimationResolPtr.asFunction Function(Stitcher, double)>(); ffi.Pointer Stitcher_SetWaveCorrectKind( Stitcher self, @@ -17297,12 +15586,11 @@ class CvNative { ); } - late final _Stitcher_SetWaveCorrectKindPtr = _lookup< - ffi - .NativeFunction Function(Stitcher, ffi.Int)>>( - 'Stitcher_SetWaveCorrectKind'); - late final _Stitcher_SetWaveCorrectKind = _Stitcher_SetWaveCorrectKindPtr - .asFunction Function(Stitcher, int)>(); + late final _Stitcher_SetWaveCorrectKindPtr = + _lookup Function(Stitcher, ffi.Int)>>( + 'Stitcher_SetWaveCorrectKind'); + late final _Stitcher_SetWaveCorrectKind = + _Stitcher_SetWaveCorrectKindPtr.asFunction Function(Stitcher, int)>(); ffi.Pointer Stitcher_SetWaveCorrection( Stitcher self, @@ -17314,12 +15602,11 @@ class CvNative { ); } - late final _Stitcher_SetWaveCorrectionPtr = _lookup< - ffi - .NativeFunction Function(Stitcher, ffi.Bool)>>( - 'Stitcher_SetWaveCorrection'); - late final _Stitcher_SetWaveCorrection = _Stitcher_SetWaveCorrectionPtr - .asFunction Function(Stitcher, bool)>(); + late final _Stitcher_SetWaveCorrectionPtr = + _lookup Function(Stitcher, ffi.Bool)>>( + 'Stitcher_SetWaveCorrection'); + late final _Stitcher_SetWaveCorrection = + _Stitcher_SetWaveCorrectionPtr.asFunction Function(Stitcher, bool)>(); ffi.Pointer Stitcher_Stitch( Stitcher self, @@ -17336,12 +15623,10 @@ class CvNative { } late final _Stitcher_StitchPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Stitcher, VecMat, Mat, ffi.Pointer)>>('Stitcher_Stitch'); + ffi.NativeFunction Function(Stitcher, VecMat, Mat, ffi.Pointer)>>( + 'Stitcher_Stitch'); late final _Stitcher_Stitch = _Stitcher_StitchPtr.asFunction< - ffi.Pointer Function( - Stitcher, VecMat, Mat, ffi.Pointer)>(); + ffi.Pointer Function(Stitcher, VecMat, Mat, ffi.Pointer)>(); ffi.Pointer Stitcher_Stitch_1( Stitcher self, @@ -17361,11 +15646,10 @@ class CvNative { late final _Stitcher_Stitch_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Stitcher, VecMat, VecMat, Mat, - ffi.Pointer)>>('Stitcher_Stitch_1'); + ffi.Pointer Function( + Stitcher, VecMat, VecMat, Mat, ffi.Pointer)>>('Stitcher_Stitch_1'); late final _Stitcher_Stitch_1 = _Stitcher_Stitch_1Ptr.asFunction< - ffi.Pointer Function( - Stitcher, VecMat, VecMat, Mat, ffi.Pointer)>(); + ffi.Pointer Function(Stitcher, VecMat, VecMat, Mat, ffi.Pointer)>(); ffi.Pointer Stylization( Mat src, @@ -17381,12 +15665,11 @@ class CvNative { ); } - late final _StylizationPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Float, ffi.Float)>>('Stylization'); - late final _Stylization = _StylizationPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, double)>(); + late final _StylizationPtr = + _lookup Function(Mat, Mat, ffi.Float, ffi.Float)>>( + 'Stylization'); + late final _Stylization = + _StylizationPtr.asFunction Function(Mat, Mat, double, double)>(); void Subdiv2D_Close( Subdiv2DPtr self, @@ -17397,10 +15680,8 @@ class CvNative { } late final _Subdiv2D_ClosePtr = - _lookup>( - 'Subdiv2D_Close'); - late final _Subdiv2D_Close = - _Subdiv2D_ClosePtr.asFunction(); + _lookup>('Subdiv2D_Close'); + late final _Subdiv2D_Close = _Subdiv2D_ClosePtr.asFunction(); ffi.Pointer Subdiv2D_EdgeDst( Subdiv2D self, @@ -17418,11 +15699,10 @@ class CvNative { late final _Subdiv2D_EdgeDstPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Subdiv2D, ffi.Int, - ffi.Pointer, ffi.Pointer)>>('Subdiv2D_EdgeDst'); + ffi.Pointer Function( + Subdiv2D, ffi.Int, ffi.Pointer, ffi.Pointer)>>('Subdiv2D_EdgeDst'); late final _Subdiv2D_EdgeDst = _Subdiv2D_EdgeDstPtr.asFunction< - ffi.Pointer Function( - Subdiv2D, int, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(Subdiv2D, int, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Subdiv2D_EdgeOrg( Subdiv2D self, @@ -17440,11 +15720,10 @@ class CvNative { late final _Subdiv2D_EdgeOrgPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Subdiv2D, ffi.Int, - ffi.Pointer, ffi.Pointer)>>('Subdiv2D_EdgeOrg'); + ffi.Pointer Function( + Subdiv2D, ffi.Int, ffi.Pointer, ffi.Pointer)>>('Subdiv2D_EdgeOrg'); late final _Subdiv2D_EdgeOrg = _Subdiv2D_EdgeOrgPtr.asFunction< - ffi.Pointer Function( - Subdiv2D, int, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(Subdiv2D, int, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Subdiv2D_FindNearest( Subdiv2D self, @@ -17463,13 +15742,9 @@ class CvNative { late final _Subdiv2D_FindNearestPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - Subdiv2D, - Point2f, - ffi.Pointer, - ffi.Pointer)>>('Subdiv2D_FindNearest'); + Subdiv2D, Point2f, ffi.Pointer, ffi.Pointer)>>('Subdiv2D_FindNearest'); late final _Subdiv2D_FindNearest = _Subdiv2D_FindNearestPtr.asFunction< - ffi.Pointer Function( - Subdiv2D, Point2f, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(Subdiv2D, Point2f, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Subdiv2D_GetEdge( Subdiv2D self, @@ -17486,12 +15761,11 @@ class CvNative { } late final _Subdiv2D_GetEdgePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Subdiv2D, ffi.Int, ffi.Int, - ffi.Pointer)>>('Subdiv2D_GetEdge'); + ffi + .NativeFunction Function(Subdiv2D, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Subdiv2D_GetEdge'); late final _Subdiv2D_GetEdge = _Subdiv2D_GetEdgePtr.asFunction< - ffi.Pointer Function( - Subdiv2D, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Subdiv2D, int, int, ffi.Pointer)>(); ffi.Pointer Subdiv2D_GetEdgeList( Subdiv2D self, @@ -17508,12 +15782,9 @@ class CvNative { late final _Subdiv2D_GetEdgeListPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - Subdiv2D, - ffi.Pointer>, - ffi.Pointer)>>('Subdiv2D_GetEdgeList'); + Subdiv2D, ffi.Pointer>, ffi.Pointer)>>('Subdiv2D_GetEdgeList'); late final _Subdiv2D_GetEdgeList = _Subdiv2D_GetEdgeListPtr.asFunction< - ffi.Pointer Function( - Subdiv2D, ffi.Pointer>, ffi.Pointer)>(); + ffi.Pointer Function(Subdiv2D, ffi.Pointer>, ffi.Pointer)>(); ffi.Pointer Subdiv2D_GetLeadingEdgeList( Subdiv2D self, @@ -17525,13 +15796,11 @@ class CvNative { ); } - late final _Subdiv2D_GetLeadingEdgeListPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Subdiv2D, ffi.Pointer)>>('Subdiv2D_GetLeadingEdgeList'); - late final _Subdiv2D_GetLeadingEdgeList = - _Subdiv2D_GetLeadingEdgeListPtr.asFunction< - ffi.Pointer Function(Subdiv2D, ffi.Pointer)>(); + late final _Subdiv2D_GetLeadingEdgeListPtr = + _lookup Function(Subdiv2D, ffi.Pointer)>>( + 'Subdiv2D_GetLeadingEdgeList'); + late final _Subdiv2D_GetLeadingEdgeList = _Subdiv2D_GetLeadingEdgeListPtr.asFunction< + ffi.Pointer Function(Subdiv2D, ffi.Pointer)>(); ffi.Pointer Subdiv2D_GetTriangleList( Subdiv2D self, @@ -17548,13 +15817,9 @@ class CvNative { late final _Subdiv2D_GetTriangleListPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - Subdiv2D, - ffi.Pointer>, - ffi.Pointer)>>('Subdiv2D_GetTriangleList'); - late final _Subdiv2D_GetTriangleList = - _Subdiv2D_GetTriangleListPtr.asFunction< - ffi.Pointer Function(Subdiv2D, - ffi.Pointer>, ffi.Pointer)>(); + Subdiv2D, ffi.Pointer>, ffi.Pointer)>>('Subdiv2D_GetTriangleList'); + late final _Subdiv2D_GetTriangleList = _Subdiv2D_GetTriangleListPtr.asFunction< + ffi.Pointer Function(Subdiv2D, ffi.Pointer>, ffi.Pointer)>(); ffi.Pointer Subdiv2D_GetVertex( Subdiv2D self, @@ -17573,13 +15838,9 @@ class CvNative { late final _Subdiv2D_GetVertexPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - Subdiv2D, - ffi.Int, - ffi.Pointer, - ffi.Pointer)>>('Subdiv2D_GetVertex'); + Subdiv2D, ffi.Int, ffi.Pointer, ffi.Pointer)>>('Subdiv2D_GetVertex'); late final _Subdiv2D_GetVertex = _Subdiv2D_GetVertexPtr.asFunction< - ffi.Pointer Function( - Subdiv2D, int, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(Subdiv2D, int, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Subdiv2D_GetVoronoiFacetList( Subdiv2D self, @@ -17597,15 +15858,11 @@ class CvNative { late final _Subdiv2D_GetVoronoiFacetListPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Subdiv2D, - VecInt, - ffi.Pointer, + ffi.Pointer Function(Subdiv2D, VecInt, ffi.Pointer, ffi.Pointer)>>('Subdiv2D_GetVoronoiFacetList'); - late final _Subdiv2D_GetVoronoiFacetList = - _Subdiv2D_GetVoronoiFacetListPtr.asFunction< - ffi.Pointer Function(Subdiv2D, VecInt, - ffi.Pointer, ffi.Pointer)>(); + late final _Subdiv2D_GetVoronoiFacetList = _Subdiv2D_GetVoronoiFacetListPtr.asFunction< + ffi.Pointer Function( + Subdiv2D, VecInt, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Subdiv2D_InitDelaunay( Subdiv2D self, @@ -17617,11 +15874,10 @@ class CvNative { ); } - late final _Subdiv2D_InitDelaunayPtr = _lookup< - ffi.NativeFunction Function(Subdiv2D, Rect)>>( - 'Subdiv2D_InitDelaunay'); - late final _Subdiv2D_InitDelaunay = _Subdiv2D_InitDelaunayPtr.asFunction< - ffi.Pointer Function(Subdiv2D, Rect)>(); + late final _Subdiv2D_InitDelaunayPtr = + _lookup Function(Subdiv2D, Rect)>>('Subdiv2D_InitDelaunay'); + late final _Subdiv2D_InitDelaunay = + _Subdiv2D_InitDelaunayPtr.asFunction Function(Subdiv2D, Rect)>(); ffi.Pointer Subdiv2D_Insert( Subdiv2D self, @@ -17635,13 +15891,11 @@ class CvNative { ); } - late final _Subdiv2D_InsertPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Subdiv2D, Point2f, ffi.Pointer)>>('Subdiv2D_Insert'); + late final _Subdiv2D_InsertPtr = + _lookup Function(Subdiv2D, Point2f, ffi.Pointer)>>( + 'Subdiv2D_Insert'); late final _Subdiv2D_Insert = _Subdiv2D_InsertPtr.asFunction< - ffi.Pointer Function( - Subdiv2D, Point2f, ffi.Pointer)>(); + ffi.Pointer Function(Subdiv2D, Point2f, ffi.Pointer)>(); ffi.Pointer Subdiv2D_InsertVec( Subdiv2D self, @@ -17653,12 +15907,10 @@ class CvNative { ); } - late final _Subdiv2D_InsertVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Subdiv2D, VecPoint2f)>>('Subdiv2D_InsertVec'); - late final _Subdiv2D_InsertVec = _Subdiv2D_InsertVecPtr.asFunction< - ffi.Pointer Function(Subdiv2D, VecPoint2f)>(); + late final _Subdiv2D_InsertVecPtr = + _lookup Function(Subdiv2D, VecPoint2f)>>('Subdiv2D_InsertVec'); + late final _Subdiv2D_InsertVec = + _Subdiv2D_InsertVecPtr.asFunction Function(Subdiv2D, VecPoint2f)>(); ffi.Pointer Subdiv2D_Locate( Subdiv2D self, @@ -17678,15 +15930,11 @@ class CvNative { late final _Subdiv2D_LocatePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Subdiv2D, - Point2f, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer Function(Subdiv2D, Point2f, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('Subdiv2D_Locate'); late final _Subdiv2D_Locate = _Subdiv2D_LocatePtr.asFunction< - ffi.Pointer Function(Subdiv2D, Point2f, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Subdiv2D, Point2f, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Subdiv2D_NewEmpty( ffi.Pointer rval, @@ -17696,12 +15944,10 @@ class CvNative { ); } - late final _Subdiv2D_NewEmptyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('Subdiv2D_NewEmpty'); - late final _Subdiv2D_NewEmpty = _Subdiv2D_NewEmptyPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _Subdiv2D_NewEmptyPtr = + _lookup Function(ffi.Pointer)>>('Subdiv2D_NewEmpty'); + late final _Subdiv2D_NewEmpty = + _Subdiv2D_NewEmptyPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer Subdiv2D_NewWithRect( Rect rect, @@ -17713,12 +15959,11 @@ class CvNative { ); } - late final _Subdiv2D_NewWithRectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Rect, ffi.Pointer)>>('Subdiv2D_NewWithRect'); - late final _Subdiv2D_NewWithRect = _Subdiv2D_NewWithRectPtr.asFunction< - ffi.Pointer Function(Rect, ffi.Pointer)>(); + late final _Subdiv2D_NewWithRectPtr = + _lookup Function(Rect, ffi.Pointer)>>( + 'Subdiv2D_NewWithRect'); + late final _Subdiv2D_NewWithRect = + _Subdiv2D_NewWithRectPtr.asFunction Function(Rect, ffi.Pointer)>(); ffi.Pointer Subdiv2D_NextEdge( Subdiv2D self, @@ -17732,12 +15977,11 @@ class CvNative { ); } - late final _Subdiv2D_NextEdgePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Subdiv2D, ffi.Int, ffi.Pointer)>>('Subdiv2D_NextEdge'); - late final _Subdiv2D_NextEdge = _Subdiv2D_NextEdgePtr.asFunction< - ffi.Pointer Function(Subdiv2D, int, ffi.Pointer)>(); + late final _Subdiv2D_NextEdgePtr = + _lookup Function(Subdiv2D, ffi.Int, ffi.Pointer)>>( + 'Subdiv2D_NextEdge'); + late final _Subdiv2D_NextEdge = + _Subdiv2D_NextEdgePtr.asFunction Function(Subdiv2D, int, ffi.Pointer)>(); ffi.Pointer Subdiv2D_RotateEdge( Subdiv2D self, @@ -17754,12 +15998,11 @@ class CvNative { } late final _Subdiv2D_RotateEdgePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Subdiv2D, ffi.Int, ffi.Int, - ffi.Pointer)>>('Subdiv2D_RotateEdge'); + ffi + .NativeFunction Function(Subdiv2D, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Subdiv2D_RotateEdge'); late final _Subdiv2D_RotateEdge = _Subdiv2D_RotateEdgePtr.asFunction< - ffi.Pointer Function( - Subdiv2D, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Subdiv2D, int, int, ffi.Pointer)>(); ffi.Pointer Subdiv2D_SymEdge( Subdiv2D self, @@ -17773,12 +16016,11 @@ class CvNative { ); } - late final _Subdiv2D_SymEdgePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Subdiv2D, ffi.Int, ffi.Pointer)>>('Subdiv2D_SymEdge'); - late final _Subdiv2D_SymEdge = _Subdiv2D_SymEdgePtr.asFunction< - ffi.Pointer Function(Subdiv2D, int, ffi.Pointer)>(); + late final _Subdiv2D_SymEdgePtr = + _lookup Function(Subdiv2D, ffi.Int, ffi.Pointer)>>( + 'Subdiv2D_SymEdge'); + late final _Subdiv2D_SymEdge = + _Subdiv2D_SymEdgePtr.asFunction Function(Subdiv2D, int, ffi.Pointer)>(); ffi.Pointer TextureFlattening( Mat src, @@ -17799,11 +16041,10 @@ class CvNative { } late final _TextureFlatteningPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, ffi.Float, ffi.Float, - ffi.Int)>>('TextureFlattening'); - late final _TextureFlattening = _TextureFlatteningPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, double, double, int)>(); + ffi.NativeFunction Function(Mat, Mat, Mat, ffi.Float, ffi.Float, ffi.Int)>>( + 'TextureFlattening'); + late final _TextureFlattening = + _TextureFlatteningPtr.asFunction Function(Mat, Mat, Mat, double, double, int)>(); ffi.Pointer TheRNG( ffi.Pointer rval, @@ -17813,11 +16054,9 @@ class CvNative { ); } - late final _TheRNGPtr = _lookup< - ffi.NativeFunction Function(ffi.Pointer)>>( - 'TheRNG'); - late final _TheRNG = - _TheRNGPtr.asFunction Function(ffi.Pointer)>(); + late final _TheRNGPtr = + _lookup Function(ffi.Pointer)>>('TheRNG'); + late final _TheRNG = _TheRNGPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer Threshold( Mat src, @@ -17839,11 +16078,10 @@ class CvNative { late final _ThresholdPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Double, ffi.Double, - ffi.Int, ffi.Pointer)>>('Threshold'); + ffi.Pointer Function( + Mat, Mat, ffi.Double, ffi.Double, ffi.Int, ffi.Pointer)>>('Threshold'); late final _Threshold = _ThresholdPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, double, double, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, Mat, double, double, int, ffi.Pointer)>(); ffi.Pointer Trackbar_Create( ffi.Pointer winname, @@ -17859,11 +16097,10 @@ class CvNative { late final _Trackbar_CreatePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int)>>('Trackbar_Create'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, ffi.Int)>>('Trackbar_Create'); late final _Trackbar_Create = _Trackbar_CreatePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int)>(); ffi.Pointer Trackbar_CreateWithValue( ffi.Pointer winname, @@ -17881,15 +16118,11 @@ class CvNative { late final _Trackbar_CreateWithValuePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int)>>('Trackbar_CreateWithValue'); - late final _Trackbar_CreateWithValue = - _Trackbar_CreateWithValuePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); + late final _Trackbar_CreateWithValue = _Trackbar_CreateWithValuePtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); ffi.Pointer Trackbar_GetPos( ffi.Pointer winname, @@ -17905,11 +16138,10 @@ class CvNative { late final _Trackbar_GetPosPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('Trackbar_GetPos'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('Trackbar_GetPos'); late final _Trackbar_GetPos = _Trackbar_GetPosPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Trackbar_SetMax( ffi.Pointer winname, @@ -17925,11 +16157,10 @@ class CvNative { late final _Trackbar_SetMaxPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int)>>('Trackbar_SetMax'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, ffi.Int)>>('Trackbar_SetMax'); late final _Trackbar_SetMax = _Trackbar_SetMaxPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int)>(); ffi.Pointer Trackbar_SetMin( ffi.Pointer winname, @@ -17945,11 +16176,10 @@ class CvNative { late final _Trackbar_SetMinPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int)>>('Trackbar_SetMin'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, ffi.Int)>>('Trackbar_SetMin'); late final _Trackbar_SetMin = _Trackbar_SetMinPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int)>(); ffi.Pointer Trackbar_SetPos( ffi.Pointer winname, @@ -17965,11 +16195,10 @@ class CvNative { late final _Trackbar_SetPosPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int)>>('Trackbar_SetPos'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, ffi.Int)>>('Trackbar_SetPos'); late final _Trackbar_SetPos = _Trackbar_SetPosPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int)>(); void TrackerMIL_Close( TrackerMILPtr self, @@ -17980,10 +16209,8 @@ class CvNative { } late final _TrackerMIL_ClosePtr = - _lookup>( - 'TrackerMIL_Close'); - late final _TrackerMIL_Close = - _TrackerMIL_ClosePtr.asFunction(); + _lookup>('TrackerMIL_Close'); + late final _TrackerMIL_Close = _TrackerMIL_ClosePtr.asFunction(); ffi.Pointer TrackerMIL_Create( ffi.Pointer rval, @@ -17993,12 +16220,11 @@ class CvNative { ); } - late final _TrackerMIL_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('TrackerMIL_Create'); - late final _TrackerMIL_Create = _TrackerMIL_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _TrackerMIL_CreatePtr = + _lookup Function(ffi.Pointer)>>( + 'TrackerMIL_Create'); + late final _TrackerMIL_Create = + _TrackerMIL_CreatePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer TrackerMIL_Init( TrackerMIL self, @@ -18012,12 +16238,10 @@ class CvNative { ); } - late final _TrackerMIL_InitPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - TrackerMIL, Mat, Rect)>>('TrackerMIL_Init'); - late final _TrackerMIL_Init = _TrackerMIL_InitPtr.asFunction< - ffi.Pointer Function(TrackerMIL, Mat, Rect)>(); + late final _TrackerMIL_InitPtr = + _lookup Function(TrackerMIL, Mat, Rect)>>('TrackerMIL_Init'); + late final _TrackerMIL_Init = + _TrackerMIL_InitPtr.asFunction Function(TrackerMIL, Mat, Rect)>(); ffi.Pointer TrackerMIL_Update( TrackerMIL self, @@ -18035,11 +16259,10 @@ class CvNative { late final _TrackerMIL_UpdatePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(TrackerMIL, Mat, ffi.Pointer, - ffi.Pointer)>>('TrackerMIL_Update'); + ffi.Pointer Function( + TrackerMIL, Mat, ffi.Pointer, ffi.Pointer)>>('TrackerMIL_Update'); late final _TrackerMIL_Update = _TrackerMIL_UpdatePtr.asFunction< - ffi.Pointer Function( - TrackerMIL, Mat, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(TrackerMIL, Mat, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Undistort( Mat src, @@ -18057,12 +16280,9 @@ class CvNative { ); } - late final _UndistortPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, Mat)>>('Undistort'); - late final _Undistort = _UndistortPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat)>(); + late final _UndistortPtr = + _lookup Function(Mat, Mat, Mat, Mat, Mat)>>('Undistort'); + late final _Undistort = _UndistortPtr.asFunction Function(Mat, Mat, Mat, Mat, Mat)>(); ffi.Pointer UndistortPoints( Mat distorted, @@ -18084,13 +16304,11 @@ class CvNative { ); } - late final _UndistortPointsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, Mat, Mat, TermCriteria)>>('UndistortPoints'); + late final _UndistortPointsPtr = + _lookup Function(Mat, Mat, Mat, Mat, Mat, Mat, TermCriteria)>>( + 'UndistortPoints'); late final _UndistortPoints = _UndistortPointsPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, Mat, Mat, TermCriteria)>(); + ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, Mat, TermCriteria)>(); ffi.Pointer VecChar_Append( VecChar vec, @@ -18102,11 +16320,9 @@ class CvNative { ); } - late final _VecChar_AppendPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecChar, ffi.Char)>>('VecChar_Append'); - late final _VecChar_Append = _VecChar_AppendPtr.asFunction< - ffi.Pointer Function(VecChar, int)>(); + late final _VecChar_AppendPtr = + _lookup Function(VecChar, ffi.Char)>>('VecChar_Append'); + late final _VecChar_Append = _VecChar_AppendPtr.asFunction Function(VecChar, int)>(); ffi.Pointer VecChar_At( VecChar vec, @@ -18120,12 +16336,11 @@ class CvNative { ); } - late final _VecChar_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecChar, ffi.Int, ffi.Pointer)>>('VecChar_At'); - late final _VecChar_At = _VecChar_AtPtr.asFunction< - ffi.Pointer Function(VecChar, int, ffi.Pointer)>(); + late final _VecChar_AtPtr = + _lookup Function(VecChar, ffi.Int, ffi.Pointer)>>( + 'VecChar_At'); + late final _VecChar_At = + _VecChar_AtPtr.asFunction Function(VecChar, int, ffi.Pointer)>(); void VecChar_Close( VecCharPtr vec, @@ -18135,11 +16350,8 @@ class CvNative { ); } - late final _VecChar_ClosePtr = - _lookup>( - 'VecChar_Close'); - late final _VecChar_Close = - _VecChar_ClosePtr.asFunction(); + late final _VecChar_ClosePtr = _lookup>('VecChar_Close'); + late final _VecChar_Close = _VecChar_ClosePtr.asFunction(); ffi.Pointer VecChar_Data( VecChar vec, @@ -18152,12 +16364,10 @@ class CvNative { } late final _VecChar_DataPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecChar, ffi.Pointer>)>>('VecChar_Data'); + ffi.NativeFunction Function(VecChar, ffi.Pointer>)>>( + 'VecChar_Data'); late final _VecChar_Data = _VecChar_DataPtr.asFunction< - ffi.Pointer Function( - VecChar, ffi.Pointer>)>(); + ffi.Pointer Function(VecChar, ffi.Pointer>)>(); ffi.Pointer VecChar_New( ffi.Pointer rval, @@ -18167,11 +16377,10 @@ class CvNative { ); } - late final _VecChar_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('VecChar_New'); - late final _VecChar_New = _VecChar_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecChar_NewPtr = + _lookup Function(ffi.Pointer)>>('VecChar_New'); + late final _VecChar_New = + _VecChar_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecChar_NewFromPointer( ffi.Pointer p, @@ -18187,11 +16396,10 @@ class CvNative { late final _VecChar_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecChar_NewFromPointer'); + ffi.Pointer Function( + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecChar_NewFromPointer'); late final _VecChar_NewFromPointer = _VecChar_NewFromPointerPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecChar_NewFromVec( VecChar vec, @@ -18203,12 +16411,11 @@ class CvNative { ); } - late final _VecChar_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecChar, ffi.Pointer)>>('VecChar_NewFromVec'); - late final _VecChar_NewFromVec = _VecChar_NewFromVecPtr.asFunction< - ffi.Pointer Function(VecChar, ffi.Pointer)>(); + late final _VecChar_NewFromVecPtr = + _lookup Function(VecChar, ffi.Pointer)>>( + 'VecChar_NewFromVec'); + late final _VecChar_NewFromVec = + _VecChar_NewFromVecPtr.asFunction Function(VecChar, ffi.Pointer)>(); ffi.Pointer VecChar_Size( VecChar vec, @@ -18220,12 +16427,11 @@ class CvNative { ); } - late final _VecChar_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecChar, ffi.Pointer)>>('VecChar_Size'); - late final _VecChar_Size = _VecChar_SizePtr.asFunction< - ffi.Pointer Function(VecChar, ffi.Pointer)>(); + late final _VecChar_SizePtr = + _lookup Function(VecChar, ffi.Pointer)>>( + 'VecChar_Size'); + late final _VecChar_Size = + _VecChar_SizePtr.asFunction Function(VecChar, ffi.Pointer)>(); ffi.Pointer VecChar_ToString( VecChar vec, @@ -18242,12 +16448,9 @@ class CvNative { late final _VecChar_ToStringPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - VecChar, - ffi.Pointer>, - ffi.Pointer)>>('VecChar_ToString'); + VecChar, ffi.Pointer>, ffi.Pointer)>>('VecChar_ToString'); late final _VecChar_ToString = _VecChar_ToStringPtr.asFunction< - ffi.Pointer Function( - VecChar, ffi.Pointer>, ffi.Pointer)>(); + ffi.Pointer Function(VecChar, ffi.Pointer>, ffi.Pointer)>(); ffi.Pointer VecDMatch_Append( VecDMatch vec, @@ -18259,12 +16462,10 @@ class CvNative { ); } - late final _VecDMatch_AppendPtr = _lookup< - ffi - .NativeFunction Function(VecDMatch, DMatch)>>( - 'VecDMatch_Append'); - late final _VecDMatch_Append = _VecDMatch_AppendPtr.asFunction< - ffi.Pointer Function(VecDMatch, DMatch)>(); + late final _VecDMatch_AppendPtr = + _lookup Function(VecDMatch, DMatch)>>('VecDMatch_Append'); + late final _VecDMatch_Append = + _VecDMatch_AppendPtr.asFunction Function(VecDMatch, DMatch)>(); ffi.Pointer VecDMatch_At( VecDMatch vec, @@ -18278,12 +16479,11 @@ class CvNative { ); } - late final _VecDMatch_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecDMatch, ffi.Int, ffi.Pointer)>>('VecDMatch_At'); - late final _VecDMatch_At = _VecDMatch_AtPtr.asFunction< - ffi.Pointer Function(VecDMatch, int, ffi.Pointer)>(); + late final _VecDMatch_AtPtr = + _lookup Function(VecDMatch, ffi.Int, ffi.Pointer)>>( + 'VecDMatch_At'); + late final _VecDMatch_At = + _VecDMatch_AtPtr.asFunction Function(VecDMatch, int, ffi.Pointer)>(); void VecDMatch_Close( VecDMatchPtr vec, @@ -18294,10 +16494,8 @@ class CvNative { } late final _VecDMatch_ClosePtr = - _lookup>( - 'VecDMatch_Close'); - late final _VecDMatch_Close = - _VecDMatch_ClosePtr.asFunction(); + _lookup>('VecDMatch_Close'); + late final _VecDMatch_Close = _VecDMatch_ClosePtr.asFunction(); ffi.Pointer VecDMatch_New( ffi.Pointer rval, @@ -18307,12 +16505,10 @@ class CvNative { ); } - late final _VecDMatch_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecDMatch_New'); - late final _VecDMatch_New = _VecDMatch_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecDMatch_NewPtr = + _lookup Function(ffi.Pointer)>>('VecDMatch_New'); + late final _VecDMatch_New = + _VecDMatch_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecDMatch_NewFromPointer( ffi.Pointer matches, @@ -18328,12 +16524,10 @@ class CvNative { late final _VecDMatch_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecDMatch_NewFromPointer'); - late final _VecDMatch_NewFromPointer = - _VecDMatch_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecDMatch_NewFromPointer'); + late final _VecDMatch_NewFromPointer = _VecDMatch_NewFromPointerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecDMatch_NewFromVec( VecDMatch vec, @@ -18345,10 +16539,9 @@ class CvNative { ); } - late final _VecDMatch_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecDMatch, ffi.Pointer)>>('VecDMatch_NewFromVec'); + late final _VecDMatch_NewFromVecPtr = + _lookup Function(VecDMatch, ffi.Pointer)>>( + 'VecDMatch_NewFromVec'); late final _VecDMatch_NewFromVec = _VecDMatch_NewFromVecPtr.asFunction< ffi.Pointer Function(VecDMatch, ffi.Pointer)>(); @@ -18362,12 +16555,11 @@ class CvNative { ); } - late final _VecDMatch_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecDMatch, ffi.Pointer)>>('VecDMatch_Size'); - late final _VecDMatch_Size = _VecDMatch_SizePtr.asFunction< - ffi.Pointer Function(VecDMatch, ffi.Pointer)>(); + late final _VecDMatch_SizePtr = + _lookup Function(VecDMatch, ffi.Pointer)>>( + 'VecDMatch_Size'); + late final _VecDMatch_Size = + _VecDMatch_SizePtr.asFunction Function(VecDMatch, ffi.Pointer)>(); ffi.Pointer VecDouble_Append( VecDouble vec, @@ -18379,12 +16571,10 @@ class CvNative { ); } - late final _VecDouble_AppendPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecDouble, ffi.Double)>>('VecDouble_Append'); - late final _VecDouble_Append = _VecDouble_AppendPtr.asFunction< - ffi.Pointer Function(VecDouble, double)>(); + late final _VecDouble_AppendPtr = + _lookup Function(VecDouble, ffi.Double)>>('VecDouble_Append'); + late final _VecDouble_Append = + _VecDouble_AppendPtr.asFunction Function(VecDouble, double)>(); ffi.Pointer VecDouble_At( VecDouble vec, @@ -18399,12 +16589,10 @@ class CvNative { } late final _VecDouble_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecDouble, ffi.Int, ffi.Pointer)>>('VecDouble_At'); - late final _VecDouble_At = _VecDouble_AtPtr.asFunction< - ffi.Pointer Function( - VecDouble, int, ffi.Pointer)>(); + ffi.NativeFunction Function(VecDouble, ffi.Int, ffi.Pointer)>>( + 'VecDouble_At'); + late final _VecDouble_At = + _VecDouble_AtPtr.asFunction Function(VecDouble, int, ffi.Pointer)>(); void VecDouble_Close( VecDoublePtr vec, @@ -18415,10 +16603,8 @@ class CvNative { } late final _VecDouble_ClosePtr = - _lookup>( - 'VecDouble_Close'); - late final _VecDouble_Close = - _VecDouble_ClosePtr.asFunction(); + _lookup>('VecDouble_Close'); + late final _VecDouble_Close = _VecDouble_ClosePtr.asFunction(); ffi.Pointer VecDouble_Data( VecDouble vec, @@ -18432,11 +16618,9 @@ class CvNative { late final _VecDouble_DataPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecDouble, - ffi.Pointer>)>>('VecDouble_Data'); + ffi.Pointer Function(VecDouble, ffi.Pointer>)>>('VecDouble_Data'); late final _VecDouble_Data = _VecDouble_DataPtr.asFunction< - ffi.Pointer Function( - VecDouble, ffi.Pointer>)>(); + ffi.Pointer Function(VecDouble, ffi.Pointer>)>(); ffi.Pointer VecDouble_New( ffi.Pointer rval, @@ -18446,12 +16630,10 @@ class CvNative { ); } - late final _VecDouble_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecDouble_New'); - late final _VecDouble_New = _VecDouble_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecDouble_NewPtr = + _lookup Function(ffi.Pointer)>>('VecDouble_New'); + late final _VecDouble_New = + _VecDouble_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecDouble_NewFromPointer( ffi.Pointer p, @@ -18467,12 +16649,10 @@ class CvNative { late final _VecDouble_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecDouble_NewFromPointer'); - late final _VecDouble_NewFromPointer = - _VecDouble_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecDouble_NewFromPointer'); + late final _VecDouble_NewFromPointer = _VecDouble_NewFromPointerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecDouble_NewFromVec( VecDouble vec, @@ -18484,10 +16664,9 @@ class CvNative { ); } - late final _VecDouble_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecDouble, ffi.Pointer)>>('VecDouble_NewFromVec'); + late final _VecDouble_NewFromVecPtr = + _lookup Function(VecDouble, ffi.Pointer)>>( + 'VecDouble_NewFromVec'); late final _VecDouble_NewFromVec = _VecDouble_NewFromVecPtr.asFunction< ffi.Pointer Function(VecDouble, ffi.Pointer)>(); @@ -18501,12 +16680,11 @@ class CvNative { ); } - late final _VecDouble_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecDouble, ffi.Pointer)>>('VecDouble_Size'); - late final _VecDouble_Size = _VecDouble_SizePtr.asFunction< - ffi.Pointer Function(VecDouble, ffi.Pointer)>(); + late final _VecDouble_SizePtr = + _lookup Function(VecDouble, ffi.Pointer)>>( + 'VecDouble_Size'); + late final _VecDouble_Size = + _VecDouble_SizePtr.asFunction Function(VecDouble, ffi.Pointer)>(); ffi.Pointer VecFloat_Append( VecFloat vec, @@ -18518,12 +16696,10 @@ class CvNative { ); } - late final _VecFloat_AppendPtr = _lookup< - ffi - .NativeFunction Function(VecFloat, ffi.Float)>>( - 'VecFloat_Append'); - late final _VecFloat_Append = _VecFloat_AppendPtr.asFunction< - ffi.Pointer Function(VecFloat, double)>(); + late final _VecFloat_AppendPtr = + _lookup Function(VecFloat, ffi.Float)>>('VecFloat_Append'); + late final _VecFloat_Append = + _VecFloat_AppendPtr.asFunction Function(VecFloat, double)>(); ffi.Pointer VecFloat_At( VecFloat vec, @@ -18537,12 +16713,11 @@ class CvNative { ); } - late final _VecFloat_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecFloat, ffi.Int, ffi.Pointer)>>('VecFloat_At'); - late final _VecFloat_At = _VecFloat_AtPtr.asFunction< - ffi.Pointer Function(VecFloat, int, ffi.Pointer)>(); + late final _VecFloat_AtPtr = + _lookup Function(VecFloat, ffi.Int, ffi.Pointer)>>( + 'VecFloat_At'); + late final _VecFloat_At = + _VecFloat_AtPtr.asFunction Function(VecFloat, int, ffi.Pointer)>(); void VecFloat_Close( VecFloatPtr vec, @@ -18553,10 +16728,8 @@ class CvNative { } late final _VecFloat_ClosePtr = - _lookup>( - 'VecFloat_Close'); - late final _VecFloat_Close = - _VecFloat_ClosePtr.asFunction(); + _lookup>('VecFloat_Close'); + late final _VecFloat_Close = _VecFloat_ClosePtr.asFunction(); ffi.Pointer VecFloat_Data( VecFloat vec, @@ -18569,12 +16742,10 @@ class CvNative { } late final _VecFloat_DataPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecFloat, ffi.Pointer>)>>('VecFloat_Data'); + ffi.NativeFunction Function(VecFloat, ffi.Pointer>)>>( + 'VecFloat_Data'); late final _VecFloat_Data = _VecFloat_DataPtr.asFunction< - ffi.Pointer Function( - VecFloat, ffi.Pointer>)>(); + ffi.Pointer Function(VecFloat, ffi.Pointer>)>(); ffi.Pointer VecFloat_New( ffi.Pointer rval, @@ -18584,12 +16755,10 @@ class CvNative { ); } - late final _VecFloat_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecFloat_New'); - late final _VecFloat_New = _VecFloat_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecFloat_NewPtr = + _lookup Function(ffi.Pointer)>>('VecFloat_New'); + late final _VecFloat_New = + _VecFloat_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecFloat_NewFromPointer( ffi.Pointer p, @@ -18605,11 +16774,10 @@ class CvNative { late final _VecFloat_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecFloat_NewFromPointer'); + ffi.Pointer Function( + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecFloat_NewFromPointer'); late final _VecFloat_NewFromPointer = _VecFloat_NewFromPointerPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecFloat_NewFromVec( VecFloat vec, @@ -18621,12 +16789,11 @@ class CvNative { ); } - late final _VecFloat_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecFloat, ffi.Pointer)>>('VecFloat_NewFromVec'); - late final _VecFloat_NewFromVec = _VecFloat_NewFromVecPtr.asFunction< - ffi.Pointer Function(VecFloat, ffi.Pointer)>(); + late final _VecFloat_NewFromVecPtr = + _lookup Function(VecFloat, ffi.Pointer)>>( + 'VecFloat_NewFromVec'); + late final _VecFloat_NewFromVec = + _VecFloat_NewFromVecPtr.asFunction Function(VecFloat, ffi.Pointer)>(); ffi.Pointer VecFloat_Size( VecFloat vec, @@ -18638,12 +16805,11 @@ class CvNative { ); } - late final _VecFloat_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecFloat, ffi.Pointer)>>('VecFloat_Size'); - late final _VecFloat_Size = _VecFloat_SizePtr.asFunction< - ffi.Pointer Function(VecFloat, ffi.Pointer)>(); + late final _VecFloat_SizePtr = + _lookup Function(VecFloat, ffi.Pointer)>>( + 'VecFloat_Size'); + late final _VecFloat_Size = + _VecFloat_SizePtr.asFunction Function(VecFloat, ffi.Pointer)>(); ffi.Pointer VecInt_Append( VecInt vec, @@ -18655,11 +16821,9 @@ class CvNative { ); } - late final _VecInt_AppendPtr = _lookup< - ffi.NativeFunction Function(VecInt, ffi.Int)>>( - 'VecInt_Append'); - late final _VecInt_Append = _VecInt_AppendPtr.asFunction< - ffi.Pointer Function(VecInt, int)>(); + late final _VecInt_AppendPtr = + _lookup Function(VecInt, ffi.Int)>>('VecInt_Append'); + late final _VecInt_Append = _VecInt_AppendPtr.asFunction Function(VecInt, int)>(); ffi.Pointer VecInt_At( VecInt vec, @@ -18673,12 +16837,11 @@ class CvNative { ); } - late final _VecInt_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecInt, ffi.Int, ffi.Pointer)>>('VecInt_At'); - late final _VecInt_At = _VecInt_AtPtr.asFunction< - ffi.Pointer Function(VecInt, int, ffi.Pointer)>(); + late final _VecInt_AtPtr = + _lookup Function(VecInt, ffi.Int, ffi.Pointer)>>( + 'VecInt_At'); + late final _VecInt_At = + _VecInt_AtPtr.asFunction Function(VecInt, int, ffi.Pointer)>(); ffi.Pointer VecInt_AtNoBoundCheck( VecInt vec, @@ -18692,10 +16855,9 @@ class CvNative { ); } - late final _VecInt_AtNoBoundCheckPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecInt, ffi.Int, ffi.Pointer)>>('VecInt_AtNoBoundCheck'); + late final _VecInt_AtNoBoundCheckPtr = + _lookup Function(VecInt, ffi.Int, ffi.Pointer)>>( + 'VecInt_AtNoBoundCheck'); late final _VecInt_AtNoBoundCheck = _VecInt_AtNoBoundCheckPtr.asFunction< ffi.Pointer Function(VecInt, int, ffi.Pointer)>(); @@ -18707,10 +16869,8 @@ class CvNative { ); } - late final _VecInt_ClosePtr = - _lookup>('VecInt_Close'); - late final _VecInt_Close = - _VecInt_ClosePtr.asFunction(); + late final _VecInt_ClosePtr = _lookup>('VecInt_Close'); + late final _VecInt_Close = _VecInt_ClosePtr.asFunction(); ffi.Pointer VecInt_Data( VecInt vec, @@ -18722,13 +16882,11 @@ class CvNative { ); } - late final _VecInt_DataPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecInt, ffi.Pointer>)>>('VecInt_Data'); - late final _VecInt_Data = _VecInt_DataPtr.asFunction< - ffi.Pointer Function( - VecInt, ffi.Pointer>)>(); + late final _VecInt_DataPtr = + _lookup Function(VecInt, ffi.Pointer>)>>( + 'VecInt_Data'); + late final _VecInt_Data = + _VecInt_DataPtr.asFunction Function(VecInt, ffi.Pointer>)>(); ffi.Pointer VecInt_New( ffi.Pointer rval, @@ -18738,11 +16896,9 @@ class CvNative { ); } - late final _VecInt_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('VecInt_New'); - late final _VecInt_New = _VecInt_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecInt_NewPtr = + _lookup Function(ffi.Pointer)>>('VecInt_New'); + late final _VecInt_New = _VecInt_NewPtr.asFunction Function(ffi.Pointer)>(); /// Copy from a pointer ffi.Pointer VecInt_NewFromPointer( @@ -18759,11 +16915,10 @@ class CvNative { late final _VecInt_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecInt_NewFromPointer'); + ffi.Pointer Function( + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecInt_NewFromPointer'); late final _VecInt_NewFromPointer = _VecInt_NewFromPointerPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecInt_NewFromVec( VecInt vec, @@ -18775,12 +16930,11 @@ class CvNative { ); } - late final _VecInt_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecInt, ffi.Pointer)>>('VecInt_NewFromVec'); - late final _VecInt_NewFromVec = _VecInt_NewFromVecPtr.asFunction< - ffi.Pointer Function(VecInt, ffi.Pointer)>(); + late final _VecInt_NewFromVecPtr = + _lookup Function(VecInt, ffi.Pointer)>>( + 'VecInt_NewFromVec'); + late final _VecInt_NewFromVec = + _VecInt_NewFromVecPtr.asFunction Function(VecInt, ffi.Pointer)>(); ffi.Pointer VecInt_Size( VecInt vec, @@ -18792,12 +16946,11 @@ class CvNative { ); } - late final _VecInt_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecInt, ffi.Pointer)>>('VecInt_Size'); - late final _VecInt_Size = _VecInt_SizePtr.asFunction< - ffi.Pointer Function(VecInt, ffi.Pointer)>(); + late final _VecInt_SizePtr = + _lookup Function(VecInt, ffi.Pointer)>>( + 'VecInt_Size'); + late final _VecInt_Size = + _VecInt_SizePtr.asFunction Function(VecInt, ffi.Pointer)>(); ffi.Pointer VecKeyPoint_Append( VecKeyPoint vec, @@ -18809,12 +16962,11 @@ class CvNative { ); } - late final _VecKeyPoint_AppendPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecKeyPoint, KeyPoint)>>('VecKeyPoint_Append'); - late final _VecKeyPoint_Append = _VecKeyPoint_AppendPtr.asFunction< - ffi.Pointer Function(VecKeyPoint, KeyPoint)>(); + late final _VecKeyPoint_AppendPtr = + _lookup Function(VecKeyPoint, KeyPoint)>>( + 'VecKeyPoint_Append'); + late final _VecKeyPoint_Append = + _VecKeyPoint_AppendPtr.asFunction Function(VecKeyPoint, KeyPoint)>(); ffi.Pointer VecKeyPoint_At( VecKeyPoint vec, @@ -18829,12 +16981,10 @@ class CvNative { } late final _VecKeyPoint_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecKeyPoint, ffi.Int, ffi.Pointer)>>('VecKeyPoint_At'); + ffi.NativeFunction Function(VecKeyPoint, ffi.Int, ffi.Pointer)>>( + 'VecKeyPoint_At'); late final _VecKeyPoint_At = _VecKeyPoint_AtPtr.asFunction< - ffi.Pointer Function( - VecKeyPoint, int, ffi.Pointer)>(); + ffi.Pointer Function(VecKeyPoint, int, ffi.Pointer)>(); void VecKeyPoint_Close( VecKeyPointPtr vec, @@ -18845,10 +16995,8 @@ class CvNative { } late final _VecKeyPoint_ClosePtr = - _lookup>( - 'VecKeyPoint_Close'); - late final _VecKeyPoint_Close = - _VecKeyPoint_ClosePtr.asFunction(); + _lookup>('VecKeyPoint_Close'); + late final _VecKeyPoint_Close = _VecKeyPoint_ClosePtr.asFunction(); ffi.Pointer VecKeyPoint_New( ffi.Pointer rval, @@ -18858,12 +17006,11 @@ class CvNative { ); } - late final _VecKeyPoint_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecKeyPoint_New'); - late final _VecKeyPoint_New = _VecKeyPoint_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecKeyPoint_NewPtr = + _lookup Function(ffi.Pointer)>>( + 'VecKeyPoint_New'); + late final _VecKeyPoint_New = + _VecKeyPoint_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecKeyPoint_NewFromPointer( ffi.Pointer keypoints, @@ -18879,12 +17026,10 @@ class CvNative { late final _VecKeyPoint_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecKeyPoint_NewFromPointer'); - late final _VecKeyPoint_NewFromPointer = - _VecKeyPoint_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecKeyPoint_NewFromPointer'); + late final _VecKeyPoint_NewFromPointer = _VecKeyPoint_NewFromPointerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecKeyPoint_NewFromVec( VecKeyPoint vec, @@ -18896,10 +17041,9 @@ class CvNative { ); } - late final _VecKeyPoint_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecKeyPoint, - ffi.Pointer)>>('VecKeyPoint_NewFromVec'); + late final _VecKeyPoint_NewFromVecPtr = + _lookup Function(VecKeyPoint, ffi.Pointer)>>( + 'VecKeyPoint_NewFromVec'); late final _VecKeyPoint_NewFromVec = _VecKeyPoint_NewFromVecPtr.asFunction< ffi.Pointer Function(VecKeyPoint, ffi.Pointer)>(); @@ -18913,12 +17057,11 @@ class CvNative { ); } - late final _VecKeyPoint_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecKeyPoint, ffi.Pointer)>>('VecKeyPoint_Size'); - late final _VecKeyPoint_Size = _VecKeyPoint_SizePtr.asFunction< - ffi.Pointer Function(VecKeyPoint, ffi.Pointer)>(); + late final _VecKeyPoint_SizePtr = + _lookup Function(VecKeyPoint, ffi.Pointer)>>( + 'VecKeyPoint_Size'); + late final _VecKeyPoint_Size = + _VecKeyPoint_SizePtr.asFunction Function(VecKeyPoint, ffi.Pointer)>(); ffi.Pointer VecMat_Append( VecMat vec, @@ -18931,10 +17074,8 @@ class CvNative { } late final _VecMat_AppendPtr = - _lookup Function(VecMat, Mat)>>( - 'VecMat_Append'); - late final _VecMat_Append = _VecMat_AppendPtr.asFunction< - ffi.Pointer Function(VecMat, Mat)>(); + _lookup Function(VecMat, Mat)>>('VecMat_Append'); + late final _VecMat_Append = _VecMat_AppendPtr.asFunction Function(VecMat, Mat)>(); ffi.Pointer VecMat_At( VecMat vec, @@ -18948,12 +17089,11 @@ class CvNative { ); } - late final _VecMat_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecMat, ffi.Int, ffi.Pointer)>>('VecMat_At'); - late final _VecMat_At = _VecMat_AtPtr.asFunction< - ffi.Pointer Function(VecMat, int, ffi.Pointer)>(); + late final _VecMat_AtPtr = + _lookup Function(VecMat, ffi.Int, ffi.Pointer)>>( + 'VecMat_At'); + late final _VecMat_At = + _VecMat_AtPtr.asFunction Function(VecMat, int, ffi.Pointer)>(); void VecMat_Close( VecMatPtr vec, @@ -18963,10 +17103,8 @@ class CvNative { ); } - late final _VecMat_ClosePtr = - _lookup>('VecMat_Close'); - late final _VecMat_Close = - _VecMat_ClosePtr.asFunction(); + late final _VecMat_ClosePtr = _lookup>('VecMat_Close'); + late final _VecMat_Close = _VecMat_ClosePtr.asFunction(); ffi.Pointer VecMat_New( ffi.Pointer rval, @@ -18976,11 +17114,9 @@ class CvNative { ); } - late final _VecMat_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('VecMat_New'); - late final _VecMat_New = _VecMat_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecMat_NewPtr = + _lookup Function(ffi.Pointer)>>('VecMat_New'); + late final _VecMat_New = _VecMat_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecMat_NewFromPointer( ffi.Pointer mats, @@ -18995,12 +17131,10 @@ class CvNative { } late final _VecMat_NewFromPointerPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecMat_NewFromPointer'); + ffi.NativeFunction Function(ffi.Pointer, ffi.Int, ffi.Pointer)>>( + 'VecMat_NewFromPointer'); late final _VecMat_NewFromPointer = _VecMat_NewFromPointerPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecMat_NewFromVec( VecMat vec, @@ -19012,12 +17146,11 @@ class CvNative { ); } - late final _VecMat_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecMat, ffi.Pointer)>>('VecMat_NewFromVec'); - late final _VecMat_NewFromVec = _VecMat_NewFromVecPtr.asFunction< - ffi.Pointer Function(VecMat, ffi.Pointer)>(); + late final _VecMat_NewFromVecPtr = + _lookup Function(VecMat, ffi.Pointer)>>( + 'VecMat_NewFromVec'); + late final _VecMat_NewFromVec = + _VecMat_NewFromVecPtr.asFunction Function(VecMat, ffi.Pointer)>(); ffi.Pointer VecMat_Size( VecMat vec, @@ -19029,12 +17162,11 @@ class CvNative { ); } - late final _VecMat_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecMat, ffi.Pointer)>>('VecMat_Size'); - late final _VecMat_Size = _VecMat_SizePtr.asFunction< - ffi.Pointer Function(VecMat, ffi.Pointer)>(); + late final _VecMat_SizePtr = + _lookup Function(VecMat, ffi.Pointer)>>( + 'VecMat_Size'); + late final _VecMat_Size = + _VecMat_SizePtr.asFunction Function(VecMat, ffi.Pointer)>(); ffi.Pointer VecPoint2f_Append( VecPoint2f vec, @@ -19046,12 +17178,10 @@ class CvNative { ); } - late final _VecPoint2f_AppendPtr = _lookup< - ffi - .NativeFunction Function(VecPoint2f, Point2f)>>( - 'VecPoint2f_Append'); - late final _VecPoint2f_Append = _VecPoint2f_AppendPtr.asFunction< - ffi.Pointer Function(VecPoint2f, Point2f)>(); + late final _VecPoint2f_AppendPtr = + _lookup Function(VecPoint2f, Point2f)>>('VecPoint2f_Append'); + late final _VecPoint2f_Append = + _VecPoint2f_AppendPtr.asFunction Function(VecPoint2f, Point2f)>(); ffi.Pointer VecPoint2f_At( VecPoint2f vec, @@ -19065,12 +17195,11 @@ class CvNative { ); } - late final _VecPoint2f_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint2f, ffi.Int, ffi.Pointer)>>('VecPoint2f_At'); - late final _VecPoint2f_At = _VecPoint2f_AtPtr.asFunction< - ffi.Pointer Function(VecPoint2f, int, ffi.Pointer)>(); + late final _VecPoint2f_AtPtr = + _lookup Function(VecPoint2f, ffi.Int, ffi.Pointer)>>( + 'VecPoint2f_At'); + late final _VecPoint2f_At = + _VecPoint2f_AtPtr.asFunction Function(VecPoint2f, int, ffi.Pointer)>(); void VecPoint2f_Close( VecPoint2fPtr vec, @@ -19081,10 +17210,8 @@ class CvNative { } late final _VecPoint2f_ClosePtr = - _lookup>( - 'VecPoint2f_Close'); - late final _VecPoint2f_Close = - _VecPoint2f_ClosePtr.asFunction(); + _lookup>('VecPoint2f_Close'); + late final _VecPoint2f_Close = _VecPoint2f_ClosePtr.asFunction(); ffi.Pointer VecPoint2f_New( ffi.Pointer rval, @@ -19094,12 +17221,10 @@ class CvNative { ); } - late final _VecPoint2f_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecPoint2f_New'); - late final _VecPoint2f_New = _VecPoint2f_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecPoint2f_NewPtr = + _lookup Function(ffi.Pointer)>>('VecPoint2f_New'); + late final _VecPoint2f_New = + _VecPoint2f_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecPoint2f_NewFromMat( Mat mat, @@ -19111,12 +17236,11 @@ class CvNative { ); } - late final _VecPoint2f_NewFromMatPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('VecPoint2f_NewFromMat'); - late final _VecPoint2f_NewFromMat = _VecPoint2f_NewFromMatPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _VecPoint2f_NewFromMatPtr = + _lookup Function(Mat, ffi.Pointer)>>( + 'VecPoint2f_NewFromMat'); + late final _VecPoint2f_NewFromMat = + _VecPoint2f_NewFromMatPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer VecPoint2f_NewFromPointer( ffi.Pointer pts, @@ -19132,12 +17256,10 @@ class CvNative { late final _VecPoint2f_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecPoint2f_NewFromPointer'); - late final _VecPoint2f_NewFromPointer = - _VecPoint2f_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecPoint2f_NewFromPointer'); + late final _VecPoint2f_NewFromPointer = _VecPoint2f_NewFromPointerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecPoint2f_NewFromVec( VecPoint2f vec, @@ -19149,10 +17271,9 @@ class CvNative { ); } - late final _VecPoint2f_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint2f, ffi.Pointer)>>('VecPoint2f_NewFromVec'); + late final _VecPoint2f_NewFromVecPtr = + _lookup Function(VecPoint2f, ffi.Pointer)>>( + 'VecPoint2f_NewFromVec'); late final _VecPoint2f_NewFromVec = _VecPoint2f_NewFromVecPtr.asFunction< ffi.Pointer Function(VecPoint2f, ffi.Pointer)>(); @@ -19166,12 +17287,11 @@ class CvNative { ); } - late final _VecPoint2f_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint2f, ffi.Pointer)>>('VecPoint2f_Size'); - late final _VecPoint2f_Size = _VecPoint2f_SizePtr.asFunction< - ffi.Pointer Function(VecPoint2f, ffi.Pointer)>(); + late final _VecPoint2f_SizePtr = + _lookup Function(VecPoint2f, ffi.Pointer)>>( + 'VecPoint2f_Size'); + late final _VecPoint2f_Size = + _VecPoint2f_SizePtr.asFunction Function(VecPoint2f, ffi.Pointer)>(); ffi.Pointer VecPoint3f_Append( VecPoint3f vec, @@ -19183,12 +17303,10 @@ class CvNative { ); } - late final _VecPoint3f_AppendPtr = _lookup< - ffi - .NativeFunction Function(VecPoint3f, Point3f)>>( - 'VecPoint3f_Append'); - late final _VecPoint3f_Append = _VecPoint3f_AppendPtr.asFunction< - ffi.Pointer Function(VecPoint3f, Point3f)>(); + late final _VecPoint3f_AppendPtr = + _lookup Function(VecPoint3f, Point3f)>>('VecPoint3f_Append'); + late final _VecPoint3f_Append = + _VecPoint3f_AppendPtr.asFunction Function(VecPoint3f, Point3f)>(); ffi.Pointer VecPoint3f_At( VecPoint3f vec, @@ -19202,12 +17320,11 @@ class CvNative { ); } - late final _VecPoint3f_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint3f, ffi.Int, ffi.Pointer)>>('VecPoint3f_At'); - late final _VecPoint3f_At = _VecPoint3f_AtPtr.asFunction< - ffi.Pointer Function(VecPoint3f, int, ffi.Pointer)>(); + late final _VecPoint3f_AtPtr = + _lookup Function(VecPoint3f, ffi.Int, ffi.Pointer)>>( + 'VecPoint3f_At'); + late final _VecPoint3f_At = + _VecPoint3f_AtPtr.asFunction Function(VecPoint3f, int, ffi.Pointer)>(); void VecPoint3f_Close( VecPoint3fPtr vec, @@ -19218,10 +17335,8 @@ class CvNative { } late final _VecPoint3f_ClosePtr = - _lookup>( - 'VecPoint3f_Close'); - late final _VecPoint3f_Close = - _VecPoint3f_ClosePtr.asFunction(); + _lookup>('VecPoint3f_Close'); + late final _VecPoint3f_Close = _VecPoint3f_ClosePtr.asFunction(); ffi.Pointer VecPoint3f_New( ffi.Pointer rval, @@ -19231,12 +17346,10 @@ class CvNative { ); } - late final _VecPoint3f_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecPoint3f_New'); - late final _VecPoint3f_New = _VecPoint3f_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecPoint3f_NewPtr = + _lookup Function(ffi.Pointer)>>('VecPoint3f_New'); + late final _VecPoint3f_New = + _VecPoint3f_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecPoint3f_NewFromMat( Mat mat, @@ -19248,12 +17361,11 @@ class CvNative { ); } - late final _VecPoint3f_NewFromMatPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('VecPoint3f_NewFromMat'); - late final _VecPoint3f_NewFromMat = _VecPoint3f_NewFromMatPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _VecPoint3f_NewFromMatPtr = + _lookup Function(Mat, ffi.Pointer)>>( + 'VecPoint3f_NewFromMat'); + late final _VecPoint3f_NewFromMat = + _VecPoint3f_NewFromMatPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer VecPoint3f_NewFromPointer( ffi.Pointer points, @@ -19269,12 +17381,10 @@ class CvNative { late final _VecPoint3f_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecPoint3f_NewFromPointer'); - late final _VecPoint3f_NewFromPointer = - _VecPoint3f_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecPoint3f_NewFromPointer'); + late final _VecPoint3f_NewFromPointer = _VecPoint3f_NewFromPointerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecPoint3f_NewFromVec( VecPoint3f vec, @@ -19286,10 +17396,9 @@ class CvNative { ); } - late final _VecPoint3f_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint3f, ffi.Pointer)>>('VecPoint3f_NewFromVec'); + late final _VecPoint3f_NewFromVecPtr = + _lookup Function(VecPoint3f, ffi.Pointer)>>( + 'VecPoint3f_NewFromVec'); late final _VecPoint3f_NewFromVec = _VecPoint3f_NewFromVecPtr.asFunction< ffi.Pointer Function(VecPoint3f, ffi.Pointer)>(); @@ -19303,12 +17412,11 @@ class CvNative { ); } - late final _VecPoint3f_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint3f, ffi.Pointer)>>('VecPoint3f_Size'); - late final _VecPoint3f_Size = _VecPoint3f_SizePtr.asFunction< - ffi.Pointer Function(VecPoint3f, ffi.Pointer)>(); + late final _VecPoint3f_SizePtr = + _lookup Function(VecPoint3f, ffi.Pointer)>>( + 'VecPoint3f_Size'); + late final _VecPoint3f_Size = + _VecPoint3f_SizePtr.asFunction Function(VecPoint3f, ffi.Pointer)>(); ffi.Pointer VecPoint_Append( VecPoint vec, @@ -19320,11 +17428,10 @@ class CvNative { ); } - late final _VecPoint_AppendPtr = _lookup< - ffi.NativeFunction Function(VecPoint, Point)>>( - 'VecPoint_Append'); - late final _VecPoint_Append = _VecPoint_AppendPtr.asFunction< - ffi.Pointer Function(VecPoint, Point)>(); + late final _VecPoint_AppendPtr = + _lookup Function(VecPoint, Point)>>('VecPoint_Append'); + late final _VecPoint_Append = + _VecPoint_AppendPtr.asFunction Function(VecPoint, Point)>(); ffi.Pointer VecPoint_At( VecPoint vec, @@ -19338,12 +17445,11 @@ class CvNative { ); } - late final _VecPoint_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Int, ffi.Pointer)>>('VecPoint_At'); - late final _VecPoint_At = _VecPoint_AtPtr.asFunction< - ffi.Pointer Function(VecPoint, int, ffi.Pointer)>(); + late final _VecPoint_AtPtr = + _lookup Function(VecPoint, ffi.Int, ffi.Pointer)>>( + 'VecPoint_At'); + late final _VecPoint_At = + _VecPoint_AtPtr.asFunction Function(VecPoint, int, ffi.Pointer)>(); void VecPoint_Close( VecPointPtr vec, @@ -19354,10 +17460,8 @@ class CvNative { } late final _VecPoint_ClosePtr = - _lookup>( - 'VecPoint_Close'); - late final _VecPoint_Close = - _VecPoint_ClosePtr.asFunction(); + _lookup>('VecPoint_Close'); + late final _VecPoint_Close = _VecPoint_ClosePtr.asFunction(); ffi.Pointer VecPoint_New( ffi.Pointer rval, @@ -19367,12 +17471,10 @@ class CvNative { ); } - late final _VecPoint_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecPoint_New'); - late final _VecPoint_New = _VecPoint_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecPoint_NewPtr = + _lookup Function(ffi.Pointer)>>('VecPoint_New'); + late final _VecPoint_New = + _VecPoint_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecPoint_NewFromMat( Mat mat, @@ -19384,12 +17486,11 @@ class CvNative { ); } - late final _VecPoint_NewFromMatPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('VecPoint_NewFromMat'); - late final _VecPoint_NewFromMat = _VecPoint_NewFromMatPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _VecPoint_NewFromMatPtr = + _lookup Function(Mat, ffi.Pointer)>>( + 'VecPoint_NewFromMat'); + late final _VecPoint_NewFromMat = + _VecPoint_NewFromMatPtr.asFunction Function(Mat, ffi.Pointer)>(); /// Copy from a pointer ffi.Pointer VecPoint_NewFromPointer( @@ -19406,11 +17507,10 @@ class CvNative { late final _VecPoint_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecPoint_NewFromPointer'); + ffi.Pointer Function( + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecPoint_NewFromPointer'); late final _VecPoint_NewFromPointer = _VecPoint_NewFromPointerPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecPoint_NewFromVec( VecPoint vec, @@ -19422,12 +17522,11 @@ class CvNative { ); } - late final _VecPoint_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('VecPoint_NewFromVec'); - late final _VecPoint_NewFromVec = _VecPoint_NewFromVecPtr.asFunction< - ffi.Pointer Function(VecPoint, ffi.Pointer)>(); + late final _VecPoint_NewFromVecPtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'VecPoint_NewFromVec'); + late final _VecPoint_NewFromVec = + _VecPoint_NewFromVecPtr.asFunction Function(VecPoint, ffi.Pointer)>(); ffi.Pointer VecPoint_Size( VecPoint vec, @@ -19439,12 +17538,11 @@ class CvNative { ); } - late final _VecPoint_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('VecPoint_Size'); - late final _VecPoint_Size = _VecPoint_SizePtr.asFunction< - ffi.Pointer Function(VecPoint, ffi.Pointer)>(); + late final _VecPoint_SizePtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'VecPoint_Size'); + late final _VecPoint_Size = + _VecPoint_SizePtr.asFunction Function(VecPoint, ffi.Pointer)>(); ffi.Pointer VecPrim_Append( VecPrim vec, @@ -19456,11 +17554,9 @@ class CvNative { ); } - late final _VecPrim_AppendPtr = _lookup< - ffi.NativeFunction Function(VecPrim, Prim)>>( - 'VecPrim_Append'); - late final _VecPrim_Append = _VecPrim_AppendPtr.asFunction< - ffi.Pointer Function(VecPrim, Prim)>(); + late final _VecPrim_AppendPtr = + _lookup Function(VecPrim, Prim)>>('VecPrim_Append'); + late final _VecPrim_Append = _VecPrim_AppendPtr.asFunction Function(VecPrim, Prim)>(); ffi.Pointer VecPrim_At( VecPrim vec, @@ -19474,12 +17570,11 @@ class CvNative { ); } - late final _VecPrim_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPrim, ffi.Int, ffi.Pointer)>>('VecPrim_At'); - late final _VecPrim_At = _VecPrim_AtPtr.asFunction< - ffi.Pointer Function(VecPrim, int, ffi.Pointer)>(); + late final _VecPrim_AtPtr = + _lookup Function(VecPrim, ffi.Int, ffi.Pointer)>>( + 'VecPrim_At'); + late final _VecPrim_At = + _VecPrim_AtPtr.asFunction Function(VecPrim, int, ffi.Pointer)>(); void VecPrim_Close( VecPrimPtr vec, @@ -19489,11 +17584,8 @@ class CvNative { ); } - late final _VecPrim_ClosePtr = - _lookup>( - 'VecPrim_Close'); - late final _VecPrim_Close = - _VecPrim_ClosePtr.asFunction(); + late final _VecPrim_ClosePtr = _lookup>('VecPrim_Close'); + late final _VecPrim_Close = _VecPrim_ClosePtr.asFunction(); ffi.Pointer VecPrim_New( ffi.Pointer rval, @@ -19503,11 +17595,10 @@ class CvNative { ); } - late final _VecPrim_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('VecPrim_New'); - late final _VecPrim_New = _VecPrim_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecPrim_NewPtr = + _lookup Function(ffi.Pointer)>>('VecPrim_New'); + late final _VecPrim_New = + _VecPrim_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecPrim_NewFromPointer( ffi.Pointer points, @@ -19522,12 +17613,11 @@ class CvNative { } late final _VecPrim_NewFromPointerPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecPrim_NewFromPointer'); + ffi + .NativeFunction Function(ffi.Pointer, ffi.Int, ffi.Pointer)>>( + 'VecPrim_NewFromPointer'); late final _VecPrim_NewFromPointer = _VecPrim_NewFromPointerPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecPrim_NewFromVec( VecPrim vec, @@ -19539,12 +17629,11 @@ class CvNative { ); } - late final _VecPrim_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPrim, ffi.Pointer)>>('VecPrim_NewFromVec'); - late final _VecPrim_NewFromVec = _VecPrim_NewFromVecPtr.asFunction< - ffi.Pointer Function(VecPrim, ffi.Pointer)>(); + late final _VecPrim_NewFromVecPtr = + _lookup Function(VecPrim, ffi.Pointer)>>( + 'VecPrim_NewFromVec'); + late final _VecPrim_NewFromVec = + _VecPrim_NewFromVecPtr.asFunction Function(VecPrim, ffi.Pointer)>(); ffi.Pointer VecPrim_Size( VecPrim vec, @@ -19556,12 +17645,11 @@ class CvNative { ); } - late final _VecPrim_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPrim, ffi.Pointer)>>('VecPrim_Size'); - late final _VecPrim_Size = _VecPrim_SizePtr.asFunction< - ffi.Pointer Function(VecPrim, ffi.Pointer)>(); + late final _VecPrim_SizePtr = + _lookup Function(VecPrim, ffi.Pointer)>>( + 'VecPrim_Size'); + late final _VecPrim_Size = + _VecPrim_SizePtr.asFunction Function(VecPrim, ffi.Pointer)>(); ffi.Pointer VecRect_Append( VecRect vec, @@ -19573,11 +17661,9 @@ class CvNative { ); } - late final _VecRect_AppendPtr = _lookup< - ffi.NativeFunction Function(VecRect, Rect)>>( - 'VecRect_Append'); - late final _VecRect_Append = _VecRect_AppendPtr.asFunction< - ffi.Pointer Function(VecRect, Rect)>(); + late final _VecRect_AppendPtr = + _lookup Function(VecRect, Rect)>>('VecRect_Append'); + late final _VecRect_Append = _VecRect_AppendPtr.asFunction Function(VecRect, Rect)>(); ffi.Pointer VecRect_At( VecRect vec, @@ -19591,12 +17677,11 @@ class CvNative { ); } - late final _VecRect_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecRect, ffi.Int, ffi.Pointer)>>('VecRect_At'); - late final _VecRect_At = _VecRect_AtPtr.asFunction< - ffi.Pointer Function(VecRect, int, ffi.Pointer)>(); + late final _VecRect_AtPtr = + _lookup Function(VecRect, ffi.Int, ffi.Pointer)>>( + 'VecRect_At'); + late final _VecRect_At = + _VecRect_AtPtr.asFunction Function(VecRect, int, ffi.Pointer)>(); void VecRect_Close( VecRectPtr vec, @@ -19606,11 +17691,8 @@ class CvNative { ); } - late final _VecRect_ClosePtr = - _lookup>( - 'VecRect_Close'); - late final _VecRect_Close = - _VecRect_ClosePtr.asFunction(); + late final _VecRect_ClosePtr = _lookup>('VecRect_Close'); + late final _VecRect_Close = _VecRect_ClosePtr.asFunction(); ffi.Pointer VecRect_New( ffi.Pointer rval, @@ -19620,11 +17702,10 @@ class CvNative { ); } - late final _VecRect_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('VecRect_New'); - late final _VecRect_New = _VecRect_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecRect_NewPtr = + _lookup Function(ffi.Pointer)>>('VecRect_New'); + late final _VecRect_New = + _VecRect_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecRect_NewFromPointer( ffi.Pointer rects, @@ -19639,12 +17720,11 @@ class CvNative { } late final _VecRect_NewFromPointerPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecRect_NewFromPointer'); + ffi + .NativeFunction Function(ffi.Pointer, ffi.Int, ffi.Pointer)>>( + 'VecRect_NewFromPointer'); late final _VecRect_NewFromPointer = _VecRect_NewFromPointerPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecRect_NewFromVec( VecRect vec, @@ -19656,12 +17736,11 @@ class CvNative { ); } - late final _VecRect_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecRect, ffi.Pointer)>>('VecRect_NewFromVec'); - late final _VecRect_NewFromVec = _VecRect_NewFromVecPtr.asFunction< - ffi.Pointer Function(VecRect, ffi.Pointer)>(); + late final _VecRect_NewFromVecPtr = + _lookup Function(VecRect, ffi.Pointer)>>( + 'VecRect_NewFromVec'); + late final _VecRect_NewFromVec = + _VecRect_NewFromVecPtr.asFunction Function(VecRect, ffi.Pointer)>(); ffi.Pointer VecRect_Size( VecRect vec, @@ -19673,12 +17752,11 @@ class CvNative { ); } - late final _VecRect_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecRect, ffi.Pointer)>>('VecRect_Size'); - late final _VecRect_Size = _VecRect_SizePtr.asFunction< - ffi.Pointer Function(VecRect, ffi.Pointer)>(); + late final _VecRect_SizePtr = + _lookup Function(VecRect, ffi.Pointer)>>( + 'VecRect_Size'); + late final _VecRect_Size = + _VecRect_SizePtr.asFunction Function(VecRect, ffi.Pointer)>(); ffi.Pointer VecUChar_Append( VecUChar vec, @@ -19690,11 +17768,10 @@ class CvNative { ); } - late final _VecUChar_AppendPtr = _lookup< - ffi.NativeFunction Function(VecUChar, uchar)>>( - 'VecUChar_Append'); - late final _VecUChar_Append = _VecUChar_AppendPtr.asFunction< - ffi.Pointer Function(VecUChar, int)>(); + late final _VecUChar_AppendPtr = + _lookup Function(VecUChar, uchar)>>('VecUChar_Append'); + late final _VecUChar_Append = + _VecUChar_AppendPtr.asFunction Function(VecUChar, int)>(); ffi.Pointer VecUChar_At( VecUChar vec, @@ -19708,12 +17785,11 @@ class CvNative { ); } - late final _VecUChar_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecUChar, ffi.Int, ffi.Pointer)>>('VecUChar_At'); - late final _VecUChar_At = _VecUChar_AtPtr.asFunction< - ffi.Pointer Function(VecUChar, int, ffi.Pointer)>(); + late final _VecUChar_AtPtr = + _lookup Function(VecUChar, ffi.Int, ffi.Pointer)>>( + 'VecUChar_At'); + late final _VecUChar_At = + _VecUChar_AtPtr.asFunction Function(VecUChar, int, ffi.Pointer)>(); ffi.Pointer VecUChar_AtNoBoundCheck( VecUChar vec, @@ -19727,10 +17803,9 @@ class CvNative { ); } - late final _VecUChar_AtNoBoundCheckPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecUChar, ffi.Int, - ffi.Pointer)>>('VecUChar_AtNoBoundCheck'); + late final _VecUChar_AtNoBoundCheckPtr = + _lookup Function(VecUChar, ffi.Int, ffi.Pointer)>>( + 'VecUChar_AtNoBoundCheck'); late final _VecUChar_AtNoBoundCheck = _VecUChar_AtNoBoundCheckPtr.asFunction< ffi.Pointer Function(VecUChar, int, ffi.Pointer)>(); @@ -19743,10 +17818,8 @@ class CvNative { } late final _VecUChar_ClosePtr = - _lookup>( - 'VecUChar_Close'); - late final _VecUChar_Close = - _VecUChar_ClosePtr.asFunction(); + _lookup>('VecUChar_Close'); + late final _VecUChar_Close = _VecUChar_ClosePtr.asFunction(); ffi.Pointer VecUChar_Data( VecUChar vec, @@ -19758,13 +17831,11 @@ class CvNative { ); } - late final _VecUChar_DataPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecUChar, ffi.Pointer>)>>('VecUChar_Data'); + late final _VecUChar_DataPtr = + _lookup Function(VecUChar, ffi.Pointer>)>>( + 'VecUChar_Data'); late final _VecUChar_Data = _VecUChar_DataPtr.asFunction< - ffi.Pointer Function( - VecUChar, ffi.Pointer>)>(); + ffi.Pointer Function(VecUChar, ffi.Pointer>)>(); ffi.Pointer VecUChar_New( ffi.Pointer rval, @@ -19774,12 +17845,10 @@ class CvNative { ); } - late final _VecUChar_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecUChar_New'); - late final _VecUChar_New = _VecUChar_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecUChar_NewPtr = + _lookup Function(ffi.Pointer)>>('VecUChar_New'); + late final _VecUChar_New = + _VecUChar_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecUChar_NewFromPointer( ffi.Pointer p, @@ -19795,11 +17864,10 @@ class CvNative { late final _VecUChar_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecUChar_NewFromPointer'); + ffi.Pointer Function( + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecUChar_NewFromPointer'); late final _VecUChar_NewFromPointer = _VecUChar_NewFromPointerPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecUChar_NewFromVec( VecUChar vec, @@ -19811,12 +17879,11 @@ class CvNative { ); } - late final _VecUChar_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecUChar, ffi.Pointer)>>('VecUChar_NewFromVec'); - late final _VecUChar_NewFromVec = _VecUChar_NewFromVecPtr.asFunction< - ffi.Pointer Function(VecUChar, ffi.Pointer)>(); + late final _VecUChar_NewFromVecPtr = + _lookup Function(VecUChar, ffi.Pointer)>>( + 'VecUChar_NewFromVec'); + late final _VecUChar_NewFromVec = + _VecUChar_NewFromVecPtr.asFunction Function(VecUChar, ffi.Pointer)>(); ffi.Pointer VecUChar_Size( VecUChar vec, @@ -19828,12 +17895,11 @@ class CvNative { ); } - late final _VecUChar_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecUChar, ffi.Pointer)>>('VecUChar_Size'); - late final _VecUChar_Size = _VecUChar_SizePtr.asFunction< - ffi.Pointer Function(VecUChar, ffi.Pointer)>(); + late final _VecUChar_SizePtr = + _lookup Function(VecUChar, ffi.Pointer)>>( + 'VecUChar_Size'); + late final _VecUChar_Size = + _VecUChar_SizePtr.asFunction Function(VecUChar, ffi.Pointer)>(); ffi.Pointer VecVec4i_Append( VecVec4i vec, @@ -19845,11 +17911,10 @@ class CvNative { ); } - late final _VecVec4i_AppendPtr = _lookup< - ffi.NativeFunction Function(VecVec4i, Vec4i)>>( - 'VecVec4i_Append'); - late final _VecVec4i_Append = _VecVec4i_AppendPtr.asFunction< - ffi.Pointer Function(VecVec4i, Vec4i)>(); + late final _VecVec4i_AppendPtr = + _lookup Function(VecVec4i, Vec4i)>>('VecVec4i_Append'); + late final _VecVec4i_Append = + _VecVec4i_AppendPtr.asFunction Function(VecVec4i, Vec4i)>(); ffi.Pointer VecVec4i_At( VecVec4i vec, @@ -19863,12 +17928,11 @@ class CvNative { ); } - late final _VecVec4i_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVec4i, ffi.Int, ffi.Pointer)>>('VecVec4i_At'); - late final _VecVec4i_At = _VecVec4i_AtPtr.asFunction< - ffi.Pointer Function(VecVec4i, int, ffi.Pointer)>(); + late final _VecVec4i_AtPtr = + _lookup Function(VecVec4i, ffi.Int, ffi.Pointer)>>( + 'VecVec4i_At'); + late final _VecVec4i_At = + _VecVec4i_AtPtr.asFunction Function(VecVec4i, int, ffi.Pointer)>(); void VecVec4i_Close( VecVec4iPtr vec, @@ -19879,10 +17943,8 @@ class CvNative { } late final _VecVec4i_ClosePtr = - _lookup>( - 'VecVec4i_Close'); - late final _VecVec4i_Close = - _VecVec4i_ClosePtr.asFunction(); + _lookup>('VecVec4i_Close'); + late final _VecVec4i_Close = _VecVec4i_ClosePtr.asFunction(); ffi.Pointer VecVec4i_New( ffi.Pointer rval, @@ -19892,12 +17954,10 @@ class CvNative { ); } - late final _VecVec4i_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecVec4i_New'); - late final _VecVec4i_New = _VecVec4i_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecVec4i_NewPtr = + _lookup Function(ffi.Pointer)>>('VecVec4i_New'); + late final _VecVec4i_New = + _VecVec4i_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecVec4i_NewFromPointer( ffi.Pointer data, @@ -19913,11 +17973,10 @@ class CvNative { late final _VecVec4i_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecVec4i_NewFromPointer'); + ffi.Pointer Function( + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecVec4i_NewFromPointer'); late final _VecVec4i_NewFromPointer = _VecVec4i_NewFromPointerPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecVec4i_Size( VecVec4i vec, @@ -19929,12 +17988,11 @@ class CvNative { ); } - late final _VecVec4i_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVec4i, ffi.Pointer)>>('VecVec4i_Size'); - late final _VecVec4i_Size = _VecVec4i_SizePtr.asFunction< - ffi.Pointer Function(VecVec4i, ffi.Pointer)>(); + late final _VecVec4i_SizePtr = + _lookup Function(VecVec4i, ffi.Pointer)>>( + 'VecVec4i_Size'); + late final _VecVec4i_Size = + _VecVec4i_SizePtr.asFunction Function(VecVec4i, ffi.Pointer)>(); ffi.Pointer VecVecChar_Append( VecVecChar vec, @@ -19946,12 +18004,10 @@ class CvNative { ); } - late final _VecVecChar_AppendPtr = _lookup< - ffi - .NativeFunction Function(VecVecChar, VecChar)>>( - 'VecVecChar_Append'); - late final _VecVecChar_Append = _VecVecChar_AppendPtr.asFunction< - ffi.Pointer Function(VecVecChar, VecChar)>(); + late final _VecVecChar_AppendPtr = + _lookup Function(VecVecChar, VecChar)>>('VecVecChar_Append'); + late final _VecVecChar_Append = + _VecVecChar_AppendPtr.asFunction Function(VecVecChar, VecChar)>(); ffi.Pointer VecVecChar_Append_Str( VecVecChar vec, @@ -19963,10 +18019,9 @@ class CvNative { ); } - late final _VecVecChar_Append_StrPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVecChar, ffi.Pointer)>>('VecVecChar_Append_Str'); + late final _VecVecChar_Append_StrPtr = + _lookup Function(VecVecChar, ffi.Pointer)>>( + 'VecVecChar_Append_Str'); late final _VecVecChar_Append_Str = _VecVecChar_Append_StrPtr.asFunction< ffi.Pointer Function(VecVecChar, ffi.Pointer)>(); @@ -19982,12 +18037,11 @@ class CvNative { ); } - late final _VecVecChar_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVecChar, ffi.Int, ffi.Pointer)>>('VecVecChar_At'); - late final _VecVecChar_At = _VecVecChar_AtPtr.asFunction< - ffi.Pointer Function(VecVecChar, int, ffi.Pointer)>(); + late final _VecVecChar_AtPtr = + _lookup Function(VecVecChar, ffi.Int, ffi.Pointer)>>( + 'VecVecChar_At'); + late final _VecVecChar_At = + _VecVecChar_AtPtr.asFunction Function(VecVecChar, int, ffi.Pointer)>(); ffi.Pointer VecVecChar_At_Str( VecVecChar vec, @@ -20005,14 +18059,11 @@ class CvNative { late final _VecVecChar_At_StrPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecVecChar, - ffi.Int, - ffi.Pointer>, + ffi.Pointer Function(VecVecChar, ffi.Int, ffi.Pointer>, ffi.Pointer)>>('VecVecChar_At_Str'); late final _VecVecChar_At_Str = _VecVecChar_At_StrPtr.asFunction< - ffi.Pointer Function(VecVecChar, int, - ffi.Pointer>, ffi.Pointer)>(); + ffi.Pointer Function( + VecVecChar, int, ffi.Pointer>, ffi.Pointer)>(); void VecVecChar_Close( VecVecCharPtr vec, @@ -20023,10 +18074,8 @@ class CvNative { } late final _VecVecChar_ClosePtr = - _lookup>( - 'VecVecChar_Close'); - late final _VecVecChar_Close = - _VecVecChar_ClosePtr.asFunction(); + _lookup>('VecVecChar_Close'); + late final _VecVecChar_Close = _VecVecChar_ClosePtr.asFunction(); ffi.Pointer VecVecChar_New( ffi.Pointer rval, @@ -20036,12 +18085,10 @@ class CvNative { ); } - late final _VecVecChar_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecVecChar_New'); - late final _VecVecChar_New = _VecVecChar_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecVecChar_NewPtr = + _lookup Function(ffi.Pointer)>>('VecVecChar_New'); + late final _VecVecChar_New = + _VecVecChar_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecVecChar_NewFromVec( VecVecChar vec, @@ -20053,10 +18100,9 @@ class CvNative { ); } - late final _VecVecChar_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVecChar, ffi.Pointer)>>('VecVecChar_NewFromVec'); + late final _VecVecChar_NewFromVecPtr = + _lookup Function(VecVecChar, ffi.Pointer)>>( + 'VecVecChar_NewFromVec'); late final _VecVecChar_NewFromVec = _VecVecChar_NewFromVecPtr.asFunction< ffi.Pointer Function(VecVecChar, ffi.Pointer)>(); @@ -20070,12 +18116,11 @@ class CvNative { ); } - late final _VecVecChar_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVecChar, ffi.Pointer)>>('VecVecChar_Size'); - late final _VecVecChar_Size = _VecVecChar_SizePtr.asFunction< - ffi.Pointer Function(VecVecChar, ffi.Pointer)>(); + late final _VecVecChar_SizePtr = + _lookup Function(VecVecChar, ffi.Pointer)>>( + 'VecVecChar_Size'); + late final _VecVecChar_Size = + _VecVecChar_SizePtr.asFunction Function(VecVecChar, ffi.Pointer)>(); ffi.Pointer VecVecDMatch_Append( VecVecDMatch vec, @@ -20087,12 +18132,11 @@ class CvNative { ); } - late final _VecVecDMatch_AppendPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVecDMatch, VecDMatch)>>('VecVecDMatch_Append'); - late final _VecVecDMatch_Append = _VecVecDMatch_AppendPtr.asFunction< - ffi.Pointer Function(VecVecDMatch, VecDMatch)>(); + late final _VecVecDMatch_AppendPtr = + _lookup Function(VecVecDMatch, VecDMatch)>>( + 'VecVecDMatch_Append'); + late final _VecVecDMatch_Append = + _VecVecDMatch_AppendPtr.asFunction Function(VecVecDMatch, VecDMatch)>(); ffi.Pointer VecVecDMatch_At( VecVecDMatch vec, @@ -20107,12 +18151,10 @@ class CvNative { } late final _VecVecDMatch_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecVecDMatch, ffi.Int, - ffi.Pointer)>>('VecVecDMatch_At'); + ffi.NativeFunction Function(VecVecDMatch, ffi.Int, ffi.Pointer)>>( + 'VecVecDMatch_At'); late final _VecVecDMatch_At = _VecVecDMatch_AtPtr.asFunction< - ffi.Pointer Function( - VecVecDMatch, int, ffi.Pointer)>(); + ffi.Pointer Function(VecVecDMatch, int, ffi.Pointer)>(); void VecVecDMatch_Close( VecVecDMatchPtr vec, @@ -20123,10 +18165,8 @@ class CvNative { } late final _VecVecDMatch_ClosePtr = - _lookup>( - 'VecVecDMatch_Close'); - late final _VecVecDMatch_Close = - _VecVecDMatch_ClosePtr.asFunction(); + _lookup>('VecVecDMatch_Close'); + late final _VecVecDMatch_Close = _VecVecDMatch_ClosePtr.asFunction(); ffi.Pointer VecVecDMatch_Data( VecVecDMatch vec, @@ -20139,12 +18179,11 @@ class CvNative { } late final _VecVecDMatch_DataPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecVecDMatch, - ffi.Pointer>)>>('VecVecDMatch_Data'); + ffi + .NativeFunction Function(VecVecDMatch, ffi.Pointer>)>>( + 'VecVecDMatch_Data'); late final _VecVecDMatch_Data = _VecVecDMatch_DataPtr.asFunction< - ffi.Pointer Function( - VecVecDMatch, ffi.Pointer>)>(); + ffi.Pointer Function(VecVecDMatch, ffi.Pointer>)>(); ffi.Pointer VecVecDMatch_New( ffi.Pointer rval, @@ -20154,12 +18193,11 @@ class CvNative { ); } - late final _VecVecDMatch_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecVecDMatch_New'); - late final _VecVecDMatch_New = _VecVecDMatch_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecVecDMatch_NewPtr = + _lookup Function(ffi.Pointer)>>( + 'VecVecDMatch_New'); + late final _VecVecDMatch_New = + _VecVecDMatch_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecVecDMatch_NewFromPointer( ffi.Pointer matches, @@ -20175,12 +18213,10 @@ class CvNative { late final _VecVecDMatch_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecVecDMatch_NewFromPointer'); - late final _VecVecDMatch_NewFromPointer = - _VecVecDMatch_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecVecDMatch_NewFromPointer'); + late final _VecVecDMatch_NewFromPointer = _VecVecDMatch_NewFromPointerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecVecDMatch_NewFromVec( VecVecDMatch vec, @@ -20192,13 +18228,11 @@ class CvNative { ); } - late final _VecVecDMatch_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecVecDMatch, - ffi.Pointer)>>('VecVecDMatch_NewFromVec'); + late final _VecVecDMatch_NewFromVecPtr = + _lookup Function(VecVecDMatch, ffi.Pointer)>>( + 'VecVecDMatch_NewFromVec'); late final _VecVecDMatch_NewFromVec = _VecVecDMatch_NewFromVecPtr.asFunction< - ffi.Pointer Function( - VecVecDMatch, ffi.Pointer)>(); + ffi.Pointer Function(VecVecDMatch, ffi.Pointer)>(); ffi.Pointer VecVecDMatch_Size( VecVecDMatch vec, @@ -20210,12 +18244,11 @@ class CvNative { ); } - late final _VecVecDMatch_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVecDMatch, ffi.Pointer)>>('VecVecDMatch_Size'); - late final _VecVecDMatch_Size = _VecVecDMatch_SizePtr.asFunction< - ffi.Pointer Function(VecVecDMatch, ffi.Pointer)>(); + late final _VecVecDMatch_SizePtr = + _lookup Function(VecVecDMatch, ffi.Pointer)>>( + 'VecVecDMatch_Size'); + late final _VecVecDMatch_Size = + _VecVecDMatch_SizePtr.asFunction Function(VecVecDMatch, ffi.Pointer)>(); ffi.Pointer VecVecPoint2f_Append( VecVecPoint2f vec, @@ -20227,12 +18260,11 @@ class CvNative { ); } - late final _VecVecPoint2f_AppendPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVecPoint2f, VecPoint2f)>>('VecVecPoint2f_Append'); - late final _VecVecPoint2f_Append = _VecVecPoint2f_AppendPtr.asFunction< - ffi.Pointer Function(VecVecPoint2f, VecPoint2f)>(); + late final _VecVecPoint2f_AppendPtr = + _lookup Function(VecVecPoint2f, VecPoint2f)>>( + 'VecVecPoint2f_Append'); + late final _VecVecPoint2f_Append = + _VecVecPoint2f_AppendPtr.asFunction Function(VecVecPoint2f, VecPoint2f)>(); ffi.Pointer VecVecPoint2f_At( VecVecPoint2f vec, @@ -20247,12 +18279,11 @@ class CvNative { } late final _VecVecPoint2f_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecVecPoint2f, ffi.Int, - ffi.Pointer)>>('VecVecPoint2f_At'); + ffi + .NativeFunction Function(VecVecPoint2f, ffi.Int, ffi.Pointer)>>( + 'VecVecPoint2f_At'); late final _VecVecPoint2f_At = _VecVecPoint2f_AtPtr.asFunction< - ffi.Pointer Function( - VecVecPoint2f, int, ffi.Pointer)>(); + ffi.Pointer Function(VecVecPoint2f, int, ffi.Pointer)>(); void VecVecPoint2f_Close( VecVecPoint2fPtr vec, @@ -20263,10 +18294,8 @@ class CvNative { } late final _VecVecPoint2f_ClosePtr = - _lookup>( - 'VecVecPoint2f_Close'); - late final _VecVecPoint2f_Close = - _VecVecPoint2f_ClosePtr.asFunction(); + _lookup>('VecVecPoint2f_Close'); + late final _VecVecPoint2f_Close = _VecVecPoint2f_ClosePtr.asFunction(); ffi.Pointer VecVecPoint2f_New( ffi.Pointer rval, @@ -20276,12 +18305,11 @@ class CvNative { ); } - late final _VecVecPoint2f_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecVecPoint2f_New'); - late final _VecVecPoint2f_New = _VecVecPoint2f_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecVecPoint2f_NewPtr = + _lookup Function(ffi.Pointer)>>( + 'VecVecPoint2f_New'); + late final _VecVecPoint2f_New = + _VecVecPoint2f_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecVecPoint2f_NewFromPointer( ffi.Pointer points, @@ -20297,12 +18325,10 @@ class CvNative { late final _VecVecPoint2f_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecVecPoint2f_NewFromPointer'); - late final _VecVecPoint2f_NewFromPointer = - _VecVecPoint2f_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecVecPoint2f_NewFromPointer'); + late final _VecVecPoint2f_NewFromPointer = _VecVecPoint2f_NewFromPointerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecVecPoint2f_NewFromVec( VecVecPoint2f vec, @@ -20314,14 +18340,11 @@ class CvNative { ); } - late final _VecVecPoint2f_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecVecPoint2f, - ffi.Pointer)>>('VecVecPoint2f_NewFromVec'); - late final _VecVecPoint2f_NewFromVec = - _VecVecPoint2f_NewFromVecPtr.asFunction< - ffi.Pointer Function( - VecVecPoint2f, ffi.Pointer)>(); + late final _VecVecPoint2f_NewFromVecPtr = + _lookup Function(VecVecPoint2f, ffi.Pointer)>>( + 'VecVecPoint2f_NewFromVec'); + late final _VecVecPoint2f_NewFromVec = _VecVecPoint2f_NewFromVecPtr.asFunction< + ffi.Pointer Function(VecVecPoint2f, ffi.Pointer)>(); ffi.Pointer VecVecPoint2f_Size( VecVecPoint2f vec, @@ -20333,10 +18356,9 @@ class CvNative { ); } - late final _VecVecPoint2f_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVecPoint2f, ffi.Pointer)>>('VecVecPoint2f_Size'); + late final _VecVecPoint2f_SizePtr = + _lookup Function(VecVecPoint2f, ffi.Pointer)>>( + 'VecVecPoint2f_Size'); late final _VecVecPoint2f_Size = _VecVecPoint2f_SizePtr.asFunction< ffi.Pointer Function(VecVecPoint2f, ffi.Pointer)>(); @@ -20350,12 +18372,11 @@ class CvNative { ); } - late final _VecVecPoint3f_AppendPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVecPoint3f, VecPoint3f)>>('VecVecPoint3f_Append'); - late final _VecVecPoint3f_Append = _VecVecPoint3f_AppendPtr.asFunction< - ffi.Pointer Function(VecVecPoint3f, VecPoint3f)>(); + late final _VecVecPoint3f_AppendPtr = + _lookup Function(VecVecPoint3f, VecPoint3f)>>( + 'VecVecPoint3f_Append'); + late final _VecVecPoint3f_Append = + _VecVecPoint3f_AppendPtr.asFunction Function(VecVecPoint3f, VecPoint3f)>(); ffi.Pointer VecVecPoint3f_At( VecVecPoint3f vec, @@ -20370,12 +18391,11 @@ class CvNative { } late final _VecVecPoint3f_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecVecPoint3f, ffi.Int, - ffi.Pointer)>>('VecVecPoint3f_At'); + ffi + .NativeFunction Function(VecVecPoint3f, ffi.Int, ffi.Pointer)>>( + 'VecVecPoint3f_At'); late final _VecVecPoint3f_At = _VecVecPoint3f_AtPtr.asFunction< - ffi.Pointer Function( - VecVecPoint3f, int, ffi.Pointer)>(); + ffi.Pointer Function(VecVecPoint3f, int, ffi.Pointer)>(); void VecVecPoint3f_Close( VecVecPoint3fPtr vec, @@ -20386,10 +18406,8 @@ class CvNative { } late final _VecVecPoint3f_ClosePtr = - _lookup>( - 'VecVecPoint3f_Close'); - late final _VecVecPoint3f_Close = - _VecVecPoint3f_ClosePtr.asFunction(); + _lookup>('VecVecPoint3f_Close'); + late final _VecVecPoint3f_Close = _VecVecPoint3f_ClosePtr.asFunction(); ffi.Pointer VecVecPoint3f_New( ffi.Pointer rval, @@ -20399,12 +18417,11 @@ class CvNative { ); } - late final _VecVecPoint3f_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecVecPoint3f_New'); - late final _VecVecPoint3f_New = _VecVecPoint3f_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecVecPoint3f_NewPtr = + _lookup Function(ffi.Pointer)>>( + 'VecVecPoint3f_New'); + late final _VecVecPoint3f_New = + _VecVecPoint3f_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecVecPoint3f_NewFromPointer( ffi.Pointer points, @@ -20420,12 +18437,10 @@ class CvNative { late final _VecVecPoint3f_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecVecPoint3f_NewFromPointer'); - late final _VecVecPoint3f_NewFromPointer = - _VecVecPoint3f_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecVecPoint3f_NewFromPointer'); + late final _VecVecPoint3f_NewFromPointer = _VecVecPoint3f_NewFromPointerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecVecPoint3f_NewFromVec( VecVecPoint3f vec, @@ -20437,14 +18452,11 @@ class CvNative { ); } - late final _VecVecPoint3f_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecVecPoint3f, - ffi.Pointer)>>('VecVecPoint3f_NewFromVec'); - late final _VecVecPoint3f_NewFromVec = - _VecVecPoint3f_NewFromVecPtr.asFunction< - ffi.Pointer Function( - VecVecPoint3f, ffi.Pointer)>(); + late final _VecVecPoint3f_NewFromVecPtr = + _lookup Function(VecVecPoint3f, ffi.Pointer)>>( + 'VecVecPoint3f_NewFromVec'); + late final _VecVecPoint3f_NewFromVec = _VecVecPoint3f_NewFromVecPtr.asFunction< + ffi.Pointer Function(VecVecPoint3f, ffi.Pointer)>(); ffi.Pointer VecVecPoint3f_Size( VecVecPoint3f vec, @@ -20456,10 +18468,9 @@ class CvNative { ); } - late final _VecVecPoint3f_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVecPoint3f, ffi.Pointer)>>('VecVecPoint3f_Size'); + late final _VecVecPoint3f_SizePtr = + _lookup Function(VecVecPoint3f, ffi.Pointer)>>( + 'VecVecPoint3f_Size'); late final _VecVecPoint3f_Size = _VecVecPoint3f_SizePtr.asFunction< ffi.Pointer Function(VecVecPoint3f, ffi.Pointer)>(); @@ -20473,12 +18484,11 @@ class CvNative { ); } - late final _VecVecPoint_AppendPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVecPoint, VecPoint)>>('VecVecPoint_Append'); - late final _VecVecPoint_Append = _VecVecPoint_AppendPtr.asFunction< - ffi.Pointer Function(VecVecPoint, VecPoint)>(); + late final _VecVecPoint_AppendPtr = + _lookup Function(VecVecPoint, VecPoint)>>( + 'VecVecPoint_Append'); + late final _VecVecPoint_Append = + _VecVecPoint_AppendPtr.asFunction Function(VecVecPoint, VecPoint)>(); ffi.Pointer VecVecPoint_At( VecVecPoint vec, @@ -20493,12 +18503,10 @@ class CvNative { } late final _VecVecPoint_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVecPoint, ffi.Int, ffi.Pointer)>>('VecVecPoint_At'); + ffi.NativeFunction Function(VecVecPoint, ffi.Int, ffi.Pointer)>>( + 'VecVecPoint_At'); late final _VecVecPoint_At = _VecVecPoint_AtPtr.asFunction< - ffi.Pointer Function( - VecVecPoint, int, ffi.Pointer)>(); + ffi.Pointer Function(VecVecPoint, int, ffi.Pointer)>(); void VecVecPoint_Close( VecVecPointPtr vec, @@ -20509,10 +18517,8 @@ class CvNative { } late final _VecVecPoint_ClosePtr = - _lookup>( - 'VecVecPoint_Close'); - late final _VecVecPoint_Close = - _VecVecPoint_ClosePtr.asFunction(); + _lookup>('VecVecPoint_Close'); + late final _VecVecPoint_Close = _VecVecPoint_ClosePtr.asFunction(); ffi.Pointer VecVecPoint_New( ffi.Pointer rval, @@ -20522,12 +18528,11 @@ class CvNative { ); } - late final _VecVecPoint_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecVecPoint_New'); - late final _VecVecPoint_New = _VecVecPoint_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecVecPoint_NewPtr = + _lookup Function(ffi.Pointer)>>( + 'VecVecPoint_New'); + late final _VecVecPoint_New = + _VecVecPoint_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecVecPoint_NewFromPointer( ffi.Pointer points, @@ -20543,12 +18548,10 @@ class CvNative { late final _VecVecPoint_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecVecPoint_NewFromPointer'); - late final _VecVecPoint_NewFromPointer = - _VecVecPoint_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecVecPoint_NewFromPointer'); + late final _VecVecPoint_NewFromPointer = _VecVecPoint_NewFromPointerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecVecPoint_NewFromVec( VecVecPoint vec, @@ -20560,10 +18563,9 @@ class CvNative { ); } - late final _VecVecPoint_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecVecPoint, - ffi.Pointer)>>('VecVecPoint_NewFromVec'); + late final _VecVecPoint_NewFromVecPtr = + _lookup Function(VecVecPoint, ffi.Pointer)>>( + 'VecVecPoint_NewFromVec'); late final _VecVecPoint_NewFromVec = _VecVecPoint_NewFromVecPtr.asFunction< ffi.Pointer Function(VecVecPoint, ffi.Pointer)>(); @@ -20577,12 +18579,11 @@ class CvNative { ); } - late final _VecVecPoint_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVecPoint, ffi.Pointer)>>('VecVecPoint_Size'); - late final _VecVecPoint_Size = _VecVecPoint_SizePtr.asFunction< - ffi.Pointer Function(VecVecPoint, ffi.Pointer)>(); + late final _VecVecPoint_SizePtr = + _lookup Function(VecVecPoint, ffi.Pointer)>>( + 'VecVecPoint_Size'); + late final _VecVecPoint_Size = + _VecVecPoint_SizePtr.asFunction Function(VecVecPoint, ffi.Pointer)>(); void VideoCapture_Close( VideoCapturePtr self, @@ -20593,10 +18594,8 @@ class CvNative { } late final _VideoCapture_ClosePtr = - _lookup>( - 'VideoCapture_Close'); - late final _VideoCapture_Close = - _VideoCapture_ClosePtr.asFunction(); + _lookup>('VideoCapture_Close'); + late final _VideoCapture_Close = _VideoCapture_ClosePtr.asFunction(); ffi.Pointer VideoCapture_Get( VideoCapture self, @@ -20611,12 +18610,10 @@ class CvNative { } late final _VideoCapture_GetPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VideoCapture, ffi.Int, - ffi.Pointer)>>('VideoCapture_Get'); + ffi.NativeFunction Function(VideoCapture, ffi.Int, ffi.Pointer)>>( + 'VideoCapture_Get'); late final _VideoCapture_Get = _VideoCapture_GetPtr.asFunction< - ffi.Pointer Function( - VideoCapture, int, ffi.Pointer)>(); + ffi.Pointer Function(VideoCapture, int, ffi.Pointer)>(); ffi.Pointer VideoCapture_Grab( VideoCapture self, @@ -20628,12 +18625,10 @@ class CvNative { ); } - late final _VideoCapture_GrabPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VideoCapture, ffi.Int)>>('VideoCapture_Grab'); - late final _VideoCapture_Grab = _VideoCapture_GrabPtr.asFunction< - ffi.Pointer Function(VideoCapture, int)>(); + late final _VideoCapture_GrabPtr = + _lookup Function(VideoCapture, ffi.Int)>>('VideoCapture_Grab'); + late final _VideoCapture_Grab = + _VideoCapture_GrabPtr.asFunction Function(VideoCapture, int)>(); ffi.Pointer VideoCapture_IsOpened( VideoCapture self, @@ -20645,10 +18640,9 @@ class CvNative { ); } - late final _VideoCapture_IsOpenedPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VideoCapture, ffi.Pointer)>>('VideoCapture_IsOpened'); + late final _VideoCapture_IsOpenedPtr = + _lookup Function(VideoCapture, ffi.Pointer)>>( + 'VideoCapture_IsOpened'); late final _VideoCapture_IsOpened = _VideoCapture_IsOpenedPtr.asFunction< ffi.Pointer Function(VideoCapture, ffi.Pointer)>(); @@ -20660,12 +18654,11 @@ class CvNative { ); } - late final _VideoCapture_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VideoCapture_New'); - late final _VideoCapture_New = _VideoCapture_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VideoCapture_NewPtr = + _lookup Function(ffi.Pointer)>>( + 'VideoCapture_New'); + late final _VideoCapture_New = + _VideoCapture_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VideoCapture_NewFromFile( ffi.Pointer filename, @@ -20681,12 +18674,10 @@ class CvNative { late final _VideoCapture_NewFromFilePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VideoCapture_NewFromFile'); - late final _VideoCapture_NewFromFile = - _VideoCapture_NewFromFilePtr.asFunction< ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VideoCapture_NewFromFile'); + late final _VideoCapture_NewFromFile = _VideoCapture_NewFromFilePtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VideoCapture_NewFromIndex( int index, @@ -20701,13 +18692,10 @@ class CvNative { } late final _VideoCapture_NewFromIndexPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Int, - ffi.Pointer)>>('VideoCapture_NewFromIndex'); - late final _VideoCapture_NewFromIndex = - _VideoCapture_NewFromIndexPtr.asFunction< - ffi.Pointer Function( - int, int, ffi.Pointer)>(); + ffi.NativeFunction Function(ffi.Int, ffi.Int, ffi.Pointer)>>( + 'VideoCapture_NewFromIndex'); + late final _VideoCapture_NewFromIndex = _VideoCapture_NewFromIndexPtr.asFunction< + ffi.Pointer Function(int, int, ffi.Pointer)>(); ffi.Pointer VideoCapture_Open( VideoCapture self, @@ -20723,11 +18711,10 @@ class CvNative { late final _VideoCapture_OpenPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VideoCapture, ffi.Pointer, - ffi.Pointer)>>('VideoCapture_Open'); + ffi.Pointer Function( + VideoCapture, ffi.Pointer, ffi.Pointer)>>('VideoCapture_Open'); late final _VideoCapture_Open = _VideoCapture_OpenPtr.asFunction< - ffi.Pointer Function( - VideoCapture, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(VideoCapture, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer VideoCapture_OpenDevice( VideoCapture self, @@ -20742,12 +18729,10 @@ class CvNative { } late final _VideoCapture_OpenDevicePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VideoCapture, ffi.Int, - ffi.Pointer)>>('VideoCapture_OpenDevice'); + ffi.NativeFunction Function(VideoCapture, ffi.Int, ffi.Pointer)>>( + 'VideoCapture_OpenDevice'); late final _VideoCapture_OpenDevice = _VideoCapture_OpenDevicePtr.asFunction< - ffi.Pointer Function( - VideoCapture, int, ffi.Pointer)>(); + ffi.Pointer Function(VideoCapture, int, ffi.Pointer)>(); ffi.Pointer VideoCapture_OpenDeviceWithAPI( VideoCapture self, @@ -20765,12 +18750,10 @@ class CvNative { late final _VideoCapture_OpenDeviceWithAPIPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VideoCapture, ffi.Int, ffi.Int, - ffi.Pointer)>>('VideoCapture_OpenDeviceWithAPI'); - late final _VideoCapture_OpenDeviceWithAPI = - _VideoCapture_OpenDeviceWithAPIPtr.asFunction< ffi.Pointer Function( - VideoCapture, int, int, ffi.Pointer)>(); + VideoCapture, ffi.Int, ffi.Int, ffi.Pointer)>>('VideoCapture_OpenDeviceWithAPI'); + late final _VideoCapture_OpenDeviceWithAPI = _VideoCapture_OpenDeviceWithAPIPtr.asFunction< + ffi.Pointer Function(VideoCapture, int, int, ffi.Pointer)>(); ffi.Pointer VideoCapture_OpenWithAPI( VideoCapture self, @@ -20788,12 +18771,10 @@ class CvNative { late final _VideoCapture_OpenWithAPIPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VideoCapture, ffi.Pointer, - ffi.Int, ffi.Pointer)>>('VideoCapture_OpenWithAPI'); - late final _VideoCapture_OpenWithAPI = - _VideoCapture_OpenWithAPIPtr.asFunction< - ffi.Pointer Function(VideoCapture, ffi.Pointer, - int, ffi.Pointer)>(); + ffi.Pointer Function(VideoCapture, ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VideoCapture_OpenWithAPI'); + late final _VideoCapture_OpenWithAPI = _VideoCapture_OpenWithAPIPtr.asFunction< + ffi.Pointer Function(VideoCapture, ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VideoCapture_Read( VideoCapture self, @@ -20807,13 +18788,11 @@ class CvNative { ); } - late final _VideoCapture_ReadPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VideoCapture, Mat, ffi.Pointer)>>('VideoCapture_Read'); + late final _VideoCapture_ReadPtr = + _lookup Function(VideoCapture, Mat, ffi.Pointer)>>( + 'VideoCapture_Read'); late final _VideoCapture_Read = _VideoCapture_ReadPtr.asFunction< - ffi.Pointer Function( - VideoCapture, Mat, ffi.Pointer)>(); + ffi.Pointer Function(VideoCapture, Mat, ffi.Pointer)>(); ffi.Pointer VideoCapture_Release( VideoCapture self, @@ -20824,10 +18803,9 @@ class CvNative { } late final _VideoCapture_ReleasePtr = - _lookup Function(VideoCapture)>>( - 'VideoCapture_Release'); - late final _VideoCapture_Release = _VideoCapture_ReleasePtr.asFunction< - ffi.Pointer Function(VideoCapture)>(); + _lookup Function(VideoCapture)>>('VideoCapture_Release'); + late final _VideoCapture_Release = + _VideoCapture_ReleasePtr.asFunction Function(VideoCapture)>(); ffi.Pointer VideoCapture_Set( VideoCapture self, @@ -20841,12 +18819,11 @@ class CvNative { ); } - late final _VideoCapture_SetPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VideoCapture, ffi.Int, ffi.Double)>>('VideoCapture_Set'); - late final _VideoCapture_Set = _VideoCapture_SetPtr.asFunction< - ffi.Pointer Function(VideoCapture, int, double)>(); + late final _VideoCapture_SetPtr = + _lookup Function(VideoCapture, ffi.Int, ffi.Double)>>( + 'VideoCapture_Set'); + late final _VideoCapture_Set = + _VideoCapture_SetPtr.asFunction Function(VideoCapture, int, double)>(); void VideoWriter_Close( VideoWriterPtr self, @@ -20857,10 +18834,8 @@ class CvNative { } late final _VideoWriter_ClosePtr = - _lookup>( - 'VideoWriter_Close'); - late final _VideoWriter_Close = - _VideoWriter_ClosePtr.asFunction(); + _lookup>('VideoWriter_Close'); + late final _VideoWriter_Close = _VideoWriter_ClosePtr.asFunction(); ffi.Pointer VideoWriter_Fourcc( int c1, @@ -20880,11 +18855,10 @@ class CvNative { late final _VideoWriter_FourccPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Char, ffi.Char, ffi.Char, ffi.Char, - ffi.Pointer)>>('VideoWriter_Fourcc'); + ffi.Pointer Function( + ffi.Char, ffi.Char, ffi.Char, ffi.Char, ffi.Pointer)>>('VideoWriter_Fourcc'); late final _VideoWriter_Fourcc = _VideoWriter_FourccPtr.asFunction< - ffi.Pointer Function( - int, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(int, int, int, int, ffi.Pointer)>(); ffi.Pointer VideoWriter_IsOpened( VideoWriter self, @@ -20896,10 +18870,9 @@ class CvNative { ); } - late final _VideoWriter_IsOpenedPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VideoWriter, ffi.Pointer)>>('VideoWriter_IsOpened'); + late final _VideoWriter_IsOpenedPtr = + _lookup Function(VideoWriter, ffi.Pointer)>>( + 'VideoWriter_IsOpened'); late final _VideoWriter_IsOpened = _VideoWriter_IsOpenedPtr.asFunction< ffi.Pointer Function(VideoWriter, ffi.Pointer)>(); @@ -20911,12 +18884,11 @@ class CvNative { ); } - late final _VideoWriter_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VideoWriter_New'); - late final _VideoWriter_New = _VideoWriter_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VideoWriter_NewPtr = + _lookup Function(ffi.Pointer)>>( + 'VideoWriter_New'); + late final _VideoWriter_New = + _VideoWriter_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VideoWriter_Open( VideoWriter self, @@ -20940,17 +18912,11 @@ class CvNative { late final _VideoWriter_OpenPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VideoWriter, - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Int, - ffi.Int, - ffi.Bool)>>('VideoWriter_Open'); + ffi.Pointer Function(VideoWriter, ffi.Pointer, ffi.Pointer, + ffi.Double, ffi.Int, ffi.Int, ffi.Bool)>>('VideoWriter_Open'); late final _VideoWriter_Open = _VideoWriter_OpenPtr.asFunction< - ffi.Pointer Function(VideoWriter, ffi.Pointer, - ffi.Pointer, double, int, int, bool)>(); + ffi.Pointer Function( + VideoWriter, ffi.Pointer, ffi.Pointer, double, int, int, bool)>(); ffi.Pointer VideoWriter_Release( VideoWriter self, @@ -20961,10 +18927,9 @@ class CvNative { } late final _VideoWriter_ReleasePtr = - _lookup Function(VideoWriter)>>( - 'VideoWriter_Release'); - late final _VideoWriter_Release = _VideoWriter_ReleasePtr.asFunction< - ffi.Pointer Function(VideoWriter)>(); + _lookup Function(VideoWriter)>>('VideoWriter_Release'); + late final _VideoWriter_Release = + _VideoWriter_ReleasePtr.asFunction Function(VideoWriter)>(); ffi.Pointer VideoWriter_Write( VideoWriter self, @@ -20976,11 +18941,10 @@ class CvNative { ); } - late final _VideoWriter_WritePtr = _lookup< - ffi.NativeFunction Function(VideoWriter, Mat)>>( - 'VideoWriter_Write'); - late final _VideoWriter_Write = _VideoWriter_WritePtr.asFunction< - ffi.Pointer Function(VideoWriter, Mat)>(); + late final _VideoWriter_WritePtr = + _lookup Function(VideoWriter, Mat)>>('VideoWriter_Write'); + late final _VideoWriter_Write = + _VideoWriter_WritePtr.asFunction Function(VideoWriter, Mat)>(); ffi.Pointer WarpAffine( Mat src, @@ -20996,11 +18960,9 @@ class CvNative { ); } - late final _WarpAffinePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Size)>>('WarpAffine'); - late final _WarpAffine = _WarpAffinePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Size)>(); + late final _WarpAffinePtr = + _lookup Function(Mat, Mat, Mat, Size)>>('WarpAffine'); + late final _WarpAffine = _WarpAffinePtr.asFunction Function(Mat, Mat, Mat, Size)>(); ffi.Pointer WarpAffineWithParams( Mat src, @@ -21023,9 +18985,8 @@ class CvNative { } late final _WarpAffineWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Size, ffi.Int, ffi.Int, - Scalar)>>('WarpAffineWithParams'); + ffi.NativeFunction Function(Mat, Mat, Mat, Size, ffi.Int, ffi.Int, Scalar)>>( + 'WarpAffineWithParams'); late final _WarpAffineWithParams = _WarpAffineWithParamsPtr.asFunction< ffi.Pointer Function(Mat, Mat, Mat, Size, int, int, Scalar)>(); @@ -21043,12 +19004,10 @@ class CvNative { ); } - late final _WarpPerspectivePtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, Mat, Size)>>( - 'WarpPerspective'); - late final _WarpPerspective = _WarpPerspectivePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Size)>(); + late final _WarpPerspectivePtr = + _lookup Function(Mat, Mat, Mat, Size)>>('WarpPerspective'); + late final _WarpPerspective = + _WarpPerspectivePtr.asFunction Function(Mat, Mat, Mat, Size)>(); ffi.Pointer WarpPerspectiveWithParams( Mat src, @@ -21071,13 +19030,10 @@ class CvNative { } late final _WarpPerspectiveWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Size, ffi.Int, ffi.Int, - Scalar)>>('WarpPerspectiveWithParams'); - late final _WarpPerspectiveWithParams = - _WarpPerspectiveWithParamsPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Size, int, int, Scalar)>(); + ffi.NativeFunction Function(Mat, Mat, Mat, Size, ffi.Int, ffi.Int, Scalar)>>( + 'WarpPerspectiveWithParams'); + late final _WarpPerspectiveWithParams = _WarpPerspectiveWithParamsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Size, int, int, Scalar)>(); ffi.Pointer Watershed( Mat image, @@ -21090,10 +19046,8 @@ class CvNative { } late final _WatershedPtr = - _lookup Function(Mat, Mat)>>( - 'Watershed'); - late final _Watershed = - _WatershedPtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('Watershed'); + late final _Watershed = _WatershedPtr.asFunction Function(Mat, Mat)>(); void WeChatQRCode_Close( WeChatQRCodePtr self, @@ -21104,10 +19058,8 @@ class CvNative { } late final _WeChatQRCode_ClosePtr = - _lookup>( - 'WeChatQRCode_Close'); - late final _WeChatQRCode_Close = - _WeChatQRCode_ClosePtr.asFunction(); + _lookup>('WeChatQRCode_Close'); + late final _WeChatQRCode_Close = _WeChatQRCode_ClosePtr.asFunction(); ffi.Pointer WeChatQRCode_DetectAndDecode( ffi.Pointer self, @@ -21125,15 +19077,11 @@ class CvNative { late final _WeChatQRCode_DetectAndDecodePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - Mat, - ffi.Pointer, + ffi.Pointer Function(ffi.Pointer, Mat, ffi.Pointer, ffi.Pointer)>>('WeChatQRCode_DetectAndDecode'); - late final _WeChatQRCode_DetectAndDecode = - _WeChatQRCode_DetectAndDecodePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, Mat, - ffi.Pointer, ffi.Pointer)>(); + late final _WeChatQRCode_DetectAndDecode = _WeChatQRCode_DetectAndDecodePtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, Mat, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer WeChatQRCode_GetScaleFactor( ffi.Pointer self, @@ -21146,13 +19094,11 @@ class CvNative { } late final _WeChatQRCode_GetScaleFactorPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer)>>('WeChatQRCode_GetScaleFactor'); - late final _WeChatQRCode_GetScaleFactor = - _WeChatQRCode_GetScaleFactorPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi + .NativeFunction Function(ffi.Pointer, ffi.Pointer)>>( + 'WeChatQRCode_GetScaleFactor'); + late final _WeChatQRCode_GetScaleFactor = _WeChatQRCode_GetScaleFactorPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); ffi.Pointer WeChatQRCode_New( ffi.Pointer qrcode, @@ -21162,12 +19108,11 @@ class CvNative { ); } - late final _WeChatQRCode_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('WeChatQRCode_New'); - late final _WeChatQRCode_New = _WeChatQRCode_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _WeChatQRCode_NewPtr = + _lookup Function(ffi.Pointer)>>( + 'WeChatQRCode_New'); + late final _WeChatQRCode_New = + _WeChatQRCode_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer WeChatQRCode_NewWithParams( ffi.Pointer detector_prototxt_path, @@ -21187,20 +19132,11 @@ class CvNative { late final _WeChatQRCode_NewWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('WeChatQRCode_NewWithParams'); - late final _WeChatQRCode_NewWithParams = - _WeChatQRCode_NewWithParamsPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('WeChatQRCode_NewWithParams'); + late final _WeChatQRCode_NewWithParams = _WeChatQRCode_NewWithParamsPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer WeChatQRCode_SetScaleFactor( ffi.Pointer self, @@ -21212,13 +19148,11 @@ class CvNative { ); } - late final _WeChatQRCode_SetScaleFactorPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Float)>>('WeChatQRCode_SetScaleFactor'); - late final _WeChatQRCode_SetScaleFactor = - _WeChatQRCode_SetScaleFactorPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, double)>(); + late final _WeChatQRCode_SetScaleFactorPtr = + _lookup Function(ffi.Pointer, ffi.Float)>>( + 'WeChatQRCode_SetScaleFactor'); + late final _WeChatQRCode_SetScaleFactor = _WeChatQRCode_SetScaleFactorPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, double)>(); void Window_Close( ffi.Pointer winname, @@ -21229,10 +19163,8 @@ class CvNative { } late final _Window_ClosePtr = - _lookup)>>( - 'Window_Close'); - late final _Window_Close = - _Window_ClosePtr.asFunction)>(); + _lookup)>>('Window_Close'); + late final _Window_Close = _Window_ClosePtr.asFunction)>(); ffi.Pointer Window_GetProperty( ffi.Pointer winname, @@ -21248,11 +19180,10 @@ class CvNative { late final _Window_GetPropertyPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('Window_GetProperty'); + ffi.Pointer Function( + ffi.Pointer, ffi.Int, ffi.Pointer)>>('Window_GetProperty'); late final _Window_GetProperty = _Window_GetPropertyPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer Window_IMShow( ffi.Pointer winname, @@ -21264,12 +19195,11 @@ class CvNative { ); } - late final _Window_IMShowPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, Mat)>>('Window_IMShow'); - late final _Window_IMShow = _Window_IMShowPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, Mat)>(); + late final _Window_IMShowPtr = + _lookup Function(ffi.Pointer, Mat)>>( + 'Window_IMShow'); + late final _Window_IMShow = + _Window_IMShowPtr.asFunction Function(ffi.Pointer, Mat)>(); ffi.Pointer Window_Move( ffi.Pointer winname, @@ -21283,12 +19213,11 @@ class CvNative { ); } - late final _Window_MovePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Int)>>('Window_Move'); - late final _Window_Move = _Window_MovePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, int)>(); + late final _Window_MovePtr = + _lookup Function(ffi.Pointer, ffi.Int, ffi.Int)>>( + 'Window_Move'); + late final _Window_Move = + _Window_MovePtr.asFunction Function(ffi.Pointer, int, int)>(); ffi.Pointer Window_New( ffi.Pointer winname, @@ -21300,12 +19229,11 @@ class CvNative { ); } - late final _Window_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int)>>('Window_New'); - late final _Window_New = _Window_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int)>(); + late final _Window_NewPtr = + _lookup Function(ffi.Pointer, ffi.Int)>>( + 'Window_New'); + late final _Window_New = + _Window_NewPtr.asFunction Function(ffi.Pointer, int)>(); ffi.Pointer Window_Resize( ffi.Pointer winname, @@ -21319,12 +19247,11 @@ class CvNative { ); } - late final _Window_ResizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Int)>>('Window_Resize'); - late final _Window_Resize = _Window_ResizePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, int)>(); + late final _Window_ResizePtr = + _lookup Function(ffi.Pointer, ffi.Int, ffi.Int)>>( + 'Window_Resize'); + late final _Window_Resize = + _Window_ResizePtr.asFunction Function(ffi.Pointer, int, int)>(); ffi.Pointer Window_SelectROI( ffi.Pointer winname, @@ -21339,12 +19266,10 @@ class CvNative { } late final _Window_SelectROIPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, Mat, - ffi.Pointer)>>('Window_SelectROI'); + ffi.NativeFunction Function(ffi.Pointer, Mat, ffi.Pointer)>>( + 'Window_SelectROI'); late final _Window_SelectROI = _Window_SelectROIPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, Mat, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, Mat, ffi.Pointer)>(); ffi.Pointer Window_SelectROIs( ffi.Pointer winname, @@ -21359,12 +19284,11 @@ class CvNative { } late final _Window_SelectROIsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, Mat, - ffi.Pointer)>>('Window_SelectROIs'); + ffi + .NativeFunction Function(ffi.Pointer, Mat, ffi.Pointer)>>( + 'Window_SelectROIs'); late final _Window_SelectROIs = _Window_SelectROIsPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, Mat, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, Mat, ffi.Pointer)>(); ffi.Pointer Window_SetProperty( ffi.Pointer winname, @@ -21378,12 +19302,11 @@ class CvNative { ); } - late final _Window_SetPropertyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Double)>>('Window_SetProperty'); - late final _Window_SetProperty = _Window_SetPropertyPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, double)>(); + late final _Window_SetPropertyPtr = + _lookup Function(ffi.Pointer, ffi.Int, ffi.Double)>>( + 'Window_SetProperty'); + late final _Window_SetProperty = + _Window_SetPropertyPtr.asFunction Function(ffi.Pointer, int, double)>(); ffi.Pointer Window_SetTitle( ffi.Pointer winname, @@ -21396,12 +19319,10 @@ class CvNative { } late final _Window_SetTitlePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer)>>('Window_SetTitle'); + ffi.NativeFunction Function(ffi.Pointer, ffi.Pointer)>>( + 'Window_SetTitle'); late final _Window_SetTitle = _Window_SetTitlePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Window_WaitKey( int delay, @@ -21413,12 +19334,11 @@ class CvNative { ); } - late final _Window_WaitKeyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, ffi.Pointer)>>('Window_WaitKey'); - late final _Window_WaitKey = _Window_WaitKeyPtr.asFunction< - ffi.Pointer Function(int, ffi.Pointer)>(); + late final _Window_WaitKeyPtr = + _lookup Function(ffi.Int, ffi.Pointer)>>( + 'Window_WaitKey'); + late final _Window_WaitKey = + _Window_WaitKeyPtr.asFunction Function(int, ffi.Pointer)>(); ffi.Pointer Zeros( int rows, @@ -21435,11 +19355,9 @@ class CvNative { } late final _ZerosPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Zeros'); - late final _Zeros = _ZerosPtr.asFunction< - ffi.Pointer Function(int, int, int, ffi.Pointer)>(); + ffi + .NativeFunction Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Zeros'); + late final _Zeros = _ZerosPtr.asFunction Function(int, int, int, ffi.Pointer)>(); ffi.Pointer averageHashCompare( Mat a, @@ -21453,12 +19371,11 @@ class CvNative { ); } - late final _averageHashComparePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Pointer)>>('averageHashCompare'); - late final _averageHashCompare = _averageHashComparePtr.asFunction< - ffi.Pointer Function(Mat, Mat, ffi.Pointer)>(); + late final _averageHashComparePtr = + _lookup Function(Mat, Mat, ffi.Pointer)>>( + 'averageHashCompare'); + late final _averageHashCompare = + _averageHashComparePtr.asFunction Function(Mat, Mat, ffi.Pointer)>(); ffi.Pointer averageHashCompute( Mat inputArr, @@ -21471,10 +19388,9 @@ class CvNative { } late final _averageHashComputePtr = - _lookup Function(Mat, Mat)>>( - 'averageHashCompute'); - late final _averageHashCompute = _averageHashComputePtr - .asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('averageHashCompute'); + late final _averageHashCompute = + _averageHashComputePtr.asFunction Function(Mat, Mat)>(); ffi.Pointer blockMeanHashCompare( Mat a, @@ -21490,12 +19406,11 @@ class CvNative { ); } - late final _blockMeanHashComparePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, - ffi.Pointer)>>('blockMeanHashCompare'); - late final _blockMeanHashCompare = _blockMeanHashComparePtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, ffi.Pointer)>(); + late final _blockMeanHashComparePtr = + _lookup Function(Mat, Mat, ffi.Int, ffi.Pointer)>>( + 'blockMeanHashCompare'); + late final _blockMeanHashCompare = _blockMeanHashComparePtr + .asFunction Function(Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer blockMeanHashCompute( Mat inputArr, @@ -21509,12 +19424,10 @@ class CvNative { ); } - late final _blockMeanHashComputePtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, ffi.Int)>>( - 'blockMeanHashCompute'); - late final _blockMeanHashCompute = _blockMeanHashComputePtr - .asFunction Function(Mat, Mat, int)>(); + late final _blockMeanHashComputePtr = + _lookup Function(Mat, Mat, ffi.Int)>>('blockMeanHashCompute'); + late final _blockMeanHashCompute = + _blockMeanHashComputePtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer calibrateCamera_Async( VecVecPoint3f objectPoints, @@ -21540,18 +19453,11 @@ class CvNative { late final _calibrateCamera_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecVecPoint3f, - VecVecPoint2f, - Size, - Mat, - Mat, - ffi.Int, - TermCriteria, + ffi.Pointer Function(VecVecPoint3f, VecVecPoint2f, Size, Mat, Mat, ffi.Int, TermCriteria, CvCallback_5)>>('calibrateCamera_Async'); late final _calibrateCamera_Async = _calibrateCamera_AsyncPtr.asFunction< - ffi.Pointer Function(VecVecPoint3f, VecVecPoint2f, Size, Mat, - Mat, int, TermCriteria, CvCallback_5)>(); + ffi.Pointer Function( + VecVecPoint3f, VecVecPoint2f, Size, Mat, Mat, int, TermCriteria, CvCallback_5)>(); ffi.Pointer colorMomentHashCompare( Mat a, @@ -21565,12 +19471,11 @@ class CvNative { ); } - late final _colorMomentHashComparePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Pointer)>>('colorMomentHashCompare'); - late final _colorMomentHashCompare = _colorMomentHashComparePtr.asFunction< - ffi.Pointer Function(Mat, Mat, ffi.Pointer)>(); + late final _colorMomentHashComparePtr = + _lookup Function(Mat, Mat, ffi.Pointer)>>( + 'colorMomentHashCompare'); + late final _colorMomentHashCompare = _colorMomentHashComparePtr + .asFunction Function(Mat, Mat, ffi.Pointer)>(); ffi.Pointer colorMomentHashCompute( Mat inputArr, @@ -21583,20 +19488,17 @@ class CvNative { } late final _colorMomentHashComputePtr = - _lookup Function(Mat, Mat)>>( - 'colorMomentHashCompute'); - late final _colorMomentHashCompute = _colorMomentHashComputePtr - .asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('colorMomentHashCompute'); + late final _colorMomentHashCompute = + _colorMomentHashComputePtr.asFunction Function(Mat, Mat)>(); ffi.Pointer destroyAllWindows() { return _destroyAllWindows(); } late final _destroyAllWindowsPtr = - _lookup Function()>>( - 'destroyAllWindows'); - late final _destroyAllWindows = - _destroyAllWindowsPtr.asFunction Function()>(); + _lookup Function()>>('destroyAllWindows'); + late final _destroyAllWindows = _destroyAllWindowsPtr.asFunction Function()>(); ffi.Pointer drawChessboardCorners_Async( Mat image, @@ -21612,13 +19514,11 @@ class CvNative { ); } - late final _drawChessboardCorners_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Size, ffi.Bool, - CvCallback_0)>>('drawChessboardCorners_Async'); - late final _drawChessboardCorners_Async = - _drawChessboardCorners_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, Size, bool, CvCallback_0)>(); + late final _drawChessboardCorners_AsyncPtr = + _lookup Function(Mat, Size, ffi.Bool, CvCallback_0)>>( + 'drawChessboardCorners_Async'); + late final _drawChessboardCorners_Async = _drawChessboardCorners_AsyncPtr + .asFunction Function(Mat, Size, bool, CvCallback_0)>(); ffi.Pointer estimateAffine2DWithParams_Async( VecPoint2f from, @@ -21644,19 +19544,10 @@ class CvNative { late final _estimateAffine2DWithParams_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecPoint2f, - VecPoint2f, - ffi.Int, - ffi.Double, - ffi.Size, - ffi.Double, - ffi.Size, - CvCallback_2)>>('estimateAffine2DWithParams_Async'); - late final _estimateAffine2DWithParams_Async = - _estimateAffine2DWithParams_AsyncPtr.asFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, int, double, - int, double, int, CvCallback_2)>(); + ffi.Pointer Function(VecPoint2f, VecPoint2f, ffi.Int, ffi.Double, ffi.Size, ffi.Double, + ffi.Size, CvCallback_2)>>('estimateAffine2DWithParams_Async'); + late final _estimateAffine2DWithParams_Async = _estimateAffine2DWithParams_AsyncPtr.asFunction< + ffi.Pointer Function(VecPoint2f, VecPoint2f, int, double, int, double, int, CvCallback_2)>(); ffi.Pointer estimateAffine2D_Async( VecPoint2f from, @@ -21670,12 +19561,11 @@ class CvNative { ); } - late final _estimateAffine2D_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint2f, VecPoint2f, CvCallback_1)>>('estimateAffine2D_Async'); - late final _estimateAffine2D_Async = _estimateAffine2D_AsyncPtr.asFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, CvCallback_1)>(); + late final _estimateAffine2D_AsyncPtr = + _lookup Function(VecPoint2f, VecPoint2f, CvCallback_1)>>( + 'estimateAffine2D_Async'); + late final _estimateAffine2D_Async = _estimateAffine2D_AsyncPtr + .asFunction Function(VecPoint2f, VecPoint2f, CvCallback_1)>(); ffi.Pointer estimateAffinePartial2DWithParams_Async( VecPoint2f from, @@ -21701,19 +19591,12 @@ class CvNative { late final _estimateAffinePartial2DWithParams_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecPoint2f, - VecPoint2f, - ffi.Int, - ffi.Double, - ffi.Size, - ffi.Double, - ffi.Size, - CvCallback_2)>>('estimateAffinePartial2DWithParams_Async'); + ffi.Pointer Function(VecPoint2f, VecPoint2f, ffi.Int, ffi.Double, ffi.Size, ffi.Double, + ffi.Size, CvCallback_2)>>('estimateAffinePartial2DWithParams_Async'); late final _estimateAffinePartial2DWithParams_Async = _estimateAffinePartial2DWithParams_AsyncPtr.asFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, int, double, - int, double, int, CvCallback_2)>(); + ffi.Pointer Function( + VecPoint2f, VecPoint2f, int, double, int, double, int, CvCallback_2)>(); ffi.Pointer estimateAffinePartial2D_Async( VecPoint2f from, @@ -21727,14 +19610,11 @@ class CvNative { ); } - late final _estimateAffinePartial2D_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, - CvCallback_1)>>('estimateAffinePartial2D_Async'); - late final _estimateAffinePartial2D_Async = - _estimateAffinePartial2D_AsyncPtr.asFunction< - ffi.Pointer Function( - VecPoint2f, VecPoint2f, CvCallback_1)>(); + late final _estimateAffinePartial2D_AsyncPtr = + _lookup Function(VecPoint2f, VecPoint2f, CvCallback_1)>>( + 'estimateAffinePartial2D_Async'); + late final _estimateAffinePartial2D_Async = _estimateAffinePartial2D_AsyncPtr + .asFunction Function(VecPoint2f, VecPoint2f, CvCallback_1)>(); ffi.Pointer findChessboardCornersSBWithMeta_Async( Mat image, @@ -21750,13 +19630,11 @@ class CvNative { ); } - late final _findChessboardCornersSBWithMeta_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Size, ffi.Int, - CvCallback_3)>>('findChessboardCornersSBWithMeta_Async'); - late final _findChessboardCornersSBWithMeta_Async = - _findChessboardCornersSBWithMeta_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, Size, int, CvCallback_3)>(); + late final _findChessboardCornersSBWithMeta_AsyncPtr = + _lookup Function(Mat, Size, ffi.Int, CvCallback_3)>>( + 'findChessboardCornersSBWithMeta_Async'); + late final _findChessboardCornersSBWithMeta_Async = _findChessboardCornersSBWithMeta_AsyncPtr + .asFunction Function(Mat, Size, int, CvCallback_3)>(); ffi.Pointer findChessboardCornersSB_Async( Mat image, @@ -21772,13 +19650,11 @@ class CvNative { ); } - late final _findChessboardCornersSB_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Size, ffi.Int, - CvCallback_2)>>('findChessboardCornersSB_Async'); - late final _findChessboardCornersSB_Async = - _findChessboardCornersSB_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, Size, int, CvCallback_2)>(); + late final _findChessboardCornersSB_AsyncPtr = + _lookup Function(Mat, Size, ffi.Int, CvCallback_2)>>( + 'findChessboardCornersSB_Async'); + late final _findChessboardCornersSB_Async = _findChessboardCornersSB_AsyncPtr + .asFunction Function(Mat, Size, int, CvCallback_2)>(); ffi.Pointer findChessboardCorners_Async( Mat image, @@ -21794,16 +19670,13 @@ class CvNative { ); } - late final _findChessboardCorners_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Size, ffi.Int, - CvCallback_2)>>('findChessboardCorners_Async'); - late final _findChessboardCorners_Async = - _findChessboardCorners_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, Size, int, CvCallback_2)>(); + late final _findChessboardCorners_AsyncPtr = + _lookup Function(Mat, Size, ffi.Int, CvCallback_2)>>( + 'findChessboardCorners_Async'); + late final _findChessboardCorners_Async = _findChessboardCorners_AsyncPtr + .asFunction Function(Mat, Size, int, CvCallback_2)>(); - ffi.Pointer - fisheye_estimateNewCameraMatrixForUndistortRectify_Async( + ffi.Pointer fisheye_estimateNewCameraMatrixForUndistortRectify_Async( Mat k, Mat d, Size imgSize, @@ -21825,16 +19698,13 @@ class CvNative { ); } - late final _fisheye_estimateNewCameraMatrixForUndistortRectify_AsyncPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Size, Mat, - ffi.Double, Size, ffi.Double, CvCallback_1)>>( - 'fisheye_estimateNewCameraMatrixForUndistortRectify_Async'); + late final _fisheye_estimateNewCameraMatrixForUndistortRectify_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Size, Mat, ffi.Double, Size, ffi.Double, + CvCallback_1)>>('fisheye_estimateNewCameraMatrixForUndistortRectify_Async'); late final _fisheye_estimateNewCameraMatrixForUndistortRectify_Async = _fisheye_estimateNewCameraMatrixForUndistortRectify_AsyncPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Size, Mat, double, Size, double, CvCallback_1)>(); + ffi.Pointer Function(Mat, Mat, Size, Mat, double, Size, double, CvCallback_1)>(); ffi.Pointer fisheye_undistortImageWithParams_Async( Mat distorted, @@ -21854,14 +19724,11 @@ class CvNative { ); } - late final _fisheye_undistortImageWithParams_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, Size, - CvCallback_1)>>('fisheye_undistortImageWithParams_Async'); - late final _fisheye_undistortImageWithParams_Async = - _fisheye_undistortImageWithParams_AsyncPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, Size, CvCallback_1)>(); + late final _fisheye_undistortImageWithParams_AsyncPtr = + _lookup Function(Mat, Mat, Mat, Mat, Size, CvCallback_1)>>( + 'fisheye_undistortImageWithParams_Async'); + late final _fisheye_undistortImageWithParams_Async = _fisheye_undistortImageWithParams_AsyncPtr + .asFunction Function(Mat, Mat, Mat, Mat, Size, CvCallback_1)>(); ffi.Pointer fisheye_undistortImage_Async( Mat distorted, @@ -21877,13 +19744,11 @@ class CvNative { ); } - late final _fisheye_undistortImage_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, CvCallback_1)>>('fisheye_undistortImage_Async'); - late final _fisheye_undistortImage_Async = - _fisheye_undistortImage_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, CvCallback_1)>(); + late final _fisheye_undistortImage_AsyncPtr = + _lookup Function(Mat, Mat, Mat, CvCallback_1)>>( + 'fisheye_undistortImage_Async'); + late final _fisheye_undistortImage_Async = _fisheye_undistortImage_AsyncPtr + .asFunction Function(Mat, Mat, Mat, CvCallback_1)>(); ffi.Pointer fisheye_undistortPoints_Async( Mat distorted, @@ -21903,14 +19768,11 @@ class CvNative { ); } - late final _fisheye_undistortPoints_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, - CvCallback_1)>>('fisheye_undistortPoints_Async'); - late final _fisheye_undistortPoints_Async = - _fisheye_undistortPoints_AsyncPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, Mat, CvCallback_1)>(); + late final _fisheye_undistortPoints_AsyncPtr = + _lookup Function(Mat, Mat, Mat, Mat, Mat, CvCallback_1)>>( + 'fisheye_undistortPoints_Async'); + late final _fisheye_undistortPoints_Async = _fisheye_undistortPoints_AsyncPtr + .asFunction Function(Mat, Mat, Mat, Mat, Mat, CvCallback_1)>(); ffi.Pointer gapi_BGR2Gray( GMat src, @@ -21922,12 +19784,10 @@ class CvNative { ); } - late final _gapi_BGR2GrayPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_BGR2Gray'); - late final _gapi_BGR2Gray = _gapi_BGR2GrayPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_BGR2GrayPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_BGR2Gray'); + late final _gapi_BGR2Gray = + _gapi_BGR2GrayPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_BGR2I420( GMat src, @@ -21939,12 +19799,10 @@ class CvNative { ); } - late final _gapi_BGR2I420Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_BGR2I420'); - late final _gapi_BGR2I420 = _gapi_BGR2I420Ptr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_BGR2I420Ptr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_BGR2I420'); + late final _gapi_BGR2I420 = + _gapi_BGR2I420Ptr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_BGR2LUV( GMat src, @@ -21956,12 +19814,10 @@ class CvNative { ); } - late final _gapi_BGR2LUVPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_BGR2LUV'); - late final _gapi_BGR2LUV = _gapi_BGR2LUVPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_BGR2LUVPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_BGR2LUV'); + late final _gapi_BGR2LUV = + _gapi_BGR2LUVPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_BGR2RGB( GMat src, @@ -21973,12 +19829,10 @@ class CvNative { ); } - late final _gapi_BGR2RGBPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_BGR2RGB'); - late final _gapi_BGR2RGB = _gapi_BGR2RGBPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_BGR2RGBPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_BGR2RGB'); + late final _gapi_BGR2RGB = + _gapi_BGR2RGBPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_BGR2YUV( GMat src, @@ -21990,12 +19844,10 @@ class CvNative { ); } - late final _gapi_BGR2YUVPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_BGR2YUV'); - late final _gapi_BGR2YUV = _gapi_BGR2YUVPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_BGR2YUVPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_BGR2YUV'); + late final _gapi_BGR2YUV = + _gapi_BGR2YUVPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_BayerGR2RGB( GMat src_gr, @@ -22007,12 +19859,11 @@ class CvNative { ); } - late final _gapi_BayerGR2RGBPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_BayerGR2RGB'); - late final _gapi_BayerGR2RGB = _gapi_BayerGR2RGBPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_BayerGR2RGBPtr = + _lookup Function(GMat, ffi.Pointer)>>( + 'gapi_BayerGR2RGB'); + late final _gapi_BayerGR2RGB = + _gapi_BayerGR2RGBPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_Canny( GMat image, @@ -22034,11 +19885,10 @@ class CvNative { late final _gapi_CannyPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Double, ffi.Double, ffi.Int, - ffi.Bool, ffi.Pointer)>>('gapi_Canny'); - late final _gapi_Canny = _gapi_CannyPtr.asFunction< - ffi.Pointer Function( - GMat, double, double, int, bool, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, ffi.Double, ffi.Double, ffi.Int, ffi.Bool, ffi.Pointer)>>('gapi_Canny'); + late final _gapi_Canny = _gapi_CannyPtr + .asFunction Function(GMat, double, double, int, bool, ffi.Pointer)>(); void gapi_GComputation_Close( GComputationPtr self, @@ -22049,8 +19899,7 @@ class CvNative { } late final _gapi_GComputation_ClosePtr = - _lookup>( - 'gapi_GComputation_Close'); + _lookup>('gapi_GComputation_Close'); late final _gapi_GComputation_Close = _gapi_GComputation_ClosePtr.asFunction(); @@ -22066,12 +19915,11 @@ class CvNative { ); } - late final _gapi_GComputation_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Pointer)>>('gapi_GComputation_New'); - late final _gapi_GComputation_New = _gapi_GComputation_NewPtr.asFunction< - ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_GComputation_NewPtr = + _lookup Function(GMat, GMat, ffi.Pointer)>>( + 'gapi_GComputation_New'); + late final _gapi_GComputation_New = _gapi_GComputation_NewPtr + .asFunction Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_GComputation_New_1( GMat in1, @@ -22085,13 +19933,11 @@ class CvNative { ); } - late final _gapi_GComputation_New_1Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(GMat, GScalar, - ffi.Pointer)>>('gapi_GComputation_New_1'); - late final _gapi_GComputation_New_1 = _gapi_GComputation_New_1Ptr.asFunction< - ffi.Pointer Function( - GMat, GScalar, ffi.Pointer)>(); + late final _gapi_GComputation_New_1Ptr = + _lookup Function(GMat, GScalar, ffi.Pointer)>>( + 'gapi_GComputation_New_1'); + late final _gapi_GComputation_New_1 = _gapi_GComputation_New_1Ptr + .asFunction Function(GMat, GScalar, ffi.Pointer)>(); ffi.Pointer gapi_GComputation_New_2( GMat in1, @@ -22108,12 +19954,10 @@ class CvNative { } late final _gapi_GComputation_New_2Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(GMat, GMat, GMat, - ffi.Pointer)>>('gapi_GComputation_New_2'); - late final _gapi_GComputation_New_2 = _gapi_GComputation_New_2Ptr.asFunction< - ffi.Pointer Function( - GMat, GMat, GMat, ffi.Pointer)>(); + ffi.NativeFunction Function(GMat, GMat, GMat, ffi.Pointer)>>( + 'gapi_GComputation_New_2'); + late final _gapi_GComputation_New_2 = _gapi_GComputation_New_2Ptr + .asFunction Function(GMat, GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_GComputation_New_3( GMat in1, @@ -22130,12 +19974,10 @@ class CvNative { } late final _gapi_GComputation_New_3Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(GMat, GMat, GScalar, - ffi.Pointer)>>('gapi_GComputation_New_3'); - late final _gapi_GComputation_New_3 = _gapi_GComputation_New_3Ptr.asFunction< - ffi.Pointer Function( - GMat, GMat, GScalar, ffi.Pointer)>(); + ffi.NativeFunction Function(GMat, GMat, GScalar, ffi.Pointer)>>( + 'gapi_GComputation_New_3'); + late final _gapi_GComputation_New_3 = _gapi_GComputation_New_3Ptr + .asFunction Function(GMat, GMat, GScalar, ffi.Pointer)>(); ffi.Pointer gapi_GComputation_apply( GComputation self, @@ -22149,12 +19991,11 @@ class CvNative { ); } - late final _gapi_GComputation_applyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GComputation, Mat, CvCallback_1)>>('gapi_GComputation_apply'); - late final _gapi_GComputation_apply = _gapi_GComputation_applyPtr.asFunction< - ffi.Pointer Function(GComputation, Mat, CvCallback_1)>(); + late final _gapi_GComputation_applyPtr = + _lookup Function(GComputation, Mat, CvCallback_1)>>( + 'gapi_GComputation_apply'); + late final _gapi_GComputation_apply = _gapi_GComputation_applyPtr + .asFunction Function(GComputation, Mat, CvCallback_1)>(); ffi.Pointer gapi_GComputation_apply_1( GComputation self, @@ -22168,14 +20009,11 @@ class CvNative { ); } - late final _gapi_GComputation_apply_1Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(GComputation, Mat, - ffi.Pointer)>>('gapi_GComputation_apply_1'); - late final _gapi_GComputation_apply_1 = - _gapi_GComputation_apply_1Ptr.asFunction< - ffi.Pointer Function( - GComputation, Mat, ffi.Pointer)>(); + late final _gapi_GComputation_apply_1Ptr = + _lookup Function(GComputation, Mat, ffi.Pointer)>>( + 'gapi_GComputation_apply_1'); + late final _gapi_GComputation_apply_1 = _gapi_GComputation_apply_1Ptr + .asFunction Function(GComputation, Mat, ffi.Pointer)>(); ffi.Pointer gapi_GComputation_apply_2( GComputation self, @@ -22191,14 +20029,11 @@ class CvNative { ); } - late final _gapi_GComputation_apply_2Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(GComputation, Mat, Mat, - ffi.Pointer)>>('gapi_GComputation_apply_2'); - late final _gapi_GComputation_apply_2 = - _gapi_GComputation_apply_2Ptr.asFunction< - ffi.Pointer Function( - GComputation, Mat, Mat, ffi.Pointer)>(); + late final _gapi_GComputation_apply_2Ptr = + _lookup Function(GComputation, Mat, Mat, ffi.Pointer)>>( + 'gapi_GComputation_apply_2'); + late final _gapi_GComputation_apply_2 = _gapi_GComputation_apply_2Ptr + .asFunction Function(GComputation, Mat, Mat, ffi.Pointer)>(); ffi.Pointer gapi_GComputation_apply_3( GComputation self, @@ -22215,13 +20050,10 @@ class CvNative { } late final _gapi_GComputation_apply_3Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(GComputation, Mat, Mat, - ffi.Pointer)>>('gapi_GComputation_apply_3'); - late final _gapi_GComputation_apply_3 = - _gapi_GComputation_apply_3Ptr.asFunction< - ffi.Pointer Function( - GComputation, Mat, Mat, ffi.Pointer)>(); + ffi.NativeFunction Function(GComputation, Mat, Mat, ffi.Pointer)>>( + 'gapi_GComputation_apply_3'); + late final _gapi_GComputation_apply_3 = _gapi_GComputation_apply_3Ptr + .asFunction Function(GComputation, Mat, Mat, ffi.Pointer)>(); void gapi_GMat_Close( GMatPtr mat, @@ -22231,11 +20063,8 @@ class CvNative { ); } - late final _gapi_GMat_ClosePtr = - _lookup>( - 'gapi_GMat_Close'); - late final _gapi_GMat_Close = - _gapi_GMat_ClosePtr.asFunction(); + late final _gapi_GMat_ClosePtr = _lookup>('gapi_GMat_Close'); + late final _gapi_GMat_Close = _gapi_GMat_ClosePtr.asFunction(); ffi.Pointer gapi_GMat_New_Empty( ffi.Pointer rval, @@ -22245,12 +20074,10 @@ class CvNative { ); } - late final _gapi_GMat_New_EmptyPtr = _lookup< - ffi - .NativeFunction Function(ffi.Pointer)>>( - 'gapi_GMat_New_Empty'); - late final _gapi_GMat_New_Empty = _gapi_GMat_New_EmptyPtr - .asFunction Function(ffi.Pointer)>(); + late final _gapi_GMat_New_EmptyPtr = + _lookup Function(ffi.Pointer)>>('gapi_GMat_New_Empty'); + late final _gapi_GMat_New_Empty = + _gapi_GMat_New_EmptyPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer gapi_GMat_New_FromMat( Mat mat, @@ -22262,12 +20089,11 @@ class CvNative { ); } - late final _gapi_GMat_New_FromMatPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('gapi_GMat_New_FromMat'); - late final _gapi_GMat_New_FromMat = _gapi_GMat_New_FromMatPtr - .asFunction Function(Mat, ffi.Pointer)>(); + late final _gapi_GMat_New_FromMatPtr = + _lookup Function(Mat, ffi.Pointer)>>( + 'gapi_GMat_New_FromMat'); + late final _gapi_GMat_New_FromMat = + _gapi_GMat_New_FromMatPtr.asFunction Function(Mat, ffi.Pointer)>(); void gapi_GScalar_Close( GScalarPtr scalar, @@ -22278,10 +20104,8 @@ class CvNative { } late final _gapi_GScalar_ClosePtr = - _lookup>( - 'gapi_GScalar_Close'); - late final _gapi_GScalar_Close = - _gapi_GScalar_ClosePtr.asFunction(); + _lookup>('gapi_GScalar_Close'); + late final _gapi_GScalar_Close = _gapi_GScalar_ClosePtr.asFunction(); ffi.Pointer gapi_GScalar_New_Empty( ffi.Pointer rval, @@ -22291,12 +20115,11 @@ class CvNative { ); } - late final _gapi_GScalar_New_EmptyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('gapi_GScalar_New_Empty'); - late final _gapi_GScalar_New_Empty = _gapi_GScalar_New_EmptyPtr - .asFunction Function(ffi.Pointer)>(); + late final _gapi_GScalar_New_EmptyPtr = + _lookup Function(ffi.Pointer)>>( + 'gapi_GScalar_New_Empty'); + late final _gapi_GScalar_New_Empty = + _gapi_GScalar_New_EmptyPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer gapi_GScalar_New_FromDouble( double v0, @@ -22308,13 +20131,11 @@ class CvNative { ); } - late final _gapi_GScalar_New_FromDoublePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Double, - ffi.Pointer)>>('gapi_GScalar_New_FromDouble'); - late final _gapi_GScalar_New_FromDouble = - _gapi_GScalar_New_FromDoublePtr.asFunction< - ffi.Pointer Function(double, ffi.Pointer)>(); + late final _gapi_GScalar_New_FromDoublePtr = + _lookup Function(ffi.Double, ffi.Pointer)>>( + 'gapi_GScalar_New_FromDouble'); + late final _gapi_GScalar_New_FromDouble = _gapi_GScalar_New_FromDoublePtr + .asFunction Function(double, ffi.Pointer)>(); ffi.Pointer gapi_GScalar_New_FromScalar( Scalar scalar, @@ -22326,13 +20147,11 @@ class CvNative { ); } - late final _gapi_GScalar_New_FromScalarPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Scalar, ffi.Pointer)>>('gapi_GScalar_New_FromScalar'); - late final _gapi_GScalar_New_FromScalar = - _gapi_GScalar_New_FromScalarPtr.asFunction< - ffi.Pointer Function(Scalar, ffi.Pointer)>(); + late final _gapi_GScalar_New_FromScalarPtr = + _lookup Function(Scalar, ffi.Pointer)>>( + 'gapi_GScalar_New_FromScalar'); + late final _gapi_GScalar_New_FromScalar = _gapi_GScalar_New_FromScalarPtr + .asFunction Function(Scalar, ffi.Pointer)>(); ffi.Pointer gapi_I4202BGR( GMat src, @@ -22344,12 +20163,10 @@ class CvNative { ); } - late final _gapi_I4202BGRPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_I4202BGR'); - late final _gapi_I4202BGR = _gapi_I4202BGRPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_I4202BGRPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_I4202BGR'); + late final _gapi_I4202BGR = + _gapi_I4202BGRPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_I4202RGB( GMat src, @@ -22361,12 +20178,10 @@ class CvNative { ); } - late final _gapi_I4202RGBPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_I4202RGB'); - late final _gapi_I4202RGB = _gapi_I4202RGBPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_I4202RGBPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_I4202RGB'); + late final _gapi_I4202RGB = + _gapi_I4202RGBPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_LUT( GMat src, @@ -22380,12 +20195,10 @@ class CvNative { ); } - late final _gapi_LUTPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, Mat, ffi.Pointer)>>('gapi_LUT'); - late final _gapi_LUT = _gapi_LUTPtr.asFunction< - ffi.Pointer Function(GMat, Mat, ffi.Pointer)>(); + late final _gapi_LUTPtr = + _lookup Function(GMat, Mat, ffi.Pointer)>>('gapi_LUT'); + late final _gapi_LUT = + _gapi_LUTPtr.asFunction Function(GMat, Mat, ffi.Pointer)>(); ffi.Pointer gapi_LUV2BGR( GMat src, @@ -22397,12 +20210,10 @@ class CvNative { ); } - late final _gapi_LUV2BGRPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_LUV2BGR'); - late final _gapi_LUV2BGR = _gapi_LUV2BGRPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_LUV2BGRPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_LUV2BGR'); + late final _gapi_LUV2BGR = + _gapi_LUV2BGRPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_Laplacian( GMat src, @@ -22426,11 +20237,10 @@ class CvNative { late final _gapi_LaplacianPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Int, ffi.Double, - ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_Laplacian'); - late final _gapi_Laplacian = _gapi_LaplacianPtr.asFunction< - ffi.Pointer Function( - GMat, int, int, double, double, int, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, ffi.Int, ffi.Int, ffi.Double, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_Laplacian'); + late final _gapi_Laplacian = _gapi_LaplacianPtr + .asFunction Function(GMat, int, int, double, double, int, ffi.Pointer)>(); ffi.Pointer gapi_NV12toBGR( GMat src_y, @@ -22444,12 +20254,11 @@ class CvNative { ); } - late final _gapi_NV12toBGRPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Pointer)>>('gapi_NV12toBGR'); - late final _gapi_NV12toBGR = _gapi_NV12toBGRPtr.asFunction< - ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_NV12toBGRPtr = + _lookup Function(GMat, GMat, ffi.Pointer)>>( + 'gapi_NV12toBGR'); + late final _gapi_NV12toBGR = + _gapi_NV12toBGRPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_NV12toBGRp( GMat src_y, @@ -22463,12 +20272,11 @@ class CvNative { ); } - late final _gapi_NV12toBGRpPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Pointer)>>('gapi_NV12toBGRp'); - late final _gapi_NV12toBGRp = _gapi_NV12toBGRpPtr.asFunction< - ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_NV12toBGRpPtr = + _lookup Function(GMat, GMat, ffi.Pointer)>>( + 'gapi_NV12toBGRp'); + late final _gapi_NV12toBGRp = + _gapi_NV12toBGRpPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_NV12toGray( GMat src_y, @@ -22482,12 +20290,11 @@ class CvNative { ); } - late final _gapi_NV12toGrayPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Pointer)>>('gapi_NV12toGray'); - late final _gapi_NV12toGray = _gapi_NV12toGrayPtr.asFunction< - ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_NV12toGrayPtr = + _lookup Function(GMat, GMat, ffi.Pointer)>>( + 'gapi_NV12toGray'); + late final _gapi_NV12toGray = + _gapi_NV12toGrayPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_NV12toRGB( GMat src_y, @@ -22501,12 +20308,11 @@ class CvNative { ); } - late final _gapi_NV12toRGBPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Pointer)>>('gapi_NV12toRGB'); - late final _gapi_NV12toRGB = _gapi_NV12toRGBPtr.asFunction< - ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_NV12toRGBPtr = + _lookup Function(GMat, GMat, ffi.Pointer)>>( + 'gapi_NV12toRGB'); + late final _gapi_NV12toRGB = + _gapi_NV12toRGBPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_NV12toRGBp( GMat src_y, @@ -22520,12 +20326,11 @@ class CvNative { ); } - late final _gapi_NV12toRGBpPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Pointer)>>('gapi_NV12toRGBp'); - late final _gapi_NV12toRGBp = _gapi_NV12toRGBpPtr.asFunction< - ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_NV12toRGBpPtr = + _lookup Function(GMat, GMat, ffi.Pointer)>>( + 'gapi_NV12toRGBp'); + late final _gapi_NV12toRGBp = + _gapi_NV12toRGBpPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_RGB2Gray( GMat src, @@ -22537,12 +20342,10 @@ class CvNative { ); } - late final _gapi_RGB2GrayPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_RGB2Gray'); - late final _gapi_RGB2Gray = _gapi_RGB2GrayPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_RGB2GrayPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_RGB2Gray'); + late final _gapi_RGB2Gray = + _gapi_RGB2GrayPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_RGB2Gray_1( GMat src, @@ -22562,11 +20365,10 @@ class CvNative { late final _gapi_RGB2Gray_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Float, ffi.Float, ffi.Float, - ffi.Pointer)>>('gapi_RGB2Gray_1'); - late final _gapi_RGB2Gray_1 = _gapi_RGB2Gray_1Ptr.asFunction< - ffi.Pointer Function( - GMat, double, double, double, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, ffi.Float, ffi.Float, ffi.Float, ffi.Pointer)>>('gapi_RGB2Gray_1'); + late final _gapi_RGB2Gray_1 = _gapi_RGB2Gray_1Ptr + .asFunction Function(GMat, double, double, double, ffi.Pointer)>(); ffi.Pointer gapi_RGB2HSV( GMat src, @@ -22578,12 +20380,10 @@ class CvNative { ); } - late final _gapi_RGB2HSVPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_RGB2HSV'); - late final _gapi_RGB2HSV = _gapi_RGB2HSVPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_RGB2HSVPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_RGB2HSV'); + late final _gapi_RGB2HSV = + _gapi_RGB2HSVPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_RGB2I420( GMat src, @@ -22595,12 +20395,10 @@ class CvNative { ); } - late final _gapi_RGB2I420Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_RGB2I420'); - late final _gapi_RGB2I420 = _gapi_RGB2I420Ptr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_RGB2I420Ptr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_RGB2I420'); + late final _gapi_RGB2I420 = + _gapi_RGB2I420Ptr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_RGB2Lab( GMat src, @@ -22612,12 +20410,10 @@ class CvNative { ); } - late final _gapi_RGB2LabPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_RGB2Lab'); - late final _gapi_RGB2Lab = _gapi_RGB2LabPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_RGB2LabPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_RGB2Lab'); + late final _gapi_RGB2Lab = + _gapi_RGB2LabPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_RGB2YUV( GMat src, @@ -22629,12 +20425,10 @@ class CvNative { ); } - late final _gapi_RGB2YUVPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_RGB2YUV'); - late final _gapi_RGB2YUV = _gapi_RGB2YUVPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_RGB2YUVPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_RGB2YUV'); + late final _gapi_RGB2YUV = + _gapi_RGB2YUVPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_RGB2YUV422( GMat src, @@ -22646,12 +20440,10 @@ class CvNative { ); } - late final _gapi_RGB2YUV422Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_RGB2YUV422'); - late final _gapi_RGB2YUV422 = _gapi_RGB2YUV422Ptr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_RGB2YUV422Ptr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_RGB2YUV422'); + late final _gapi_RGB2YUV422 = + _gapi_RGB2YUV422Ptr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_Sobel( GMat src, @@ -22681,20 +20473,11 @@ class CvNative { late final _gapi_SobelPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, - ffi.Int, - ffi.Int, - ffi.Int, - ffi.Int, - ffi.Double, - ffi.Double, - ffi.Int, - Scalar, - ffi.Pointer)>>('gapi_Sobel'); + ffi.Pointer Function(GMat, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Double, ffi.Double, + ffi.Int, Scalar, ffi.Pointer)>>('gapi_Sobel'); late final _gapi_Sobel = _gapi_SobelPtr.asFunction< - ffi.Pointer Function(GMat, int, int, int, int, double, double, - int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, int, int, int, int, double, double, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_SobelXY( GMat src, @@ -22724,20 +20507,11 @@ class CvNative { late final _gapi_SobelXYPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, - ffi.Int, - ffi.Int, - ffi.Int, - ffi.Double, - ffi.Double, - ffi.Int, - Scalar, - ffi.Pointer, - ffi.Pointer)>>('gapi_SobelXY'); + ffi.Pointer Function(GMat, ffi.Int, ffi.Int, ffi.Int, ffi.Double, ffi.Double, ffi.Int, + Scalar, ffi.Pointer, ffi.Pointer)>>('gapi_SobelXY'); late final _gapi_SobelXY = _gapi_SobelXYPtr.asFunction< - ffi.Pointer Function(GMat, int, int, int, double, double, int, - Scalar, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, int, int, int, double, double, int, Scalar, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer gapi_YUV2BGR( GMat src, @@ -22749,12 +20523,10 @@ class CvNative { ); } - late final _gapi_YUV2BGRPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_YUV2BGR'); - late final _gapi_YUV2BGR = _gapi_YUV2BGRPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_YUV2BGRPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_YUV2BGR'); + late final _gapi_YUV2BGR = + _gapi_YUV2BGRPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_YUV2RGB( GMat src, @@ -22766,12 +20538,10 @@ class CvNative { ); } - late final _gapi_YUV2RGBPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_YUV2RGB'); - late final _gapi_YUV2RGB = _gapi_YUV2RGBPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_YUV2RGBPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_YUV2RGB'); + late final _gapi_YUV2RGB = + _gapi_YUV2RGBPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_add( GMat src1, @@ -22787,12 +20557,11 @@ class CvNative { ); } - late final _gapi_addPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Int, ffi.Pointer)>>('gapi_add'); - late final _gapi_add = _gapi_addPtr.asFunction< - ffi.Pointer Function(GMat, GMat, int, ffi.Pointer)>(); + late final _gapi_addPtr = + _lookup Function(GMat, GMat, ffi.Int, ffi.Pointer)>>( + 'gapi_add'); + late final _gapi_add = + _gapi_addPtr.asFunction Function(GMat, GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_addC( GMat src, @@ -22808,12 +20577,11 @@ class CvNative { ); } - late final _gapi_addCPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GScalar, ffi.Int, ffi.Pointer)>>('gapi_addC'); - late final _gapi_addC = _gapi_addCPtr.asFunction< - ffi.Pointer Function(GMat, GScalar, int, ffi.Pointer)>(); + late final _gapi_addCPtr = + _lookup Function(GMat, GScalar, ffi.Int, ffi.Pointer)>>( + 'gapi_addC'); + late final _gapi_addC = + _gapi_addCPtr.asFunction Function(GMat, GScalar, int, ffi.Pointer)>(); ffi.Pointer gapi_addC_1( GScalar c, @@ -22829,12 +20597,11 @@ class CvNative { ); } - late final _gapi_addC_1Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GScalar, GMat, ffi.Int, ffi.Pointer)>>('gapi_addC_1'); - late final _gapi_addC_1 = _gapi_addC_1Ptr.asFunction< - ffi.Pointer Function(GScalar, GMat, int, ffi.Pointer)>(); + late final _gapi_addC_1Ptr = + _lookup Function(GScalar, GMat, ffi.Int, ffi.Pointer)>>( + 'gapi_addC_1'); + late final _gapi_addC_1 = + _gapi_addC_1Ptr.asFunction Function(GScalar, GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_bilateralFilter( GMat src, @@ -22856,11 +20623,10 @@ class CvNative { late final _gapi_bilateralFilterPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, - ffi.Int, ffi.Pointer)>>('gapi_bilateralFilter'); - late final _gapi_bilateralFilter = _gapi_bilateralFilterPtr.asFunction< - ffi.Pointer Function( - GMat, int, double, double, int, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, ffi.Int, ffi.Double, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_bilateralFilter'); + late final _gapi_bilateralFilter = _gapi_bilateralFilterPtr + .asFunction Function(GMat, int, double, double, int, ffi.Pointer)>(); ffi.Pointer gapi_blur( GMat src, @@ -22882,11 +20648,10 @@ class CvNative { late final _gapi_blurPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, Size, Point, ffi.Int, Scalar, - ffi.Pointer)>>('gapi_blur'); - late final _gapi_blur = _gapi_blurPtr.asFunction< - ffi.Pointer Function( - GMat, Size, Point, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, Size, Point, ffi.Int, Scalar, ffi.Pointer)>>('gapi_blur'); + late final _gapi_blur = _gapi_blurPtr + .asFunction Function(GMat, Size, Point, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_boundingRect( GArrayPoint2f src, @@ -22898,13 +20663,11 @@ class CvNative { ); } - late final _gapi_boundingRectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GArrayPoint2f, ffi.Pointer)>>('gapi_boundingRect'); - late final _gapi_boundingRect = _gapi_boundingRectPtr.asFunction< - ffi.Pointer Function( - GArrayPoint2f, ffi.Pointer)>(); + late final _gapi_boundingRectPtr = + _lookup Function(GArrayPoint2f, ffi.Pointer)>>( + 'gapi_boundingRect'); + late final _gapi_boundingRect = _gapi_boundingRectPtr + .asFunction Function(GArrayPoint2f, ffi.Pointer)>(); ffi.Pointer gapi_boundingRect_1( GArrayPoint2i src, @@ -22916,13 +20679,11 @@ class CvNative { ); } - late final _gapi_boundingRect_1Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GArrayPoint2i, ffi.Pointer)>>('gapi_boundingRect_1'); - late final _gapi_boundingRect_1 = _gapi_boundingRect_1Ptr.asFunction< - ffi.Pointer Function( - GArrayPoint2i, ffi.Pointer)>(); + late final _gapi_boundingRect_1Ptr = + _lookup Function(GArrayPoint2i, ffi.Pointer)>>( + 'gapi_boundingRect_1'); + late final _gapi_boundingRect_1 = _gapi_boundingRect_1Ptr + .asFunction Function(GArrayPoint2i, ffi.Pointer)>(); ffi.Pointer gapi_boundingRect_2( GMat src, @@ -22934,12 +20695,11 @@ class CvNative { ); } - late final _gapi_boundingRect_2Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_boundingRect_2'); - late final _gapi_boundingRect_2 = _gapi_boundingRect_2Ptr.asFunction< - ffi.Pointer Function(GMat, ffi.Pointer)>(); + late final _gapi_boundingRect_2Ptr = + _lookup Function(GMat, ffi.Pointer)>>( + 'gapi_boundingRect_2'); + late final _gapi_boundingRect_2 = + _gapi_boundingRect_2Ptr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_boxFilter( GMat src, @@ -22965,11 +20725,10 @@ class CvNative { late final _gapi_boxFilterPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, Size, Point, ffi.Bool, - ffi.Int, Scalar, ffi.Pointer)>>('gapi_boxFilter'); + ffi.Pointer Function( + GMat, ffi.Int, Size, Point, ffi.Bool, ffi.Int, Scalar, ffi.Pointer)>>('gapi_boxFilter'); late final _gapi_boxFilter = _gapi_boxFilterPtr.asFunction< - ffi.Pointer Function( - GMat, int, Size, Point, bool, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function(GMat, int, Size, Point, bool, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_cartToPolar( GMat x, @@ -22989,11 +20748,10 @@ class CvNative { late final _gapi_cartToPolarPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, GMat, ffi.Bool, - ffi.Pointer, ffi.Pointer)>>('gapi_cartToPolar'); - late final _gapi_cartToPolar = _gapi_cartToPolarPtr.asFunction< - ffi.Pointer Function( - GMat, GMat, bool, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, GMat, ffi.Bool, ffi.Pointer, ffi.Pointer)>>('gapi_cartToPolar'); + late final _gapi_cartToPolar = _gapi_cartToPolarPtr + .asFunction Function(GMat, GMat, bool, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer gapi_concatHor( GMat src1, @@ -23007,12 +20765,11 @@ class CvNative { ); } - late final _gapi_concatHorPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Pointer)>>('gapi_concatHor'); - late final _gapi_concatHor = _gapi_concatHorPtr.asFunction< - ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_concatHorPtr = + _lookup Function(GMat, GMat, ffi.Pointer)>>( + 'gapi_concatHor'); + late final _gapi_concatHor = + _gapi_concatHorPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_concatVert( GMat src1, @@ -23026,12 +20783,11 @@ class CvNative { ); } - late final _gapi_concatVertPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Pointer)>>('gapi_concatVert'); - late final _gapi_concatVert = _gapi_concatVertPtr.asFunction< - ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_concatVertPtr = + _lookup Function(GMat, GMat, ffi.Pointer)>>( + 'gapi_concatVert'); + late final _gapi_concatVert = + _gapi_concatVertPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_convertTo( GMat src, @@ -23051,11 +20807,10 @@ class CvNative { late final _gapi_convertToPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, - ffi.Pointer)>>('gapi_convertTo'); - late final _gapi_convertTo = _gapi_convertToPtr.asFunction< - ffi.Pointer Function( - GMat, int, double, double, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, ffi.Int, ffi.Double, ffi.Double, ffi.Pointer)>>('gapi_convertTo'); + late final _gapi_convertTo = _gapi_convertToPtr + .asFunction Function(GMat, int, double, double, ffi.Pointer)>(); ffi.Pointer gapi_copy_1( GMat in1, @@ -23067,12 +20822,10 @@ class CvNative { ); } - late final _gapi_copy_1Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_copy_1'); - late final _gapi_copy_1 = _gapi_copy_1Ptr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_copy_1Ptr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_copy_1'); + late final _gapi_copy_1 = + _gapi_copy_1Ptr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_crop( GMat src, @@ -23086,12 +20839,10 @@ class CvNative { ); } - late final _gapi_cropPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, Rect, ffi.Pointer)>>('gapi_crop'); - late final _gapi_crop = _gapi_cropPtr.asFunction< - ffi.Pointer Function(GMat, Rect, ffi.Pointer)>(); + late final _gapi_cropPtr = + _lookup Function(GMat, Rect, ffi.Pointer)>>('gapi_crop'); + late final _gapi_crop = + _gapi_cropPtr.asFunction Function(GMat, Rect, ffi.Pointer)>(); ffi.Pointer gapi_dilate( GMat src, @@ -23115,11 +20866,10 @@ class CvNative { late final _gapi_dilatePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, Mat, Point, ffi.Int, ffi.Int, - Scalar, ffi.Pointer)>>('gapi_dilate'); - late final _gapi_dilate = _gapi_dilatePtr.asFunction< - ffi.Pointer Function( - GMat, Mat, Point, int, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, Mat, Point, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>('gapi_dilate'); + late final _gapi_dilate = _gapi_dilatePtr + .asFunction Function(GMat, Mat, Point, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_dilate3x3( GMat src, @@ -23138,12 +20888,11 @@ class CvNative { } late final _gapi_dilate3x3Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Int, Scalar, - ffi.Pointer)>>('gapi_dilate3x3'); - late final _gapi_dilate3x3 = _gapi_dilate3x3Ptr.asFunction< - ffi.Pointer Function( - GMat, int, int, Scalar, ffi.Pointer)>(); + ffi + .NativeFunction Function(GMat, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>( + 'gapi_dilate3x3'); + late final _gapi_dilate3x3 = _gapi_dilate3x3Ptr + .asFunction Function(GMat, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_div( GMat src1, @@ -23163,11 +20912,9 @@ class CvNative { late final _gapi_divPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_div'); - late final _gapi_div = _gapi_divPtr.asFunction< - ffi.Pointer Function( - GMat, GMat, double, int, ffi.Pointer)>(); + ffi.Pointer Function(GMat, GMat, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_div'); + late final _gapi_div = + _gapi_divPtr.asFunction Function(GMat, GMat, double, int, ffi.Pointer)>(); ffi.Pointer gapi_divC( GMat src, @@ -23187,11 +20934,10 @@ class CvNative { late final _gapi_divCPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, GScalar, ffi.Double, ffi.Int, - ffi.Pointer)>>('gapi_divC'); - late final _gapi_divC = _gapi_divCPtr.asFunction< - ffi.Pointer Function( - GMat, GScalar, double, int, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, GScalar, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_divC'); + late final _gapi_divC = _gapi_divCPtr + .asFunction Function(GMat, GScalar, double, int, ffi.Pointer)>(); ffi.Pointer gapi_divRC( GScalar divident, @@ -23211,11 +20957,10 @@ class CvNative { late final _gapi_divRCPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GScalar, GMat, ffi.Double, ffi.Int, - ffi.Pointer)>>('gapi_divRC'); - late final _gapi_divRC = _gapi_divRCPtr.asFunction< - ffi.Pointer Function( - GScalar, GMat, double, int, ffi.Pointer)>(); + ffi.Pointer Function( + GScalar, GMat, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_divRC'); + late final _gapi_divRC = _gapi_divRCPtr + .asFunction Function(GScalar, GMat, double, int, ffi.Pointer)>(); ffi.Pointer gapi_erode( GMat src, @@ -23239,11 +20984,10 @@ class CvNative { late final _gapi_erodePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, Mat, Point, ffi.Int, ffi.Int, - Scalar, ffi.Pointer)>>('gapi_erode'); - late final _gapi_erode = _gapi_erodePtr.asFunction< - ffi.Pointer Function( - GMat, Mat, Point, int, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, Mat, Point, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>('gapi_erode'); + late final _gapi_erode = _gapi_erodePtr + .asFunction Function(GMat, Mat, Point, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_erode3x3( GMat src, @@ -23262,12 +21006,11 @@ class CvNative { } late final _gapi_erode3x3Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Int, Scalar, - ffi.Pointer)>>('gapi_erode3x3'); - late final _gapi_erode3x3 = _gapi_erode3x3Ptr.asFunction< - ffi.Pointer Function( - GMat, int, int, Scalar, ffi.Pointer)>(); + ffi + .NativeFunction Function(GMat, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>( + 'gapi_erode3x3'); + late final _gapi_erode3x3 = _gapi_erode3x3Ptr + .asFunction Function(GMat, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_filter2D( GMat src, @@ -23293,11 +21036,10 @@ class CvNative { late final _gapi_filter2DPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, Mat, Point, Scalar, - ffi.Int, Scalar, ffi.Pointer)>>('gapi_filter2D'); + ffi.Pointer Function( + GMat, ffi.Int, Mat, Point, Scalar, ffi.Int, Scalar, ffi.Pointer)>>('gapi_filter2D'); late final _gapi_filter2D = _gapi_filter2DPtr.asFunction< - ffi.Pointer Function( - GMat, int, Mat, Point, Scalar, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function(GMat, int, Mat, Point, Scalar, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_findContours( GMat src, @@ -23315,11 +21057,10 @@ class CvNative { late final _gapi_findContoursPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Int, - ffi.Pointer)>>('gapi_findContours'); - late final _gapi_findContours = _gapi_findContoursPtr.asFunction< - ffi.Pointer Function( - GMat, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, ffi.Int, ffi.Int, ffi.Pointer)>>('gapi_findContours'); + late final _gapi_findContours = _gapi_findContoursPtr + .asFunction Function(GMat, int, int, ffi.Pointer)>(); ffi.Pointer gapi_findContoursH( GMat src, @@ -23339,15 +21080,11 @@ class CvNative { late final _gapi_findContoursHPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, - ffi.Int, - ffi.Int, - ffi.Pointer, + ffi.Pointer Function(GMat, ffi.Int, ffi.Int, ffi.Pointer, ffi.Pointer)>>('gapi_findContoursH'); late final _gapi_findContoursH = _gapi_findContoursHPtr.asFunction< - ffi.Pointer Function(GMat, int, int, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, int, int, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer gapi_findContoursH_1( GMat src, @@ -23369,16 +21106,11 @@ class CvNative { late final _gapi_findContoursH_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, - ffi.Int, - ffi.Int, - GOpaquePoint, - ffi.Pointer, + ffi.Pointer Function(GMat, ffi.Int, ffi.Int, GOpaquePoint, ffi.Pointer, ffi.Pointer)>>('gapi_findContoursH_1'); late final _gapi_findContoursH_1 = _gapi_findContoursH_1Ptr.asFunction< - ffi.Pointer Function(GMat, int, int, GOpaquePoint, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, int, int, GOpaquePoint, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer gapi_findContours_1( GMat src, @@ -23398,11 +21130,10 @@ class CvNative { late final _gapi_findContours_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Int, GOpaquePoint, - ffi.Pointer)>>('gapi_findContours_1'); + ffi.Pointer Function( + GMat, ffi.Int, ffi.Int, GOpaquePoint, ffi.Pointer)>>('gapi_findContours_1'); late final _gapi_findContours_1 = _gapi_findContours_1Ptr.asFunction< - ffi.Pointer Function( - GMat, int, int, GOpaquePoint, ffi.Pointer)>(); + ffi.Pointer Function(GMat, int, int, GOpaquePoint, ffi.Pointer)>(); ffi.Pointer gapi_fitLine2D( GArrayPoint2d src, @@ -23424,16 +21155,11 @@ class CvNative { late final _gapi_fitLine2DPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GArrayPoint2d, - ffi.Int, - ffi.Double, - ffi.Double, - ffi.Double, + ffi.Pointer Function(GArrayPoint2d, ffi.Int, ffi.Double, ffi.Double, ffi.Double, ffi.Pointer)>>('gapi_fitLine2D'); late final _gapi_fitLine2D = _gapi_fitLine2DPtr.asFunction< - ffi.Pointer Function(GArrayPoint2d, int, double, double, double, - ffi.Pointer)>(); + ffi.Pointer Function( + GArrayPoint2d, int, double, double, double, ffi.Pointer)>(); ffi.Pointer gapi_fitLine2D_1( GArrayPoint2f src, @@ -23455,16 +21181,11 @@ class CvNative { late final _gapi_fitLine2D_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GArrayPoint2f, - ffi.Int, - ffi.Double, - ffi.Double, - ffi.Double, + ffi.Pointer Function(GArrayPoint2f, ffi.Int, ffi.Double, ffi.Double, ffi.Double, ffi.Pointer)>>('gapi_fitLine2D_1'); late final _gapi_fitLine2D_1 = _gapi_fitLine2D_1Ptr.asFunction< - ffi.Pointer Function(GArrayPoint2f, int, double, double, double, - ffi.Pointer)>(); + ffi.Pointer Function( + GArrayPoint2f, int, double, double, double, ffi.Pointer)>(); ffi.Pointer gapi_fitLine2D_2( GArrayPoint2i src, @@ -23486,16 +21207,11 @@ class CvNative { late final _gapi_fitLine2D_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GArrayPoint2i, - ffi.Int, - ffi.Double, - ffi.Double, - ffi.Double, + ffi.Pointer Function(GArrayPoint2i, ffi.Int, ffi.Double, ffi.Double, ffi.Double, ffi.Pointer)>>('gapi_fitLine2D_2'); late final _gapi_fitLine2D_2 = _gapi_fitLine2D_2Ptr.asFunction< - ffi.Pointer Function(GArrayPoint2i, int, double, double, double, - ffi.Pointer)>(); + ffi.Pointer Function( + GArrayPoint2i, int, double, double, double, ffi.Pointer)>(); ffi.Pointer gapi_fitLine2D_3( GMat src, @@ -23517,11 +21233,10 @@ class CvNative { late final _gapi_fitLine2D_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, - ffi.Double, ffi.Pointer)>>('gapi_fitLine2D_3'); + ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, ffi.Double, + ffi.Pointer)>>('gapi_fitLine2D_3'); late final _gapi_fitLine2D_3 = _gapi_fitLine2D_3Ptr.asFunction< - ffi.Pointer Function( - GMat, int, double, double, double, ffi.Pointer)>(); + ffi.Pointer Function(GMat, int, double, double, double, ffi.Pointer)>(); ffi.Pointer gapi_fitLine3D_1( GArrayPoint3d src, @@ -23543,16 +21258,11 @@ class CvNative { late final _gapi_fitLine3D_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GArrayPoint3d, - ffi.Int, - ffi.Double, - ffi.Double, - ffi.Double, + ffi.Pointer Function(GArrayPoint3d, ffi.Int, ffi.Double, ffi.Double, ffi.Double, ffi.Pointer)>>('gapi_fitLine3D_1'); late final _gapi_fitLine3D_1 = _gapi_fitLine3D_1Ptr.asFunction< - ffi.Pointer Function(GArrayPoint3d, int, double, double, double, - ffi.Pointer)>(); + ffi.Pointer Function( + GArrayPoint3d, int, double, double, double, ffi.Pointer)>(); ffi.Pointer gapi_fitLine3D_2( GArrayPoint3f src, @@ -23574,16 +21284,11 @@ class CvNative { late final _gapi_fitLine3D_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GArrayPoint3f, - ffi.Int, - ffi.Double, - ffi.Double, - ffi.Double, + ffi.Pointer Function(GArrayPoint3f, ffi.Int, ffi.Double, ffi.Double, ffi.Double, ffi.Pointer)>>('gapi_fitLine3D_2'); late final _gapi_fitLine3D_2 = _gapi_fitLine3D_2Ptr.asFunction< - ffi.Pointer Function(GArrayPoint3f, int, double, double, double, - ffi.Pointer)>(); + ffi.Pointer Function( + GArrayPoint3f, int, double, double, double, ffi.Pointer)>(); ffi.Pointer gapi_fitLine3D_3( GArrayPoint3i src, @@ -23605,16 +21310,11 @@ class CvNative { late final _gapi_fitLine3D_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GArrayPoint3i, - ffi.Int, - ffi.Double, - ffi.Double, - ffi.Double, + ffi.Pointer Function(GArrayPoint3i, ffi.Int, ffi.Double, ffi.Double, ffi.Double, ffi.Pointer)>>('gapi_fitLine3D_3'); late final _gapi_fitLine3D_3 = _gapi_fitLine3D_3Ptr.asFunction< - ffi.Pointer Function(GArrayPoint3i, int, double, double, double, - ffi.Pointer)>(); + ffi.Pointer Function( + GArrayPoint3i, int, double, double, double, ffi.Pointer)>(); ffi.Pointer gapi_fitLine3D_4( GMat src, @@ -23636,11 +21336,10 @@ class CvNative { late final _gapi_fitLine3D_4Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, - ffi.Double, ffi.Pointer)>>('gapi_fitLine3D_4'); + ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, ffi.Double, + ffi.Pointer)>>('gapi_fitLine3D_4'); late final _gapi_fitLine3D_4 = _gapi_fitLine3D_4Ptr.asFunction< - ffi.Pointer Function( - GMat, int, double, double, double, ffi.Pointer)>(); + ffi.Pointer Function(GMat, int, double, double, double, ffi.Pointer)>(); ffi.Pointer gapi_flip( GMat src, @@ -23654,12 +21353,11 @@ class CvNative { ); } - late final _gapi_flipPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Int, ffi.Pointer)>>('gapi_flip'); - late final _gapi_flip = _gapi_flipPtr.asFunction< - ffi.Pointer Function(GMat, int, ffi.Pointer)>(); + late final _gapi_flipPtr = + _lookup Function(GMat, ffi.Int, ffi.Pointer)>>( + 'gapi_flip'); + late final _gapi_flip = + _gapi_flipPtr.asFunction Function(GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_gaussianBlur( GMat src, @@ -23683,11 +21381,10 @@ class CvNative { late final _gapi_gaussianBlurPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, Size, ffi.Double, ffi.Double, - ffi.Int, Scalar, ffi.Pointer)>>('gapi_gaussianBlur'); + ffi.Pointer Function( + GMat, Size, ffi.Double, ffi.Double, ffi.Int, Scalar, ffi.Pointer)>>('gapi_gaussianBlur'); late final _gapi_gaussianBlur = _gapi_gaussianBlurPtr.asFunction< - ffi.Pointer Function( - GMat, Size, double, double, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function(GMat, Size, double, double, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_goodFeaturesToTrack( GMat image, @@ -23713,12 +21410,10 @@ class CvNative { late final _gapi_goodFeaturesToTrackPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, - Mat, ffi.Int, ffi.Bool, ffi.Double)>>('gapi_goodFeaturesToTrack'); - late final _gapi_goodFeaturesToTrack = - _gapi_goodFeaturesToTrackPtr.asFunction< - ffi.Pointer Function( - GMat, int, double, double, Mat, int, bool, double)>(); + ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, Mat, ffi.Int, ffi.Bool, + ffi.Double)>>('gapi_goodFeaturesToTrack'); + late final _gapi_goodFeaturesToTrack = _gapi_goodFeaturesToTrackPtr + .asFunction Function(GMat, int, double, double, Mat, int, bool, double)>(); ffi.Pointer gapi_mask( GMat src, @@ -23732,12 +21427,10 @@ class CvNative { ); } - late final _gapi_maskPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Pointer)>>('gapi_mask'); - late final _gapi_mask = _gapi_maskPtr.asFunction< - ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_maskPtr = + _lookup Function(GMat, GMat, ffi.Pointer)>>('gapi_mask'); + late final _gapi_mask = + _gapi_maskPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_mean( GMat src, @@ -23749,12 +21442,10 @@ class CvNative { ); } - late final _gapi_meanPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_mean'); - late final _gapi_mean = _gapi_meanPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_meanPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_mean'); + late final _gapi_mean = + _gapi_meanPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_medianBlur( GMat src, @@ -23768,12 +21459,11 @@ class CvNative { ); } - late final _gapi_medianBlurPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Int, ffi.Pointer)>>('gapi_medianBlur'); - late final _gapi_medianBlur = _gapi_medianBlurPtr.asFunction< - ffi.Pointer Function(GMat, int, ffi.Pointer)>(); + late final _gapi_medianBlurPtr = + _lookup Function(GMat, ffi.Int, ffi.Pointer)>>( + 'gapi_medianBlur'); + late final _gapi_medianBlur = + _gapi_medianBlurPtr.asFunction Function(GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_merge3( GMat src1, @@ -23789,12 +21479,11 @@ class CvNative { ); } - late final _gapi_merge3Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, GMat, ffi.Pointer)>>('gapi_merge3'); - late final _gapi_merge3 = _gapi_merge3Ptr.asFunction< - ffi.Pointer Function(GMat, GMat, GMat, ffi.Pointer)>(); + late final _gapi_merge3Ptr = + _lookup Function(GMat, GMat, GMat, ffi.Pointer)>>( + 'gapi_merge3'); + late final _gapi_merge3 = + _gapi_merge3Ptr.asFunction Function(GMat, GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_merge4( GMat src1, @@ -23812,13 +21501,11 @@ class CvNative { ); } - late final _gapi_merge4Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, GMat, GMat, ffi.Pointer)>>('gapi_merge4'); - late final _gapi_merge4 = _gapi_merge4Ptr.asFunction< - ffi.Pointer Function( - GMat, GMat, GMat, GMat, ffi.Pointer)>(); + late final _gapi_merge4Ptr = + _lookup Function(GMat, GMat, GMat, GMat, ffi.Pointer)>>( + 'gapi_merge4'); + late final _gapi_merge4 = + _gapi_merge4Ptr.asFunction Function(GMat, GMat, GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_morphologyEx( GMat src, @@ -23844,11 +21531,10 @@ class CvNative { late final _gapi_morphologyExPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, Mat, Point, ffi.Int, - ffi.Int, Scalar, ffi.Pointer)>>('gapi_morphologyEx'); + ffi.Pointer Function( + GMat, ffi.Int, Mat, Point, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>('gapi_morphologyEx'); late final _gapi_morphologyEx = _gapi_morphologyExPtr.asFunction< - ffi.Pointer Function( - GMat, int, Mat, Point, int, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function(GMat, int, Mat, Point, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_mul( GMat src1, @@ -23868,11 +21554,9 @@ class CvNative { late final _gapi_mulPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_mul'); - late final _gapi_mul = _gapi_mulPtr.asFunction< - ffi.Pointer Function( - GMat, GMat, double, int, ffi.Pointer)>(); + ffi.Pointer Function(GMat, GMat, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_mul'); + late final _gapi_mul = + _gapi_mulPtr.asFunction Function(GMat, GMat, double, int, ffi.Pointer)>(); ffi.Pointer gapi_mulC( GMat src, @@ -23888,12 +21572,11 @@ class CvNative { ); } - late final _gapi_mulCPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GScalar, ffi.Int, ffi.Pointer)>>('gapi_mulC'); - late final _gapi_mulC = _gapi_mulCPtr.asFunction< - ffi.Pointer Function(GMat, GScalar, int, ffi.Pointer)>(); + late final _gapi_mulCPtr = + _lookup Function(GMat, GScalar, ffi.Int, ffi.Pointer)>>( + 'gapi_mulC'); + late final _gapi_mulC = + _gapi_mulCPtr.asFunction Function(GMat, GScalar, int, ffi.Pointer)>(); ffi.Pointer gapi_mulC_1( GMat src, @@ -23910,11 +21593,10 @@ class CvNative { } late final _gapi_mulC_1Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_mulC_1'); - late final _gapi_mulC_1 = _gapi_mulC_1Ptr.asFunction< - ffi.Pointer Function(GMat, double, int, ffi.Pointer)>(); + ffi.NativeFunction Function(GMat, ffi.Double, ffi.Int, ffi.Pointer)>>( + 'gapi_mulC_1'); + late final _gapi_mulC_1 = + _gapi_mulC_1Ptr.asFunction Function(GMat, double, int, ffi.Pointer)>(); ffi.Pointer gapi_mulC_2( GScalar multiplier, @@ -23930,12 +21612,11 @@ class CvNative { ); } - late final _gapi_mulC_2Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GScalar, GMat, ffi.Int, ffi.Pointer)>>('gapi_mulC_2'); - late final _gapi_mulC_2 = _gapi_mulC_2Ptr.asFunction< - ffi.Pointer Function(GScalar, GMat, int, ffi.Pointer)>(); + late final _gapi_mulC_2Ptr = + _lookup Function(GScalar, GMat, ffi.Int, ffi.Pointer)>>( + 'gapi_mulC_2'); + late final _gapi_mulC_2 = + _gapi_mulC_2Ptr.asFunction Function(GScalar, GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_normalize( GMat src, @@ -23957,11 +21638,10 @@ class CvNative { late final _gapi_normalizePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Double, ffi.Double, ffi.Int, - ffi.Int, ffi.Pointer)>>('gapi_normalize'); - late final _gapi_normalize = _gapi_normalizePtr.asFunction< - ffi.Pointer Function( - GMat, double, double, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, ffi.Double, ffi.Double, ffi.Int, ffi.Int, ffi.Pointer)>>('gapi_normalize'); + late final _gapi_normalize = _gapi_normalizePtr + .asFunction Function(GMat, double, double, int, int, ffi.Pointer)>(); ffi.Pointer gapi_phase( GMat x, @@ -23977,12 +21657,11 @@ class CvNative { ); } - late final _gapi_phasePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Bool, ffi.Pointer)>>('gapi_phase'); - late final _gapi_phase = _gapi_phasePtr.asFunction< - ffi.Pointer Function(GMat, GMat, bool, ffi.Pointer)>(); + late final _gapi_phasePtr = + _lookup Function(GMat, GMat, ffi.Bool, ffi.Pointer)>>( + 'gapi_phase'); + late final _gapi_phase = + _gapi_phasePtr.asFunction Function(GMat, GMat, bool, ffi.Pointer)>(); ffi.Pointer gapi_polarToCart( GMat magnitude, @@ -23998,12 +21677,11 @@ class CvNative { ); } - late final _gapi_polarToCartPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Bool, ffi.Pointer)>>('gapi_polarToCart'); - late final _gapi_polarToCart = _gapi_polarToCartPtr.asFunction< - ffi.Pointer Function(GMat, GMat, bool, ffi.Pointer)>(); + late final _gapi_polarToCartPtr = + _lookup Function(GMat, GMat, ffi.Bool, ffi.Pointer)>>( + 'gapi_polarToCart'); + late final _gapi_polarToCart = + _gapi_polarToCartPtr.asFunction Function(GMat, GMat, bool, ffi.Pointer)>(); ffi.Pointer gapi_remap( GMat src, @@ -24027,11 +21705,10 @@ class CvNative { late final _gapi_remapPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, Mat, Mat, ffi.Int, ffi.Int, - Scalar, ffi.Pointer)>>('gapi_remap'); - late final _gapi_remap = _gapi_remapPtr.asFunction< - ffi.Pointer Function( - GMat, Mat, Mat, int, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, Mat, Mat, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>('gapi_remap'); + late final _gapi_remap = _gapi_remapPtr + .asFunction Function(GMat, Mat, Mat, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_resize( GMat src, @@ -24053,11 +21730,10 @@ class CvNative { late final _gapi_resizePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, Size, ffi.Double, ffi.Double, - ffi.Int, ffi.Pointer)>>('gapi_resize'); - late final _gapi_resize = _gapi_resizePtr.asFunction< - ffi.Pointer Function( - GMat, Size, double, double, int, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, Size, ffi.Double, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_resize'); + late final _gapi_resize = _gapi_resizePtr + .asFunction Function(GMat, Size, double, double, int, ffi.Pointer)>(); ffi.Pointer gapi_resizeP( GMat src, @@ -24073,12 +21749,11 @@ class CvNative { ); } - late final _gapi_resizePPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, Size, ffi.Int, ffi.Pointer)>>('gapi_resizeP'); - late final _gapi_resizeP = _gapi_resizePPtr.asFunction< - ffi.Pointer Function(GMat, Size, int, ffi.Pointer)>(); + late final _gapi_resizePPtr = + _lookup Function(GMat, Size, ffi.Int, ffi.Pointer)>>( + 'gapi_resizeP'); + late final _gapi_resizeP = + _gapi_resizePPtr.asFunction Function(GMat, Size, int, ffi.Pointer)>(); ffi.Pointer gapi_sepFilter( GMat src, @@ -24106,11 +21781,10 @@ class CvNative { late final _gapi_sepFilterPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, Mat, Mat, Point, Scalar, - ffi.Int, Scalar, ffi.Pointer)>>('gapi_sepFilter'); + ffi.Pointer Function( + GMat, ffi.Int, Mat, Mat, Point, Scalar, ffi.Int, Scalar, ffi.Pointer)>>('gapi_sepFilter'); late final _gapi_sepFilter = _gapi_sepFilterPtr.asFunction< - ffi.Pointer Function(GMat, int, Mat, Mat, Point, Scalar, int, - Scalar, ffi.Pointer)>(); + ffi.Pointer Function(GMat, int, Mat, Mat, Point, Scalar, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_split3( GMat src, @@ -24128,11 +21802,10 @@ class CvNative { late final _gapi_split3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('gapi_split3'); + ffi.Pointer Function( + GMat, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('gapi_split3'); late final _gapi_split3 = _gapi_split3Ptr.asFunction< - ffi.Pointer Function( - GMat, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(GMat, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer gapi_split4( GMat src, @@ -24152,15 +21825,11 @@ class CvNative { late final _gapi_split4Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer Function(GMat, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('gapi_split4'); late final _gapi_split4 = _gapi_split4Ptr.asFunction< - ffi.Pointer Function(GMat, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer gapi_sqrt( GMat src, @@ -24172,12 +21841,9 @@ class CvNative { ); } - late final _gapi_sqrtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_sqrt'); - late final _gapi_sqrt = _gapi_sqrtPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_sqrtPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_sqrt'); + late final _gapi_sqrt = _gapi_sqrtPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_sub( GMat src1, @@ -24193,12 +21859,11 @@ class CvNative { ); } - late final _gapi_subPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Int, ffi.Pointer)>>('gapi_sub'); - late final _gapi_sub = _gapi_subPtr.asFunction< - ffi.Pointer Function(GMat, GMat, int, ffi.Pointer)>(); + late final _gapi_subPtr = + _lookup Function(GMat, GMat, ffi.Int, ffi.Pointer)>>( + 'gapi_sub'); + late final _gapi_sub = + _gapi_subPtr.asFunction Function(GMat, GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_subC( GMat src, @@ -24214,12 +21879,11 @@ class CvNative { ); } - late final _gapi_subCPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GScalar, ffi.Int, ffi.Pointer)>>('gapi_subC'); - late final _gapi_subC = _gapi_subCPtr.asFunction< - ffi.Pointer Function(GMat, GScalar, int, ffi.Pointer)>(); + late final _gapi_subCPtr = + _lookup Function(GMat, GScalar, ffi.Int, ffi.Pointer)>>( + 'gapi_subC'); + late final _gapi_subC = + _gapi_subCPtr.asFunction Function(GMat, GScalar, int, ffi.Pointer)>(); ffi.Pointer gapi_subRC( GScalar c, @@ -24235,12 +21899,11 @@ class CvNative { ); } - late final _gapi_subRCPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GScalar, GMat, ffi.Int, ffi.Pointer)>>('gapi_subRC'); - late final _gapi_subRC = _gapi_subRCPtr.asFunction< - ffi.Pointer Function(GScalar, GMat, int, ffi.Pointer)>(); + late final _gapi_subRCPtr = + _lookup Function(GScalar, GMat, ffi.Int, ffi.Pointer)>>( + 'gapi_subRC'); + late final _gapi_subRC = + _gapi_subRCPtr.asFunction Function(GScalar, GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_warpAffine( GMat src, @@ -24264,11 +21927,10 @@ class CvNative { late final _gapi_warpAffinePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, Mat, Size, ffi.Int, ffi.Int, - Scalar, ffi.Pointer)>>('gapi_warpAffine'); - late final _gapi_warpAffine = _gapi_warpAffinePtr.asFunction< - ffi.Pointer Function( - GMat, Mat, Size, int, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, Mat, Size, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>('gapi_warpAffine'); + late final _gapi_warpAffine = _gapi_warpAffinePtr + .asFunction Function(GMat, Mat, Size, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_warpPerspective( GMat src, @@ -24292,11 +21954,10 @@ class CvNative { late final _gapi_warpPerspectivePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, Mat, Size, ffi.Int, ffi.Int, - Scalar, ffi.Pointer)>>('gapi_warpPerspective'); - late final _gapi_warpPerspective = _gapi_warpPerspectivePtr.asFunction< - ffi.Pointer Function( - GMat, Mat, Size, int, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, Mat, Size, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>('gapi_warpPerspective'); + late final _gapi_warpPerspective = _gapi_warpPerspectivePtr + .asFunction Function(GMat, Mat, Size, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer getBuildInfo( ffi.Pointer> rval, @@ -24306,12 +21967,11 @@ class CvNative { ); } - late final _getBuildInfoPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer>)>>('getBuildInfo'); - late final _getBuildInfo = _getBuildInfoPtr.asFunction< - ffi.Pointer Function(ffi.Pointer>)>(); + late final _getBuildInfoPtr = + _lookup Function(ffi.Pointer>)>>( + 'getBuildInfo'); + late final _getBuildInfo = + _getBuildInfoPtr.asFunction Function(ffi.Pointer>)>(); ffi.Pointer getOptimalNewCameraMatrix_Async( Mat cameraMatrix, @@ -24335,12 +21995,10 @@ class CvNative { late final _getOptimalNewCameraMatrix_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Size, ffi.Double, Size, - ffi.Bool, CvCallback_2)>>('getOptimalNewCameraMatrix_Async'); - late final _getOptimalNewCameraMatrix_Async = - _getOptimalNewCameraMatrix_AsyncPtr.asFunction< ffi.Pointer Function( - Mat, Mat, Size, double, Size, bool, CvCallback_2)>(); + Mat, Mat, Size, ffi.Double, Size, ffi.Bool, CvCallback_2)>>('getOptimalNewCameraMatrix_Async'); + late final _getOptimalNewCameraMatrix_Async = _getOptimalNewCameraMatrix_AsyncPtr + .asFunction Function(Mat, Mat, Size, double, Size, bool, CvCallback_2)>(); ffi.Pointer getPredefinedDictionary( int dictionaryId, @@ -24352,12 +22010,11 @@ class CvNative { ); } - late final _getPredefinedDictionaryPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, - ffi.Pointer)>>('getPredefinedDictionary'); - late final _getPredefinedDictionary = _getPredefinedDictionaryPtr.asFunction< - ffi.Pointer Function(int, ffi.Pointer)>(); + late final _getPredefinedDictionaryPtr = + _lookup Function(ffi.Int, ffi.Pointer)>>( + 'getPredefinedDictionary'); + late final _getPredefinedDictionary = _getPredefinedDictionaryPtr + .asFunction Function(int, ffi.Pointer)>(); ffi.Pointer initUndistortRectifyMap_Async( Mat cameraMatrix, @@ -24380,13 +22037,11 @@ class CvNative { } late final _initUndistortRectifyMap_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, Size, ffi.Int, - CvCallback_2)>>('initUndistortRectifyMap_Async'); - late final _initUndistortRectifyMap_Async = - _initUndistortRectifyMap_AsyncPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, Size, int, CvCallback_2)>(); + ffi + .NativeFunction Function(Mat, Mat, Mat, Mat, Size, ffi.Int, CvCallback_2)>>( + 'initUndistortRectifyMap_Async'); + late final _initUndistortRectifyMap_Async = _initUndistortRectifyMap_AsyncPtr + .asFunction Function(Mat, Mat, Mat, Mat, Size, int, CvCallback_2)>(); ffi.Pointer marrHildrethHashCompare( Mat a, @@ -24406,11 +22061,10 @@ class CvNative { late final _marrHildrethHashComparePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Float, ffi.Float, - ffi.Pointer)>>('marrHildrethHashCompare'); - late final _marrHildrethHashCompare = _marrHildrethHashComparePtr.asFunction< - ffi.Pointer Function( - Mat, Mat, double, double, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, Mat, ffi.Float, ffi.Float, ffi.Pointer)>>('marrHildrethHashCompare'); + late final _marrHildrethHashCompare = _marrHildrethHashComparePtr + .asFunction Function(Mat, Mat, double, double, ffi.Pointer)>(); ffi.Pointer marrHildrethHashCompute( Mat inputArr, @@ -24426,12 +22080,11 @@ class CvNative { ); } - late final _marrHildrethHashComputePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Float, ffi.Float)>>('marrHildrethHashCompute'); - late final _marrHildrethHashCompute = _marrHildrethHashComputePtr - .asFunction Function(Mat, Mat, double, double)>(); + late final _marrHildrethHashComputePtr = + _lookup Function(Mat, Mat, ffi.Float, ffi.Float)>>( + 'marrHildrethHashCompute'); + late final _marrHildrethHashCompute = + _marrHildrethHashComputePtr.asFunction Function(Mat, Mat, double, double)>(); ffi.Pointer openCVVersion( ffi.Pointer> rval, @@ -24441,12 +22094,11 @@ class CvNative { ); } - late final _openCVVersionPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer>)>>('openCVVersion'); - late final _openCVVersion = _openCVVersionPtr.asFunction< - ffi.Pointer Function(ffi.Pointer>)>(); + late final _openCVVersionPtr = + _lookup Function(ffi.Pointer>)>>( + 'openCVVersion'); + late final _openCVVersion = + _openCVVersionPtr.asFunction Function(ffi.Pointer>)>(); ffi.Pointer pHashCompare( Mat a, @@ -24460,12 +22112,11 @@ class CvNative { ); } - late final _pHashComparePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Pointer)>>('pHashCompare'); - late final _pHashCompare = _pHashComparePtr.asFunction< - ffi.Pointer Function(Mat, Mat, ffi.Pointer)>(); + late final _pHashComparePtr = + _lookup Function(Mat, Mat, ffi.Pointer)>>( + 'pHashCompare'); + late final _pHashCompare = + _pHashComparePtr.asFunction Function(Mat, Mat, ffi.Pointer)>(); ffi.Pointer pHashCompute( Mat inputArr, @@ -24478,10 +22129,8 @@ class CvNative { } late final _pHashComputePtr = - _lookup Function(Mat, Mat)>>( - 'pHashCompute'); - late final _pHashCompute = - _pHashComputePtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('pHashCompute'); + late final _pHashCompute = _pHashComputePtr.asFunction Function(Mat, Mat)>(); ffi.Pointer radialVarianceHashCompare( Mat a, @@ -24501,12 +22150,10 @@ class CvNative { late final _radialVarianceHashComparePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Double, ffi.Int, - ffi.Pointer)>>('radialVarianceHashCompare'); - late final _radialVarianceHashCompare = - _radialVarianceHashComparePtr.asFunction< ffi.Pointer Function( - Mat, Mat, double, int, ffi.Pointer)>(); + Mat, Mat, ffi.Double, ffi.Int, ffi.Pointer)>>('radialVarianceHashCompare'); + late final _radialVarianceHashCompare = _radialVarianceHashComparePtr + .asFunction Function(Mat, Mat, double, int, ffi.Pointer)>(); ffi.Pointer radialVarianceHashCompute( Mat inputArr, @@ -24522,12 +22169,11 @@ class CvNative { ); } - late final _radialVarianceHashComputePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Double, ffi.Int)>>('radialVarianceHashCompute'); - late final _radialVarianceHashCompute = _radialVarianceHashComputePtr - .asFunction Function(Mat, Mat, double, int)>(); + late final _radialVarianceHashComputePtr = + _lookup Function(Mat, Mat, ffi.Double, ffi.Int)>>( + 'radialVarianceHashCompute'); + late final _radialVarianceHashCompute = + _radialVarianceHashComputePtr.asFunction Function(Mat, Mat, double, int)>(); void registerErrorCallback( ErrorCallback callback, @@ -24538,10 +22184,8 @@ class CvNative { } late final _registerErrorCallbackPtr = - _lookup>( - 'registerErrorCallback'); - late final _registerErrorCallback = - _registerErrorCallbackPtr.asFunction(); + _lookup>('registerErrorCallback'); + late final _registerErrorCallback = _registerErrorCallbackPtr.asFunction(); ffi.Pointer undistortPoints_Async( Mat distorted, @@ -24565,11 +22209,10 @@ class CvNative { late final _undistortPoints_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, TermCriteria, - CvCallback_1)>>('undistortPoints_Async'); - late final _undistortPoints_Async = _undistortPoints_AsyncPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, Mat, TermCriteria, CvCallback_1)>(); + ffi.Pointer Function( + Mat, Mat, Mat, Mat, Mat, TermCriteria, CvCallback_1)>>('undistortPoints_Async'); + late final _undistortPoints_Async = _undistortPoints_AsyncPtr + .asFunction Function(Mat, Mat, Mat, Mat, Mat, TermCriteria, CvCallback_1)>(); ffi.Pointer undistort_Async( Mat src, @@ -24587,12 +22230,11 @@ class CvNative { ); } - late final _undistort_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, CvCallback_1)>>('undistort_Async'); - late final _undistort_Async = _undistort_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, CvCallback_1)>(); + late final _undistort_AsyncPtr = + _lookup Function(Mat, Mat, Mat, Mat, CvCallback_1)>>( + 'undistort_Async'); + late final _undistort_Async = + _undistort_AsyncPtr.asFunction Function(Mat, Mat, Mat, Mat, CvCallback_1)>(); late final addresses = _SymbolAddresses(this); } @@ -24600,140 +22242,123 @@ class CvNative { class _SymbolAddresses { final CvNative _library; _SymbolAddresses(this._library); - ffi.Pointer> - get AKAZE_Close => _library._AKAZE_ClosePtr; + ffi.Pointer> get AKAZE_Close => _library._AKAZE_ClosePtr; ffi.Pointer> get AgastFeatureDetector_Close => _library._AgastFeatureDetector_ClosePtr; - ffi.Pointer> - get AlignMTB_Close => _library._AlignMTB_ClosePtr; + ffi.Pointer> get AlignMTB_Close => + _library._AlignMTB_ClosePtr; ffi.Pointer> - get ArucoDetectorParameters_Close => - _library._ArucoDetectorParameters_ClosePtr; - ffi.Pointer> - get ArucoDetector_Close => _library._ArucoDetector_ClosePtr; - ffi.Pointer> - get ArucoDictionary_Close => _library._ArucoDictionary_ClosePtr; - ffi.Pointer> - get AsyncArray_Close => _library._AsyncArray_ClosePtr; - ffi.Pointer> - get BFMatcher_Close => _library._BFMatcher_ClosePtr; - ffi.Pointer> - get BRISK_Close => _library._BRISK_ClosePtr; + get ArucoDetectorParameters_Close => _library._ArucoDetectorParameters_ClosePtr; + ffi.Pointer> get ArucoDetector_Close => + _library._ArucoDetector_ClosePtr; + ffi.Pointer> get ArucoDictionary_Close => + _library._ArucoDictionary_ClosePtr; + ffi.Pointer> get AsyncArray_Close => + _library._AsyncArray_ClosePtr; + ffi.Pointer> get BFMatcher_Close => + _library._BFMatcher_ClosePtr; + ffi.Pointer> get BRISK_Close => _library._BRISK_ClosePtr; ffi.Pointer> - get BackgroundSubtractorKNN_Close => - _library._BackgroundSubtractorKNN_ClosePtr; - ffi.Pointer< - ffi.NativeFunction> - get BackgroundSubtractorMOG2_Close => - _library._BackgroundSubtractorMOG2_ClosePtr; - ffi.Pointer> - get BlockMeanHash_Close => _library._BlockMeanHash_ClosePtr; - ffi.Pointer> - get CLAHE_Close => _library._CLAHE_ClosePtr; - ffi.Pointer> - get CascadeClassifier_Close => _library._CascadeClassifier_ClosePtr; - ffi.Pointer)>> - get CvStatus_Close => _library._CvStatus_ClosePtr; - ffi.Pointer> - get FaceDetectorYN_Close => _library._FaceDetectorYN_ClosePtr; - ffi.Pointer> - get FaceRecognizerSF_Close => _library._FaceRecognizerSF_ClosePtr; - ffi.Pointer> - get FastFeatureDetector_Close => _library._FastFeatureDetector_ClosePtr; - ffi.Pointer> - get FlannBasedMatcher_Close => _library._FlannBasedMatcher_ClosePtr; - ffi.Pointer> - get GFTTDetector_Close => _library._GFTTDetector_ClosePtr; - ffi.Pointer> - get HOGDescriptor_Close => _library._HOGDescriptor_ClosePtr; - ffi.Pointer> get KAZE_Close => - _library._KAZE_ClosePtr; - ffi.Pointer> - get KalmanFilter_Close => _library._KalmanFilter_ClosePtr; - ffi.Pointer> - get Layer_Close => _library._Layer_ClosePtr; - ffi.Pointer> - get Layer_Close_Async => _library._Layer_Close_AsyncPtr; - ffi.Pointer> get MSER_Close => - _library._MSER_ClosePtr; - ffi.Pointer> get Mat_Close => - _library._Mat_ClosePtr; - ffi.Pointer)>> - get Mat_CloseVoid => _library._Mat_CloseVoidPtr; - ffi.Pointer> - get MergeMertens_Close => _library._MergeMertens_ClosePtr; - ffi.Pointer> get Net_Close => - _library._Net_ClosePtr; - ffi.Pointer> - get Net_Close_Async => _library._Net_Close_AsyncPtr; - ffi.Pointer> get ORB_Close => - _library._ORB_ClosePtr; - ffi.Pointer> - get QRCodeDetector_Close => _library._QRCodeDetector_ClosePtr; - ffi.Pointer> get Rng_Close => - _library._Rng_ClosePtr; - ffi.Pointer> get SIFT_Close => - _library._SIFT_ClosePtr; - ffi.Pointer> - get SimpleBlobDetector_Close => _library._SimpleBlobDetector_ClosePtr; - ffi.Pointer> - get Stitcher_Close => _library._Stitcher_ClosePtr; - ffi.Pointer> - get Subdiv2D_Close => _library._Subdiv2D_ClosePtr; - ffi.Pointer> - get TrackerMIL_Close => _library._TrackerMIL_ClosePtr; - ffi.Pointer> - get VecChar_Close => _library._VecChar_ClosePtr; - ffi.Pointer> - get VecDMatch_Close => _library._VecDMatch_ClosePtr; - ffi.Pointer> - get VecDouble_Close => _library._VecDouble_ClosePtr; - ffi.Pointer> - get VecFloat_Close => _library._VecFloat_ClosePtr; - ffi.Pointer> - get VecInt_Close => _library._VecInt_ClosePtr; - ffi.Pointer> - get VecKeyPoint_Close => _library._VecKeyPoint_ClosePtr; - ffi.Pointer> - get VecMat_Close => _library._VecMat_ClosePtr; - ffi.Pointer> - get VecPoint2f_Close => _library._VecPoint2f_ClosePtr; - ffi.Pointer> - get VecPoint3f_Close => _library._VecPoint3f_ClosePtr; - ffi.Pointer> - get VecPoint_Close => _library._VecPoint_ClosePtr; - ffi.Pointer> - get VecPrim_Close => _library._VecPrim_ClosePtr; - ffi.Pointer> - get VecRect_Close => _library._VecRect_ClosePtr; - ffi.Pointer> - get VecUChar_Close => _library._VecUChar_ClosePtr; - ffi.Pointer> - get VecVec4i_Close => _library._VecVec4i_ClosePtr; - ffi.Pointer> - get VecVecChar_Close => _library._VecVecChar_ClosePtr; - ffi.Pointer> - get VecVecDMatch_Close => _library._VecVecDMatch_ClosePtr; - ffi.Pointer> - get VecVecPoint2f_Close => _library._VecVecPoint2f_ClosePtr; - ffi.Pointer> - get VecVecPoint3f_Close => _library._VecVecPoint3f_ClosePtr; - ffi.Pointer> - get VecVecPoint_Close => _library._VecVecPoint_ClosePtr; - ffi.Pointer> - get VideoCapture_Close => _library._VideoCapture_ClosePtr; - ffi.Pointer> - get VideoWriter_Close => _library._VideoWriter_ClosePtr; - ffi.Pointer> - get WeChatQRCode_Close => _library._WeChatQRCode_ClosePtr; - ffi.Pointer)>> - get Window_Close => _library._Window_ClosePtr; - ffi.Pointer> - get gapi_GComputation_Close => _library._gapi_GComputation_ClosePtr; - ffi.Pointer> - get gapi_GMat_Close => _library._gapi_GMat_ClosePtr; - ffi.Pointer> - get gapi_GScalar_Close => _library._gapi_GScalar_ClosePtr; + get BackgroundSubtractorKNN_Close => _library._BackgroundSubtractorKNN_ClosePtr; + ffi.Pointer> + get BackgroundSubtractorMOG2_Close => _library._BackgroundSubtractorMOG2_ClosePtr; + ffi.Pointer> get BlockMeanHash_Close => + _library._BlockMeanHash_ClosePtr; + ffi.Pointer> get CLAHE_Close => _library._CLAHE_ClosePtr; + ffi.Pointer> get CascadeClassifier_Close => + _library._CascadeClassifier_ClosePtr; + ffi.Pointer)>> get CvStatus_Close => + _library._CvStatus_ClosePtr; + ffi.Pointer> get FaceDetectorYN_Close => + _library._FaceDetectorYN_ClosePtr; + ffi.Pointer> get FaceRecognizerSF_Close => + _library._FaceRecognizerSF_ClosePtr; + ffi.Pointer> get FastFeatureDetector_Close => + _library._FastFeatureDetector_ClosePtr; + ffi.Pointer> get FlannBasedMatcher_Close => + _library._FlannBasedMatcher_ClosePtr; + ffi.Pointer> get GFTTDetector_Close => + _library._GFTTDetector_ClosePtr; + ffi.Pointer> get HOGDescriptor_Close => + _library._HOGDescriptor_ClosePtr; + ffi.Pointer> get KAZE_Close => _library._KAZE_ClosePtr; + ffi.Pointer> get KalmanFilter_Close => + _library._KalmanFilter_ClosePtr; + ffi.Pointer> get Layer_Close => _library._Layer_ClosePtr; + ffi.Pointer> get Layer_Close_Async => + _library._Layer_Close_AsyncPtr; + ffi.Pointer> get MSER_Close => _library._MSER_ClosePtr; + ffi.Pointer> get Mat_Close => _library._Mat_ClosePtr; + ffi.Pointer)>> get Mat_CloseVoid => + _library._Mat_CloseVoidPtr; + ffi.Pointer> get MergeMertens_Close => + _library._MergeMertens_ClosePtr; + ffi.Pointer> get Net_Close => _library._Net_ClosePtr; + ffi.Pointer> get Net_Close_Async => + _library._Net_Close_AsyncPtr; + ffi.Pointer> get ORB_Close => _library._ORB_ClosePtr; + ffi.Pointer> get QRCodeDetector_Close => + _library._QRCodeDetector_ClosePtr; + ffi.Pointer> get Rng_Close => _library._Rng_ClosePtr; + ffi.Pointer> get SIFT_Close => _library._SIFT_ClosePtr; + ffi.Pointer> get SimpleBlobDetector_Close => + _library._SimpleBlobDetector_ClosePtr; + ffi.Pointer> get Stitcher_Close => + _library._Stitcher_ClosePtr; + ffi.Pointer> get Subdiv2D_Close => + _library._Subdiv2D_ClosePtr; + ffi.Pointer> get TrackerMIL_Close => + _library._TrackerMIL_ClosePtr; + ffi.Pointer> get VecChar_Close => + _library._VecChar_ClosePtr; + ffi.Pointer> get VecDMatch_Close => + _library._VecDMatch_ClosePtr; + ffi.Pointer> get VecDouble_Close => + _library._VecDouble_ClosePtr; + ffi.Pointer> get VecFloat_Close => + _library._VecFloat_ClosePtr; + ffi.Pointer> get VecInt_Close => _library._VecInt_ClosePtr; + ffi.Pointer> get VecKeyPoint_Close => + _library._VecKeyPoint_ClosePtr; + ffi.Pointer> get VecMat_Close => _library._VecMat_ClosePtr; + ffi.Pointer> get VecPoint2f_Close => + _library._VecPoint2f_ClosePtr; + ffi.Pointer> get VecPoint3f_Close => + _library._VecPoint3f_ClosePtr; + ffi.Pointer> get VecPoint_Close => + _library._VecPoint_ClosePtr; + ffi.Pointer> get VecPrim_Close => + _library._VecPrim_ClosePtr; + ffi.Pointer> get VecRect_Close => + _library._VecRect_ClosePtr; + ffi.Pointer> get VecUChar_Close => + _library._VecUChar_ClosePtr; + ffi.Pointer> get VecVec4i_Close => + _library._VecVec4i_ClosePtr; + ffi.Pointer> get VecVecChar_Close => + _library._VecVecChar_ClosePtr; + ffi.Pointer> get VecVecDMatch_Close => + _library._VecVecDMatch_ClosePtr; + ffi.Pointer> get VecVecPoint2f_Close => + _library._VecVecPoint2f_ClosePtr; + ffi.Pointer> get VecVecPoint3f_Close => + _library._VecVecPoint3f_ClosePtr; + ffi.Pointer> get VecVecPoint_Close => + _library._VecVecPoint_ClosePtr; + ffi.Pointer> get VideoCapture_Close => + _library._VideoCapture_ClosePtr; + ffi.Pointer> get VideoWriter_Close => + _library._VideoWriter_ClosePtr; + ffi.Pointer> get WeChatQRCode_Close => + _library._WeChatQRCode_ClosePtr; + ffi.Pointer)>> get Window_Close => + _library._Window_ClosePtr; + ffi.Pointer> get gapi_GComputation_Close => + _library._gapi_GComputation_ClosePtr; + ffi.Pointer> get gapi_GMat_Close => + _library._gapi_GMat_ClosePtr; + ffi.Pointer> get gapi_GScalar_Close => + _library._gapi_GScalar_ClosePtr; } final class AKAZE extends ffi.Struct { @@ -24829,33 +22454,23 @@ typedef CvCallback_1 = ffi.Pointer>; typedef CvCallback_1Function = ffi.Void Function(ffi.Pointer); typedef DartCvCallback_1Function = void Function(ffi.Pointer); typedef CvCallback_2 = ffi.Pointer>; -typedef CvCallback_2Function = ffi.Void Function( - ffi.Pointer, ffi.Pointer); -typedef DartCvCallback_2Function = void Function( - ffi.Pointer, ffi.Pointer); +typedef CvCallback_2Function = ffi.Void Function(ffi.Pointer, ffi.Pointer); +typedef DartCvCallback_2Function = void Function(ffi.Pointer, ffi.Pointer); typedef CvCallback_3 = ffi.Pointer>; typedef CvCallback_3Function = ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer); typedef DartCvCallback_3Function = void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer); typedef CvCallback_4 = ffi.Pointer>; -typedef CvCallback_4Function = ffi.Void Function(ffi.Pointer, +typedef CvCallback_4Function = ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer); +typedef DartCvCallback_4Function = void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer); +typedef CvCallback_5 = ffi.Pointer>; +typedef CvCallback_5Function = ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer); -typedef DartCvCallback_4Function = void Function(ffi.Pointer, +typedef DartCvCallback_5Function = void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer); -typedef CvCallback_5 = ffi.Pointer>; -typedef CvCallback_5Function = ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer); -typedef DartCvCallback_5Function = void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer); final class CvStatus extends ffi.Struct { @ffi.Int() @@ -24895,13 +22510,8 @@ typedef ErrorCallbackFunction = ffi.Void Function( ffi.Pointer file_name, ffi.Int line, ffi.Pointer userdata); -typedef DartErrorCallbackFunction = void Function( - int status, - ffi.Pointer func_name, - ffi.Pointer err_msg, - ffi.Pointer file_name, - int line, - ffi.Pointer userdata); +typedef DartErrorCallbackFunction = void Function(int status, ffi.Pointer func_name, + ffi.Pointer err_msg, ffi.Pointer file_name, int line, ffi.Pointer userdata); final class FaceDetectorYN extends ffi.Struct { external ffi.Pointer> ptr; diff --git a/scripts/pre-commit b/scripts/pre-commit new file mode 100644 index 00000000..f1a7b5ac --- /dev/null +++ b/scripts/pre-commit @@ -0,0 +1,2 @@ +#!/bin/sh +exec dart format --fix --set-exit-if-changed -l 110 . From 380e20f981eb6a59232a6bb7bbebae085033b6d5 Mon Sep 17 00:00:00 2001 From: Abdelaziz Mahdy Date: Thu, 27 Jun 2024 11:36:55 +0300 Subject: [PATCH 10/21] fixing callbacks and free cname --- lib/src/dnn/dnn_async.dart | 9 ++++---- lib/src/objdetect/objdetect_async.dart | 21 +++++++++--------- lib/src/opencv.g.dart | 30 +++++++++++++------------- src/objdetect/objdetect_async.cpp | 8 +++---- src/objdetect/objdetect_async.h | 4 ++-- 5 files changed, 36 insertions(+), 36 deletions(-) diff --git a/lib/src/dnn/dnn_async.dart b/lib/src/dnn/dnn_async.dart index 21a06e61..9064d1f4 100644 --- a/lib/src/dnn/dnn_async.dart +++ b/lib/src/dnn/dnn_async.dart @@ -59,15 +59,16 @@ class Layer extends CvStruct { Future inputNameToIndexAsync(String name) async { final cName = name.toNativeUtf8().cast(); - final rval = cvRunAsync( + final rval = await cvRunAsync( (callback) => CFFI.Layer_InputNameToIndex_Async(ref, cName, callback), (c, p) { final rval = p.cast().value; - calloc.free(cName); calloc.free(p); return c.complete(rval); }, ); + calloc.free(cName); + return rval; } @@ -77,11 +78,11 @@ class Layer extends CvStruct { (callback) => CFFI.Layer_OutputNameToIndex_Async(ref, cName, callback), (c, p) { final rval = p.cast().value; - calloc.free(cName); calloc.free(p); return c.complete(rval); }, ); + calloc.free(cName); return rval; } @@ -241,10 +242,10 @@ class Net extends CvStruct { await cvRunAsync0( (callback) => CFFI.Net_SetInput_Async(ref, blob.ref, cname, callback), (c) { - calloc.free(cname); return c.complete(); }, ); + calloc.free(cname); } Future forwardAsync({String outputName = ""}) async { diff --git a/lib/src/objdetect/objdetect_async.dart b/lib/src/objdetect/objdetect_async.dart index 86c78ee7..661c3a9d 100644 --- a/lib/src/objdetect/objdetect_async.dart +++ b/lib/src/objdetect/objdetect_async.dart @@ -39,10 +39,11 @@ class CascadeClassifier extends CvStruct { (callback) => CFFI.CascadeClassifier_Load_Async(ref, cname, callback), (c, p) { final rval = p.cast().value != 0; - calloc.free(cname); calloc.free(p); return c.complete(rval); }); + calloc.free(cname); + return rval; } @@ -222,11 +223,11 @@ class HOGDescriptor extends CvStruct { (callback) => CFFI.HOGDescriptor_Load_Async(ref, cname, callback), (c, p) { final rval = p.cast().value; - calloc.free(cname); calloc.free(p); return c.complete(rval); }); + calloc.free(cname); return rval; } @@ -398,7 +399,7 @@ class HOGDescriptor extends CvStruct { int groupThreshold, double eps, ) async { - final rval = cvRunAsync<(VecRect, VecDouble)>( + final rval = cvRunAsync0<(VecRect, VecDouble)>( (callback) => CFFI.HOGDescriptor_groupRectangles_Async( ref, rectList.ref, @@ -406,7 +407,7 @@ class HOGDescriptor extends CvStruct { groupThreshold, eps, callback, - ), (c, _) { + ), (c) { return c.complete((rectList, weights)); }); return rval; @@ -440,10 +441,10 @@ Future groupRectanglesAsync( int groupThreshold, double eps, ) async { - final rval = cvRunAsync( + final rval = cvRunAsync0( (callback) => CFFI.GroupRectangles_Async(rects.ref, groupThreshold, eps, callback), - (c, _) { + (c) { return c.complete(rects); }); return rval; @@ -574,10 +575,8 @@ class QRCodeDetector extends CvStruct { (c, ret, points) { final retValue = ret.cast().value; calloc.free(ret); - return c.complete(( - retValue, - VecPoint.fromPointer(points.cast()) - )); + return c.complete( + (retValue, VecPoint.fromPointer(points.cast()))); }); return rval; } @@ -591,7 +590,7 @@ class QRCodeDetector extends CvStruct { img.ref, callback, ), (c, info, points, codes, rval) { - final rvalValue=rval.cast().value; + final rvalValue = rval.cast().value; calloc.free(rval); final ret = ( rvalValue, diff --git a/lib/src/opencv.g.dart b/lib/src/opencv.g.dart index 7079d0f8..095add35 100644 --- a/lib/src/opencv.g.dart +++ b/lib/src/opencv.g.dart @@ -6143,7 +6143,7 @@ class CvNative { VecRect rects, int groupThreshold, double eps, - CvCallback_1 callback, + CvCallback_0 callback, ) { return _GroupRectangles_Async( rects, @@ -6156,9 +6156,9 @@ class CvNative { late final _GroupRectangles_AsyncPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function(VecRect, ffi.Int, ffi.Double, - CvCallback_1)>>('GroupRectangles_Async'); + CvCallback_0)>>('GroupRectangles_Async'); late final _GroupRectangles_Async = _GroupRectangles_AsyncPtr.asFunction< - ffi.Pointer Function(VecRect, int, double, CvCallback_1)>(); + ffi.Pointer Function(VecRect, int, double, CvCallback_0)>(); void HOGDescriptor_Close( HOGDescriptorPtr self, @@ -6817,7 +6817,7 @@ class CvNative { VecDouble weights, int groupThreshold, double eps, - CvCallback_1 callback, + CvCallback_0 callback, ) { return _HOGDescriptor_groupRectangles_Async( self, @@ -6837,11 +6837,11 @@ class CvNative { VecDouble, ffi.Int, ffi.Double, - CvCallback_1)>>('HOGDescriptor_groupRectangles_Async'); + CvCallback_0)>>('HOGDescriptor_groupRectangles_Async'); late final _HOGDescriptor_groupRectangles_Async = _HOGDescriptor_groupRectangles_AsyncPtr.asFunction< ffi.Pointer Function( - HOGDescriptor, VecRect, VecDouble, int, double, CvCallback_1)>(); + HOGDescriptor, VecRect, VecDouble, int, double, CvCallback_0)>(); ffi.Pointer HOG_GetDefaultPeopleDetector( ffi.Pointer rval, @@ -8173,7 +8173,7 @@ class CvNative { Mat, Mat, int, int, double, double, int)>(); void Layer_Close( - LayerPtr layer, + LayerPtr1 layer, ) { return _Layer_Close( layer, @@ -8181,12 +8181,12 @@ class CvNative { } late final _Layer_ClosePtr = - _lookup>('Layer_Close'); + _lookup>('Layer_Close'); late final _Layer_Close = - _Layer_ClosePtr.asFunction(); + _Layer_ClosePtr.asFunction(); void Layer_Close_Async( - LayerPtr1 layer, + LayerPtr layer, CvCallback_0 callback, ) { return _Layer_Close_Async( @@ -8196,10 +8196,10 @@ class CvNative { } late final _Layer_Close_AsyncPtr = - _lookup>( + _lookup>( 'Layer_Close_Async'); - late final _Layer_Close_Async = _Layer_Close_AsyncPtr.asFunction< - void Function(LayerPtr1, CvCallback_0)>(); + late final _Layer_Close_Async = + _Layer_Close_AsyncPtr.asFunction(); ffi.Pointer Layer_GetName( Layer layer, @@ -24650,9 +24650,9 @@ class _SymbolAddresses { _library._KAZE_ClosePtr; ffi.Pointer> get KalmanFilter_Close => _library._KalmanFilter_ClosePtr; - ffi.Pointer> + ffi.Pointer> get Layer_Close => _library._Layer_ClosePtr; - ffi.Pointer> + ffi.Pointer> get Layer_Close_Async => _library._Layer_Close_AsyncPtr; ffi.Pointer> get MSER_Close => _library._MSER_ClosePtr; diff --git a/src/objdetect/objdetect_async.cpp b/src/objdetect/objdetect_async.cpp index 7de43b95..e5a36274 100644 --- a/src/objdetect/objdetect_async.cpp +++ b/src/objdetect/objdetect_async.cpp @@ -196,17 +196,17 @@ CvStatus *HOGDescriptor_getWinSigma_Async(HOGDescriptor self, CvCallback_1 callb END_WRAP } -CvStatus *HOGDescriptor_groupRectangles_Async(HOGDescriptor self, VecRect rectList, VecDouble weights, int groupThreshold, double eps, CvCallback_1 callback) { +CvStatus *HOGDescriptor_groupRectangles_Async(HOGDescriptor self, VecRect rectList, VecDouble weights, int groupThreshold, double eps, CvCallback_0 callback) { BEGIN_WRAP self.ptr->groupRectangles(*rectList.ptr, *weights.ptr, groupThreshold, eps); - callback(new int(0)); + callback(); END_WRAP } -CvStatus *GroupRectangles_Async(VecRect rects, int groupThreshold, double eps, CvCallback_1 callback) { +CvStatus *GroupRectangles_Async(VecRect rects, int groupThreshold, double eps, CvCallback_0 callback) { BEGIN_WRAP cv::groupRectangles(*rects.ptr, groupThreshold, eps); - callback(new int(0)); + callback(); END_WRAP } diff --git a/src/objdetect/objdetect_async.h b/src/objdetect/objdetect_async.h index 3d7bd848..9743fd0d 100644 --- a/src/objdetect/objdetect_async.h +++ b/src/objdetect/objdetect_async.h @@ -54,8 +54,8 @@ CvStatus *HOGDescriptor_SetSVMDetector_Async(HOGDescriptor self, VecFloat det, C CvStatus *HOGDescriptor_getDaimlerPeopleDetector_Async(CvCallback_1 callback); CvStatus *HOGDescriptor_getDescriptorSize_Async(HOGDescriptor self, CvCallback_1 callback); CvStatus *HOGDescriptor_getWinSigma_Async(HOGDescriptor self, CvCallback_1 callback); -CvStatus *HOGDescriptor_groupRectangles_Async(HOGDescriptor self, VecRect rectList, VecDouble weights, int groupThreshold, double eps, CvCallback_1 callback); -CvStatus *GroupRectangles_Async(VecRect rects, int groupThreshold, double eps, CvCallback_1 callback); +CvStatus *HOGDescriptor_groupRectangles_Async(HOGDescriptor self, VecRect rectList, VecDouble weights, int groupThreshold, double eps, CvCallback_0 callback); +CvStatus *GroupRectangles_Async(VecRect rects, int groupThreshold, double eps, CvCallback_0 callback); // QRCodeDetector CvStatus *QRCodeDetector_New_Async(CvCallback_1 callback); From 978a499c775c9c0b77eb7a8b0c94035a7d58763f Mon Sep 17 00:00:00 2001 From: Abdelaziz Mahdy Date: Thu, 27 Jun 2024 11:43:37 +0300 Subject: [PATCH 11/21] fix callbacks on setters --- lib/src/objdetect/objdetect_async.dart | 153 +- lib/src/opencv.g.dart | 11660 ++++++++++++++--------- src/objdetect/objdetect_async.cpp | 32 +- src/objdetect/objdetect_async.h | 16 +- 4 files changed, 7137 insertions(+), 4724 deletions(-) diff --git a/lib/src/objdetect/objdetect_async.dart b/lib/src/objdetect/objdetect_async.dart index 9ab933b9..5ef027bd 100644 --- a/lib/src/objdetect/objdetect_async.dart +++ b/lib/src/objdetect/objdetect_async.dart @@ -12,7 +12,8 @@ import '../core/vec.dart'; import '../opencv.g.dart' as cvg; class CascadeClassifier extends CvStruct { - CascadeClassifier._(cvg.CascadeClassifierPtr ptr, [bool attach = true]) : super.fromPointer(ptr) { + CascadeClassifier._(cvg.CascadeClassifierPtr ptr, [bool attach = true]) + : super.fromPointer(ptr) { if (attach) { finalizer.attach(this, ptr.cast(), detach: this); } @@ -34,8 +35,9 @@ class CascadeClassifier extends CvStruct { Future loadAsync(String name) async { final cname = name.toNativeUtf8().cast(); - final rval = - cvRunAsync((callback) => CFFI.CascadeClassifier_Load_Async(ref, cname, callback), (c, p) { + final rval = cvRunAsync( + (callback) => CFFI.CascadeClassifier_Load_Async(ref, cname, callback), + (c, p) { final rval = p.cast().value != 0; calloc.free(p); return c.complete(rval); @@ -89,13 +91,17 @@ class CascadeClassifier extends CvStruct { callback, ), (c, ret, pnums) { return c.complete( - (VecRect.fromPointer(ret.cast()), VecInt.fromPointer(pnums.cast())), + ( + VecRect.fromPointer(ret.cast()), + VecInt.fromPointer(pnums.cast()) + ), ); }); return rval; } - Future<(VecRect objects, VecInt rejectLevels, VecDouble levelWeights)> detectMultiScale3Async( + Future<(VecRect objects, VecInt rejectLevels, VecDouble levelWeights)> + detectMultiScale3Async( InputArray image, { double scaleFactor = 1.1, int minNeighbors = 3, @@ -128,7 +134,9 @@ class CascadeClassifier extends CvStruct { } Future emptyAsync() async { - final rval = cvRunAsync((callback) => CFFI.CascadeClassifier_Empty_Async(ref, callback), (c, p) { + final rval = cvRunAsync( + (callback) => CFFI.CascadeClassifier_Empty_Async(ref, callback), + (c, p) { final rval = p.cast().value; calloc.free(p); return c.complete(rval); @@ -137,8 +145,9 @@ class CascadeClassifier extends CvStruct { } Future getFeatureTypeAsync() async { - final rval = - cvRunAsync((callback) => CFFI.CascadeClassifier_getFeatureType_Async(ref, callback), (c, p) { + final rval = cvRunAsync( + (callback) => + CFFI.CascadeClassifier_getFeatureType_Async(ref, callback), (c, p) { final rval = p.cast().value; calloc.free(p); @@ -149,7 +158,9 @@ class CascadeClassifier extends CvStruct { Future<(int, int)> getOriginalWindowSizeAsync() async { final rval = cvRunAsync<(int, int)>( - (callback) => CFFI.CascadeClassifier_getOriginalWindowSize_Async(ref, callback), (c, p) { + (callback) => + CFFI.CascadeClassifier_getOriginalWindowSize_Async(ref, callback), + (c, p) { final size = p.cast().ref; final ret = (size.width, size.height); return c.complete(ret); @@ -159,7 +170,9 @@ class CascadeClassifier extends CvStruct { Future isOldFormatCascadeAsync() async { final rval = cvRunAsync( - (callback) => CFFI.CascadeClassifier_isOldFormatCascade_Async(ref, callback), (c, p) { + (callback) => + CFFI.CascadeClassifier_isOldFormatCascade_Async(ref, callback), + (c, p) { final rval = p.cast().value; calloc.free(p); return c.complete(rval); @@ -183,7 +196,8 @@ class CascadeClassifier extends CvStruct { } class HOGDescriptor extends CvStruct { - HOGDescriptor._(cvg.HOGDescriptorPtr ptr, [bool attach = true]) : super.fromPointer(ptr) { + HOGDescriptor._(cvg.HOGDescriptorPtr ptr, [bool attach = true]) + : super.fromPointer(ptr) { if (attach) { finalizer.attach(this, ptr.cast(), detach: this); } @@ -205,7 +219,9 @@ class HOGDescriptor extends CvStruct { Future loadAsync(String name) async { final cname = name.toNativeUtf8().cast(); - final rval = cvRunAsync((callback) => CFFI.HOGDescriptor_Load_Async(ref, cname, callback), (c, p) { + final rval = cvRunAsync( + (callback) => CFFI.HOGDescriptor_Load_Async(ref, cname, callback), + (c, p) { final rval = p.cast().value; calloc.free(p); @@ -260,7 +276,8 @@ class HOGDescriptor extends CvStruct { return rval; } - Future<(VecPoint foundLocations, VecDouble weights, VecPoint searchLocations)> detect2Async( + Future<(VecPoint foundLocations, VecDouble weights, VecPoint searchLocations)> + detect2Async( InputArray img, { double hitThreshold = 0, (int, int) winStride = (0, 0), @@ -339,22 +356,25 @@ class HOGDescriptor extends CvStruct { } static Future getDefaultPeopleDetectorAsync() async { - final rval = cvRunAsync(CFFI.HOG_GetDefaultPeopleDetector_Async, (c, v) { + final rval = + cvRunAsync(CFFI.HOG_GetDefaultPeopleDetector_Async, (c, v) { return c.complete(VecFloat.fromPointer(v.cast())); }); return rval; } static Future getDaimlerPeopleDetectorAsync() async { - final rval = cvRunAsync(CFFI.HOGDescriptor_getDaimlerPeopleDetector_Async, (c, v) { + final rval = cvRunAsync( + CFFI.HOGDescriptor_getDaimlerPeopleDetector_Async, (c, v) { return c.complete(VecFloat.fromPointer(v.cast())); }); return rval; } Future getDescriptorSizeAsync() async { - final rval = - cvRunAsync((callback) => CFFI.HOGDescriptor_getDescriptorSize_Async(ref, callback), (c, p) { + final rval = cvRunAsync( + (callback) => CFFI.HOGDescriptor_getDescriptorSize_Async(ref, callback), + (c, p) { final rval = p.cast().value; calloc.free(p); return c.complete(rval); @@ -363,8 +383,9 @@ class HOGDescriptor extends CvStruct { } Future getWinSigmaAsync() async { - final rval = - cvRunAsync((callback) => CFFI.HOGDescriptor_getWinSigma_Async(ref, callback), (c, p) { + final rval = cvRunAsync( + (callback) => CFFI.HOGDescriptor_getWinSigma_Async(ref, callback), + (c, p) { final rval = p.cast().value; calloc.free(p); return c.complete(rval); @@ -393,15 +414,18 @@ class HOGDescriptor extends CvStruct { } Future setSVMDetectorAsync(VecFloat det) async { - await cvRunAsync((callback) => CFFI.HOGDescriptor_SetSVMDetector_Async(ref, det.ref, callback), - (c, _) { + await cvRunAsync0( + (callback) => + CFFI.HOGDescriptor_SetSVMDetector_Async(ref, det.ref, callback), + (c) { return c.complete(); }); } @override cvg.HOGDescriptor get ref => ptr.ref; - static final finalizer = OcvFinalizer(CFFI.addresses.HOGDescriptor_Close); + static final finalizer = + OcvFinalizer(CFFI.addresses.HOGDescriptor_Close); void dispose() { finalizer.detach(this); @@ -427,7 +451,8 @@ Future groupRectanglesAsync( } class QRCodeDetector extends CvStruct { - QRCodeDetector._(cvg.QRCodeDetectorPtr ptr, [bool attach = true]) : super.fromPointer(ptr) { + QRCodeDetector._(cvg.QRCodeDetectorPtr ptr, [bool attach = true]) + : super.fromPointer(ptr) { if (attach) { finalizer.attach(this, ptr.cast(), detach: this); } @@ -452,13 +477,17 @@ class QRCodeDetector extends CvStruct { callback, ), (c, rval, straightQRcode) { return c.complete( - (rval.cast().toDartString(), Mat.fromPointer(straightQRcode.cast())), + ( + rval.cast().toDartString(), + Mat.fromPointer(straightQRcode.cast()) + ), ); }); return rval; } - Future<(String rval, VecPoint points, Mat straightQRcode)> detectAndDecodeCurvedAsync( + Future<(String rval, VecPoint points, Mat straightQRcode)> + detectAndDecodeCurvedAsync( InputArray img, { VecPoint? points, Mat? straightQRcode, @@ -486,7 +515,8 @@ class QRCodeDetector extends CvStruct { OutputArray? straightCode, }) async { final rval = cvRunAsync3<(String, VecPoint, Mat)>( - (callback) => CFFI.QRCodeDetector_DetectAndDecode_Async(ref, img.ref, callback), + (callback) => + CFFI.QRCodeDetector_DetectAndDecode_Async(ref, img.ref, callback), (c, ret, points, straightCode) { return c.complete( ( @@ -504,7 +534,9 @@ class QRCodeDetector extends CvStruct { VecPoint? points, }) async { final rval = cvRunAsync2<(bool, VecPoint)>( - (callback) => CFFI.QRCodeDetector_Detect_Async(ref, input.ref, callback), (c, ret, points) { + (callback) => + CFFI.QRCodeDetector_Detect_Async(ref, input.ref, callback), + (c, ret, points) { final retValue = ret.cast().value; calloc.free(ret); return c.complete( @@ -538,7 +570,9 @@ class QRCodeDetector extends CvStruct { VecPoint? points, }) async { final rval = cvRunAsync2<(bool, VecPoint)>( - (callback) => CFFI.QRCodeDetector_DetectMulti_Async(ref, img.ref, callback), (c, ret, points) { + (callback) => + CFFI.QRCodeDetector_DetectMulti_Async(ref, img.ref, callback), + (c, ret, points) { final retValue = ret.cast().value; calloc.free(ret); return c.complete( @@ -570,31 +604,36 @@ class QRCodeDetector extends CvStruct { } Future setEpsXAsync(double epsX) async { - await cvRunAsync((callback) => CFFI.QRCodeDetector_setEpsX_Async(ref, epsX, callback), (c, _) { + await cvRunAsync0( + (callback) => CFFI.QRCodeDetector_setEpsX_Async(ref, epsX, callback), + (c) { return c.complete(); }); } Future setEpsYAsync(double epsY) async { - await cvRunAsync((callback) => CFFI.QRCodeDetector_setEpsY_Async(ref, epsY, callback), (c, _) { + await cvRunAsync0( + (callback) => CFFI.QRCodeDetector_setEpsY_Async(ref, epsY, callback), + (c) { return c.complete(); }); } Future setUseAlignmentMarkersAsync(bool useAlignmentMarkers) async { - await cvRunAsync( + await cvRunAsync0( (callback) => CFFI.QRCodeDetector_setUseAlignmentMarkers_Async( ref, useAlignmentMarkers, callback, - ), (c, _) { + ), (c) { return c.complete(); }); } @override cvg.QRCodeDetector get ref => ptr.ref; - static final finalizer = OcvFinalizer(CFFI.addresses.QRCodeDetector_Close); + static final finalizer = + OcvFinalizer(CFFI.addresses.QRCodeDetector_Close); void dispose() { finalizer.detach(this); @@ -606,7 +645,8 @@ class QRCodeDetector extends CvStruct { } class FaceDetectorYN extends CvStruct { - FaceDetectorYN._(cvg.FaceDetectorYNPtr ptr, [bool attach = true]) : super.fromPointer(ptr) { + FaceDetectorYN._(cvg.FaceDetectorYNPtr ptr, [bool attach = true]) + : super.fromPointer(ptr) { if (attach) { finalizer.attach(this, ptr.cast(), detach: this); } @@ -675,8 +715,9 @@ class FaceDetectorYN extends CvStruct { } Future<(int, int)> getInputSizeAsync() async { - final rval = - cvRunAsync<(int, int)>((callback) => CFFI.FaceDetectorYN_GetInputSize_Async(ref, callback), (c, p) { + final rval = cvRunAsync<(int, int)>( + (callback) => CFFI.FaceDetectorYN_GetInputSize_Async(ref, callback), + (c, p) { final size = p.cast().ref; final ret = (size.width, size.height); return c.complete(ret); @@ -685,8 +726,9 @@ class FaceDetectorYN extends CvStruct { } Future getScoreThresholdAsync() async { - final rval = - cvRunAsync((callback) => CFFI.FaceDetectorYN_GetScoreThreshold_Async(ref, callback), (c, p) { + final rval = cvRunAsync( + (callback) => + CFFI.FaceDetectorYN_GetScoreThreshold_Async(ref, callback), (c, p) { final rval = p.cast().value; calloc.free(p); return c.complete(rval); @@ -695,8 +737,9 @@ class FaceDetectorYN extends CvStruct { } Future getNmsThresholdAsync() async { - final rval = - cvRunAsync((callback) => CFFI.FaceDetectorYN_GetNMSThreshold_Async(ref, callback), (c, p) { + final rval = cvRunAsync( + (callback) => CFFI.FaceDetectorYN_GetNMSThreshold_Async(ref, callback), + (c, p) { final rval = p.cast().value; calloc.free(p); return c.complete(rval); @@ -705,7 +748,8 @@ class FaceDetectorYN extends CvStruct { } Future getTopKAsync() async { - final rval = cvRunAsync((callback) => CFFI.FaceDetectorYN_GetTopK_Async(ref, callback), (c, p) { + final rval = cvRunAsync( + (callback) => CFFI.FaceDetectorYN_GetTopK_Async(ref, callback), (c, p) { final rval = p.cast().value; calloc.free(p); return c.complete(rval); @@ -714,55 +758,59 @@ class FaceDetectorYN extends CvStruct { } Future detectAsync(Mat image) async { - final rval = - cvRunAsync((callback) => CFFI.FaceDetectorYN_Detect_Async(ref, image.ref, callback), (c, p) { + final rval = cvRunAsync( + (callback) => + CFFI.FaceDetectorYN_Detect_Async(ref, image.ref, callback), (c, p) { return c.complete(Mat.fromPointer(p.cast())); }); return rval; } Future setInputSizeAsync((int, int) inputSize) async { - await cvRunAsync( + await cvRunAsync0( (callback) => CFFI.FaceDetectorYN_SetInputSize_Async( ref, inputSize.cvd.ref, callback, - ), (c, _) { + ), (c) { return c.complete(); }); } Future setScoreThresholdAsync(double scoreThreshold) async { - await cvRunAsync( + await cvRunAsync0( (callback) => CFFI.FaceDetectorYN_SetScoreThreshold_Async( ref, scoreThreshold, callback, - ), (c, _) { + ), (c) { return c.complete(); }); } Future setNMSThresholdAsync(double nmsThreshold) async { - await cvRunAsync( + await cvRunAsync0( (callback) => CFFI.FaceDetectorYN_SetNMSThreshold_Async( ref, nmsThreshold, callback, - ), (c, _) { + ), (c) { return c.complete(); }); } Future setTopKAsync(int topK) async { - await cvRunAsync((callback) => CFFI.FaceDetectorYN_SetTopK_Async(ref, topK, callback), (c, _) { + await cvRunAsync0( + (callback) => CFFI.FaceDetectorYN_SetTopK_Async(ref, topK, callback), + (c) { return c.complete(); }); } @override cvg.FaceDetectorYN get ref => ptr.ref; - static final finalizer = OcvFinalizer(CFFI.addresses.FaceDetectorYN_Close); + static final finalizer = + OcvFinalizer(CFFI.addresses.FaceDetectorYN_Close); void dispose() { finalizer.detach(this); @@ -774,7 +822,8 @@ class FaceDetectorYN extends CvStruct { } class FaceRecognizerSF extends CvStruct { - FaceRecognizerSF._(cvg.FaceRecognizerSFPtr ptr, [bool attach = true]) : super.fromPointer(ptr) { + FaceRecognizerSF._(cvg.FaceRecognizerSFPtr ptr, [bool attach = true]) + : super.fromPointer(ptr) { if (attach) { finalizer.attach(this, ptr.cast(), detach: this); } diff --git a/lib/src/opencv.g.dart b/lib/src/opencv.g.dart index e6862153..f7bc1683 100644 --- a/lib/src/opencv.g.dart +++ b/lib/src/opencv.g.dart @@ -16,13 +16,16 @@ import 'dart:ffi' as ffi; /// class CvNative { /// Holds the symbol lookup function. - final ffi.Pointer Function(String symbolName) _lookup; + final ffi.Pointer Function(String symbolName) + _lookup; /// The symbols are looked up in [dynamicLibrary]. CvNative(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; /// The symbols are looked up with [lookup]. - CvNative.fromLookup(ffi.Pointer Function(String symbolName) lookup) + CvNative.fromLookup( + ffi.Pointer Function(String symbolName) + lookup) : _lookup = lookup; void AKAZE_Close( @@ -33,8 +36,10 @@ class CvNative { ); } - late final _AKAZE_ClosePtr = _lookup>('AKAZE_Close'); - late final _AKAZE_Close = _AKAZE_ClosePtr.asFunction(); + late final _AKAZE_ClosePtr = + _lookup>('AKAZE_Close'); + late final _AKAZE_Close = + _AKAZE_ClosePtr.asFunction(); ffi.Pointer AKAZE_Create( ffi.Pointer rval, @@ -44,10 +49,11 @@ class CvNative { ); } - late final _AKAZE_CreatePtr = - _lookup Function(ffi.Pointer)>>('AKAZE_Create'); - late final _AKAZE_Create = - _AKAZE_CreatePtr.asFunction Function(ffi.Pointer)>(); + late final _AKAZE_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('AKAZE_Create'); + late final _AKAZE_Create = _AKAZE_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer AKAZE_Detect( AKAZE a, @@ -61,11 +67,12 @@ class CvNative { ); } - late final _AKAZE_DetectPtr = - _lookup Function(AKAZE, Mat, ffi.Pointer)>>( - 'AKAZE_Detect'); - late final _AKAZE_Detect = - _AKAZE_DetectPtr.asFunction Function(AKAZE, Mat, ffi.Pointer)>(); + late final _AKAZE_DetectPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + AKAZE, Mat, ffi.Pointer)>>('AKAZE_Detect'); + late final _AKAZE_Detect = _AKAZE_DetectPtr.asFunction< + ffi.Pointer Function(AKAZE, Mat, ffi.Pointer)>(); ffi.Pointer AKAZE_DetectAndCompute( AKAZE a, @@ -84,10 +91,12 @@ class CvNative { } late final _AKAZE_DetectAndComputePtr = _lookup< - ffi.NativeFunction Function(AKAZE, Mat, Mat, Mat, ffi.Pointer)>>( - 'AKAZE_DetectAndCompute'); + ffi.NativeFunction< + ffi.Pointer Function(AKAZE, Mat, Mat, Mat, + ffi.Pointer)>>('AKAZE_DetectAndCompute'); late final _AKAZE_DetectAndCompute = _AKAZE_DetectAndComputePtr.asFunction< - ffi.Pointer Function(AKAZE, Mat, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + AKAZE, Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer AdaptiveThreshold( Mat src, @@ -111,10 +120,11 @@ class CvNative { late final _AdaptiveThresholdPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Double, ffi.Int, ffi.Int, ffi.Int, ffi.Double)>>('AdaptiveThreshold'); + ffi.Pointer Function(Mat, Mat, ffi.Double, ffi.Int, ffi.Int, + ffi.Int, ffi.Double)>>('AdaptiveThreshold'); late final _AdaptiveThreshold = _AdaptiveThresholdPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, int, int, int, double)>(); + ffi.Pointer Function( + Mat, Mat, double, int, int, int, double)>(); void AgastFeatureDetector_Close( AgastFeatureDetectorPtr a, @@ -125,9 +135,10 @@ class CvNative { } late final _AgastFeatureDetector_ClosePtr = - _lookup>('AgastFeatureDetector_Close'); - late final _AgastFeatureDetector_Close = - _AgastFeatureDetector_ClosePtr.asFunction(); + _lookup>( + 'AgastFeatureDetector_Close'); + late final _AgastFeatureDetector_Close = _AgastFeatureDetector_ClosePtr + .asFunction(); ffi.Pointer AgastFeatureDetector_Create( ffi.Pointer rval, @@ -137,11 +148,14 @@ class CvNative { ); } - late final _AgastFeatureDetector_CreatePtr = - _lookup Function(ffi.Pointer)>>( - 'AgastFeatureDetector_Create'); - late final _AgastFeatureDetector_Create = _AgastFeatureDetector_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _AgastFeatureDetector_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>( + 'AgastFeatureDetector_Create'); + late final _AgastFeatureDetector_Create = + _AgastFeatureDetector_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer AgastFeatureDetector_Detect( AgastFeatureDetector a, @@ -157,10 +171,12 @@ class CvNative { late final _AgastFeatureDetector_DetectPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(AgastFeatureDetector, Mat, + ffi.Pointer)>>('AgastFeatureDetector_Detect'); + late final _AgastFeatureDetector_Detect = + _AgastFeatureDetector_DetectPtr.asFunction< ffi.Pointer Function( - AgastFeatureDetector, Mat, ffi.Pointer)>>('AgastFeatureDetector_Detect'); - late final _AgastFeatureDetector_Detect = _AgastFeatureDetector_DetectPtr.asFunction< - ffi.Pointer Function(AgastFeatureDetector, Mat, ffi.Pointer)>(); + AgastFeatureDetector, Mat, ffi.Pointer)>(); void AlignMTB_Close( AlignMTBPtr b, @@ -171,8 +187,10 @@ class CvNative { } late final _AlignMTB_ClosePtr = - _lookup>('AlignMTB_Close'); - late final _AlignMTB_Close = _AlignMTB_ClosePtr.asFunction(); + _lookup>( + 'AlignMTB_Close'); + late final _AlignMTB_Close = + _AlignMTB_ClosePtr.asFunction(); ffi.Pointer AlignMTB_Create( ffi.Pointer rval, @@ -182,10 +200,12 @@ class CvNative { ); } - late final _AlignMTB_CreatePtr = - _lookup Function(ffi.Pointer)>>('AlignMTB_Create'); - late final _AlignMTB_Create = - _AlignMTB_CreatePtr.asFunction Function(ffi.Pointer)>(); + late final _AlignMTB_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('AlignMTB_Create'); + late final _AlignMTB_Create = _AlignMTB_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer AlignMTB_CreateWithParams( int max_bits, @@ -202,11 +222,13 @@ class CvNative { } late final _AlignMTB_CreateWithParamsPtr = _lookup< - ffi - .NativeFunction Function(ffi.Int, ffi.Int, ffi.Bool, ffi.Pointer)>>( - 'AlignMTB_CreateWithParams'); - late final _AlignMTB_CreateWithParams = _AlignMTB_CreateWithParamsPtr.asFunction< - ffi.Pointer Function(int, int, bool, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Int, ffi.Bool, + ffi.Pointer)>>('AlignMTB_CreateWithParams'); + late final _AlignMTB_CreateWithParams = + _AlignMTB_CreateWithParamsPtr.asFunction< + ffi.Pointer Function( + int, int, bool, ffi.Pointer)>(); ffi.Pointer AlignMTB_Process( AlignMTB b, @@ -220,9 +242,10 @@ class CvNative { ); } - late final _AlignMTB_ProcessPtr = - _lookup Function(AlignMTB, VecMat, ffi.Pointer)>>( - 'AlignMTB_Process'); + late final _AlignMTB_ProcessPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + AlignMTB, VecMat, ffi.Pointer)>>('AlignMTB_Process'); late final _AlignMTB_Process = _AlignMTB_ProcessPtr.asFunction< ffi.Pointer Function(AlignMTB, VecMat, ffi.Pointer)>(); @@ -238,9 +261,11 @@ class CvNative { ); } - late final _ApplyColorMapPtr = - _lookup Function(Mat, Mat, ffi.Int)>>('ApplyColorMap'); - late final _ApplyColorMap = _ApplyColorMapPtr.asFunction Function(Mat, Mat, int)>(); + late final _ApplyColorMapPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int)>>('ApplyColorMap'); + late final _ApplyColorMap = _ApplyColorMapPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int)>(); ffi.Pointer ApplyCustomColorMap( Mat src, @@ -254,10 +279,11 @@ class CvNative { ); } - late final _ApplyCustomColorMapPtr = - _lookup Function(Mat, Mat, Mat)>>('ApplyCustomColorMap'); - late final _ApplyCustomColorMap = - _ApplyCustomColorMapPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _ApplyCustomColorMapPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'ApplyCustomColorMap'); + late final _ApplyCustomColorMap = _ApplyCustomColorMapPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer ApproxPolyDP( VecPoint curve, @@ -275,10 +301,11 @@ class CvNative { late final _ApproxPolyDPPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Double, ffi.Bool, ffi.Pointer)>>('ApproxPolyDP'); + ffi.Pointer Function(VecPoint, ffi.Double, ffi.Bool, + ffi.Pointer)>>('ApproxPolyDP'); late final _ApproxPolyDP = _ApproxPolyDPPtr.asFunction< - ffi.Pointer Function(VecPoint, double, bool, ffi.Pointer)>(); + ffi.Pointer Function( + VecPoint, double, bool, ffi.Pointer)>(); ffi.Pointer ArcLength( VecPoint curve, @@ -293,10 +320,12 @@ class CvNative { } late final _ArcLengthPtr = _lookup< - ffi.NativeFunction Function(VecPoint, ffi.Bool, ffi.Pointer)>>( - 'ArcLength'); - late final _ArcLength = - _ArcLengthPtr.asFunction Function(VecPoint, bool, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Bool, ffi.Pointer)>>('ArcLength'); + late final _ArcLength = _ArcLengthPtr.asFunction< + ffi.Pointer Function( + VecPoint, bool, ffi.Pointer)>(); ffi.Pointer ArrowedLine( Mat img, @@ -322,10 +351,11 @@ class CvNative { late final _ArrowedLinePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Point, Point, Scalar, ffi.Int, ffi.Int, ffi.Int, ffi.Double)>>('ArrowedLine'); + ffi.Pointer Function(Mat, Point, Point, Scalar, ffi.Int, + ffi.Int, ffi.Int, ffi.Double)>>('ArrowedLine'); late final _ArrowedLine = _ArrowedLinePtr.asFunction< - ffi.Pointer Function(Mat, Point, Point, Scalar, int, int, int, double)>(); + ffi.Pointer Function( + Mat, Point, Point, Scalar, int, int, int, double)>(); void ArucoDetectorParameters_Close( ArucoDetectorParametersPtr ap, @@ -335,11 +365,11 @@ class CvNative { ); } - late final _ArucoDetectorParameters_ClosePtr = - _lookup>( - 'ArucoDetectorParameters_Close'); - late final _ArucoDetectorParameters_Close = - _ArucoDetectorParameters_ClosePtr.asFunction(); + late final _ArucoDetectorParameters_ClosePtr = _lookup< + ffi.NativeFunction>( + 'ArucoDetectorParameters_Close'); + late final _ArucoDetectorParameters_Close = _ArucoDetectorParameters_ClosePtr + .asFunction(); ffi.Pointer ArucoDetectorParameters_Create( ffi.Pointer rval, @@ -349,11 +379,15 @@ class CvNative { ); } - late final _ArucoDetectorParameters_CreatePtr = - _lookup Function(ffi.Pointer)>>( - 'ArucoDetectorParameters_Create'); - late final _ArucoDetectorParameters_Create = _ArucoDetectorParameters_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _ArucoDetectorParameters_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>( + 'ArucoDetectorParameters_Create'); + late final _ArucoDetectorParameters_Create = + _ArucoDetectorParameters_CreatePtr.asFunction< + ffi.Pointer Function( + ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAdaptiveThreshConstant( ArucoDetectorParameters ap, @@ -366,12 +400,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetAdaptiveThreshConstantPtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAdaptiveThreshConstant'); late final _ArucoDetectorParameters_GetAdaptiveThreshConstant = _ArucoDetectorParameters_GetAdaptiveThreshConstantPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAdaptiveThreshWinSizeMax( ArucoDetectorParameters ap, @@ -384,11 +420,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetAdaptiveThreshWinSizeMaxPtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAdaptiveThreshWinSizeMax'); late final _ArucoDetectorParameters_GetAdaptiveThreshWinSizeMax = _ArucoDetectorParameters_GetAdaptiveThreshWinSizeMaxPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAdaptiveThreshWinSizeMin( ArucoDetectorParameters ap, @@ -401,11 +440,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetAdaptiveThreshWinSizeMinPtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAdaptiveThreshWinSizeMin'); late final _ArucoDetectorParameters_GetAdaptiveThreshWinSizeMin = _ArucoDetectorParameters_GetAdaptiveThreshWinSizeMinPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAdaptiveThreshWinSizeStep( ArucoDetectorParameters ap, @@ -418,11 +460,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetAdaptiveThreshWinSizeStepPtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAdaptiveThreshWinSizeStep'); late final _ArucoDetectorParameters_GetAdaptiveThreshWinSizeStep = _ArucoDetectorParameters_GetAdaptiveThreshWinSizeStepPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagCriticalRad( ArucoDetectorParameters ap, @@ -435,12 +480,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagCriticalRadPtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagCriticalRad'); late final _ArucoDetectorParameters_GetAprilTagCriticalRad = _ArucoDetectorParameters_GetAprilTagCriticalRadPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagDeglitch( ArucoDetectorParameters ap, @@ -453,10 +500,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagDeglitchPtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagDeglitch'); - late final _ArucoDetectorParameters_GetAprilTagDeglitch = _ArucoDetectorParameters_GetAprilTagDeglitchPtr - .asFunction Function(ArucoDetectorParameters, ffi.Pointer)>(); + late final _ArucoDetectorParameters_GetAprilTagDeglitch = + _ArucoDetectorParameters_GetAprilTagDeglitchPtr.asFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagMaxLineFitMse( ArucoDetectorParameters ap, @@ -469,12 +520,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagMaxLineFitMsePtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagMaxLineFitMse'); late final _ArucoDetectorParameters_GetAprilTagMaxLineFitMse = _ArucoDetectorParameters_GetAprilTagMaxLineFitMsePtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagMaxNmaxima( ArucoDetectorParameters ap, @@ -487,11 +540,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagMaxNmaximaPtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagMaxNmaxima'); late final _ArucoDetectorParameters_GetAprilTagMaxNmaxima = _ArucoDetectorParameters_GetAprilTagMaxNmaximaPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagMinClusterPixels( ArucoDetectorParameters ap, @@ -504,11 +560,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagMinClusterPixelsPtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagMinClusterPixels'); late final _ArucoDetectorParameters_GetAprilTagMinClusterPixels = _ArucoDetectorParameters_GetAprilTagMinClusterPixelsPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagMinWhiteBlackDiff( ArucoDetectorParameters ap, @@ -521,11 +580,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagMinWhiteBlackDiffPtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagMinWhiteBlackDiff'); late final _ArucoDetectorParameters_GetAprilTagMinWhiteBlackDiff = _ArucoDetectorParameters_GetAprilTagMinWhiteBlackDiffPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagQuadDecimate( ArucoDetectorParameters ap, @@ -538,12 +600,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagQuadDecimatePtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagQuadDecimate'); late final _ArucoDetectorParameters_GetAprilTagQuadDecimate = _ArucoDetectorParameters_GetAprilTagQuadDecimatePtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagQuadSigma( ArucoDetectorParameters ap, @@ -556,13 +620,17 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagQuadSigmaPtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagQuadSigma'); - late final _ArucoDetectorParameters_GetAprilTagQuadSigma = _ArucoDetectorParameters_GetAprilTagQuadSigmaPtr - .asFunction Function(ArucoDetectorParameters, ffi.Pointer)>(); + late final _ArucoDetectorParameters_GetAprilTagQuadSigma = + _ArucoDetectorParameters_GetAprilTagQuadSigmaPtr.asFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); - ffi.Pointer ArucoDetectorParameters_GetCornerRefinementMaxIterations( + ffi.Pointer + ArucoDetectorParameters_GetCornerRefinementMaxIterations( ArucoDetectorParameters ap, ffi.Pointer rval, ) { @@ -572,12 +640,16 @@ class CvNative { ); } - late final _ArucoDetectorParameters_GetCornerRefinementMaxIterationsPtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( - 'ArucoDetectorParameters_GetCornerRefinementMaxIterations'); + late final _ArucoDetectorParameters_GetCornerRefinementMaxIterationsPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( + 'ArucoDetectorParameters_GetCornerRefinementMaxIterations'); late final _ArucoDetectorParameters_GetCornerRefinementMaxIterations = _ArucoDetectorParameters_GetCornerRefinementMaxIterationsPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetCornerRefinementMethod( ArucoDetectorParameters ap, @@ -590,11 +662,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetCornerRefinementMethodPtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetCornerRefinementMethod'); late final _ArucoDetectorParameters_GetCornerRefinementMethod = _ArucoDetectorParameters_GetCornerRefinementMethodPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetCornerRefinementMinAccuracy( ArucoDetectorParameters ap, @@ -606,13 +681,16 @@ class CvNative { ); } - late final _ArucoDetectorParameters_GetCornerRefinementMinAccuracyPtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( - 'ArucoDetectorParameters_GetCornerRefinementMinAccuracy'); + late final _ArucoDetectorParameters_GetCornerRefinementMinAccuracyPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( + 'ArucoDetectorParameters_GetCornerRefinementMinAccuracy'); late final _ArucoDetectorParameters_GetCornerRefinementMinAccuracy = _ArucoDetectorParameters_GetCornerRefinementMinAccuracyPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetCornerRefinementWinSize( ArucoDetectorParameters ap, @@ -625,11 +703,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetCornerRefinementWinSizePtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetCornerRefinementWinSize'); late final _ArucoDetectorParameters_GetCornerRefinementWinSize = _ArucoDetectorParameters_GetCornerRefinementWinSizePtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetDetectInvertedMarker( ArucoDetectorParameters ap, @@ -642,11 +723,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetDetectInvertedMarkerPtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetDetectInvertedMarker'); late final _ArucoDetectorParameters_GetDetectInvertedMarker = _ArucoDetectorParameters_GetDetectInvertedMarkerPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetErrorCorrectionRate( ArucoDetectorParameters ap, @@ -659,12 +743,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetErrorCorrectionRatePtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetErrorCorrectionRate'); late final _ArucoDetectorParameters_GetErrorCorrectionRate = _ArucoDetectorParameters_GetErrorCorrectionRatePtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMarkerBorderBits( ArucoDetectorParameters ap, @@ -677,10 +763,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetMarkerBorderBitsPtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMarkerBorderBits'); - late final _ArucoDetectorParameters_GetMarkerBorderBits = _ArucoDetectorParameters_GetMarkerBorderBitsPtr - .asFunction Function(ArucoDetectorParameters, ffi.Pointer)>(); + late final _ArucoDetectorParameters_GetMarkerBorderBits = + _ArucoDetectorParameters_GetMarkerBorderBitsPtr.asFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMaxErroneousBitsInBorderRate( ArucoDetectorParameters ap, @@ -692,13 +782,16 @@ class CvNative { ); } - late final _ArucoDetectorParameters_GetMaxErroneousBitsInBorderRatePtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( - 'ArucoDetectorParameters_GetMaxErroneousBitsInBorderRate'); + late final _ArucoDetectorParameters_GetMaxErroneousBitsInBorderRatePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( + 'ArucoDetectorParameters_GetMaxErroneousBitsInBorderRate'); late final _ArucoDetectorParameters_GetMaxErroneousBitsInBorderRate = _ArucoDetectorParameters_GetMaxErroneousBitsInBorderRatePtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMaxMarkerPerimeterRate( ArucoDetectorParameters ap, @@ -711,12 +804,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetMaxMarkerPerimeterRatePtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMaxMarkerPerimeterRate'); late final _ArucoDetectorParameters_GetMaxMarkerPerimeterRate = _ArucoDetectorParameters_GetMaxMarkerPerimeterRatePtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMinCornerDistanceRate( ArucoDetectorParameters ap, @@ -729,12 +824,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetMinCornerDistanceRatePtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMinCornerDistanceRate'); late final _ArucoDetectorParameters_GetMinCornerDistanceRate = _ArucoDetectorParameters_GetMinCornerDistanceRatePtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMinDistanceToBorder( ArucoDetectorParameters ap, @@ -747,11 +844,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetMinDistanceToBorderPtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMinDistanceToBorder'); late final _ArucoDetectorParameters_GetMinDistanceToBorder = _ArucoDetectorParameters_GetMinDistanceToBorderPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMinMarkerDistanceRate( ArucoDetectorParameters ap, @@ -764,12 +864,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetMinMarkerDistanceRatePtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMinMarkerDistanceRate'); late final _ArucoDetectorParameters_GetMinMarkerDistanceRate = _ArucoDetectorParameters_GetMinMarkerDistanceRatePtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMinMarkerPerimeterRate( ArucoDetectorParameters ap, @@ -782,12 +884,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetMinMarkerPerimeterRatePtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMinMarkerPerimeterRate'); late final _ArucoDetectorParameters_GetMinMarkerPerimeterRate = _ArucoDetectorParameters_GetMinMarkerPerimeterRatePtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMinOtsuStdDev( ArucoDetectorParameters ap, @@ -800,13 +904,17 @@ class CvNative { } late final _ArucoDetectorParameters_GetMinOtsuStdDevPtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMinOtsuStdDev'); - late final _ArucoDetectorParameters_GetMinOtsuStdDev = _ArucoDetectorParameters_GetMinOtsuStdDevPtr - .asFunction Function(ArucoDetectorParameters, ffi.Pointer)>(); + late final _ArucoDetectorParameters_GetMinOtsuStdDev = + _ArucoDetectorParameters_GetMinOtsuStdDevPtr.asFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); - ffi.Pointer ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCell( + ffi.Pointer + ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCell( ArucoDetectorParameters ap, ffi.Pointer rval, ) { @@ -816,15 +924,20 @@ class CvNative { ); } - late final _ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCellPtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( - 'ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCell'); + late final _ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCellPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( + 'ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCell'); late final _ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCell = - _ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCellPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + _ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCellPtr + .asFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); - ffi.Pointer ArucoDetectorParameters_GetPerspectiveRemovePixelPerCell( + ffi.Pointer + ArucoDetectorParameters_GetPerspectiveRemovePixelPerCell( ArucoDetectorParameters ap, ffi.Pointer rval, ) { @@ -834,12 +947,16 @@ class CvNative { ); } - late final _ArucoDetectorParameters_GetPerspectiveRemovePixelPerCellPtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( - 'ArucoDetectorParameters_GetPerspectiveRemovePixelPerCell'); + late final _ArucoDetectorParameters_GetPerspectiveRemovePixelPerCellPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( + 'ArucoDetectorParameters_GetPerspectiveRemovePixelPerCell'); late final _ArucoDetectorParameters_GetPerspectiveRemovePixelPerCell = _ArucoDetectorParameters_GetPerspectiveRemovePixelPerCellPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetPolygonalApproxAccuracyRate( ArucoDetectorParameters ap, @@ -851,13 +968,16 @@ class CvNative { ); } - late final _ArucoDetectorParameters_GetPolygonalApproxAccuracyRatePtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( - 'ArucoDetectorParameters_GetPolygonalApproxAccuracyRate'); + late final _ArucoDetectorParameters_GetPolygonalApproxAccuracyRatePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( + 'ArucoDetectorParameters_GetPolygonalApproxAccuracyRate'); late final _ArucoDetectorParameters_GetPolygonalApproxAccuracyRate = _ArucoDetectorParameters_GetPolygonalApproxAccuracyRatePtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_SetAdaptiveThreshConstant( ArucoDetectorParameters ap, @@ -869,9 +989,11 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAdaptiveThreshConstantPtr = - _lookup Function(ArucoDetectorParameters, ffi.Double)>>( - 'ArucoDetectorParameters_SetAdaptiveThreshConstant'); + late final _ArucoDetectorParameters_SetAdaptiveThreshConstantPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Double)>>( + 'ArucoDetectorParameters_SetAdaptiveThreshConstant'); late final _ArucoDetectorParameters_SetAdaptiveThreshConstant = _ArucoDetectorParameters_SetAdaptiveThreshConstantPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -886,9 +1008,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMaxPtr = - _lookup Function(ArucoDetectorParameters, ffi.Int)>>( - 'ArucoDetectorParameters_SetAdaptiveThreshWinSizeMax'); + late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMaxPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Int)>>('ArucoDetectorParameters_SetAdaptiveThreshWinSizeMax'); late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMax = _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMaxPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -903,9 +1026,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMinPtr = - _lookup Function(ArucoDetectorParameters, ffi.Int)>>( - 'ArucoDetectorParameters_SetAdaptiveThreshWinSizeMin'); + late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMinPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Int)>>('ArucoDetectorParameters_SetAdaptiveThreshWinSizeMin'); late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMin = _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMinPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -920,9 +1044,11 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeStepPtr = - _lookup Function(ArucoDetectorParameters, ffi.Int)>>( - 'ArucoDetectorParameters_SetAdaptiveThreshWinSizeStep'); + late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeStepPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Int)>>( + 'ArucoDetectorParameters_SetAdaptiveThreshWinSizeStep'); late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeStep = _ArucoDetectorParameters_SetAdaptiveThreshWinSizeStepPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -937,9 +1063,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagCriticalRadPtr = - _lookup Function(ArucoDetectorParameters, ffi.Float)>>( - 'ArucoDetectorParameters_SetAprilTagCriticalRad'); + late final _ArucoDetectorParameters_SetAprilTagCriticalRadPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Float)>>('ArucoDetectorParameters_SetAprilTagCriticalRad'); late final _ArucoDetectorParameters_SetAprilTagCriticalRad = _ArucoDetectorParameters_SetAprilTagCriticalRadPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -954,11 +1081,13 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagDeglitchPtr = - _lookup Function(ArucoDetectorParameters, ffi.Int)>>( - 'ArucoDetectorParameters_SetAprilTagDeglitch'); - late final _ArucoDetectorParameters_SetAprilTagDeglitch = _ArucoDetectorParameters_SetAprilTagDeglitchPtr - .asFunction Function(ArucoDetectorParameters, int)>(); + late final _ArucoDetectorParameters_SetAprilTagDeglitchPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Int)>>('ArucoDetectorParameters_SetAprilTagDeglitch'); + late final _ArucoDetectorParameters_SetAprilTagDeglitch = + _ArucoDetectorParameters_SetAprilTagDeglitchPtr.asFunction< + ffi.Pointer Function(ArucoDetectorParameters, int)>(); ffi.Pointer ArucoDetectorParameters_SetAprilTagMaxLineFitMse( ArucoDetectorParameters ap, @@ -970,9 +1099,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagMaxLineFitMsePtr = - _lookup Function(ArucoDetectorParameters, ffi.Float)>>( - 'ArucoDetectorParameters_SetAprilTagMaxLineFitMse'); + late final _ArucoDetectorParameters_SetAprilTagMaxLineFitMsePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Float)>>('ArucoDetectorParameters_SetAprilTagMaxLineFitMse'); late final _ArucoDetectorParameters_SetAprilTagMaxLineFitMse = _ArucoDetectorParameters_SetAprilTagMaxLineFitMsePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -987,9 +1117,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagMaxNmaximaPtr = - _lookup Function(ArucoDetectorParameters, ffi.Int)>>( - 'ArucoDetectorParameters_SetAprilTagMaxNmaxima'); + late final _ArucoDetectorParameters_SetAprilTagMaxNmaximaPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Int)>>('ArucoDetectorParameters_SetAprilTagMaxNmaxima'); late final _ArucoDetectorParameters_SetAprilTagMaxNmaxima = _ArucoDetectorParameters_SetAprilTagMaxNmaximaPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1004,9 +1135,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagMinClusterPixelsPtr = - _lookup Function(ArucoDetectorParameters, ffi.Int)>>( - 'ArucoDetectorParameters_SetAprilTagMinClusterPixels'); + late final _ArucoDetectorParameters_SetAprilTagMinClusterPixelsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Int)>>('ArucoDetectorParameters_SetAprilTagMinClusterPixels'); late final _ArucoDetectorParameters_SetAprilTagMinClusterPixels = _ArucoDetectorParameters_SetAprilTagMinClusterPixelsPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1021,9 +1153,11 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagMinWhiteBlackDiffPtr = - _lookup Function(ArucoDetectorParameters, ffi.Int)>>( - 'ArucoDetectorParameters_SetAprilTagMinWhiteBlackDiff'); + late final _ArucoDetectorParameters_SetAprilTagMinWhiteBlackDiffPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Int)>>( + 'ArucoDetectorParameters_SetAprilTagMinWhiteBlackDiff'); late final _ArucoDetectorParameters_SetAprilTagMinWhiteBlackDiff = _ArucoDetectorParameters_SetAprilTagMinWhiteBlackDiffPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1038,9 +1172,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagQuadDecimatePtr = - _lookup Function(ArucoDetectorParameters, ffi.Float)>>( - 'ArucoDetectorParameters_SetAprilTagQuadDecimate'); + late final _ArucoDetectorParameters_SetAprilTagQuadDecimatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Float)>>('ArucoDetectorParameters_SetAprilTagQuadDecimate'); late final _ArucoDetectorParameters_SetAprilTagQuadDecimate = _ArucoDetectorParameters_SetAprilTagQuadDecimatePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1055,13 +1190,16 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagQuadSigmaPtr = - _lookup Function(ArucoDetectorParameters, ffi.Float)>>( - 'ArucoDetectorParameters_SetAprilTagQuadSigma'); - late final _ArucoDetectorParameters_SetAprilTagQuadSigma = _ArucoDetectorParameters_SetAprilTagQuadSigmaPtr - .asFunction Function(ArucoDetectorParameters, double)>(); + late final _ArucoDetectorParameters_SetAprilTagQuadSigmaPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Float)>>('ArucoDetectorParameters_SetAprilTagQuadSigma'); + late final _ArucoDetectorParameters_SetAprilTagQuadSigma = + _ArucoDetectorParameters_SetAprilTagQuadSigmaPtr.asFunction< + ffi.Pointer Function(ArucoDetectorParameters, double)>(); - ffi.Pointer ArucoDetectorParameters_SetCornerRefinementMaxIterations( + ffi.Pointer + ArucoDetectorParameters_SetCornerRefinementMaxIterations( ArucoDetectorParameters ap, int cornerRefinementMaxIterations, ) { @@ -1072,7 +1210,10 @@ class CvNative { } late final _ArucoDetectorParameters_SetCornerRefinementMaxIterationsPtr = - _lookup Function(ArucoDetectorParameters, ffi.Int)>>( + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Int)>>( 'ArucoDetectorParameters_SetCornerRefinementMaxIterations'); late final _ArucoDetectorParameters_SetCornerRefinementMaxIterations = _ArucoDetectorParameters_SetCornerRefinementMaxIterationsPtr.asFunction< @@ -1088,9 +1229,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetCornerRefinementMethodPtr = - _lookup Function(ArucoDetectorParameters, ffi.Int)>>( - 'ArucoDetectorParameters_SetCornerRefinementMethod'); + late final _ArucoDetectorParameters_SetCornerRefinementMethodPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Int)>>('ArucoDetectorParameters_SetCornerRefinementMethod'); late final _ArucoDetectorParameters_SetCornerRefinementMethod = _ArucoDetectorParameters_SetCornerRefinementMethodPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1106,7 +1248,10 @@ class CvNative { } late final _ArucoDetectorParameters_SetCornerRefinementMinAccuracyPtr = - _lookup Function(ArucoDetectorParameters, ffi.Double)>>( + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Double)>>( 'ArucoDetectorParameters_SetCornerRefinementMinAccuracy'); late final _ArucoDetectorParameters_SetCornerRefinementMinAccuracy = _ArucoDetectorParameters_SetCornerRefinementMinAccuracyPtr.asFunction< @@ -1122,9 +1267,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetCornerRefinementWinSizePtr = - _lookup Function(ArucoDetectorParameters, ffi.Int)>>( - 'ArucoDetectorParameters_SetCornerRefinementWinSize'); + late final _ArucoDetectorParameters_SetCornerRefinementWinSizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Int)>>('ArucoDetectorParameters_SetCornerRefinementWinSize'); late final _ArucoDetectorParameters_SetCornerRefinementWinSize = _ArucoDetectorParameters_SetCornerRefinementWinSizePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1139,9 +1285,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetDetectInvertedMarkerPtr = - _lookup Function(ArucoDetectorParameters, ffi.Bool)>>( - 'ArucoDetectorParameters_SetDetectInvertedMarker'); + late final _ArucoDetectorParameters_SetDetectInvertedMarkerPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Bool)>>('ArucoDetectorParameters_SetDetectInvertedMarker'); late final _ArucoDetectorParameters_SetDetectInvertedMarker = _ArucoDetectorParameters_SetDetectInvertedMarkerPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, bool)>(); @@ -1156,9 +1303,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetErrorCorrectionRatePtr = - _lookup Function(ArucoDetectorParameters, ffi.Double)>>( - 'ArucoDetectorParameters_SetErrorCorrectionRate'); + late final _ArucoDetectorParameters_SetErrorCorrectionRatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Double)>>('ArucoDetectorParameters_SetErrorCorrectionRate'); late final _ArucoDetectorParameters_SetErrorCorrectionRate = _ArucoDetectorParameters_SetErrorCorrectionRatePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1173,11 +1321,13 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMarkerBorderBitsPtr = - _lookup Function(ArucoDetectorParameters, ffi.Int)>>( - 'ArucoDetectorParameters_SetMarkerBorderBits'); - late final _ArucoDetectorParameters_SetMarkerBorderBits = _ArucoDetectorParameters_SetMarkerBorderBitsPtr - .asFunction Function(ArucoDetectorParameters, int)>(); + late final _ArucoDetectorParameters_SetMarkerBorderBitsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Int)>>('ArucoDetectorParameters_SetMarkerBorderBits'); + late final _ArucoDetectorParameters_SetMarkerBorderBits = + _ArucoDetectorParameters_SetMarkerBorderBitsPtr.asFunction< + ffi.Pointer Function(ArucoDetectorParameters, int)>(); ffi.Pointer ArucoDetectorParameters_SetMaxErroneousBitsInBorderRate( ArucoDetectorParameters ap, @@ -1190,7 +1340,10 @@ class CvNative { } late final _ArucoDetectorParameters_SetMaxErroneousBitsInBorderRatePtr = - _lookup Function(ArucoDetectorParameters, ffi.Double)>>( + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Double)>>( 'ArucoDetectorParameters_SetMaxErroneousBitsInBorderRate'); late final _ArucoDetectorParameters_SetMaxErroneousBitsInBorderRate = _ArucoDetectorParameters_SetMaxErroneousBitsInBorderRatePtr.asFunction< @@ -1206,9 +1359,11 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMaxMarkerPerimeterRatePtr = - _lookup Function(ArucoDetectorParameters, ffi.Double)>>( - 'ArucoDetectorParameters_SetMaxMarkerPerimeterRate'); + late final _ArucoDetectorParameters_SetMaxMarkerPerimeterRatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Double)>>( + 'ArucoDetectorParameters_SetMaxMarkerPerimeterRate'); late final _ArucoDetectorParameters_SetMaxMarkerPerimeterRate = _ArucoDetectorParameters_SetMaxMarkerPerimeterRatePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1223,9 +1378,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMinCornerDistanceRatePtr = - _lookup Function(ArucoDetectorParameters, ffi.Double)>>( - 'ArucoDetectorParameters_SetMinCornerDistanceRate'); + late final _ArucoDetectorParameters_SetMinCornerDistanceRatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Double)>>('ArucoDetectorParameters_SetMinCornerDistanceRate'); late final _ArucoDetectorParameters_SetMinCornerDistanceRate = _ArucoDetectorParameters_SetMinCornerDistanceRatePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1240,9 +1396,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMinDistanceToBorderPtr = - _lookup Function(ArucoDetectorParameters, ffi.Int)>>( - 'ArucoDetectorParameters_SetMinDistanceToBorder'); + late final _ArucoDetectorParameters_SetMinDistanceToBorderPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Int)>>('ArucoDetectorParameters_SetMinDistanceToBorder'); late final _ArucoDetectorParameters_SetMinDistanceToBorder = _ArucoDetectorParameters_SetMinDistanceToBorderPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1257,9 +1414,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMinMarkerDistanceRatePtr = - _lookup Function(ArucoDetectorParameters, ffi.Double)>>( - 'ArucoDetectorParameters_SetMinMarkerDistanceRate'); + late final _ArucoDetectorParameters_SetMinMarkerDistanceRatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Double)>>('ArucoDetectorParameters_SetMinMarkerDistanceRate'); late final _ArucoDetectorParameters_SetMinMarkerDistanceRate = _ArucoDetectorParameters_SetMinMarkerDistanceRatePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1274,9 +1432,11 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMinMarkerPerimeterRatePtr = - _lookup Function(ArucoDetectorParameters, ffi.Double)>>( - 'ArucoDetectorParameters_SetMinMarkerPerimeterRate'); + late final _ArucoDetectorParameters_SetMinMarkerPerimeterRatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Double)>>( + 'ArucoDetectorParameters_SetMinMarkerPerimeterRate'); late final _ArucoDetectorParameters_SetMinMarkerPerimeterRate = _ArucoDetectorParameters_SetMinMarkerPerimeterRatePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1291,13 +1451,16 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMinOtsuStdDevPtr = - _lookup Function(ArucoDetectorParameters, ffi.Double)>>( - 'ArucoDetectorParameters_SetMinOtsuStdDev'); - late final _ArucoDetectorParameters_SetMinOtsuStdDev = _ArucoDetectorParameters_SetMinOtsuStdDevPtr - .asFunction Function(ArucoDetectorParameters, double)>(); + late final _ArucoDetectorParameters_SetMinOtsuStdDevPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Double)>>('ArucoDetectorParameters_SetMinOtsuStdDev'); + late final _ArucoDetectorParameters_SetMinOtsuStdDev = + _ArucoDetectorParameters_SetMinOtsuStdDevPtr.asFunction< + ffi.Pointer Function(ArucoDetectorParameters, double)>(); - ffi.Pointer ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCell( + ffi.Pointer + ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCell( ArucoDetectorParameters ap, double perspectiveRemoveIgnoredMarginPerCell, ) { @@ -1308,13 +1471,19 @@ class CvNative { } late final _ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCellPtr = - _lookup Function(ArucoDetectorParameters, ffi.Double)>>( + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Double)>>( 'ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCell'); late final _ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCell = - _ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCellPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, double)>(); + _ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCellPtr + .asFunction< + ffi.Pointer Function( + ArucoDetectorParameters, double)>(); - ffi.Pointer ArucoDetectorParameters_SetPerspectiveRemovePixelPerCell( + ffi.Pointer + ArucoDetectorParameters_SetPerspectiveRemovePixelPerCell( ArucoDetectorParameters ap, int perspectiveRemovePixelPerCell, ) { @@ -1325,7 +1494,10 @@ class CvNative { } late final _ArucoDetectorParameters_SetPerspectiveRemovePixelPerCellPtr = - _lookup Function(ArucoDetectorParameters, ffi.Int)>>( + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Int)>>( 'ArucoDetectorParameters_SetPerspectiveRemovePixelPerCell'); late final _ArucoDetectorParameters_SetPerspectiveRemovePixelPerCell = _ArucoDetectorParameters_SetPerspectiveRemovePixelPerCellPtr.asFunction< @@ -1342,7 +1514,10 @@ class CvNative { } late final _ArucoDetectorParameters_SetPolygonalApproxAccuracyRatePtr = - _lookup Function(ArucoDetectorParameters, ffi.Double)>>( + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Double)>>( 'ArucoDetectorParameters_SetPolygonalApproxAccuracyRate'); late final _ArucoDetectorParameters_SetPolygonalApproxAccuracyRate = _ArucoDetectorParameters_SetPolygonalApproxAccuracyRatePtr.asFunction< @@ -1357,8 +1532,10 @@ class CvNative { } late final _ArucoDetector_ClosePtr = - _lookup>('ArucoDetector_Close'); - late final _ArucoDetector_Close = _ArucoDetector_ClosePtr.asFunction(); + _lookup>( + 'ArucoDetector_Close'); + late final _ArucoDetector_Close = + _ArucoDetector_ClosePtr.asFunction(); ffi.Pointer ArucoDetector_DetectMarkers( ArucoDetector ad, @@ -1378,11 +1555,20 @@ class CvNative { late final _ArucoDetector_DetectMarkersPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ArucoDetector, Mat, ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ArucoDetector, + Mat, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('ArucoDetector_DetectMarkers'); - late final _ArucoDetector_DetectMarkers = _ArucoDetector_DetectMarkersPtr.asFunction< - ffi.Pointer Function( - ArucoDetector, Mat, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + late final _ArucoDetector_DetectMarkers = + _ArucoDetector_DetectMarkersPtr.asFunction< + ffi.Pointer Function( + ArucoDetector, + Mat, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); ffi.Pointer ArucoDetector_New( ffi.Pointer rval, @@ -1392,11 +1578,12 @@ class CvNative { ); } - late final _ArucoDetector_NewPtr = - _lookup Function(ffi.Pointer)>>( - 'ArucoDetector_New'); - late final _ArucoDetector_New = - _ArucoDetector_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _ArucoDetector_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('ArucoDetector_New'); + late final _ArucoDetector_New = _ArucoDetector_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer ArucoDetector_NewWithParams( ArucoDictionary dictionary, @@ -1412,10 +1599,14 @@ class CvNative { late final _ArucoDetector_NewWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ArucoDictionary, ArucoDetectorParameters, + ffi.Pointer Function( + ArucoDictionary, + ArucoDetectorParameters, ffi.Pointer)>>('ArucoDetector_NewWithParams'); - late final _ArucoDetector_NewWithParams = _ArucoDetector_NewWithParamsPtr.asFunction< - ffi.Pointer Function(ArucoDictionary, ArucoDetectorParameters, ffi.Pointer)>(); + late final _ArucoDetector_NewWithParams = + _ArucoDetector_NewWithParamsPtr.asFunction< + ffi.Pointer Function(ArucoDictionary, + ArucoDetectorParameters, ffi.Pointer)>(); void ArucoDictionary_Close( ArucoDictionaryPtr self, @@ -1426,7 +1617,8 @@ class CvNative { } late final _ArucoDictionary_ClosePtr = - _lookup>('ArucoDictionary_Close'); + _lookup>( + 'ArucoDictionary_Close'); late final _ArucoDictionary_Close = _ArucoDictionary_ClosePtr.asFunction(); @@ -1444,11 +1636,13 @@ class CvNative { ); } - late final _ArucoDrawDetectedMarkersPtr = - _lookup Function(Mat, VecVecPoint2f, VecInt, Scalar)>>( - 'ArucoDrawDetectedMarkers'); - late final _ArucoDrawDetectedMarkers = _ArucoDrawDetectedMarkersPtr.asFunction< - ffi.Pointer Function(Mat, VecVecPoint2f, VecInt, Scalar)>(); + late final _ArucoDrawDetectedMarkersPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, VecVecPoint2f, VecInt, Scalar)>>('ArucoDrawDetectedMarkers'); + late final _ArucoDrawDetectedMarkers = + _ArucoDrawDetectedMarkersPtr.asFunction< + ffi.Pointer Function(Mat, VecVecPoint2f, VecInt, Scalar)>(); ffi.Pointer ArucoGenerateImageMarker( int dictionaryId, @@ -1466,11 +1660,12 @@ class CvNative { ); } - late final _ArucoGenerateImageMarkerPtr = - _lookup Function(ffi.Int, ffi.Int, ffi.Int, Mat, ffi.Int)>>( - 'ArucoGenerateImageMarker'); - late final _ArucoGenerateImageMarker = - _ArucoGenerateImageMarkerPtr.asFunction Function(int, int, int, Mat, int)>(); + late final _ArucoGenerateImageMarkerPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Int, ffi.Int, Mat, + ffi.Int)>>('ArucoGenerateImageMarker'); + late final _ArucoGenerateImageMarker = _ArucoGenerateImageMarkerPtr + .asFunction Function(int, int, int, Mat, int)>(); void AsyncArray_Close( AsyncArrayPtr a, @@ -1481,8 +1676,10 @@ class CvNative { } late final _AsyncArray_ClosePtr = - _lookup>('AsyncArray_Close'); - late final _AsyncArray_Close = _AsyncArray_ClosePtr.asFunction(); + _lookup>( + 'AsyncArray_Close'); + late final _AsyncArray_Close = + _AsyncArray_ClosePtr.asFunction(); ffi.Pointer AsyncArray_Get( AsyncArray async_out, @@ -1494,10 +1691,11 @@ class CvNative { ); } - late final _AsyncArray_GetPtr = - _lookup Function(AsyncArray, Mat)>>('AsyncArray_Get'); - late final _AsyncArray_Get = - _AsyncArray_GetPtr.asFunction Function(AsyncArray, Mat)>(); + late final _AsyncArray_GetPtr = _lookup< + ffi.NativeFunction Function(AsyncArray, Mat)>>( + 'AsyncArray_Get'); + late final _AsyncArray_Get = _AsyncArray_GetPtr.asFunction< + ffi.Pointer Function(AsyncArray, Mat)>(); ffi.Pointer AsyncArray_New( ffi.Pointer rval, @@ -1507,10 +1705,12 @@ class CvNative { ); } - late final _AsyncArray_NewPtr = - _lookup Function(ffi.Pointer)>>('AsyncArray_New'); - late final _AsyncArray_New = - _AsyncArray_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _AsyncArray_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('AsyncArray_New'); + late final _AsyncArray_New = _AsyncArray_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); void BFMatcher_Close( BFMatcherPtr b, @@ -1521,8 +1721,10 @@ class CvNative { } late final _BFMatcher_ClosePtr = - _lookup>('BFMatcher_Close'); - late final _BFMatcher_Close = _BFMatcher_ClosePtr.asFunction(); + _lookup>( + 'BFMatcher_Close'); + late final _BFMatcher_Close = + _BFMatcher_ClosePtr.asFunction(); ffi.Pointer BFMatcher_Create( ffi.Pointer rval, @@ -1532,10 +1734,12 @@ class CvNative { ); } - late final _BFMatcher_CreatePtr = - _lookup Function(ffi.Pointer)>>('BFMatcher_Create'); - late final _BFMatcher_Create = - _BFMatcher_CreatePtr.asFunction Function(ffi.Pointer)>(); + late final _BFMatcher_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('BFMatcher_Create'); + late final _BFMatcher_Create = _BFMatcher_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer BFMatcher_CreateWithParams( int normType, @@ -1549,11 +1753,13 @@ class CvNative { ); } - late final _BFMatcher_CreateWithParamsPtr = - _lookup Function(ffi.Int, ffi.Bool, ffi.Pointer)>>( - 'BFMatcher_CreateWithParams'); - late final _BFMatcher_CreateWithParams = _BFMatcher_CreateWithParamsPtr.asFunction< - ffi.Pointer Function(int, bool, ffi.Pointer)>(); + late final _BFMatcher_CreateWithParamsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Bool, + ffi.Pointer)>>('BFMatcher_CreateWithParams'); + late final _BFMatcher_CreateWithParams = + _BFMatcher_CreateWithParamsPtr.asFunction< + ffi.Pointer Function(int, bool, ffi.Pointer)>(); ffi.Pointer BFMatcher_KnnMatch( BFMatcher b, @@ -1573,10 +1779,11 @@ class CvNative { late final _BFMatcher_KnnMatchPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - BFMatcher, Mat, Mat, ffi.Int, ffi.Pointer)>>('BFMatcher_KnnMatch'); + ffi.Pointer Function(BFMatcher, Mat, Mat, ffi.Int, + ffi.Pointer)>>('BFMatcher_KnnMatch'); late final _BFMatcher_KnnMatch = _BFMatcher_KnnMatchPtr.asFunction< - ffi.Pointer Function(BFMatcher, Mat, Mat, int, ffi.Pointer)>(); + ffi.Pointer Function( + BFMatcher, Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer BFMatcher_Match( BFMatcher b, @@ -1593,10 +1800,12 @@ class CvNative { } late final _BFMatcher_MatchPtr = _lookup< - ffi.NativeFunction Function(BFMatcher, Mat, Mat, ffi.Pointer)>>( - 'BFMatcher_Match'); + ffi.NativeFunction< + ffi.Pointer Function( + BFMatcher, Mat, Mat, ffi.Pointer)>>('BFMatcher_Match'); late final _BFMatcher_Match = _BFMatcher_MatchPtr.asFunction< - ffi.Pointer Function(BFMatcher, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + BFMatcher, Mat, Mat, ffi.Pointer)>(); void BRISK_Close( BRISKPtr b, @@ -1606,8 +1815,10 @@ class CvNative { ); } - late final _BRISK_ClosePtr = _lookup>('BRISK_Close'); - late final _BRISK_Close = _BRISK_ClosePtr.asFunction(); + late final _BRISK_ClosePtr = + _lookup>('BRISK_Close'); + late final _BRISK_Close = + _BRISK_ClosePtr.asFunction(); ffi.Pointer BRISK_Create( ffi.Pointer rval, @@ -1617,10 +1828,11 @@ class CvNative { ); } - late final _BRISK_CreatePtr = - _lookup Function(ffi.Pointer)>>('BRISK_Create'); - late final _BRISK_Create = - _BRISK_CreatePtr.asFunction Function(ffi.Pointer)>(); + late final _BRISK_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('BRISK_Create'); + late final _BRISK_Create = _BRISK_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer BRISK_Detect( BRISK b, @@ -1634,11 +1846,12 @@ class CvNative { ); } - late final _BRISK_DetectPtr = - _lookup Function(BRISK, Mat, ffi.Pointer)>>( - 'BRISK_Detect'); - late final _BRISK_Detect = - _BRISK_DetectPtr.asFunction Function(BRISK, Mat, ffi.Pointer)>(); + late final _BRISK_DetectPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + BRISK, Mat, ffi.Pointer)>>('BRISK_Detect'); + late final _BRISK_Detect = _BRISK_DetectPtr.asFunction< + ffi.Pointer Function(BRISK, Mat, ffi.Pointer)>(); ffi.Pointer BRISK_DetectAndCompute( BRISK b, @@ -1657,10 +1870,12 @@ class CvNative { } late final _BRISK_DetectAndComputePtr = _lookup< - ffi.NativeFunction Function(BRISK, Mat, Mat, Mat, ffi.Pointer)>>( - 'BRISK_DetectAndCompute'); + ffi.NativeFunction< + ffi.Pointer Function(BRISK, Mat, Mat, Mat, + ffi.Pointer)>>('BRISK_DetectAndCompute'); late final _BRISK_DetectAndCompute = _BRISK_DetectAndComputePtr.asFunction< - ffi.Pointer Function(BRISK, Mat, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + BRISK, Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer BackgroundSubtractorKNN_Apply( BackgroundSubtractorKNN self, @@ -1674,11 +1889,13 @@ class CvNative { ); } - late final _BackgroundSubtractorKNN_ApplyPtr = - _lookup Function(BackgroundSubtractorKNN, Mat, Mat)>>( - 'BackgroundSubtractorKNN_Apply'); - late final _BackgroundSubtractorKNN_Apply = _BackgroundSubtractorKNN_ApplyPtr.asFunction< - ffi.Pointer Function(BackgroundSubtractorKNN, Mat, Mat)>(); + late final _BackgroundSubtractorKNN_ApplyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(BackgroundSubtractorKNN, Mat, + Mat)>>('BackgroundSubtractorKNN_Apply'); + late final _BackgroundSubtractorKNN_Apply = + _BackgroundSubtractorKNN_ApplyPtr.asFunction< + ffi.Pointer Function(BackgroundSubtractorKNN, Mat, Mat)>(); void BackgroundSubtractorKNN_Close( BackgroundSubtractorKNNPtr self, @@ -1688,11 +1905,11 @@ class CvNative { ); } - late final _BackgroundSubtractorKNN_ClosePtr = - _lookup>( - 'BackgroundSubtractorKNN_Close'); - late final _BackgroundSubtractorKNN_Close = - _BackgroundSubtractorKNN_ClosePtr.asFunction(); + late final _BackgroundSubtractorKNN_ClosePtr = _lookup< + ffi.NativeFunction>( + 'BackgroundSubtractorKNN_Close'); + late final _BackgroundSubtractorKNN_Close = _BackgroundSubtractorKNN_ClosePtr + .asFunction(); ffi.Pointer BackgroundSubtractorKNN_Create( ffi.Pointer rval, @@ -1702,11 +1919,15 @@ class CvNative { ); } - late final _BackgroundSubtractorKNN_CreatePtr = - _lookup Function(ffi.Pointer)>>( - 'BackgroundSubtractorKNN_Create'); - late final _BackgroundSubtractorKNN_Create = _BackgroundSubtractorKNN_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _BackgroundSubtractorKNN_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>( + 'BackgroundSubtractorKNN_Create'); + late final _BackgroundSubtractorKNN_Create = + _BackgroundSubtractorKNN_CreatePtr.asFunction< + ffi.Pointer Function( + ffi.Pointer)>(); ffi.Pointer BackgroundSubtractorKNN_CreateWithParams( int history, @@ -1723,11 +1944,14 @@ class CvNative { } late final _BackgroundSubtractorKNN_CreateWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Double, ffi.Bool, - ffi.Pointer)>>('BackgroundSubtractorKNN_CreateWithParams'); - late final _BackgroundSubtractorKNN_CreateWithParams = _BackgroundSubtractorKNN_CreateWithParamsPtr - .asFunction Function(int, double, bool, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Double, ffi.Bool, + ffi.Pointer)>>( + 'BackgroundSubtractorKNN_CreateWithParams'); + late final _BackgroundSubtractorKNN_CreateWithParams = + _BackgroundSubtractorKNN_CreateWithParamsPtr.asFunction< + ffi.Pointer Function( + int, double, bool, ffi.Pointer)>(); ffi.Pointer BackgroundSubtractorMOG2_Apply( BackgroundSubtractorMOG2 self, @@ -1741,11 +1965,13 @@ class CvNative { ); } - late final _BackgroundSubtractorMOG2_ApplyPtr = - _lookup Function(BackgroundSubtractorMOG2, Mat, Mat)>>( - 'BackgroundSubtractorMOG2_Apply'); - late final _BackgroundSubtractorMOG2_Apply = _BackgroundSubtractorMOG2_ApplyPtr.asFunction< - ffi.Pointer Function(BackgroundSubtractorMOG2, Mat, Mat)>(); + late final _BackgroundSubtractorMOG2_ApplyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(BackgroundSubtractorMOG2, Mat, + Mat)>>('BackgroundSubtractorMOG2_Apply'); + late final _BackgroundSubtractorMOG2_Apply = + _BackgroundSubtractorMOG2_ApplyPtr.asFunction< + ffi.Pointer Function(BackgroundSubtractorMOG2, Mat, Mat)>(); void BackgroundSubtractorMOG2_Close( BackgroundSubtractorMOG2Ptr self, @@ -1755,11 +1981,12 @@ class CvNative { ); } - late final _BackgroundSubtractorMOG2_ClosePtr = - _lookup>( - 'BackgroundSubtractorMOG2_Close'); + late final _BackgroundSubtractorMOG2_ClosePtr = _lookup< + ffi.NativeFunction>( + 'BackgroundSubtractorMOG2_Close'); late final _BackgroundSubtractorMOG2_Close = - _BackgroundSubtractorMOG2_ClosePtr.asFunction(); + _BackgroundSubtractorMOG2_ClosePtr.asFunction< + void Function(BackgroundSubtractorMOG2Ptr)>(); ffi.Pointer BackgroundSubtractorMOG2_Create( ffi.Pointer rval, @@ -1769,11 +1996,15 @@ class CvNative { ); } - late final _BackgroundSubtractorMOG2_CreatePtr = - _lookup Function(ffi.Pointer)>>( - 'BackgroundSubtractorMOG2_Create'); - late final _BackgroundSubtractorMOG2_Create = _BackgroundSubtractorMOG2_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _BackgroundSubtractorMOG2_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>( + 'BackgroundSubtractorMOG2_Create'); + late final _BackgroundSubtractorMOG2_Create = + _BackgroundSubtractorMOG2_CreatePtr.asFunction< + ffi.Pointer Function( + ffi.Pointer)>(); ffi.Pointer BackgroundSubtractorMOG2_CreateWithParams( int history, @@ -1790,11 +2021,14 @@ class CvNative { } late final _BackgroundSubtractorMOG2_CreateWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Double, ffi.Bool, - ffi.Pointer)>>('BackgroundSubtractorMOG2_CreateWithParams'); - late final _BackgroundSubtractorMOG2_CreateWithParams = _BackgroundSubtractorMOG2_CreateWithParamsPtr - .asFunction Function(int, double, bool, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Double, ffi.Bool, + ffi.Pointer)>>( + 'BackgroundSubtractorMOG2_CreateWithParams'); + late final _BackgroundSubtractorMOG2_CreateWithParams = + _BackgroundSubtractorMOG2_CreateWithParamsPtr.asFunction< + ffi.Pointer Function( + int, double, bool, ffi.Pointer)>(); ffi.Pointer BilateralFilter( Mat src, @@ -1812,11 +2046,12 @@ class CvNative { ); } - late final _BilateralFilterPtr = - _lookup Function(Mat, Mat, ffi.Int, ffi.Double, ffi.Double)>>( - 'BilateralFilter'); - late final _BilateralFilter = - _BilateralFilterPtr.asFunction Function(Mat, Mat, int, double, double)>(); + late final _BilateralFilterPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Double, ffi.Double)>>('BilateralFilter'); + late final _BilateralFilter = _BilateralFilterPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, double, double)>(); void BlockMeanHash_Close( BlockMeanHashPtr self, @@ -1827,8 +2062,10 @@ class CvNative { } late final _BlockMeanHash_ClosePtr = - _lookup>('BlockMeanHash_Close'); - late final _BlockMeanHash_Close = _BlockMeanHash_ClosePtr.asFunction(); + _lookup>( + 'BlockMeanHash_Close'); + late final _BlockMeanHash_Close = + _BlockMeanHash_ClosePtr.asFunction(); ffi.Pointer BlockMeanHash_Compare( BlockMeanHash self, @@ -1845,11 +2082,12 @@ class CvNative { } late final _BlockMeanHash_ComparePtr = _lookup< - ffi - .NativeFunction Function(BlockMeanHash, Mat, Mat, ffi.Pointer)>>( - 'BlockMeanHash_Compare'); + ffi.NativeFunction< + ffi.Pointer Function(BlockMeanHash, Mat, Mat, + ffi.Pointer)>>('BlockMeanHash_Compare'); late final _BlockMeanHash_Compare = _BlockMeanHash_ComparePtr.asFunction< - ffi.Pointer Function(BlockMeanHash, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + BlockMeanHash, Mat, Mat, ffi.Pointer)>(); ffi.Pointer BlockMeanHash_Compute( BlockMeanHash self, @@ -1863,11 +2101,12 @@ class CvNative { ); } - late final _BlockMeanHash_ComputePtr = - _lookup Function(BlockMeanHash, Mat, Mat)>>( - 'BlockMeanHash_Compute'); - late final _BlockMeanHash_Compute = - _BlockMeanHash_ComputePtr.asFunction Function(BlockMeanHash, Mat, Mat)>(); + late final _BlockMeanHash_ComputePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + BlockMeanHash, Mat, Mat)>>('BlockMeanHash_Compute'); + late final _BlockMeanHash_Compute = _BlockMeanHash_ComputePtr.asFunction< + ffi.Pointer Function(BlockMeanHash, Mat, Mat)>(); ffi.Pointer BlockMeanHash_Create( int mode, @@ -1879,11 +2118,12 @@ class CvNative { ); } - late final _BlockMeanHash_CreatePtr = - _lookup Function(ffi.Int, ffi.Pointer)>>( - 'BlockMeanHash_Create'); - late final _BlockMeanHash_Create = - _BlockMeanHash_CreatePtr.asFunction Function(int, ffi.Pointer)>(); + late final _BlockMeanHash_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int, ffi.Pointer)>>('BlockMeanHash_Create'); + late final _BlockMeanHash_Create = _BlockMeanHash_CreatePtr.asFunction< + ffi.Pointer Function(int, ffi.Pointer)>(); ffi.Pointer BlockMeanHash_GetMean( BlockMeanHash self, @@ -1899,11 +2139,13 @@ class CvNative { late final _BlockMeanHash_GetMeanPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(BlockMeanHash, ffi.Pointer>, + ffi.Pointer Function( + BlockMeanHash, + ffi.Pointer>, ffi.Pointer)>>('BlockMeanHash_GetMean'); late final _BlockMeanHash_GetMean = _BlockMeanHash_GetMeanPtr.asFunction< - ffi.Pointer Function( - BlockMeanHash, ffi.Pointer>, ffi.Pointer)>(); + ffi.Pointer Function(BlockMeanHash, + ffi.Pointer>, ffi.Pointer)>(); ffi.Pointer BlockMeanHash_SetMode( BlockMeanHash self, @@ -1915,11 +2157,12 @@ class CvNative { ); } - late final _BlockMeanHash_SetModePtr = - _lookup Function(BlockMeanHash, ffi.Int)>>( - 'BlockMeanHash_SetMode'); - late final _BlockMeanHash_SetMode = - _BlockMeanHash_SetModePtr.asFunction Function(BlockMeanHash, int)>(); + late final _BlockMeanHash_SetModePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + BlockMeanHash, ffi.Int)>>('BlockMeanHash_SetMode'); + late final _BlockMeanHash_SetMode = _BlockMeanHash_SetModePtr.asFunction< + ffi.Pointer Function(BlockMeanHash, int)>(); ffi.Pointer Blur( Mat src, @@ -1933,8 +2176,11 @@ class CvNative { ); } - late final _BlurPtr = _lookup Function(Mat, Mat, Size)>>('Blur'); - late final _Blur = _BlurPtr.asFunction Function(Mat, Mat, Size)>(); + late final _BlurPtr = _lookup< + ffi + .NativeFunction Function(Mat, Mat, Size)>>('Blur'); + late final _Blur = + _BlurPtr.asFunction Function(Mat, Mat, Size)>(); ffi.Pointer BoundingRect( VecPoint pts, @@ -1946,11 +2192,12 @@ class CvNative { ); } - late final _BoundingRectPtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'BoundingRect'); - late final _BoundingRect = - _BoundingRectPtr.asFunction Function(VecPoint, ffi.Pointer)>(); + late final _BoundingRectPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('BoundingRect'); + late final _BoundingRect = _BoundingRectPtr.asFunction< + ffi.Pointer Function(VecPoint, ffi.Pointer)>(); ffi.Pointer BoxFilter( Mat src, @@ -1966,9 +2213,12 @@ class CvNative { ); } - late final _BoxFilterPtr = - _lookup Function(Mat, Mat, ffi.Int, Size)>>('BoxFilter'); - late final _BoxFilter = _BoxFilterPtr.asFunction Function(Mat, Mat, int, Size)>(); + late final _BoxFilterPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Int, Size)>>('BoxFilter'); + late final _BoxFilter = _BoxFilterPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, Size)>(); ffi.Pointer BoxPoints( RotatedRect rect, @@ -1980,11 +2230,12 @@ class CvNative { ); } - late final _BoxPointsPtr = - _lookup Function(RotatedRect, ffi.Pointer)>>( - 'BoxPoints'); - late final _BoxPoints = - _BoxPointsPtr.asFunction Function(RotatedRect, ffi.Pointer)>(); + late final _BoxPointsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + RotatedRect, ffi.Pointer)>>('BoxPoints'); + late final _BoxPoints = _BoxPointsPtr.asFunction< + ffi.Pointer Function(RotatedRect, ffi.Pointer)>(); ffi.Pointer CLAHE_Apply( CLAHE c, @@ -1998,9 +2249,11 @@ class CvNative { ); } - late final _CLAHE_ApplyPtr = - _lookup Function(CLAHE, Mat, Mat)>>('CLAHE_Apply'); - late final _CLAHE_Apply = _CLAHE_ApplyPtr.asFunction Function(CLAHE, Mat, Mat)>(); + late final _CLAHE_ApplyPtr = _lookup< + ffi.NativeFunction Function(CLAHE, Mat, Mat)>>( + 'CLAHE_Apply'); + late final _CLAHE_Apply = _CLAHE_ApplyPtr.asFunction< + ffi.Pointer Function(CLAHE, Mat, Mat)>(); void CLAHE_Close( CLAHEPtr c, @@ -2010,8 +2263,10 @@ class CvNative { ); } - late final _CLAHE_ClosePtr = _lookup>('CLAHE_Close'); - late final _CLAHE_Close = _CLAHE_ClosePtr.asFunction(); + late final _CLAHE_ClosePtr = + _lookup>('CLAHE_Close'); + late final _CLAHE_Close = + _CLAHE_ClosePtr.asFunction(); ffi.Pointer CLAHE_CollectGarbage( CLAHE c, @@ -2022,9 +2277,10 @@ class CvNative { } late final _CLAHE_CollectGarbagePtr = - _lookup Function(CLAHE)>>('CLAHE_CollectGarbage'); - late final _CLAHE_CollectGarbage = - _CLAHE_CollectGarbagePtr.asFunction Function(CLAHE)>(); + _lookup Function(CLAHE)>>( + 'CLAHE_CollectGarbage'); + late final _CLAHE_CollectGarbage = _CLAHE_CollectGarbagePtr.asFunction< + ffi.Pointer Function(CLAHE)>(); ffi.Pointer CLAHE_Create( ffi.Pointer rval, @@ -2034,10 +2290,11 @@ class CvNative { ); } - late final _CLAHE_CreatePtr = - _lookup Function(ffi.Pointer)>>('CLAHE_Create'); - late final _CLAHE_Create = - _CLAHE_CreatePtr.asFunction Function(ffi.Pointer)>(); + late final _CLAHE_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('CLAHE_Create'); + late final _CLAHE_Create = _CLAHE_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer CLAHE_CreateWithParams( double clipLimit, @@ -2051,9 +2308,10 @@ class CvNative { ); } - late final _CLAHE_CreateWithParamsPtr = - _lookup Function(ffi.Double, Size, ffi.Pointer)>>( - 'CLAHE_CreateWithParams'); + late final _CLAHE_CreateWithParamsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Double, Size, ffi.Pointer)>>('CLAHE_CreateWithParams'); late final _CLAHE_CreateWithParams = _CLAHE_CreateWithParamsPtr.asFunction< ffi.Pointer Function(double, Size, ffi.Pointer)>(); @@ -2067,11 +2325,12 @@ class CvNative { ); } - late final _CLAHE_GetClipLimitPtr = - _lookup Function(CLAHE, ffi.Pointer)>>( - 'CLAHE_GetClipLimit'); - late final _CLAHE_GetClipLimit = - _CLAHE_GetClipLimitPtr.asFunction Function(CLAHE, ffi.Pointer)>(); + late final _CLAHE_GetClipLimitPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + CLAHE, ffi.Pointer)>>('CLAHE_GetClipLimit'); + late final _CLAHE_GetClipLimit = _CLAHE_GetClipLimitPtr.asFunction< + ffi.Pointer Function(CLAHE, ffi.Pointer)>(); ffi.Pointer CLAHE_GetTilesGridSize( CLAHE c, @@ -2083,11 +2342,12 @@ class CvNative { ); } - late final _CLAHE_GetTilesGridSizePtr = - _lookup Function(CLAHE, ffi.Pointer)>>( - 'CLAHE_GetTilesGridSize'); - late final _CLAHE_GetTilesGridSize = - _CLAHE_GetTilesGridSizePtr.asFunction Function(CLAHE, ffi.Pointer)>(); + late final _CLAHE_GetTilesGridSizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + CLAHE, ffi.Pointer)>>('CLAHE_GetTilesGridSize'); + late final _CLAHE_GetTilesGridSize = _CLAHE_GetTilesGridSizePtr.asFunction< + ffi.Pointer Function(CLAHE, ffi.Pointer)>(); ffi.Pointer CLAHE_SetClipLimit( CLAHE c, @@ -2099,10 +2359,12 @@ class CvNative { ); } - late final _CLAHE_SetClipLimitPtr = - _lookup Function(CLAHE, ffi.Double)>>('CLAHE_SetClipLimit'); - late final _CLAHE_SetClipLimit = - _CLAHE_SetClipLimitPtr.asFunction Function(CLAHE, double)>(); + late final _CLAHE_SetClipLimitPtr = _lookup< + ffi + .NativeFunction Function(CLAHE, ffi.Double)>>( + 'CLAHE_SetClipLimit'); + late final _CLAHE_SetClipLimit = _CLAHE_SetClipLimitPtr.asFunction< + ffi.Pointer Function(CLAHE, double)>(); ffi.Pointer CLAHE_SetTilesGridSize( CLAHE c, @@ -2115,9 +2377,10 @@ class CvNative { } late final _CLAHE_SetTilesGridSizePtr = - _lookup Function(CLAHE, Size)>>('CLAHE_SetTilesGridSize'); - late final _CLAHE_SetTilesGridSize = - _CLAHE_SetTilesGridSizePtr.asFunction Function(CLAHE, Size)>(); + _lookup Function(CLAHE, Size)>>( + 'CLAHE_SetTilesGridSize'); + late final _CLAHE_SetTilesGridSize = _CLAHE_SetTilesGridSizePtr.asFunction< + ffi.Pointer Function(CLAHE, Size)>(); ffi.Pointer CalcBackProject( VecMat mats, @@ -2138,10 +2401,12 @@ class CvNative { } late final _CalcBackProjectPtr = _lookup< - ffi.NativeFunction Function(VecMat, VecInt, Mat, Mat, VecFloat, ffi.Bool)>>( - 'CalcBackProject'); + ffi.NativeFunction< + ffi.Pointer Function(VecMat, VecInt, Mat, Mat, VecFloat, + ffi.Bool)>>('CalcBackProject'); late final _CalcBackProject = _CalcBackProjectPtr.asFunction< - ffi.Pointer Function(VecMat, VecInt, Mat, Mat, VecFloat, bool)>(); + ffi.Pointer Function( + VecMat, VecInt, Mat, Mat, VecFloat, bool)>(); ffi.Pointer CalcHist( VecMat mats, @@ -2165,9 +2430,11 @@ class CvNative { late final _CalcHistPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecMat, VecInt, Mat, Mat, VecInt, VecFloat, ffi.Bool)>>('CalcHist'); + ffi.Pointer Function(VecMat, VecInt, Mat, Mat, VecInt, + VecFloat, ffi.Bool)>>('CalcHist'); late final _CalcHist = _CalcHistPtr.asFunction< - ffi.Pointer Function(VecMat, VecInt, Mat, Mat, VecInt, VecFloat, bool)>(); + ffi.Pointer Function( + VecMat, VecInt, Mat, Mat, VecInt, VecFloat, bool)>(); ffi.Pointer CalcOpticalFlowFarneback( Mat prevImg, @@ -2197,10 +2464,21 @@ class CvNative { late final _CalcOpticalFlowFarnebackPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, ffi.Double, ffi.Int, ffi.Int, ffi.Int, ffi.Int, - ffi.Double, ffi.Int)>>('CalcOpticalFlowFarneback'); - late final _CalcOpticalFlowFarneback = _CalcOpticalFlowFarnebackPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, double, int, int, int, int, double, int)>(); + ffi.Pointer Function( + Mat, + Mat, + Mat, + ffi.Double, + ffi.Int, + ffi.Int, + ffi.Int, + ffi.Int, + ffi.Double, + ffi.Int)>>('CalcOpticalFlowFarneback'); + late final _CalcOpticalFlowFarneback = + _CalcOpticalFlowFarnebackPtr.asFunction< + ffi.Pointer Function( + Mat, Mat, Mat, double, int, int, int, int, double, int)>(); ffi.Pointer CalcOpticalFlowPyrLK( Mat prevImg, @@ -2222,10 +2500,11 @@ class CvNative { late final _CalcOpticalFlowPyrLKPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, VecPoint2f, VecPoint2f, VecUChar, VecFloat)>>('CalcOpticalFlowPyrLK'); + ffi.Pointer Function(Mat, Mat, VecPoint2f, VecPoint2f, + VecUChar, VecFloat)>>('CalcOpticalFlowPyrLK'); late final _CalcOpticalFlowPyrLK = _CalcOpticalFlowPyrLKPtr.asFunction< - ffi.Pointer Function(Mat, Mat, VecPoint2f, VecPoint2f, VecUChar, VecFloat)>(); + ffi.Pointer Function( + Mat, Mat, VecPoint2f, VecPoint2f, VecUChar, VecFloat)>(); ffi.Pointer CalcOpticalFlowPyrLKWithParams( Mat prevImg, @@ -2269,9 +2548,20 @@ class CvNative { TermCriteria, ffi.Int, ffi.Double)>>('CalcOpticalFlowPyrLKWithParams'); - late final _CalcOpticalFlowPyrLKWithParams = _CalcOpticalFlowPyrLKWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, VecPoint2f, VecPoint2f, ffi.Pointer, - ffi.Pointer, Size, int, TermCriteria, int, double)>(); + late final _CalcOpticalFlowPyrLKWithParams = + _CalcOpticalFlowPyrLKWithParamsPtr.asFunction< + ffi.Pointer Function( + Mat, + Mat, + VecPoint2f, + VecPoint2f, + ffi.Pointer, + ffi.Pointer, + Size, + int, + TermCriteria, + int, + double)>(); ffi.Pointer CalibrateCamera( VecVecPoint3f objectPoints, @@ -2301,11 +2591,20 @@ class CvNative { late final _CalibrateCameraPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecVecPoint3f, VecVecPoint2f, Size, Mat, Mat, Mat, Mat, ffi.Int, - TermCriteria, ffi.Pointer)>>('CalibrateCamera'); + ffi.Pointer Function( + VecVecPoint3f, + VecVecPoint2f, + Size, + Mat, + Mat, + Mat, + Mat, + ffi.Int, + TermCriteria, + ffi.Pointer)>>('CalibrateCamera'); late final _CalibrateCamera = _CalibrateCameraPtr.asFunction< - ffi.Pointer Function(VecVecPoint3f, VecVecPoint2f, Size, Mat, Mat, Mat, Mat, int, - TermCriteria, ffi.Pointer)>(); + ffi.Pointer Function(VecVecPoint3f, VecVecPoint2f, Size, Mat, + Mat, Mat, Mat, int, TermCriteria, ffi.Pointer)>(); ffi.Pointer Canny( Mat src, @@ -2327,9 +2626,10 @@ class CvNative { late final _CannyPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Double, ffi.Double, ffi.Int, ffi.Bool)>>('Canny'); - late final _Canny = - _CannyPtr.asFunction Function(Mat, Mat, double, double, int, bool)>(); + ffi.Pointer Function( + Mat, Mat, ffi.Double, ffi.Double, ffi.Int, ffi.Bool)>>('Canny'); + late final _Canny = _CannyPtr.asFunction< + ffi.Pointer Function(Mat, Mat, double, double, int, bool)>(); void CascadeClassifier_Close( CascadeClassifierPtr self, @@ -2340,9 +2640,10 @@ class CvNative { } late final _CascadeClassifier_ClosePtr = - _lookup>('CascadeClassifier_Close'); - late final _CascadeClassifier_Close = - _CascadeClassifier_ClosePtr.asFunction(); + _lookup>( + 'CascadeClassifier_Close'); + late final _CascadeClassifier_Close = _CascadeClassifier_ClosePtr.asFunction< + void Function(CascadeClassifierPtr)>(); ffi.Pointer CascadeClassifier_DetectMultiScale( CascadeClassifier self, @@ -2357,10 +2658,13 @@ class CvNative { } late final _CascadeClassifier_DetectMultiScalePtr = _lookup< - ffi.NativeFunction Function(CascadeClassifier, Mat, ffi.Pointer)>>( - 'CascadeClassifier_DetectMultiScale'); - late final _CascadeClassifier_DetectMultiScale = _CascadeClassifier_DetectMultiScalePtr.asFunction< - ffi.Pointer Function(CascadeClassifier, Mat, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, Mat, + ffi.Pointer)>>('CascadeClassifier_DetectMultiScale'); + late final _CascadeClassifier_DetectMultiScale = + _CascadeClassifier_DetectMultiScalePtr.asFunction< + ffi.Pointer Function( + CascadeClassifier, Mat, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_DetectMultiScale2( CascadeClassifier self, @@ -2388,11 +2692,28 @@ class CvNative { late final _CascadeClassifier_DetectMultiScale2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, Mat, ffi.Pointer, ffi.Pointer, - ffi.Double, ffi.Int, ffi.Int, Size, Size)>>('CascadeClassifier_DetectMultiScale2'); - late final _CascadeClassifier_DetectMultiScale2 = _CascadeClassifier_DetectMultiScale2Ptr.asFunction< - ffi.Pointer Function( - CascadeClassifier, Mat, ffi.Pointer, ffi.Pointer, double, int, int, Size, Size)>(); + ffi.Pointer Function( + CascadeClassifier, + Mat, + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Int, + ffi.Int, + Size, + Size)>>('CascadeClassifier_DetectMultiScale2'); + late final _CascadeClassifier_DetectMultiScale2 = + _CascadeClassifier_DetectMultiScale2Ptr.asFunction< + ffi.Pointer Function( + CascadeClassifier, + Mat, + ffi.Pointer, + ffi.Pointer, + double, + int, + int, + Size, + Size)>(); ffi.Pointer CascadeClassifier_DetectMultiScale2_Async( CascadeClassifier self, @@ -2418,12 +2739,19 @@ class CvNative { late final _CascadeClassifier_DetectMultiScale2_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, Mat, ffi.Double, ffi.Int, ffi.Int, Size, Size, + ffi.Pointer Function( + CascadeClassifier, + Mat, + ffi.Double, + ffi.Int, + ffi.Int, + Size, + Size, CvCallback_2)>>('CascadeClassifier_DetectMultiScale2_Async'); late final _CascadeClassifier_DetectMultiScale2_Async = _CascadeClassifier_DetectMultiScale2_AsyncPtr.asFunction< - ffi.Pointer Function( - CascadeClassifier, Mat, double, int, int, Size, Size, CvCallback_2)>(); + ffi.Pointer Function(CascadeClassifier, Mat, double, int, + int, Size, Size, CvCallback_2)>(); ffi.Pointer CascadeClassifier_DetectMultiScale3( CascadeClassifier self, @@ -2467,9 +2795,20 @@ class CvNative { Size, Size, ffi.Bool)>>('CascadeClassifier_DetectMultiScale3'); - late final _CascadeClassifier_DetectMultiScale3 = _CascadeClassifier_DetectMultiScale3Ptr.asFunction< - ffi.Pointer Function(CascadeClassifier, Mat, ffi.Pointer, ffi.Pointer, - ffi.Pointer, double, int, int, Size, Size, bool)>(); + late final _CascadeClassifier_DetectMultiScale3 = + _CascadeClassifier_DetectMultiScale3Ptr.asFunction< + ffi.Pointer Function( + CascadeClassifier, + Mat, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + double, + int, + int, + Size, + Size, + bool)>(); ffi.Pointer CascadeClassifier_DetectMultiScale3_Async( CascadeClassifier self, @@ -2497,12 +2836,20 @@ class CvNative { late final _CascadeClassifier_DetectMultiScale3_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, Mat, ffi.Double, ffi.Int, ffi.Int, Size, Size, - ffi.Bool, CvCallback_3)>>('CascadeClassifier_DetectMultiScale3_Async'); + ffi.Pointer Function( + CascadeClassifier, + Mat, + ffi.Double, + ffi.Int, + ffi.Int, + Size, + Size, + ffi.Bool, + CvCallback_3)>>('CascadeClassifier_DetectMultiScale3_Async'); late final _CascadeClassifier_DetectMultiScale3_Async = _CascadeClassifier_DetectMultiScale3_AsyncPtr.asFunction< - ffi.Pointer Function( - CascadeClassifier, Mat, double, int, int, Size, Size, bool, CvCallback_3)>(); + ffi.Pointer Function(CascadeClassifier, Mat, double, int, + int, Size, Size, bool, CvCallback_3)>(); ffi.Pointer CascadeClassifier_DetectMultiScaleWithParams( CascadeClassifier self, @@ -2528,12 +2875,19 @@ class CvNative { late final _CascadeClassifier_DetectMultiScaleWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, Mat, ffi.Pointer, ffi.Double, ffi.Int, - ffi.Int, Size, Size)>>('CascadeClassifier_DetectMultiScaleWithParams'); + ffi.Pointer Function( + CascadeClassifier, + Mat, + ffi.Pointer, + ffi.Double, + ffi.Int, + ffi.Int, + Size, + Size)>>('CascadeClassifier_DetectMultiScaleWithParams'); late final _CascadeClassifier_DetectMultiScaleWithParams = _CascadeClassifier_DetectMultiScaleWithParamsPtr.asFunction< - ffi.Pointer Function( - CascadeClassifier, Mat, ffi.Pointer, double, int, int, Size, Size)>(); + ffi.Pointer Function(CascadeClassifier, Mat, + ffi.Pointer, double, int, int, Size, Size)>(); ffi.Pointer CascadeClassifier_DetectMultiScaleWithParams_Async( CascadeClassifier self, @@ -2558,13 +2912,14 @@ class CvNative { } late final _CascadeClassifier_DetectMultiScaleWithParams_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, Mat, ffi.Double, ffi.Int, ffi.Int, Size, Size, - CvCallback_1)>>('CascadeClassifier_DetectMultiScaleWithParams_Async'); + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, Mat, ffi.Double, + ffi.Int, ffi.Int, Size, Size, CvCallback_1)>>( + 'CascadeClassifier_DetectMultiScaleWithParams_Async'); late final _CascadeClassifier_DetectMultiScaleWithParams_Async = _CascadeClassifier_DetectMultiScaleWithParams_AsyncPtr.asFunction< - ffi.Pointer Function( - CascadeClassifier, Mat, double, int, int, Size, Size, CvCallback_1)>(); + ffi.Pointer Function(CascadeClassifier, Mat, double, int, + int, Size, Size, CvCallback_1)>(); ffi.Pointer CascadeClassifier_DetectMultiScale_Async( CascadeClassifier self, @@ -2578,11 +2933,14 @@ class CvNative { ); } - late final _CascadeClassifier_DetectMultiScale_AsyncPtr = - _lookup Function(CascadeClassifier, Mat, CvCallback_1)>>( - 'CascadeClassifier_DetectMultiScale_Async'); - late final _CascadeClassifier_DetectMultiScale_Async = _CascadeClassifier_DetectMultiScale_AsyncPtr - .asFunction Function(CascadeClassifier, Mat, CvCallback_1)>(); + late final _CascadeClassifier_DetectMultiScale_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, Mat, + CvCallback_1)>>('CascadeClassifier_DetectMultiScale_Async'); + late final _CascadeClassifier_DetectMultiScale_Async = + _CascadeClassifier_DetectMultiScale_AsyncPtr.asFunction< + ffi.Pointer Function( + CascadeClassifier, Mat, CvCallback_1)>(); ffi.Pointer CascadeClassifier_Empty( CascadeClassifier self, @@ -2594,11 +2952,13 @@ class CvNative { ); } - late final _CascadeClassifier_EmptyPtr = - _lookup Function(CascadeClassifier, ffi.Pointer)>>( - 'CascadeClassifier_Empty'); + late final _CascadeClassifier_EmptyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, + ffi.Pointer)>>('CascadeClassifier_Empty'); late final _CascadeClassifier_Empty = _CascadeClassifier_EmptyPtr.asFunction< - ffi.Pointer Function(CascadeClassifier, ffi.Pointer)>(); + ffi.Pointer Function( + CascadeClassifier, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_Empty_Async( CascadeClassifier self, @@ -2610,11 +2970,13 @@ class CvNative { ); } - late final _CascadeClassifier_Empty_AsyncPtr = - _lookup Function(CascadeClassifier, CvCallback_1)>>( - 'CascadeClassifier_Empty_Async'); - late final _CascadeClassifier_Empty_Async = _CascadeClassifier_Empty_AsyncPtr.asFunction< - ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); + late final _CascadeClassifier_Empty_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, + CvCallback_1)>>('CascadeClassifier_Empty_Async'); + late final _CascadeClassifier_Empty_Async = + _CascadeClassifier_Empty_AsyncPtr.asFunction< + ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); ffi.Pointer CascadeClassifier_Load( CascadeClassifier self, @@ -2631,9 +2993,12 @@ class CvNative { late final _CascadeClassifier_LoadPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - CascadeClassifier, ffi.Pointer, ffi.Pointer)>>('CascadeClassifier_Load'); + CascadeClassifier, + ffi.Pointer, + ffi.Pointer)>>('CascadeClassifier_Load'); late final _CascadeClassifier_Load = _CascadeClassifier_LoadPtr.asFunction< - ffi.Pointer Function(CascadeClassifier, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + CascadeClassifier, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_Load_Async( CascadeClassifier self, @@ -2650,9 +3015,13 @@ class CvNative { late final _CascadeClassifier_Load_AsyncPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - CascadeClassifier, ffi.Pointer, CvCallback_1)>>('CascadeClassifier_Load_Async'); - late final _CascadeClassifier_Load_Async = _CascadeClassifier_Load_AsyncPtr.asFunction< - ffi.Pointer Function(CascadeClassifier, ffi.Pointer, CvCallback_1)>(); + CascadeClassifier, + ffi.Pointer, + CvCallback_1)>>('CascadeClassifier_Load_Async'); + late final _CascadeClassifier_Load_Async = + _CascadeClassifier_Load_AsyncPtr.asFunction< + ffi.Pointer Function( + CascadeClassifier, ffi.Pointer, CvCallback_1)>(); ffi.Pointer CascadeClassifier_New( ffi.Pointer rval, @@ -2662,12 +3031,13 @@ class CvNative { ); } - late final _CascadeClassifier_NewPtr = - _lookup Function(ffi.Pointer)>>( - 'CascadeClassifier_New'); - late final _CascadeClassifier_New = - _CascadeClassifier_NewPtr.asFunction Function(ffi.Pointer)>(); - + late final _CascadeClassifier_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('CascadeClassifier_New'); + late final _CascadeClassifier_New = _CascadeClassifier_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); + ffi.Pointer CascadeClassifier_NewFromFile( ffi.Pointer filename, ffi.Pointer rval, @@ -2679,11 +3049,14 @@ class CvNative { } late final _CascadeClassifier_NewFromFilePtr = _lookup< - ffi.NativeFunction< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>( + 'CascadeClassifier_NewFromFile'); + late final _CascadeClassifier_NewFromFile = + _CascadeClassifier_NewFromFilePtr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('CascadeClassifier_NewFromFile'); - late final _CascadeClassifier_NewFromFile = _CascadeClassifier_NewFromFilePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_NewFromFile_Async( ffi.Pointer filename, @@ -2695,11 +3068,14 @@ class CvNative { ); } - late final _CascadeClassifier_NewFromFile_AsyncPtr = - _lookup Function(ffi.Pointer, CvCallback_1)>>( - 'CascadeClassifier_NewFromFile_Async'); - late final _CascadeClassifier_NewFromFile_Async = _CascadeClassifier_NewFromFile_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, CvCallback_1)>(); + late final _CascadeClassifier_NewFromFile_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + CvCallback_1)>>('CascadeClassifier_NewFromFile_Async'); + late final _CascadeClassifier_NewFromFile_Async = + _CascadeClassifier_NewFromFile_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, CvCallback_1)>(); ffi.Pointer CascadeClassifier_New_Async( CvCallback_1 callback, @@ -2712,8 +3088,8 @@ class CvNative { late final _CascadeClassifier_New_AsyncPtr = _lookup Function(CvCallback_1)>>( 'CascadeClassifier_New_Async'); - late final _CascadeClassifier_New_Async = - _CascadeClassifier_New_AsyncPtr.asFunction Function(CvCallback_1)>(); + late final _CascadeClassifier_New_Async = _CascadeClassifier_New_AsyncPtr + .asFunction Function(CvCallback_1)>(); ffi.Pointer CascadeClassifier_getFeatureType( CascadeClassifier self, @@ -2725,11 +3101,14 @@ class CvNative { ); } - late final _CascadeClassifier_getFeatureTypePtr = - _lookup Function(CascadeClassifier, ffi.Pointer)>>( - 'CascadeClassifier_getFeatureType'); - late final _CascadeClassifier_getFeatureType = _CascadeClassifier_getFeatureTypePtr.asFunction< - ffi.Pointer Function(CascadeClassifier, ffi.Pointer)>(); + late final _CascadeClassifier_getFeatureTypePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, + ffi.Pointer)>>('CascadeClassifier_getFeatureType'); + late final _CascadeClassifier_getFeatureType = + _CascadeClassifier_getFeatureTypePtr.asFunction< + ffi.Pointer Function( + CascadeClassifier, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_getFeatureType_Async( CascadeClassifier self, @@ -2741,11 +3120,13 @@ class CvNative { ); } - late final _CascadeClassifier_getFeatureType_AsyncPtr = - _lookup Function(CascadeClassifier, CvCallback_1)>>( - 'CascadeClassifier_getFeatureType_Async'); - late final _CascadeClassifier_getFeatureType_Async = _CascadeClassifier_getFeatureType_AsyncPtr.asFunction< - ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); + late final _CascadeClassifier_getFeatureType_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, + CvCallback_1)>>('CascadeClassifier_getFeatureType_Async'); + late final _CascadeClassifier_getFeatureType_Async = + _CascadeClassifier_getFeatureType_AsyncPtr.asFunction< + ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); ffi.Pointer CascadeClassifier_getOriginalWindowSize( CascadeClassifier self, @@ -2757,11 +3138,14 @@ class CvNative { ); } - late final _CascadeClassifier_getOriginalWindowSizePtr = - _lookup Function(CascadeClassifier, ffi.Pointer)>>( - 'CascadeClassifier_getOriginalWindowSize'); - late final _CascadeClassifier_getOriginalWindowSize = _CascadeClassifier_getOriginalWindowSizePtr - .asFunction Function(CascadeClassifier, ffi.Pointer)>(); + late final _CascadeClassifier_getOriginalWindowSizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, + ffi.Pointer)>>('CascadeClassifier_getOriginalWindowSize'); + late final _CascadeClassifier_getOriginalWindowSize = + _CascadeClassifier_getOriginalWindowSizePtr.asFunction< + ffi.Pointer Function( + CascadeClassifier, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_getOriginalWindowSize_Async( CascadeClassifier self, @@ -2773,9 +3157,10 @@ class CvNative { ); } - late final _CascadeClassifier_getOriginalWindowSize_AsyncPtr = - _lookup Function(CascadeClassifier, CvCallback_1)>>( - 'CascadeClassifier_getOriginalWindowSize_Async'); + late final _CascadeClassifier_getOriginalWindowSize_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, + CvCallback_1)>>('CascadeClassifier_getOriginalWindowSize_Async'); late final _CascadeClassifier_getOriginalWindowSize_Async = _CascadeClassifier_getOriginalWindowSize_AsyncPtr.asFunction< ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); @@ -2790,11 +3175,14 @@ class CvNative { ); } - late final _CascadeClassifier_isOldFormatCascadePtr = - _lookup Function(CascadeClassifier, ffi.Pointer)>>( - 'CascadeClassifier_isOldFormatCascade'); - late final _CascadeClassifier_isOldFormatCascade = _CascadeClassifier_isOldFormatCascadePtr.asFunction< - ffi.Pointer Function(CascadeClassifier, ffi.Pointer)>(); + late final _CascadeClassifier_isOldFormatCascadePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, + ffi.Pointer)>>('CascadeClassifier_isOldFormatCascade'); + late final _CascadeClassifier_isOldFormatCascade = + _CascadeClassifier_isOldFormatCascadePtr.asFunction< + ffi.Pointer Function( + CascadeClassifier, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_isOldFormatCascade_Async( CascadeClassifier self, @@ -2806,11 +3194,13 @@ class CvNative { ); } - late final _CascadeClassifier_isOldFormatCascade_AsyncPtr = - _lookup Function(CascadeClassifier, CvCallback_1)>>( - 'CascadeClassifier_isOldFormatCascade_Async'); - late final _CascadeClassifier_isOldFormatCascade_Async = _CascadeClassifier_isOldFormatCascade_AsyncPtr - .asFunction Function(CascadeClassifier, CvCallback_1)>(); + late final _CascadeClassifier_isOldFormatCascade_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, + CvCallback_1)>>('CascadeClassifier_isOldFormatCascade_Async'); + late final _CascadeClassifier_isOldFormatCascade_Async = + _CascadeClassifier_isOldFormatCascade_AsyncPtr.asFunction< + ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); ffi.Pointer Circle( Mat img, @@ -2828,10 +3218,12 @@ class CvNative { ); } - late final _CirclePtr = - _lookup Function(Mat, Point, ffi.Int, Scalar, ffi.Int)>>( - 'Circle'); - late final _Circle = _CirclePtr.asFunction Function(Mat, Point, int, Scalar, int)>(); + late final _CirclePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Point, ffi.Int, Scalar, ffi.Int)>>('Circle'); + late final _Circle = _CirclePtr.asFunction< + ffi.Pointer Function(Mat, Point, int, Scalar, int)>(); ffi.Pointer CircleWithParams( Mat img, @@ -2855,8 +3247,8 @@ class CvNative { late final _CircleWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Point, ffi.Int, Scalar, ffi.Int, ffi.Int, ffi.Int)>>('CircleWithParams'); + ffi.Pointer Function(Mat, Point, ffi.Int, Scalar, ffi.Int, + ffi.Int, ffi.Int)>>('CircleWithParams'); late final _CircleWithParams = _CircleWithParamsPtr.asFunction< ffi.Pointer Function(Mat, Point, int, Scalar, int, int, int)>(); @@ -2874,11 +3266,13 @@ class CvNative { ); } - late final _ClipLinePtr = - _lookup Function(Rect, Point, Point, ffi.Pointer)>>( - 'ClipLine'); - late final _ClipLine = - _ClipLinePtr.asFunction Function(Rect, Point, Point, ffi.Pointer)>(); + late final _ClipLinePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Rect, Point, Point, ffi.Pointer)>>('ClipLine'); + late final _ClipLine = _ClipLinePtr.asFunction< + ffi.Pointer Function( + Rect, Point, Point, ffi.Pointer)>(); ffi.Pointer ColorChange( Mat src, @@ -2899,10 +3293,11 @@ class CvNative { } late final _ColorChangePtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat, ffi.Float, ffi.Float, ffi.Float)>>( - 'ColorChange'); - late final _ColorChange = - _ColorChangePtr.asFunction Function(Mat, Mat, Mat, double, double, double)>(); + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Float, ffi.Float, ffi.Float)>>('ColorChange'); + late final _ColorChange = _ColorChangePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, double, double, double)>(); ffi.Pointer CompareHist( Mat hist1, @@ -2918,11 +3313,12 @@ class CvNative { ); } - late final _CompareHistPtr = - _lookup Function(Mat, Mat, ffi.Int, ffi.Pointer)>>( - 'CompareHist'); - late final _CompareHist = - _CompareHistPtr.asFunction Function(Mat, Mat, int, ffi.Pointer)>(); + late final _CompareHistPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Pointer)>>('CompareHist'); + late final _CompareHist = _CompareHistPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer ConnectedComponents( Mat src, @@ -2944,10 +3340,11 @@ class CvNative { late final _ConnectedComponentsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('ConnectedComponents'); + ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer)>>('ConnectedComponents'); late final _ConnectedComponents = _ConnectedComponentsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer ConnectedComponentsWithStats( Mat src, @@ -2973,10 +3370,12 @@ class CvNative { late final _ConnectedComponentsWithStatsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer)>>('ConnectedComponentsWithStats'); - late final _ConnectedComponentsWithStats = _ConnectedComponentsWithStatsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, Mat, Mat, Mat, ffi.Int, ffi.Int, + ffi.Int, ffi.Pointer)>>('ConnectedComponentsWithStats'); + late final _ConnectedComponentsWithStats = + _ConnectedComponentsWithStatsPtr.asFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer ContourArea( VecPoint pts, @@ -2988,11 +3387,12 @@ class CvNative { ); } - late final _ContourAreaPtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'ContourArea'); - late final _ContourArea = - _ContourAreaPtr.asFunction Function(VecPoint, ffi.Pointer)>(); + late final _ContourAreaPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('ContourArea'); + late final _ContourArea = _ContourAreaPtr.asFunction< + ffi.Pointer Function(VecPoint, ffi.Pointer)>(); ffi.Pointer ConvexHull( VecPoint points, @@ -3008,11 +3408,12 @@ class CvNative { ); } - late final _ConvexHullPtr = - _lookup Function(VecPoint, Mat, ffi.Bool, ffi.Bool)>>( - 'ConvexHull'); - late final _ConvexHull = - _ConvexHullPtr.asFunction Function(VecPoint, Mat, bool, bool)>(); + late final _ConvexHullPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, Mat, ffi.Bool, ffi.Bool)>>('ConvexHull'); + late final _ConvexHull = _ConvexHullPtr.asFunction< + ffi.Pointer Function(VecPoint, Mat, bool, bool)>(); ffi.Pointer ConvexityDefects( VecPoint points, @@ -3026,10 +3427,12 @@ class CvNative { ); } - late final _ConvexityDefectsPtr = - _lookup Function(VecPoint, Mat, Mat)>>('ConvexityDefects'); - late final _ConvexityDefects = - _ConvexityDefectsPtr.asFunction Function(VecPoint, Mat, Mat)>(); + late final _ConvexityDefectsPtr = _lookup< + ffi + .NativeFunction Function(VecPoint, Mat, Mat)>>( + 'ConvexityDefects'); + late final _ConvexityDefects = _ConvexityDefectsPtr.asFunction< + ffi.Pointer Function(VecPoint, Mat, Mat)>(); ffi.Pointer CornerSubPix( Mat img, @@ -3047,11 +3450,13 @@ class CvNative { ); } - late final _CornerSubPixPtr = - _lookup Function(Mat, VecPoint2f, Size, Size, TermCriteria)>>( - 'CornerSubPix'); + late final _CornerSubPixPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, VecPoint2f, Size, Size, TermCriteria)>>('CornerSubPix'); late final _CornerSubPix = _CornerSubPixPtr.asFunction< - ffi.Pointer Function(Mat, VecPoint2f, Size, Size, TermCriteria)>(); + ffi.Pointer Function( + Mat, VecPoint2f, Size, Size, TermCriteria)>(); void CvStatus_Close( ffi.Pointer self, @@ -3062,8 +3467,10 @@ class CvNative { } late final _CvStatus_ClosePtr = - _lookup)>>('CvStatus_Close'); - late final _CvStatus_Close = _CvStatus_ClosePtr.asFunction)>(); + _lookup)>>( + 'CvStatus_Close'); + late final _CvStatus_Close = + _CvStatus_ClosePtr.asFunction)>(); ffi.Pointer CvtColor( Mat src, @@ -3077,9 +3484,11 @@ class CvNative { ); } - late final _CvtColorPtr = - _lookup Function(Mat, Mat, ffi.Int)>>('CvtColor'); - late final _CvtColor = _CvtColorPtr.asFunction Function(Mat, Mat, int)>(); + late final _CvtColorPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int)>>('CvtColor'); + late final _CvtColor = + _CvtColorPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer CvtColor_Async( Mat src, @@ -3093,11 +3502,12 @@ class CvNative { ); } - late final _CvtColor_AsyncPtr = - _lookup Function(Mat, ffi.Int, CvCallback_1)>>( - 'CvtColor_Async'); - late final _CvtColor_Async = - _CvtColor_AsyncPtr.asFunction Function(Mat, int, CvCallback_1)>(); + late final _CvtColor_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, CvCallback_1)>>('CvtColor_Async'); + late final _CvtColor_Async = _CvtColor_AsyncPtr.asFunction< + ffi.Pointer Function(Mat, int, CvCallback_1)>(); ffi.Pointer DetailEnhance( Mat src, @@ -3113,11 +3523,12 @@ class CvNative { ); } - late final _DetailEnhancePtr = - _lookup Function(Mat, Mat, ffi.Float, ffi.Float)>>( - 'DetailEnhance'); - late final _DetailEnhance = - _DetailEnhancePtr.asFunction Function(Mat, Mat, double, double)>(); + late final _DetailEnhancePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Float, ffi.Float)>>('DetailEnhance'); + late final _DetailEnhance = _DetailEnhancePtr.asFunction< + ffi.Pointer Function(Mat, Mat, double, double)>(); ffi.Pointer Dilate( Mat src, @@ -3131,9 +3542,11 @@ class CvNative { ); } - late final _DilatePtr = - _lookup Function(Mat, Mat, Mat)>>('Dilate'); - late final _Dilate = _DilatePtr.asFunction Function(Mat, Mat, Mat)>(); + late final _DilatePtr = _lookup< + ffi + .NativeFunction Function(Mat, Mat, Mat)>>('Dilate'); + late final _Dilate = + _DilatePtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer DilateWithParams( Mat src, @@ -3156,8 +3569,9 @@ class CvNative { } late final _DilateWithParamsPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat, Point, ffi.Int, ffi.Int, Scalar)>>( - 'DilateWithParams'); + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Mat, Point, ffi.Int, ffi.Int, + Scalar)>>('DilateWithParams'); late final _DilateWithParams = _DilateWithParamsPtr.asFunction< ffi.Pointer Function(Mat, Mat, Mat, Point, int, int, Scalar)>(); @@ -3179,11 +3593,12 @@ class CvNative { ); } - late final _DistanceTransformPtr = - _lookup Function(Mat, Mat, Mat, ffi.Int, ffi.Int, ffi.Int)>>( - 'DistanceTransform'); - late final _DistanceTransform = - _DistanceTransformPtr.asFunction Function(Mat, Mat, Mat, int, int, int)>(); + late final _DistanceTransformPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Int, ffi.Int, ffi.Int)>>('DistanceTransform'); + late final _DistanceTransform = _DistanceTransformPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, int, int, int)>(); ffi.Pointer DrawChessboardCorners( Mat image, @@ -3199,11 +3614,12 @@ class CvNative { ); } - late final _DrawChessboardCornersPtr = - _lookup Function(Mat, Size, Mat, ffi.Bool)>>( - 'DrawChessboardCorners'); - late final _DrawChessboardCorners = - _DrawChessboardCornersPtr.asFunction Function(Mat, Size, Mat, bool)>(); + late final _DrawChessboardCornersPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Size, Mat, ffi.Bool)>>('DrawChessboardCorners'); + late final _DrawChessboardCorners = _DrawChessboardCornersPtr.asFunction< + ffi.Pointer Function(Mat, Size, Mat, bool)>(); ffi.Pointer DrawContours( Mat src, @@ -3221,11 +3637,12 @@ class CvNative { ); } - late final _DrawContoursPtr = - _lookup Function(Mat, VecVecPoint, ffi.Int, Scalar, ffi.Int)>>( - 'DrawContours'); - late final _DrawContours = - _DrawContoursPtr.asFunction Function(Mat, VecVecPoint, int, Scalar, int)>(); + late final _DrawContoursPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, VecVecPoint, ffi.Int, Scalar, ffi.Int)>>('DrawContours'); + late final _DrawContours = _DrawContoursPtr.asFunction< + ffi.Pointer Function(Mat, VecVecPoint, int, Scalar, int)>(); ffi.Pointer DrawContoursWithParams( Mat src, @@ -3253,10 +3670,19 @@ class CvNative { late final _DrawContoursWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, VecVecPoint, ffi.Int, Scalar, ffi.Int, ffi.Int, Mat, ffi.Int, + ffi.Pointer Function( + Mat, + VecVecPoint, + ffi.Int, + Scalar, + ffi.Int, + ffi.Int, + Mat, + ffi.Int, Point)>>('DrawContoursWithParams'); late final _DrawContoursWithParams = _DrawContoursWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, VecVecPoint, int, Scalar, int, int, Mat, int, Point)>(); + ffi.Pointer Function( + Mat, VecVecPoint, int, Scalar, int, int, Mat, int, Point)>(); ffi.Pointer DrawKeyPoints( Mat src, @@ -3274,11 +3700,12 @@ class CvNative { ); } - late final _DrawKeyPointsPtr = - _lookup Function(Mat, VecKeyPoint, Mat, Scalar, ffi.Int)>>( - 'DrawKeyPoints'); - late final _DrawKeyPoints = - _DrawKeyPointsPtr.asFunction Function(Mat, VecKeyPoint, Mat, Scalar, int)>(); + late final _DrawKeyPointsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, VecKeyPoint, Mat, Scalar, ffi.Int)>>('DrawKeyPoints'); + late final _DrawKeyPoints = _DrawKeyPointsPtr.asFunction< + ffi.Pointer Function(Mat, VecKeyPoint, Mat, Scalar, int)>(); ffi.Pointer DrawMatches( Mat img1, @@ -3308,11 +3735,20 @@ class CvNative { late final _DrawMatchesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, VecKeyPoint, Mat, VecKeyPoint, VecDMatch, Mat, Scalar, Scalar, - VecChar, ffi.Int)>>('DrawMatches'); + ffi.Pointer Function( + Mat, + VecKeyPoint, + Mat, + VecKeyPoint, + VecDMatch, + Mat, + Scalar, + Scalar, + VecChar, + ffi.Int)>>('DrawMatches'); late final _DrawMatches = _DrawMatchesPtr.asFunction< - ffi.Pointer Function( - Mat, VecKeyPoint, Mat, VecKeyPoint, VecDMatch, Mat, Scalar, Scalar, VecChar, int)>(); + ffi.Pointer Function(Mat, VecKeyPoint, Mat, VecKeyPoint, + VecDMatch, Mat, Scalar, Scalar, VecChar, int)>(); ffi.Pointer EdgePreservingFilter( Mat src, @@ -3330,11 +3766,12 @@ class CvNative { ); } - late final _EdgePreservingFilterPtr = - _lookup Function(Mat, Mat, ffi.Int, ffi.Float, ffi.Float)>>( - 'EdgePreservingFilter'); - late final _EdgePreservingFilter = - _EdgePreservingFilterPtr.asFunction Function(Mat, Mat, int, double, double)>(); + late final _EdgePreservingFilterPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Float, + ffi.Float)>>('EdgePreservingFilter'); + late final _EdgePreservingFilter = _EdgePreservingFilterPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, double, double)>(); ffi.Pointer Ellipse( Mat img, @@ -3360,10 +3797,11 @@ class CvNative { late final _EllipsePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Point, Point, ffi.Double, ffi.Double, ffi.Double, Scalar, ffi.Int)>>('Ellipse'); + ffi.Pointer Function(Mat, Point, Point, ffi.Double, + ffi.Double, ffi.Double, Scalar, ffi.Int)>>('Ellipse'); late final _Ellipse = _EllipsePtr.asFunction< - ffi.Pointer Function(Mat, Point, Point, double, double, double, Scalar, int)>(); + ffi.Pointer Function( + Mat, Point, Point, double, double, double, Scalar, int)>(); ffi.Pointer EllipseWithParams( Mat img, @@ -3393,10 +3831,20 @@ class CvNative { late final _EllipseWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Point, Point, ffi.Double, ffi.Double, ffi.Double, Scalar, - ffi.Int, ffi.Int, ffi.Int)>>('EllipseWithParams'); + ffi.Pointer Function( + Mat, + Point, + Point, + ffi.Double, + ffi.Double, + ffi.Double, + Scalar, + ffi.Int, + ffi.Int, + ffi.Int)>>('EllipseWithParams'); late final _EllipseWithParams = _EllipseWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Point, Point, double, double, double, Scalar, int, int, int)>(); + ffi.Pointer Function( + Mat, Point, Point, double, double, double, Scalar, int, int, int)>(); ffi.Pointer EqualizeHist( Mat src, @@ -3409,8 +3857,10 @@ class CvNative { } late final _EqualizeHistPtr = - _lookup Function(Mat, Mat)>>('EqualizeHist'); - late final _EqualizeHist = _EqualizeHistPtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'EqualizeHist'); + late final _EqualizeHist = + _EqualizeHistPtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Erode( Mat src, @@ -3424,8 +3874,11 @@ class CvNative { ); } - late final _ErodePtr = _lookup Function(Mat, Mat, Mat)>>('Erode'); - late final _Erode = _ErodePtr.asFunction Function(Mat, Mat, Mat)>(); + late final _ErodePtr = _lookup< + ffi + .NativeFunction Function(Mat, Mat, Mat)>>('Erode'); + late final _Erode = + _ErodePtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer ErodeWithParams( Mat src, @@ -3448,8 +3901,9 @@ class CvNative { } late final _ErodeWithParamsPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat, Point, ffi.Int, ffi.Int, Scalar)>>( - 'ErodeWithParams'); + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Mat, Point, ffi.Int, ffi.Int, + Scalar)>>('ErodeWithParams'); late final _ErodeWithParams = _ErodeWithParamsPtr.asFunction< ffi.Pointer Function(Mat, Mat, Mat, Point, int, int, Scalar)>(); @@ -3465,11 +3919,13 @@ class CvNative { ); } - late final _EstimateAffine2DPtr = - _lookup Function(VecPoint2f, VecPoint2f, ffi.Pointer)>>( - 'EstimateAffine2D'); + late final _EstimateAffine2DPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint2f, VecPoint2f, ffi.Pointer)>>('EstimateAffine2D'); late final _EstimateAffine2D = _EstimateAffine2DPtr.asFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, ffi.Pointer)>(); + ffi.Pointer Function( + VecPoint2f, VecPoint2f, ffi.Pointer)>(); ffi.Pointer EstimateAffine2DWithParams( VecPoint2f from, @@ -3497,11 +3953,20 @@ class CvNative { late final _EstimateAffine2DWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, Mat, ffi.Int, ffi.Double, ffi.Size, - ffi.Double, ffi.Size, ffi.Pointer)>>('EstimateAffine2DWithParams'); - late final _EstimateAffine2DWithParams = _EstimateAffine2DWithParamsPtr.asFunction< - ffi.Pointer Function( - VecPoint2f, VecPoint2f, Mat, int, double, int, double, int, ffi.Pointer)>(); + ffi.Pointer Function( + VecPoint2f, + VecPoint2f, + Mat, + ffi.Int, + ffi.Double, + ffi.Size, + ffi.Double, + ffi.Size, + ffi.Pointer)>>('EstimateAffine2DWithParams'); + late final _EstimateAffine2DWithParams = + _EstimateAffine2DWithParamsPtr.asFunction< + ffi.Pointer Function(VecPoint2f, VecPoint2f, Mat, int, + double, int, double, int, ffi.Pointer)>(); ffi.Pointer EstimateAffinePartial2D( VecPoint2f from, @@ -3515,11 +3980,13 @@ class CvNative { ); } - late final _EstimateAffinePartial2DPtr = - _lookup Function(VecPoint2f, VecPoint2f, ffi.Pointer)>>( - 'EstimateAffinePartial2D'); + late final _EstimateAffinePartial2DPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecPoint2f, VecPoint2f, + ffi.Pointer)>>('EstimateAffinePartial2D'); late final _EstimateAffinePartial2D = _EstimateAffinePartial2DPtr.asFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, ffi.Pointer)>(); + ffi.Pointer Function( + VecPoint2f, VecPoint2f, ffi.Pointer)>(); ffi.Pointer EstimateAffinePartial2DWithParams( VecPoint2f from, @@ -3547,11 +4014,20 @@ class CvNative { late final _EstimateAffinePartial2DWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, Mat, ffi.Int, ffi.Double, ffi.Size, - ffi.Double, ffi.Size, ffi.Pointer)>>('EstimateAffinePartial2DWithParams'); - late final _EstimateAffinePartial2DWithParams = _EstimateAffinePartial2DWithParamsPtr.asFunction< - ffi.Pointer Function( - VecPoint2f, VecPoint2f, Mat, int, double, int, double, int, ffi.Pointer)>(); + ffi.Pointer Function( + VecPoint2f, + VecPoint2f, + Mat, + ffi.Int, + ffi.Double, + ffi.Size, + ffi.Double, + ffi.Size, + ffi.Pointer)>>('EstimateAffinePartial2DWithParams'); + late final _EstimateAffinePartial2DWithParams = + _EstimateAffinePartial2DWithParamsPtr.asFunction< + ffi.Pointer Function(VecPoint2f, VecPoint2f, Mat, int, + double, int, double, int, ffi.Pointer)>(); ffi.Pointer Eye( int rows, @@ -3568,8 +4044,11 @@ class CvNative { } late final _EyePtr = _lookup< - ffi.NativeFunction Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Eye'); - late final _Eye = _EyePtr.asFunction Function(int, int, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Eye'); + late final _Eye = _EyePtr.asFunction< + ffi.Pointer Function(int, int, int, ffi.Pointer)>(); void FaceDetectorYN_Close( FaceDetectorYNPtr self, @@ -3580,8 +4059,10 @@ class CvNative { } late final _FaceDetectorYN_ClosePtr = - _lookup>('FaceDetectorYN_Close'); - late final _FaceDetectorYN_Close = _FaceDetectorYN_ClosePtr.asFunction(); + _lookup>( + 'FaceDetectorYN_Close'); + late final _FaceDetectorYN_Close = + _FaceDetectorYN_ClosePtr.asFunction(); ffi.Pointer FaceDetectorYN_Detect( FaceDetectorYN self, @@ -3595,9 +4076,10 @@ class CvNative { ); } - late final _FaceDetectorYN_DetectPtr = - _lookup Function(FaceDetectorYN, Mat, ffi.Pointer)>>( - 'FaceDetectorYN_Detect'); + late final _FaceDetectorYN_DetectPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + FaceDetectorYN, Mat, ffi.Pointer)>>('FaceDetectorYN_Detect'); late final _FaceDetectorYN_Detect = _FaceDetectorYN_DetectPtr.asFunction< ffi.Pointer Function(FaceDetectorYN, Mat, ffi.Pointer)>(); @@ -3613,11 +4095,13 @@ class CvNative { ); } - late final _FaceDetectorYN_Detect_AsyncPtr = - _lookup Function(FaceDetectorYN, Mat, CvCallback_1)>>( - 'FaceDetectorYN_Detect_Async'); - late final _FaceDetectorYN_Detect_Async = _FaceDetectorYN_Detect_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, Mat, CvCallback_1)>(); + late final _FaceDetectorYN_Detect_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, Mat, + CvCallback_1)>>('FaceDetectorYN_Detect_Async'); + late final _FaceDetectorYN_Detect_Async = + _FaceDetectorYN_Detect_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, Mat, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_GetInputSize( FaceDetectorYN self, @@ -3629,11 +4113,13 @@ class CvNative { ); } - late final _FaceDetectorYN_GetInputSizePtr = - _lookup Function(FaceDetectorYN, ffi.Pointer)>>( - 'FaceDetectorYN_GetInputSize'); - late final _FaceDetectorYN_GetInputSize = _FaceDetectorYN_GetInputSizePtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, ffi.Pointer)>(); + late final _FaceDetectorYN_GetInputSizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, + ffi.Pointer)>>('FaceDetectorYN_GetInputSize'); + late final _FaceDetectorYN_GetInputSize = + _FaceDetectorYN_GetInputSizePtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, ffi.Pointer)>(); ffi.Pointer FaceDetectorYN_GetInputSize_Async( FaceDetectorYN self, @@ -3645,11 +4131,13 @@ class CvNative { ); } - late final _FaceDetectorYN_GetInputSize_AsyncPtr = - _lookup Function(FaceDetectorYN, CvCallback_1)>>( - 'FaceDetectorYN_GetInputSize_Async'); - late final _FaceDetectorYN_GetInputSize_Async = _FaceDetectorYN_GetInputSize_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); + late final _FaceDetectorYN_GetInputSize_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, + CvCallback_1)>>('FaceDetectorYN_GetInputSize_Async'); + late final _FaceDetectorYN_GetInputSize_Async = + _FaceDetectorYN_GetInputSize_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_GetNMSThreshold( FaceDetectorYN self, @@ -3661,11 +4149,14 @@ class CvNative { ); } - late final _FaceDetectorYN_GetNMSThresholdPtr = - _lookup Function(FaceDetectorYN, ffi.Pointer)>>( - 'FaceDetectorYN_GetNMSThreshold'); - late final _FaceDetectorYN_GetNMSThreshold = _FaceDetectorYN_GetNMSThresholdPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, ffi.Pointer)>(); + late final _FaceDetectorYN_GetNMSThresholdPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, + ffi.Pointer)>>('FaceDetectorYN_GetNMSThreshold'); + late final _FaceDetectorYN_GetNMSThreshold = + _FaceDetectorYN_GetNMSThresholdPtr.asFunction< + ffi.Pointer Function( + FaceDetectorYN, ffi.Pointer)>(); ffi.Pointer FaceDetectorYN_GetNMSThreshold_Async( FaceDetectorYN self, @@ -3677,11 +4168,13 @@ class CvNative { ); } - late final _FaceDetectorYN_GetNMSThreshold_AsyncPtr = - _lookup Function(FaceDetectorYN, CvCallback_1)>>( - 'FaceDetectorYN_GetNMSThreshold_Async'); - late final _FaceDetectorYN_GetNMSThreshold_Async = _FaceDetectorYN_GetNMSThreshold_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); + late final _FaceDetectorYN_GetNMSThreshold_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, + CvCallback_1)>>('FaceDetectorYN_GetNMSThreshold_Async'); + late final _FaceDetectorYN_GetNMSThreshold_Async = + _FaceDetectorYN_GetNMSThreshold_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_GetScoreThreshold( FaceDetectorYN self, @@ -3693,11 +4186,14 @@ class CvNative { ); } - late final _FaceDetectorYN_GetScoreThresholdPtr = - _lookup Function(FaceDetectorYN, ffi.Pointer)>>( - 'FaceDetectorYN_GetScoreThreshold'); - late final _FaceDetectorYN_GetScoreThreshold = _FaceDetectorYN_GetScoreThresholdPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, ffi.Pointer)>(); + late final _FaceDetectorYN_GetScoreThresholdPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, + ffi.Pointer)>>('FaceDetectorYN_GetScoreThreshold'); + late final _FaceDetectorYN_GetScoreThreshold = + _FaceDetectorYN_GetScoreThresholdPtr.asFunction< + ffi.Pointer Function( + FaceDetectorYN, ffi.Pointer)>(); ffi.Pointer FaceDetectorYN_GetScoreThreshold_Async( FaceDetectorYN self, @@ -3709,11 +4205,13 @@ class CvNative { ); } - late final _FaceDetectorYN_GetScoreThreshold_AsyncPtr = - _lookup Function(FaceDetectorYN, CvCallback_1)>>( - 'FaceDetectorYN_GetScoreThreshold_Async'); - late final _FaceDetectorYN_GetScoreThreshold_Async = _FaceDetectorYN_GetScoreThreshold_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); + late final _FaceDetectorYN_GetScoreThreshold_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, + CvCallback_1)>>('FaceDetectorYN_GetScoreThreshold_Async'); + late final _FaceDetectorYN_GetScoreThreshold_Async = + _FaceDetectorYN_GetScoreThreshold_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_GetTopK( FaceDetectorYN self, @@ -3725,9 +4223,10 @@ class CvNative { ); } - late final _FaceDetectorYN_GetTopKPtr = - _lookup Function(FaceDetectorYN, ffi.Pointer)>>( - 'FaceDetectorYN_GetTopK'); + late final _FaceDetectorYN_GetTopKPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + FaceDetectorYN, ffi.Pointer)>>('FaceDetectorYN_GetTopK'); late final _FaceDetectorYN_GetTopK = _FaceDetectorYN_GetTopKPtr.asFunction< ffi.Pointer Function(FaceDetectorYN, ffi.Pointer)>(); @@ -3741,11 +4240,13 @@ class CvNative { ); } - late final _FaceDetectorYN_GetTopK_AsyncPtr = - _lookup Function(FaceDetectorYN, CvCallback_1)>>( - 'FaceDetectorYN_GetTopK_Async'); - late final _FaceDetectorYN_GetTopK_Async = _FaceDetectorYN_GetTopK_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); + late final _FaceDetectorYN_GetTopK_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + FaceDetectorYN, CvCallback_1)>>('FaceDetectorYN_GetTopK_Async'); + late final _FaceDetectorYN_GetTopK_Async = + _FaceDetectorYN_GetTopK_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_New( ffi.Pointer model, @@ -3773,11 +4274,27 @@ class CvNative { late final _FaceDetectorYN_NewPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, Size, ffi.Float, - ffi.Float, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('FaceDetectorYN_New'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + Size, + ffi.Float, + ffi.Float, + ffi.Int, + ffi.Int, + ffi.Int, + ffi.Pointer)>>('FaceDetectorYN_New'); late final _FaceDetectorYN_New = _FaceDetectorYN_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, Size, double, double, int, - int, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + Size, + double, + double, + int, + int, + int, + ffi.Pointer)>(); ffi.Pointer FaceDetectorYN_NewFromBuffer( ffi.Pointer framework, @@ -3818,9 +4335,19 @@ class CvNative { ffi.Int, ffi.Int, ffi.Pointer)>>('FaceDetectorYN_NewFromBuffer'); - late final _FaceDetectorYN_NewFromBuffer = _FaceDetectorYN_NewFromBufferPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, VecUChar, VecUChar, Size, double, double, int, - int, int, ffi.Pointer)>(); + late final _FaceDetectorYN_NewFromBuffer = + _FaceDetectorYN_NewFromBufferPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + VecUChar, + VecUChar, + Size, + double, + double, + int, + int, + int, + ffi.Pointer)>(); ffi.Pointer FaceDetectorYN_NewFromBuffer_Async( ffi.Pointer framework, @@ -3850,11 +4377,21 @@ class CvNative { late final _FaceDetectorYN_NewFromBuffer_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, VecUChar, VecUChar, Size, ffi.Float, - ffi.Float, ffi.Int, ffi.Int, ffi.Int, CvCallback_1)>>('FaceDetectorYN_NewFromBuffer_Async'); - late final _FaceDetectorYN_NewFromBuffer_Async = _FaceDetectorYN_NewFromBuffer_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, VecUChar, VecUChar, Size, double, double, int, int, int, CvCallback_1)>(); + ffi.Pointer Function( + ffi.Pointer, + VecUChar, + VecUChar, + Size, + ffi.Float, + ffi.Float, + ffi.Int, + ffi.Int, + ffi.Int, + CvCallback_1)>>('FaceDetectorYN_NewFromBuffer_Async'); + late final _FaceDetectorYN_NewFromBuffer_Async = + _FaceDetectorYN_NewFromBuffer_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, VecUChar, + VecUChar, Size, double, double, int, int, int, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_New_Async( ffi.Pointer model, @@ -3882,11 +4419,28 @@ class CvNative { late final _FaceDetectorYN_New_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, Size, ffi.Float, - ffi.Float, ffi.Int, ffi.Int, ffi.Int, CvCallback_1)>>('FaceDetectorYN_New_Async'); - late final _FaceDetectorYN_New_Async = _FaceDetectorYN_New_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, Size, double, double, int, int, int, CvCallback_1)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + Size, + ffi.Float, + ffi.Float, + ffi.Int, + ffi.Int, + ffi.Int, + CvCallback_1)>>('FaceDetectorYN_New_Async'); + late final _FaceDetectorYN_New_Async = + _FaceDetectorYN_New_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + Size, + double, + double, + int, + int, + int, + CvCallback_1)>(); ffi.Pointer FaceDetectorYN_SetInputSize( FaceDetectorYN self, @@ -3898,16 +4452,17 @@ class CvNative { ); } - late final _FaceDetectorYN_SetInputSizePtr = - _lookup Function(FaceDetectorYN, Size)>>( - 'FaceDetectorYN_SetInputSize'); - late final _FaceDetectorYN_SetInputSize = - _FaceDetectorYN_SetInputSizePtr.asFunction Function(FaceDetectorYN, Size)>(); + late final _FaceDetectorYN_SetInputSizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + FaceDetectorYN, Size)>>('FaceDetectorYN_SetInputSize'); + late final _FaceDetectorYN_SetInputSize = _FaceDetectorYN_SetInputSizePtr + .asFunction Function(FaceDetectorYN, Size)>(); ffi.Pointer FaceDetectorYN_SetInputSize_Async( FaceDetectorYN self, Size input_size, - CvCallback_1 callback, + CvCallback_0 callback, ) { return _FaceDetectorYN_SetInputSize_Async( self, @@ -3916,11 +4471,13 @@ class CvNative { ); } - late final _FaceDetectorYN_SetInputSize_AsyncPtr = - _lookup Function(FaceDetectorYN, Size, CvCallback_1)>>( - 'FaceDetectorYN_SetInputSize_Async'); - late final _FaceDetectorYN_SetInputSize_Async = _FaceDetectorYN_SetInputSize_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, Size, CvCallback_1)>(); + late final _FaceDetectorYN_SetInputSize_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, Size, + CvCallback_0)>>('FaceDetectorYN_SetInputSize_Async'); + late final _FaceDetectorYN_SetInputSize_Async = + _FaceDetectorYN_SetInputSize_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, Size, CvCallback_0)>(); ffi.Pointer FaceDetectorYN_SetNMSThreshold( FaceDetectorYN self, @@ -3932,16 +4489,18 @@ class CvNative { ); } - late final _FaceDetectorYN_SetNMSThresholdPtr = - _lookup Function(FaceDetectorYN, ffi.Float)>>( - 'FaceDetectorYN_SetNMSThreshold'); + late final _FaceDetectorYN_SetNMSThresholdPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + FaceDetectorYN, ffi.Float)>>('FaceDetectorYN_SetNMSThreshold'); late final _FaceDetectorYN_SetNMSThreshold = - _FaceDetectorYN_SetNMSThresholdPtr.asFunction Function(FaceDetectorYN, double)>(); + _FaceDetectorYN_SetNMSThresholdPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, double)>(); ffi.Pointer FaceDetectorYN_SetNMSThreshold_Async( FaceDetectorYN self, double nms_threshold, - CvCallback_1 callback, + CvCallback_0 callback, ) { return _FaceDetectorYN_SetNMSThreshold_Async( self, @@ -3950,11 +4509,14 @@ class CvNative { ); } - late final _FaceDetectorYN_SetNMSThreshold_AsyncPtr = - _lookup Function(FaceDetectorYN, ffi.Float, CvCallback_1)>>( - 'FaceDetectorYN_SetNMSThreshold_Async'); - late final _FaceDetectorYN_SetNMSThreshold_Async = _FaceDetectorYN_SetNMSThreshold_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, double, CvCallback_1)>(); + late final _FaceDetectorYN_SetNMSThreshold_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, ffi.Float, + CvCallback_0)>>('FaceDetectorYN_SetNMSThreshold_Async'); + late final _FaceDetectorYN_SetNMSThreshold_Async = + _FaceDetectorYN_SetNMSThreshold_AsyncPtr.asFunction< + ffi.Pointer Function( + FaceDetectorYN, double, CvCallback_0)>(); ffi.Pointer FaceDetectorYN_SetScoreThreshold( FaceDetectorYN self, @@ -3966,16 +4528,18 @@ class CvNative { ); } - late final _FaceDetectorYN_SetScoreThresholdPtr = - _lookup Function(FaceDetectorYN, ffi.Float)>>( - 'FaceDetectorYN_SetScoreThreshold'); - late final _FaceDetectorYN_SetScoreThreshold = _FaceDetectorYN_SetScoreThresholdPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, double)>(); + late final _FaceDetectorYN_SetScoreThresholdPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + FaceDetectorYN, ffi.Float)>>('FaceDetectorYN_SetScoreThreshold'); + late final _FaceDetectorYN_SetScoreThreshold = + _FaceDetectorYN_SetScoreThresholdPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, double)>(); ffi.Pointer FaceDetectorYN_SetScoreThreshold_Async( FaceDetectorYN self, double score_threshold, - CvCallback_1 callback, + CvCallback_0 callback, ) { return _FaceDetectorYN_SetScoreThreshold_Async( self, @@ -3984,11 +4548,14 @@ class CvNative { ); } - late final _FaceDetectorYN_SetScoreThreshold_AsyncPtr = - _lookup Function(FaceDetectorYN, ffi.Float, CvCallback_1)>>( - 'FaceDetectorYN_SetScoreThreshold_Async'); - late final _FaceDetectorYN_SetScoreThreshold_Async = _FaceDetectorYN_SetScoreThreshold_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, double, CvCallback_1)>(); + late final _FaceDetectorYN_SetScoreThreshold_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, ffi.Float, + CvCallback_0)>>('FaceDetectorYN_SetScoreThreshold_Async'); + late final _FaceDetectorYN_SetScoreThreshold_Async = + _FaceDetectorYN_SetScoreThreshold_AsyncPtr.asFunction< + ffi.Pointer Function( + FaceDetectorYN, double, CvCallback_0)>(); ffi.Pointer FaceDetectorYN_SetTopK( FaceDetectorYN self, @@ -4000,16 +4567,17 @@ class CvNative { ); } - late final _FaceDetectorYN_SetTopKPtr = - _lookup Function(FaceDetectorYN, ffi.Int)>>( - 'FaceDetectorYN_SetTopK'); - late final _FaceDetectorYN_SetTopK = - _FaceDetectorYN_SetTopKPtr.asFunction Function(FaceDetectorYN, int)>(); + late final _FaceDetectorYN_SetTopKPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + FaceDetectorYN, ffi.Int)>>('FaceDetectorYN_SetTopK'); + late final _FaceDetectorYN_SetTopK = _FaceDetectorYN_SetTopKPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, int)>(); ffi.Pointer FaceDetectorYN_SetTopK_Async( FaceDetectorYN self, int top_k, - CvCallback_1 callback, + CvCallback_0 callback, ) { return _FaceDetectorYN_SetTopK_Async( self, @@ -4018,11 +4586,13 @@ class CvNative { ); } - late final _FaceDetectorYN_SetTopK_AsyncPtr = - _lookup Function(FaceDetectorYN, ffi.Int, CvCallback_1)>>( - 'FaceDetectorYN_SetTopK_Async'); - late final _FaceDetectorYN_SetTopK_Async = _FaceDetectorYN_SetTopK_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, int, CvCallback_1)>(); + late final _FaceDetectorYN_SetTopK_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, ffi.Int, + CvCallback_0)>>('FaceDetectorYN_SetTopK_Async'); + late final _FaceDetectorYN_SetTopK_Async = + _FaceDetectorYN_SetTopK_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, int, CvCallback_0)>(); ffi.Pointer FaceRecognizerSF_AlignCrop( FaceRecognizerSF self, @@ -4039,10 +4609,13 @@ class CvNative { } late final _FaceRecognizerSF_AlignCropPtr = _lookup< - ffi.NativeFunction Function(FaceRecognizerSF, Mat, Mat, ffi.Pointer)>>( - 'FaceRecognizerSF_AlignCrop'); - late final _FaceRecognizerSF_AlignCrop = _FaceRecognizerSF_AlignCropPtr.asFunction< - ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, + ffi.Pointer)>>('FaceRecognizerSF_AlignCrop'); + late final _FaceRecognizerSF_AlignCrop = + _FaceRecognizerSF_AlignCropPtr.asFunction< + ffi.Pointer Function( + FaceRecognizerSF, Mat, Mat, ffi.Pointer)>(); ffi.Pointer FaceRecognizerSF_AlignCrop_Async( FaceRecognizerSF self, @@ -4058,11 +4631,14 @@ class CvNative { ); } - late final _FaceRecognizerSF_AlignCrop_AsyncPtr = - _lookup Function(FaceRecognizerSF, Mat, Mat, CvCallback_1)>>( - 'FaceRecognizerSF_AlignCrop_Async'); - late final _FaceRecognizerSF_AlignCrop_Async = _FaceRecognizerSF_AlignCrop_AsyncPtr.asFunction< - ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, CvCallback_1)>(); + late final _FaceRecognizerSF_AlignCrop_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, + CvCallback_1)>>('FaceRecognizerSF_AlignCrop_Async'); + late final _FaceRecognizerSF_AlignCrop_Async = + _FaceRecognizerSF_AlignCrop_AsyncPtr.asFunction< + ffi.Pointer Function( + FaceRecognizerSF, Mat, Mat, CvCallback_1)>(); void FaceRecognizerSF_Close( FaceRecognizerSFPtr self, @@ -4073,9 +4649,10 @@ class CvNative { } late final _FaceRecognizerSF_ClosePtr = - _lookup>('FaceRecognizerSF_Close'); - late final _FaceRecognizerSF_Close = - _FaceRecognizerSF_ClosePtr.asFunction(); + _lookup>( + 'FaceRecognizerSF_Close'); + late final _FaceRecognizerSF_Close = _FaceRecognizerSF_ClosePtr.asFunction< + void Function(FaceRecognizerSFPtr)>(); ffi.Pointer FaceRecognizerSF_Feature( FaceRecognizerSF self, @@ -4092,11 +4669,13 @@ class CvNative { } late final _FaceRecognizerSF_FeaturePtr = _lookup< - ffi - .NativeFunction Function(FaceRecognizerSF, Mat, ffi.Bool, ffi.Pointer)>>( - 'FaceRecognizerSF_Feature'); - late final _FaceRecognizerSF_Feature = _FaceRecognizerSF_FeaturePtr.asFunction< - ffi.Pointer Function(FaceRecognizerSF, Mat, bool, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(FaceRecognizerSF, Mat, ffi.Bool, + ffi.Pointer)>>('FaceRecognizerSF_Feature'); + late final _FaceRecognizerSF_Feature = + _FaceRecognizerSF_FeaturePtr.asFunction< + ffi.Pointer Function( + FaceRecognizerSF, Mat, bool, ffi.Pointer)>(); ffi.Pointer FaceRecognizerSF_Feature_Async( FaceRecognizerSF self, @@ -4113,10 +4692,13 @@ class CvNative { } late final _FaceRecognizerSF_Feature_AsyncPtr = _lookup< - ffi.NativeFunction Function(FaceRecognizerSF, Mat, ffi.Bool, CvCallback_1)>>( - 'FaceRecognizerSF_Feature_Async'); - late final _FaceRecognizerSF_Feature_Async = _FaceRecognizerSF_Feature_AsyncPtr.asFunction< - ffi.Pointer Function(FaceRecognizerSF, Mat, bool, CvCallback_1)>(); + ffi.NativeFunction< + ffi.Pointer Function(FaceRecognizerSF, Mat, ffi.Bool, + CvCallback_1)>>('FaceRecognizerSF_Feature_Async'); + late final _FaceRecognizerSF_Feature_Async = + _FaceRecognizerSF_Feature_AsyncPtr.asFunction< + ffi.Pointer Function( + FaceRecognizerSF, Mat, bool, CvCallback_1)>(); ffi.Pointer FaceRecognizerSF_Match( FaceRecognizerSF self, @@ -4136,10 +4718,11 @@ class CvNative { late final _FaceRecognizerSF_MatchPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - FaceRecognizerSF, Mat, Mat, ffi.Int, ffi.Pointer)>>('FaceRecognizerSF_Match'); + ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, ffi.Int, + ffi.Pointer)>>('FaceRecognizerSF_Match'); late final _FaceRecognizerSF_Match = _FaceRecognizerSF_MatchPtr.asFunction< - ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, int, ffi.Pointer)>(); + ffi.Pointer Function( + FaceRecognizerSF, Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer FaceRecognizerSF_Match_Async( FaceRecognizerSF self, @@ -4158,11 +4741,13 @@ class CvNative { } late final _FaceRecognizerSF_Match_AsyncPtr = _lookup< - ffi - .NativeFunction Function(FaceRecognizerSF, Mat, Mat, ffi.Int, CvCallback_1)>>( - 'FaceRecognizerSF_Match_Async'); - late final _FaceRecognizerSF_Match_Async = _FaceRecognizerSF_Match_AsyncPtr.asFunction< - ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, int, CvCallback_1)>(); + ffi.NativeFunction< + ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, ffi.Int, + CvCallback_1)>>('FaceRecognizerSF_Match_Async'); + late final _FaceRecognizerSF_Match_Async = + _FaceRecognizerSF_Match_AsyncPtr.asFunction< + ffi.Pointer Function( + FaceRecognizerSF, Mat, Mat, int, CvCallback_1)>(); ffi.Pointer FaceRecognizerSF_New( ffi.Pointer model, @@ -4182,11 +4767,15 @@ class CvNative { late final _FaceRecognizerSF_NewPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Int, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Int, ffi.Pointer)>>('FaceRecognizerSF_New'); late final _FaceRecognizerSF_New = _FaceRecognizerSF_NewPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, int, ffi.Pointer)>(); ffi.Pointer FaceRecognizerSF_New_Async( ffi.Pointer model, @@ -4206,10 +4795,16 @@ class CvNative { late final _FaceRecognizerSF_New_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Int, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Int, CvCallback_1)>>('FaceRecognizerSF_New_Async'); - late final _FaceRecognizerSF_New_Async = _FaceRecognizerSF_New_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, int, CvCallback_1)>(); + late final _FaceRecognizerSF_New_Async = + _FaceRecognizerSF_New_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, int, CvCallback_1)>(); void FastFeatureDetector_Close( FastFeatureDetectorPtr f, @@ -4220,9 +4815,10 @@ class CvNative { } late final _FastFeatureDetector_ClosePtr = - _lookup>('FastFeatureDetector_Close'); - late final _FastFeatureDetector_Close = - _FastFeatureDetector_ClosePtr.asFunction(); + _lookup>( + 'FastFeatureDetector_Close'); + late final _FastFeatureDetector_Close = _FastFeatureDetector_ClosePtr + .asFunction(); ffi.Pointer FastFeatureDetector_Create( ffi.Pointer rval, @@ -4232,11 +4828,13 @@ class CvNative { ); } - late final _FastFeatureDetector_CreatePtr = - _lookup Function(ffi.Pointer)>>( - 'FastFeatureDetector_Create'); - late final _FastFeatureDetector_Create = _FastFeatureDetector_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _FastFeatureDetector_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('FastFeatureDetector_Create'); + late final _FastFeatureDetector_Create = + _FastFeatureDetector_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer FastFeatureDetector_CreateWithParams( int threshold, @@ -4253,11 +4851,14 @@ class CvNative { } late final _FastFeatureDetector_CreateWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Bool, ffi.Int, - ffi.Pointer)>>('FastFeatureDetector_CreateWithParams'); - late final _FastFeatureDetector_CreateWithParams = _FastFeatureDetector_CreateWithParamsPtr.asFunction< - ffi.Pointer Function(int, bool, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Bool, ffi.Int, + ffi.Pointer)>>( + 'FastFeatureDetector_CreateWithParams'); + late final _FastFeatureDetector_CreateWithParams = + _FastFeatureDetector_CreateWithParamsPtr.asFunction< + ffi.Pointer Function( + int, bool, int, ffi.Pointer)>(); ffi.Pointer FastFeatureDetector_Detect( FastFeatureDetector f, @@ -4273,10 +4874,12 @@ class CvNative { late final _FastFeatureDetector_DetectPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(FastFeatureDetector, Mat, + ffi.Pointer)>>('FastFeatureDetector_Detect'); + late final _FastFeatureDetector_Detect = + _FastFeatureDetector_DetectPtr.asFunction< ffi.Pointer Function( - FastFeatureDetector, Mat, ffi.Pointer)>>('FastFeatureDetector_Detect'); - late final _FastFeatureDetector_Detect = _FastFeatureDetector_DetectPtr.asFunction< - ffi.Pointer Function(FastFeatureDetector, Mat, ffi.Pointer)>(); + FastFeatureDetector, Mat, ffi.Pointer)>(); ffi.Pointer FastNlMeansDenoising( Mat src, @@ -4289,9 +4892,10 @@ class CvNative { } late final _FastNlMeansDenoisingPtr = - _lookup Function(Mat, Mat)>>('FastNlMeansDenoising'); - late final _FastNlMeansDenoising = - _FastNlMeansDenoisingPtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'FastNlMeansDenoising'); + late final _FastNlMeansDenoising = _FastNlMeansDenoisingPtr.asFunction< + ffi.Pointer Function(Mat, Mat)>(); ffi.Pointer FastNlMeansDenoisingColored( Mat src, @@ -4304,9 +4908,10 @@ class CvNative { } late final _FastNlMeansDenoisingColoredPtr = - _lookup Function(Mat, Mat)>>('FastNlMeansDenoisingColored'); - late final _FastNlMeansDenoisingColored = - _FastNlMeansDenoisingColoredPtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'FastNlMeansDenoisingColored'); + late final _FastNlMeansDenoisingColored = _FastNlMeansDenoisingColoredPtr + .asFunction Function(Mat, Mat)>(); ffi.Pointer FastNlMeansDenoisingColoredMulti( VecMat src, @@ -4322,11 +4927,13 @@ class CvNative { ); } - late final _FastNlMeansDenoisingColoredMultiPtr = - _lookup Function(VecMat, Mat, ffi.Int, ffi.Int)>>( - 'FastNlMeansDenoisingColoredMulti'); - late final _FastNlMeansDenoisingColoredMulti = _FastNlMeansDenoisingColoredMultiPtr.asFunction< - ffi.Pointer Function(VecMat, Mat, int, int)>(); + late final _FastNlMeansDenoisingColoredMultiPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecMat, Mat, ffi.Int, + ffi.Int)>>('FastNlMeansDenoisingColoredMulti'); + late final _FastNlMeansDenoisingColoredMulti = + _FastNlMeansDenoisingColoredMultiPtr.asFunction< + ffi.Pointer Function(VecMat, Mat, int, int)>(); ffi.Pointer FastNlMeansDenoisingColoredMultiWithParams( VecMat src, @@ -4352,10 +4959,19 @@ class CvNative { late final _FastNlMeansDenoisingColoredMultiWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecMat, Mat, ffi.Int, ffi.Int, ffi.Float, ffi.Float, ffi.Int, + ffi.Pointer Function( + VecMat, + Mat, + ffi.Int, + ffi.Int, + ffi.Float, + ffi.Float, + ffi.Int, ffi.Int)>>('FastNlMeansDenoisingColoredMultiWithParams'); - late final _FastNlMeansDenoisingColoredMultiWithParams = _FastNlMeansDenoisingColoredMultiWithParamsPtr - .asFunction Function(VecMat, Mat, int, int, double, double, int, int)>(); + late final _FastNlMeansDenoisingColoredMultiWithParams = + _FastNlMeansDenoisingColoredMultiWithParamsPtr.asFunction< + ffi.Pointer Function( + VecMat, Mat, int, int, double, double, int, int)>(); ffi.Pointer FastNlMeansDenoisingColoredWithParams( Mat src, @@ -4376,11 +4992,12 @@ class CvNative { } late final _FastNlMeansDenoisingColoredWithParamsPtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, ffi.Float, ffi.Float, ffi.Int, ffi.Int)>>( - 'FastNlMeansDenoisingColoredWithParams'); - late final _FastNlMeansDenoisingColoredWithParams = _FastNlMeansDenoisingColoredWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, double, int, int)>(); + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Float, ffi.Float, + ffi.Int, ffi.Int)>>('FastNlMeansDenoisingColoredWithParams'); + late final _FastNlMeansDenoisingColoredWithParams = + _FastNlMeansDenoisingColoredWithParamsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, double, double, int, int)>(); ffi.Pointer FastNlMeansDenoisingWithParams( Mat src, @@ -4398,11 +5015,13 @@ class CvNative { ); } - late final _FastNlMeansDenoisingWithParamsPtr = - _lookup Function(Mat, Mat, ffi.Float, ffi.Int, ffi.Int)>>( - 'FastNlMeansDenoisingWithParams'); - late final _FastNlMeansDenoisingWithParams = _FastNlMeansDenoisingWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, int, int)>(); + late final _FastNlMeansDenoisingWithParamsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Float, ffi.Int, + ffi.Int)>>('FastNlMeansDenoisingWithParams'); + late final _FastNlMeansDenoisingWithParams = + _FastNlMeansDenoisingWithParamsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, double, int, int)>(); ffi.Pointer FillPoly( Mat img, @@ -4416,9 +5035,12 @@ class CvNative { ); } - late final _FillPolyPtr = - _lookup Function(Mat, VecVecPoint, Scalar)>>('FillPoly'); - late final _FillPoly = _FillPolyPtr.asFunction Function(Mat, VecVecPoint, Scalar)>(); + late final _FillPolyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, VecVecPoint, Scalar)>>('FillPoly'); + late final _FillPoly = _FillPolyPtr.asFunction< + ffi.Pointer Function(Mat, VecVecPoint, Scalar)>(); ffi.Pointer FillPolyWithParams( Mat img, @@ -4439,11 +5061,12 @@ class CvNative { } late final _FillPolyWithParamsPtr = _lookup< - ffi - .NativeFunction Function(Mat, VecVecPoint, Scalar, ffi.Int, ffi.Int, Point)>>( - 'FillPolyWithParams'); + ffi.NativeFunction< + ffi.Pointer Function(Mat, VecVecPoint, Scalar, ffi.Int, + ffi.Int, Point)>>('FillPolyWithParams'); late final _FillPolyWithParams = _FillPolyWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, VecVecPoint, Scalar, int, int, Point)>(); + ffi.Pointer Function( + Mat, VecVecPoint, Scalar, int, int, Point)>(); ffi.Pointer Filter2D( Mat src, @@ -4467,9 +5090,10 @@ class CvNative { late final _Filter2DPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, Mat, Point, ffi.Double, ffi.Int)>>('Filter2D'); - late final _Filter2D = - _Filter2DPtr.asFunction Function(Mat, Mat, int, Mat, Point, double, int)>(); + ffi.Pointer Function( + Mat, Mat, ffi.Int, Mat, Point, ffi.Double, ffi.Int)>>('Filter2D'); + late final _Filter2D = _Filter2DPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, Mat, Point, double, int)>(); ffi.Pointer FindChessboardCorners( Mat image, @@ -4488,10 +5112,12 @@ class CvNative { } late final _FindChessboardCornersPtr = _lookup< - ffi.NativeFunction Function(Mat, Size, Mat, ffi.Int, ffi.Pointer)>>( - 'FindChessboardCorners'); + ffi.NativeFunction< + ffi.Pointer Function(Mat, Size, Mat, ffi.Int, + ffi.Pointer)>>('FindChessboardCorners'); late final _FindChessboardCorners = _FindChessboardCornersPtr.asFunction< - ffi.Pointer Function(Mat, Size, Mat, int, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, Size, Mat, int, ffi.Pointer)>(); ffi.Pointer FindChessboardCornersSB( Mat image, @@ -4510,10 +5136,12 @@ class CvNative { } late final _FindChessboardCornersSBPtr = _lookup< - ffi.NativeFunction Function(Mat, Size, Mat, ffi.Int, ffi.Pointer)>>( - 'FindChessboardCornersSB'); + ffi.NativeFunction< + ffi.Pointer Function(Mat, Size, Mat, ffi.Int, + ffi.Pointer)>>('FindChessboardCornersSB'); late final _FindChessboardCornersSB = _FindChessboardCornersSBPtr.asFunction< - ffi.Pointer Function(Mat, Size, Mat, int, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, Size, Mat, int, ffi.Pointer)>(); ffi.Pointer FindChessboardCornersSBWithMeta( Mat image, @@ -4535,10 +5163,12 @@ class CvNative { late final _FindChessboardCornersSBWithMetaPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(Mat, Size, Mat, ffi.Int, Mat, + ffi.Pointer)>>('FindChessboardCornersSBWithMeta'); + late final _FindChessboardCornersSBWithMeta = + _FindChessboardCornersSBWithMetaPtr.asFunction< ffi.Pointer Function( - Mat, Size, Mat, ffi.Int, Mat, ffi.Pointer)>>('FindChessboardCornersSBWithMeta'); - late final _FindChessboardCornersSBWithMeta = _FindChessboardCornersSBWithMetaPtr.asFunction< - ffi.Pointer Function(Mat, Size, Mat, int, Mat, ffi.Pointer)>(); + Mat, Size, Mat, int, Mat, ffi.Pointer)>(); ffi.Pointer FindContours( Mat src, @@ -4558,10 +5188,11 @@ class CvNative { late final _FindContoursPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('FindContours'); + ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, + ffi.Pointer)>>('FindContours'); late final _FindContours = _FindContoursPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, Mat, int, int, ffi.Pointer)>(); ffi.Pointer FindHomography( Mat src, @@ -4587,10 +5218,11 @@ class CvNative { late final _FindHomographyPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Double, Mat, ffi.Int, ffi.Double, ffi.Pointer)>>('FindHomography'); + ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Double, Mat, + ffi.Int, ffi.Double, ffi.Pointer)>>('FindHomography'); late final _FindHomography = _FindHomographyPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, double, Mat, int, double, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, Mat, int, double, Mat, int, double, ffi.Pointer)>(); ffi.Pointer FindTransformECC( Mat templateImage, @@ -4616,10 +5248,11 @@ class CvNative { late final _FindTransformECCPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, ffi.Int, TermCriteria, Mat, ffi.Int, - ffi.Pointer)>>('FindTransformECC'); + ffi.Pointer Function(Mat, Mat, Mat, ffi.Int, TermCriteria, + Mat, ffi.Int, ffi.Pointer)>>('FindTransformECC'); late final _FindTransformECC = _FindTransformECCPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, int, TermCriteria, Mat, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, Mat, Mat, int, TermCriteria, Mat, int, + ffi.Pointer)>(); ffi.Pointer Fisheye_EstimateNewCameraMatrixForUndistortRectify( Mat k, @@ -4644,12 +5277,14 @@ class CvNative { } late final _Fisheye_EstimateNewCameraMatrixForUndistortRectifyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Size, Mat, Mat, ffi.Double, Size, - ffi.Double)>>('Fisheye_EstimateNewCameraMatrixForUndistortRectify'); + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Size, Mat, Mat, ffi.Double, Size, ffi.Double)>>( + 'Fisheye_EstimateNewCameraMatrixForUndistortRectify'); late final _Fisheye_EstimateNewCameraMatrixForUndistortRectify = _Fisheye_EstimateNewCameraMatrixForUndistortRectifyPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Size, Mat, Mat, double, Size, double)>(); + ffi.Pointer Function( + Mat, Mat, Size, Mat, Mat, double, Size, double)>(); ffi.Pointer Fisheye_UndistortImage( Mat distorted, @@ -4665,11 +5300,12 @@ class CvNative { ); } - late final _Fisheye_UndistortImagePtr = - _lookup Function(Mat, Mat, Mat, Mat)>>( - 'Fisheye_UndistortImage'); - late final _Fisheye_UndistortImage = - _Fisheye_UndistortImagePtr.asFunction Function(Mat, Mat, Mat, Mat)>(); + late final _Fisheye_UndistortImagePtr = _lookup< + ffi + .NativeFunction Function(Mat, Mat, Mat, Mat)>>( + 'Fisheye_UndistortImage'); + late final _Fisheye_UndistortImage = _Fisheye_UndistortImagePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat)>(); ffi.Pointer Fisheye_UndistortImageWithParams( Mat distorted, @@ -4689,11 +5325,13 @@ class CvNative { ); } - late final _Fisheye_UndistortImageWithParamsPtr = - _lookup Function(Mat, Mat, Mat, Mat, Mat, Size)>>( - 'Fisheye_UndistortImageWithParams'); - late final _Fisheye_UndistortImageWithParams = _Fisheye_UndistortImageWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, Size)>(); + late final _Fisheye_UndistortImageWithParamsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, + Size)>>('Fisheye_UndistortImageWithParams'); + late final _Fisheye_UndistortImageWithParams = + _Fisheye_UndistortImageWithParamsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, Size)>(); ffi.Pointer Fisheye_UndistortPoints( Mat distorted, @@ -4713,11 +5351,12 @@ class CvNative { ); } - late final _Fisheye_UndistortPointsPtr = - _lookup Function(Mat, Mat, Mat, Mat, Mat, Mat)>>( - 'Fisheye_UndistortPoints'); - late final _Fisheye_UndistortPoints = - _Fisheye_UndistortPointsPtr.asFunction Function(Mat, Mat, Mat, Mat, Mat, Mat)>(); + late final _Fisheye_UndistortPointsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, Mat, Mat)>>('Fisheye_UndistortPoints'); + late final _Fisheye_UndistortPoints = _Fisheye_UndistortPointsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, Mat)>(); ffi.Pointer FitEllipse( VecPoint pts, @@ -4729,11 +5368,12 @@ class CvNative { ); } - late final _FitEllipsePtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'FitEllipse'); - late final _FitEllipse = - _FitEllipsePtr.asFunction Function(VecPoint, ffi.Pointer)>(); + late final _FitEllipsePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('FitEllipse'); + late final _FitEllipse = _FitEllipsePtr.asFunction< + ffi.Pointer Function(VecPoint, ffi.Pointer)>(); ffi.Pointer FitLine( VecPoint pts, @@ -4755,10 +5395,11 @@ class CvNative { late final _FitLinePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, Mat, ffi.Int, ffi.Double, ffi.Double, ffi.Double)>>('FitLine'); - late final _FitLine = - _FitLinePtr.asFunction Function(VecPoint, Mat, int, double, double, double)>(); + ffi.Pointer Function(VecPoint, Mat, ffi.Int, ffi.Double, + ffi.Double, ffi.Double)>>('FitLine'); + late final _FitLine = _FitLinePtr.asFunction< + ffi.Pointer Function( + VecPoint, Mat, int, double, double, double)>(); void FlannBasedMatcher_Close( FlannBasedMatcherPtr f, @@ -4769,9 +5410,10 @@ class CvNative { } late final _FlannBasedMatcher_ClosePtr = - _lookup>('FlannBasedMatcher_Close'); - late final _FlannBasedMatcher_Close = - _FlannBasedMatcher_ClosePtr.asFunction(); + _lookup>( + 'FlannBasedMatcher_Close'); + late final _FlannBasedMatcher_Close = _FlannBasedMatcher_ClosePtr.asFunction< + void Function(FlannBasedMatcherPtr)>(); ffi.Pointer FlannBasedMatcher_Create( ffi.Pointer rval, @@ -4781,11 +5423,13 @@ class CvNative { ); } - late final _FlannBasedMatcher_CreatePtr = - _lookup Function(ffi.Pointer)>>( - 'FlannBasedMatcher_Create'); - late final _FlannBasedMatcher_Create = _FlannBasedMatcher_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _FlannBasedMatcher_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('FlannBasedMatcher_Create'); + late final _FlannBasedMatcher_Create = + _FlannBasedMatcher_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer FlannBasedMatcher_KnnMatch( FlannBasedMatcher f, @@ -4807,8 +5451,10 @@ class CvNative { ffi.NativeFunction< ffi.Pointer Function(FlannBasedMatcher, Mat, Mat, ffi.Int, ffi.Pointer)>>('FlannBasedMatcher_KnnMatch'); - late final _FlannBasedMatcher_KnnMatch = _FlannBasedMatcher_KnnMatchPtr.asFunction< - ffi.Pointer Function(FlannBasedMatcher, Mat, Mat, int, ffi.Pointer)>(); + late final _FlannBasedMatcher_KnnMatch = + _FlannBasedMatcher_KnnMatchPtr.asFunction< + ffi.Pointer Function( + FlannBasedMatcher, Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer GArrayGArrayPoint_FromVec( VecVecPoint points, @@ -4821,10 +5467,13 @@ class CvNative { } late final _GArrayGArrayPoint_FromVecPtr = _lookup< - ffi.NativeFunction Function(VecVecPoint, ffi.Pointer)>>( - 'GArrayGArrayPoint_FromVec'); - late final _GArrayGArrayPoint_FromVec = _GArrayGArrayPoint_FromVecPtr.asFunction< - ffi.Pointer Function(VecVecPoint, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(VecVecPoint, + ffi.Pointer)>>('GArrayGArrayPoint_FromVec'); + late final _GArrayGArrayPoint_FromVec = + _GArrayGArrayPoint_FromVecPtr.asFunction< + ffi.Pointer Function( + VecVecPoint, ffi.Pointer)>(); ffi.Pointer GArrayPoint2d_FromVec( VecPoint v, @@ -4836,9 +5485,10 @@ class CvNative { ); } - late final _GArrayPoint2d_FromVecPtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'GArrayPoint2d_FromVec'); + late final _GArrayPoint2d_FromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('GArrayPoint2d_FromVec'); late final _GArrayPoint2d_FromVec = _GArrayPoint2d_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -4852,9 +5502,10 @@ class CvNative { ); } - late final _GArrayPoint2f_FromVecPtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'GArrayPoint2f_FromVec'); + late final _GArrayPoint2f_FromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('GArrayPoint2f_FromVec'); late final _GArrayPoint2f_FromVec = _GArrayPoint2f_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -4868,9 +5519,10 @@ class CvNative { ); } - late final _GArrayPoint2i_FromVecPtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'GArrayPoint2i_FromVec'); + late final _GArrayPoint2i_FromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('GArrayPoint2i_FromVec'); late final _GArrayPoint2i_FromVec = _GArrayPoint2i_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -4884,9 +5536,10 @@ class CvNative { ); } - late final _GArrayPoint3d_FromVecPtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'GArrayPoint3d_FromVec'); + late final _GArrayPoint3d_FromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('GArrayPoint3d_FromVec'); late final _GArrayPoint3d_FromVec = _GArrayPoint3d_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -4900,9 +5553,10 @@ class CvNative { ); } - late final _GArrayPoint3f_FromVecPtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'GArrayPoint3f_FromVec'); + late final _GArrayPoint3f_FromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('GArrayPoint3f_FromVec'); late final _GArrayPoint3f_FromVec = _GArrayPoint3f_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -4916,9 +5570,10 @@ class CvNative { ); } - late final _GArrayPoint3i_FromVecPtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'GArrayPoint3i_FromVec'); + late final _GArrayPoint3i_FromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('GArrayPoint3i_FromVec'); late final _GArrayPoint3i_FromVec = _GArrayPoint3i_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -4932,9 +5587,10 @@ class CvNative { ); } - late final _GArrayPoint_FromVecPtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'GArrayPoint_FromVec'); + late final _GArrayPoint_FromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('GArrayPoint_FromVec'); late final _GArrayPoint_FromVec = _GArrayPoint_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -4948,11 +5604,12 @@ class CvNative { ); } - late final _GArrayPrim_FromVecPtr = - _lookup Function(VecPrim, ffi.Pointer)>>( - 'GArrayPrim_FromVec'); - late final _GArrayPrim_FromVec = - _GArrayPrim_FromVecPtr.asFunction Function(VecPrim, ffi.Pointer)>(); + late final _GArrayPrim_FromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPrim, ffi.Pointer)>>('GArrayPrim_FromVec'); + late final _GArrayPrim_FromVec = _GArrayPrim_FromVecPtr.asFunction< + ffi.Pointer Function(VecPrim, ffi.Pointer)>(); ffi.Pointer GArrayVec4i_FromVec( VecVec4i v, @@ -4964,9 +5621,10 @@ class CvNative { ); } - late final _GArrayVec4i_FromVecPtr = - _lookup Function(VecVec4i, ffi.Pointer)>>( - 'GArrayVec4i_FromVec'); + late final _GArrayVec4i_FromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVec4i, ffi.Pointer)>>('GArrayVec4i_FromVec'); late final _GArrayVec4i_FromVec = _GArrayVec4i_FromVecPtr.asFunction< ffi.Pointer Function(VecVec4i, ffi.Pointer)>(); @@ -4979,8 +5637,10 @@ class CvNative { } late final _GFTTDetector_ClosePtr = - _lookup>('GFTTDetector_Close'); - late final _GFTTDetector_Close = _GFTTDetector_ClosePtr.asFunction(); + _lookup>( + 'GFTTDetector_Close'); + late final _GFTTDetector_Close = + _GFTTDetector_ClosePtr.asFunction(); ffi.Pointer GFTTDetector_Create( ffi.Pointer rval, @@ -4990,11 +5650,12 @@ class CvNative { ); } - late final _GFTTDetector_CreatePtr = - _lookup Function(ffi.Pointer)>>( - 'GFTTDetector_Create'); - late final _GFTTDetector_Create = - _GFTTDetector_CreatePtr.asFunction Function(ffi.Pointer)>(); + late final _GFTTDetector_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('GFTTDetector_Create'); + late final _GFTTDetector_Create = _GFTTDetector_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer GFTTDetector_Detect( GFTTDetector a, @@ -5009,10 +5670,12 @@ class CvNative { } late final _GFTTDetector_DetectPtr = _lookup< - ffi.NativeFunction Function(GFTTDetector, Mat, ffi.Pointer)>>( - 'GFTTDetector_Detect'); + ffi.NativeFunction< + ffi.Pointer Function(GFTTDetector, Mat, + ffi.Pointer)>>('GFTTDetector_Detect'); late final _GFTTDetector_Detect = _GFTTDetector_DetectPtr.asFunction< - ffi.Pointer Function(GFTTDetector, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + GFTTDetector, Mat, ffi.Pointer)>(); ffi.Pointer GaussianBlur( Mat src, @@ -5034,9 +5697,10 @@ class CvNative { late final _GaussianBlurPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Size, ffi.Double, ffi.Double, ffi.Int)>>('GaussianBlur'); - late final _GaussianBlur = - _GaussianBlurPtr.asFunction Function(Mat, Mat, Size, double, double, int)>(); + ffi.Pointer Function(Mat, Mat, Size, ffi.Double, ffi.Double, + ffi.Int)>>('GaussianBlur'); + late final _GaussianBlur = _GaussianBlurPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Size, double, double, int)>(); ffi.Pointer GaussianBlur_Async( Mat src, @@ -5058,10 +5722,11 @@ class CvNative { late final _GaussianBlur_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Size, ffi.Double, ffi.Double, ffi.Int, CvCallback_1)>>('GaussianBlur_Async'); + ffi.Pointer Function(Mat, Size, ffi.Double, ffi.Double, + ffi.Int, CvCallback_1)>>('GaussianBlur_Async'); late final _GaussianBlur_Async = _GaussianBlur_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, Size, double, double, int, CvCallback_1)>(); + ffi.Pointer Function( + Mat, Size, double, double, int, CvCallback_1)>(); ffi.Pointer GetAffineTransform( VecPoint src, @@ -5075,9 +5740,10 @@ class CvNative { ); } - late final _GetAffineTransformPtr = - _lookup Function(VecPoint, VecPoint, ffi.Pointer)>>( - 'GetAffineTransform'); + late final _GetAffineTransformPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, VecPoint, ffi.Pointer)>>('GetAffineTransform'); late final _GetAffineTransform = _GetAffineTransformPtr.asFunction< ffi.Pointer Function(VecPoint, VecPoint, ffi.Pointer)>(); @@ -5093,11 +5759,13 @@ class CvNative { ); } - late final _GetAffineTransform2fPtr = - _lookup Function(VecPoint2f, VecPoint2f, ffi.Pointer)>>( - 'GetAffineTransform2f'); + late final _GetAffineTransform2fPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecPoint2f, VecPoint2f, + ffi.Pointer)>>('GetAffineTransform2f'); late final _GetAffineTransform2f = _GetAffineTransform2fPtr.asFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, ffi.Pointer)>(); + ffi.Pointer Function( + VecPoint2f, VecPoint2f, ffi.Pointer)>(); ffi.Pointer GetCVTickCount( ffi.Pointer rval, @@ -5107,10 +5775,12 @@ class CvNative { ); } - late final _GetCVTickCountPtr = - _lookup Function(ffi.Pointer)>>('GetCVTickCount'); - late final _GetCVTickCount = - _GetCVTickCountPtr.asFunction Function(ffi.Pointer)>(); + late final _GetCVTickCountPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('GetCVTickCount'); + late final _GetCVTickCount = _GetCVTickCountPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer GetGaussianKernel( int ksize, @@ -5127,10 +5797,11 @@ class CvNative { } late final _GetGaussianKernelPtr = _lookup< - ffi.NativeFunction Function(ffi.Int, ffi.Double, ffi.Int, ffi.Pointer)>>( - 'GetGaussianKernel'); - late final _GetGaussianKernel = - _GetGaussianKernelPtr.asFunction Function(int, double, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Double, ffi.Int, + ffi.Pointer)>>('GetGaussianKernel'); + late final _GetGaussianKernel = _GetGaussianKernelPtr.asFunction< + ffi.Pointer Function(int, double, int, ffi.Pointer)>(); ffi.Pointer GetNumThreads( ffi.Pointer rval, @@ -5140,10 +5811,12 @@ class CvNative { ); } - late final _GetNumThreadsPtr = - _lookup Function(ffi.Pointer)>>('GetNumThreads'); - late final _GetNumThreads = - _GetNumThreadsPtr.asFunction Function(ffi.Pointer)>(); + late final _GetNumThreadsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('GetNumThreads'); + late final _GetNumThreads = _GetNumThreadsPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer GetOptimalNewCameraMatrixWithParams( Mat cameraMatrix, @@ -5169,11 +5842,19 @@ class CvNative { late final _GetOptimalNewCameraMatrixWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Size, ffi.Double, Size, ffi.Pointer, ffi.Bool, + ffi.Pointer Function( + Mat, + Mat, + Size, + ffi.Double, + Size, + ffi.Pointer, + ffi.Bool, ffi.Pointer)>>('GetOptimalNewCameraMatrixWithParams'); - late final _GetOptimalNewCameraMatrixWithParams = _GetOptimalNewCameraMatrixWithParamsPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Size, double, Size, ffi.Pointer, bool, ffi.Pointer)>(); + late final _GetOptimalNewCameraMatrixWithParams = + _GetOptimalNewCameraMatrixWithParamsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Size, double, Size, + ffi.Pointer, bool, ffi.Pointer)>(); ffi.Pointer GetPerspectiveTransform( VecPoint src, @@ -5190,10 +5871,12 @@ class CvNative { } late final _GetPerspectiveTransformPtr = _lookup< - ffi.NativeFunction Function(VecPoint, VecPoint, ffi.Pointer, ffi.Int)>>( - 'GetPerspectiveTransform'); + ffi.NativeFunction< + ffi.Pointer Function(VecPoint, VecPoint, ffi.Pointer, + ffi.Int)>>('GetPerspectiveTransform'); late final _GetPerspectiveTransform = _GetPerspectiveTransformPtr.asFunction< - ffi.Pointer Function(VecPoint, VecPoint, ffi.Pointer, int)>(); + ffi.Pointer Function( + VecPoint, VecPoint, ffi.Pointer, int)>(); ffi.Pointer GetPerspectiveTransform2f( VecPoint2f src, @@ -5210,11 +5893,13 @@ class CvNative { } late final _GetPerspectiveTransform2fPtr = _lookup< - ffi - .NativeFunction Function(VecPoint2f, VecPoint2f, ffi.Pointer, ffi.Int)>>( - 'GetPerspectiveTransform2f'); - late final _GetPerspectiveTransform2f = _GetPerspectiveTransform2fPtr.asFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, ffi.Pointer, int)>(); + ffi.NativeFunction< + ffi.Pointer Function(VecPoint2f, VecPoint2f, + ffi.Pointer, ffi.Int)>>('GetPerspectiveTransform2f'); + late final _GetPerspectiveTransform2f = + _GetPerspectiveTransform2fPtr.asFunction< + ffi.Pointer Function( + VecPoint2f, VecPoint2f, ffi.Pointer, int)>(); ffi.Pointer GetRectSubPix( Mat src, @@ -5230,10 +5915,12 @@ class CvNative { ); } - late final _GetRectSubPixPtr = - _lookup Function(Mat, Size, Point2f, Mat)>>('GetRectSubPix'); - late final _GetRectSubPix = - _GetRectSubPixPtr.asFunction Function(Mat, Size, Point2f, Mat)>(); + late final _GetRectSubPixPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Size, Point2f, Mat)>>('GetRectSubPix'); + late final _GetRectSubPix = _GetRectSubPixPtr.asFunction< + ffi.Pointer Function(Mat, Size, Point2f, Mat)>(); ffi.Pointer GetRotationMatrix2D( Point2f center, @@ -5250,11 +5937,12 @@ class CvNative { } late final _GetRotationMatrix2DPtr = _lookup< - ffi - .NativeFunction Function(Point2f, ffi.Double, ffi.Double, ffi.Pointer)>>( - 'GetRotationMatrix2D'); + ffi.NativeFunction< + ffi.Pointer Function(Point2f, ffi.Double, ffi.Double, + ffi.Pointer)>>('GetRotationMatrix2D'); late final _GetRotationMatrix2D = _GetRotationMatrix2DPtr.asFunction< - ffi.Pointer Function(Point2f, double, double, ffi.Pointer)>(); + ffi.Pointer Function( + Point2f, double, double, ffi.Pointer)>(); ffi.Pointer GetStructuringElement( int shape, @@ -5268,11 +5956,12 @@ class CvNative { ); } - late final _GetStructuringElementPtr = - _lookup Function(ffi.Int, Size, ffi.Pointer)>>( - 'GetStructuringElement'); - late final _GetStructuringElement = - _GetStructuringElementPtr.asFunction Function(int, Size, ffi.Pointer)>(); + late final _GetStructuringElementPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int, Size, ffi.Pointer)>>('GetStructuringElement'); + late final _GetStructuringElement = _GetStructuringElementPtr.asFunction< + ffi.Pointer Function(int, Size, ffi.Pointer)>(); ffi.Pointer GetTextSizeWithBaseline( ffi.Pointer text, @@ -5294,11 +5983,16 @@ class CvNative { late final _GetTextSizeWithBaselinePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, ffi.Double, ffi.Int, - ffi.Pointer, ffi.Pointer)>>('GetTextSizeWithBaseline'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Double, + ffi.Int, + ffi.Pointer, + ffi.Pointer)>>('GetTextSizeWithBaseline'); late final _GetTextSizeWithBaseline = _GetTextSizeWithBaselinePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, double, int, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, int, double, int, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer GetTickFrequency( ffi.Pointer rval, @@ -5308,11 +6002,12 @@ class CvNative { ); } - late final _GetTickFrequencyPtr = - _lookup Function(ffi.Pointer)>>( - 'GetTickFrequency'); - late final _GetTickFrequency = - _GetTickFrequencyPtr.asFunction Function(ffi.Pointer)>(); + late final _GetTickFrequencyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('GetTickFrequency'); + late final _GetTickFrequency = _GetTickFrequencyPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer GoodFeaturesToTrack( Mat img, @@ -5340,11 +6035,19 @@ class CvNative { late final _GoodFeaturesToTrackPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer, ffi.Int, ffi.Double, ffi.Double, Mat, - ffi.Int, ffi.Bool, ffi.Double)>>('GoodFeaturesToTrack'); + ffi.Pointer Function( + Mat, + ffi.Pointer, + ffi.Int, + ffi.Double, + ffi.Double, + Mat, + ffi.Int, + ffi.Bool, + ffi.Double)>>('GoodFeaturesToTrack'); late final _GoodFeaturesToTrack = _GoodFeaturesToTrackPtr.asFunction< - ffi.Pointer Function( - Mat, ffi.Pointer, int, double, double, Mat, int, bool, double)>(); + ffi.Pointer Function(Mat, ffi.Pointer, int, double, + double, Mat, int, bool, double)>(); ffi.Pointer GoodFeaturesToTrackWithGradient( Mat img, @@ -5374,11 +6077,21 @@ class CvNative { late final _GoodFeaturesToTrackWithGradientPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer, ffi.Int, ffi.Double, ffi.Double, Mat, - ffi.Int, ffi.Int, ffi.Bool, ffi.Double)>>('GoodFeaturesToTrackWithGradient'); - late final _GoodFeaturesToTrackWithGradient = _GoodFeaturesToTrackWithGradientPtr.asFunction< - ffi.Pointer Function( - Mat, ffi.Pointer, int, double, double, Mat, int, int, bool, double)>(); + ffi.Pointer Function( + Mat, + ffi.Pointer, + ffi.Int, + ffi.Double, + ffi.Double, + Mat, + ffi.Int, + ffi.Int, + ffi.Bool, + ffi.Double)>>('GoodFeaturesToTrackWithGradient'); + late final _GoodFeaturesToTrackWithGradient = + _GoodFeaturesToTrackWithGradientPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer, int, + double, double, Mat, int, int, bool, double)>(); ffi.Pointer GrabCut( Mat img, @@ -5400,11 +6113,12 @@ class CvNative { ); } - late final _GrabCutPtr = - _lookup Function(Mat, Mat, Rect, Mat, Mat, ffi.Int, ffi.Int)>>( - 'GrabCut'); - late final _GrabCut = - _GrabCutPtr.asFunction Function(Mat, Mat, Rect, Mat, Mat, int, int)>(); + late final _GrabCutPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Rect, Mat, Mat, ffi.Int, ffi.Int)>>('GrabCut'); + late final _GrabCut = _GrabCutPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Rect, Mat, Mat, int, int)>(); ffi.Pointer GroupRectangles( VecRect rects, @@ -5418,11 +6132,12 @@ class CvNative { ); } - late final _GroupRectanglesPtr = - _lookup Function(VecRect, ffi.Int, ffi.Double)>>( - 'GroupRectangles'); - late final _GroupRectangles = - _GroupRectanglesPtr.asFunction Function(VecRect, int, double)>(); + late final _GroupRectanglesPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecRect, ffi.Int, ffi.Double)>>('GroupRectangles'); + late final _GroupRectangles = _GroupRectanglesPtr.asFunction< + ffi.Pointer Function(VecRect, int, double)>(); ffi.Pointer GroupRectangles_Async( VecRect rects, @@ -5441,7 +6156,7 @@ class CvNative { late final _GroupRectangles_AsyncPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function(VecRect, ffi.Int, ffi.Double, - CvCallback_1)>>('GroupRectangles_Async'); + CvCallback_0)>>('GroupRectangles_Async'); late final _GroupRectangles_Async = _GroupRectangles_AsyncPtr.asFunction< ffi.Pointer Function(VecRect, int, double, CvCallback_0)>(); @@ -5454,8 +6169,10 @@ class CvNative { } late final _HOGDescriptor_ClosePtr = - _lookup>('HOGDescriptor_Close'); - late final _HOGDescriptor_Close = _HOGDescriptor_ClosePtr.asFunction(); + _lookup>( + 'HOGDescriptor_Close'); + late final _HOGDescriptor_Close = + _HOGDescriptor_ClosePtr.asFunction(); ffi.Pointer HOGDescriptor_Compute( HOGDescriptor self, @@ -5477,11 +6194,16 @@ class CvNative { late final _HOGDescriptor_ComputePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, Size, Size, + ffi.Pointer Function( + HOGDescriptor, + Mat, + ffi.Pointer, + Size, + Size, ffi.Pointer)>>('HOGDescriptor_Compute'); late final _HOGDescriptor_Compute = _HOGDescriptor_ComputePtr.asFunction< - ffi.Pointer Function( - HOGDescriptor, Mat, ffi.Pointer, Size, Size, ffi.Pointer)>(); + ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, + Size, Size, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_Compute_Async( HOGDescriptor self, @@ -5500,10 +6222,13 @@ class CvNative { } late final _HOGDescriptor_Compute_AsyncPtr = _lookup< - ffi.NativeFunction Function(HOGDescriptor, Mat, Size, Size, CvCallback_2)>>( - 'HOGDescriptor_Compute_Async'); - late final _HOGDescriptor_Compute_Async = _HOGDescriptor_Compute_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, Size, Size, CvCallback_2)>(); + ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, Mat, Size, Size, + CvCallback_2)>>('HOGDescriptor_Compute_Async'); + late final _HOGDescriptor_Compute_Async = + _HOGDescriptor_Compute_AsyncPtr.asFunction< + ffi.Pointer Function( + HOGDescriptor, Mat, Size, Size, CvCallback_2)>(); ffi.Pointer HOGDescriptor_Detect( HOGDescriptor self, @@ -5529,11 +6254,18 @@ class CvNative { late final _HOGDescriptor_DetectPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, ffi.Pointer, - ffi.Double, Size, Size, ffi.Pointer)>>('HOGDescriptor_Detect'); + ffi.Pointer Function( + HOGDescriptor, + Mat, + ffi.Pointer, + ffi.Pointer, + ffi.Double, + Size, + Size, + ffi.Pointer)>>('HOGDescriptor_Detect'); late final _HOGDescriptor_Detect = _HOGDescriptor_DetectPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, ffi.Pointer, - double, Size, Size, ffi.Pointer)>(); + ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, + ffi.Pointer, double, Size, Size, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_Detect2( HOGDescriptor self, @@ -5557,11 +6289,17 @@ class CvNative { late final _HOGDescriptor_Detect2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, ffi.Double, Size, Size, + ffi.Pointer Function( + HOGDescriptor, + Mat, + ffi.Pointer, + ffi.Double, + Size, + Size, ffi.Pointer)>>('HOGDescriptor_Detect2'); late final _HOGDescriptor_Detect2 = _HOGDescriptor_Detect2Ptr.asFunction< - ffi.Pointer Function( - HOGDescriptor, Mat, ffi.Pointer, double, Size, Size, ffi.Pointer)>(); + ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, + double, Size, Size, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_Detect2_Async( HOGDescriptor self, @@ -5583,10 +6321,12 @@ class CvNative { late final _HOGDescriptor_Detect2_AsyncPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, Mat, ffi.Double, Size, + Size, CvCallback_2)>>('HOGDescriptor_Detect2_Async'); + late final _HOGDescriptor_Detect2_Async = + _HOGDescriptor_Detect2_AsyncPtr.asFunction< ffi.Pointer Function( - HOGDescriptor, Mat, ffi.Double, Size, Size, CvCallback_2)>>('HOGDescriptor_Detect2_Async'); - late final _HOGDescriptor_Detect2_Async = _HOGDescriptor_Detect2_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, double, Size, Size, CvCallback_2)>(); + HOGDescriptor, Mat, double, Size, Size, CvCallback_2)>(); ffi.Pointer HOGDescriptor_DetectMultiScale( HOGDescriptor self, @@ -5600,11 +6340,14 @@ class CvNative { ); } - late final _HOGDescriptor_DetectMultiScalePtr = - _lookup Function(HOGDescriptor, Mat, ffi.Pointer)>>( - 'HOGDescriptor_DetectMultiScale'); - late final _HOGDescriptor_DetectMultiScale = _HOGDescriptor_DetectMultiScalePtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer)>(); + late final _HOGDescriptor_DetectMultiScalePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, Mat, + ffi.Pointer)>>('HOGDescriptor_DetectMultiScale'); + late final _HOGDescriptor_DetectMultiScale = + _HOGDescriptor_DetectMultiScalePtr.asFunction< + ffi.Pointer Function( + HOGDescriptor, Mat, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_DetectMultiScaleWithParams( HOGDescriptor self, @@ -5631,13 +6374,22 @@ class CvNative { } late final _HOGDescriptor_DetectMultiScaleWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, Mat, ffi.Double, Size, Size, ffi.Double, ffi.Double, - ffi.Bool, ffi.Pointer)>>('HOGDescriptor_DetectMultiScaleWithParams'); + ffi.NativeFunction< + ffi.Pointer Function( + HOGDescriptor, + Mat, + ffi.Double, + Size, + Size, + ffi.Double, + ffi.Double, + ffi.Bool, + ffi.Pointer)>>( + 'HOGDescriptor_DetectMultiScaleWithParams'); late final _HOGDescriptor_DetectMultiScaleWithParams = _HOGDescriptor_DetectMultiScaleWithParamsPtr.asFunction< - ffi.Pointer Function( - HOGDescriptor, Mat, double, Size, Size, double, double, bool, ffi.Pointer)>(); + ffi.Pointer Function(HOGDescriptor, Mat, double, Size, Size, + double, double, bool, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_DetectMultiScaleWithParams_Async( HOGDescriptor self, @@ -5665,12 +6417,20 @@ class CvNative { late final _HOGDescriptor_DetectMultiScaleWithParams_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, Mat, ffi.Double, Size, Size, ffi.Double, ffi.Double, - ffi.Bool, CvCallback_1)>>('HOGDescriptor_DetectMultiScaleWithParams_Async'); + ffi.Pointer Function( + HOGDescriptor, + Mat, + ffi.Double, + Size, + Size, + ffi.Double, + ffi.Double, + ffi.Bool, + CvCallback_1)>>('HOGDescriptor_DetectMultiScaleWithParams_Async'); late final _HOGDescriptor_DetectMultiScaleWithParams_Async = _HOGDescriptor_DetectMultiScaleWithParams_AsyncPtr.asFunction< - ffi.Pointer Function( - HOGDescriptor, Mat, double, Size, Size, double, double, bool, CvCallback_1)>(); + ffi.Pointer Function(HOGDescriptor, Mat, double, Size, Size, + double, double, bool, CvCallback_1)>(); ffi.Pointer HOGDescriptor_DetectMultiScale_Async( HOGDescriptor self, @@ -5684,11 +6444,13 @@ class CvNative { ); } - late final _HOGDescriptor_DetectMultiScale_AsyncPtr = - _lookup Function(HOGDescriptor, Mat, CvCallback_1)>>( - 'HOGDescriptor_DetectMultiScale_Async'); - late final _HOGDescriptor_DetectMultiScale_Async = _HOGDescriptor_DetectMultiScale_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, CvCallback_1)>(); + late final _HOGDescriptor_DetectMultiScale_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, Mat, + CvCallback_1)>>('HOGDescriptor_DetectMultiScale_Async'); + late final _HOGDescriptor_DetectMultiScale_Async = + _HOGDescriptor_DetectMultiScale_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, Mat, CvCallback_1)>(); ffi.Pointer HOGDescriptor_Detect_Async( HOGDescriptor self, @@ -5710,10 +6472,12 @@ class CvNative { late final _HOGDescriptor_Detect_AsyncPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, Mat, ffi.Double, Size, + Size, CvCallback_3)>>('HOGDescriptor_Detect_Async'); + late final _HOGDescriptor_Detect_Async = + _HOGDescriptor_Detect_AsyncPtr.asFunction< ffi.Pointer Function( - HOGDescriptor, Mat, ffi.Double, Size, Size, CvCallback_3)>>('HOGDescriptor_Detect_Async'); - late final _HOGDescriptor_Detect_Async = _HOGDescriptor_Detect_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, double, Size, Size, CvCallback_3)>(); + HOGDescriptor, Mat, double, Size, Size, CvCallback_3)>(); ffi.Pointer HOGDescriptor_Load( HOGDescriptor self, @@ -5729,10 +6493,11 @@ class CvNative { late final _HOGDescriptor_LoadPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - HOGDescriptor, ffi.Pointer, ffi.Pointer)>>('HOGDescriptor_Load'); + ffi.Pointer Function(HOGDescriptor, ffi.Pointer, + ffi.Pointer)>>('HOGDescriptor_Load'); late final _HOGDescriptor_Load = _HOGDescriptor_LoadPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + HOGDescriptor, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_Load_Async( HOGDescriptor self, @@ -5748,10 +6513,12 @@ class CvNative { late final _HOGDescriptor_Load_AsyncPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, ffi.Pointer, + CvCallback_1)>>('HOGDescriptor_Load_Async'); + late final _HOGDescriptor_Load_Async = + _HOGDescriptor_Load_AsyncPtr.asFunction< ffi.Pointer Function( - HOGDescriptor, ffi.Pointer, CvCallback_1)>>('HOGDescriptor_Load_Async'); - late final _HOGDescriptor_Load_Async = _HOGDescriptor_Load_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, ffi.Pointer, CvCallback_1)>(); + HOGDescriptor, ffi.Pointer, CvCallback_1)>(); ffi.Pointer HOGDescriptor_New( ffi.Pointer rval, @@ -5761,11 +6528,12 @@ class CvNative { ); } - late final _HOGDescriptor_NewPtr = - _lookup Function(ffi.Pointer)>>( - 'HOGDescriptor_New'); - late final _HOGDescriptor_New = - _HOGDescriptor_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _HOGDescriptor_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('HOGDescriptor_New'); + late final _HOGDescriptor_New = _HOGDescriptor_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer HOGDescriptor_NewFromFile( ffi.Pointer filename, @@ -5778,11 +6546,13 @@ class CvNative { } late final _HOGDescriptor_NewFromFilePtr = _lookup< - ffi - .NativeFunction Function(ffi.Pointer, ffi.Pointer)>>( - 'HOGDescriptor_NewFromFile'); - late final _HOGDescriptor_NewFromFile = _HOGDescriptor_NewFromFilePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer)>>('HOGDescriptor_NewFromFile'); + late final _HOGDescriptor_NewFromFile = + _HOGDescriptor_NewFromFilePtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_NewFromFile_Async( ffi.Pointer filename, @@ -5794,11 +6564,14 @@ class CvNative { ); } - late final _HOGDescriptor_NewFromFile_AsyncPtr = - _lookup Function(ffi.Pointer, CvCallback_1)>>( - 'HOGDescriptor_NewFromFile_Async'); - late final _HOGDescriptor_NewFromFile_Async = _HOGDescriptor_NewFromFile_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, CvCallback_1)>(); + late final _HOGDescriptor_NewFromFile_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + CvCallback_1)>>('HOGDescriptor_NewFromFile_Async'); + late final _HOGDescriptor_NewFromFile_Async = + _HOGDescriptor_NewFromFile_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, CvCallback_1)>(); ffi.Pointer HOGDescriptor_New_Async( CvCallback_1 callback, @@ -5809,9 +6582,10 @@ class CvNative { } late final _HOGDescriptor_New_AsyncPtr = - _lookup Function(CvCallback_1)>>('HOGDescriptor_New_Async'); - late final _HOGDescriptor_New_Async = - _HOGDescriptor_New_AsyncPtr.asFunction Function(CvCallback_1)>(); + _lookup Function(CvCallback_1)>>( + 'HOGDescriptor_New_Async'); + late final _HOGDescriptor_New_Async = _HOGDescriptor_New_AsyncPtr.asFunction< + ffi.Pointer Function(CvCallback_1)>(); ffi.Pointer HOGDescriptor_SetSVMDetector( HOGDescriptor self, @@ -5823,16 +6597,17 @@ class CvNative { ); } - late final _HOGDescriptor_SetSVMDetectorPtr = - _lookup Function(HOGDescriptor, VecFloat)>>( - 'HOGDescriptor_SetSVMDetector'); - late final _HOGDescriptor_SetSVMDetector = - _HOGDescriptor_SetSVMDetectorPtr.asFunction Function(HOGDescriptor, VecFloat)>(); + late final _HOGDescriptor_SetSVMDetectorPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + HOGDescriptor, VecFloat)>>('HOGDescriptor_SetSVMDetector'); + late final _HOGDescriptor_SetSVMDetector = _HOGDescriptor_SetSVMDetectorPtr + .asFunction Function(HOGDescriptor, VecFloat)>(); ffi.Pointer HOGDescriptor_SetSVMDetector_Async( HOGDescriptor self, VecFloat det, - CvCallback_1 callback, + CvCallback_0 callback, ) { return _HOGDescriptor_SetSVMDetector_Async( self, @@ -5841,11 +6616,14 @@ class CvNative { ); } - late final _HOGDescriptor_SetSVMDetector_AsyncPtr = - _lookup Function(HOGDescriptor, VecFloat, CvCallback_1)>>( - 'HOGDescriptor_SetSVMDetector_Async'); - late final _HOGDescriptor_SetSVMDetector_Async = _HOGDescriptor_SetSVMDetector_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, VecFloat, CvCallback_1)>(); + late final _HOGDescriptor_SetSVMDetector_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, VecFloat, + CvCallback_0)>>('HOGDescriptor_SetSVMDetector_Async'); + late final _HOGDescriptor_SetSVMDetector_Async = + _HOGDescriptor_SetSVMDetector_AsyncPtr.asFunction< + ffi.Pointer Function( + HOGDescriptor, VecFloat, CvCallback_0)>(); ffi.Pointer HOGDescriptor_computeGradient( HOGDescriptor self, @@ -5865,11 +6643,14 @@ class CvNative { ); } - late final _HOGDescriptor_computeGradientPtr = - _lookup Function(HOGDescriptor, Mat, Mat, Mat, Size, Size)>>( - 'HOGDescriptor_computeGradient'); - late final _HOGDescriptor_computeGradient = _HOGDescriptor_computeGradientPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, Mat, Mat, Size, Size)>(); + late final _HOGDescriptor_computeGradientPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, Mat, Mat, Mat, Size, + Size)>>('HOGDescriptor_computeGradient'); + late final _HOGDescriptor_computeGradient = + _HOGDescriptor_computeGradientPtr.asFunction< + ffi.Pointer Function( + HOGDescriptor, Mat, Mat, Mat, Size, Size)>(); ffi.Pointer HOGDescriptor_computeGradient_Async( HOGDescriptor self, @@ -5893,10 +6674,12 @@ class CvNative { late final _HOGDescriptor_computeGradient_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, Mat, Mat, Mat, Size, Size, - CvCallback_0)>>('HOGDescriptor_computeGradient_Async'); - late final _HOGDescriptor_computeGradient_Async = _HOGDescriptor_computeGradient_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, Mat, Mat, Size, Size, CvCallback_0)>(); + ffi.Pointer Function(HOGDescriptor, Mat, Mat, Mat, Size, + Size, CvCallback_0)>>('HOGDescriptor_computeGradient_Async'); + late final _HOGDescriptor_computeGradient_Async = + _HOGDescriptor_computeGradient_AsyncPtr.asFunction< + ffi.Pointer Function( + HOGDescriptor, Mat, Mat, Mat, Size, Size, CvCallback_0)>(); ffi.Pointer HOGDescriptor_getDaimlerPeopleDetector( ffi.Pointer rval, @@ -5906,11 +6689,13 @@ class CvNative { ); } - late final _HOGDescriptor_getDaimlerPeopleDetectorPtr = - _lookup Function(ffi.Pointer)>>( - 'HOGDescriptor_getDaimlerPeopleDetector'); - late final _HOGDescriptor_getDaimlerPeopleDetector = _HOGDescriptor_getDaimlerPeopleDetectorPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _HOGDescriptor_getDaimlerPeopleDetectorPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>( + 'HOGDescriptor_getDaimlerPeopleDetector'); + late final _HOGDescriptor_getDaimlerPeopleDetector = + _HOGDescriptor_getDaimlerPeopleDetectorPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer HOGDescriptor_getDaimlerPeopleDetector_Async( CvCallback_1 callback, @@ -5923,8 +6708,9 @@ class CvNative { late final _HOGDescriptor_getDaimlerPeopleDetector_AsyncPtr = _lookup Function(CvCallback_1)>>( 'HOGDescriptor_getDaimlerPeopleDetector_Async'); - late final _HOGDescriptor_getDaimlerPeopleDetector_Async = _HOGDescriptor_getDaimlerPeopleDetector_AsyncPtr - .asFunction Function(CvCallback_1)>(); + late final _HOGDescriptor_getDaimlerPeopleDetector_Async = + _HOGDescriptor_getDaimlerPeopleDetector_AsyncPtr.asFunction< + ffi.Pointer Function(CvCallback_1)>(); ffi.Pointer HOGDescriptor_getDescriptorSize( HOGDescriptor self, @@ -5936,11 +6722,14 @@ class CvNative { ); } - late final _HOGDescriptor_getDescriptorSizePtr = - _lookup Function(HOGDescriptor, ffi.Pointer)>>( - 'HOGDescriptor_getDescriptorSize'); - late final _HOGDescriptor_getDescriptorSize = _HOGDescriptor_getDescriptorSizePtr.asFunction< - ffi.Pointer Function(HOGDescriptor, ffi.Pointer)>(); + late final _HOGDescriptor_getDescriptorSizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, + ffi.Pointer)>>('HOGDescriptor_getDescriptorSize'); + late final _HOGDescriptor_getDescriptorSize = + _HOGDescriptor_getDescriptorSizePtr.asFunction< + ffi.Pointer Function( + HOGDescriptor, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_getDescriptorSize_Async( HOGDescriptor self, @@ -5952,11 +6741,13 @@ class CvNative { ); } - late final _HOGDescriptor_getDescriptorSize_AsyncPtr = - _lookup Function(HOGDescriptor, CvCallback_1)>>( - 'HOGDescriptor_getDescriptorSize_Async'); - late final _HOGDescriptor_getDescriptorSize_Async = _HOGDescriptor_getDescriptorSize_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, CvCallback_1)>(); + late final _HOGDescriptor_getDescriptorSize_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, + CvCallback_1)>>('HOGDescriptor_getDescriptorSize_Async'); + late final _HOGDescriptor_getDescriptorSize_Async = + _HOGDescriptor_getDescriptorSize_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, CvCallback_1)>(); ffi.Pointer HOGDescriptor_getWinSigma( HOGDescriptor self, @@ -5968,11 +6759,14 @@ class CvNative { ); } - late final _HOGDescriptor_getWinSigmaPtr = - _lookup Function(HOGDescriptor, ffi.Pointer)>>( - 'HOGDescriptor_getWinSigma'); - late final _HOGDescriptor_getWinSigma = _HOGDescriptor_getWinSigmaPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, ffi.Pointer)>(); + late final _HOGDescriptor_getWinSigmaPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, + ffi.Pointer)>>('HOGDescriptor_getWinSigma'); + late final _HOGDescriptor_getWinSigma = + _HOGDescriptor_getWinSigmaPtr.asFunction< + ffi.Pointer Function( + HOGDescriptor, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_getWinSigma_Async( HOGDescriptor self, @@ -5984,11 +6778,13 @@ class CvNative { ); } - late final _HOGDescriptor_getWinSigma_AsyncPtr = - _lookup Function(HOGDescriptor, CvCallback_1)>>( - 'HOGDescriptor_getWinSigma_Async'); - late final _HOGDescriptor_getWinSigma_Async = _HOGDescriptor_getWinSigma_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, CvCallback_1)>(); + late final _HOGDescriptor_getWinSigma_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + HOGDescriptor, CvCallback_1)>>('HOGDescriptor_getWinSigma_Async'); + late final _HOGDescriptor_getWinSigma_Async = + _HOGDescriptor_getWinSigma_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, CvCallback_1)>(); ffi.Pointer HOGDescriptor_groupRectangles( HOGDescriptor self, @@ -6008,10 +6804,12 @@ class CvNative { late final _HOGDescriptor_groupRectanglesPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, VecRect, VecDouble, + ffi.Int, ffi.Double)>>('HOGDescriptor_groupRectangles'); + late final _HOGDescriptor_groupRectangles = + _HOGDescriptor_groupRectanglesPtr.asFunction< ffi.Pointer Function( - HOGDescriptor, VecRect, VecDouble, ffi.Int, ffi.Double)>>('HOGDescriptor_groupRectangles'); - late final _HOGDescriptor_groupRectangles = _HOGDescriptor_groupRectanglesPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, VecRect, VecDouble, int, double)>(); + HOGDescriptor, VecRect, VecDouble, int, double)>(); ffi.Pointer HOGDescriptor_groupRectangles_Async( HOGDescriptor self, @@ -6039,11 +6837,11 @@ class CvNative { VecDouble, ffi.Int, ffi.Double, - CvCallback_1)>>('HOGDescriptor_groupRectangles_Async'); + CvCallback_0)>>('HOGDescriptor_groupRectangles_Async'); late final _HOGDescriptor_groupRectangles_Async = _HOGDescriptor_groupRectangles_AsyncPtr.asFunction< ffi.Pointer Function( - HOGDescriptor, VecRect, VecDouble, int, double, CvCallback_1)>(); + HOGDescriptor, VecRect, VecDouble, int, double, CvCallback_0)>(); ffi.Pointer HOG_GetDefaultPeopleDetector( ffi.Pointer rval, @@ -6053,11 +6851,12 @@ class CvNative { ); } - late final _HOG_GetDefaultPeopleDetectorPtr = - _lookup Function(ffi.Pointer)>>( - 'HOG_GetDefaultPeopleDetector'); - late final _HOG_GetDefaultPeopleDetector = - _HOG_GetDefaultPeopleDetectorPtr.asFunction Function(ffi.Pointer)>(); + late final _HOG_GetDefaultPeopleDetectorPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('HOG_GetDefaultPeopleDetector'); + late final _HOG_GetDefaultPeopleDetector = _HOG_GetDefaultPeopleDetectorPtr + .asFunction Function(ffi.Pointer)>(); ffi.Pointer HOG_GetDefaultPeopleDetector_Async( CvCallback_1 callback, @@ -6071,7 +6870,8 @@ class CvNative { _lookup Function(CvCallback_1)>>( 'HOG_GetDefaultPeopleDetector_Async'); late final _HOG_GetDefaultPeopleDetector_Async = - _HOG_GetDefaultPeopleDetector_AsyncPtr.asFunction Function(CvCallback_1)>(); + _HOG_GetDefaultPeopleDetector_AsyncPtr.asFunction< + ffi.Pointer Function(CvCallback_1)>(); ffi.Pointer HoughCircles( Mat src, @@ -6089,11 +6889,12 @@ class CvNative { ); } - late final _HoughCirclesPtr = - _lookup Function(Mat, Mat, ffi.Int, ffi.Double, ffi.Double)>>( - 'HoughCircles'); - late final _HoughCircles = - _HoughCirclesPtr.asFunction Function(Mat, Mat, int, double, double)>(); + late final _HoughCirclesPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Double, ffi.Double)>>('HoughCircles'); + late final _HoughCircles = _HoughCirclesPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, double, double)>(); ffi.Pointer HoughCirclesWithParams( Mat src, @@ -6121,10 +6922,19 @@ class CvNative { late final _HoughCirclesWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Double, ffi.Double, ffi.Double, ffi.Double, - ffi.Int, ffi.Int)>>('HoughCirclesWithParams'); + ffi.Pointer Function( + Mat, + Mat, + ffi.Int, + ffi.Double, + ffi.Double, + ffi.Double, + ffi.Double, + ffi.Int, + ffi.Int)>>('HoughCirclesWithParams'); late final _HoughCirclesWithParams = _HoughCirclesWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, double, double, double, double, int, int)>(); + ffi.Pointer Function( + Mat, Mat, int, double, double, double, double, int, int)>(); ffi.Pointer HoughLines( Mat src, @@ -6152,10 +6962,19 @@ class CvNative { late final _HoughLinesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Double, ffi.Double, ffi.Int, ffi.Double, ffi.Double, - ffi.Double, ffi.Double)>>('HoughLines'); + ffi.Pointer Function( + Mat, + Mat, + ffi.Double, + ffi.Double, + ffi.Int, + ffi.Double, + ffi.Double, + ffi.Double, + ffi.Double)>>('HoughLines'); late final _HoughLines = _HoughLinesPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, double, int, double, double, double, double)>(); + ffi.Pointer Function( + Mat, Mat, double, double, int, double, double, double, double)>(); ffi.Pointer HoughLinesP( Mat src, @@ -6173,11 +6992,12 @@ class CvNative { ); } - late final _HoughLinesPPtr = - _lookup Function(Mat, Mat, ffi.Double, ffi.Double, ffi.Int)>>( - 'HoughLinesP'); - late final _HoughLinesP = - _HoughLinesPPtr.asFunction Function(Mat, Mat, double, double, int)>(); + late final _HoughLinesPPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Double, ffi.Double, ffi.Int)>>('HoughLinesP'); + late final _HoughLinesP = _HoughLinesPPtr.asFunction< + ffi.Pointer Function(Mat, Mat, double, double, int)>(); ffi.Pointer HoughLinesPWithParams( Mat src, @@ -6201,10 +7021,11 @@ class CvNative { late final _HoughLinesPWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Double, ffi.Double, ffi.Int, ffi.Double, ffi.Double)>>('HoughLinesPWithParams'); + ffi.Pointer Function(Mat, Mat, ffi.Double, ffi.Double, + ffi.Int, ffi.Double, ffi.Double)>>('HoughLinesPWithParams'); late final _HoughLinesPWithParams = _HoughLinesPWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, double, int, double, double)>(); + ffi.Pointer Function( + Mat, Mat, double, double, int, double, double)>(); ffi.Pointer HoughLinesPointSet( Mat points, @@ -6234,10 +7055,20 @@ class CvNative { late final _HoughLinesPointSetPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Double, ffi.Double, ffi.Double, - ffi.Double, ffi.Double, ffi.Double)>>('HoughLinesPointSet'); + ffi.Pointer Function( + Mat, + Mat, + ffi.Int, + ffi.Int, + ffi.Double, + ffi.Double, + ffi.Double, + ffi.Double, + ffi.Double, + ffi.Double)>>('HoughLinesPointSet'); late final _HoughLinesPointSet = _HoughLinesPointSetPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, int, double, double, double, double, double, double)>(); + ffi.Pointer Function(Mat, Mat, int, int, double, double, double, + double, double, double)>(); ffi.Pointer IlluminationChange( Mat src, @@ -6255,11 +7086,12 @@ class CvNative { ); } - late final _IlluminationChangePtr = - _lookup Function(Mat, Mat, Mat, ffi.Float, ffi.Float)>>( - 'IlluminationChange'); - late final _IlluminationChange = - _IlluminationChangePtr.asFunction Function(Mat, Mat, Mat, double, double)>(); + late final _IlluminationChangePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Float, ffi.Float)>>('IlluminationChange'); + late final _IlluminationChange = _IlluminationChangePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, double, double)>(); ffi.Pointer Image_IMDecode( VecUChar buf, @@ -6273,11 +7105,12 @@ class CvNative { ); } - late final _Image_IMDecodePtr = - _lookup Function(VecUChar, ffi.Int, ffi.Pointer)>>( - 'Image_IMDecode'); - late final _Image_IMDecode = - _Image_IMDecodePtr.asFunction Function(VecUChar, int, ffi.Pointer)>(); + late final _Image_IMDecodePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecUChar, ffi.Int, ffi.Pointer)>>('Image_IMDecode'); + late final _Image_IMDecode = _Image_IMDecodePtr.asFunction< + ffi.Pointer Function(VecUChar, int, ffi.Pointer)>(); ffi.Pointer Image_IMDecode_Async( VecUChar buf, @@ -6291,11 +7124,12 @@ class CvNative { ); } - late final _Image_IMDecode_AsyncPtr = - _lookup Function(VecUChar, ffi.Int, CvCallback_1)>>( - 'Image_IMDecode_Async'); - late final _Image_IMDecode_Async = - _Image_IMDecode_AsyncPtr.asFunction Function(VecUChar, int, CvCallback_1)>(); + late final _Image_IMDecode_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecUChar, ffi.Int, CvCallback_1)>>('Image_IMDecode_Async'); + late final _Image_IMDecode_Async = _Image_IMDecode_AsyncPtr.asFunction< + ffi.Pointer Function(VecUChar, int, CvCallback_1)>(); ffi.Pointer Image_IMEncode( ffi.Pointer fileExt, @@ -6313,11 +7147,11 @@ class CvNative { late final _Image_IMEncodePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, Mat, ffi.Pointer, ffi.Pointer)>>('Image_IMEncode'); + ffi.Pointer Function(ffi.Pointer, Mat, + ffi.Pointer, ffi.Pointer)>>('Image_IMEncode'); late final _Image_IMEncode = _Image_IMEncodePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, Mat, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, Mat, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Image_IMEncode_Async( ffi.Pointer fileExt, @@ -6331,11 +7165,13 @@ class CvNative { ); } - late final _Image_IMEncode_AsyncPtr = - _lookup Function(ffi.Pointer, Mat, CvCallback_2)>>( - 'Image_IMEncode_Async'); + late final _Image_IMEncode_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, Mat, + CvCallback_2)>>('Image_IMEncode_Async'); late final _Image_IMEncode_Async = _Image_IMEncode_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, Mat, CvCallback_2)>(); + ffi.Pointer Function( + ffi.Pointer, Mat, CvCallback_2)>(); ffi.Pointer Image_IMEncode_WithParams( ffi.Pointer fileExt, @@ -6355,11 +7191,16 @@ class CvNative { late final _Image_IMEncode_WithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, Mat, VecInt, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + Mat, + VecInt, + ffi.Pointer, ffi.Pointer)>>('Image_IMEncode_WithParams'); - late final _Image_IMEncode_WithParams = _Image_IMEncode_WithParamsPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, Mat, VecInt, ffi.Pointer, ffi.Pointer)>(); + late final _Image_IMEncode_WithParams = + _Image_IMEncode_WithParamsPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, Mat, VecInt, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Image_IMEncode_WithParams_Async( ffi.Pointer fileExt, @@ -6376,11 +7217,13 @@ class CvNative { } late final _Image_IMEncode_WithParams_AsyncPtr = _lookup< - ffi - .NativeFunction Function(ffi.Pointer, Mat, VecInt, CvCallback_2)>>( - 'Image_IMEncode_WithParams_Async'); - late final _Image_IMEncode_WithParams_Async = _Image_IMEncode_WithParams_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, Mat, VecInt, CvCallback_2)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, Mat, VecInt, + CvCallback_2)>>('Image_IMEncode_WithParams_Async'); + late final _Image_IMEncode_WithParams_Async = + _Image_IMEncode_WithParams_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, Mat, VecInt, CvCallback_2)>(); ffi.Pointer Image_IMRead( ffi.Pointer filename, @@ -6396,9 +7239,11 @@ class CvNative { late final _Image_IMReadPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, ffi.Pointer)>>('Image_IMRead'); + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('Image_IMRead'); late final _Image_IMRead = _Image_IMReadPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer Image_IMRead_Async( ffi.Pointer filename, @@ -6413,10 +7258,12 @@ class CvNative { } late final _Image_IMRead_AsyncPtr = _lookup< - ffi.NativeFunction Function(ffi.Pointer, ffi.Int, CvCallback_1)>>( - 'Image_IMRead_Async'); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + CvCallback_1)>>('Image_IMRead_Async'); late final _Image_IMRead_Async = _Image_IMRead_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, CvCallback_1)>(); + ffi.Pointer Function( + ffi.Pointer, int, CvCallback_1)>(); ffi.Pointer Image_IMWrite( ffi.Pointer filename, @@ -6431,11 +7278,12 @@ class CvNative { } late final _Image_IMWritePtr = _lookup< - ffi - .NativeFunction Function(ffi.Pointer, Mat, ffi.Pointer)>>( - 'Image_IMWrite'); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, Mat, + ffi.Pointer)>>('Image_IMWrite'); late final _Image_IMWrite = _Image_IMWritePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, Mat, ffi.Pointer)>(); ffi.Pointer Image_IMWrite_Async( ffi.Pointer filename, @@ -6449,11 +7297,13 @@ class CvNative { ); } - late final _Image_IMWrite_AsyncPtr = - _lookup Function(ffi.Pointer, Mat, CvCallback_1)>>( - 'Image_IMWrite_Async'); + late final _Image_IMWrite_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, Mat, + CvCallback_1)>>('Image_IMWrite_Async'); late final _Image_IMWrite_Async = _Image_IMWrite_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, Mat, CvCallback_1)>(); + ffi.Pointer Function( + ffi.Pointer, Mat, CvCallback_1)>(); ffi.Pointer Image_IMWrite_WithParams( ffi.Pointer filename, @@ -6471,10 +7321,12 @@ class CvNative { late final _Image_IMWrite_WithParamsPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, Mat, VecInt, + ffi.Pointer)>>('Image_IMWrite_WithParams'); + late final _Image_IMWrite_WithParams = + _Image_IMWrite_WithParamsPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, Mat, VecInt, ffi.Pointer)>>('Image_IMWrite_WithParams'); - late final _Image_IMWrite_WithParams = _Image_IMWrite_WithParamsPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, Mat, VecInt, ffi.Pointer)>(); + ffi.Pointer, Mat, VecInt, ffi.Pointer)>(); ffi.Pointer Image_IMWrite_WithParams_Async( ffi.Pointer filename, @@ -6491,11 +7343,13 @@ class CvNative { } late final _Image_IMWrite_WithParams_AsyncPtr = _lookup< - ffi - .NativeFunction Function(ffi.Pointer, Mat, VecInt, CvCallback_1)>>( - 'Image_IMWrite_WithParams_Async'); - late final _Image_IMWrite_WithParams_Async = _Image_IMWrite_WithParams_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, Mat, VecInt, CvCallback_1)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, Mat, VecInt, + CvCallback_1)>>('Image_IMWrite_WithParams_Async'); + late final _Image_IMWrite_WithParams_Async = + _Image_IMWrite_WithParams_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, Mat, VecInt, CvCallback_1)>(); ffi.Pointer InitUndistortRectifyMap( Mat cameraMatrix, @@ -6520,10 +7374,12 @@ class CvNative { } late final _InitUndistortRectifyMapPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat, Mat, Size, ffi.Int, Mat, Mat)>>( - 'InitUndistortRectifyMap'); + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, Size, ffi.Int, Mat, + Mat)>>('InitUndistortRectifyMap'); late final _InitUndistortRectifyMap = _InitUndistortRectifyMapPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, Size, int, Mat, Mat)>(); + ffi.Pointer Function( + Mat, Mat, Mat, Mat, Size, int, Mat, Mat)>(); ffi.Pointer Integral( Mat src, @@ -6543,11 +7399,12 @@ class CvNative { ); } - late final _IntegralPtr = - _lookup Function(Mat, Mat, Mat, Mat, ffi.Int, ffi.Int)>>( - 'Integral'); - late final _Integral = - _IntegralPtr.asFunction Function(Mat, Mat, Mat, Mat, int, int)>(); + late final _IntegralPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, ffi.Int, ffi.Int)>>('Integral'); + late final _Integral = _IntegralPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, int, int)>(); ffi.Pointer InvertAffineTransform( Mat src, @@ -6560,9 +7417,10 @@ class CvNative { } late final _InvertAffineTransformPtr = - _lookup Function(Mat, Mat)>>('InvertAffineTransform'); - late final _InvertAffineTransform = - _InvertAffineTransformPtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'InvertAffineTransform'); + late final _InvertAffineTransform = _InvertAffineTransformPtr.asFunction< + ffi.Pointer Function(Mat, Mat)>(); void KAZE_Close( KAZEPtr a, @@ -6572,7 +7430,8 @@ class CvNative { ); } - late final _KAZE_ClosePtr = _lookup>('KAZE_Close'); + late final _KAZE_ClosePtr = + _lookup>('KAZE_Close'); late final _KAZE_Close = _KAZE_ClosePtr.asFunction(); ffi.Pointer KAZE_Create( @@ -6583,9 +7442,11 @@ class CvNative { ); } - late final _KAZE_CreatePtr = - _lookup Function(ffi.Pointer)>>('KAZE_Create'); - late final _KAZE_Create = _KAZE_CreatePtr.asFunction Function(ffi.Pointer)>(); + late final _KAZE_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('KAZE_Create'); + late final _KAZE_Create = _KAZE_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer KAZE_Detect( KAZE a, @@ -6599,11 +7460,12 @@ class CvNative { ); } - late final _KAZE_DetectPtr = - _lookup Function(KAZE, Mat, ffi.Pointer)>>( - 'KAZE_Detect'); - late final _KAZE_Detect = - _KAZE_DetectPtr.asFunction Function(KAZE, Mat, ffi.Pointer)>(); + late final _KAZE_DetectPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KAZE, Mat, ffi.Pointer)>>('KAZE_Detect'); + late final _KAZE_Detect = _KAZE_DetectPtr.asFunction< + ffi.Pointer Function(KAZE, Mat, ffi.Pointer)>(); ffi.Pointer KAZE_DetectAndCompute( KAZE a, @@ -6622,10 +7484,12 @@ class CvNative { } late final _KAZE_DetectAndComputePtr = _lookup< - ffi.NativeFunction Function(KAZE, Mat, Mat, Mat, ffi.Pointer)>>( - 'KAZE_DetectAndCompute'); + ffi.NativeFunction< + ffi.Pointer Function(KAZE, Mat, Mat, Mat, + ffi.Pointer)>>('KAZE_DetectAndCompute'); late final _KAZE_DetectAndCompute = _KAZE_DetectAndComputePtr.asFunction< - ffi.Pointer Function(KAZE, Mat, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + KAZE, Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer KMeans( Mat data, @@ -6651,10 +7515,11 @@ class CvNative { late final _KMeansPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, Mat, TermCriteria, ffi.Int, ffi.Int, Mat, ffi.Pointer)>>('KMeans'); + ffi.Pointer Function(Mat, ffi.Int, Mat, TermCriteria, + ffi.Int, ffi.Int, Mat, ffi.Pointer)>>('KMeans'); late final _KMeans = _KMeansPtr.asFunction< - ffi.Pointer Function(Mat, int, Mat, TermCriteria, int, int, Mat, ffi.Pointer)>(); + ffi.Pointer Function(Mat, int, Mat, TermCriteria, int, int, Mat, + ffi.Pointer)>(); ffi.Pointer KMeansPoints( VecPoint2f pts, @@ -6680,11 +7545,11 @@ class CvNative { late final _KMeansPointsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecPoint2f, ffi.Int, Mat, TermCriteria, ffi.Int, ffi.Int, Mat, - ffi.Pointer)>>('KMeansPoints'); + ffi.Pointer Function(VecPoint2f, ffi.Int, Mat, TermCriteria, + ffi.Int, ffi.Int, Mat, ffi.Pointer)>>('KMeansPoints'); late final _KMeansPoints = _KMeansPointsPtr.asFunction< - ffi.Pointer Function( - VecPoint2f, int, Mat, TermCriteria, int, int, Mat, ffi.Pointer)>(); + ffi.Pointer Function(VecPoint2f, int, Mat, TermCriteria, int, + int, Mat, ffi.Pointer)>(); void KalmanFilter_Close( KalmanFilterPtr self, @@ -6695,8 +7560,10 @@ class CvNative { } late final _KalmanFilter_ClosePtr = - _lookup>('KalmanFilter_Close'); - late final _KalmanFilter_Close = _KalmanFilter_ClosePtr.asFunction(); + _lookup>( + 'KalmanFilter_Close'); + late final _KalmanFilter_Close = + _KalmanFilter_ClosePtr.asFunction(); ffi.Pointer KalmanFilter_Correct( KalmanFilter self, @@ -6710,9 +7577,10 @@ class CvNative { ); } - late final _KalmanFilter_CorrectPtr = - _lookup Function(KalmanFilter, Mat, ffi.Pointer)>>( - 'KalmanFilter_Correct'); + late final _KalmanFilter_CorrectPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KalmanFilter, Mat, ffi.Pointer)>>('KalmanFilter_Correct'); late final _KalmanFilter_Correct = _KalmanFilter_CorrectPtr.asFunction< ffi.Pointer Function(KalmanFilter, Mat, ffi.Pointer)>(); @@ -6726,11 +7594,13 @@ class CvNative { ); } - late final _KalmanFilter_GetControlMatrixPtr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetControlMatrix'); - late final _KalmanFilter_GetControlMatrix = _KalmanFilter_GetControlMatrixPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetControlMatrixPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(KalmanFilter, + ffi.Pointer)>>('KalmanFilter_GetControlMatrix'); + late final _KalmanFilter_GetControlMatrix = + _KalmanFilter_GetControlMatrixPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetErrorCovPost( KalmanFilter self, @@ -6742,11 +7612,13 @@ class CvNative { ); } - late final _KalmanFilter_GetErrorCovPostPtr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetErrorCovPost'); - late final _KalmanFilter_GetErrorCovPost = _KalmanFilter_GetErrorCovPostPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetErrorCovPostPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetErrorCovPost'); + late final _KalmanFilter_GetErrorCovPost = + _KalmanFilter_GetErrorCovPostPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetErrorCovPre( KalmanFilter self, @@ -6758,11 +7630,13 @@ class CvNative { ); } - late final _KalmanFilter_GetErrorCovPrePtr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetErrorCovPre'); - late final _KalmanFilter_GetErrorCovPre = _KalmanFilter_GetErrorCovPrePtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetErrorCovPrePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetErrorCovPre'); + late final _KalmanFilter_GetErrorCovPre = + _KalmanFilter_GetErrorCovPrePtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetGain( KalmanFilter self, @@ -6774,11 +7648,12 @@ class CvNative { ); } - late final _KalmanFilter_GetGainPtr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetGain'); - late final _KalmanFilter_GetGain = - _KalmanFilter_GetGainPtr.asFunction Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetGainPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetGain'); + late final _KalmanFilter_GetGain = _KalmanFilter_GetGainPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetMeasurementMatrix( KalmanFilter self, @@ -6790,11 +7665,13 @@ class CvNative { ); } - late final _KalmanFilter_GetMeasurementMatrixPtr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetMeasurementMatrix'); - late final _KalmanFilter_GetMeasurementMatrix = _KalmanFilter_GetMeasurementMatrixPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetMeasurementMatrixPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(KalmanFilter, + ffi.Pointer)>>('KalmanFilter_GetMeasurementMatrix'); + late final _KalmanFilter_GetMeasurementMatrix = + _KalmanFilter_GetMeasurementMatrixPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetMeasurementNoiseCov( KalmanFilter self, @@ -6806,11 +7683,13 @@ class CvNative { ); } - late final _KalmanFilter_GetMeasurementNoiseCovPtr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetMeasurementNoiseCov'); - late final _KalmanFilter_GetMeasurementNoiseCov = _KalmanFilter_GetMeasurementNoiseCovPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetMeasurementNoiseCovPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(KalmanFilter, + ffi.Pointer)>>('KalmanFilter_GetMeasurementNoiseCov'); + late final _KalmanFilter_GetMeasurementNoiseCov = + _KalmanFilter_GetMeasurementNoiseCovPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetProcessNoiseCov( KalmanFilter self, @@ -6822,11 +7701,13 @@ class CvNative { ); } - late final _KalmanFilter_GetProcessNoiseCovPtr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetProcessNoiseCov'); - late final _KalmanFilter_GetProcessNoiseCov = _KalmanFilter_GetProcessNoiseCovPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetProcessNoiseCovPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(KalmanFilter, + ffi.Pointer)>>('KalmanFilter_GetProcessNoiseCov'); + late final _KalmanFilter_GetProcessNoiseCov = + _KalmanFilter_GetProcessNoiseCovPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetStatePost( KalmanFilter self, @@ -6838,11 +7719,13 @@ class CvNative { ); } - late final _KalmanFilter_GetStatePostPtr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetStatePost'); - late final _KalmanFilter_GetStatePost = _KalmanFilter_GetStatePostPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetStatePostPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetStatePost'); + late final _KalmanFilter_GetStatePost = + _KalmanFilter_GetStatePostPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetStatePre( KalmanFilter self, @@ -6854,11 +7737,13 @@ class CvNative { ); } - late final _KalmanFilter_GetStatePrePtr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetStatePre'); - late final _KalmanFilter_GetStatePre = _KalmanFilter_GetStatePrePtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetStatePrePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetStatePre'); + late final _KalmanFilter_GetStatePre = + _KalmanFilter_GetStatePrePtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetTemp1( KalmanFilter self, @@ -6870,11 +7755,12 @@ class CvNative { ); } - late final _KalmanFilter_GetTemp1Ptr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetTemp1'); - late final _KalmanFilter_GetTemp1 = - _KalmanFilter_GetTemp1Ptr.asFunction Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetTemp1Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetTemp1'); + late final _KalmanFilter_GetTemp1 = _KalmanFilter_GetTemp1Ptr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetTemp2( KalmanFilter self, @@ -6886,11 +7772,12 @@ class CvNative { ); } - late final _KalmanFilter_GetTemp2Ptr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetTemp2'); - late final _KalmanFilter_GetTemp2 = - _KalmanFilter_GetTemp2Ptr.asFunction Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetTemp2Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetTemp2'); + late final _KalmanFilter_GetTemp2 = _KalmanFilter_GetTemp2Ptr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetTemp3( KalmanFilter self, @@ -6902,11 +7789,12 @@ class CvNative { ); } - late final _KalmanFilter_GetTemp3Ptr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetTemp3'); - late final _KalmanFilter_GetTemp3 = - _KalmanFilter_GetTemp3Ptr.asFunction Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetTemp3Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetTemp3'); + late final _KalmanFilter_GetTemp3 = _KalmanFilter_GetTemp3Ptr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetTemp4( KalmanFilter self, @@ -6918,11 +7806,12 @@ class CvNative { ); } - late final _KalmanFilter_GetTemp4Ptr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetTemp4'); - late final _KalmanFilter_GetTemp4 = - _KalmanFilter_GetTemp4Ptr.asFunction Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetTemp4Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetTemp4'); + late final _KalmanFilter_GetTemp4 = _KalmanFilter_GetTemp4Ptr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetTemp5( KalmanFilter self, @@ -6934,11 +7823,12 @@ class CvNative { ); } - late final _KalmanFilter_GetTemp5Ptr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetTemp5'); - late final _KalmanFilter_GetTemp5 = - _KalmanFilter_GetTemp5Ptr.asFunction Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetTemp5Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetTemp5'); + late final _KalmanFilter_GetTemp5 = _KalmanFilter_GetTemp5Ptr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetTransitionMatrix( KalmanFilter self, @@ -6950,11 +7840,13 @@ class CvNative { ); } - late final _KalmanFilter_GetTransitionMatrixPtr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetTransitionMatrix'); - late final _KalmanFilter_GetTransitionMatrix = _KalmanFilter_GetTransitionMatrixPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetTransitionMatrixPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(KalmanFilter, + ffi.Pointer)>>('KalmanFilter_GetTransitionMatrix'); + late final _KalmanFilter_GetTransitionMatrix = + _KalmanFilter_GetTransitionMatrixPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_Init( KalmanFilter self, @@ -6968,11 +7860,12 @@ class CvNative { ); } - late final _KalmanFilter_InitPtr = - _lookup Function(KalmanFilter, ffi.Int, ffi.Int)>>( - 'KalmanFilter_Init'); - late final _KalmanFilter_Init = - _KalmanFilter_InitPtr.asFunction Function(KalmanFilter, int, int)>(); + late final _KalmanFilter_InitPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KalmanFilter, ffi.Int, ffi.Int)>>('KalmanFilter_Init'); + late final _KalmanFilter_Init = _KalmanFilter_InitPtr.asFunction< + ffi.Pointer Function(KalmanFilter, int, int)>(); ffi.Pointer KalmanFilter_InitWithParams( KalmanFilter self, @@ -6991,11 +7884,12 @@ class CvNative { } late final _KalmanFilter_InitWithParamsPtr = _lookup< - ffi - .NativeFunction Function(KalmanFilter, ffi.Int, ffi.Int, ffi.Int, ffi.Int)>>( - 'KalmanFilter_InitWithParams'); - late final _KalmanFilter_InitWithParams = _KalmanFilter_InitWithParamsPtr.asFunction< - ffi.Pointer Function(KalmanFilter, int, int, int, int)>(); + ffi.NativeFunction< + ffi.Pointer Function(KalmanFilter, ffi.Int, ffi.Int, + ffi.Int, ffi.Int)>>('KalmanFilter_InitWithParams'); + late final _KalmanFilter_InitWithParams = + _KalmanFilter_InitWithParamsPtr.asFunction< + ffi.Pointer Function(KalmanFilter, int, int, int, int)>(); ffi.Pointer KalmanFilter_New( int dynamParams, @@ -7015,10 +7909,11 @@ class CvNative { late final _KalmanFilter_NewPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('KalmanFilter_New'); + ffi.Pointer Function(ffi.Int, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer)>>('KalmanFilter_New'); late final _KalmanFilter_New = _KalmanFilter_NewPtr.asFunction< - ffi.Pointer Function(int, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + int, int, int, int, ffi.Pointer)>(); ffi.Pointer KalmanFilter_Predict( KalmanFilter self, @@ -7030,11 +7925,12 @@ class CvNative { ); } - late final _KalmanFilter_PredictPtr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_Predict'); - late final _KalmanFilter_Predict = - _KalmanFilter_PredictPtr.asFunction Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_PredictPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KalmanFilter, ffi.Pointer)>>('KalmanFilter_Predict'); + late final _KalmanFilter_Predict = _KalmanFilter_PredictPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_PredictWithParams( KalmanFilter self, @@ -7048,11 +7944,14 @@ class CvNative { ); } - late final _KalmanFilter_PredictWithParamsPtr = - _lookup Function(KalmanFilter, Mat, ffi.Pointer)>>( - 'KalmanFilter_PredictWithParams'); - late final _KalmanFilter_PredictWithParams = _KalmanFilter_PredictWithParamsPtr.asFunction< - ffi.Pointer Function(KalmanFilter, Mat, ffi.Pointer)>(); + late final _KalmanFilter_PredictWithParamsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(KalmanFilter, Mat, + ffi.Pointer)>>('KalmanFilter_PredictWithParams'); + late final _KalmanFilter_PredictWithParams = + _KalmanFilter_PredictWithParamsPtr.asFunction< + ffi.Pointer Function( + KalmanFilter, Mat, ffi.Pointer)>(); ffi.Pointer KalmanFilter_SetControlMatrix( KalmanFilter self, @@ -7064,11 +7963,12 @@ class CvNative { ); } - late final _KalmanFilter_SetControlMatrixPtr = - _lookup Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetControlMatrix'); - late final _KalmanFilter_SetControlMatrix = - _KalmanFilter_SetControlMatrixPtr.asFunction Function(KalmanFilter, Mat)>(); + late final _KalmanFilter_SetControlMatrixPtr = _lookup< + ffi + .NativeFunction Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetControlMatrix'); + late final _KalmanFilter_SetControlMatrix = _KalmanFilter_SetControlMatrixPtr + .asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetErrorCovPost( KalmanFilter self, @@ -7080,11 +7980,12 @@ class CvNative { ); } - late final _KalmanFilter_SetErrorCovPostPtr = - _lookup Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetErrorCovPost'); - late final _KalmanFilter_SetErrorCovPost = - _KalmanFilter_SetErrorCovPostPtr.asFunction Function(KalmanFilter, Mat)>(); + late final _KalmanFilter_SetErrorCovPostPtr = _lookup< + ffi + .NativeFunction Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetErrorCovPost'); + late final _KalmanFilter_SetErrorCovPost = _KalmanFilter_SetErrorCovPostPtr + .asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetErrorCovPre( KalmanFilter self, @@ -7096,11 +7997,12 @@ class CvNative { ); } - late final _KalmanFilter_SetErrorCovPrePtr = - _lookup Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetErrorCovPre'); - late final _KalmanFilter_SetErrorCovPre = - _KalmanFilter_SetErrorCovPrePtr.asFunction Function(KalmanFilter, Mat)>(); + late final _KalmanFilter_SetErrorCovPrePtr = _lookup< + ffi + .NativeFunction Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetErrorCovPre'); + late final _KalmanFilter_SetErrorCovPre = _KalmanFilter_SetErrorCovPrePtr + .asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetGain( KalmanFilter self, @@ -7112,10 +8014,12 @@ class CvNative { ); } - late final _KalmanFilter_SetGainPtr = - _lookup Function(KalmanFilter, Mat)>>('KalmanFilter_SetGain'); - late final _KalmanFilter_SetGain = - _KalmanFilter_SetGainPtr.asFunction Function(KalmanFilter, Mat)>(); + late final _KalmanFilter_SetGainPtr = _lookup< + ffi + .NativeFunction Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetGain'); + late final _KalmanFilter_SetGain = _KalmanFilter_SetGainPtr.asFunction< + ffi.Pointer Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetMeasurementMatrix( KalmanFilter self, @@ -7127,11 +8031,13 @@ class CvNative { ); } - late final _KalmanFilter_SetMeasurementMatrixPtr = - _lookup Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetMeasurementMatrix'); + late final _KalmanFilter_SetMeasurementMatrixPtr = _lookup< + ffi + .NativeFunction Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetMeasurementMatrix'); late final _KalmanFilter_SetMeasurementMatrix = - _KalmanFilter_SetMeasurementMatrixPtr.asFunction Function(KalmanFilter, Mat)>(); + _KalmanFilter_SetMeasurementMatrixPtr.asFunction< + ffi.Pointer Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetMeasurementNoiseCov( KalmanFilter self, @@ -7143,11 +8049,13 @@ class CvNative { ); } - late final _KalmanFilter_SetMeasurementNoiseCovPtr = - _lookup Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetMeasurementNoiseCov'); + late final _KalmanFilter_SetMeasurementNoiseCovPtr = _lookup< + ffi + .NativeFunction Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetMeasurementNoiseCov'); late final _KalmanFilter_SetMeasurementNoiseCov = - _KalmanFilter_SetMeasurementNoiseCovPtr.asFunction Function(KalmanFilter, Mat)>(); + _KalmanFilter_SetMeasurementNoiseCovPtr.asFunction< + ffi.Pointer Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetProcessNoiseCov( KalmanFilter self, @@ -7159,11 +8067,13 @@ class CvNative { ); } - late final _KalmanFilter_SetProcessNoiseCovPtr = - _lookup Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetProcessNoiseCov'); + late final _KalmanFilter_SetProcessNoiseCovPtr = _lookup< + ffi + .NativeFunction Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetProcessNoiseCov'); late final _KalmanFilter_SetProcessNoiseCov = - _KalmanFilter_SetProcessNoiseCovPtr.asFunction Function(KalmanFilter, Mat)>(); + _KalmanFilter_SetProcessNoiseCovPtr.asFunction< + ffi.Pointer Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetStatePost( KalmanFilter self, @@ -7175,11 +8085,12 @@ class CvNative { ); } - late final _KalmanFilter_SetStatePostPtr = - _lookup Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetStatePost'); - late final _KalmanFilter_SetStatePost = - _KalmanFilter_SetStatePostPtr.asFunction Function(KalmanFilter, Mat)>(); + late final _KalmanFilter_SetStatePostPtr = _lookup< + ffi + .NativeFunction Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetStatePost'); + late final _KalmanFilter_SetStatePost = _KalmanFilter_SetStatePostPtr + .asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetStatePre( KalmanFilter self, @@ -7191,11 +8102,12 @@ class CvNative { ); } - late final _KalmanFilter_SetStatePrePtr = - _lookup Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetStatePre'); - late final _KalmanFilter_SetStatePre = - _KalmanFilter_SetStatePrePtr.asFunction Function(KalmanFilter, Mat)>(); + late final _KalmanFilter_SetStatePrePtr = _lookup< + ffi + .NativeFunction Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetStatePre'); + late final _KalmanFilter_SetStatePre = _KalmanFilter_SetStatePrePtr + .asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetTransitionMatrix( KalmanFilter self, @@ -7207,11 +8119,13 @@ class CvNative { ); } - late final _KalmanFilter_SetTransitionMatrixPtr = - _lookup Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetTransitionMatrix'); + late final _KalmanFilter_SetTransitionMatrixPtr = _lookup< + ffi + .NativeFunction Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetTransitionMatrix'); late final _KalmanFilter_SetTransitionMatrix = - _KalmanFilter_SetTransitionMatrixPtr.asFunction Function(KalmanFilter, Mat)>(); + _KalmanFilter_SetTransitionMatrixPtr.asFunction< + ffi.Pointer Function(KalmanFilter, Mat)>(); ffi.Pointer LUT( Mat src, @@ -7225,8 +8139,10 @@ class CvNative { ); } - late final _LUTPtr = _lookup Function(Mat, Mat, Mat)>>('LUT'); - late final _LUT = _LUTPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _LUTPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>('LUT'); + late final _LUT = + _LUTPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Laplacian( Mat src, @@ -7250,10 +8166,11 @@ class CvNative { late final _LaplacianPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Int, ffi.Double, ffi.Double, ffi.Int)>>('Laplacian'); - late final _Laplacian = - _LaplacianPtr.asFunction Function(Mat, Mat, int, int, double, double, int)>(); + ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Double, + ffi.Double, ffi.Int)>>('Laplacian'); + late final _Laplacian = _LaplacianPtr.asFunction< + ffi.Pointer Function( + Mat, Mat, int, int, double, double, int)>(); void Layer_Close( LayerPtr1 layer, @@ -7264,9 +8181,9 @@ class CvNative { } late final _Layer_ClosePtr = - _lookup>('Layer_Close'); + _lookup>('Layer_Close'); late final _Layer_Close = - _Layer_ClosePtr.asFunction(); + _Layer_ClosePtr.asFunction(); void Layer_Close_Async( LayerPtr layer, @@ -7279,10 +8196,10 @@ class CvNative { } late final _Layer_Close_AsyncPtr = - _lookup>( + _lookup>( 'Layer_Close_Async'); - late final _Layer_Close_Async = _Layer_Close_AsyncPtr.asFunction< - void Function(LayerPtr1, CvCallback_0)>(); + late final _Layer_Close_Async = + _Layer_Close_AsyncPtr.asFunction(); ffi.Pointer Layer_GetName( Layer layer, @@ -7294,11 +8211,13 @@ class CvNative { ); } - late final _Layer_GetNamePtr = - _lookup Function(Layer, ffi.Pointer>)>>( - 'Layer_GetName'); + late final _Layer_GetNamePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Layer, ffi.Pointer>)>>('Layer_GetName'); late final _Layer_GetName = _Layer_GetNamePtr.asFunction< - ffi.Pointer Function(Layer, ffi.Pointer>)>(); + ffi.Pointer Function( + Layer, ffi.Pointer>)>(); ffi.Pointer Layer_GetName_Async( Layer layer, @@ -7310,10 +8229,12 @@ class CvNative { ); } - late final _Layer_GetName_AsyncPtr = - _lookup Function(Layer, CvCallback_1)>>('Layer_GetName_Async'); - late final _Layer_GetName_Async = - _Layer_GetName_AsyncPtr.asFunction Function(Layer, CvCallback_1)>(); + late final _Layer_GetName_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Layer, CvCallback_1)>>( + 'Layer_GetName_Async'); + late final _Layer_GetName_Async = _Layer_GetName_AsyncPtr.asFunction< + ffi.Pointer Function(Layer, CvCallback_1)>(); ffi.Pointer Layer_GetType( Layer layer, @@ -7325,11 +8246,13 @@ class CvNative { ); } - late final _Layer_GetTypePtr = - _lookup Function(Layer, ffi.Pointer>)>>( - 'Layer_GetType'); + late final _Layer_GetTypePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Layer, ffi.Pointer>)>>('Layer_GetType'); late final _Layer_GetType = _Layer_GetTypePtr.asFunction< - ffi.Pointer Function(Layer, ffi.Pointer>)>(); + ffi.Pointer Function( + Layer, ffi.Pointer>)>(); ffi.Pointer Layer_GetType_Async( Layer layer, @@ -7341,10 +8264,12 @@ class CvNative { ); } - late final _Layer_GetType_AsyncPtr = - _lookup Function(Layer, CvCallback_1)>>('Layer_GetType_Async'); - late final _Layer_GetType_Async = - _Layer_GetType_AsyncPtr.asFunction Function(Layer, CvCallback_1)>(); + late final _Layer_GetType_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Layer, CvCallback_1)>>( + 'Layer_GetType_Async'); + late final _Layer_GetType_Async = _Layer_GetType_AsyncPtr.asFunction< + ffi.Pointer Function(Layer, CvCallback_1)>(); ffi.Pointer Layer_InputNameToIndex( Layer layer, @@ -7360,10 +8285,11 @@ class CvNative { late final _Layer_InputNameToIndexPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Layer, ffi.Pointer, ffi.Pointer)>>('Layer_InputNameToIndex'); + ffi.Pointer Function(Layer, ffi.Pointer, + ffi.Pointer)>>('Layer_InputNameToIndex'); late final _Layer_InputNameToIndex = _Layer_InputNameToIndexPtr.asFunction< - ffi.Pointer Function(Layer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Layer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Layer_InputNameToIndex_Async( Layer layer, @@ -7377,11 +8303,14 @@ class CvNative { ); } - late final _Layer_InputNameToIndex_AsyncPtr = - _lookup Function(Layer, ffi.Pointer, CvCallback_1)>>( - 'Layer_InputNameToIndex_Async'); - late final _Layer_InputNameToIndex_Async = _Layer_InputNameToIndex_AsyncPtr.asFunction< - ffi.Pointer Function(Layer, ffi.Pointer, CvCallback_1)>(); + late final _Layer_InputNameToIndex_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Layer, ffi.Pointer, + CvCallback_1)>>('Layer_InputNameToIndex_Async'); + late final _Layer_InputNameToIndex_Async = + _Layer_InputNameToIndex_AsyncPtr.asFunction< + ffi.Pointer Function( + Layer, ffi.Pointer, CvCallback_1)>(); ffi.Pointer Layer_OutputNameToIndex( Layer layer, @@ -7397,10 +8326,11 @@ class CvNative { late final _Layer_OutputNameToIndexPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Layer, ffi.Pointer, ffi.Pointer)>>('Layer_OutputNameToIndex'); + ffi.Pointer Function(Layer, ffi.Pointer, + ffi.Pointer)>>('Layer_OutputNameToIndex'); late final _Layer_OutputNameToIndex = _Layer_OutputNameToIndexPtr.asFunction< - ffi.Pointer Function(Layer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Layer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Layer_OutputNameToIndex_Async( Layer layer, @@ -7414,11 +8344,14 @@ class CvNative { ); } - late final _Layer_OutputNameToIndex_AsyncPtr = - _lookup Function(Layer, ffi.Pointer, CvCallback_1)>>( - 'Layer_OutputNameToIndex_Async'); - late final _Layer_OutputNameToIndex_Async = _Layer_OutputNameToIndex_AsyncPtr.asFunction< - ffi.Pointer Function(Layer, ffi.Pointer, CvCallback_1)>(); + late final _Layer_OutputNameToIndex_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Layer, ffi.Pointer, + CvCallback_1)>>('Layer_OutputNameToIndex_Async'); + late final _Layer_OutputNameToIndex_Async = + _Layer_OutputNameToIndex_AsyncPtr.asFunction< + ffi.Pointer Function( + Layer, ffi.Pointer, CvCallback_1)>(); ffi.Pointer Line( Mat img, @@ -7442,9 +8375,11 @@ class CvNative { late final _LinePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Point, Point, Scalar, ffi.Int, ffi.Int, ffi.Int)>>('Line'); - late final _Line = - _LinePtr.asFunction Function(Mat, Point, Point, Scalar, int, int, int)>(); + ffi.Pointer Function( + Mat, Point, Point, Scalar, ffi.Int, ffi.Int, ffi.Int)>>('Line'); + late final _Line = _LinePtr.asFunction< + ffi.Pointer Function( + Mat, Point, Point, Scalar, int, int, int)>(); ffi.Pointer LinearPolar( Mat src, @@ -7462,11 +8397,12 @@ class CvNative { ); } - late final _LinearPolarPtr = - _lookup Function(Mat, Mat, Point2f, ffi.Double, ffi.Int)>>( - 'LinearPolar'); - late final _LinearPolar = - _LinearPolarPtr.asFunction Function(Mat, Mat, Point2f, double, int)>(); + late final _LinearPolarPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Point2f, ffi.Double, ffi.Int)>>('LinearPolar'); + late final _LinearPolar = _LinearPolarPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Point2f, double, int)>(); ffi.Pointer LogPolar( Mat src, @@ -7484,11 +8420,12 @@ class CvNative { ); } - late final _LogPolarPtr = - _lookup Function(Mat, Mat, Point2f, ffi.Double, ffi.Int)>>( - 'LogPolar'); - late final _LogPolar = - _LogPolarPtr.asFunction Function(Mat, Mat, Point2f, double, int)>(); + late final _LogPolarPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Point2f, ffi.Double, ffi.Int)>>('LogPolar'); + late final _LogPolar = _LogPolarPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Point2f, double, int)>(); void MSER_Close( MSERPtr a, @@ -7498,7 +8435,8 @@ class CvNative { ); } - late final _MSER_ClosePtr = _lookup>('MSER_Close'); + late final _MSER_ClosePtr = + _lookup>('MSER_Close'); late final _MSER_Close = _MSER_ClosePtr.asFunction(); ffi.Pointer MSER_Create( @@ -7509,9 +8447,11 @@ class CvNative { ); } - late final _MSER_CreatePtr = - _lookup Function(ffi.Pointer)>>('MSER_Create'); - late final _MSER_Create = _MSER_CreatePtr.asFunction Function(ffi.Pointer)>(); + late final _MSER_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('MSER_Create'); + late final _MSER_Create = _MSER_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer MSER_Detect( MSER a, @@ -7525,11 +8465,12 @@ class CvNative { ); } - late final _MSER_DetectPtr = - _lookup Function(MSER, Mat, ffi.Pointer)>>( - 'MSER_Detect'); - late final _MSER_Detect = - _MSER_DetectPtr.asFunction Function(MSER, Mat, ffi.Pointer)>(); + late final _MSER_DetectPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + MSER, Mat, ffi.Pointer)>>('MSER_Detect'); + late final _MSER_Detect = _MSER_DetectPtr.asFunction< + ffi.Pointer Function(MSER, Mat, ffi.Pointer)>(); ffi.Pointer Mat_AbsDiff( Mat src1, @@ -7543,9 +8484,11 @@ class CvNative { ); } - late final _Mat_AbsDiffPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_AbsDiff'); - late final _Mat_AbsDiff = _Mat_AbsDiffPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_AbsDiffPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_AbsDiff'); + late final _Mat_AbsDiff = _Mat_AbsDiffPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_Accumulate( Mat src, @@ -7558,8 +8501,10 @@ class CvNative { } late final _Mat_AccumulatePtr = - _lookup Function(Mat, Mat)>>('Mat_Accumulate'); - late final _Mat_Accumulate = _Mat_AccumulatePtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'Mat_Accumulate'); + late final _Mat_Accumulate = + _Mat_AccumulatePtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_AccumulateProduct( Mat src1, @@ -7573,10 +8518,11 @@ class CvNative { ); } - late final _Mat_AccumulateProductPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_AccumulateProduct'); - late final _Mat_AccumulateProduct = - _Mat_AccumulateProductPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_AccumulateProductPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_AccumulateProduct'); + late final _Mat_AccumulateProduct = _Mat_AccumulateProductPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_AccumulateProductWithMask( Mat src1, @@ -7592,11 +8538,12 @@ class CvNative { ); } - late final _Mat_AccumulateProductWithMaskPtr = - _lookup Function(Mat, Mat, Mat, Mat)>>( - 'Mat_AccumulateProductWithMask'); - late final _Mat_AccumulateProductWithMask = - _Mat_AccumulateProductWithMaskPtr.asFunction Function(Mat, Mat, Mat, Mat)>(); + late final _Mat_AccumulateProductWithMaskPtr = _lookup< + ffi + .NativeFunction Function(Mat, Mat, Mat, Mat)>>( + 'Mat_AccumulateProductWithMask'); + late final _Mat_AccumulateProductWithMask = _Mat_AccumulateProductWithMaskPtr + .asFunction Function(Mat, Mat, Mat, Mat)>(); ffi.Pointer Mat_AccumulateSquare( Mat src, @@ -7609,9 +8556,10 @@ class CvNative { } late final _Mat_AccumulateSquarePtr = - _lookup Function(Mat, Mat)>>('Mat_AccumulateSquare'); - late final _Mat_AccumulateSquare = - _Mat_AccumulateSquarePtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'Mat_AccumulateSquare'); + late final _Mat_AccumulateSquare = _Mat_AccumulateSquarePtr.asFunction< + ffi.Pointer Function(Mat, Mat)>(); ffi.Pointer Mat_AccumulateSquareWithMask( Mat src, @@ -7625,11 +8573,11 @@ class CvNative { ); } - late final _Mat_AccumulateSquareWithMaskPtr = - _lookup Function(Mat, Mat, Mat)>>( - 'Mat_AccumulateSquareWithMask'); - late final _Mat_AccumulateSquareWithMask = - _Mat_AccumulateSquareWithMaskPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_AccumulateSquareWithMaskPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_AccumulateSquareWithMask'); + late final _Mat_AccumulateSquareWithMask = _Mat_AccumulateSquareWithMaskPtr + .asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_AccumulateWithMask( Mat src, @@ -7643,10 +8591,11 @@ class CvNative { ); } - late final _Mat_AccumulateWithMaskPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_AccumulateWithMask'); - late final _Mat_AccumulateWithMask = - _Mat_AccumulateWithMaskPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_AccumulateWithMaskPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_AccumulateWithMask'); + late final _Mat_AccumulateWithMask = _Mat_AccumulateWithMaskPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_AccumulatedWeighted( Mat src, @@ -7660,11 +8609,12 @@ class CvNative { ); } - late final _Mat_AccumulatedWeightedPtr = - _lookup Function(Mat, Mat, ffi.Double)>>( - 'Mat_AccumulatedWeighted'); - late final _Mat_AccumulatedWeighted = - _Mat_AccumulatedWeightedPtr.asFunction Function(Mat, Mat, double)>(); + late final _Mat_AccumulatedWeightedPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Double)>>('Mat_AccumulatedWeighted'); + late final _Mat_AccumulatedWeighted = _Mat_AccumulatedWeightedPtr.asFunction< + ffi.Pointer Function(Mat, Mat, double)>(); ffi.Pointer Mat_AccumulatedWeightedWithMask( Mat src, @@ -7680,11 +8630,13 @@ class CvNative { ); } - late final _Mat_AccumulatedWeightedWithMaskPtr = - _lookup Function(Mat, Mat, ffi.Double, Mat)>>( - 'Mat_AccumulatedWeightedWithMask'); + late final _Mat_AccumulatedWeightedWithMaskPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Double, Mat)>>('Mat_AccumulatedWeightedWithMask'); late final _Mat_AccumulatedWeightedWithMask = - _Mat_AccumulatedWeightedWithMaskPtr.asFunction Function(Mat, Mat, double, Mat)>(); + _Mat_AccumulatedWeightedWithMaskPtr.asFunction< + ffi.Pointer Function(Mat, Mat, double, Mat)>(); ffi.Pointer Mat_Add( Mat src1, @@ -7698,9 +8650,11 @@ class CvNative { ); } - late final _Mat_AddPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_Add'); - late final _Mat_Add = _Mat_AddPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_AddPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_Add'); + late final _Mat_Add = + _Mat_AddPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_AddF64( Mat m, @@ -7712,9 +8666,11 @@ class CvNative { ); } - late final _Mat_AddF64Ptr = - _lookup Function(Mat, double_t)>>('Mat_AddF64'); - late final _Mat_AddF64 = _Mat_AddF64Ptr.asFunction Function(Mat, double)>(); + late final _Mat_AddF64Ptr = _lookup< + ffi.NativeFunction Function(Mat, double_t)>>( + 'Mat_AddF64'); + late final _Mat_AddF64 = + _Mat_AddF64Ptr.asFunction Function(Mat, double)>(); ffi.Pointer Mat_AddFloat( Mat m, @@ -7727,8 +8683,10 @@ class CvNative { } late final _Mat_AddFloatPtr = - _lookup Function(Mat, float_t)>>('Mat_AddFloat'); - late final _Mat_AddFloat = _Mat_AddFloatPtr.asFunction Function(Mat, double)>(); + _lookup Function(Mat, float_t)>>( + 'Mat_AddFloat'); + late final _Mat_AddFloat = _Mat_AddFloatPtr.asFunction< + ffi.Pointer Function(Mat, double)>(); ffi.Pointer Mat_AddI32( Mat m, @@ -7740,9 +8698,11 @@ class CvNative { ); } - late final _Mat_AddI32Ptr = - _lookup Function(Mat, ffi.Int32)>>('Mat_AddI32'); - late final _Mat_AddI32 = _Mat_AddI32Ptr.asFunction Function(Mat, int)>(); + late final _Mat_AddI32Ptr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Int32)>>( + 'Mat_AddI32'); + late final _Mat_AddI32 = + _Mat_AddI32Ptr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_AddSChar( Mat m, @@ -7754,9 +8714,11 @@ class CvNative { ); } - late final _Mat_AddSCharPtr = - _lookup Function(Mat, ffi.Int8)>>('Mat_AddSChar'); - late final _Mat_AddSChar = _Mat_AddSCharPtr.asFunction Function(Mat, int)>(); + late final _Mat_AddSCharPtr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Int8)>>( + 'Mat_AddSChar'); + late final _Mat_AddSChar = + _Mat_AddSCharPtr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_AddUChar( Mat m, @@ -7768,9 +8730,11 @@ class CvNative { ); } - late final _Mat_AddUCharPtr = - _lookup Function(Mat, ffi.Uint8)>>('Mat_AddUChar'); - late final _Mat_AddUChar = _Mat_AddUCharPtr.asFunction Function(Mat, int)>(); + late final _Mat_AddUCharPtr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Uint8)>>( + 'Mat_AddUChar'); + late final _Mat_AddUChar = + _Mat_AddUCharPtr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_AddWeighted( Mat src1, @@ -7791,11 +8755,11 @@ class CvNative { } late final _Mat_AddWeightedPtr = _lookup< - ffi - .NativeFunction Function(Mat, ffi.Double, Mat, ffi.Double, ffi.Double, Mat)>>( - 'Mat_AddWeighted'); - late final _Mat_AddWeighted = - _Mat_AddWeightedPtr.asFunction Function(Mat, double, Mat, double, double, Mat)>(); + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Double, Mat, ffi.Double, + ffi.Double, Mat)>>('Mat_AddWeighted'); + late final _Mat_AddWeighted = _Mat_AddWeightedPtr.asFunction< + ffi.Pointer Function(Mat, double, Mat, double, double, Mat)>(); ffi.Pointer Mat_BatchDistance( Mat src1, @@ -7825,10 +8789,11 @@ class CvNative { late final _Mat_BatchDistancePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Int, Mat, ffi.Int, ffi.Int, Mat, ffi.Int, ffi.Bool)>>('Mat_BatchDistance'); + ffi.Pointer Function(Mat, Mat, Mat, ffi.Int, Mat, ffi.Int, + ffi.Int, Mat, ffi.Int, ffi.Bool)>>('Mat_BatchDistance'); late final _Mat_BatchDistance = _Mat_BatchDistancePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, int, Mat, int, int, Mat, int, bool)>(); + ffi.Pointer Function( + Mat, Mat, Mat, int, Mat, int, int, Mat, int, bool)>(); ffi.Pointer Mat_BitwiseAnd( Mat src1, @@ -7842,9 +8807,11 @@ class CvNative { ); } - late final _Mat_BitwiseAndPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_BitwiseAnd'); - late final _Mat_BitwiseAnd = _Mat_BitwiseAndPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_BitwiseAndPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_BitwiseAnd'); + late final _Mat_BitwiseAnd = _Mat_BitwiseAndPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_BitwiseAndWithMask( Mat src1, @@ -7860,11 +8827,12 @@ class CvNative { ); } - late final _Mat_BitwiseAndWithMaskPtr = - _lookup Function(Mat, Mat, Mat, Mat)>>( - 'Mat_BitwiseAndWithMask'); - late final _Mat_BitwiseAndWithMask = - _Mat_BitwiseAndWithMaskPtr.asFunction Function(Mat, Mat, Mat, Mat)>(); + late final _Mat_BitwiseAndWithMaskPtr = _lookup< + ffi + .NativeFunction Function(Mat, Mat, Mat, Mat)>>( + 'Mat_BitwiseAndWithMask'); + late final _Mat_BitwiseAndWithMask = _Mat_BitwiseAndWithMaskPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat)>(); ffi.Pointer Mat_BitwiseNot( Mat src1, @@ -7877,8 +8845,10 @@ class CvNative { } late final _Mat_BitwiseNotPtr = - _lookup Function(Mat, Mat)>>('Mat_BitwiseNot'); - late final _Mat_BitwiseNot = _Mat_BitwiseNotPtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'Mat_BitwiseNot'); + late final _Mat_BitwiseNot = + _Mat_BitwiseNotPtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_BitwiseNotWithMask( Mat src1, @@ -7892,10 +8862,11 @@ class CvNative { ); } - late final _Mat_BitwiseNotWithMaskPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_BitwiseNotWithMask'); - late final _Mat_BitwiseNotWithMask = - _Mat_BitwiseNotWithMaskPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_BitwiseNotWithMaskPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_BitwiseNotWithMask'); + late final _Mat_BitwiseNotWithMask = _Mat_BitwiseNotWithMaskPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_BitwiseOr( Mat src1, @@ -7909,9 +8880,11 @@ class CvNative { ); } - late final _Mat_BitwiseOrPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_BitwiseOr'); - late final _Mat_BitwiseOr = _Mat_BitwiseOrPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_BitwiseOrPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_BitwiseOr'); + late final _Mat_BitwiseOr = _Mat_BitwiseOrPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_BitwiseOrWithMask( Mat src1, @@ -7927,11 +8900,12 @@ class CvNative { ); } - late final _Mat_BitwiseOrWithMaskPtr = - _lookup Function(Mat, Mat, Mat, Mat)>>( - 'Mat_BitwiseOrWithMask'); - late final _Mat_BitwiseOrWithMask = - _Mat_BitwiseOrWithMaskPtr.asFunction Function(Mat, Mat, Mat, Mat)>(); + late final _Mat_BitwiseOrWithMaskPtr = _lookup< + ffi + .NativeFunction Function(Mat, Mat, Mat, Mat)>>( + 'Mat_BitwiseOrWithMask'); + late final _Mat_BitwiseOrWithMask = _Mat_BitwiseOrWithMaskPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat)>(); ffi.Pointer Mat_BitwiseXor( Mat src1, @@ -7945,9 +8919,11 @@ class CvNative { ); } - late final _Mat_BitwiseXorPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_BitwiseXor'); - late final _Mat_BitwiseXor = _Mat_BitwiseXorPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_BitwiseXorPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_BitwiseXor'); + late final _Mat_BitwiseXor = _Mat_BitwiseXorPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_BitwiseXorWithMask( Mat src1, @@ -7963,11 +8939,12 @@ class CvNative { ); } - late final _Mat_BitwiseXorWithMaskPtr = - _lookup Function(Mat, Mat, Mat, Mat)>>( - 'Mat_BitwiseXorWithMask'); - late final _Mat_BitwiseXorWithMask = - _Mat_BitwiseXorWithMaskPtr.asFunction Function(Mat, Mat, Mat, Mat)>(); + late final _Mat_BitwiseXorWithMaskPtr = _lookup< + ffi + .NativeFunction Function(Mat, Mat, Mat, Mat)>>( + 'Mat_BitwiseXorWithMask'); + late final _Mat_BitwiseXorWithMask = _Mat_BitwiseXorWithMaskPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat)>(); ffi.Pointer Mat_BorderInterpolate( int p, @@ -7984,9 +8961,9 @@ class CvNative { } late final _Mat_BorderInterpolatePtr = _lookup< - ffi - .NativeFunction Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_BorderInterpolate'); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer)>>('Mat_BorderInterpolate'); late final _Mat_BorderInterpolate = _Mat_BorderInterpolatePtr.asFunction< ffi.Pointer Function(int, int, int, ffi.Pointer)>(); @@ -8006,11 +8983,12 @@ class CvNative { ); } - late final _Mat_CalcCovarMatrixPtr = - _lookup Function(Mat, Mat, Mat, ffi.Int, ffi.Int)>>( - 'Mat_CalcCovarMatrix'); - late final _Mat_CalcCovarMatrix = - _Mat_CalcCovarMatrixPtr.asFunction Function(Mat, Mat, Mat, int, int)>(); + late final _Mat_CalcCovarMatrixPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Int, ffi.Int)>>('Mat_CalcCovarMatrix'); + late final _Mat_CalcCovarMatrix = _Mat_CalcCovarMatrixPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, int, int)>(); ffi.Pointer Mat_CartToPolar( Mat x, @@ -8028,11 +9006,12 @@ class CvNative { ); } - late final _Mat_CartToPolarPtr = - _lookup Function(Mat, Mat, Mat, Mat, ffi.Bool)>>( - 'Mat_CartToPolar'); - late final _Mat_CartToPolar = - _Mat_CartToPolarPtr.asFunction Function(Mat, Mat, Mat, Mat, bool)>(); + late final _Mat_CartToPolarPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, ffi.Bool)>>('Mat_CartToPolar'); + late final _Mat_CartToPolar = _Mat_CartToPolarPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, bool)>(); ffi.Pointer Mat_Channels( Mat m, @@ -8044,10 +9023,12 @@ class CvNative { ); } - late final _Mat_ChannelsPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Channels'); - late final _Mat_Channels = - _Mat_ChannelsPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_ChannelsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_Channels'); + late final _Mat_Channels = _Mat_ChannelsPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_CheckRange( Mat m, @@ -8069,10 +9050,16 @@ class CvNative { late final _Mat_CheckRangePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Bool, ffi.Pointer, ffi.Double, ffi.Double, + ffi.Pointer Function( + Mat, + ffi.Bool, + ffi.Pointer, + ffi.Double, + ffi.Double, ffi.Pointer)>>('Mat_CheckRange'); late final _Mat_CheckRange = _Mat_CheckRangePtr.asFunction< - ffi.Pointer Function(Mat, bool, ffi.Pointer, double, double, ffi.Pointer)>(); + ffi.Pointer Function(Mat, bool, ffi.Pointer, double, + double, ffi.Pointer)>(); ffi.Pointer Mat_Clone( Mat m, @@ -8084,9 +9071,11 @@ class CvNative { ); } - late final _Mat_ClonePtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Clone'); - late final _Mat_Clone = _Mat_ClonePtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_ClonePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>>('Mat_Clone'); + late final _Mat_Clone = _Mat_ClonePtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); void Mat_Close( MatPtr m, @@ -8096,7 +9085,8 @@ class CvNative { ); } - late final _Mat_ClosePtr = _lookup>('Mat_Close'); + late final _Mat_ClosePtr = + _lookup>('Mat_Close'); late final _Mat_Close = _Mat_ClosePtr.asFunction(); void Mat_CloseVoid( @@ -8108,8 +9098,10 @@ class CvNative { } late final _Mat_CloseVoidPtr = - _lookup)>>('Mat_CloseVoid'); - late final _Mat_CloseVoid = _Mat_CloseVoidPtr.asFunction)>(); + _lookup)>>( + 'Mat_CloseVoid'); + late final _Mat_CloseVoid = + _Mat_CloseVoidPtr.asFunction)>(); ffi.Pointer Mat_Cols( Mat m, @@ -8121,9 +9113,12 @@ class CvNative { ); } - late final _Mat_ColsPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Cols'); - late final _Mat_Cols = _Mat_ColsPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_ColsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_Cols'); + late final _Mat_Cols = _Mat_ColsPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Compare( Mat src1, @@ -8139,9 +9134,12 @@ class CvNative { ); } - late final _Mat_ComparePtr = - _lookup Function(Mat, Mat, Mat, ffi.Int)>>('Mat_Compare'); - late final _Mat_Compare = _Mat_ComparePtr.asFunction Function(Mat, Mat, Mat, int)>(); + late final _Mat_ComparePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Int)>>('Mat_Compare'); + late final _Mat_Compare = _Mat_ComparePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, int)>(); ffi.Pointer Mat_CompleteSymm( Mat m, @@ -8153,9 +9151,11 @@ class CvNative { ); } - late final _Mat_CompleteSymmPtr = - _lookup Function(Mat, ffi.Bool)>>('Mat_CompleteSymm'); - late final _Mat_CompleteSymm = _Mat_CompleteSymmPtr.asFunction Function(Mat, bool)>(); + late final _Mat_CompleteSymmPtr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Bool)>>( + 'Mat_CompleteSymm'); + late final _Mat_CompleteSymm = _Mat_CompleteSymmPtr.asFunction< + ffi.Pointer Function(Mat, bool)>(); ffi.Pointer Mat_ConvertFp16( Mat m, @@ -8167,10 +9167,12 @@ class CvNative { ); } - late final _Mat_ConvertFp16Ptr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_ConvertFp16'); - late final _Mat_ConvertFp16 = - _Mat_ConvertFp16Ptr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_ConvertFp16Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_ConvertFp16'); + late final _Mat_ConvertFp16 = _Mat_ConvertFp16Ptr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_ConvertScaleAbs( Mat src, @@ -8186,11 +9188,12 @@ class CvNative { ); } - late final _Mat_ConvertScaleAbsPtr = - _lookup Function(Mat, Mat, ffi.Double, ffi.Double)>>( - 'Mat_ConvertScaleAbs'); - late final _Mat_ConvertScaleAbs = - _Mat_ConvertScaleAbsPtr.asFunction Function(Mat, Mat, double, double)>(); + late final _Mat_ConvertScaleAbsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Double, ffi.Double)>>('Mat_ConvertScaleAbs'); + late final _Mat_ConvertScaleAbs = _Mat_ConvertScaleAbsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, double, double)>(); ffi.Pointer Mat_ConvertTo( Mat m, @@ -8204,9 +9207,11 @@ class CvNative { ); } - late final _Mat_ConvertToPtr = - _lookup Function(Mat, Mat, ffi.Int)>>('Mat_ConvertTo'); - late final _Mat_ConvertTo = _Mat_ConvertToPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_ConvertToPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_ConvertTo'); + late final _Mat_ConvertTo = _Mat_ConvertToPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int)>(); ffi.Pointer Mat_ConvertToWithParams( Mat m, @@ -8224,11 +9229,12 @@ class CvNative { ); } - late final _Mat_ConvertToWithParamsPtr = - _lookup Function(Mat, Mat, ffi.Int, ffi.Float, ffi.Float)>>( - 'Mat_ConvertToWithParams'); - late final _Mat_ConvertToWithParams = - _Mat_ConvertToWithParamsPtr.asFunction Function(Mat, Mat, int, double, double)>(); + late final _Mat_ConvertToWithParamsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Float, + ffi.Float)>>('Mat_ConvertToWithParams'); + late final _Mat_ConvertToWithParams = _Mat_ConvertToWithParamsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, double, double)>(); ffi.Pointer Mat_CopyMakeBorder( Mat src, @@ -8254,10 +9260,11 @@ class CvNative { late final _Mat_CopyMakeBorderPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Int, Scalar)>>('Mat_CopyMakeBorder'); + ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Int, ffi.Int, Scalar)>>('Mat_CopyMakeBorder'); late final _Mat_CopyMakeBorder = _Mat_CopyMakeBorderPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, int, int, int, int, Scalar)>(); + ffi.Pointer Function( + Mat, Mat, int, int, int, int, int, Scalar)>(); ffi.Pointer Mat_CopyTo( Mat m, @@ -8270,8 +9277,10 @@ class CvNative { } late final _Mat_CopyToPtr = - _lookup Function(Mat, Mat)>>('Mat_CopyTo'); - late final _Mat_CopyTo = _Mat_CopyToPtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'Mat_CopyTo'); + late final _Mat_CopyTo = + _Mat_CopyToPtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_CopyToWithMask( Mat m, @@ -8285,10 +9294,11 @@ class CvNative { ); } - late final _Mat_CopyToWithMaskPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_CopyToWithMask'); - late final _Mat_CopyToWithMask = - _Mat_CopyToWithMaskPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_CopyToWithMaskPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_CopyToWithMask'); + late final _Mat_CopyToWithMask = _Mat_CopyToWithMaskPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_CountNonZero( Mat src, @@ -8300,11 +9310,12 @@ class CvNative { ); } - late final _Mat_CountNonZeroPtr = - _lookup Function(Mat, ffi.Pointer)>>( - 'Mat_CountNonZero'); - late final _Mat_CountNonZero = - _Mat_CountNonZeroPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_CountNonZeroPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_CountNonZero'); + late final _Mat_CountNonZero = _Mat_CountNonZeroPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_DCT( Mat src, @@ -8318,9 +9329,11 @@ class CvNative { ); } - late final _Mat_DCTPtr = - _lookup Function(Mat, Mat, ffi.Int)>>('Mat_DCT'); - late final _Mat_DCT = _Mat_DCTPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_DCTPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_DCT'); + late final _Mat_DCT = + _Mat_DCTPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_DFT( Mat m, @@ -8334,9 +9347,11 @@ class CvNative { ); } - late final _Mat_DFTPtr = - _lookup Function(Mat, Mat, ffi.Int)>>('Mat_DFT'); - late final _Mat_DFT = _Mat_DFTPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_DFTPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_DFT'); + late final _Mat_DFT = + _Mat_DFTPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_Data( Mat m, @@ -8348,10 +9363,12 @@ class CvNative { ); } - late final _Mat_DataPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Data'); - late final _Mat_Data = - _Mat_DataPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_DataPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_Data'); + late final _Mat_Data = _Mat_DataPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_DataPtr( Mat m, @@ -8367,10 +9384,11 @@ class CvNative { late final _Mat_DataPtrPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer>, ffi.Pointer)>>('Mat_DataPtr'); + ffi.Pointer Function(Mat, ffi.Pointer>, + ffi.Pointer)>>('Mat_DataPtr'); late final _Mat_DataPtr1 = _Mat_DataPtrPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer>, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, ffi.Pointer>, ffi.Pointer)>(); ffi.Pointer Mat_Determinant( Mat m, @@ -8382,11 +9400,12 @@ class CvNative { ); } - late final _Mat_DeterminantPtr = - _lookup Function(Mat, ffi.Pointer)>>( - 'Mat_Determinant'); - late final _Mat_Determinant = - _Mat_DeterminantPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_DeterminantPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_Determinant'); + late final _Mat_Determinant = _Mat_DeterminantPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Divide( Mat src1, @@ -8400,9 +9419,11 @@ class CvNative { ); } - late final _Mat_DividePtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_Divide'); - late final _Mat_Divide = _Mat_DividePtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_DividePtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_Divide'); + late final _Mat_Divide = _Mat_DividePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_DivideF64( Mat m, @@ -8414,9 +9435,11 @@ class CvNative { ); } - late final _Mat_DivideF64Ptr = - _lookup Function(Mat, double_t)>>('Mat_DivideF64'); - late final _Mat_DivideF64 = _Mat_DivideF64Ptr.asFunction Function(Mat, double)>(); + late final _Mat_DivideF64Ptr = _lookup< + ffi.NativeFunction Function(Mat, double_t)>>( + 'Mat_DivideF64'); + late final _Mat_DivideF64 = _Mat_DivideF64Ptr.asFunction< + ffi.Pointer Function(Mat, double)>(); ffi.Pointer Mat_DivideFloat( Mat m, @@ -8429,8 +9452,10 @@ class CvNative { } late final _Mat_DivideFloatPtr = - _lookup Function(Mat, float_t)>>('Mat_DivideFloat'); - late final _Mat_DivideFloat = _Mat_DivideFloatPtr.asFunction Function(Mat, double)>(); + _lookup Function(Mat, float_t)>>( + 'Mat_DivideFloat'); + late final _Mat_DivideFloat = _Mat_DivideFloatPtr.asFunction< + ffi.Pointer Function(Mat, double)>(); ffi.Pointer Mat_DivideI32( Mat m, @@ -8442,9 +9467,11 @@ class CvNative { ); } - late final _Mat_DivideI32Ptr = - _lookup Function(Mat, ffi.Int32)>>('Mat_DivideI32'); - late final _Mat_DivideI32 = _Mat_DivideI32Ptr.asFunction Function(Mat, int)>(); + late final _Mat_DivideI32Ptr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Int32)>>( + 'Mat_DivideI32'); + late final _Mat_DivideI32 = + _Mat_DivideI32Ptr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_DivideSChar( Mat m, @@ -8456,9 +9483,11 @@ class CvNative { ); } - late final _Mat_DivideSCharPtr = - _lookup Function(Mat, ffi.Int8)>>('Mat_DivideSChar'); - late final _Mat_DivideSChar = _Mat_DivideSCharPtr.asFunction Function(Mat, int)>(); + late final _Mat_DivideSCharPtr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Int8)>>( + 'Mat_DivideSChar'); + late final _Mat_DivideSChar = _Mat_DivideSCharPtr.asFunction< + ffi.Pointer Function(Mat, int)>(); ffi.Pointer Mat_DivideUChar( Mat m, @@ -8470,9 +9499,11 @@ class CvNative { ); } - late final _Mat_DivideUCharPtr = - _lookup Function(Mat, ffi.Uint8)>>('Mat_DivideUChar'); - late final _Mat_DivideUChar = _Mat_DivideUCharPtr.asFunction Function(Mat, int)>(); + late final _Mat_DivideUCharPtr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Uint8)>>( + 'Mat_DivideUChar'); + late final _Mat_DivideUChar = _Mat_DivideUCharPtr.asFunction< + ffi.Pointer Function(Mat, int)>(); ffi.Pointer Mat_Eigen( Mat src, @@ -8488,11 +9519,12 @@ class CvNative { ); } - late final _Mat_EigenPtr = - _lookup Function(Mat, Mat, Mat, ffi.Pointer)>>( - 'Mat_Eigen'); - late final _Mat_Eigen = - _Mat_EigenPtr.asFunction Function(Mat, Mat, Mat, ffi.Pointer)>(); + late final _Mat_EigenPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Pointer)>>('Mat_Eigen'); + late final _Mat_Eigen = _Mat_EigenPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer Mat_EigenNonSymmetric( Mat src, @@ -8506,10 +9538,11 @@ class CvNative { ); } - late final _Mat_EigenNonSymmetricPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_EigenNonSymmetric'); - late final _Mat_EigenNonSymmetric = - _Mat_EigenNonSymmetricPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_EigenNonSymmetricPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_EigenNonSymmetric'); + late final _Mat_EigenNonSymmetric = _Mat_EigenNonSymmetricPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_ElemSize( Mat m, @@ -8521,10 +9554,12 @@ class CvNative { ); } - late final _Mat_ElemSizePtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_ElemSize'); - late final _Mat_ElemSize = - _Mat_ElemSizePtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_ElemSizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_ElemSize'); + late final _Mat_ElemSize = _Mat_ElemSizePtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Empty( Mat m, @@ -8536,10 +9571,12 @@ class CvNative { ); } - late final _Mat_EmptyPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Empty'); - late final _Mat_Empty = - _Mat_EmptyPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_EmptyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_Empty'); + late final _Mat_Empty = _Mat_EmptyPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Exp( Mat src, @@ -8551,8 +9588,11 @@ class CvNative { ); } - late final _Mat_ExpPtr = _lookup Function(Mat, Mat)>>('Mat_Exp'); - late final _Mat_Exp = _Mat_ExpPtr.asFunction Function(Mat, Mat)>(); + late final _Mat_ExpPtr = + _lookup Function(Mat, Mat)>>( + 'Mat_Exp'); + late final _Mat_Exp = + _Mat_ExpPtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_ExtractChannel( Mat src, @@ -8566,10 +9606,12 @@ class CvNative { ); } - late final _Mat_ExtractChannelPtr = - _lookup Function(Mat, Mat, ffi.Int)>>('Mat_ExtractChannel'); - late final _Mat_ExtractChannel = - _Mat_ExtractChannelPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_ExtractChannelPtr = _lookup< + ffi + .NativeFunction Function(Mat, Mat, ffi.Int)>>( + 'Mat_ExtractChannel'); + late final _Mat_ExtractChannel = _Mat_ExtractChannelPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int)>(); ffi.Pointer Mat_FindNonZero( Mat src, @@ -8582,8 +9624,10 @@ class CvNative { } late final _Mat_FindNonZeroPtr = - _lookup Function(Mat, Mat)>>('Mat_FindNonZero'); - late final _Mat_FindNonZero = _Mat_FindNonZeroPtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'Mat_FindNonZero'); + late final _Mat_FindNonZero = _Mat_FindNonZeroPtr.asFunction< + ffi.Pointer Function(Mat, Mat)>(); ffi.Pointer Mat_Flip( Mat src, @@ -8597,9 +9641,11 @@ class CvNative { ); } - late final _Mat_FlipPtr = - _lookup Function(Mat, Mat, ffi.Int)>>('Mat_Flip'); - late final _Mat_Flip = _Mat_FlipPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_FlipPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_Flip'); + late final _Mat_Flip = + _Mat_FlipPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_FromCMat( Mat m, @@ -8611,10 +9657,12 @@ class CvNative { ); } - late final _Mat_FromCMatPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_FromCMat'); - late final _Mat_FromCMat = - _Mat_FromCMatPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_FromCMatPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_FromCMat'); + late final _Mat_FromCMat = _Mat_FromCMatPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_FromPtr( Mat m, @@ -8638,10 +9686,11 @@ class CvNative { late final _Mat_FromPtrPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_FromPtr'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_FromPtr'); late final _Mat_FromPtr = _Mat_FromPtrPtr.asFunction< - ffi.Pointer Function(Mat, int, int, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, int, int, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_Gemm( Mat src1, @@ -8665,9 +9714,11 @@ class CvNative { late final _Mat_GemmPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Double, Mat, ffi.Double, Mat, ffi.Int)>>('Mat_Gemm'); - late final _Mat_Gemm = - _Mat_GemmPtr.asFunction Function(Mat, Mat, double, Mat, double, Mat, int)>(); + ffi.Pointer Function(Mat, Mat, ffi.Double, Mat, ffi.Double, + Mat, ffi.Int)>>('Mat_Gemm'); + late final _Mat_Gemm = _Mat_GemmPtr.asFunction< + ffi.Pointer Function( + Mat, Mat, double, Mat, double, Mat, int)>(); ffi.Pointer Mat_GetDouble( Mat m, @@ -8684,10 +9735,11 @@ class CvNative { } late final _Mat_GetDoublePtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetDouble'); - late final _Mat_GetDouble = - _Mat_GetDoublePtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, + ffi.Pointer)>>('Mat_GetDouble'); + late final _Mat_GetDouble = _Mat_GetDoublePtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetDouble3( Mat m, @@ -8707,10 +9759,11 @@ class CvNative { late final _Mat_GetDouble3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetDouble3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer)>>('Mat_GetDouble3'); late final _Mat_GetDouble3 = _Mat_GetDouble3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetFloat( Mat m, @@ -8727,10 +9780,11 @@ class CvNative { } late final _Mat_GetFloatPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetFloat'); - late final _Mat_GetFloat = - _Mat_GetFloatPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetFloat'); + late final _Mat_GetFloat = _Mat_GetFloatPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetFloat3( Mat m, @@ -8750,10 +9804,11 @@ class CvNative { late final _Mat_GetFloat3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetFloat3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer)>>('Mat_GetFloat3'); late final _Mat_GetFloat3 = _Mat_GetFloat3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetInt( Mat m, @@ -8770,10 +9825,11 @@ class CvNative { } late final _Mat_GetIntPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetInt'); - late final _Mat_GetInt = - _Mat_GetIntPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetInt'); + late final _Mat_GetInt = _Mat_GetIntPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetInt3( Mat m, @@ -8793,10 +9849,11 @@ class CvNative { late final _Mat_GetInt3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetInt3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer)>>('Mat_GetInt3'); late final _Mat_GetInt3 = _Mat_GetInt3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetOptimalDFTSize( int vecsize, @@ -8808,11 +9865,12 @@ class CvNative { ); } - late final _Mat_GetOptimalDFTSizePtr = - _lookup Function(ffi.Int, ffi.Pointer)>>( - 'Mat_GetOptimalDFTSize'); - late final _Mat_GetOptimalDFTSize = - _Mat_GetOptimalDFTSizePtr.asFunction Function(int, ffi.Pointer)>(); + late final _Mat_GetOptimalDFTSizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int, ffi.Pointer)>>('Mat_GetOptimalDFTSize'); + late final _Mat_GetOptimalDFTSize = _Mat_GetOptimalDFTSizePtr.asFunction< + ffi.Pointer Function(int, ffi.Pointer)>(); ffi.Pointer Mat_GetSChar( Mat m, @@ -8829,10 +9887,11 @@ class CvNative { } late final _Mat_GetSCharPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetSChar'); - late final _Mat_GetSChar = - _Mat_GetSCharPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetSChar'); + late final _Mat_GetSChar = _Mat_GetSCharPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetSChar3( Mat m, @@ -8852,10 +9911,11 @@ class CvNative { late final _Mat_GetSChar3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetSChar3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer)>>('Mat_GetSChar3'); late final _Mat_GetSChar3 = _Mat_GetSChar3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetShort( Mat m, @@ -8872,10 +9932,11 @@ class CvNative { } late final _Mat_GetShortPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetShort'); - late final _Mat_GetShort = - _Mat_GetShortPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetShort'); + late final _Mat_GetShort = _Mat_GetShortPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetShort3( Mat m, @@ -8895,10 +9956,11 @@ class CvNative { late final _Mat_GetShort3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetShort3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer)>>('Mat_GetShort3'); late final _Mat_GetShort3 = _Mat_GetShort3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetUChar( Mat m, @@ -8915,10 +9977,11 @@ class CvNative { } late final _Mat_GetUCharPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetUChar'); - late final _Mat_GetUChar = - _Mat_GetUCharPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetUChar'); + late final _Mat_GetUChar = _Mat_GetUCharPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetUChar3( Mat m, @@ -8938,10 +10001,11 @@ class CvNative { late final _Mat_GetUChar3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetUChar3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer)>>('Mat_GetUChar3'); late final _Mat_GetUChar3 = _Mat_GetUChar3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetUShort( Mat m, @@ -8958,10 +10022,11 @@ class CvNative { } late final _Mat_GetUShortPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetUShort'); - late final _Mat_GetUShort = - _Mat_GetUShortPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, + ffi.Pointer)>>('Mat_GetUShort'); + late final _Mat_GetUShort = _Mat_GetUShortPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetUShort3( Mat m, @@ -8981,10 +10046,11 @@ class CvNative { late final _Mat_GetUShort3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetUShort3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer)>>('Mat_GetUShort3'); late final _Mat_GetUShort3 = _Mat_GetUShort3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec2b( Mat m, @@ -9000,11 +10066,12 @@ class CvNative { ); } - late final _Mat_GetVec2bPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec2b'); - late final _Mat_GetVec2b = - _Mat_GetVec2bPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec2bPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec2b'); + late final _Mat_GetVec2b = _Mat_GetVec2bPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec2d( Mat m, @@ -9020,11 +10087,12 @@ class CvNative { ); } - late final _Mat_GetVec2dPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec2d'); - late final _Mat_GetVec2d = - _Mat_GetVec2dPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec2dPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec2d'); + late final _Mat_GetVec2d = _Mat_GetVec2dPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec2f( Mat m, @@ -9040,11 +10108,12 @@ class CvNative { ); } - late final _Mat_GetVec2fPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec2f'); - late final _Mat_GetVec2f = - _Mat_GetVec2fPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec2fPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec2f'); + late final _Mat_GetVec2f = _Mat_GetVec2fPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec2i( Mat m, @@ -9060,11 +10129,12 @@ class CvNative { ); } - late final _Mat_GetVec2iPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec2i'); - late final _Mat_GetVec2i = - _Mat_GetVec2iPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec2iPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec2i'); + late final _Mat_GetVec2i = _Mat_GetVec2iPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec2s( Mat m, @@ -9080,11 +10150,12 @@ class CvNative { ); } - late final _Mat_GetVec2sPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec2s'); - late final _Mat_GetVec2s = - _Mat_GetVec2sPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec2sPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec2s'); + late final _Mat_GetVec2s = _Mat_GetVec2sPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec2w( Mat m, @@ -9100,11 +10171,12 @@ class CvNative { ); } - late final _Mat_GetVec2wPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec2w'); - late final _Mat_GetVec2w = - _Mat_GetVec2wPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec2wPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec2w'); + late final _Mat_GetVec2w = _Mat_GetVec2wPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec3b( Mat m, @@ -9120,11 +10192,12 @@ class CvNative { ); } - late final _Mat_GetVec3bPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec3b'); - late final _Mat_GetVec3b = - _Mat_GetVec3bPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec3bPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec3b'); + late final _Mat_GetVec3b = _Mat_GetVec3bPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec3d( Mat m, @@ -9140,11 +10213,12 @@ class CvNative { ); } - late final _Mat_GetVec3dPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec3d'); - late final _Mat_GetVec3d = - _Mat_GetVec3dPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec3dPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec3d'); + late final _Mat_GetVec3d = _Mat_GetVec3dPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec3f( Mat m, @@ -9160,11 +10234,12 @@ class CvNative { ); } - late final _Mat_GetVec3fPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec3f'); - late final _Mat_GetVec3f = - _Mat_GetVec3fPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec3fPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec3f'); + late final _Mat_GetVec3f = _Mat_GetVec3fPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec3i( Mat m, @@ -9180,11 +10255,12 @@ class CvNative { ); } - late final _Mat_GetVec3iPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec3i'); - late final _Mat_GetVec3i = - _Mat_GetVec3iPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec3iPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec3i'); + late final _Mat_GetVec3i = _Mat_GetVec3iPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec3s( Mat m, @@ -9200,11 +10276,12 @@ class CvNative { ); } - late final _Mat_GetVec3sPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec3s'); - late final _Mat_GetVec3s = - _Mat_GetVec3sPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec3sPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec3s'); + late final _Mat_GetVec3s = _Mat_GetVec3sPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec3w( Mat m, @@ -9220,11 +10297,12 @@ class CvNative { ); } - late final _Mat_GetVec3wPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec3w'); - late final _Mat_GetVec3w = - _Mat_GetVec3wPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec3wPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec3w'); + late final _Mat_GetVec3w = _Mat_GetVec3wPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec4b( Mat m, @@ -9240,11 +10318,12 @@ class CvNative { ); } - late final _Mat_GetVec4bPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec4b'); - late final _Mat_GetVec4b = - _Mat_GetVec4bPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec4bPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec4b'); + late final _Mat_GetVec4b = _Mat_GetVec4bPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec4d( Mat m, @@ -9260,11 +10339,12 @@ class CvNative { ); } - late final _Mat_GetVec4dPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec4d'); - late final _Mat_GetVec4d = - _Mat_GetVec4dPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec4dPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec4d'); + late final _Mat_GetVec4d = _Mat_GetVec4dPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec4f( Mat m, @@ -9280,11 +10360,12 @@ class CvNative { ); } - late final _Mat_GetVec4fPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec4f'); - late final _Mat_GetVec4f = - _Mat_GetVec4fPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec4fPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec4f'); + late final _Mat_GetVec4f = _Mat_GetVec4fPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec4i( Mat m, @@ -9300,11 +10381,12 @@ class CvNative { ); } - late final _Mat_GetVec4iPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec4i'); - late final _Mat_GetVec4i = - _Mat_GetVec4iPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec4iPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec4i'); + late final _Mat_GetVec4i = _Mat_GetVec4iPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec4s( Mat m, @@ -9320,11 +10402,12 @@ class CvNative { ); } - late final _Mat_GetVec4sPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec4s'); - late final _Mat_GetVec4s = - _Mat_GetVec4sPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec4sPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec4s'); + late final _Mat_GetVec4s = _Mat_GetVec4sPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec4w( Mat m, @@ -9340,11 +10423,12 @@ class CvNative { ); } - late final _Mat_GetVec4wPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec4w'); - late final _Mat_GetVec4w = - _Mat_GetVec4wPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec4wPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec4w'); + late final _Mat_GetVec4w = _Mat_GetVec4wPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec6d( Mat m, @@ -9360,11 +10444,12 @@ class CvNative { ); } - late final _Mat_GetVec6dPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec6d'); - late final _Mat_GetVec6d = - _Mat_GetVec6dPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec6dPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec6d'); + late final _Mat_GetVec6d = _Mat_GetVec6dPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec6f( Mat m, @@ -9380,11 +10465,12 @@ class CvNative { ); } - late final _Mat_GetVec6fPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec6f'); - late final _Mat_GetVec6f = - _Mat_GetVec6fPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec6fPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec6f'); + late final _Mat_GetVec6f = _Mat_GetVec6fPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec6i( Mat m, @@ -9400,11 +10486,12 @@ class CvNative { ); } - late final _Mat_GetVec6iPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec6i'); - late final _Mat_GetVec6i = - _Mat_GetVec6iPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec6iPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec6i'); + late final _Mat_GetVec6i = _Mat_GetVec6iPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec8i( Mat m, @@ -9420,11 +10507,12 @@ class CvNative { ); } - late final _Mat_GetVec8iPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec8i'); - late final _Mat_GetVec8i = - _Mat_GetVec8iPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec8iPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec8i'); + late final _Mat_GetVec8i = _Mat_GetVec8iPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_Hconcat( Mat src1, @@ -9438,9 +10526,11 @@ class CvNative { ); } - late final _Mat_HconcatPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_Hconcat'); - late final _Mat_Hconcat = _Mat_HconcatPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_HconcatPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_Hconcat'); + late final _Mat_Hconcat = _Mat_HconcatPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_Idct( Mat src, @@ -9454,9 +10544,11 @@ class CvNative { ); } - late final _Mat_IdctPtr = - _lookup Function(Mat, Mat, ffi.Int)>>('Mat_Idct'); - late final _Mat_Idct = _Mat_IdctPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_IdctPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_Idct'); + late final _Mat_Idct = + _Mat_IdctPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_Idft( Mat src, @@ -9472,9 +10564,12 @@ class CvNative { ); } - late final _Mat_IdftPtr = - _lookup Function(Mat, Mat, ffi.Int, ffi.Int)>>('Mat_Idft'); - late final _Mat_Idft = _Mat_IdftPtr.asFunction Function(Mat, Mat, int, int)>(); + late final _Mat_IdftPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Int)>>('Mat_Idft'); + late final _Mat_Idft = _Mat_IdftPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, int)>(); ffi.Pointer Mat_InRange( Mat src, @@ -9490,9 +10585,11 @@ class CvNative { ); } - late final _Mat_InRangePtr = - _lookup Function(Mat, Mat, Mat, Mat)>>('Mat_InRange'); - late final _Mat_InRange = _Mat_InRangePtr.asFunction Function(Mat, Mat, Mat, Mat)>(); + late final _Mat_InRangePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat)>>('Mat_InRange'); + late final _Mat_InRange = _Mat_InRangePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat)>(); ffi.Pointer Mat_InRangeWithScalar( Mat src, @@ -9508,11 +10605,12 @@ class CvNative { ); } - late final _Mat_InRangeWithScalarPtr = - _lookup Function(Mat, Scalar, Scalar, Mat)>>( - 'Mat_InRangeWithScalar'); - late final _Mat_InRangeWithScalar = - _Mat_InRangeWithScalarPtr.asFunction Function(Mat, Scalar, Scalar, Mat)>(); + late final _Mat_InRangeWithScalarPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Scalar, Scalar, Mat)>>('Mat_InRangeWithScalar'); + late final _Mat_InRangeWithScalar = _Mat_InRangeWithScalarPtr.asFunction< + ffi.Pointer Function(Mat, Scalar, Scalar, Mat)>(); ffi.Pointer Mat_InsertChannel( Mat src, @@ -9526,10 +10624,12 @@ class CvNative { ); } - late final _Mat_InsertChannelPtr = - _lookup Function(Mat, Mat, ffi.Int)>>('Mat_InsertChannel'); - late final _Mat_InsertChannel = - _Mat_InsertChannelPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_InsertChannelPtr = _lookup< + ffi + .NativeFunction Function(Mat, Mat, ffi.Int)>>( + 'Mat_InsertChannel'); + late final _Mat_InsertChannel = _Mat_InsertChannelPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int)>(); ffi.Pointer Mat_Invert( Mat src, @@ -9545,11 +10645,12 @@ class CvNative { ); } - late final _Mat_InvertPtr = - _lookup Function(Mat, Mat, ffi.Int, ffi.Pointer)>>( - 'Mat_Invert'); - late final _Mat_Invert = - _Mat_InvertPtr.asFunction Function(Mat, Mat, int, ffi.Pointer)>(); + late final _Mat_InvertPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Pointer)>>('Mat_Invert'); + late final _Mat_Invert = _Mat_InvertPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer Mat_IsContinuous( Mat m, @@ -9561,11 +10662,12 @@ class CvNative { ); } - late final _Mat_IsContinuousPtr = - _lookup Function(Mat, ffi.Pointer)>>( - 'Mat_IsContinuous'); - late final _Mat_IsContinuous = - _Mat_IsContinuousPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_IsContinuousPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_IsContinuous'); + late final _Mat_IsContinuous = _Mat_IsContinuousPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Log( Mat src, @@ -9577,8 +10679,11 @@ class CvNative { ); } - late final _Mat_LogPtr = _lookup Function(Mat, Mat)>>('Mat_Log'); - late final _Mat_Log = _Mat_LogPtr.asFunction Function(Mat, Mat)>(); + late final _Mat_LogPtr = + _lookup Function(Mat, Mat)>>( + 'Mat_Log'); + late final _Mat_Log = + _Mat_LogPtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_Magnitude( Mat x, @@ -9592,9 +10697,11 @@ class CvNative { ); } - late final _Mat_MagnitudePtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_Magnitude'); - late final _Mat_Magnitude = _Mat_MagnitudePtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_MagnitudePtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_Magnitude'); + late final _Mat_Magnitude = _Mat_MagnitudePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_Max( Mat src1, @@ -9608,9 +10715,11 @@ class CvNative { ); } - late final _Mat_MaxPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_Max'); - late final _Mat_Max = _Mat_MaxPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_MaxPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_Max'); + late final _Mat_Max = + _Mat_MaxPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_Mean( Mat m, @@ -9622,9 +10731,12 @@ class CvNative { ); } - late final _Mat_MeanPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Mean'); - late final _Mat_Mean = _Mat_MeanPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_MeanPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_Mean'); + late final _Mat_Mean = _Mat_MeanPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_MeanStdDev( Mat src, @@ -9639,10 +10751,12 @@ class CvNative { } late final _Mat_MeanStdDevPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Pointer, ffi.Pointer)>>( - 'Mat_MeanStdDev'); + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Pointer, + ffi.Pointer)>>('Mat_MeanStdDev'); late final _Mat_MeanStdDev = _Mat_MeanStdDevPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Mat_MeanStdDevWithMask( Mat src, @@ -9660,10 +10774,11 @@ class CvNative { late final _Mat_MeanStdDevWithMaskPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer, ffi.Pointer, Mat)>>('Mat_MeanStdDevWithMask'); + ffi.Pointer Function(Mat, ffi.Pointer, + ffi.Pointer, Mat)>>('Mat_MeanStdDevWithMask'); late final _Mat_MeanStdDevWithMask = _Mat_MeanStdDevWithMaskPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer, ffi.Pointer, Mat)>(); + ffi.Pointer Function( + Mat, ffi.Pointer, ffi.Pointer, Mat)>(); ffi.Pointer Mat_MeanWithMask( Mat m, @@ -9677,11 +10792,12 @@ class CvNative { ); } - late final _Mat_MeanWithMaskPtr = - _lookup Function(Mat, Mat, ffi.Pointer)>>( - 'Mat_MeanWithMask'); - late final _Mat_MeanWithMask = - _Mat_MeanWithMaskPtr.asFunction Function(Mat, Mat, ffi.Pointer)>(); + late final _Mat_MeanWithMaskPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Pointer)>>('Mat_MeanWithMask'); + late final _Mat_MeanWithMask = _Mat_MeanWithMaskPtr.asFunction< + ffi.Pointer Function(Mat, Mat, ffi.Pointer)>(); ffi.Pointer Mat_Merge( VecMat mats, @@ -9694,8 +10810,10 @@ class CvNative { } late final _Mat_MergePtr = - _lookup Function(VecMat, Mat)>>('Mat_Merge'); - late final _Mat_Merge = _Mat_MergePtr.asFunction Function(VecMat, Mat)>(); + _lookup Function(VecMat, Mat)>>( + 'Mat_Merge'); + late final _Mat_Merge = + _Mat_MergePtr.asFunction Function(VecMat, Mat)>(); ffi.Pointer Mat_Min( Mat src1, @@ -9709,9 +10827,11 @@ class CvNative { ); } - late final _Mat_MinPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_Min'); - late final _Mat_Min = _Mat_MinPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_MinPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_Min'); + late final _Mat_Min = + _Mat_MinPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_MinMaxIdx( Mat m, @@ -9731,11 +10851,19 @@ class CvNative { late final _Mat_MinMaxIdxPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('Mat_MinMaxIdx'); + ffi.Pointer Function( + Mat, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('Mat_MinMaxIdx'); late final _Mat_MinMaxIdx = _Mat_MinMaxIdxPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); ffi.Pointer Mat_MinMaxLoc( Mat m, @@ -9755,11 +10883,15 @@ class CvNative { late final _Mat_MinMaxLocPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('Mat_MinMaxLoc'); + ffi.Pointer Function( + Mat, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('Mat_MinMaxLoc'); late final _Mat_MinMaxLoc = _Mat_MinMaxLocPtr.asFunction< - ffi.Pointer Function( - Mat, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(Mat, ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Mat_MixChannels( VecMat src, @@ -9773,10 +10905,12 @@ class CvNative { ); } - late final _Mat_MixChannelsPtr = - _lookup Function(VecMat, VecMat, VecInt)>>('Mat_MixChannels'); - late final _Mat_MixChannels = - _Mat_MixChannelsPtr.asFunction Function(VecMat, VecMat, VecInt)>(); + late final _Mat_MixChannelsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecMat, VecMat, VecInt)>>('Mat_MixChannels'); + late final _Mat_MixChannels = _Mat_MixChannelsPtr.asFunction< + ffi.Pointer Function(VecMat, VecMat, VecInt)>(); ffi.Pointer Mat_MulSpectrums( Mat a, @@ -9792,10 +10926,12 @@ class CvNative { ); } - late final _Mat_MulSpectrumsPtr = - _lookup Function(Mat, Mat, Mat, ffi.Int)>>('Mat_MulSpectrums'); - late final _Mat_MulSpectrums = - _Mat_MulSpectrumsPtr.asFunction Function(Mat, Mat, Mat, int)>(); + late final _Mat_MulSpectrumsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Int)>>('Mat_MulSpectrums'); + late final _Mat_MulSpectrums = _Mat_MulSpectrumsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, int)>(); ffi.Pointer Mat_Multiply( Mat src1, @@ -9809,9 +10945,11 @@ class CvNative { ); } - late final _Mat_MultiplyPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_Multiply'); - late final _Mat_Multiply = _Mat_MultiplyPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_MultiplyPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_Multiply'); + late final _Mat_Multiply = _Mat_MultiplyPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_MultiplyF64( Mat m, @@ -9823,9 +10961,11 @@ class CvNative { ); } - late final _Mat_MultiplyF64Ptr = - _lookup Function(Mat, double_t)>>('Mat_MultiplyF64'); - late final _Mat_MultiplyF64 = _Mat_MultiplyF64Ptr.asFunction Function(Mat, double)>(); + late final _Mat_MultiplyF64Ptr = _lookup< + ffi.NativeFunction Function(Mat, double_t)>>( + 'Mat_MultiplyF64'); + late final _Mat_MultiplyF64 = _Mat_MultiplyF64Ptr.asFunction< + ffi.Pointer Function(Mat, double)>(); ffi.Pointer Mat_MultiplyFloat( Mat m, @@ -9838,9 +10978,10 @@ class CvNative { } late final _Mat_MultiplyFloatPtr = - _lookup Function(Mat, float_t)>>('Mat_MultiplyFloat'); - late final _Mat_MultiplyFloat = - _Mat_MultiplyFloatPtr.asFunction Function(Mat, double)>(); + _lookup Function(Mat, float_t)>>( + 'Mat_MultiplyFloat'); + late final _Mat_MultiplyFloat = _Mat_MultiplyFloatPtr.asFunction< + ffi.Pointer Function(Mat, double)>(); ffi.Pointer Mat_MultiplyI32( Mat m, @@ -9852,9 +10993,11 @@ class CvNative { ); } - late final _Mat_MultiplyI32Ptr = - _lookup Function(Mat, ffi.Int32)>>('Mat_MultiplyI32'); - late final _Mat_MultiplyI32 = _Mat_MultiplyI32Ptr.asFunction Function(Mat, int)>(); + late final _Mat_MultiplyI32Ptr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Int32)>>( + 'Mat_MultiplyI32'); + late final _Mat_MultiplyI32 = _Mat_MultiplyI32Ptr.asFunction< + ffi.Pointer Function(Mat, int)>(); ffi.Pointer Mat_MultiplyMatrix( Mat x, @@ -9868,11 +11011,12 @@ class CvNative { ); } - late final _Mat_MultiplyMatrixPtr = - _lookup Function(Mat, Mat, ffi.Pointer)>>( - 'Mat_MultiplyMatrix'); - late final _Mat_MultiplyMatrix = - _Mat_MultiplyMatrixPtr.asFunction Function(Mat, Mat, ffi.Pointer)>(); + late final _Mat_MultiplyMatrixPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Pointer)>>('Mat_MultiplyMatrix'); + late final _Mat_MultiplyMatrix = _Mat_MultiplyMatrixPtr.asFunction< + ffi.Pointer Function(Mat, Mat, ffi.Pointer)>(); ffi.Pointer Mat_MultiplySChar( Mat m, @@ -9884,10 +11028,11 @@ class CvNative { ); } - late final _Mat_MultiplySCharPtr = - _lookup Function(Mat, ffi.Int8)>>('Mat_MultiplySChar'); - late final _Mat_MultiplySChar = - _Mat_MultiplySCharPtr.asFunction Function(Mat, int)>(); + late final _Mat_MultiplySCharPtr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Int8)>>( + 'Mat_MultiplySChar'); + late final _Mat_MultiplySChar = _Mat_MultiplySCharPtr.asFunction< + ffi.Pointer Function(Mat, int)>(); ffi.Pointer Mat_MultiplyUChar( Mat m, @@ -9899,10 +11044,11 @@ class CvNative { ); } - late final _Mat_MultiplyUCharPtr = - _lookup Function(Mat, ffi.Uint8)>>('Mat_MultiplyUChar'); - late final _Mat_MultiplyUChar = - _Mat_MultiplyUCharPtr.asFunction Function(Mat, int)>(); + late final _Mat_MultiplyUCharPtr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Uint8)>>( + 'Mat_MultiplyUChar'); + late final _Mat_MultiplyUChar = _Mat_MultiplyUCharPtr.asFunction< + ffi.Pointer Function(Mat, int)>(); ffi.Pointer Mat_MultiplyWithParams( Mat src1, @@ -9920,11 +11066,12 @@ class CvNative { ); } - late final _Mat_MultiplyWithParamsPtr = - _lookup Function(Mat, Mat, Mat, ffi.Double, ffi.Int)>>( - 'Mat_MultiplyWithParams'); - late final _Mat_MultiplyWithParams = - _Mat_MultiplyWithParamsPtr.asFunction Function(Mat, Mat, Mat, double, int)>(); + late final _Mat_MultiplyWithParamsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Double, ffi.Int)>>('Mat_MultiplyWithParams'); + late final _Mat_MultiplyWithParams = _Mat_MultiplyWithParamsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, double, int)>(); /// @brief Create empty Mat /// @@ -9945,9 +11092,11 @@ class CvNative { ); } - late final _Mat_NewPtr = - _lookup Function(ffi.Pointer)>>('Mat_New'); - late final _Mat_New = _Mat_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _Mat_NewPtr = _lookup< + ffi.NativeFunction Function(ffi.Pointer)>>( + 'Mat_New'); + late final _Mat_New = _Mat_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer Mat_NewFromBytes( int rows, @@ -9969,10 +11118,16 @@ class CvNative { late final _Mat_NewFromBytesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer, ffi.Int, + ffi.Pointer Function( + ffi.Int, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Int, ffi.Pointer)>>('Mat_NewFromBytes'); late final _Mat_NewFromBytes = _Mat_NewFromBytesPtr.asFunction< - ffi.Pointer Function(int, int, int, ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function( + int, int, int, ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer Mat_NewFromScalar( Scalar ar, @@ -9986,11 +11141,12 @@ class CvNative { ); } - late final _Mat_NewFromScalarPtr = - _lookup Function(Scalar, ffi.Int, ffi.Pointer)>>( - 'Mat_NewFromScalar'); - late final _Mat_NewFromScalar = - _Mat_NewFromScalarPtr.asFunction Function(Scalar, int, ffi.Pointer)>(); + late final _Mat_NewFromScalarPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Scalar, ffi.Int, ffi.Pointer)>>('Mat_NewFromScalar'); + late final _Mat_NewFromScalar = _Mat_NewFromScalarPtr.asFunction< + ffi.Pointer Function(Scalar, int, ffi.Pointer)>(); ffi.Pointer Mat_NewFromVecPoint( VecPoint vec, @@ -10002,11 +11158,12 @@ class CvNative { ); } - late final _Mat_NewFromVecPointPtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'Mat_NewFromVecPoint'); - late final _Mat_NewFromVecPoint = - _Mat_NewFromVecPointPtr.asFunction Function(VecPoint, ffi.Pointer)>(); + late final _Mat_NewFromVecPointPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('Mat_NewFromVecPoint'); + late final _Mat_NewFromVecPoint = _Mat_NewFromVecPointPtr.asFunction< + ffi.Pointer Function(VecPoint, ffi.Pointer)>(); ffi.Pointer Mat_NewFromVecPoint2f( VecPoint2f vec, @@ -10018,11 +11175,12 @@ class CvNative { ); } - late final _Mat_NewFromVecPoint2fPtr = - _lookup Function(VecPoint2f, ffi.Pointer)>>( - 'Mat_NewFromVecPoint2f'); - late final _Mat_NewFromVecPoint2f = - _Mat_NewFromVecPoint2fPtr.asFunction Function(VecPoint2f, ffi.Pointer)>(); + late final _Mat_NewFromVecPoint2fPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint2f, ffi.Pointer)>>('Mat_NewFromVecPoint2f'); + late final _Mat_NewFromVecPoint2f = _Mat_NewFromVecPoint2fPtr.asFunction< + ffi.Pointer Function(VecPoint2f, ffi.Pointer)>(); ffi.Pointer Mat_NewFromVecPoint3f( VecPoint3f vec, @@ -10034,11 +11192,12 @@ class CvNative { ); } - late final _Mat_NewFromVecPoint3fPtr = - _lookup Function(VecPoint3f, ffi.Pointer)>>( - 'Mat_NewFromVecPoint3f'); - late final _Mat_NewFromVecPoint3f = - _Mat_NewFromVecPoint3fPtr.asFunction Function(VecPoint3f, ffi.Pointer)>(); + late final _Mat_NewFromVecPoint3fPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint3f, ffi.Pointer)>>('Mat_NewFromVecPoint3f'); + late final _Mat_NewFromVecPoint3f = _Mat_NewFromVecPoint3fPtr.asFunction< + ffi.Pointer Function(VecPoint3f, ffi.Pointer)>(); ffi.Pointer Mat_NewWithSize( int rows, @@ -10055,10 +11214,11 @@ class CvNative { } late final _Mat_NewWithSizePtr = _lookup< - ffi.NativeFunction Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_NewWithSize'); - late final _Mat_NewWithSize = - _Mat_NewWithSizePtr.asFunction Function(int, int, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_NewWithSize'); + late final _Mat_NewWithSize = _Mat_NewWithSizePtr.asFunction< + ffi.Pointer Function(int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_NewWithSizeFromScalar( Scalar ar, @@ -10078,10 +11238,12 @@ class CvNative { late final _Mat_NewWithSizeFromScalarPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(Scalar, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer)>>('Mat_NewWithSizeFromScalar'); + late final _Mat_NewWithSizeFromScalar = + _Mat_NewWithSizeFromScalarPtr.asFunction< ffi.Pointer Function( - Scalar, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_NewWithSizeFromScalar'); - late final _Mat_NewWithSizeFromScalar = _Mat_NewWithSizeFromScalarPtr.asFunction< - ffi.Pointer Function(Scalar, int, int, int, ffi.Pointer)>(); + Scalar, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_NewWithSizes( VecInt sizes, @@ -10095,11 +11257,12 @@ class CvNative { ); } - late final _Mat_NewWithSizesPtr = - _lookup Function(VecInt, ffi.Int, ffi.Pointer)>>( - 'Mat_NewWithSizes'); - late final _Mat_NewWithSizes = - _Mat_NewWithSizesPtr.asFunction Function(VecInt, int, ffi.Pointer)>(); + late final _Mat_NewWithSizesPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecInt, ffi.Int, ffi.Pointer)>>('Mat_NewWithSizes'); + late final _Mat_NewWithSizes = _Mat_NewWithSizesPtr.asFunction< + ffi.Pointer Function(VecInt, int, ffi.Pointer)>(); ffi.Pointer Mat_NewWithSizesFromBytes( VecInt sizes, @@ -10115,11 +11278,14 @@ class CvNative { ); } - late final _Mat_NewWithSizesFromBytesPtr = - _lookup Function(VecInt, ffi.Int, VecChar, ffi.Pointer)>>( - 'Mat_NewWithSizesFromBytes'); - late final _Mat_NewWithSizesFromBytes = _Mat_NewWithSizesFromBytesPtr.asFunction< - ffi.Pointer Function(VecInt, int, VecChar, ffi.Pointer)>(); + late final _Mat_NewWithSizesFromBytesPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecInt, ffi.Int, VecChar, + ffi.Pointer)>>('Mat_NewWithSizesFromBytes'); + late final _Mat_NewWithSizesFromBytes = + _Mat_NewWithSizesFromBytesPtr.asFunction< + ffi.Pointer Function( + VecInt, int, VecChar, ffi.Pointer)>(); ffi.Pointer Mat_NewWithSizesFromScalar( VecInt sizes, @@ -10135,11 +11301,14 @@ class CvNative { ); } - late final _Mat_NewWithSizesFromScalarPtr = - _lookup Function(VecInt, ffi.Int, Scalar, ffi.Pointer)>>( - 'Mat_NewWithSizesFromScalar'); - late final _Mat_NewWithSizesFromScalar = _Mat_NewWithSizesFromScalarPtr.asFunction< - ffi.Pointer Function(VecInt, int, Scalar, ffi.Pointer)>(); + late final _Mat_NewWithSizesFromScalarPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecInt, ffi.Int, Scalar, + ffi.Pointer)>>('Mat_NewWithSizesFromScalar'); + late final _Mat_NewWithSizesFromScalar = + _Mat_NewWithSizesFromScalarPtr.asFunction< + ffi.Pointer Function( + VecInt, int, Scalar, ffi.Pointer)>(); ffi.Pointer Mat_Normalize( Mat src, @@ -10157,11 +11326,12 @@ class CvNative { ); } - late final _Mat_NormalizePtr = - _lookup Function(Mat, Mat, ffi.Double, ffi.Double, ffi.Int)>>( - 'Mat_Normalize'); - late final _Mat_Normalize = - _Mat_NormalizePtr.asFunction Function(Mat, Mat, double, double, int)>(); + late final _Mat_NormalizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Double, ffi.Double, ffi.Int)>>('Mat_Normalize'); + late final _Mat_Normalize = _Mat_NormalizePtr.asFunction< + ffi.Pointer Function(Mat, Mat, double, double, int)>(); ffi.Pointer Mat_PCACompute( Mat src, @@ -10179,11 +11349,12 @@ class CvNative { ); } - late final _Mat_PCAComputePtr = - _lookup Function(Mat, Mat, Mat, Mat, ffi.Int)>>( - 'Mat_PCACompute'); - late final _Mat_PCACompute = - _Mat_PCAComputePtr.asFunction Function(Mat, Mat, Mat, Mat, int)>(); + late final _Mat_PCAComputePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, ffi.Int)>>('Mat_PCACompute'); + late final _Mat_PCACompute = _Mat_PCAComputePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, int)>(); ffi.Pointer Mat_PatchNaNs( Mat m, @@ -10195,9 +11366,11 @@ class CvNative { ); } - late final _Mat_PatchNaNsPtr = - _lookup Function(Mat, ffi.Double)>>('Mat_PatchNaNs'); - late final _Mat_PatchNaNs = _Mat_PatchNaNsPtr.asFunction Function(Mat, double)>(); + late final _Mat_PatchNaNsPtr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Double)>>( + 'Mat_PatchNaNs'); + late final _Mat_PatchNaNs = _Mat_PatchNaNsPtr.asFunction< + ffi.Pointer Function(Mat, double)>(); ffi.Pointer Mat_PerspectiveTransform( Mat src, @@ -10211,10 +11384,11 @@ class CvNative { ); } - late final _Mat_PerspectiveTransformPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_PerspectiveTransform'); - late final _Mat_PerspectiveTransform = - _Mat_PerspectiveTransformPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_PerspectiveTransformPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_PerspectiveTransform'); + late final _Mat_PerspectiveTransform = _Mat_PerspectiveTransformPtr + .asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_Phase( Mat x, @@ -10230,9 +11404,12 @@ class CvNative { ); } - late final _Mat_PhasePtr = - _lookup Function(Mat, Mat, Mat, ffi.Bool)>>('Mat_Phase'); - late final _Mat_Phase = _Mat_PhasePtr.asFunction Function(Mat, Mat, Mat, bool)>(); + late final _Mat_PhasePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Bool)>>('Mat_Phase'); + late final _Mat_Phase = _Mat_PhasePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, bool)>(); ffi.Pointer Mat_PolarToCart( Mat magnitude, @@ -10250,11 +11427,12 @@ class CvNative { ); } - late final _Mat_PolarToCartPtr = - _lookup Function(Mat, Mat, Mat, Mat, ffi.Bool)>>( - 'Mat_PolarToCart'); - late final _Mat_PolarToCart = - _Mat_PolarToCartPtr.asFunction Function(Mat, Mat, Mat, Mat, bool)>(); + late final _Mat_PolarToCartPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, ffi.Bool)>>('Mat_PolarToCart'); + late final _Mat_PolarToCart = _Mat_PolarToCartPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, bool)>(); ffi.Pointer Mat_Pow( Mat src, @@ -10268,9 +11446,11 @@ class CvNative { ); } - late final _Mat_PowPtr = - _lookup Function(Mat, ffi.Double, Mat)>>('Mat_Pow'); - late final _Mat_Pow = _Mat_PowPtr.asFunction Function(Mat, double, Mat)>(); + late final _Mat_PowPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Double, Mat)>>('Mat_Pow'); + late final _Mat_Pow = _Mat_PowPtr.asFunction< + ffi.Pointer Function(Mat, double, Mat)>(); ffi.Pointer Mat_Ptr_f32_1( Mat m, @@ -10285,11 +11465,12 @@ class CvNative { } late final _Mat_Ptr_f32_1Ptr = _lookup< - ffi - .NativeFunction Function(Mat, ffi.Int, ffi.Pointer>)>>( - 'Mat_Ptr_f32_1'); + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_f32_1'); late final _Mat_Ptr_f32_1 = _Mat_Ptr_f32_1Ptr.asFunction< - ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_f32_2( Mat m, @@ -10307,10 +11488,11 @@ class CvNative { late final _Mat_Ptr_f32_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_f32_2'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_f32_2'); late final _Mat_Ptr_f32_2 = _Mat_Ptr_f32_2Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_f32_3( Mat m, @@ -10330,10 +11512,11 @@ class CvNative { late final _Mat_Ptr_f32_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_f32_3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_f32_3'); late final _Mat_Ptr_f32_3 = _Mat_Ptr_f32_3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_f64_1( Mat m, @@ -10349,10 +11532,11 @@ class CvNative { late final _Mat_Ptr_f64_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_f64_1'); + ffi.Pointer Function(Mat, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_f64_1'); late final _Mat_Ptr_f64_1 = _Mat_Ptr_f64_1Ptr.asFunction< - ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_f64_2( Mat m, @@ -10370,10 +11554,11 @@ class CvNative { late final _Mat_Ptr_f64_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_f64_2'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_f64_2'); late final _Mat_Ptr_f64_2 = _Mat_Ptr_f64_2Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_f64_3( Mat m, @@ -10393,10 +11578,11 @@ class CvNative { late final _Mat_Ptr_f64_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_f64_3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_f64_3'); late final _Mat_Ptr_f64_3 = _Mat_Ptr_f64_3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i16_1( Mat m, @@ -10411,11 +11597,12 @@ class CvNative { } late final _Mat_Ptr_i16_1Ptr = _lookup< - ffi - .NativeFunction Function(Mat, ffi.Int, ffi.Pointer>)>>( - 'Mat_Ptr_i16_1'); + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_i16_1'); late final _Mat_Ptr_i16_1 = _Mat_Ptr_i16_1Ptr.asFunction< - ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i16_2( Mat m, @@ -10433,10 +11620,11 @@ class CvNative { late final _Mat_Ptr_i16_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i16_2'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_i16_2'); late final _Mat_Ptr_i16_2 = _Mat_Ptr_i16_2Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i16_3( Mat m, @@ -10456,10 +11644,11 @@ class CvNative { late final _Mat_Ptr_i16_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i16_3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_i16_3'); late final _Mat_Ptr_i16_3 = _Mat_Ptr_i16_3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i32_1( Mat m, @@ -10475,9 +11664,11 @@ class CvNative { late final _Mat_Ptr_i32_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i32_1'); + ffi.Pointer Function(Mat, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_i32_1'); late final _Mat_Ptr_i32_1 = _Mat_Ptr_i32_1Ptr.asFunction< - ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i32_2( Mat m, @@ -10495,10 +11686,11 @@ class CvNative { late final _Mat_Ptr_i32_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i32_2'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_i32_2'); late final _Mat_Ptr_i32_2 = _Mat_Ptr_i32_2Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i32_3( Mat m, @@ -10518,10 +11710,11 @@ class CvNative { late final _Mat_Ptr_i32_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i32_3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_i32_3'); late final _Mat_Ptr_i32_3 = _Mat_Ptr_i32_3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i8_1( Mat m, @@ -10537,9 +11730,11 @@ class CvNative { late final _Mat_Ptr_i8_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i8_1'); + ffi.Pointer Function(Mat, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_i8_1'); late final _Mat_Ptr_i8_1 = _Mat_Ptr_i8_1Ptr.asFunction< - ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i8_2( Mat m, @@ -10557,10 +11752,11 @@ class CvNative { late final _Mat_Ptr_i8_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i8_2'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_i8_2'); late final _Mat_Ptr_i8_2 = _Mat_Ptr_i8_2Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i8_3( Mat m, @@ -10580,10 +11776,11 @@ class CvNative { late final _Mat_Ptr_i8_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i8_3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_i8_3'); late final _Mat_Ptr_i8_3 = _Mat_Ptr_i8_3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_u16_1( Mat m, @@ -10598,10 +11795,12 @@ class CvNative { } late final _Mat_Ptr_u16_1Ptr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int, ffi.Pointer>)>>( - 'Mat_Ptr_u16_1'); + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_u16_1'); late final _Mat_Ptr_u16_1 = _Mat_Ptr_u16_1Ptr.asFunction< - ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_u16_2( Mat m, @@ -10619,10 +11818,11 @@ class CvNative { late final _Mat_Ptr_u16_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_u16_2'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_u16_2'); late final _Mat_Ptr_u16_2 = _Mat_Ptr_u16_2Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_u16_3( Mat m, @@ -10642,10 +11842,11 @@ class CvNative { late final _Mat_Ptr_u16_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_u16_3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_u16_3'); late final _Mat_Ptr_u16_3 = _Mat_Ptr_u16_3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_u8_1( Mat m, @@ -10660,10 +11861,12 @@ class CvNative { } late final _Mat_Ptr_u8_1Ptr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int, ffi.Pointer>)>>( - 'Mat_Ptr_u8_1'); + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_u8_1'); late final _Mat_Ptr_u8_1 = _Mat_Ptr_u8_1Ptr.asFunction< - ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_u8_2( Mat m, @@ -10681,10 +11884,11 @@ class CvNative { late final _Mat_Ptr_u8_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_u8_2'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_u8_2'); late final _Mat_Ptr_u8_2 = _Mat_Ptr_u8_2Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_u8_3( Mat m, @@ -10704,10 +11908,11 @@ class CvNative { late final _Mat_Ptr_u8_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_u8_3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_u8_3'); late final _Mat_Ptr_u8_3 = _Mat_Ptr_u8_3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Reduce( Mat src, @@ -10725,11 +11930,12 @@ class CvNative { ); } - late final _Mat_ReducePtr = - _lookup Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Int)>>( - 'Mat_Reduce'); - late final _Mat_Reduce = - _Mat_ReducePtr.asFunction Function(Mat, Mat, int, int, int)>(); + late final _Mat_ReducePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Int, ffi.Int)>>('Mat_Reduce'); + late final _Mat_Reduce = _Mat_ReducePtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, int, int)>(); ffi.Pointer Mat_ReduceArgMax( Mat src, @@ -10745,11 +11951,12 @@ class CvNative { ); } - late final _Mat_ReduceArgMaxPtr = - _lookup Function(Mat, Mat, ffi.Int, ffi.Bool)>>( - 'Mat_ReduceArgMax'); - late final _Mat_ReduceArgMax = - _Mat_ReduceArgMaxPtr.asFunction Function(Mat, Mat, int, bool)>(); + late final _Mat_ReduceArgMaxPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Bool)>>('Mat_ReduceArgMax'); + late final _Mat_ReduceArgMax = _Mat_ReduceArgMaxPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, bool)>(); ffi.Pointer Mat_ReduceArgMin( Mat src, @@ -10765,11 +11972,12 @@ class CvNative { ); } - late final _Mat_ReduceArgMinPtr = - _lookup Function(Mat, Mat, ffi.Int, ffi.Bool)>>( - 'Mat_ReduceArgMin'); - late final _Mat_ReduceArgMin = - _Mat_ReduceArgMinPtr.asFunction Function(Mat, Mat, int, bool)>(); + late final _Mat_ReduceArgMinPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Bool)>>('Mat_ReduceArgMin'); + late final _Mat_ReduceArgMin = _Mat_ReduceArgMinPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, bool)>(); ffi.Pointer Mat_Region( Mat m, @@ -10783,10 +11991,12 @@ class CvNative { ); } - late final _Mat_RegionPtr = - _lookup Function(Mat, Rect, ffi.Pointer)>>('Mat_Region'); - late final _Mat_Region = - _Mat_RegionPtr.asFunction Function(Mat, Rect, ffi.Pointer)>(); + late final _Mat_RegionPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Rect, ffi.Pointer)>>('Mat_Region'); + late final _Mat_Region = _Mat_RegionPtr.asFunction< + ffi.Pointer Function(Mat, Rect, ffi.Pointer)>(); ffi.Pointer Mat_Release( ffi.Pointer m, @@ -10796,9 +12006,11 @@ class CvNative { ); } - late final _Mat_ReleasePtr = - _lookup Function(ffi.Pointer)>>('Mat_Release'); - late final _Mat_Release = _Mat_ReleasePtr.asFunction Function(ffi.Pointer)>(); + late final _Mat_ReleasePtr = _lookup< + ffi.NativeFunction Function(ffi.Pointer)>>( + 'Mat_Release'); + late final _Mat_Release = _Mat_ReleasePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer Mat_Repeat( Mat src, @@ -10814,9 +12026,12 @@ class CvNative { ); } - late final _Mat_RepeatPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Mat)>>('Mat_Repeat'); - late final _Mat_Repeat = _Mat_RepeatPtr.asFunction Function(Mat, int, int, Mat)>(); + late final _Mat_RepeatPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Mat)>>('Mat_Repeat'); + late final _Mat_Repeat = _Mat_RepeatPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Mat)>(); ffi.Pointer Mat_Reshape( Mat m, @@ -10832,11 +12047,12 @@ class CvNative { ); } - late final _Mat_ReshapePtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_Reshape'); - late final _Mat_Reshape = - _Mat_ReshapePtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_ReshapePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_Reshape'); + late final _Mat_Reshape = _Mat_ReshapePtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_Rows( Mat m, @@ -10848,9 +12064,12 @@ class CvNative { ); } - late final _Mat_RowsPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Rows'); - late final _Mat_Rows = _Mat_RowsPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_RowsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_Rows'); + late final _Mat_Rows = _Mat_RowsPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_ScaleAdd( Mat src1, @@ -10866,10 +12085,12 @@ class CvNative { ); } - late final _Mat_ScaleAddPtr = - _lookup Function(Mat, ffi.Double, Mat, Mat)>>('Mat_ScaleAdd'); - late final _Mat_ScaleAdd = - _Mat_ScaleAddPtr.asFunction Function(Mat, double, Mat, Mat)>(); + late final _Mat_ScaleAddPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Double, Mat, Mat)>>('Mat_ScaleAdd'); + late final _Mat_ScaleAdd = _Mat_ScaleAddPtr.asFunction< + ffi.Pointer Function(Mat, double, Mat, Mat)>(); ffi.Pointer Mat_SetDouble( Mat m, @@ -10885,11 +12106,12 @@ class CvNative { ); } - late final _Mat_SetDoublePtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Double)>>( - 'Mat_SetDouble'); - late final _Mat_SetDouble = - _Mat_SetDoublePtr.asFunction Function(Mat, int, int, double)>(); + late final _Mat_SetDoublePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Double)>>('Mat_SetDouble'); + late final _Mat_SetDouble = _Mat_SetDoublePtr.asFunction< + ffi.Pointer Function(Mat, int, int, double)>(); ffi.Pointer Mat_SetDouble3( Mat m, @@ -10907,11 +12129,12 @@ class CvNative { ); } - late final _Mat_SetDouble3Ptr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Double)>>( - 'Mat_SetDouble3'); - late final _Mat_SetDouble3 = - _Mat_SetDouble3Ptr.asFunction Function(Mat, int, int, int, double)>(); + late final _Mat_SetDouble3Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Double)>>('Mat_SetDouble3'); + late final _Mat_SetDouble3 = _Mat_SetDouble3Ptr.asFunction< + ffi.Pointer Function(Mat, int, int, int, double)>(); ffi.Pointer Mat_SetFloat( Mat m, @@ -10927,11 +12150,12 @@ class CvNative { ); } - late final _Mat_SetFloatPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Float)>>( - 'Mat_SetFloat'); - late final _Mat_SetFloat = - _Mat_SetFloatPtr.asFunction Function(Mat, int, int, double)>(); + late final _Mat_SetFloatPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Float)>>('Mat_SetFloat'); + late final _Mat_SetFloat = _Mat_SetFloatPtr.asFunction< + ffi.Pointer Function(Mat, int, int, double)>(); ffi.Pointer Mat_SetFloat3( Mat m, @@ -10949,11 +12173,12 @@ class CvNative { ); } - late final _Mat_SetFloat3Ptr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Float)>>( - 'Mat_SetFloat3'); - late final _Mat_SetFloat3 = - _Mat_SetFloat3Ptr.asFunction Function(Mat, int, int, int, double)>(); + late final _Mat_SetFloat3Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Float)>>('Mat_SetFloat3'); + late final _Mat_SetFloat3 = _Mat_SetFloat3Ptr.asFunction< + ffi.Pointer Function(Mat, int, int, int, double)>(); ffi.Pointer Mat_SetIdentity( Mat src, @@ -10965,9 +12190,11 @@ class CvNative { ); } - late final _Mat_SetIdentityPtr = - _lookup Function(Mat, ffi.Double)>>('Mat_SetIdentity'); - late final _Mat_SetIdentity = _Mat_SetIdentityPtr.asFunction Function(Mat, double)>(); + late final _Mat_SetIdentityPtr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Double)>>( + 'Mat_SetIdentity'); + late final _Mat_SetIdentity = _Mat_SetIdentityPtr.asFunction< + ffi.Pointer Function(Mat, double)>(); ffi.Pointer Mat_SetInt( Mat m, @@ -10983,10 +12210,12 @@ class CvNative { ); } - late final _Mat_SetIntPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int32)>>( - 'Mat_SetInt'); - late final _Mat_SetInt = _Mat_SetIntPtr.asFunction Function(Mat, int, int, int)>(); + late final _Mat_SetIntPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int32)>>('Mat_SetInt'); + late final _Mat_SetInt = _Mat_SetIntPtr.asFunction< + ffi.Pointer Function(Mat, int, int, int)>(); ffi.Pointer Mat_SetInt3( Mat m, @@ -11004,11 +12233,12 @@ class CvNative { ); } - late final _Mat_SetInt3Ptr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int32)>>( - 'Mat_SetInt3'); - late final _Mat_SetInt3 = - _Mat_SetInt3Ptr.asFunction Function(Mat, int, int, int, int)>(); + late final _Mat_SetInt3Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int32)>>('Mat_SetInt3'); + late final _Mat_SetInt3 = _Mat_SetInt3Ptr.asFunction< + ffi.Pointer Function(Mat, int, int, int, int)>(); ffi.Pointer Mat_SetSChar( Mat m, @@ -11024,11 +12254,12 @@ class CvNative { ); } - late final _Mat_SetSCharPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int8)>>( - 'Mat_SetSChar'); - late final _Mat_SetSChar = - _Mat_SetSCharPtr.asFunction Function(Mat, int, int, int)>(); + late final _Mat_SetSCharPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int8)>>('Mat_SetSChar'); + late final _Mat_SetSChar = _Mat_SetSCharPtr.asFunction< + ffi.Pointer Function(Mat, int, int, int)>(); ffi.Pointer Mat_SetSChar3( Mat m, @@ -11046,11 +12277,12 @@ class CvNative { ); } - late final _Mat_SetSChar3Ptr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int8)>>( - 'Mat_SetSChar3'); - late final _Mat_SetSChar3 = - _Mat_SetSChar3Ptr.asFunction Function(Mat, int, int, int, int)>(); + late final _Mat_SetSChar3Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int8)>>('Mat_SetSChar3'); + late final _Mat_SetSChar3 = _Mat_SetSChar3Ptr.asFunction< + ffi.Pointer Function(Mat, int, int, int, int)>(); ffi.Pointer Mat_SetShort( Mat m, @@ -11066,11 +12298,12 @@ class CvNative { ); } - late final _Mat_SetShortPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int16)>>( - 'Mat_SetShort'); - late final _Mat_SetShort = - _Mat_SetShortPtr.asFunction Function(Mat, int, int, int)>(); + late final _Mat_SetShortPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int16)>>('Mat_SetShort'); + late final _Mat_SetShort = _Mat_SetShortPtr.asFunction< + ffi.Pointer Function(Mat, int, int, int)>(); ffi.Pointer Mat_SetShort3( Mat m, @@ -11088,11 +12321,12 @@ class CvNative { ); } - late final _Mat_SetShort3Ptr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int16)>>( - 'Mat_SetShort3'); - late final _Mat_SetShort3 = - _Mat_SetShort3Ptr.asFunction Function(Mat, int, int, int, int)>(); + late final _Mat_SetShort3Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int16)>>('Mat_SetShort3'); + late final _Mat_SetShort3 = _Mat_SetShort3Ptr.asFunction< + ffi.Pointer Function(Mat, int, int, int, int)>(); ffi.Pointer Mat_SetTo( Mat m, @@ -11105,8 +12339,10 @@ class CvNative { } late final _Mat_SetToPtr = - _lookup Function(Mat, Scalar)>>('Mat_SetTo'); - late final _Mat_SetTo = _Mat_SetToPtr.asFunction Function(Mat, Scalar)>(); + _lookup Function(Mat, Scalar)>>( + 'Mat_SetTo'); + late final _Mat_SetTo = + _Mat_SetToPtr.asFunction Function(Mat, Scalar)>(); ffi.Pointer Mat_SetUChar( Mat m, @@ -11122,11 +12358,12 @@ class CvNative { ); } - late final _Mat_SetUCharPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Uint8)>>( - 'Mat_SetUChar'); - late final _Mat_SetUChar = - _Mat_SetUCharPtr.asFunction Function(Mat, int, int, int)>(); + late final _Mat_SetUCharPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Uint8)>>('Mat_SetUChar'); + late final _Mat_SetUChar = _Mat_SetUCharPtr.asFunction< + ffi.Pointer Function(Mat, int, int, int)>(); ffi.Pointer Mat_SetUChar3( Mat m, @@ -11144,11 +12381,12 @@ class CvNative { ); } - late final _Mat_SetUChar3Ptr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Uint8)>>( - 'Mat_SetUChar3'); - late final _Mat_SetUChar3 = - _Mat_SetUChar3Ptr.asFunction Function(Mat, int, int, int, int)>(); + late final _Mat_SetUChar3Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Uint8)>>('Mat_SetUChar3'); + late final _Mat_SetUChar3 = _Mat_SetUChar3Ptr.asFunction< + ffi.Pointer Function(Mat, int, int, int, int)>(); ffi.Pointer Mat_SetUShort( Mat m, @@ -11164,11 +12402,12 @@ class CvNative { ); } - late final _Mat_SetUShortPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Uint16)>>( - 'Mat_SetUShort'); - late final _Mat_SetUShort = - _Mat_SetUShortPtr.asFunction Function(Mat, int, int, int)>(); + late final _Mat_SetUShortPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Uint16)>>('Mat_SetUShort'); + late final _Mat_SetUShort = _Mat_SetUShortPtr.asFunction< + ffi.Pointer Function(Mat, int, int, int)>(); ffi.Pointer Mat_SetUShort3( Mat m, @@ -11186,11 +12425,12 @@ class CvNative { ); } - late final _Mat_SetUShort3Ptr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Uint16)>>( - 'Mat_SetUShort3'); - late final _Mat_SetUShort3 = - _Mat_SetUShort3Ptr.asFunction Function(Mat, int, int, int, int)>(); + late final _Mat_SetUShort3Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Uint16)>>('Mat_SetUShort3'); + late final _Mat_SetUShort3 = _Mat_SetUShort3Ptr.asFunction< + ffi.Pointer Function(Mat, int, int, int, int)>(); ffi.Pointer Mat_SetVec2b( Mat m, @@ -11206,11 +12446,12 @@ class CvNative { ); } - late final _Mat_SetVec2bPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec2b)>>( - 'Mat_SetVec2b'); - late final _Mat_SetVec2b = - _Mat_SetVec2bPtr.asFunction Function(Mat, int, int, Vec2b)>(); + late final _Mat_SetVec2bPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec2b)>>('Mat_SetVec2b'); + late final _Mat_SetVec2b = _Mat_SetVec2bPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec2b)>(); ffi.Pointer Mat_SetVec2d( Mat m, @@ -11226,11 +12467,12 @@ class CvNative { ); } - late final _Mat_SetVec2dPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec2d)>>( - 'Mat_SetVec2d'); - late final _Mat_SetVec2d = - _Mat_SetVec2dPtr.asFunction Function(Mat, int, int, Vec2d)>(); + late final _Mat_SetVec2dPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec2d)>>('Mat_SetVec2d'); + late final _Mat_SetVec2d = _Mat_SetVec2dPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec2d)>(); ffi.Pointer Mat_SetVec2f( Mat m, @@ -11246,11 +12488,12 @@ class CvNative { ); } - late final _Mat_SetVec2fPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec2f)>>( - 'Mat_SetVec2f'); - late final _Mat_SetVec2f = - _Mat_SetVec2fPtr.asFunction Function(Mat, int, int, Vec2f)>(); + late final _Mat_SetVec2fPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec2f)>>('Mat_SetVec2f'); + late final _Mat_SetVec2f = _Mat_SetVec2fPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec2f)>(); ffi.Pointer Mat_SetVec2i( Mat m, @@ -11266,11 +12509,12 @@ class CvNative { ); } - late final _Mat_SetVec2iPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec2i)>>( - 'Mat_SetVec2i'); - late final _Mat_SetVec2i = - _Mat_SetVec2iPtr.asFunction Function(Mat, int, int, Vec2i)>(); + late final _Mat_SetVec2iPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec2i)>>('Mat_SetVec2i'); + late final _Mat_SetVec2i = _Mat_SetVec2iPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec2i)>(); ffi.Pointer Mat_SetVec2s( Mat m, @@ -11286,11 +12530,12 @@ class CvNative { ); } - late final _Mat_SetVec2sPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec2s)>>( - 'Mat_SetVec2s'); - late final _Mat_SetVec2s = - _Mat_SetVec2sPtr.asFunction Function(Mat, int, int, Vec2s)>(); + late final _Mat_SetVec2sPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec2s)>>('Mat_SetVec2s'); + late final _Mat_SetVec2s = _Mat_SetVec2sPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec2s)>(); ffi.Pointer Mat_SetVec2w( Mat m, @@ -11306,11 +12551,12 @@ class CvNative { ); } - late final _Mat_SetVec2wPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec2w)>>( - 'Mat_SetVec2w'); - late final _Mat_SetVec2w = - _Mat_SetVec2wPtr.asFunction Function(Mat, int, int, Vec2w)>(); + late final _Mat_SetVec2wPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec2w)>>('Mat_SetVec2w'); + late final _Mat_SetVec2w = _Mat_SetVec2wPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec2w)>(); ffi.Pointer Mat_SetVec3b( Mat m, @@ -11326,11 +12572,12 @@ class CvNative { ); } - late final _Mat_SetVec3bPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec3b)>>( - 'Mat_SetVec3b'); - late final _Mat_SetVec3b = - _Mat_SetVec3bPtr.asFunction Function(Mat, int, int, Vec3b)>(); + late final _Mat_SetVec3bPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec3b)>>('Mat_SetVec3b'); + late final _Mat_SetVec3b = _Mat_SetVec3bPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec3b)>(); ffi.Pointer Mat_SetVec3d( Mat m, @@ -11346,11 +12593,12 @@ class CvNative { ); } - late final _Mat_SetVec3dPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec3d)>>( - 'Mat_SetVec3d'); - late final _Mat_SetVec3d = - _Mat_SetVec3dPtr.asFunction Function(Mat, int, int, Vec3d)>(); + late final _Mat_SetVec3dPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec3d)>>('Mat_SetVec3d'); + late final _Mat_SetVec3d = _Mat_SetVec3dPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec3d)>(); ffi.Pointer Mat_SetVec3f( Mat m, @@ -11366,11 +12614,12 @@ class CvNative { ); } - late final _Mat_SetVec3fPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec3f)>>( - 'Mat_SetVec3f'); - late final _Mat_SetVec3f = - _Mat_SetVec3fPtr.asFunction Function(Mat, int, int, Vec3f)>(); + late final _Mat_SetVec3fPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec3f)>>('Mat_SetVec3f'); + late final _Mat_SetVec3f = _Mat_SetVec3fPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec3f)>(); ffi.Pointer Mat_SetVec3i( Mat m, @@ -11386,11 +12635,12 @@ class CvNative { ); } - late final _Mat_SetVec3iPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec3i)>>( - 'Mat_SetVec3i'); - late final _Mat_SetVec3i = - _Mat_SetVec3iPtr.asFunction Function(Mat, int, int, Vec3i)>(); + late final _Mat_SetVec3iPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec3i)>>('Mat_SetVec3i'); + late final _Mat_SetVec3i = _Mat_SetVec3iPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec3i)>(); ffi.Pointer Mat_SetVec3s( Mat m, @@ -11406,11 +12656,12 @@ class CvNative { ); } - late final _Mat_SetVec3sPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec3s)>>( - 'Mat_SetVec3s'); - late final _Mat_SetVec3s = - _Mat_SetVec3sPtr.asFunction Function(Mat, int, int, Vec3s)>(); + late final _Mat_SetVec3sPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec3s)>>('Mat_SetVec3s'); + late final _Mat_SetVec3s = _Mat_SetVec3sPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec3s)>(); ffi.Pointer Mat_SetVec3w( Mat m, @@ -11426,11 +12677,12 @@ class CvNative { ); } - late final _Mat_SetVec3wPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec3w)>>( - 'Mat_SetVec3w'); - late final _Mat_SetVec3w = - _Mat_SetVec3wPtr.asFunction Function(Mat, int, int, Vec3w)>(); + late final _Mat_SetVec3wPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec3w)>>('Mat_SetVec3w'); + late final _Mat_SetVec3w = _Mat_SetVec3wPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec3w)>(); ffi.Pointer Mat_SetVec4b( Mat m, @@ -11446,11 +12698,12 @@ class CvNative { ); } - late final _Mat_SetVec4bPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec4b)>>( - 'Mat_SetVec4b'); - late final _Mat_SetVec4b = - _Mat_SetVec4bPtr.asFunction Function(Mat, int, int, Vec4b)>(); + late final _Mat_SetVec4bPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec4b)>>('Mat_SetVec4b'); + late final _Mat_SetVec4b = _Mat_SetVec4bPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec4b)>(); ffi.Pointer Mat_SetVec4d( Mat m, @@ -11466,11 +12719,12 @@ class CvNative { ); } - late final _Mat_SetVec4dPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec4d)>>( - 'Mat_SetVec4d'); - late final _Mat_SetVec4d = - _Mat_SetVec4dPtr.asFunction Function(Mat, int, int, Vec4d)>(); + late final _Mat_SetVec4dPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec4d)>>('Mat_SetVec4d'); + late final _Mat_SetVec4d = _Mat_SetVec4dPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec4d)>(); ffi.Pointer Mat_SetVec4f( Mat m, @@ -11486,11 +12740,12 @@ class CvNative { ); } - late final _Mat_SetVec4fPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec4f)>>( - 'Mat_SetVec4f'); - late final _Mat_SetVec4f = - _Mat_SetVec4fPtr.asFunction Function(Mat, int, int, Vec4f)>(); + late final _Mat_SetVec4fPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec4f)>>('Mat_SetVec4f'); + late final _Mat_SetVec4f = _Mat_SetVec4fPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec4f)>(); ffi.Pointer Mat_SetVec4i( Mat m, @@ -11506,11 +12761,12 @@ class CvNative { ); } - late final _Mat_SetVec4iPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec4i)>>( - 'Mat_SetVec4i'); - late final _Mat_SetVec4i = - _Mat_SetVec4iPtr.asFunction Function(Mat, int, int, Vec4i)>(); + late final _Mat_SetVec4iPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec4i)>>('Mat_SetVec4i'); + late final _Mat_SetVec4i = _Mat_SetVec4iPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec4i)>(); ffi.Pointer Mat_SetVec4s( Mat m, @@ -11526,11 +12782,12 @@ class CvNative { ); } - late final _Mat_SetVec4sPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec4s)>>( - 'Mat_SetVec4s'); - late final _Mat_SetVec4s = - _Mat_SetVec4sPtr.asFunction Function(Mat, int, int, Vec4s)>(); + late final _Mat_SetVec4sPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec4s)>>('Mat_SetVec4s'); + late final _Mat_SetVec4s = _Mat_SetVec4sPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec4s)>(); ffi.Pointer Mat_SetVec4w( Mat m, @@ -11546,11 +12803,12 @@ class CvNative { ); } - late final _Mat_SetVec4wPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec4w)>>( - 'Mat_SetVec4w'); - late final _Mat_SetVec4w = - _Mat_SetVec4wPtr.asFunction Function(Mat, int, int, Vec4w)>(); + late final _Mat_SetVec4wPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec4w)>>('Mat_SetVec4w'); + late final _Mat_SetVec4w = _Mat_SetVec4wPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec4w)>(); ffi.Pointer Mat_SetVec6d( Mat m, @@ -11566,11 +12824,12 @@ class CvNative { ); } - late final _Mat_SetVec6dPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec6d)>>( - 'Mat_SetVec6d'); - late final _Mat_SetVec6d = - _Mat_SetVec6dPtr.asFunction Function(Mat, int, int, Vec6d)>(); + late final _Mat_SetVec6dPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec6d)>>('Mat_SetVec6d'); + late final _Mat_SetVec6d = _Mat_SetVec6dPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec6d)>(); ffi.Pointer Mat_SetVec6f( Mat m, @@ -11586,11 +12845,12 @@ class CvNative { ); } - late final _Mat_SetVec6fPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec6f)>>( - 'Mat_SetVec6f'); - late final _Mat_SetVec6f = - _Mat_SetVec6fPtr.asFunction Function(Mat, int, int, Vec6f)>(); + late final _Mat_SetVec6fPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec6f)>>('Mat_SetVec6f'); + late final _Mat_SetVec6f = _Mat_SetVec6fPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec6f)>(); ffi.Pointer Mat_SetVec6i( Mat m, @@ -11606,11 +12866,12 @@ class CvNative { ); } - late final _Mat_SetVec6iPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec6i)>>( - 'Mat_SetVec6i'); - late final _Mat_SetVec6i = - _Mat_SetVec6iPtr.asFunction Function(Mat, int, int, Vec6i)>(); + late final _Mat_SetVec6iPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec6i)>>('Mat_SetVec6i'); + late final _Mat_SetVec6i = _Mat_SetVec6iPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec6i)>(); ffi.Pointer Mat_SetVec8i( Mat m, @@ -11626,11 +12887,12 @@ class CvNative { ); } - late final _Mat_SetVec8iPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec8i)>>( - 'Mat_SetVec8i'); - late final _Mat_SetVec8i = - _Mat_SetVec8iPtr.asFunction Function(Mat, int, int, Vec8i)>(); + late final _Mat_SetVec8iPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec8i)>>('Mat_SetVec8i'); + late final _Mat_SetVec8i = _Mat_SetVec8iPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec8i)>(); ffi.Pointer Mat_Size( Mat m, @@ -11642,9 +12904,12 @@ class CvNative { ); } - late final _Mat_SizePtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Size'); - late final _Mat_Size = _Mat_SizePtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_Size'); + late final _Mat_Size = _Mat_SizePtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Solve( Mat src1, @@ -11663,10 +12928,12 @@ class CvNative { } late final _Mat_SolvePtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat, ffi.Int, ffi.Pointer)>>( - 'Mat_Solve'); - late final _Mat_Solve = - _Mat_SolvePtr.asFunction Function(Mat, Mat, Mat, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Int, ffi.Pointer)>>('Mat_Solve'); + late final _Mat_Solve = _Mat_SolvePtr.asFunction< + ffi.Pointer Function( + Mat, Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer Mat_SolveCubic( Mat coeffs, @@ -11680,11 +12947,12 @@ class CvNative { ); } - late final _Mat_SolveCubicPtr = - _lookup Function(Mat, Mat, ffi.Pointer)>>( - 'Mat_SolveCubic'); - late final _Mat_SolveCubic = - _Mat_SolveCubicPtr.asFunction Function(Mat, Mat, ffi.Pointer)>(); + late final _Mat_SolveCubicPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Pointer)>>('Mat_SolveCubic'); + late final _Mat_SolveCubic = _Mat_SolveCubicPtr.asFunction< + ffi.Pointer Function(Mat, Mat, ffi.Pointer)>(); ffi.Pointer Mat_SolvePoly( Mat coeffs, @@ -11700,11 +12968,12 @@ class CvNative { ); } - late final _Mat_SolvePolyPtr = - _lookup Function(Mat, Mat, ffi.Int, ffi.Pointer)>>( - 'Mat_SolvePoly'); - late final _Mat_SolvePoly = - _Mat_SolvePolyPtr.asFunction Function(Mat, Mat, int, ffi.Pointer)>(); + late final _Mat_SolvePolyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Pointer)>>('Mat_SolvePoly'); + late final _Mat_SolvePoly = _Mat_SolvePolyPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer Mat_Sort( Mat src, @@ -11718,9 +12987,11 @@ class CvNative { ); } - late final _Mat_SortPtr = - _lookup Function(Mat, Mat, ffi.Int)>>('Mat_Sort'); - late final _Mat_Sort = _Mat_SortPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_SortPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_Sort'); + late final _Mat_Sort = + _Mat_SortPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_SortIdx( Mat src, @@ -11734,9 +13005,11 @@ class CvNative { ); } - late final _Mat_SortIdxPtr = - _lookup Function(Mat, Mat, ffi.Int)>>('Mat_SortIdx'); - late final _Mat_SortIdx = _Mat_SortIdxPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_SortIdxPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_SortIdx'); + late final _Mat_SortIdx = _Mat_SortIdxPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int)>(); ffi.Pointer Mat_Split( Mat src, @@ -11748,10 +13021,12 @@ class CvNative { ); } - late final _Mat_SplitPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Split'); - late final _Mat_Split = - _Mat_SplitPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_SplitPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_Split'); + late final _Mat_Split = _Mat_SplitPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Sqrt( Mat m, @@ -11763,9 +13038,11 @@ class CvNative { ); } - late final _Mat_SqrtPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Sqrt'); - late final _Mat_Sqrt = _Mat_SqrtPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_SqrtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>>('Mat_Sqrt'); + late final _Mat_Sqrt = _Mat_SqrtPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Step( Mat m, @@ -11777,9 +13054,12 @@ class CvNative { ); } - late final _Mat_StepPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Step'); - late final _Mat_Step = _Mat_StepPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_StepPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_Step'); + late final _Mat_Step = _Mat_StepPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Subtract( Mat src1, @@ -11793,9 +13073,11 @@ class CvNative { ); } - late final _Mat_SubtractPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_Subtract'); - late final _Mat_Subtract = _Mat_SubtractPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_SubtractPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_Subtract'); + late final _Mat_Subtract = _Mat_SubtractPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_SubtractF64( Mat m, @@ -11807,9 +13089,11 @@ class CvNative { ); } - late final _Mat_SubtractF64Ptr = - _lookup Function(Mat, double_t)>>('Mat_SubtractF64'); - late final _Mat_SubtractF64 = _Mat_SubtractF64Ptr.asFunction Function(Mat, double)>(); + late final _Mat_SubtractF64Ptr = _lookup< + ffi.NativeFunction Function(Mat, double_t)>>( + 'Mat_SubtractF64'); + late final _Mat_SubtractF64 = _Mat_SubtractF64Ptr.asFunction< + ffi.Pointer Function(Mat, double)>(); ffi.Pointer Mat_SubtractFloat( Mat m, @@ -11822,9 +13106,10 @@ class CvNative { } late final _Mat_SubtractFloatPtr = - _lookup Function(Mat, float_t)>>('Mat_SubtractFloat'); - late final _Mat_SubtractFloat = - _Mat_SubtractFloatPtr.asFunction Function(Mat, double)>(); + _lookup Function(Mat, float_t)>>( + 'Mat_SubtractFloat'); + late final _Mat_SubtractFloat = _Mat_SubtractFloatPtr.asFunction< + ffi.Pointer Function(Mat, double)>(); ffi.Pointer Mat_SubtractI32( Mat m, @@ -11836,9 +13121,11 @@ class CvNative { ); } - late final _Mat_SubtractI32Ptr = - _lookup Function(Mat, ffi.Int32)>>('Mat_SubtractI32'); - late final _Mat_SubtractI32 = _Mat_SubtractI32Ptr.asFunction Function(Mat, int)>(); + late final _Mat_SubtractI32Ptr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Int32)>>( + 'Mat_SubtractI32'); + late final _Mat_SubtractI32 = _Mat_SubtractI32Ptr.asFunction< + ffi.Pointer Function(Mat, int)>(); ffi.Pointer Mat_SubtractSChar( Mat m, @@ -11850,10 +13137,11 @@ class CvNative { ); } - late final _Mat_SubtractSCharPtr = - _lookup Function(Mat, ffi.Int8)>>('Mat_SubtractSChar'); - late final _Mat_SubtractSChar = - _Mat_SubtractSCharPtr.asFunction Function(Mat, int)>(); + late final _Mat_SubtractSCharPtr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Int8)>>( + 'Mat_SubtractSChar'); + late final _Mat_SubtractSChar = _Mat_SubtractSCharPtr.asFunction< + ffi.Pointer Function(Mat, int)>(); ffi.Pointer Mat_SubtractUChar( Mat m, @@ -11865,10 +13153,11 @@ class CvNative { ); } - late final _Mat_SubtractUCharPtr = - _lookup Function(Mat, ffi.Uint8)>>('Mat_SubtractUChar'); - late final _Mat_SubtractUChar = - _Mat_SubtractUCharPtr.asFunction Function(Mat, int)>(); + late final _Mat_SubtractUCharPtr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Uint8)>>( + 'Mat_SubtractUChar'); + late final _Mat_SubtractUChar = _Mat_SubtractUCharPtr.asFunction< + ffi.Pointer Function(Mat, int)>(); ffi.Pointer Mat_Sum( Mat src, @@ -11880,9 +13169,11 @@ class CvNative { ); } - late final _Mat_SumPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Sum'); - late final _Mat_Sum = _Mat_SumPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_SumPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>>('Mat_Sum'); + late final _Mat_Sum = _Mat_SumPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_T( Mat x, @@ -11894,9 +13185,11 @@ class CvNative { ); } - late final _Mat_TPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_T'); - late final _Mat_T = _Mat_TPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_TPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>>('Mat_T'); + late final _Mat_T = _Mat_TPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_ToVecChar( Mat m, @@ -11908,10 +13201,12 @@ class CvNative { ); } - late final _Mat_ToVecCharPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_ToVecChar'); - late final _Mat_ToVecChar = - _Mat_ToVecCharPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_ToVecCharPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_ToVecChar'); + late final _Mat_ToVecChar = _Mat_ToVecCharPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_ToVecUChar( Mat m, @@ -11923,11 +13218,12 @@ class CvNative { ); } - late final _Mat_ToVecUCharPtr = - _lookup Function(Mat, ffi.Pointer)>>( - 'Mat_ToVecUChar'); - late final _Mat_ToVecUChar = - _Mat_ToVecUCharPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_ToVecUCharPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_ToVecUChar'); + late final _Mat_ToVecUChar = _Mat_ToVecUCharPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Total( Mat m, @@ -11939,10 +13235,12 @@ class CvNative { ); } - late final _Mat_TotalPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Total'); - late final _Mat_Total = - _Mat_TotalPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_TotalPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_Total'); + late final _Mat_Total = _Mat_TotalPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Trace( Mat src, @@ -11954,10 +13252,12 @@ class CvNative { ); } - late final _Mat_TracePtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Trace'); - late final _Mat_Trace = - _Mat_TracePtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_TracePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_Trace'); + late final _Mat_Trace = _Mat_TracePtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Transform( Mat src, @@ -11971,9 +13271,11 @@ class CvNative { ); } - late final _Mat_TransformPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_Transform'); - late final _Mat_Transform = _Mat_TransformPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_TransformPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_Transform'); + late final _Mat_Transform = _Mat_TransformPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_Transpose( Mat src, @@ -11986,8 +13288,10 @@ class CvNative { } late final _Mat_TransposePtr = - _lookup Function(Mat, Mat)>>('Mat_Transpose'); - late final _Mat_Transpose = _Mat_TransposePtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'Mat_Transpose'); + late final _Mat_Transpose = + _Mat_TransposePtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_Type( Mat m, @@ -11999,9 +13303,12 @@ class CvNative { ); } - late final _Mat_TypePtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Type'); - late final _Mat_Type = _Mat_TypePtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_TypePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_Type'); + late final _Mat_Type = _Mat_TypePtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Vconcat( Mat src1, @@ -12015,9 +13322,11 @@ class CvNative { ); } - late final _Mat_VconcatPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_Vconcat'); - late final _Mat_Vconcat = _Mat_VconcatPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_VconcatPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_Vconcat'); + late final _Mat_Vconcat = _Mat_VconcatPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_colRange( Mat m, @@ -12033,11 +13342,12 @@ class CvNative { ); } - late final _Mat_colRangePtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_colRange'); - late final _Mat_colRange = - _Mat_colRangePtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_colRangePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_colRange'); + late final _Mat_colRange = _Mat_colRangePtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_rowRange( Mat m, @@ -12053,11 +13363,12 @@ class CvNative { ); } - late final _Mat_rowRangePtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_rowRange'); - late final _Mat_rowRange = - _Mat_rowRangePtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_rowRangePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_rowRange'); + late final _Mat_rowRange = _Mat_rowRangePtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer MatchShapes( VecPoint contour1, @@ -12077,10 +13388,11 @@ class CvNative { late final _MatchShapesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, VecPoint, ffi.Int, ffi.Double, ffi.Pointer)>>('MatchShapes'); + ffi.Pointer Function(VecPoint, VecPoint, ffi.Int, + ffi.Double, ffi.Pointer)>>('MatchShapes'); late final _MatchShapes = _MatchShapesPtr.asFunction< - ffi.Pointer Function(VecPoint, VecPoint, int, double, ffi.Pointer)>(); + ffi.Pointer Function( + VecPoint, VecPoint, int, double, ffi.Pointer)>(); ffi.Pointer MatchTemplate( Mat image, @@ -12098,11 +13410,12 @@ class CvNative { ); } - late final _MatchTemplatePtr = - _lookup Function(Mat, Mat, Mat, ffi.Int, Mat)>>( - 'MatchTemplate'); - late final _MatchTemplate = - _MatchTemplatePtr.asFunction Function(Mat, Mat, Mat, int, Mat)>(); + late final _MatchTemplatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Int, Mat)>>('MatchTemplate'); + late final _MatchTemplate = _MatchTemplatePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, int, Mat)>(); ffi.Pointer MedianBlur( Mat src, @@ -12116,9 +13429,11 @@ class CvNative { ); } - late final _MedianBlurPtr = - _lookup Function(Mat, Mat, ffi.Int)>>('MedianBlur'); - late final _MedianBlur = _MedianBlurPtr.asFunction Function(Mat, Mat, int)>(); + late final _MedianBlurPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int)>>('MedianBlur'); + late final _MedianBlur = _MedianBlurPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int)>(); void MergeMertens_Close( MergeMertensPtr b, @@ -12129,8 +13444,10 @@ class CvNative { } late final _MergeMertens_ClosePtr = - _lookup>('MergeMertens_Close'); - late final _MergeMertens_Close = _MergeMertens_ClosePtr.asFunction(); + _lookup>( + 'MergeMertens_Close'); + late final _MergeMertens_Close = + _MergeMertens_ClosePtr.asFunction(); ffi.Pointer MergeMertens_Create( ffi.Pointer rval, @@ -12140,11 +13457,12 @@ class CvNative { ); } - late final _MergeMertens_CreatePtr = - _lookup Function(ffi.Pointer)>>( - 'MergeMertens_Create'); - late final _MergeMertens_Create = - _MergeMertens_CreatePtr.asFunction Function(ffi.Pointer)>(); + late final _MergeMertens_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('MergeMertens_Create'); + late final _MergeMertens_Create = _MergeMertens_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer MergeMertens_CreateWithParams( double contrast_weight, @@ -12162,10 +13480,12 @@ class CvNative { late final _MergeMertens_CreateWithParamsPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(ffi.Float, ffi.Float, ffi.Float, + ffi.Pointer)>>('MergeMertens_CreateWithParams'); + late final _MergeMertens_CreateWithParams = + _MergeMertens_CreateWithParamsPtr.asFunction< ffi.Pointer Function( - ffi.Float, ffi.Float, ffi.Float, ffi.Pointer)>>('MergeMertens_CreateWithParams'); - late final _MergeMertens_CreateWithParams = _MergeMertens_CreateWithParamsPtr.asFunction< - ffi.Pointer Function(double, double, double, ffi.Pointer)>(); + double, double, double, ffi.Pointer)>(); ffi.Pointer MergeMertens_Process( MergeMertens b, @@ -12179,11 +13499,12 @@ class CvNative { ); } - late final _MergeMertens_ProcessPtr = - _lookup Function(MergeMertens, VecMat, Mat)>>( - 'MergeMertens_Process'); - late final _MergeMertens_Process = - _MergeMertens_ProcessPtr.asFunction Function(MergeMertens, VecMat, Mat)>(); + late final _MergeMertens_ProcessPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + MergeMertens, VecMat, Mat)>>('MergeMertens_Process'); + late final _MergeMertens_Process = _MergeMertens_ProcessPtr.asFunction< + ffi.Pointer Function(MergeMertens, VecMat, Mat)>(); ffi.Pointer MinAreaRect( VecPoint pts, @@ -12195,11 +13516,12 @@ class CvNative { ); } - late final _MinAreaRectPtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'MinAreaRect'); - late final _MinAreaRect = - _MinAreaRectPtr.asFunction Function(VecPoint, ffi.Pointer)>(); + late final _MinAreaRectPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('MinAreaRect'); + late final _MinAreaRect = _MinAreaRectPtr.asFunction< + ffi.Pointer Function(VecPoint, ffi.Pointer)>(); ffi.Pointer MinEnclosingCircle( VecPoint pts, @@ -12215,10 +13537,11 @@ class CvNative { late final _MinEnclosingCirclePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer, ffi.Pointer)>>('MinEnclosingCircle'); + ffi.Pointer Function(VecPoint, ffi.Pointer, + ffi.Pointer)>>('MinEnclosingCircle'); late final _MinEnclosingCircle = _MinEnclosingCirclePtr.asFunction< - ffi.Pointer Function(VecPoint, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + VecPoint, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Moments( Mat src, @@ -12232,11 +13555,12 @@ class CvNative { ); } - late final _MomentsPtr = - _lookup Function(Mat, ffi.Bool, ffi.Pointer)>>( - 'Moments'); - late final _Moments = - _MomentsPtr.asFunction Function(Mat, bool, ffi.Pointer)>(); + late final _MomentsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Bool, ffi.Pointer)>>('Moments'); + late final _Moments = _MomentsPtr.asFunction< + ffi.Pointer Function(Mat, bool, ffi.Pointer)>(); ffi.Pointer MorphologyDefaultBorderValue( ffi.Pointer rval, @@ -12246,11 +13570,12 @@ class CvNative { ); } - late final _MorphologyDefaultBorderValuePtr = - _lookup Function(ffi.Pointer)>>( - 'MorphologyDefaultBorderValue'); - late final _MorphologyDefaultBorderValue = - _MorphologyDefaultBorderValuePtr.asFunction Function(ffi.Pointer)>(); + late final _MorphologyDefaultBorderValuePtr = _lookup< + ffi + .NativeFunction Function(ffi.Pointer)>>( + 'MorphologyDefaultBorderValue'); + late final _MorphologyDefaultBorderValue = _MorphologyDefaultBorderValuePtr + .asFunction Function(ffi.Pointer)>(); ffi.Pointer MorphologyEx( Mat src, @@ -12266,10 +13591,12 @@ class CvNative { ); } - late final _MorphologyExPtr = - _lookup Function(Mat, Mat, ffi.Int, Mat)>>('MorphologyEx'); - late final _MorphologyEx = - _MorphologyExPtr.asFunction Function(Mat, Mat, int, Mat)>(); + late final _MorphologyExPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Int, Mat)>>('MorphologyEx'); + late final _MorphologyEx = _MorphologyExPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, Mat)>(); ffi.Pointer MorphologyExWithParams( Mat src, @@ -12295,10 +13622,11 @@ class CvNative { late final _MorphologyExWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, Mat, Point, ffi.Int, ffi.Int, Scalar)>>('MorphologyExWithParams'); + ffi.Pointer Function(Mat, Mat, ffi.Int, Mat, Point, ffi.Int, + ffi.Int, Scalar)>>('MorphologyExWithParams'); late final _MorphologyExWithParams = _MorphologyExWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, Mat, Point, int, int, Scalar)>(); + ffi.Pointer Function( + Mat, Mat, int, Mat, Point, int, int, Scalar)>(); ffi.Pointer NMSBoxes( VecRect bboxes, @@ -12318,10 +13646,11 @@ class CvNative { late final _NMSBoxesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecRect, VecFloat, ffi.Float, ffi.Float, ffi.Pointer)>>('NMSBoxes'); + ffi.Pointer Function(VecRect, VecFloat, ffi.Float, + ffi.Float, ffi.Pointer)>>('NMSBoxes'); late final _NMSBoxes = _NMSBoxesPtr.asFunction< - ffi.Pointer Function(VecRect, VecFloat, double, double, ffi.Pointer)>(); + ffi.Pointer Function( + VecRect, VecFloat, double, double, ffi.Pointer)>(); ffi.Pointer NMSBoxesWithParams( VecRect bboxes, @@ -12345,10 +13674,17 @@ class CvNative { late final _NMSBoxesWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecRect, VecFloat, ffi.Float, ffi.Float, ffi.Pointer, - ffi.Float, ffi.Int)>>('NMSBoxesWithParams'); + ffi.Pointer Function( + VecRect, + VecFloat, + ffi.Float, + ffi.Float, + ffi.Pointer, + ffi.Float, + ffi.Int)>>('NMSBoxesWithParams'); late final _NMSBoxesWithParams = _NMSBoxesWithParamsPtr.asFunction< - ffi.Pointer Function(VecRect, VecFloat, double, double, ffi.Pointer, double, int)>(); + ffi.Pointer Function(VecRect, VecFloat, double, double, + ffi.Pointer, double, int)>(); ffi.Pointer NMSBoxesWithParams_Async( VecRect bboxes, @@ -12372,10 +13708,18 @@ class CvNative { late final _NMSBoxesWithParams_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecRect, VecFloat, ffi.Float, ffi.Float, ffi.Float, ffi.Int, + ffi.Pointer Function( + VecRect, + VecFloat, + ffi.Float, + ffi.Float, + ffi.Float, + ffi.Int, CvCallback_1)>>('NMSBoxesWithParams_Async'); - late final _NMSBoxesWithParams_Async = _NMSBoxesWithParams_AsyncPtr.asFunction< - ffi.Pointer Function(VecRect, VecFloat, double, double, double, int, CvCallback_1)>(); + late final _NMSBoxesWithParams_Async = + _NMSBoxesWithParams_AsyncPtr.asFunction< + ffi.Pointer Function( + VecRect, VecFloat, double, double, double, int, CvCallback_1)>(); ffi.Pointer NMSBoxes_Async( VecRect bboxes, @@ -12395,10 +13739,11 @@ class CvNative { late final _NMSBoxes_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecRect, VecFloat, ffi.Float, ffi.Float, CvCallback_1)>>('NMSBoxes_Async'); + ffi.Pointer Function(VecRect, VecFloat, ffi.Float, + ffi.Float, CvCallback_1)>>('NMSBoxes_Async'); late final _NMSBoxes_Async = _NMSBoxes_AsyncPtr.asFunction< - ffi.Pointer Function(VecRect, VecFloat, double, double, CvCallback_1)>(); + ffi.Pointer Function( + VecRect, VecFloat, double, double, CvCallback_1)>(); ffi.Pointer Net_BlobFromImage( Mat image, @@ -12424,10 +13769,11 @@ class CvNative { late final _Net_BlobFromImagePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Double, Size, Scalar, ffi.Bool, ffi.Bool, ffi.Int)>>('Net_BlobFromImage'); + ffi.Pointer Function(Mat, Mat, ffi.Double, Size, Scalar, + ffi.Bool, ffi.Bool, ffi.Int)>>('Net_BlobFromImage'); late final _Net_BlobFromImage = _Net_BlobFromImagePtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, Size, Scalar, bool, bool, int)>(); + ffi.Pointer Function( + Mat, Mat, double, Size, Scalar, bool, bool, int)>(); ffi.Pointer Net_BlobFromImage_Async( Mat image, @@ -12453,10 +13799,18 @@ class CvNative { late final _Net_BlobFromImage_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Double, Size, Scalar, ffi.Bool, ffi.Bool, ffi.Int, + ffi.Pointer Function( + Mat, + ffi.Double, + Size, + Scalar, + ffi.Bool, + ffi.Bool, + ffi.Int, CvCallback_1)>>('Net_BlobFromImage_Async'); late final _Net_BlobFromImage_Async = _Net_BlobFromImage_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, double, Size, Scalar, bool, bool, int, CvCallback_1)>(); + ffi.Pointer Function( + Mat, double, Size, Scalar, bool, bool, int, CvCallback_1)>(); ffi.Pointer Net_BlobFromImages( VecMat images, @@ -12482,10 +13836,11 @@ class CvNative { late final _Net_BlobFromImagesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecMat, Mat, ffi.Double, Size, Scalar, ffi.Bool, ffi.Bool, ffi.Int)>>('Net_BlobFromImages'); + ffi.Pointer Function(VecMat, Mat, ffi.Double, Size, Scalar, + ffi.Bool, ffi.Bool, ffi.Int)>>('Net_BlobFromImages'); late final _Net_BlobFromImages = _Net_BlobFromImagesPtr.asFunction< - ffi.Pointer Function(VecMat, Mat, double, Size, Scalar, bool, bool, int)>(); + ffi.Pointer Function( + VecMat, Mat, double, Size, Scalar, bool, bool, int)>(); ffi.Pointer Net_BlobFromImages_Async( VecMat images, @@ -12511,10 +13866,19 @@ class CvNative { late final _Net_BlobFromImages_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecMat, ffi.Double, Size, Scalar, ffi.Bool, ffi.Bool, ffi.Int, + ffi.Pointer Function( + VecMat, + ffi.Double, + Size, + Scalar, + ffi.Bool, + ffi.Bool, + ffi.Int, CvCallback_1)>>('Net_BlobFromImages_Async'); - late final _Net_BlobFromImages_Async = _Net_BlobFromImages_AsyncPtr.asFunction< - ffi.Pointer Function(VecMat, double, Size, Scalar, bool, bool, int, CvCallback_1)>(); + late final _Net_BlobFromImages_Async = + _Net_BlobFromImages_AsyncPtr.asFunction< + ffi.Pointer Function( + VecMat, double, Size, Scalar, bool, bool, int, CvCallback_1)>(); void Net_Close( NetPtr net, @@ -12524,7 +13888,8 @@ class CvNative { ); } - late final _Net_ClosePtr = _lookup>('Net_Close'); + late final _Net_ClosePtr = + _lookup>('Net_Close'); late final _Net_Close = _Net_ClosePtr.asFunction(); void Net_Close_Async( @@ -12538,8 +13903,10 @@ class CvNative { } late final _Net_Close_AsyncPtr = - _lookup>('Net_Close_Async'); - late final _Net_Close_Async = _Net_Close_AsyncPtr.asFunction(); + _lookup>( + 'Net_Close_Async'); + late final _Net_Close_Async = + _Net_Close_AsyncPtr.asFunction(); ffi.Pointer Net_Create( ffi.Pointer rval, @@ -12549,9 +13916,11 @@ class CvNative { ); } - late final _Net_CreatePtr = - _lookup Function(ffi.Pointer)>>('Net_Create'); - late final _Net_Create = _Net_CreatePtr.asFunction Function(ffi.Pointer)>(); + late final _Net_CreatePtr = _lookup< + ffi.NativeFunction Function(ffi.Pointer)>>( + 'Net_Create'); + late final _Net_Create = _Net_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer Net_Create_Async( CvCallback_1 callback, @@ -12562,9 +13931,10 @@ class CvNative { } late final _Net_Create_AsyncPtr = - _lookup Function(CvCallback_1)>>('Net_Create_Async'); - late final _Net_Create_Async = - _Net_Create_AsyncPtr.asFunction Function(CvCallback_1)>(); + _lookup Function(CvCallback_1)>>( + 'Net_Create_Async'); + late final _Net_Create_Async = _Net_Create_AsyncPtr.asFunction< + ffi.Pointer Function(CvCallback_1)>(); ffi.Pointer Net_Dump( Net net, @@ -12576,11 +13946,13 @@ class CvNative { ); } - late final _Net_DumpPtr = - _lookup Function(Net, ffi.Pointer>)>>( - 'Net_Dump'); - late final _Net_Dump = - _Net_DumpPtr.asFunction Function(Net, ffi.Pointer>)>(); + late final _Net_DumpPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Pointer>)>>('Net_Dump'); + late final _Net_Dump = _Net_DumpPtr.asFunction< + ffi.Pointer Function( + Net, ffi.Pointer>)>(); ffi.Pointer Net_Dump_Async( Net net, @@ -12592,10 +13964,11 @@ class CvNative { ); } - late final _Net_Dump_AsyncPtr = - _lookup Function(Net, CvCallback_1)>>('Net_Dump_Async'); - late final _Net_Dump_Async = - _Net_Dump_AsyncPtr.asFunction Function(Net, CvCallback_1)>(); + late final _Net_Dump_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Net, CvCallback_1)>>('Net_Dump_Async'); + late final _Net_Dump_Async = _Net_Dump_AsyncPtr.asFunction< + ffi.Pointer Function(Net, CvCallback_1)>(); ffi.Pointer Net_Empty( Net net, @@ -12607,10 +13980,12 @@ class CvNative { ); } - late final _Net_EmptyPtr = - _lookup Function(Net, ffi.Pointer)>>('Net_Empty'); - late final _Net_Empty = - _Net_EmptyPtr.asFunction Function(Net, ffi.Pointer)>(); + late final _Net_EmptyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Pointer)>>('Net_Empty'); + late final _Net_Empty = _Net_EmptyPtr.asFunction< + ffi.Pointer Function(Net, ffi.Pointer)>(); ffi.Pointer Net_Empty_Async( Net net, @@ -12622,10 +13997,12 @@ class CvNative { ); } - late final _Net_Empty_AsyncPtr = - _lookup Function(Net, CvCallback_1)>>('Net_Empty_Async'); - late final _Net_Empty_Async = - _Net_Empty_AsyncPtr.asFunction Function(Net, CvCallback_1)>(); + late final _Net_Empty_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Net, CvCallback_1)>>( + 'Net_Empty_Async'); + late final _Net_Empty_Async = _Net_Empty_AsyncPtr.asFunction< + ffi.Pointer Function(Net, CvCallback_1)>(); ffi.Pointer Net_Forward( Net net, @@ -12640,10 +14017,12 @@ class CvNative { } late final _Net_ForwardPtr = _lookup< - ffi.NativeFunction Function(Net, ffi.Pointer, ffi.Pointer)>>( - 'Net_Forward'); + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Pointer, ffi.Pointer)>>('Net_Forward'); late final _Net_Forward = _Net_ForwardPtr.asFunction< - ffi.Pointer Function(Net, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Net, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_ForwardLayers( Net net, @@ -12657,9 +14036,10 @@ class CvNative { ); } - late final _Net_ForwardLayersPtr = - _lookup Function(Net, ffi.Pointer, VecVecChar)>>( - 'Net_ForwardLayers'); + late final _Net_ForwardLayersPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Pointer, VecVecChar)>>('Net_ForwardLayers'); late final _Net_ForwardLayers = _Net_ForwardLayersPtr.asFunction< ffi.Pointer Function(Net, ffi.Pointer, VecVecChar)>(); @@ -12675,11 +14055,12 @@ class CvNative { ); } - late final _Net_ForwardLayers_AsyncPtr = - _lookup Function(Net, VecVecChar, CvCallback_1)>>( - 'Net_ForwardLayers_Async'); - late final _Net_ForwardLayers_Async = - _Net_ForwardLayers_AsyncPtr.asFunction Function(Net, VecVecChar, CvCallback_1)>(); + late final _Net_ForwardLayers_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, VecVecChar, CvCallback_1)>>('Net_ForwardLayers_Async'); + late final _Net_ForwardLayers_Async = _Net_ForwardLayers_AsyncPtr.asFunction< + ffi.Pointer Function(Net, VecVecChar, CvCallback_1)>(); ffi.Pointer Net_Forward_Async( Net net, @@ -12693,11 +14074,13 @@ class CvNative { ); } - late final _Net_Forward_AsyncPtr = - _lookup Function(Net, ffi.Pointer, CvCallback_1)>>( - 'Net_Forward_Async'); + late final _Net_Forward_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Pointer, CvCallback_1)>>('Net_Forward_Async'); late final _Net_Forward_Async = _Net_Forward_AsyncPtr.asFunction< - ffi.Pointer Function(Net, ffi.Pointer, CvCallback_1)>(); + ffi.Pointer Function( + Net, ffi.Pointer, CvCallback_1)>(); ffi.Pointer Net_FromNet( Net net, @@ -12709,10 +14092,12 @@ class CvNative { ); } - late final _Net_FromNetPtr = - _lookup Function(Net, ffi.Pointer)>>('Net_FromNet'); - late final _Net_FromNet = - _Net_FromNetPtr.asFunction Function(Net, ffi.Pointer)>(); + late final _Net_FromNetPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Pointer)>>('Net_FromNet'); + late final _Net_FromNet = _Net_FromNetPtr.asFunction< + ffi.Pointer Function(Net, ffi.Pointer)>(); ffi.Pointer Net_FromNet_Async( Net net, @@ -12724,10 +14109,12 @@ class CvNative { ); } - late final _Net_FromNet_AsyncPtr = - _lookup Function(Net, CvCallback_1)>>('Net_FromNet_Async'); - late final _Net_FromNet_Async = - _Net_FromNet_AsyncPtr.asFunction Function(Net, CvCallback_1)>(); + late final _Net_FromNet_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Net, CvCallback_1)>>( + 'Net_FromNet_Async'); + late final _Net_FromNet_Async = _Net_FromNet_AsyncPtr.asFunction< + ffi.Pointer Function(Net, CvCallback_1)>(); ffi.Pointer Net_GetBlobChannel( Mat blob, @@ -12743,11 +14130,12 @@ class CvNative { ); } - late final _Net_GetBlobChannelPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Net_GetBlobChannel'); - late final _Net_GetBlobChannel = - _Net_GetBlobChannelPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Net_GetBlobChannelPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Net_GetBlobChannel'); + late final _Net_GetBlobChannel = _Net_GetBlobChannelPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Net_GetBlobChannel_Async( Mat blob, @@ -12763,11 +14151,13 @@ class CvNative { ); } - late final _Net_GetBlobChannel_AsyncPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, CvCallback_1)>>( - 'Net_GetBlobChannel_Async'); + late final _Net_GetBlobChannel_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, + CvCallback_1)>>('Net_GetBlobChannel_Async'); late final _Net_GetBlobChannel_Async = - _Net_GetBlobChannel_AsyncPtr.asFunction Function(Mat, int, int, CvCallback_1)>(); + _Net_GetBlobChannel_AsyncPtr.asFunction< + ffi.Pointer Function(Mat, int, int, CvCallback_1)>(); ffi.Pointer Net_GetBlobSize( Mat blob, @@ -12779,11 +14169,12 @@ class CvNative { ); } - late final _Net_GetBlobSizePtr = - _lookup Function(Mat, ffi.Pointer)>>( - 'Net_GetBlobSize'); - late final _Net_GetBlobSize = - _Net_GetBlobSizePtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Net_GetBlobSizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Net_GetBlobSize'); + late final _Net_GetBlobSize = _Net_GetBlobSizePtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Net_GetBlobSize_Async( Mat blob, @@ -12795,10 +14186,12 @@ class CvNative { ); } - late final _Net_GetBlobSize_AsyncPtr = - _lookup Function(Mat, CvCallback_1)>>('Net_GetBlobSize_Async'); - late final _Net_GetBlobSize_Async = - _Net_GetBlobSize_AsyncPtr.asFunction Function(Mat, CvCallback_1)>(); + late final _Net_GetBlobSize_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Mat, CvCallback_1)>>( + 'Net_GetBlobSize_Async'); + late final _Net_GetBlobSize_Async = _Net_GetBlobSize_AsyncPtr.asFunction< + ffi.Pointer Function(Mat, CvCallback_1)>(); ffi.Pointer Net_GetInputDetails( Net net, @@ -12813,11 +14206,12 @@ class CvNative { } late final _Net_GetInputDetailsPtr = _lookup< - ffi - .NativeFunction Function(Net, ffi.Pointer, ffi.Pointer)>>( - 'Net_GetInputDetails'); + ffi.NativeFunction< + ffi.Pointer Function(Net, ffi.Pointer, + ffi.Pointer)>>('Net_GetInputDetails'); late final _Net_GetInputDetails = _Net_GetInputDetailsPtr.asFunction< - ffi.Pointer Function(Net, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Net, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_GetInputDetails_Async( Net net, @@ -12829,11 +14223,12 @@ class CvNative { ); } - late final _Net_GetInputDetails_AsyncPtr = - _lookup Function(Net, CvCallback_2)>>( - 'Net_GetInputDetails_Async'); - late final _Net_GetInputDetails_Async = - _Net_GetInputDetails_AsyncPtr.asFunction Function(Net, CvCallback_2)>(); + late final _Net_GetInputDetails_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Net, CvCallback_2)>>( + 'Net_GetInputDetails_Async'); + late final _Net_GetInputDetails_Async = _Net_GetInputDetails_AsyncPtr + .asFunction Function(Net, CvCallback_2)>(); ffi.Pointer Net_GetLayer( Net net, @@ -12847,11 +14242,12 @@ class CvNative { ); } - late final _Net_GetLayerPtr = - _lookup Function(Net, ffi.Int, ffi.Pointer)>>( - 'Net_GetLayer'); - late final _Net_GetLayer = - _Net_GetLayerPtr.asFunction Function(Net, int, ffi.Pointer)>(); + late final _Net_GetLayerPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Int, ffi.Pointer)>>('Net_GetLayer'); + late final _Net_GetLayer = _Net_GetLayerPtr.asFunction< + ffi.Pointer Function(Net, int, ffi.Pointer)>(); ffi.Pointer Net_GetLayerNames( Net net, @@ -12863,11 +14259,12 @@ class CvNative { ); } - late final _Net_GetLayerNamesPtr = - _lookup Function(Net, ffi.Pointer)>>( - 'Net_GetLayerNames'); - late final _Net_GetLayerNames = - _Net_GetLayerNamesPtr.asFunction Function(Net, ffi.Pointer)>(); + late final _Net_GetLayerNamesPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Pointer)>>('Net_GetLayerNames'); + late final _Net_GetLayerNames = _Net_GetLayerNamesPtr.asFunction< + ffi.Pointer Function(Net, ffi.Pointer)>(); ffi.Pointer Net_GetLayerNames_Async( Net net, @@ -12879,11 +14276,12 @@ class CvNative { ); } - late final _Net_GetLayerNames_AsyncPtr = - _lookup Function(Net, CvCallback_1)>>( - 'Net_GetLayerNames_Async'); - late final _Net_GetLayerNames_Async = - _Net_GetLayerNames_AsyncPtr.asFunction Function(Net, CvCallback_1)>(); + late final _Net_GetLayerNames_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Net, CvCallback_1)>>( + 'Net_GetLayerNames_Async'); + late final _Net_GetLayerNames_Async = _Net_GetLayerNames_AsyncPtr.asFunction< + ffi.Pointer Function(Net, CvCallback_1)>(); ffi.Pointer Net_GetLayer_Async( Net net, @@ -12897,11 +14295,12 @@ class CvNative { ); } - late final _Net_GetLayer_AsyncPtr = - _lookup Function(Net, ffi.Int, CvCallback_1)>>( - 'Net_GetLayer_Async'); - late final _Net_GetLayer_Async = - _Net_GetLayer_AsyncPtr.asFunction Function(Net, int, CvCallback_1)>(); + late final _Net_GetLayer_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Int, CvCallback_1)>>('Net_GetLayer_Async'); + late final _Net_GetLayer_Async = _Net_GetLayer_AsyncPtr.asFunction< + ffi.Pointer Function(Net, int, CvCallback_1)>(); ffi.Pointer Net_GetPerfProfile( Net net, @@ -12913,11 +14312,12 @@ class CvNative { ); } - late final _Net_GetPerfProfilePtr = - _lookup Function(Net, ffi.Pointer)>>( - 'Net_GetPerfProfile'); - late final _Net_GetPerfProfile = - _Net_GetPerfProfilePtr.asFunction Function(Net, ffi.Pointer)>(); + late final _Net_GetPerfProfilePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Pointer)>>('Net_GetPerfProfile'); + late final _Net_GetPerfProfile = _Net_GetPerfProfilePtr.asFunction< + ffi.Pointer Function(Net, ffi.Pointer)>(); ffi.Pointer Net_GetPerfProfile_Async( Net net, @@ -12929,11 +14329,12 @@ class CvNative { ); } - late final _Net_GetPerfProfile_AsyncPtr = - _lookup Function(Net, CvCallback_1)>>( - 'Net_GetPerfProfile_Async'); - late final _Net_GetPerfProfile_Async = - _Net_GetPerfProfile_AsyncPtr.asFunction Function(Net, CvCallback_1)>(); + late final _Net_GetPerfProfile_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Net, CvCallback_1)>>( + 'Net_GetPerfProfile_Async'); + late final _Net_GetPerfProfile_Async = _Net_GetPerfProfile_AsyncPtr + .asFunction Function(Net, CvCallback_1)>(); ffi.Pointer Net_GetUnconnectedOutLayers( Net net, @@ -12945,11 +14346,12 @@ class CvNative { ); } - late final _Net_GetUnconnectedOutLayersPtr = - _lookup Function(Net, ffi.Pointer)>>( - 'Net_GetUnconnectedOutLayers'); - late final _Net_GetUnconnectedOutLayers = - _Net_GetUnconnectedOutLayersPtr.asFunction Function(Net, ffi.Pointer)>(); + late final _Net_GetUnconnectedOutLayersPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Pointer)>>('Net_GetUnconnectedOutLayers'); + late final _Net_GetUnconnectedOutLayers = _Net_GetUnconnectedOutLayersPtr + .asFunction Function(Net, ffi.Pointer)>(); ffi.Pointer Net_GetUnconnectedOutLayers_Async( Net net, @@ -12961,11 +14363,13 @@ class CvNative { ); } - late final _Net_GetUnconnectedOutLayers_AsyncPtr = - _lookup Function(Net, CvCallback_1)>>( - 'Net_GetUnconnectedOutLayers_Async'); + late final _Net_GetUnconnectedOutLayers_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Net, CvCallback_1)>>( + 'Net_GetUnconnectedOutLayers_Async'); late final _Net_GetUnconnectedOutLayers_Async = - _Net_GetUnconnectedOutLayers_AsyncPtr.asFunction Function(Net, CvCallback_1)>(); + _Net_GetUnconnectedOutLayers_AsyncPtr.asFunction< + ffi.Pointer Function(Net, CvCallback_1)>(); ffi.Pointer Net_ImagesFromBlob( Mat blob, @@ -12977,11 +14381,12 @@ class CvNative { ); } - late final _Net_ImagesFromBlobPtr = - _lookup Function(Mat, ffi.Pointer)>>( - 'Net_ImagesFromBlob'); - late final _Net_ImagesFromBlob = - _Net_ImagesFromBlobPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Net_ImagesFromBlobPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Net_ImagesFromBlob'); + late final _Net_ImagesFromBlob = _Net_ImagesFromBlobPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Net_ImagesFromBlob_Async( Mat blob, @@ -12993,11 +14398,12 @@ class CvNative { ); } - late final _Net_ImagesFromBlob_AsyncPtr = - _lookup Function(Mat, CvCallback_1)>>( - 'Net_ImagesFromBlob_Async'); - late final _Net_ImagesFromBlob_Async = - _Net_ImagesFromBlob_AsyncPtr.asFunction Function(Mat, CvCallback_1)>(); + late final _Net_ImagesFromBlob_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Mat, CvCallback_1)>>( + 'Net_ImagesFromBlob_Async'); + late final _Net_ImagesFromBlob_Async = _Net_ImagesFromBlob_AsyncPtr + .asFunction Function(Mat, CvCallback_1)>(); ffi.Pointer Net_ReadNet( ffi.Pointer model, @@ -13015,11 +14421,14 @@ class CvNative { late final _Net_ReadNetPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('Net_ReadNet'); late final _Net_ReadNet = _Net_ReadNetPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_ReadNetBytes( ffi.Pointer framework, @@ -13037,10 +14446,11 @@ class CvNative { late final _Net_ReadNetBytesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, VecUChar, VecUChar, ffi.Pointer)>>('Net_ReadNetBytes'); + ffi.Pointer Function(ffi.Pointer, VecUChar, + VecUChar, ffi.Pointer)>>('Net_ReadNetBytes'); late final _Net_ReadNetBytes = _Net_ReadNetBytesPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, VecUChar, VecUChar, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, VecUChar, VecUChar, ffi.Pointer)>(); ffi.Pointer Net_ReadNetBytes_Async( ffi.Pointer framework, @@ -13058,10 +14468,11 @@ class CvNative { late final _Net_ReadNetBytes_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, VecUChar, VecUChar, CvCallback_1)>>('Net_ReadNetBytes_Async'); + ffi.Pointer Function(ffi.Pointer, VecUChar, + VecUChar, CvCallback_1)>>('Net_ReadNetBytes_Async'); late final _Net_ReadNetBytes_Async = _Net_ReadNetBytes_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, VecUChar, VecUChar, CvCallback_1)>(); + ffi.Pointer Function( + ffi.Pointer, VecUChar, VecUChar, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromCaffe( ffi.Pointer prototxt, @@ -13078,9 +14489,12 @@ class CvNative { late final _Net_ReadNetFromCaffePtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('Net_ReadNetFromCaffe'); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('Net_ReadNetFromCaffe'); late final _Net_ReadNetFromCaffe = _Net_ReadNetFromCaffePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromCaffeBytes( VecUChar prototxt, @@ -13094,11 +14508,14 @@ class CvNative { ); } - late final _Net_ReadNetFromCaffeBytesPtr = - _lookup Function(VecUChar, VecUChar, ffi.Pointer)>>( - 'Net_ReadNetFromCaffeBytes'); - late final _Net_ReadNetFromCaffeBytes = _Net_ReadNetFromCaffeBytesPtr.asFunction< - ffi.Pointer Function(VecUChar, VecUChar, ffi.Pointer)>(); + late final _Net_ReadNetFromCaffeBytesPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecUChar, VecUChar, + ffi.Pointer)>>('Net_ReadNetFromCaffeBytes'); + late final _Net_ReadNetFromCaffeBytes = + _Net_ReadNetFromCaffeBytesPtr.asFunction< + ffi.Pointer Function( + VecUChar, VecUChar, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromCaffeBytes_Async( VecUChar prototxt, @@ -13112,11 +14529,13 @@ class CvNative { ); } - late final _Net_ReadNetFromCaffeBytes_AsyncPtr = - _lookup Function(VecUChar, VecUChar, CvCallback_1)>>( - 'Net_ReadNetFromCaffeBytes_Async'); - late final _Net_ReadNetFromCaffeBytes_Async = _Net_ReadNetFromCaffeBytes_AsyncPtr.asFunction< - ffi.Pointer Function(VecUChar, VecUChar, CvCallback_1)>(); + late final _Net_ReadNetFromCaffeBytes_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecUChar, VecUChar, + CvCallback_1)>>('Net_ReadNetFromCaffeBytes_Async'); + late final _Net_ReadNetFromCaffeBytes_Async = + _Net_ReadNetFromCaffeBytes_AsyncPtr.asFunction< + ffi.Pointer Function(VecUChar, VecUChar, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromCaffe_Async( ffi.Pointer prototxt, @@ -13133,9 +14552,13 @@ class CvNative { late final _Net_ReadNetFromCaffe_AsyncPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, CvCallback_1)>>('Net_ReadNetFromCaffe_Async'); - late final _Net_ReadNetFromCaffe_Async = _Net_ReadNetFromCaffe_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, CvCallback_1)>(); + ffi.Pointer, + ffi.Pointer, + CvCallback_1)>>('Net_ReadNetFromCaffe_Async'); + late final _Net_ReadNetFromCaffe_Async = + _Net_ReadNetFromCaffe_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromONNX( ffi.Pointer model, @@ -13147,11 +14570,13 @@ class CvNative { ); } - late final _Net_ReadNetFromONNXPtr = - _lookup Function(ffi.Pointer, ffi.Pointer)>>( - 'Net_ReadNetFromONNX'); + late final _Net_ReadNetFromONNXPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('Net_ReadNetFromONNX'); late final _Net_ReadNetFromONNX = _Net_ReadNetFromONNXPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromONNXBytes( VecUChar model, @@ -13163,11 +14588,12 @@ class CvNative { ); } - late final _Net_ReadNetFromONNXBytesPtr = - _lookup Function(VecUChar, ffi.Pointer)>>( - 'Net_ReadNetFromONNXBytes'); - late final _Net_ReadNetFromONNXBytes = - _Net_ReadNetFromONNXBytesPtr.asFunction Function(VecUChar, ffi.Pointer)>(); + late final _Net_ReadNetFromONNXBytesPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecUChar, ffi.Pointer)>>('Net_ReadNetFromONNXBytes'); + late final _Net_ReadNetFromONNXBytes = _Net_ReadNetFromONNXBytesPtr + .asFunction Function(VecUChar, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromONNXBytes_Async( VecUChar model, @@ -13179,11 +14605,13 @@ class CvNative { ); } - late final _Net_ReadNetFromONNXBytes_AsyncPtr = - _lookup Function(VecUChar, CvCallback_1)>>( - 'Net_ReadNetFromONNXBytes_Async'); + late final _Net_ReadNetFromONNXBytes_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecUChar, CvCallback_1)>>('Net_ReadNetFromONNXBytes_Async'); late final _Net_ReadNetFromONNXBytes_Async = - _Net_ReadNetFromONNXBytes_AsyncPtr.asFunction Function(VecUChar, CvCallback_1)>(); + _Net_ReadNetFromONNXBytes_AsyncPtr.asFunction< + ffi.Pointer Function(VecUChar, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromONNX_Async( ffi.Pointer model, @@ -13195,11 +14623,14 @@ class CvNative { ); } - late final _Net_ReadNetFromONNX_AsyncPtr = - _lookup Function(ffi.Pointer, CvCallback_1)>>( - 'Net_ReadNetFromONNX_Async'); - late final _Net_ReadNetFromONNX_Async = _Net_ReadNetFromONNX_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, CvCallback_1)>(); + late final _Net_ReadNetFromONNX_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + CvCallback_1)>>('Net_ReadNetFromONNX_Async'); + late final _Net_ReadNetFromONNX_Async = + _Net_ReadNetFromONNX_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromTFLite( ffi.Pointer model, @@ -13211,11 +14642,13 @@ class CvNative { ); } - late final _Net_ReadNetFromTFLitePtr = - _lookup Function(ffi.Pointer, ffi.Pointer)>>( - 'Net_ReadNetFromTFLite'); + late final _Net_ReadNetFromTFLitePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer)>>('Net_ReadNetFromTFLite'); late final _Net_ReadNetFromTFLite = _Net_ReadNetFromTFLitePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromTFLiteBytes( VecUChar bufferModel, @@ -13227,11 +14660,12 @@ class CvNative { ); } - late final _Net_ReadNetFromTFLiteBytesPtr = - _lookup Function(VecUChar, ffi.Pointer)>>( - 'Net_ReadNetFromTFLiteBytes'); - late final _Net_ReadNetFromTFLiteBytes = - _Net_ReadNetFromTFLiteBytesPtr.asFunction Function(VecUChar, ffi.Pointer)>(); + late final _Net_ReadNetFromTFLiteBytesPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecUChar, ffi.Pointer)>>('Net_ReadNetFromTFLiteBytes'); + late final _Net_ReadNetFromTFLiteBytes = _Net_ReadNetFromTFLiteBytesPtr + .asFunction Function(VecUChar, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromTFLiteBytes_Async( VecUChar bufferModel, @@ -13243,11 +14677,13 @@ class CvNative { ); } - late final _Net_ReadNetFromTFLiteBytes_AsyncPtr = - _lookup Function(VecUChar, CvCallback_1)>>( - 'Net_ReadNetFromTFLiteBytes_Async'); - late final _Net_ReadNetFromTFLiteBytes_Async = _Net_ReadNetFromTFLiteBytes_AsyncPtr.asFunction< - ffi.Pointer Function(VecUChar, CvCallback_1)>(); + late final _Net_ReadNetFromTFLiteBytes_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecUChar, CvCallback_1)>>('Net_ReadNetFromTFLiteBytes_Async'); + late final _Net_ReadNetFromTFLiteBytes_Async = + _Net_ReadNetFromTFLiteBytes_AsyncPtr.asFunction< + ffi.Pointer Function(VecUChar, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromTFLite_Async( ffi.Pointer model, @@ -13259,11 +14695,14 @@ class CvNative { ); } - late final _Net_ReadNetFromTFLite_AsyncPtr = - _lookup Function(ffi.Pointer, CvCallback_1)>>( - 'Net_ReadNetFromTFLite_Async'); - late final _Net_ReadNetFromTFLite_Async = _Net_ReadNetFromTFLite_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, CvCallback_1)>(); + late final _Net_ReadNetFromTFLite_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + CvCallback_1)>>('Net_ReadNetFromTFLite_Async'); + late final _Net_ReadNetFromTFLite_Async = + _Net_ReadNetFromTFLite_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromTensorflow( ffi.Pointer model, @@ -13280,9 +14719,13 @@ class CvNative { late final _Net_ReadNetFromTensorflowPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('Net_ReadNetFromTensorflow'); - late final _Net_ReadNetFromTensorflow = _Net_ReadNetFromTensorflowPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('Net_ReadNetFromTensorflow'); + late final _Net_ReadNetFromTensorflow = + _Net_ReadNetFromTensorflowPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromTensorflowBytes( VecUChar model, @@ -13296,11 +14739,14 @@ class CvNative { ); } - late final _Net_ReadNetFromTensorflowBytesPtr = - _lookup Function(VecUChar, VecUChar, ffi.Pointer)>>( - 'Net_ReadNetFromTensorflowBytes'); - late final _Net_ReadNetFromTensorflowBytes = _Net_ReadNetFromTensorflowBytesPtr.asFunction< - ffi.Pointer Function(VecUChar, VecUChar, ffi.Pointer)>(); + late final _Net_ReadNetFromTensorflowBytesPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecUChar, VecUChar, + ffi.Pointer)>>('Net_ReadNetFromTensorflowBytes'); + late final _Net_ReadNetFromTensorflowBytes = + _Net_ReadNetFromTensorflowBytesPtr.asFunction< + ffi.Pointer Function( + VecUChar, VecUChar, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromTensorflowBytes_Async( VecUChar model, @@ -13314,11 +14760,13 @@ class CvNative { ); } - late final _Net_ReadNetFromTensorflowBytes_AsyncPtr = - _lookup Function(VecUChar, VecUChar, CvCallback_1)>>( - 'Net_ReadNetFromTensorflowBytes_Async'); - late final _Net_ReadNetFromTensorflowBytes_Async = _Net_ReadNetFromTensorflowBytes_AsyncPtr.asFunction< - ffi.Pointer Function(VecUChar, VecUChar, CvCallback_1)>(); + late final _Net_ReadNetFromTensorflowBytes_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecUChar, VecUChar, + CvCallback_1)>>('Net_ReadNetFromTensorflowBytes_Async'); + late final _Net_ReadNetFromTensorflowBytes_Async = + _Net_ReadNetFromTensorflowBytes_AsyncPtr.asFunction< + ffi.Pointer Function(VecUChar, VecUChar, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromTensorflow_Async( ffi.Pointer model, @@ -13334,10 +14782,14 @@ class CvNative { late final _Net_ReadNetFromTensorflow_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, CvCallback_1)>>('Net_ReadNetFromTensorflow_Async'); - late final _Net_ReadNetFromTensorflow_Async = _Net_ReadNetFromTensorflow_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, CvCallback_1)>(); + late final _Net_ReadNetFromTensorflow_Async = + _Net_ReadNetFromTensorflow_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromTorch( ffi.Pointer model, @@ -13355,10 +14807,11 @@ class CvNative { late final _Net_ReadNetFromTorchPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Bool, ffi.Bool, ffi.Pointer)>>('Net_ReadNetFromTorch'); + ffi.Pointer Function(ffi.Pointer, ffi.Bool, + ffi.Bool, ffi.Pointer)>>('Net_ReadNetFromTorch'); late final _Net_ReadNetFromTorch = _Net_ReadNetFromTorchPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, bool, bool, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, bool, bool, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromTorch_Async( ffi.Pointer model, @@ -13376,10 +14829,12 @@ class CvNative { late final _Net_ReadNetFromTorch_AsyncPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Bool, + ffi.Bool, CvCallback_1)>>('Net_ReadNetFromTorch_Async'); + late final _Net_ReadNetFromTorch_Async = + _Net_ReadNetFromTorch_AsyncPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Bool, ffi.Bool, CvCallback_1)>>('Net_ReadNetFromTorch_Async'); - late final _Net_ReadNetFromTorch_Async = _Net_ReadNetFromTorch_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, bool, bool, CvCallback_1)>(); + ffi.Pointer, bool, bool, CvCallback_1)>(); ffi.Pointer Net_ReadNet_Async( ffi.Pointer model, @@ -13397,11 +14852,14 @@ class CvNative { late final _Net_ReadNet_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, CvCallback_1)>>('Net_ReadNet_Async'); late final _Net_ReadNet_Async = _Net_ReadNet_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, CvCallback_1)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, CvCallback_1)>(); ffi.Pointer Net_SetInput( Net net, @@ -13415,11 +14873,12 @@ class CvNative { ); } - late final _Net_SetInputPtr = - _lookup Function(Net, Mat, ffi.Pointer)>>( - 'Net_SetInput'); - late final _Net_SetInput = - _Net_SetInputPtr.asFunction Function(Net, Mat, ffi.Pointer)>(); + late final _Net_SetInputPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, Mat, ffi.Pointer)>>('Net_SetInput'); + late final _Net_SetInput = _Net_SetInputPtr.asFunction< + ffi.Pointer Function(Net, Mat, ffi.Pointer)>(); ffi.Pointer Net_SetInput_Async( Net net, @@ -13436,10 +14895,12 @@ class CvNative { } late final _Net_SetInput_AsyncPtr = _lookup< - ffi.NativeFunction Function(Net, Mat, ffi.Pointer, CvCallback_0)>>( - 'Net_SetInput_Async'); + ffi.NativeFunction< + ffi.Pointer Function(Net, Mat, ffi.Pointer, + CvCallback_0)>>('Net_SetInput_Async'); late final _Net_SetInput_Async = _Net_SetInput_AsyncPtr.asFunction< - ffi.Pointer Function(Net, Mat, ffi.Pointer, CvCallback_0)>(); + ffi.Pointer Function( + Net, Mat, ffi.Pointer, CvCallback_0)>(); ffi.Pointer Net_SetPreferableBackend( Net net, @@ -13452,9 +14913,10 @@ class CvNative { } late final _Net_SetPreferableBackendPtr = - _lookup Function(Net, ffi.Int)>>('Net_SetPreferableBackend'); - late final _Net_SetPreferableBackend = - _Net_SetPreferableBackendPtr.asFunction Function(Net, int)>(); + _lookup Function(Net, ffi.Int)>>( + 'Net_SetPreferableBackend'); + late final _Net_SetPreferableBackend = _Net_SetPreferableBackendPtr + .asFunction Function(Net, int)>(); ffi.Pointer Net_SetPreferableBackend_Async( Net net, @@ -13468,11 +14930,13 @@ class CvNative { ); } - late final _Net_SetPreferableBackend_AsyncPtr = - _lookup Function(Net, ffi.Int, CvCallback_0)>>( - 'Net_SetPreferableBackend_Async'); + late final _Net_SetPreferableBackend_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Int, CvCallback_0)>>('Net_SetPreferableBackend_Async'); late final _Net_SetPreferableBackend_Async = - _Net_SetPreferableBackend_AsyncPtr.asFunction Function(Net, int, CvCallback_0)>(); + _Net_SetPreferableBackend_AsyncPtr.asFunction< + ffi.Pointer Function(Net, int, CvCallback_0)>(); ffi.Pointer Net_SetPreferableTarget( Net net, @@ -13485,9 +14949,10 @@ class CvNative { } late final _Net_SetPreferableTargetPtr = - _lookup Function(Net, ffi.Int)>>('Net_SetPreferableTarget'); - late final _Net_SetPreferableTarget = - _Net_SetPreferableTargetPtr.asFunction Function(Net, int)>(); + _lookup Function(Net, ffi.Int)>>( + 'Net_SetPreferableTarget'); + late final _Net_SetPreferableTarget = _Net_SetPreferableTargetPtr.asFunction< + ffi.Pointer Function(Net, int)>(); ffi.Pointer Net_SetPreferableTarget_Async( Net net, @@ -13501,11 +14966,12 @@ class CvNative { ); } - late final _Net_SetPreferableTarget_AsyncPtr = - _lookup Function(Net, ffi.Int, CvCallback_0)>>( - 'Net_SetPreferableTarget_Async'); - late final _Net_SetPreferableTarget_Async = - _Net_SetPreferableTarget_AsyncPtr.asFunction Function(Net, int, CvCallback_0)>(); + late final _Net_SetPreferableTarget_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Int, CvCallback_0)>>('Net_SetPreferableTarget_Async'); + late final _Net_SetPreferableTarget_Async = _Net_SetPreferableTarget_AsyncPtr + .asFunction Function(Net, int, CvCallback_0)>(); ffi.Pointer Net_forwardAsync( Net net, @@ -13521,10 +14987,11 @@ class CvNative { late final _Net_forwardAsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Pointer, ffi.Pointer)>>('Net_forwardAsync'); + ffi.Pointer Function(Net, ffi.Pointer, + ffi.Pointer)>>('Net_forwardAsync'); late final _Net_forwardAsync = _Net_forwardAsyncPtr.asFunction< - ffi.Pointer Function(Net, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Net, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Norm( Mat src1, @@ -13538,10 +15005,12 @@ class CvNative { ); } - late final _NormPtr = - _lookup Function(Mat, ffi.Int, ffi.Pointer)>>( - 'Norm'); - late final _Norm = _NormPtr.asFunction Function(Mat, int, ffi.Pointer)>(); + late final _NormPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Pointer)>>('Norm'); + late final _Norm = _NormPtr.asFunction< + ffi.Pointer Function(Mat, int, ffi.Pointer)>(); ffi.Pointer NormWithMats( Mat src1, @@ -13557,11 +15026,12 @@ class CvNative { ); } - late final _NormWithMatsPtr = - _lookup Function(Mat, Mat, ffi.Int, ffi.Pointer)>>( - 'NormWithMats'); - late final _NormWithMats = - _NormWithMatsPtr.asFunction Function(Mat, Mat, int, ffi.Pointer)>(); + late final _NormWithMatsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Pointer)>>('NormWithMats'); + late final _NormWithMats = _NormWithMatsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, ffi.Pointer)>(); void ORB_Close( ORBPtr o, @@ -13571,7 +15041,8 @@ class CvNative { ); } - late final _ORB_ClosePtr = _lookup>('ORB_Close'); + late final _ORB_ClosePtr = + _lookup>('ORB_Close'); late final _ORB_Close = _ORB_ClosePtr.asFunction(); ffi.Pointer ORB_Create( @@ -13582,9 +15053,11 @@ class CvNative { ); } - late final _ORB_CreatePtr = - _lookup Function(ffi.Pointer)>>('ORB_Create'); - late final _ORB_Create = _ORB_CreatePtr.asFunction Function(ffi.Pointer)>(); + late final _ORB_CreatePtr = _lookup< + ffi.NativeFunction Function(ffi.Pointer)>>( + 'ORB_Create'); + late final _ORB_Create = _ORB_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer ORB_CreateWithParams( int nfeatures, @@ -13614,10 +15087,20 @@ class CvNative { late final _ORB_CreateWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Float, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Int, - ffi.Int, ffi.Int, ffi.Pointer)>>('ORB_CreateWithParams'); + ffi.Pointer Function( + ffi.Int, + ffi.Float, + ffi.Int, + ffi.Int, + ffi.Int, + ffi.Int, + ffi.Int, + ffi.Int, + ffi.Int, + ffi.Pointer)>>('ORB_CreateWithParams'); late final _ORB_CreateWithParams = _ORB_CreateWithParamsPtr.asFunction< - ffi.Pointer Function(int, double, int, int, int, int, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + int, double, int, int, int, int, int, int, int, ffi.Pointer)>(); ffi.Pointer ORB_Detect( ORB o, @@ -13631,11 +15114,12 @@ class CvNative { ); } - late final _ORB_DetectPtr = - _lookup Function(ORB, Mat, ffi.Pointer)>>( - 'ORB_Detect'); - late final _ORB_Detect = - _ORB_DetectPtr.asFunction Function(ORB, Mat, ffi.Pointer)>(); + late final _ORB_DetectPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ORB, Mat, ffi.Pointer)>>('ORB_Detect'); + late final _ORB_Detect = _ORB_DetectPtr.asFunction< + ffi.Pointer Function(ORB, Mat, ffi.Pointer)>(); ffi.Pointer ORB_DetectAndCompute( ORB o, @@ -13654,10 +15138,12 @@ class CvNative { } late final _ORB_DetectAndComputePtr = _lookup< - ffi.NativeFunction Function(ORB, Mat, Mat, Mat, ffi.Pointer)>>( - 'ORB_DetectAndCompute'); + ffi.NativeFunction< + ffi.Pointer Function(ORB, Mat, Mat, Mat, + ffi.Pointer)>>('ORB_DetectAndCompute'); late final _ORB_DetectAndCompute = _ORB_DetectAndComputePtr.asFunction< - ffi.Pointer Function(ORB, Mat, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + ORB, Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer Ones( int rows, @@ -13674,9 +15160,11 @@ class CvNative { } late final _OnesPtr = _lookup< - ffi - .NativeFunction Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Ones'); - late final _Ones = _OnesPtr.asFunction Function(int, int, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Ones'); + late final _Ones = _OnesPtr.asFunction< + ffi.Pointer Function(int, int, int, ffi.Pointer)>(); ffi.Pointer PencilSketch( Mat src, @@ -13697,10 +15185,11 @@ class CvNative { } late final _PencilSketchPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat, ffi.Float, ffi.Float, ffi.Float)>>( - 'PencilSketch'); - late final _PencilSketch = - _PencilSketchPtr.asFunction Function(Mat, Mat, Mat, double, double, double)>(); + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Float, ffi.Float, ffi.Float)>>('PencilSketch'); + late final _PencilSketch = _PencilSketchPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, double, double, double)>(); ffi.Pointer PhaseCorrelate( Mat src1, @@ -13720,10 +15209,11 @@ class CvNative { late final _PhaseCorrelatePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Pointer, ffi.Pointer)>>('PhaseCorrelate'); + ffi.Pointer Function(Mat, Mat, Mat, ffi.Pointer, + ffi.Pointer)>>('PhaseCorrelate'); late final _PhaseCorrelate = _PhaseCorrelatePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer PhotoInpaint( Mat src, @@ -13741,11 +15231,12 @@ class CvNative { ); } - late final _PhotoInpaintPtr = - _lookup Function(Mat, Mat, Mat, ffi.Float, ffi.Int)>>( - 'PhotoInpaint'); - late final _PhotoInpaint = - _PhotoInpaintPtr.asFunction Function(Mat, Mat, Mat, double, int)>(); + late final _PhotoInpaintPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Float, ffi.Int)>>('PhotoInpaint'); + late final _PhotoInpaint = _PhotoInpaintPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, double, int)>(); ffi.Pointer PointPolygonTest( VecPoint pts, @@ -13763,10 +15254,11 @@ class CvNative { late final _PointPolygonTestPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, Point2f, ffi.Bool, ffi.Pointer)>>('PointPolygonTest'); + ffi.Pointer Function(VecPoint, Point2f, ffi.Bool, + ffi.Pointer)>>('PointPolygonTest'); late final _PointPolygonTest = _PointPolygonTestPtr.asFunction< - ffi.Pointer Function(VecPoint, Point2f, bool, ffi.Pointer)>(); + ffi.Pointer Function( + VecPoint, Point2f, bool, ffi.Pointer)>(); ffi.Pointer Polylines( Mat img, @@ -13785,10 +15277,11 @@ class CvNative { } late final _PolylinesPtr = _lookup< - ffi.NativeFunction Function(Mat, VecVecPoint, ffi.Bool, Scalar, ffi.Int)>>( - 'Polylines'); - late final _Polylines = - _PolylinesPtr.asFunction Function(Mat, VecVecPoint, bool, Scalar, int)>(); + ffi.NativeFunction< + ffi.Pointer Function( + Mat, VecVecPoint, ffi.Bool, Scalar, ffi.Int)>>('Polylines'); + late final _Polylines = _PolylinesPtr.asFunction< + ffi.Pointer Function(Mat, VecVecPoint, bool, Scalar, int)>(); ffi.Pointer Prim_from_Circle( Point center, @@ -13812,10 +15305,11 @@ class CvNative { late final _Prim_from_CirclePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Point, Scalar, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Prim_from_Circle'); + ffi.Pointer Function(Point, Scalar, ffi.Int, ffi.Int, + ffi.Int, ffi.Int, ffi.Pointer)>>('Prim_from_Circle'); late final _Prim_from_Circle = _Prim_from_CirclePtr.asFunction< - ffi.Pointer Function(Point, Scalar, int, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Point, Scalar, int, int, int, int, ffi.Pointer)>(); ffi.Pointer Prim_from_FText( ffi.Pointer text, @@ -13837,10 +15331,11 @@ class CvNative { late final _Prim_from_FTextPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int, Point, ffi.Int, Scalar, ffi.Pointer)>>('Prim_from_FText'); + ffi.Pointer Function(ffi.Pointer, ffi.Int, Point, + ffi.Int, Scalar, ffi.Pointer)>>('Prim_from_FText'); late final _Prim_from_FText = _Prim_from_FTextPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, Point, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, int, Point, int, Scalar, ffi.Pointer)>(); ffi.Pointer Prim_from_Image( Point org, @@ -13856,11 +15351,12 @@ class CvNative { ); } - late final _Prim_from_ImagePtr = - _lookup Function(Point, Mat, Mat, ffi.Pointer)>>( - 'Prim_from_Image'); - late final _Prim_from_Image = - _Prim_from_ImagePtr.asFunction Function(Point, Mat, Mat, ffi.Pointer)>(); + late final _Prim_from_ImagePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Point, Mat, Mat, ffi.Pointer)>>('Prim_from_Image'); + late final _Prim_from_Image = _Prim_from_ImagePtr.asFunction< + ffi.Pointer Function(Point, Mat, Mat, ffi.Pointer)>(); ffi.Pointer Prim_from_Line( Scalar color, @@ -13884,10 +15380,11 @@ class CvNative { late final _Prim_from_LinePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Scalar, ffi.Int, Point, Point, ffi.Int, ffi.Int, ffi.Pointer)>>('Prim_from_Line'); + ffi.Pointer Function(Scalar, ffi.Int, Point, Point, ffi.Int, + ffi.Int, ffi.Pointer)>>('Prim_from_Line'); late final _Prim_from_Line = _Prim_from_LinePtr.asFunction< - ffi.Pointer Function(Scalar, int, Point, Point, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Scalar, int, Point, Point, int, int, ffi.Pointer)>(); ffi.Pointer Prim_from_Mosaic( int cellSz, @@ -13903,11 +15400,12 @@ class CvNative { ); } - late final _Prim_from_MosaicPtr = - _lookup Function(ffi.Int, ffi.Int, Rect, ffi.Pointer)>>( - 'Prim_from_Mosaic'); - late final _Prim_from_Mosaic = - _Prim_from_MosaicPtr.asFunction Function(int, int, Rect, ffi.Pointer)>(); + late final _Prim_from_MosaicPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int, ffi.Int, Rect, ffi.Pointer)>>('Prim_from_Mosaic'); + late final _Prim_from_Mosaic = _Prim_from_MosaicPtr.asFunction< + ffi.Pointer Function(int, int, Rect, ffi.Pointer)>(); ffi.Pointer Prim_from_Poly( VecPoint points, @@ -13929,10 +15427,11 @@ class CvNative { late final _Prim_from_PolyPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, Scalar, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Prim_from_Poly'); + ffi.Pointer Function(VecPoint, Scalar, ffi.Int, ffi.Int, + ffi.Int, ffi.Pointer)>>('Prim_from_Poly'); late final _Prim_from_Poly = _Prim_from_PolyPtr.asFunction< - ffi.Pointer Function(VecPoint, Scalar, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + VecPoint, Scalar, int, int, int, ffi.Pointer)>(); ffi.Pointer Prim_from_Rect( Scalar color, @@ -13954,10 +15453,11 @@ class CvNative { late final _Prim_from_RectPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Scalar, ffi.Int, Rect, ffi.Int, ffi.Int, ffi.Pointer)>>('Prim_from_Rect'); + ffi.Pointer Function(Scalar, ffi.Int, Rect, ffi.Int, + ffi.Int, ffi.Pointer)>>('Prim_from_Rect'); late final _Prim_from_Rect = _Prim_from_RectPtr.asFunction< - ffi.Pointer Function(Scalar, int, Rect, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Scalar, int, Rect, int, int, ffi.Pointer)>(); ffi.Pointer Prim_from_Text( bool bottom_left_origin, @@ -13987,11 +15487,20 @@ class CvNative { late final _Prim_from_TextPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Bool, Scalar, ffi.Int, ffi.Double, ffi.Int, Point, - ffi.Pointer, ffi.Int, ffi.Int, ffi.Pointer)>>('Prim_from_Text'); + ffi.Pointer Function( + ffi.Bool, + Scalar, + ffi.Int, + ffi.Double, + ffi.Int, + Point, + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer)>>('Prim_from_Text'); late final _Prim_from_Text = _Prim_from_TextPtr.asFunction< - ffi.Pointer Function( - bool, Scalar, int, double, int, Point, ffi.Pointer, int, int, ffi.Pointer)>(); + ffi.Pointer Function(bool, Scalar, int, double, int, Point, + ffi.Pointer, int, int, ffi.Pointer)>(); ffi.Pointer PutText( Mat img, @@ -14015,10 +15524,11 @@ class CvNative { late final _PutTextPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer, Point, ffi.Int, ffi.Double, Scalar, ffi.Int)>>('PutText'); + ffi.Pointer Function(Mat, ffi.Pointer, Point, + ffi.Int, ffi.Double, Scalar, ffi.Int)>>('PutText'); late final _PutText = _PutTextPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer, Point, int, double, Scalar, int)>(); + ffi.Pointer Function( + Mat, ffi.Pointer, Point, int, double, Scalar, int)>(); ffi.Pointer PutTextWithParams( Mat img, @@ -14046,11 +15556,19 @@ class CvNative { late final _PutTextWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer, Point, ffi.Int, ffi.Double, Scalar, - ffi.Int, ffi.Int, ffi.Bool)>>('PutTextWithParams'); + ffi.Pointer Function( + Mat, + ffi.Pointer, + Point, + ffi.Int, + ffi.Double, + Scalar, + ffi.Int, + ffi.Int, + ffi.Bool)>>('PutTextWithParams'); late final _PutTextWithParams = _PutTextWithParamsPtr.asFunction< - ffi.Pointer Function( - Mat, ffi.Pointer, Point, int, double, Scalar, int, int, bool)>(); + ffi.Pointer Function(Mat, ffi.Pointer, Point, int, + double, Scalar, int, int, bool)>(); ffi.Pointer PyrDown( Mat src, @@ -14066,9 +15584,11 @@ class CvNative { ); } - late final _PyrDownPtr = - _lookup Function(Mat, Mat, Size, ffi.Int)>>('PyrDown'); - late final _PyrDown = _PyrDownPtr.asFunction Function(Mat, Mat, Size, int)>(); + late final _PyrDownPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Size, ffi.Int)>>('PyrDown'); + late final _PyrDown = _PyrDownPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Size, int)>(); ffi.Pointer PyrUp( Mat src, @@ -14084,9 +15604,11 @@ class CvNative { ); } - late final _PyrUpPtr = - _lookup Function(Mat, Mat, Size, ffi.Int)>>('PyrUp'); - late final _PyrUp = _PyrUpPtr.asFunction Function(Mat, Mat, Size, int)>(); + late final _PyrUpPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Size, ffi.Int)>>('PyrUp'); + late final _PyrUp = _PyrUpPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Size, int)>(); void QRCodeDetector_Close( QRCodeDetectorPtr self, @@ -14097,8 +15619,10 @@ class CvNative { } late final _QRCodeDetector_ClosePtr = - _lookup>('QRCodeDetector_Close'); - late final _QRCodeDetector_Close = _QRCodeDetector_ClosePtr.asFunction(); + _lookup>( + 'QRCodeDetector_Close'); + late final _QRCodeDetector_Close = + _QRCodeDetector_ClosePtr.asFunction(); ffi.Pointer QRCodeDetector_Decode( QRCodeDetector self, @@ -14118,11 +15642,15 @@ class CvNative { late final _QRCodeDetector_DecodePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, Mat, + ffi.Pointer Function( + QRCodeDetector, + Mat, + ffi.Pointer, + Mat, ffi.Pointer>)>>('QRCodeDetector_Decode'); late final _QRCodeDetector_Decode = _QRCodeDetector_DecodePtr.asFunction< - ffi.Pointer Function( - QRCodeDetector, Mat, ffi.Pointer, Mat, ffi.Pointer>)>(); + ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, + Mat, ffi.Pointer>)>(); ffi.Pointer QRCodeDetector_Decode_Async( QRCodeDetector self, @@ -14136,11 +15664,13 @@ class CvNative { ); } - late final _QRCodeDetector_Decode_AsyncPtr = - _lookup Function(QRCodeDetector, Mat, CvCallback_3)>>( - 'QRCodeDetector_Decode_Async'); - late final _QRCodeDetector_Decode_Async = _QRCodeDetector_Decode_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_3)>(); + late final _QRCodeDetector_Decode_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, + CvCallback_3)>>('QRCodeDetector_Decode_Async'); + late final _QRCodeDetector_Decode_Async = + _QRCodeDetector_Decode_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_3)>(); ffi.Pointer QRCodeDetector_Detect( QRCodeDetector self, @@ -14159,9 +15689,13 @@ class CvNative { late final _QRCodeDetector_DetectPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer)>>('QRCodeDetector_Detect'); + QRCodeDetector, + Mat, + ffi.Pointer, + ffi.Pointer)>>('QRCodeDetector_Detect'); late final _QRCodeDetector_Detect = _QRCodeDetector_DetectPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer QRCodeDetector_DetectAndDecode( QRCodeDetector self, @@ -14180,12 +15714,22 @@ class CvNative { } late final _QRCodeDetector_DetectAndDecodePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('QRCodeDetector_DetectAndDecode'); - late final _QRCodeDetector_DetectAndDecode = _QRCodeDetector_DetectAndDecodePtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>(); + ffi.NativeFunction< + ffi.Pointer Function( + QRCodeDetector, + Mat, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>( + 'QRCodeDetector_DetectAndDecode'); + late final _QRCodeDetector_DetectAndDecode = + _QRCodeDetector_DetectAndDecodePtr.asFunction< + ffi.Pointer Function( + QRCodeDetector, + Mat, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); ffi.Pointer QRCodeDetector_DetectAndDecodeMulti( QRCodeDetector self, @@ -14207,11 +15751,22 @@ class CvNative { late final _QRCodeDetector_DetectAndDecodeMultiPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('QRCodeDetector_DetectAndDecodeMulti'); - late final _QRCodeDetector_DetectAndDecodeMulti = _QRCodeDetector_DetectAndDecodeMultiPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + QRCodeDetector, + Mat, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('QRCodeDetector_DetectAndDecodeMulti'); + late final _QRCodeDetector_DetectAndDecodeMulti = + _QRCodeDetector_DetectAndDecodeMultiPtr.asFunction< + ffi.Pointer Function( + QRCodeDetector, + Mat, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); ffi.Pointer QRCodeDetector_DetectAndDecodeMulti_Async( QRCodeDetector self, @@ -14225,11 +15780,13 @@ class CvNative { ); } - late final _QRCodeDetector_DetectAndDecodeMulti_AsyncPtr = - _lookup Function(QRCodeDetector, Mat, CvCallback_4)>>( - 'QRCodeDetector_DetectAndDecodeMulti_Async'); - late final _QRCodeDetector_DetectAndDecodeMulti_Async = _QRCodeDetector_DetectAndDecodeMulti_AsyncPtr - .asFunction Function(QRCodeDetector, Mat, CvCallback_4)>(); + late final _QRCodeDetector_DetectAndDecodeMulti_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, + CvCallback_4)>>('QRCodeDetector_DetectAndDecodeMulti_Async'); + late final _QRCodeDetector_DetectAndDecodeMulti_Async = + _QRCodeDetector_DetectAndDecodeMulti_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_4)>(); ffi.Pointer QRCodeDetector_DetectAndDecode_Async( QRCodeDetector self, @@ -14243,11 +15800,13 @@ class CvNative { ); } - late final _QRCodeDetector_DetectAndDecode_AsyncPtr = - _lookup Function(QRCodeDetector, Mat, CvCallback_3)>>( - 'QRCodeDetector_DetectAndDecode_Async'); - late final _QRCodeDetector_DetectAndDecode_Async = _QRCodeDetector_DetectAndDecode_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_3)>(); + late final _QRCodeDetector_DetectAndDecode_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, + CvCallback_3)>>('QRCodeDetector_DetectAndDecode_Async'); + late final _QRCodeDetector_DetectAndDecode_Async = + _QRCodeDetector_DetectAndDecode_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_3)>(); ffi.Pointer QRCodeDetector_DetectMulti( QRCodeDetector self, @@ -14265,10 +15824,15 @@ class CvNative { late final _QRCodeDetector_DetectMultiPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, + ffi.Pointer Function( + QRCodeDetector, + Mat, + ffi.Pointer, ffi.Pointer)>>('QRCodeDetector_DetectMulti'); - late final _QRCodeDetector_DetectMulti = _QRCodeDetector_DetectMultiPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer)>(); + late final _QRCodeDetector_DetectMulti = + _QRCodeDetector_DetectMultiPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer QRCodeDetector_DetectMulti_Async( QRCodeDetector self, @@ -14282,11 +15846,13 @@ class CvNative { ); } - late final _QRCodeDetector_DetectMulti_AsyncPtr = - _lookup Function(QRCodeDetector, Mat, CvCallback_2)>>( - 'QRCodeDetector_DetectMulti_Async'); - late final _QRCodeDetector_DetectMulti_Async = _QRCodeDetector_DetectMulti_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_2)>(); + late final _QRCodeDetector_DetectMulti_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, + CvCallback_2)>>('QRCodeDetector_DetectMulti_Async'); + late final _QRCodeDetector_DetectMulti_Async = + _QRCodeDetector_DetectMulti_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_2)>(); ffi.Pointer QRCodeDetector_Detect_Async( QRCodeDetector self, @@ -14300,11 +15866,13 @@ class CvNative { ); } - late final _QRCodeDetector_Detect_AsyncPtr = - _lookup Function(QRCodeDetector, Mat, CvCallback_2)>>( - 'QRCodeDetector_Detect_Async'); - late final _QRCodeDetector_Detect_Async = _QRCodeDetector_Detect_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_2)>(); + late final _QRCodeDetector_Detect_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, + CvCallback_2)>>('QRCodeDetector_Detect_Async'); + late final _QRCodeDetector_Detect_Async = + _QRCodeDetector_Detect_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_2)>(); ffi.Pointer QRCodeDetector_New( ffi.Pointer rval, @@ -14314,11 +15882,12 @@ class CvNative { ); } - late final _QRCodeDetector_NewPtr = - _lookup Function(ffi.Pointer)>>( - 'QRCodeDetector_New'); - late final _QRCodeDetector_New = - _QRCodeDetector_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _QRCodeDetector_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('QRCodeDetector_New'); + late final _QRCodeDetector_New = _QRCodeDetector_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer QRCodeDetector_New_Async( CvCallback_1 callback, @@ -14329,9 +15898,10 @@ class CvNative { } late final _QRCodeDetector_New_AsyncPtr = - _lookup Function(CvCallback_1)>>('QRCodeDetector_New_Async'); - late final _QRCodeDetector_New_Async = - _QRCodeDetector_New_AsyncPtr.asFunction Function(CvCallback_1)>(); + _lookup Function(CvCallback_1)>>( + 'QRCodeDetector_New_Async'); + late final _QRCodeDetector_New_Async = _QRCodeDetector_New_AsyncPtr + .asFunction Function(CvCallback_1)>(); ffi.Pointer QRCodeDetector_decodeCurved( QRCodeDetector self, @@ -14350,12 +15920,14 @@ class CvNative { } late final _QRCodeDetector_decodeCurvedPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, VecPoint, ffi.Pointer, - ffi.Pointer>)>>('QRCodeDetector_decodeCurved'); - late final _QRCodeDetector_decodeCurved = _QRCodeDetector_decodeCurvedPtr.asFunction< - ffi.Pointer Function( - QRCodeDetector, Mat, VecPoint, ffi.Pointer, ffi.Pointer>)>(); + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, VecPoint, + ffi.Pointer, ffi.Pointer>)>>( + 'QRCodeDetector_decodeCurved'); + late final _QRCodeDetector_decodeCurved = + _QRCodeDetector_decodeCurvedPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, VecPoint, + ffi.Pointer, ffi.Pointer>)>(); ffi.Pointer QRCodeDetector_decodeCurved_Async( QRCodeDetector self, @@ -14372,10 +15944,13 @@ class CvNative { } late final _QRCodeDetector_decodeCurved_AsyncPtr = _lookup< - ffi.NativeFunction Function(QRCodeDetector, Mat, VecPoint, CvCallback_2)>>( - 'QRCodeDetector_decodeCurved_Async'); - late final _QRCodeDetector_decodeCurved_Async = _QRCodeDetector_decodeCurved_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, VecPoint, CvCallback_2)>(); + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, VecPoint, + CvCallback_2)>>('QRCodeDetector_decodeCurved_Async'); + late final _QRCodeDetector_decodeCurved_Async = + _QRCodeDetector_decodeCurved_AsyncPtr.asFunction< + ffi.Pointer Function( + QRCodeDetector, Mat, VecPoint, CvCallback_2)>(); ffi.Pointer QRCodeDetector_detectAndDecodeCurved( QRCodeDetector self, @@ -14394,12 +15969,22 @@ class CvNative { } late final _QRCodeDetector_detectAndDecodeCurvedPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('QRCodeDetector_detectAndDecodeCurved'); - late final _QRCodeDetector_detectAndDecodeCurved = _QRCodeDetector_detectAndDecodeCurvedPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>(); + ffi.NativeFunction< + ffi.Pointer Function( + QRCodeDetector, + Mat, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>( + 'QRCodeDetector_detectAndDecodeCurved'); + late final _QRCodeDetector_detectAndDecodeCurved = + _QRCodeDetector_detectAndDecodeCurvedPtr.asFunction< + ffi.Pointer Function( + QRCodeDetector, + Mat, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); ffi.Pointer QRCodeDetector_detectAndDecodeCurved_Async( QRCodeDetector self, @@ -14413,11 +15998,13 @@ class CvNative { ); } - late final _QRCodeDetector_detectAndDecodeCurved_AsyncPtr = - _lookup Function(QRCodeDetector, Mat, CvCallback_3)>>( - 'QRCodeDetector_detectAndDecodeCurved_Async'); - late final _QRCodeDetector_detectAndDecodeCurved_Async = _QRCodeDetector_detectAndDecodeCurved_AsyncPtr - .asFunction Function(QRCodeDetector, Mat, CvCallback_3)>(); + late final _QRCodeDetector_detectAndDecodeCurved_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, + CvCallback_3)>>('QRCodeDetector_detectAndDecodeCurved_Async'); + late final _QRCodeDetector_detectAndDecodeCurved_Async = + _QRCodeDetector_detectAndDecodeCurved_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_3)>(); ffi.Pointer QRCodeDetector_setEpsX( QRCodeDetector self, @@ -14429,16 +16016,17 @@ class CvNative { ); } - late final _QRCodeDetector_setEpsXPtr = - _lookup Function(QRCodeDetector, ffi.Double)>>( - 'QRCodeDetector_setEpsX'); - late final _QRCodeDetector_setEpsX = - _QRCodeDetector_setEpsXPtr.asFunction Function(QRCodeDetector, double)>(); + late final _QRCodeDetector_setEpsXPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + QRCodeDetector, ffi.Double)>>('QRCodeDetector_setEpsX'); + late final _QRCodeDetector_setEpsX = _QRCodeDetector_setEpsXPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, double)>(); ffi.Pointer QRCodeDetector_setEpsX_Async( QRCodeDetector self, double epsX, - CvCallback_1 callback, + CvCallback_0 callback, ) { return _QRCodeDetector_setEpsX_Async( self, @@ -14447,11 +16035,14 @@ class CvNative { ); } - late final _QRCodeDetector_setEpsX_AsyncPtr = - _lookup Function(QRCodeDetector, ffi.Double, CvCallback_1)>>( - 'QRCodeDetector_setEpsX_Async'); - late final _QRCodeDetector_setEpsX_Async = _QRCodeDetector_setEpsX_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, double, CvCallback_1)>(); + late final _QRCodeDetector_setEpsX_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, ffi.Double, + CvCallback_0)>>('QRCodeDetector_setEpsX_Async'); + late final _QRCodeDetector_setEpsX_Async = + _QRCodeDetector_setEpsX_AsyncPtr.asFunction< + ffi.Pointer Function( + QRCodeDetector, double, CvCallback_0)>(); ffi.Pointer QRCodeDetector_setEpsY( QRCodeDetector self, @@ -14463,16 +16054,17 @@ class CvNative { ); } - late final _QRCodeDetector_setEpsYPtr = - _lookup Function(QRCodeDetector, ffi.Double)>>( - 'QRCodeDetector_setEpsY'); - late final _QRCodeDetector_setEpsY = - _QRCodeDetector_setEpsYPtr.asFunction Function(QRCodeDetector, double)>(); + late final _QRCodeDetector_setEpsYPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + QRCodeDetector, ffi.Double)>>('QRCodeDetector_setEpsY'); + late final _QRCodeDetector_setEpsY = _QRCodeDetector_setEpsYPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, double)>(); ffi.Pointer QRCodeDetector_setEpsY_Async( QRCodeDetector self, double epsY, - CvCallback_1 callback, + CvCallback_0 callback, ) { return _QRCodeDetector_setEpsY_Async( self, @@ -14481,11 +16073,14 @@ class CvNative { ); } - late final _QRCodeDetector_setEpsY_AsyncPtr = - _lookup Function(QRCodeDetector, ffi.Double, CvCallback_1)>>( - 'QRCodeDetector_setEpsY_Async'); - late final _QRCodeDetector_setEpsY_Async = _QRCodeDetector_setEpsY_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, double, CvCallback_1)>(); + late final _QRCodeDetector_setEpsY_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, ffi.Double, + CvCallback_0)>>('QRCodeDetector_setEpsY_Async'); + late final _QRCodeDetector_setEpsY_Async = + _QRCodeDetector_setEpsY_AsyncPtr.asFunction< + ffi.Pointer Function( + QRCodeDetector, double, CvCallback_0)>(); ffi.Pointer QRCodeDetector_setUseAlignmentMarkers( QRCodeDetector self, @@ -14497,16 +16092,18 @@ class CvNative { ); } - late final _QRCodeDetector_setUseAlignmentMarkersPtr = - _lookup Function(QRCodeDetector, ffi.Bool)>>( - 'QRCodeDetector_setUseAlignmentMarkers'); - late final _QRCodeDetector_setUseAlignmentMarkers = _QRCodeDetector_setUseAlignmentMarkersPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, bool)>(); + late final _QRCodeDetector_setUseAlignmentMarkersPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, + ffi.Bool)>>('QRCodeDetector_setUseAlignmentMarkers'); + late final _QRCodeDetector_setUseAlignmentMarkers = + _QRCodeDetector_setUseAlignmentMarkersPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, bool)>(); ffi.Pointer QRCodeDetector_setUseAlignmentMarkers_Async( QRCodeDetector self, bool useAlignmentMarkers, - CvCallback_1 callback, + CvCallback_0 callback, ) { return _QRCodeDetector_setUseAlignmentMarkers_Async( self, @@ -14515,11 +16112,13 @@ class CvNative { ); } - late final _QRCodeDetector_setUseAlignmentMarkers_AsyncPtr = - _lookup Function(QRCodeDetector, ffi.Bool, CvCallback_1)>>( - 'QRCodeDetector_setUseAlignmentMarkers_Async'); - late final _QRCodeDetector_setUseAlignmentMarkers_Async = _QRCodeDetector_setUseAlignmentMarkers_AsyncPtr - .asFunction Function(QRCodeDetector, bool, CvCallback_1)>(); + late final _QRCodeDetector_setUseAlignmentMarkers_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, ffi.Bool, + CvCallback_0)>>('QRCodeDetector_setUseAlignmentMarkers_Async'); + late final _QRCodeDetector_setUseAlignmentMarkers_Async = + _QRCodeDetector_setUseAlignmentMarkers_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, bool, CvCallback_0)>(); ffi.Pointer RNG_Fill( RNG rng, @@ -14541,9 +16140,10 @@ class CvNative { late final _RNG_FillPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(RNG, Mat, ffi.Int, ffi.Double, ffi.Double, ffi.Bool)>>('RNG_Fill'); - late final _RNG_Fill = - _RNG_FillPtr.asFunction Function(RNG, Mat, int, double, double, bool)>(); + ffi.Pointer Function(RNG, Mat, ffi.Int, ffi.Double, + ffi.Double, ffi.Bool)>>('RNG_Fill'); + late final _RNG_Fill = _RNG_FillPtr.asFunction< + ffi.Pointer Function(RNG, Mat, int, double, double, bool)>(); ffi.Pointer RNG_Gaussian( RNG rng, @@ -14557,11 +16157,12 @@ class CvNative { ); } - late final _RNG_GaussianPtr = - _lookup Function(RNG, ffi.Double, ffi.Pointer)>>( - 'RNG_Gaussian'); - late final _RNG_Gaussian = - _RNG_GaussianPtr.asFunction Function(RNG, double, ffi.Pointer)>(); + late final _RNG_GaussianPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + RNG, ffi.Double, ffi.Pointer)>>('RNG_Gaussian'); + late final _RNG_Gaussian = _RNG_GaussianPtr.asFunction< + ffi.Pointer Function(RNG, double, ffi.Pointer)>(); ffi.Pointer RNG_Next( RNG rng, @@ -14573,10 +16174,12 @@ class CvNative { ); } - late final _RNG_NextPtr = - _lookup Function(RNG, ffi.Pointer)>>('RNG_Next'); - late final _RNG_Next = - _RNG_NextPtr.asFunction Function(RNG, ffi.Pointer)>(); + late final _RNG_NextPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + RNG, ffi.Pointer)>>('RNG_Next'); + late final _RNG_Next = _RNG_NextPtr.asFunction< + ffi.Pointer Function(RNG, ffi.Pointer)>(); ffi.Pointer RNG_Uniform( RNG rng, @@ -14593,10 +16196,11 @@ class CvNative { } late final _RNG_UniformPtr = _lookup< - ffi.NativeFunction Function(RNG, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'RNG_Uniform'); - late final _RNG_Uniform = - _RNG_UniformPtr.asFunction Function(RNG, int, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + RNG, ffi.Int, ffi.Int, ffi.Pointer)>>('RNG_Uniform'); + late final _RNG_Uniform = _RNG_UniformPtr.asFunction< + ffi.Pointer Function(RNG, int, int, ffi.Pointer)>(); ffi.Pointer RNG_UniformDouble( RNG rng, @@ -14614,10 +16218,11 @@ class CvNative { late final _RNG_UniformDoublePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - RNG, ffi.Double, ffi.Double, ffi.Pointer)>>('RNG_UniformDouble'); + ffi.Pointer Function(RNG, ffi.Double, ffi.Double, + ffi.Pointer)>>('RNG_UniformDouble'); late final _RNG_UniformDouble = _RNG_UniformDoublePtr.asFunction< - ffi.Pointer Function(RNG, double, double, ffi.Pointer)>(); + ffi.Pointer Function( + RNG, double, double, ffi.Pointer)>(); ffi.Pointer RandN( Mat mat, @@ -14631,9 +16236,11 @@ class CvNative { ); } - late final _RandNPtr = - _lookup Function(Mat, Scalar, Scalar)>>('RandN'); - late final _RandN = _RandNPtr.asFunction Function(Mat, Scalar, Scalar)>(); + late final _RandNPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Scalar, Scalar)>>('RandN'); + late final _RandN = _RandNPtr.asFunction< + ffi.Pointer Function(Mat, Scalar, Scalar)>(); ffi.Pointer RandShuffle( Mat mat, @@ -14644,8 +16251,10 @@ class CvNative { } late final _RandShufflePtr = - _lookup Function(Mat)>>('RandShuffle'); - late final _RandShuffle = _RandShufflePtr.asFunction Function(Mat)>(); + _lookup Function(Mat)>>( + 'RandShuffle'); + late final _RandShuffle = + _RandShufflePtr.asFunction Function(Mat)>(); ffi.Pointer RandShuffleWithParams( Mat mat, @@ -14659,11 +16268,12 @@ class CvNative { ); } - late final _RandShuffleWithParamsPtr = - _lookup Function(Mat, ffi.Double, RNG)>>( - 'RandShuffleWithParams'); - late final _RandShuffleWithParams = - _RandShuffleWithParamsPtr.asFunction Function(Mat, double, RNG)>(); + late final _RandShuffleWithParamsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Double, RNG)>>('RandShuffleWithParams'); + late final _RandShuffleWithParams = _RandShuffleWithParamsPtr.asFunction< + ffi.Pointer Function(Mat, double, RNG)>(); ffi.Pointer RandU( Mat mat, @@ -14677,9 +16287,11 @@ class CvNative { ); } - late final _RandUPtr = - _lookup Function(Mat, Scalar, Scalar)>>('RandU'); - late final _RandU = _RandUPtr.asFunction Function(Mat, Scalar, Scalar)>(); + late final _RandUPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Scalar, Scalar)>>('RandU'); + late final _RandU = _RandUPtr.asFunction< + ffi.Pointer Function(Mat, Scalar, Scalar)>(); ffi.Pointer Rectangle( Mat img, @@ -14695,9 +16307,12 @@ class CvNative { ); } - late final _RectanglePtr = - _lookup Function(Mat, Rect, Scalar, ffi.Int)>>('Rectangle'); - late final _Rectangle = _RectanglePtr.asFunction Function(Mat, Rect, Scalar, int)>(); + late final _RectanglePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Rect, Scalar, ffi.Int)>>('Rectangle'); + late final _Rectangle = _RectanglePtr.asFunction< + ffi.Pointer Function(Mat, Rect, Scalar, int)>(); ffi.Pointer RectangleWithParams( Mat img, @@ -14718,10 +16333,11 @@ class CvNative { } late final _RectangleWithParamsPtr = _lookup< - ffi.NativeFunction Function(Mat, Rect, Scalar, ffi.Int, ffi.Int, ffi.Int)>>( - 'RectangleWithParams'); - late final _RectangleWithParams = - _RectangleWithParamsPtr.asFunction Function(Mat, Rect, Scalar, int, int, int)>(); + ffi.NativeFunction< + ffi.Pointer Function(Mat, Rect, Scalar, ffi.Int, ffi.Int, + ffi.Int)>>('RectangleWithParams'); + late final _RectangleWithParams = _RectangleWithParamsPtr.asFunction< + ffi.Pointer Function(Mat, Rect, Scalar, int, int, int)>(); ffi.Pointer Remap( Mat src, @@ -14744,10 +16360,11 @@ class CvNative { } late final _RemapPtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, Mat, Mat, ffi.Int, ffi.Int, Scalar)>>('Remap'); - late final _Remap = - _RemapPtr.asFunction Function(Mat, Mat, Mat, Mat, int, int, Scalar)>(); + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, ffi.Int, ffi.Int, Scalar)>>('Remap'); + late final _Remap = _RemapPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, int, int, Scalar)>(); ffi.Pointer Resize( Mat src, @@ -14769,9 +16386,10 @@ class CvNative { late final _ResizePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Size, ffi.Double, ffi.Double, ffi.Int)>>('Resize'); - late final _Resize = - _ResizePtr.asFunction Function(Mat, Mat, Size, double, double, int)>(); + ffi.Pointer Function( + Mat, Mat, Size, ffi.Double, ffi.Double, ffi.Int)>>('Resize'); + late final _Resize = _ResizePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Size, double, double, int)>(); void Rng_Close( RNGPtr rng, @@ -14781,7 +16399,8 @@ class CvNative { ); } - late final _Rng_ClosePtr = _lookup>('Rng_Close'); + late final _Rng_ClosePtr = + _lookup>('Rng_Close'); late final _Rng_Close = _Rng_ClosePtr.asFunction(); ffi.Pointer Rng_New( @@ -14792,9 +16411,11 @@ class CvNative { ); } - late final _Rng_NewPtr = - _lookup Function(ffi.Pointer)>>('Rng_New'); - late final _Rng_New = _Rng_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _Rng_NewPtr = _lookup< + ffi.NativeFunction Function(ffi.Pointer)>>( + 'Rng_New'); + late final _Rng_New = _Rng_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer Rng_NewWithState( int state, @@ -14806,11 +16427,12 @@ class CvNative { ); } - late final _Rng_NewWithStatePtr = - _lookup Function(ffi.Uint64, ffi.Pointer)>>( - 'Rng_NewWithState'); - late final _Rng_NewWithState = - _Rng_NewWithStatePtr.asFunction Function(int, ffi.Pointer)>(); + late final _Rng_NewWithStatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Uint64, ffi.Pointer)>>('Rng_NewWithState'); + late final _Rng_NewWithState = _Rng_NewWithStatePtr.asFunction< + ffi.Pointer Function(int, ffi.Pointer)>(); ffi.Pointer Rotate( Mat src, @@ -14824,9 +16446,11 @@ class CvNative { ); } - late final _RotatePtr = - _lookup Function(Mat, Mat, ffi.Int)>>('Rotate'); - late final _Rotate = _RotatePtr.asFunction Function(Mat, Mat, int)>(); + late final _RotatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Rotate'); + late final _Rotate = + _RotatePtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer RotatedRect_BoundingRect( RotatedRect rect, @@ -14838,11 +16462,13 @@ class CvNative { ); } - late final _RotatedRect_BoundingRectPtr = - _lookup Function(RotatedRect, ffi.Pointer)>>( - 'RotatedRect_BoundingRect'); - late final _RotatedRect_BoundingRect = _RotatedRect_BoundingRectPtr.asFunction< - ffi.Pointer Function(RotatedRect, ffi.Pointer)>(); + late final _RotatedRect_BoundingRectPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + RotatedRect, ffi.Pointer)>>('RotatedRect_BoundingRect'); + late final _RotatedRect_BoundingRect = + _RotatedRect_BoundingRectPtr.asFunction< + ffi.Pointer Function(RotatedRect, ffi.Pointer)>(); ffi.Pointer RotatedRect_BoundingRect2f( RotatedRect rect, @@ -14854,11 +16480,13 @@ class CvNative { ); } - late final _RotatedRect_BoundingRect2fPtr = - _lookup Function(RotatedRect, ffi.Pointer)>>( - 'RotatedRect_BoundingRect2f'); - late final _RotatedRect_BoundingRect2f = _RotatedRect_BoundingRect2fPtr.asFunction< - ffi.Pointer Function(RotatedRect, ffi.Pointer)>(); + late final _RotatedRect_BoundingRect2fPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + RotatedRect, ffi.Pointer)>>('RotatedRect_BoundingRect2f'); + late final _RotatedRect_BoundingRect2f = + _RotatedRect_BoundingRect2fPtr.asFunction< + ffi.Pointer Function(RotatedRect, ffi.Pointer)>(); ffi.Pointer RotatedRect_Points( RotatedRect rect, @@ -14870,9 +16498,10 @@ class CvNative { ); } - late final _RotatedRect_PointsPtr = - _lookup Function(RotatedRect, ffi.Pointer)>>( - 'RotatedRect_Points'); + late final _RotatedRect_PointsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + RotatedRect, ffi.Pointer)>>('RotatedRect_Points'); late final _RotatedRect_Points = _RotatedRect_PointsPtr.asFunction< ffi.Pointer Function(RotatedRect, ffi.Pointer)>(); @@ -14884,7 +16513,8 @@ class CvNative { ); } - late final _SIFT_ClosePtr = _lookup>('SIFT_Close'); + late final _SIFT_ClosePtr = + _lookup>('SIFT_Close'); late final _SIFT_Close = _SIFT_ClosePtr.asFunction(); ffi.Pointer SIFT_Create( @@ -14895,9 +16525,11 @@ class CvNative { ); } - late final _SIFT_CreatePtr = - _lookup Function(ffi.Pointer)>>('SIFT_Create'); - late final _SIFT_Create = _SIFT_CreatePtr.asFunction Function(ffi.Pointer)>(); + late final _SIFT_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('SIFT_Create'); + late final _SIFT_Create = _SIFT_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer SIFT_Detect( SIFT f, @@ -14911,11 +16543,12 @@ class CvNative { ); } - late final _SIFT_DetectPtr = - _lookup Function(SIFT, Mat, ffi.Pointer)>>( - 'SIFT_Detect'); - late final _SIFT_Detect = - _SIFT_DetectPtr.asFunction Function(SIFT, Mat, ffi.Pointer)>(); + late final _SIFT_DetectPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + SIFT, Mat, ffi.Pointer)>>('SIFT_Detect'); + late final _SIFT_Detect = _SIFT_DetectPtr.asFunction< + ffi.Pointer Function(SIFT, Mat, ffi.Pointer)>(); ffi.Pointer SIFT_DetectAndCompute( SIFT f, @@ -14934,10 +16567,12 @@ class CvNative { } late final _SIFT_DetectAndComputePtr = _lookup< - ffi.NativeFunction Function(SIFT, Mat, Mat, Mat, ffi.Pointer)>>( - 'SIFT_DetectAndCompute'); + ffi.NativeFunction< + ffi.Pointer Function(SIFT, Mat, Mat, Mat, + ffi.Pointer)>>('SIFT_DetectAndCompute'); late final _SIFT_DetectAndCompute = _SIFT_DetectAndComputePtr.asFunction< - ffi.Pointer Function(SIFT, Mat, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + SIFT, Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer SVD_Compute( Mat src, @@ -14957,10 +16592,11 @@ class CvNative { late final _SVD_ComputePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int)>>('SVD_Compute'); + ffi.Pointer Function(Mat, ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Int)>>('SVD_Compute'); late final _SVD_Compute = _SVD_ComputePtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + Mat, ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); ffi.Pointer SVD_Compute_Async( Mat src, @@ -14974,11 +16610,12 @@ class CvNative { ); } - late final _SVD_Compute_AsyncPtr = - _lookup Function(Mat, ffi.Int, CvCallback_3)>>( - 'SVD_Compute_Async'); - late final _SVD_Compute_Async = - _SVD_Compute_AsyncPtr.asFunction Function(Mat, int, CvCallback_3)>(); + late final _SVD_Compute_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, CvCallback_3)>>('SVD_Compute_Async'); + late final _SVD_Compute_Async = _SVD_Compute_AsyncPtr.asFunction< + ffi.Pointer Function(Mat, int, CvCallback_3)>(); ffi.Pointer SVD_backSubst( Mat w, @@ -14996,11 +16633,12 @@ class CvNative { ); } - late final _SVD_backSubstPtr = - _lookup Function(Mat, Mat, Mat, Mat, ffi.Pointer)>>( - 'SVD_backSubst'); - late final _SVD_backSubst = - _SVD_backSubstPtr.asFunction Function(Mat, Mat, Mat, Mat, ffi.Pointer)>(); + late final _SVD_backSubstPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, ffi.Pointer)>>('SVD_backSubst'); + late final _SVD_backSubst = _SVD_backSubstPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer SVD_backSubst_Async( Mat w, @@ -15018,11 +16656,12 @@ class CvNative { ); } - late final _SVD_backSubst_AsyncPtr = - _lookup Function(Mat, Mat, Mat, Mat, CvCallback_1)>>( - 'SVD_backSubst_Async'); - late final _SVD_backSubst_Async = - _SVD_backSubst_AsyncPtr.asFunction Function(Mat, Mat, Mat, Mat, CvCallback_1)>(); + late final _SVD_backSubst_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, CvCallback_1)>>('SVD_backSubst_Async'); + late final _SVD_backSubst_Async = _SVD_backSubst_AsyncPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, CvCallback_1)>(); ffi.Pointer Scharr( Mat src, @@ -15048,10 +16687,11 @@ class CvNative { late final _ScharrPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Double, ffi.Double, ffi.Int)>>('Scharr'); - late final _Scharr = - _ScharrPtr.asFunction Function(Mat, Mat, int, int, int, double, double, int)>(); + ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Double, ffi.Double, ffi.Int)>>('Scharr'); + late final _Scharr = _ScharrPtr.asFunction< + ffi.Pointer Function( + Mat, Mat, int, int, int, double, double, int)>(); ffi.Pointer SeamlessClone( Mat src, @@ -15071,11 +16711,12 @@ class CvNative { ); } - late final _SeamlessClonePtr = - _lookup Function(Mat, Mat, Mat, Point, Mat, ffi.Int)>>( - 'SeamlessClone'); - late final _SeamlessClone = - _SeamlessClonePtr.asFunction Function(Mat, Mat, Mat, Point, Mat, int)>(); + late final _SeamlessClonePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Point, Mat, ffi.Int)>>('SeamlessClone'); + late final _SeamlessClone = _SeamlessClonePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Point, Mat, int)>(); ffi.Pointer SepFilter2D( Mat src, @@ -15101,10 +16742,11 @@ class CvNative { late final _SepFilter2DPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, Mat, Mat, Point, ffi.Double, ffi.Int)>>('SepFilter2D'); + ffi.Pointer Function(Mat, Mat, ffi.Int, Mat, Mat, Point, + ffi.Double, ffi.Int)>>('SepFilter2D'); late final _SepFilter2D = _SepFilter2DPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, Mat, Mat, Point, double, int)>(); + ffi.Pointer Function( + Mat, Mat, int, Mat, Mat, Point, double, int)>(); ffi.Pointer SetNumThreads( int n, @@ -15115,8 +16757,10 @@ class CvNative { } late final _SetNumThreadsPtr = - _lookup Function(ffi.Int)>>('SetNumThreads'); - late final _SetNumThreads = _SetNumThreadsPtr.asFunction Function(int)>(); + _lookup Function(ffi.Int)>>( + 'SetNumThreads'); + late final _SetNumThreads = + _SetNumThreadsPtr.asFunction Function(int)>(); ffi.Pointer SetRNGSeed( int seed, @@ -15127,8 +16771,10 @@ class CvNative { } late final _SetRNGSeedPtr = - _lookup Function(ffi.Int)>>('SetRNGSeed'); - late final _SetRNGSeed = _SetRNGSeedPtr.asFunction Function(int)>(); + _lookup Function(ffi.Int)>>( + 'SetRNGSeed'); + late final _SetRNGSeed = + _SetRNGSeedPtr.asFunction Function(int)>(); ffi.Pointer SimpleBlobDetectorParams_Create( ffi.Pointer rval, @@ -15138,11 +16784,15 @@ class CvNative { ); } - late final _SimpleBlobDetectorParams_CreatePtr = - _lookup Function(ffi.Pointer)>>( - 'SimpleBlobDetectorParams_Create'); - late final _SimpleBlobDetectorParams_Create = _SimpleBlobDetectorParams_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _SimpleBlobDetectorParams_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>( + 'SimpleBlobDetectorParams_Create'); + late final _SimpleBlobDetectorParams_Create = + _SimpleBlobDetectorParams_CreatePtr.asFunction< + ffi.Pointer Function( + ffi.Pointer)>(); void SimpleBlobDetector_Close( SimpleBlobDetectorPtr b, @@ -15153,9 +16803,10 @@ class CvNative { } late final _SimpleBlobDetector_ClosePtr = - _lookup>('SimpleBlobDetector_Close'); - late final _SimpleBlobDetector_Close = - _SimpleBlobDetector_ClosePtr.asFunction(); + _lookup>( + 'SimpleBlobDetector_Close'); + late final _SimpleBlobDetector_Close = _SimpleBlobDetector_ClosePtr + .asFunction(); ffi.Pointer SimpleBlobDetector_Create( ffi.Pointer rval, @@ -15165,11 +16816,13 @@ class CvNative { ); } - late final _SimpleBlobDetector_CreatePtr = - _lookup Function(ffi.Pointer)>>( - 'SimpleBlobDetector_Create'); - late final _SimpleBlobDetector_Create = _SimpleBlobDetector_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _SimpleBlobDetector_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('SimpleBlobDetector_Create'); + late final _SimpleBlobDetector_Create = + _SimpleBlobDetector_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer SimpleBlobDetector_Create_WithParams( SimpleBlobDetectorParams params, @@ -15182,11 +16835,14 @@ class CvNative { } late final _SimpleBlobDetector_Create_WithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(SimpleBlobDetectorParams, - ffi.Pointer)>>('SimpleBlobDetector_Create_WithParams'); - late final _SimpleBlobDetector_Create_WithParams = _SimpleBlobDetector_Create_WithParamsPtr.asFunction< - ffi.Pointer Function(SimpleBlobDetectorParams, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + SimpleBlobDetectorParams, ffi.Pointer)>>( + 'SimpleBlobDetector_Create_WithParams'); + late final _SimpleBlobDetector_Create_WithParams = + _SimpleBlobDetector_Create_WithParamsPtr.asFunction< + ffi.Pointer Function( + SimpleBlobDetectorParams, ffi.Pointer)>(); ffi.Pointer SimpleBlobDetector_Detect( SimpleBlobDetector b, @@ -15201,11 +16857,13 @@ class CvNative { } late final _SimpleBlobDetector_DetectPtr = _lookup< - ffi - .NativeFunction Function(SimpleBlobDetector, Mat, ffi.Pointer)>>( - 'SimpleBlobDetector_Detect'); - late final _SimpleBlobDetector_Detect = _SimpleBlobDetector_DetectPtr.asFunction< - ffi.Pointer Function(SimpleBlobDetector, Mat, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(SimpleBlobDetector, Mat, + ffi.Pointer)>>('SimpleBlobDetector_Detect'); + late final _SimpleBlobDetector_Detect = + _SimpleBlobDetector_DetectPtr.asFunction< + ffi.Pointer Function( + SimpleBlobDetector, Mat, ffi.Pointer)>(); ffi.Pointer Sobel( Mat src, @@ -15233,10 +16891,11 @@ class CvNative { late final _SobelPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Double, ffi.Double, ffi.Int)>>('Sobel'); + ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Int, ffi.Double, ffi.Double, ffi.Int)>>('Sobel'); late final _Sobel = _SobelPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, int, int, int, double, double, int)>(); + ffi.Pointer Function( + Mat, Mat, int, int, int, int, double, double, int)>(); ffi.Pointer SpatialGradient( Mat src, @@ -15254,11 +16913,12 @@ class CvNative { ); } - late final _SpatialGradientPtr = - _lookup Function(Mat, Mat, Mat, ffi.Int, ffi.Int)>>( - 'SpatialGradient'); - late final _SpatialGradient = - _SpatialGradientPtr.asFunction Function(Mat, Mat, Mat, int, int)>(); + late final _SpatialGradientPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Int, ffi.Int)>>('SpatialGradient'); + late final _SpatialGradient = _SpatialGradientPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, int, int)>(); ffi.Pointer SqBoxFilter( Mat src, @@ -15274,9 +16934,12 @@ class CvNative { ); } - late final _SqBoxFilterPtr = - _lookup Function(Mat, Mat, ffi.Int, Size)>>('SqBoxFilter'); - late final _SqBoxFilter = _SqBoxFilterPtr.asFunction Function(Mat, Mat, int, Size)>(); + late final _SqBoxFilterPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Int, Size)>>('SqBoxFilter'); + late final _SqBoxFilter = _SqBoxFilterPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, Size)>(); void Stitcher_Close( PtrStitcherPtr stitcher, @@ -15287,8 +16950,10 @@ class CvNative { } late final _Stitcher_ClosePtr = - _lookup>('Stitcher_Close'); - late final _Stitcher_Close = _Stitcher_ClosePtr.asFunction(); + _lookup>( + 'Stitcher_Close'); + late final _Stitcher_Close = + _Stitcher_ClosePtr.asFunction(); ffi.Pointer Stitcher_Component( Stitcher self, @@ -15300,11 +16965,12 @@ class CvNative { ); } - late final _Stitcher_ComponentPtr = - _lookup Function(Stitcher, ffi.Pointer)>>( - 'Stitcher_Component'); - late final _Stitcher_Component = - _Stitcher_ComponentPtr.asFunction Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_ComponentPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Stitcher, ffi.Pointer)>>('Stitcher_Component'); + late final _Stitcher_Component = _Stitcher_ComponentPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_ComposePanorama( Stitcher self, @@ -15318,11 +16984,14 @@ class CvNative { ); } - late final _Stitcher_ComposePanoramaPtr = - _lookup Function(Stitcher, Mat, ffi.Pointer)>>( - 'Stitcher_ComposePanorama'); - late final _Stitcher_ComposePanorama = _Stitcher_ComposePanoramaPtr.asFunction< - ffi.Pointer Function(Stitcher, Mat, ffi.Pointer)>(); + late final _Stitcher_ComposePanoramaPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Stitcher, Mat, + ffi.Pointer)>>('Stitcher_ComposePanorama'); + late final _Stitcher_ComposePanorama = + _Stitcher_ComposePanoramaPtr.asFunction< + ffi.Pointer Function( + Stitcher, Mat, ffi.Pointer)>(); ffi.Pointer Stitcher_ComposePanorama_1( Stitcher self, @@ -15339,10 +17008,13 @@ class CvNative { } late final _Stitcher_ComposePanorama_1Ptr = _lookup< - ffi.NativeFunction Function(Stitcher, VecMat, Mat, ffi.Pointer)>>( - 'Stitcher_ComposePanorama_1'); - late final _Stitcher_ComposePanorama_1 = _Stitcher_ComposePanorama_1Ptr.asFunction< - ffi.Pointer Function(Stitcher, VecMat, Mat, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(Stitcher, VecMat, Mat, + ffi.Pointer)>>('Stitcher_ComposePanorama_1'); + late final _Stitcher_ComposePanorama_1 = + _Stitcher_ComposePanorama_1Ptr.asFunction< + ffi.Pointer Function( + Stitcher, VecMat, Mat, ffi.Pointer)>(); ffi.Pointer Stitcher_Create( int mode, @@ -15354,11 +17026,12 @@ class CvNative { ); } - late final _Stitcher_CreatePtr = - _lookup Function(ffi.Int, ffi.Pointer)>>( - 'Stitcher_Create'); - late final _Stitcher_Create = - _Stitcher_CreatePtr.asFunction Function(int, ffi.Pointer)>(); + late final _Stitcher_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int, ffi.Pointer)>>('Stitcher_Create'); + late final _Stitcher_Create = _Stitcher_CreatePtr.asFunction< + ffi.Pointer Function(int, ffi.Pointer)>(); ffi.Pointer Stitcher_EstimateTransform( Stitcher self, @@ -15375,10 +17048,13 @@ class CvNative { } late final _Stitcher_EstimateTransformPtr = _lookup< - ffi.NativeFunction Function(Stitcher, VecMat, VecMat, ffi.Pointer)>>( - 'Stitcher_EstimateTransform'); - late final _Stitcher_EstimateTransform = _Stitcher_EstimateTransformPtr.asFunction< - ffi.Pointer Function(Stitcher, VecMat, VecMat, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(Stitcher, VecMat, VecMat, + ffi.Pointer)>>('Stitcher_EstimateTransform'); + late final _Stitcher_EstimateTransform = + _Stitcher_EstimateTransformPtr.asFunction< + ffi.Pointer Function( + Stitcher, VecMat, VecMat, ffi.Pointer)>(); ffi.Pointer Stitcher_Get( PtrStitcher self, @@ -15390,11 +17066,12 @@ class CvNative { ); } - late final _Stitcher_GetPtr = - _lookup Function(PtrStitcher, ffi.Pointer)>>( - 'Stitcher_Get'); - late final _Stitcher_Get = - _Stitcher_GetPtr.asFunction Function(PtrStitcher, ffi.Pointer)>(); + late final _Stitcher_GetPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + PtrStitcher, ffi.Pointer)>>('Stitcher_Get'); + late final _Stitcher_Get = _Stitcher_GetPtr.asFunction< + ffi.Pointer Function(PtrStitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetCompositingResol( Stitcher self, @@ -15406,11 +17083,13 @@ class CvNative { ); } - late final _Stitcher_GetCompositingResolPtr = - _lookup Function(Stitcher, ffi.Pointer)>>( - 'Stitcher_GetCompositingResol'); - late final _Stitcher_GetCompositingResol = _Stitcher_GetCompositingResolPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetCompositingResolPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Stitcher, + ffi.Pointer)>>('Stitcher_GetCompositingResol'); + late final _Stitcher_GetCompositingResol = + _Stitcher_GetCompositingResolPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetInterpolationFlags( Stitcher self, @@ -15422,11 +17101,13 @@ class CvNative { ); } - late final _Stitcher_GetInterpolationFlagsPtr = - _lookup Function(Stitcher, ffi.Pointer)>>( - 'Stitcher_GetInterpolationFlags'); - late final _Stitcher_GetInterpolationFlags = _Stitcher_GetInterpolationFlagsPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetInterpolationFlagsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Stitcher, + ffi.Pointer)>>('Stitcher_GetInterpolationFlags'); + late final _Stitcher_GetInterpolationFlags = + _Stitcher_GetInterpolationFlagsPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetPanoConfidenceThresh( Stitcher self, @@ -15438,11 +17119,13 @@ class CvNative { ); } - late final _Stitcher_GetPanoConfidenceThreshPtr = - _lookup Function(Stitcher, ffi.Pointer)>>( - 'Stitcher_GetPanoConfidenceThresh'); - late final _Stitcher_GetPanoConfidenceThresh = _Stitcher_GetPanoConfidenceThreshPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetPanoConfidenceThreshPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Stitcher, + ffi.Pointer)>>('Stitcher_GetPanoConfidenceThresh'); + late final _Stitcher_GetPanoConfidenceThresh = + _Stitcher_GetPanoConfidenceThreshPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetRegistrationResol( Stitcher self, @@ -15454,11 +17137,13 @@ class CvNative { ); } - late final _Stitcher_GetRegistrationResolPtr = - _lookup Function(Stitcher, ffi.Pointer)>>( - 'Stitcher_GetRegistrationResol'); - late final _Stitcher_GetRegistrationResol = _Stitcher_GetRegistrationResolPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetRegistrationResolPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Stitcher, + ffi.Pointer)>>('Stitcher_GetRegistrationResol'); + late final _Stitcher_GetRegistrationResol = + _Stitcher_GetRegistrationResolPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetSeamEstimationResol( Stitcher self, @@ -15470,11 +17155,13 @@ class CvNative { ); } - late final _Stitcher_GetSeamEstimationResolPtr = - _lookup Function(Stitcher, ffi.Pointer)>>( - 'Stitcher_GetSeamEstimationResol'); - late final _Stitcher_GetSeamEstimationResol = _Stitcher_GetSeamEstimationResolPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetSeamEstimationResolPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Stitcher, + ffi.Pointer)>>('Stitcher_GetSeamEstimationResol'); + late final _Stitcher_GetSeamEstimationResol = + _Stitcher_GetSeamEstimationResolPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetWaveCorrectKind( Stitcher self, @@ -15486,11 +17173,13 @@ class CvNative { ); } - late final _Stitcher_GetWaveCorrectKindPtr = - _lookup Function(Stitcher, ffi.Pointer)>>( - 'Stitcher_GetWaveCorrectKind'); - late final _Stitcher_GetWaveCorrectKind = _Stitcher_GetWaveCorrectKindPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetWaveCorrectKindPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Stitcher, ffi.Pointer)>>('Stitcher_GetWaveCorrectKind'); + late final _Stitcher_GetWaveCorrectKind = + _Stitcher_GetWaveCorrectKindPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetWaveCorrection( Stitcher self, @@ -15502,11 +17191,13 @@ class CvNative { ); } - late final _Stitcher_GetWaveCorrectionPtr = - _lookup Function(Stitcher, ffi.Pointer)>>( - 'Stitcher_GetWaveCorrection'); - late final _Stitcher_GetWaveCorrection = _Stitcher_GetWaveCorrectionPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetWaveCorrectionPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Stitcher, ffi.Pointer)>>('Stitcher_GetWaveCorrection'); + late final _Stitcher_GetWaveCorrection = + _Stitcher_GetWaveCorrectionPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_SetCompositingResol( Stitcher self, @@ -15518,11 +17209,12 @@ class CvNative { ); } - late final _Stitcher_SetCompositingResolPtr = - _lookup Function(Stitcher, ffi.Double)>>( - 'Stitcher_SetCompositingResol'); - late final _Stitcher_SetCompositingResol = - _Stitcher_SetCompositingResolPtr.asFunction Function(Stitcher, double)>(); + late final _Stitcher_SetCompositingResolPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Stitcher, ffi.Double)>>('Stitcher_SetCompositingResol'); + late final _Stitcher_SetCompositingResol = _Stitcher_SetCompositingResolPtr + .asFunction Function(Stitcher, double)>(); ffi.Pointer Stitcher_SetInterpolationFlags( Stitcher self, @@ -15534,11 +17226,13 @@ class CvNative { ); } - late final _Stitcher_SetInterpolationFlagsPtr = - _lookup Function(Stitcher, ffi.Int)>>( - 'Stitcher_SetInterpolationFlags'); + late final _Stitcher_SetInterpolationFlagsPtr = _lookup< + ffi + .NativeFunction Function(Stitcher, ffi.Int)>>( + 'Stitcher_SetInterpolationFlags'); late final _Stitcher_SetInterpolationFlags = - _Stitcher_SetInterpolationFlagsPtr.asFunction Function(Stitcher, int)>(); + _Stitcher_SetInterpolationFlagsPtr.asFunction< + ffi.Pointer Function(Stitcher, int)>(); ffi.Pointer Stitcher_SetPanoConfidenceThresh( Stitcher self, @@ -15550,11 +17244,13 @@ class CvNative { ); } - late final _Stitcher_SetPanoConfidenceThreshPtr = - _lookup Function(Stitcher, ffi.Double)>>( - 'Stitcher_SetPanoConfidenceThresh'); + late final _Stitcher_SetPanoConfidenceThreshPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Stitcher, ffi.Double)>>('Stitcher_SetPanoConfidenceThresh'); late final _Stitcher_SetPanoConfidenceThresh = - _Stitcher_SetPanoConfidenceThreshPtr.asFunction Function(Stitcher, double)>(); + _Stitcher_SetPanoConfidenceThreshPtr.asFunction< + ffi.Pointer Function(Stitcher, double)>(); ffi.Pointer Stitcher_SetRegistrationResol( Stitcher self, @@ -15566,11 +17262,12 @@ class CvNative { ); } - late final _Stitcher_SetRegistrationResolPtr = - _lookup Function(Stitcher, ffi.Double)>>( - 'Stitcher_SetRegistrationResol'); - late final _Stitcher_SetRegistrationResol = - _Stitcher_SetRegistrationResolPtr.asFunction Function(Stitcher, double)>(); + late final _Stitcher_SetRegistrationResolPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Stitcher, ffi.Double)>>('Stitcher_SetRegistrationResol'); + late final _Stitcher_SetRegistrationResol = _Stitcher_SetRegistrationResolPtr + .asFunction Function(Stitcher, double)>(); ffi.Pointer Stitcher_SetSeamEstimationResol( Stitcher self, @@ -15582,11 +17279,13 @@ class CvNative { ); } - late final _Stitcher_SetSeamEstimationResolPtr = - _lookup Function(Stitcher, ffi.Double)>>( - 'Stitcher_SetSeamEstimationResol'); + late final _Stitcher_SetSeamEstimationResolPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Stitcher, ffi.Double)>>('Stitcher_SetSeamEstimationResol'); late final _Stitcher_SetSeamEstimationResol = - _Stitcher_SetSeamEstimationResolPtr.asFunction Function(Stitcher, double)>(); + _Stitcher_SetSeamEstimationResolPtr.asFunction< + ffi.Pointer Function(Stitcher, double)>(); ffi.Pointer Stitcher_SetWaveCorrectKind( Stitcher self, @@ -15598,11 +17297,12 @@ class CvNative { ); } - late final _Stitcher_SetWaveCorrectKindPtr = - _lookup Function(Stitcher, ffi.Int)>>( - 'Stitcher_SetWaveCorrectKind'); - late final _Stitcher_SetWaveCorrectKind = - _Stitcher_SetWaveCorrectKindPtr.asFunction Function(Stitcher, int)>(); + late final _Stitcher_SetWaveCorrectKindPtr = _lookup< + ffi + .NativeFunction Function(Stitcher, ffi.Int)>>( + 'Stitcher_SetWaveCorrectKind'); + late final _Stitcher_SetWaveCorrectKind = _Stitcher_SetWaveCorrectKindPtr + .asFunction Function(Stitcher, int)>(); ffi.Pointer Stitcher_SetWaveCorrection( Stitcher self, @@ -15614,11 +17314,12 @@ class CvNative { ); } - late final _Stitcher_SetWaveCorrectionPtr = - _lookup Function(Stitcher, ffi.Bool)>>( - 'Stitcher_SetWaveCorrection'); - late final _Stitcher_SetWaveCorrection = - _Stitcher_SetWaveCorrectionPtr.asFunction Function(Stitcher, bool)>(); + late final _Stitcher_SetWaveCorrectionPtr = _lookup< + ffi + .NativeFunction Function(Stitcher, ffi.Bool)>>( + 'Stitcher_SetWaveCorrection'); + late final _Stitcher_SetWaveCorrection = _Stitcher_SetWaveCorrectionPtr + .asFunction Function(Stitcher, bool)>(); ffi.Pointer Stitcher_Stitch( Stitcher self, @@ -15635,10 +17336,12 @@ class CvNative { } late final _Stitcher_StitchPtr = _lookup< - ffi.NativeFunction Function(Stitcher, VecMat, Mat, ffi.Pointer)>>( - 'Stitcher_Stitch'); + ffi.NativeFunction< + ffi.Pointer Function( + Stitcher, VecMat, Mat, ffi.Pointer)>>('Stitcher_Stitch'); late final _Stitcher_Stitch = _Stitcher_StitchPtr.asFunction< - ffi.Pointer Function(Stitcher, VecMat, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + Stitcher, VecMat, Mat, ffi.Pointer)>(); ffi.Pointer Stitcher_Stitch_1( Stitcher self, @@ -15658,10 +17361,11 @@ class CvNative { late final _Stitcher_Stitch_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Stitcher, VecMat, VecMat, Mat, ffi.Pointer)>>('Stitcher_Stitch_1'); + ffi.Pointer Function(Stitcher, VecMat, VecMat, Mat, + ffi.Pointer)>>('Stitcher_Stitch_1'); late final _Stitcher_Stitch_1 = _Stitcher_Stitch_1Ptr.asFunction< - ffi.Pointer Function(Stitcher, VecMat, VecMat, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + Stitcher, VecMat, VecMat, Mat, ffi.Pointer)>(); ffi.Pointer Stylization( Mat src, @@ -15677,11 +17381,12 @@ class CvNative { ); } - late final _StylizationPtr = - _lookup Function(Mat, Mat, ffi.Float, ffi.Float)>>( - 'Stylization'); - late final _Stylization = - _StylizationPtr.asFunction Function(Mat, Mat, double, double)>(); + late final _StylizationPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Float, ffi.Float)>>('Stylization'); + late final _Stylization = _StylizationPtr.asFunction< + ffi.Pointer Function(Mat, Mat, double, double)>(); void Subdiv2D_Close( Subdiv2DPtr self, @@ -15692,8 +17397,10 @@ class CvNative { } late final _Subdiv2D_ClosePtr = - _lookup>('Subdiv2D_Close'); - late final _Subdiv2D_Close = _Subdiv2D_ClosePtr.asFunction(); + _lookup>( + 'Subdiv2D_Close'); + late final _Subdiv2D_Close = + _Subdiv2D_ClosePtr.asFunction(); ffi.Pointer Subdiv2D_EdgeDst( Subdiv2D self, @@ -15711,10 +17418,11 @@ class CvNative { late final _Subdiv2D_EdgeDstPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Subdiv2D, ffi.Int, ffi.Pointer, ffi.Pointer)>>('Subdiv2D_EdgeDst'); + ffi.Pointer Function(Subdiv2D, ffi.Int, + ffi.Pointer, ffi.Pointer)>>('Subdiv2D_EdgeDst'); late final _Subdiv2D_EdgeDst = _Subdiv2D_EdgeDstPtr.asFunction< - ffi.Pointer Function(Subdiv2D, int, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Subdiv2D, int, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Subdiv2D_EdgeOrg( Subdiv2D self, @@ -15732,10 +17440,11 @@ class CvNative { late final _Subdiv2D_EdgeOrgPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Subdiv2D, ffi.Int, ffi.Pointer, ffi.Pointer)>>('Subdiv2D_EdgeOrg'); + ffi.Pointer Function(Subdiv2D, ffi.Int, + ffi.Pointer, ffi.Pointer)>>('Subdiv2D_EdgeOrg'); late final _Subdiv2D_EdgeOrg = _Subdiv2D_EdgeOrgPtr.asFunction< - ffi.Pointer Function(Subdiv2D, int, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Subdiv2D, int, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Subdiv2D_FindNearest( Subdiv2D self, @@ -15754,9 +17463,13 @@ class CvNative { late final _Subdiv2D_FindNearestPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - Subdiv2D, Point2f, ffi.Pointer, ffi.Pointer)>>('Subdiv2D_FindNearest'); + Subdiv2D, + Point2f, + ffi.Pointer, + ffi.Pointer)>>('Subdiv2D_FindNearest'); late final _Subdiv2D_FindNearest = _Subdiv2D_FindNearestPtr.asFunction< - ffi.Pointer Function(Subdiv2D, Point2f, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Subdiv2D, Point2f, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Subdiv2D_GetEdge( Subdiv2D self, @@ -15773,11 +17486,12 @@ class CvNative { } late final _Subdiv2D_GetEdgePtr = _lookup< - ffi - .NativeFunction Function(Subdiv2D, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Subdiv2D_GetEdge'); + ffi.NativeFunction< + ffi.Pointer Function(Subdiv2D, ffi.Int, ffi.Int, + ffi.Pointer)>>('Subdiv2D_GetEdge'); late final _Subdiv2D_GetEdge = _Subdiv2D_GetEdgePtr.asFunction< - ffi.Pointer Function(Subdiv2D, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Subdiv2D, int, int, ffi.Pointer)>(); ffi.Pointer Subdiv2D_GetEdgeList( Subdiv2D self, @@ -15794,9 +17508,12 @@ class CvNative { late final _Subdiv2D_GetEdgeListPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - Subdiv2D, ffi.Pointer>, ffi.Pointer)>>('Subdiv2D_GetEdgeList'); + Subdiv2D, + ffi.Pointer>, + ffi.Pointer)>>('Subdiv2D_GetEdgeList'); late final _Subdiv2D_GetEdgeList = _Subdiv2D_GetEdgeListPtr.asFunction< - ffi.Pointer Function(Subdiv2D, ffi.Pointer>, ffi.Pointer)>(); + ffi.Pointer Function( + Subdiv2D, ffi.Pointer>, ffi.Pointer)>(); ffi.Pointer Subdiv2D_GetLeadingEdgeList( Subdiv2D self, @@ -15808,11 +17525,13 @@ class CvNative { ); } - late final _Subdiv2D_GetLeadingEdgeListPtr = - _lookup Function(Subdiv2D, ffi.Pointer)>>( - 'Subdiv2D_GetLeadingEdgeList'); - late final _Subdiv2D_GetLeadingEdgeList = _Subdiv2D_GetLeadingEdgeListPtr.asFunction< - ffi.Pointer Function(Subdiv2D, ffi.Pointer)>(); + late final _Subdiv2D_GetLeadingEdgeListPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Subdiv2D, ffi.Pointer)>>('Subdiv2D_GetLeadingEdgeList'); + late final _Subdiv2D_GetLeadingEdgeList = + _Subdiv2D_GetLeadingEdgeListPtr.asFunction< + ffi.Pointer Function(Subdiv2D, ffi.Pointer)>(); ffi.Pointer Subdiv2D_GetTriangleList( Subdiv2D self, @@ -15829,9 +17548,13 @@ class CvNative { late final _Subdiv2D_GetTriangleListPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - Subdiv2D, ffi.Pointer>, ffi.Pointer)>>('Subdiv2D_GetTriangleList'); - late final _Subdiv2D_GetTriangleList = _Subdiv2D_GetTriangleListPtr.asFunction< - ffi.Pointer Function(Subdiv2D, ffi.Pointer>, ffi.Pointer)>(); + Subdiv2D, + ffi.Pointer>, + ffi.Pointer)>>('Subdiv2D_GetTriangleList'); + late final _Subdiv2D_GetTriangleList = + _Subdiv2D_GetTriangleListPtr.asFunction< + ffi.Pointer Function(Subdiv2D, + ffi.Pointer>, ffi.Pointer)>(); ffi.Pointer Subdiv2D_GetVertex( Subdiv2D self, @@ -15850,9 +17573,13 @@ class CvNative { late final _Subdiv2D_GetVertexPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - Subdiv2D, ffi.Int, ffi.Pointer, ffi.Pointer)>>('Subdiv2D_GetVertex'); + Subdiv2D, + ffi.Int, + ffi.Pointer, + ffi.Pointer)>>('Subdiv2D_GetVertex'); late final _Subdiv2D_GetVertex = _Subdiv2D_GetVertexPtr.asFunction< - ffi.Pointer Function(Subdiv2D, int, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Subdiv2D, int, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Subdiv2D_GetVoronoiFacetList( Subdiv2D self, @@ -15870,11 +17597,15 @@ class CvNative { late final _Subdiv2D_GetVoronoiFacetListPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Subdiv2D, VecInt, ffi.Pointer, + ffi.Pointer Function( + Subdiv2D, + VecInt, + ffi.Pointer, ffi.Pointer)>>('Subdiv2D_GetVoronoiFacetList'); - late final _Subdiv2D_GetVoronoiFacetList = _Subdiv2D_GetVoronoiFacetListPtr.asFunction< - ffi.Pointer Function( - Subdiv2D, VecInt, ffi.Pointer, ffi.Pointer)>(); + late final _Subdiv2D_GetVoronoiFacetList = + _Subdiv2D_GetVoronoiFacetListPtr.asFunction< + ffi.Pointer Function(Subdiv2D, VecInt, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Subdiv2D_InitDelaunay( Subdiv2D self, @@ -15886,10 +17617,11 @@ class CvNative { ); } - late final _Subdiv2D_InitDelaunayPtr = - _lookup Function(Subdiv2D, Rect)>>('Subdiv2D_InitDelaunay'); - late final _Subdiv2D_InitDelaunay = - _Subdiv2D_InitDelaunayPtr.asFunction Function(Subdiv2D, Rect)>(); + late final _Subdiv2D_InitDelaunayPtr = _lookup< + ffi.NativeFunction Function(Subdiv2D, Rect)>>( + 'Subdiv2D_InitDelaunay'); + late final _Subdiv2D_InitDelaunay = _Subdiv2D_InitDelaunayPtr.asFunction< + ffi.Pointer Function(Subdiv2D, Rect)>(); ffi.Pointer Subdiv2D_Insert( Subdiv2D self, @@ -15903,11 +17635,13 @@ class CvNative { ); } - late final _Subdiv2D_InsertPtr = - _lookup Function(Subdiv2D, Point2f, ffi.Pointer)>>( - 'Subdiv2D_Insert'); + late final _Subdiv2D_InsertPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Subdiv2D, Point2f, ffi.Pointer)>>('Subdiv2D_Insert'); late final _Subdiv2D_Insert = _Subdiv2D_InsertPtr.asFunction< - ffi.Pointer Function(Subdiv2D, Point2f, ffi.Pointer)>(); + ffi.Pointer Function( + Subdiv2D, Point2f, ffi.Pointer)>(); ffi.Pointer Subdiv2D_InsertVec( Subdiv2D self, @@ -15919,10 +17653,12 @@ class CvNative { ); } - late final _Subdiv2D_InsertVecPtr = - _lookup Function(Subdiv2D, VecPoint2f)>>('Subdiv2D_InsertVec'); - late final _Subdiv2D_InsertVec = - _Subdiv2D_InsertVecPtr.asFunction Function(Subdiv2D, VecPoint2f)>(); + late final _Subdiv2D_InsertVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Subdiv2D, VecPoint2f)>>('Subdiv2D_InsertVec'); + late final _Subdiv2D_InsertVec = _Subdiv2D_InsertVecPtr.asFunction< + ffi.Pointer Function(Subdiv2D, VecPoint2f)>(); ffi.Pointer Subdiv2D_Locate( Subdiv2D self, @@ -15942,11 +17678,15 @@ class CvNative { late final _Subdiv2D_LocatePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Subdiv2D, Point2f, ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + Subdiv2D, + Point2f, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('Subdiv2D_Locate'); late final _Subdiv2D_Locate = _Subdiv2D_LocatePtr.asFunction< - ffi.Pointer Function( - Subdiv2D, Point2f, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(Subdiv2D, Point2f, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Subdiv2D_NewEmpty( ffi.Pointer rval, @@ -15956,10 +17696,12 @@ class CvNative { ); } - late final _Subdiv2D_NewEmptyPtr = - _lookup Function(ffi.Pointer)>>('Subdiv2D_NewEmpty'); - late final _Subdiv2D_NewEmpty = - _Subdiv2D_NewEmptyPtr.asFunction Function(ffi.Pointer)>(); + late final _Subdiv2D_NewEmptyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('Subdiv2D_NewEmpty'); + late final _Subdiv2D_NewEmpty = _Subdiv2D_NewEmptyPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer Subdiv2D_NewWithRect( Rect rect, @@ -15971,11 +17713,12 @@ class CvNative { ); } - late final _Subdiv2D_NewWithRectPtr = - _lookup Function(Rect, ffi.Pointer)>>( - 'Subdiv2D_NewWithRect'); - late final _Subdiv2D_NewWithRect = - _Subdiv2D_NewWithRectPtr.asFunction Function(Rect, ffi.Pointer)>(); + late final _Subdiv2D_NewWithRectPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Rect, ffi.Pointer)>>('Subdiv2D_NewWithRect'); + late final _Subdiv2D_NewWithRect = _Subdiv2D_NewWithRectPtr.asFunction< + ffi.Pointer Function(Rect, ffi.Pointer)>(); ffi.Pointer Subdiv2D_NextEdge( Subdiv2D self, @@ -15989,11 +17732,12 @@ class CvNative { ); } - late final _Subdiv2D_NextEdgePtr = - _lookup Function(Subdiv2D, ffi.Int, ffi.Pointer)>>( - 'Subdiv2D_NextEdge'); - late final _Subdiv2D_NextEdge = - _Subdiv2D_NextEdgePtr.asFunction Function(Subdiv2D, int, ffi.Pointer)>(); + late final _Subdiv2D_NextEdgePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Subdiv2D, ffi.Int, ffi.Pointer)>>('Subdiv2D_NextEdge'); + late final _Subdiv2D_NextEdge = _Subdiv2D_NextEdgePtr.asFunction< + ffi.Pointer Function(Subdiv2D, int, ffi.Pointer)>(); ffi.Pointer Subdiv2D_RotateEdge( Subdiv2D self, @@ -16010,11 +17754,12 @@ class CvNative { } late final _Subdiv2D_RotateEdgePtr = _lookup< - ffi - .NativeFunction Function(Subdiv2D, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Subdiv2D_RotateEdge'); + ffi.NativeFunction< + ffi.Pointer Function(Subdiv2D, ffi.Int, ffi.Int, + ffi.Pointer)>>('Subdiv2D_RotateEdge'); late final _Subdiv2D_RotateEdge = _Subdiv2D_RotateEdgePtr.asFunction< - ffi.Pointer Function(Subdiv2D, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Subdiv2D, int, int, ffi.Pointer)>(); ffi.Pointer Subdiv2D_SymEdge( Subdiv2D self, @@ -16028,11 +17773,12 @@ class CvNative { ); } - late final _Subdiv2D_SymEdgePtr = - _lookup Function(Subdiv2D, ffi.Int, ffi.Pointer)>>( - 'Subdiv2D_SymEdge'); - late final _Subdiv2D_SymEdge = - _Subdiv2D_SymEdgePtr.asFunction Function(Subdiv2D, int, ffi.Pointer)>(); + late final _Subdiv2D_SymEdgePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Subdiv2D, ffi.Int, ffi.Pointer)>>('Subdiv2D_SymEdge'); + late final _Subdiv2D_SymEdge = _Subdiv2D_SymEdgePtr.asFunction< + ffi.Pointer Function(Subdiv2D, int, ffi.Pointer)>(); ffi.Pointer TextureFlattening( Mat src, @@ -16053,10 +17799,11 @@ class CvNative { } late final _TextureFlatteningPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat, ffi.Float, ffi.Float, ffi.Int)>>( - 'TextureFlattening'); - late final _TextureFlattening = - _TextureFlatteningPtr.asFunction Function(Mat, Mat, Mat, double, double, int)>(); + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Mat, ffi.Float, ffi.Float, + ffi.Int)>>('TextureFlattening'); + late final _TextureFlattening = _TextureFlatteningPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, double, double, int)>(); ffi.Pointer TheRNG( ffi.Pointer rval, @@ -16066,9 +17813,11 @@ class CvNative { ); } - late final _TheRNGPtr = - _lookup Function(ffi.Pointer)>>('TheRNG'); - late final _TheRNG = _TheRNGPtr.asFunction Function(ffi.Pointer)>(); + late final _TheRNGPtr = _lookup< + ffi.NativeFunction Function(ffi.Pointer)>>( + 'TheRNG'); + late final _TheRNG = + _TheRNGPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer Threshold( Mat src, @@ -16090,10 +17839,11 @@ class CvNative { late final _ThresholdPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Double, ffi.Double, ffi.Int, ffi.Pointer)>>('Threshold'); + ffi.Pointer Function(Mat, Mat, ffi.Double, ffi.Double, + ffi.Int, ffi.Pointer)>>('Threshold'); late final _Threshold = _ThresholdPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, double, int, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, Mat, double, double, int, ffi.Pointer)>(); ffi.Pointer Trackbar_Create( ffi.Pointer winname, @@ -16109,10 +17859,11 @@ class CvNative { late final _Trackbar_CreatePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, ffi.Int)>>('Trackbar_Create'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int)>>('Trackbar_Create'); late final _Trackbar_Create = _Trackbar_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); ffi.Pointer Trackbar_CreateWithValue( ffi.Pointer winname, @@ -16130,11 +17881,15 @@ class CvNative { late final _Trackbar_CreateWithValuePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Int)>>('Trackbar_CreateWithValue'); - late final _Trackbar_CreateWithValue = _Trackbar_CreateWithValuePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); + late final _Trackbar_CreateWithValue = + _Trackbar_CreateWithValuePtr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); ffi.Pointer Trackbar_GetPos( ffi.Pointer winname, @@ -16150,10 +17905,11 @@ class CvNative { late final _Trackbar_GetPosPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('Trackbar_GetPos'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('Trackbar_GetPos'); late final _Trackbar_GetPos = _Trackbar_GetPosPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Trackbar_SetMax( ffi.Pointer winname, @@ -16169,10 +17925,11 @@ class CvNative { late final _Trackbar_SetMaxPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, ffi.Int)>>('Trackbar_SetMax'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int)>>('Trackbar_SetMax'); late final _Trackbar_SetMax = _Trackbar_SetMaxPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); ffi.Pointer Trackbar_SetMin( ffi.Pointer winname, @@ -16188,10 +17945,11 @@ class CvNative { late final _Trackbar_SetMinPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, ffi.Int)>>('Trackbar_SetMin'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int)>>('Trackbar_SetMin'); late final _Trackbar_SetMin = _Trackbar_SetMinPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); ffi.Pointer Trackbar_SetPos( ffi.Pointer winname, @@ -16207,10 +17965,11 @@ class CvNative { late final _Trackbar_SetPosPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, ffi.Int)>>('Trackbar_SetPos'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int)>>('Trackbar_SetPos'); late final _Trackbar_SetPos = _Trackbar_SetPosPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); void TrackerMIL_Close( TrackerMILPtr self, @@ -16221,8 +17980,10 @@ class CvNative { } late final _TrackerMIL_ClosePtr = - _lookup>('TrackerMIL_Close'); - late final _TrackerMIL_Close = _TrackerMIL_ClosePtr.asFunction(); + _lookup>( + 'TrackerMIL_Close'); + late final _TrackerMIL_Close = + _TrackerMIL_ClosePtr.asFunction(); ffi.Pointer TrackerMIL_Create( ffi.Pointer rval, @@ -16232,11 +17993,12 @@ class CvNative { ); } - late final _TrackerMIL_CreatePtr = - _lookup Function(ffi.Pointer)>>( - 'TrackerMIL_Create'); - late final _TrackerMIL_Create = - _TrackerMIL_CreatePtr.asFunction Function(ffi.Pointer)>(); + late final _TrackerMIL_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('TrackerMIL_Create'); + late final _TrackerMIL_Create = _TrackerMIL_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer TrackerMIL_Init( TrackerMIL self, @@ -16250,10 +18012,12 @@ class CvNative { ); } - late final _TrackerMIL_InitPtr = - _lookup Function(TrackerMIL, Mat, Rect)>>('TrackerMIL_Init'); - late final _TrackerMIL_Init = - _TrackerMIL_InitPtr.asFunction Function(TrackerMIL, Mat, Rect)>(); + late final _TrackerMIL_InitPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + TrackerMIL, Mat, Rect)>>('TrackerMIL_Init'); + late final _TrackerMIL_Init = _TrackerMIL_InitPtr.asFunction< + ffi.Pointer Function(TrackerMIL, Mat, Rect)>(); ffi.Pointer TrackerMIL_Update( TrackerMIL self, @@ -16271,10 +18035,11 @@ class CvNative { late final _TrackerMIL_UpdatePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - TrackerMIL, Mat, ffi.Pointer, ffi.Pointer)>>('TrackerMIL_Update'); + ffi.Pointer Function(TrackerMIL, Mat, ffi.Pointer, + ffi.Pointer)>>('TrackerMIL_Update'); late final _TrackerMIL_Update = _TrackerMIL_UpdatePtr.asFunction< - ffi.Pointer Function(TrackerMIL, Mat, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + TrackerMIL, Mat, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Undistort( Mat src, @@ -16292,9 +18057,12 @@ class CvNative { ); } - late final _UndistortPtr = - _lookup Function(Mat, Mat, Mat, Mat, Mat)>>('Undistort'); - late final _Undistort = _UndistortPtr.asFunction Function(Mat, Mat, Mat, Mat, Mat)>(); + late final _UndistortPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, Mat)>>('Undistort'); + late final _Undistort = _UndistortPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat)>(); ffi.Pointer UndistortPoints( Mat distorted, @@ -16316,11 +18084,13 @@ class CvNative { ); } - late final _UndistortPointsPtr = - _lookup Function(Mat, Mat, Mat, Mat, Mat, Mat, TermCriteria)>>( - 'UndistortPoints'); + late final _UndistortPointsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, Mat, Mat, TermCriteria)>>('UndistortPoints'); late final _UndistortPoints = _UndistortPointsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, Mat, TermCriteria)>(); + ffi.Pointer Function( + Mat, Mat, Mat, Mat, Mat, Mat, TermCriteria)>(); ffi.Pointer VecChar_Append( VecChar vec, @@ -16332,9 +18102,11 @@ class CvNative { ); } - late final _VecChar_AppendPtr = - _lookup Function(VecChar, ffi.Char)>>('VecChar_Append'); - late final _VecChar_Append = _VecChar_AppendPtr.asFunction Function(VecChar, int)>(); + late final _VecChar_AppendPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecChar, ffi.Char)>>('VecChar_Append'); + late final _VecChar_Append = _VecChar_AppendPtr.asFunction< + ffi.Pointer Function(VecChar, int)>(); ffi.Pointer VecChar_At( VecChar vec, @@ -16348,11 +18120,12 @@ class CvNative { ); } - late final _VecChar_AtPtr = - _lookup Function(VecChar, ffi.Int, ffi.Pointer)>>( - 'VecChar_At'); - late final _VecChar_At = - _VecChar_AtPtr.asFunction Function(VecChar, int, ffi.Pointer)>(); + late final _VecChar_AtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecChar, ffi.Int, ffi.Pointer)>>('VecChar_At'); + late final _VecChar_At = _VecChar_AtPtr.asFunction< + ffi.Pointer Function(VecChar, int, ffi.Pointer)>(); void VecChar_Close( VecCharPtr vec, @@ -16362,8 +18135,11 @@ class CvNative { ); } - late final _VecChar_ClosePtr = _lookup>('VecChar_Close'); - late final _VecChar_Close = _VecChar_ClosePtr.asFunction(); + late final _VecChar_ClosePtr = + _lookup>( + 'VecChar_Close'); + late final _VecChar_Close = + _VecChar_ClosePtr.asFunction(); ffi.Pointer VecChar_Data( VecChar vec, @@ -16376,10 +18152,12 @@ class CvNative { } late final _VecChar_DataPtr = _lookup< - ffi.NativeFunction Function(VecChar, ffi.Pointer>)>>( - 'VecChar_Data'); + ffi.NativeFunction< + ffi.Pointer Function( + VecChar, ffi.Pointer>)>>('VecChar_Data'); late final _VecChar_Data = _VecChar_DataPtr.asFunction< - ffi.Pointer Function(VecChar, ffi.Pointer>)>(); + ffi.Pointer Function( + VecChar, ffi.Pointer>)>(); ffi.Pointer VecChar_New( ffi.Pointer rval, @@ -16389,10 +18167,11 @@ class CvNative { ); } - late final _VecChar_NewPtr = - _lookup Function(ffi.Pointer)>>('VecChar_New'); - late final _VecChar_New = - _VecChar_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecChar_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('VecChar_New'); + late final _VecChar_New = _VecChar_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecChar_NewFromPointer( ffi.Pointer p, @@ -16408,10 +18187,11 @@ class CvNative { late final _VecChar_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecChar_NewFromPointer'); + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecChar_NewFromPointer'); late final _VecChar_NewFromPointer = _VecChar_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecChar_NewFromVec( VecChar vec, @@ -16423,11 +18203,12 @@ class CvNative { ); } - late final _VecChar_NewFromVecPtr = - _lookup Function(VecChar, ffi.Pointer)>>( - 'VecChar_NewFromVec'); - late final _VecChar_NewFromVec = - _VecChar_NewFromVecPtr.asFunction Function(VecChar, ffi.Pointer)>(); + late final _VecChar_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecChar, ffi.Pointer)>>('VecChar_NewFromVec'); + late final _VecChar_NewFromVec = _VecChar_NewFromVecPtr.asFunction< + ffi.Pointer Function(VecChar, ffi.Pointer)>(); ffi.Pointer VecChar_Size( VecChar vec, @@ -16439,11 +18220,12 @@ class CvNative { ); } - late final _VecChar_SizePtr = - _lookup Function(VecChar, ffi.Pointer)>>( - 'VecChar_Size'); - late final _VecChar_Size = - _VecChar_SizePtr.asFunction Function(VecChar, ffi.Pointer)>(); + late final _VecChar_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecChar, ffi.Pointer)>>('VecChar_Size'); + late final _VecChar_Size = _VecChar_SizePtr.asFunction< + ffi.Pointer Function(VecChar, ffi.Pointer)>(); ffi.Pointer VecChar_ToString( VecChar vec, @@ -16460,9 +18242,12 @@ class CvNative { late final _VecChar_ToStringPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - VecChar, ffi.Pointer>, ffi.Pointer)>>('VecChar_ToString'); + VecChar, + ffi.Pointer>, + ffi.Pointer)>>('VecChar_ToString'); late final _VecChar_ToString = _VecChar_ToStringPtr.asFunction< - ffi.Pointer Function(VecChar, ffi.Pointer>, ffi.Pointer)>(); + ffi.Pointer Function( + VecChar, ffi.Pointer>, ffi.Pointer)>(); ffi.Pointer VecDMatch_Append( VecDMatch vec, @@ -16474,10 +18259,12 @@ class CvNative { ); } - late final _VecDMatch_AppendPtr = - _lookup Function(VecDMatch, DMatch)>>('VecDMatch_Append'); - late final _VecDMatch_Append = - _VecDMatch_AppendPtr.asFunction Function(VecDMatch, DMatch)>(); + late final _VecDMatch_AppendPtr = _lookup< + ffi + .NativeFunction Function(VecDMatch, DMatch)>>( + 'VecDMatch_Append'); + late final _VecDMatch_Append = _VecDMatch_AppendPtr.asFunction< + ffi.Pointer Function(VecDMatch, DMatch)>(); ffi.Pointer VecDMatch_At( VecDMatch vec, @@ -16491,11 +18278,12 @@ class CvNative { ); } - late final _VecDMatch_AtPtr = - _lookup Function(VecDMatch, ffi.Int, ffi.Pointer)>>( - 'VecDMatch_At'); - late final _VecDMatch_At = - _VecDMatch_AtPtr.asFunction Function(VecDMatch, int, ffi.Pointer)>(); + late final _VecDMatch_AtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecDMatch, ffi.Int, ffi.Pointer)>>('VecDMatch_At'); + late final _VecDMatch_At = _VecDMatch_AtPtr.asFunction< + ffi.Pointer Function(VecDMatch, int, ffi.Pointer)>(); void VecDMatch_Close( VecDMatchPtr vec, @@ -16506,8 +18294,10 @@ class CvNative { } late final _VecDMatch_ClosePtr = - _lookup>('VecDMatch_Close'); - late final _VecDMatch_Close = _VecDMatch_ClosePtr.asFunction(); + _lookup>( + 'VecDMatch_Close'); + late final _VecDMatch_Close = + _VecDMatch_ClosePtr.asFunction(); ffi.Pointer VecDMatch_New( ffi.Pointer rval, @@ -16517,10 +18307,12 @@ class CvNative { ); } - late final _VecDMatch_NewPtr = - _lookup Function(ffi.Pointer)>>('VecDMatch_New'); - late final _VecDMatch_New = - _VecDMatch_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecDMatch_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecDMatch_New'); + late final _VecDMatch_New = _VecDMatch_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecDMatch_NewFromPointer( ffi.Pointer matches, @@ -16536,10 +18328,12 @@ class CvNative { late final _VecDMatch_NewFromPointerPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecDMatch_NewFromPointer'); + late final _VecDMatch_NewFromPointer = + _VecDMatch_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecDMatch_NewFromPointer'); - late final _VecDMatch_NewFromPointer = _VecDMatch_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecDMatch_NewFromVec( VecDMatch vec, @@ -16551,9 +18345,10 @@ class CvNative { ); } - late final _VecDMatch_NewFromVecPtr = - _lookup Function(VecDMatch, ffi.Pointer)>>( - 'VecDMatch_NewFromVec'); + late final _VecDMatch_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecDMatch, ffi.Pointer)>>('VecDMatch_NewFromVec'); late final _VecDMatch_NewFromVec = _VecDMatch_NewFromVecPtr.asFunction< ffi.Pointer Function(VecDMatch, ffi.Pointer)>(); @@ -16567,11 +18362,12 @@ class CvNative { ); } - late final _VecDMatch_SizePtr = - _lookup Function(VecDMatch, ffi.Pointer)>>( - 'VecDMatch_Size'); - late final _VecDMatch_Size = - _VecDMatch_SizePtr.asFunction Function(VecDMatch, ffi.Pointer)>(); + late final _VecDMatch_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecDMatch, ffi.Pointer)>>('VecDMatch_Size'); + late final _VecDMatch_Size = _VecDMatch_SizePtr.asFunction< + ffi.Pointer Function(VecDMatch, ffi.Pointer)>(); ffi.Pointer VecDouble_Append( VecDouble vec, @@ -16583,10 +18379,12 @@ class CvNative { ); } - late final _VecDouble_AppendPtr = - _lookup Function(VecDouble, ffi.Double)>>('VecDouble_Append'); - late final _VecDouble_Append = - _VecDouble_AppendPtr.asFunction Function(VecDouble, double)>(); + late final _VecDouble_AppendPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecDouble, ffi.Double)>>('VecDouble_Append'); + late final _VecDouble_Append = _VecDouble_AppendPtr.asFunction< + ffi.Pointer Function(VecDouble, double)>(); ffi.Pointer VecDouble_At( VecDouble vec, @@ -16601,10 +18399,12 @@ class CvNative { } late final _VecDouble_AtPtr = _lookup< - ffi.NativeFunction Function(VecDouble, ffi.Int, ffi.Pointer)>>( - 'VecDouble_At'); - late final _VecDouble_At = - _VecDouble_AtPtr.asFunction Function(VecDouble, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + VecDouble, ffi.Int, ffi.Pointer)>>('VecDouble_At'); + late final _VecDouble_At = _VecDouble_AtPtr.asFunction< + ffi.Pointer Function( + VecDouble, int, ffi.Pointer)>(); void VecDouble_Close( VecDoublePtr vec, @@ -16615,8 +18415,10 @@ class CvNative { } late final _VecDouble_ClosePtr = - _lookup>('VecDouble_Close'); - late final _VecDouble_Close = _VecDouble_ClosePtr.asFunction(); + _lookup>( + 'VecDouble_Close'); + late final _VecDouble_Close = + _VecDouble_ClosePtr.asFunction(); ffi.Pointer VecDouble_Data( VecDouble vec, @@ -16630,9 +18432,11 @@ class CvNative { late final _VecDouble_DataPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecDouble, ffi.Pointer>)>>('VecDouble_Data'); + ffi.Pointer Function(VecDouble, + ffi.Pointer>)>>('VecDouble_Data'); late final _VecDouble_Data = _VecDouble_DataPtr.asFunction< - ffi.Pointer Function(VecDouble, ffi.Pointer>)>(); + ffi.Pointer Function( + VecDouble, ffi.Pointer>)>(); ffi.Pointer VecDouble_New( ffi.Pointer rval, @@ -16642,10 +18446,12 @@ class CvNative { ); } - late final _VecDouble_NewPtr = - _lookup Function(ffi.Pointer)>>('VecDouble_New'); - late final _VecDouble_New = - _VecDouble_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecDouble_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecDouble_New'); + late final _VecDouble_New = _VecDouble_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecDouble_NewFromPointer( ffi.Pointer p, @@ -16661,10 +18467,12 @@ class CvNative { late final _VecDouble_NewFromPointerPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecDouble_NewFromPointer'); + late final _VecDouble_NewFromPointer = + _VecDouble_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecDouble_NewFromPointer'); - late final _VecDouble_NewFromPointer = _VecDouble_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecDouble_NewFromVec( VecDouble vec, @@ -16676,9 +18484,10 @@ class CvNative { ); } - late final _VecDouble_NewFromVecPtr = - _lookup Function(VecDouble, ffi.Pointer)>>( - 'VecDouble_NewFromVec'); + late final _VecDouble_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecDouble, ffi.Pointer)>>('VecDouble_NewFromVec'); late final _VecDouble_NewFromVec = _VecDouble_NewFromVecPtr.asFunction< ffi.Pointer Function(VecDouble, ffi.Pointer)>(); @@ -16692,11 +18501,12 @@ class CvNative { ); } - late final _VecDouble_SizePtr = - _lookup Function(VecDouble, ffi.Pointer)>>( - 'VecDouble_Size'); - late final _VecDouble_Size = - _VecDouble_SizePtr.asFunction Function(VecDouble, ffi.Pointer)>(); + late final _VecDouble_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecDouble, ffi.Pointer)>>('VecDouble_Size'); + late final _VecDouble_Size = _VecDouble_SizePtr.asFunction< + ffi.Pointer Function(VecDouble, ffi.Pointer)>(); ffi.Pointer VecFloat_Append( VecFloat vec, @@ -16708,10 +18518,12 @@ class CvNative { ); } - late final _VecFloat_AppendPtr = - _lookup Function(VecFloat, ffi.Float)>>('VecFloat_Append'); - late final _VecFloat_Append = - _VecFloat_AppendPtr.asFunction Function(VecFloat, double)>(); + late final _VecFloat_AppendPtr = _lookup< + ffi + .NativeFunction Function(VecFloat, ffi.Float)>>( + 'VecFloat_Append'); + late final _VecFloat_Append = _VecFloat_AppendPtr.asFunction< + ffi.Pointer Function(VecFloat, double)>(); ffi.Pointer VecFloat_At( VecFloat vec, @@ -16725,11 +18537,12 @@ class CvNative { ); } - late final _VecFloat_AtPtr = - _lookup Function(VecFloat, ffi.Int, ffi.Pointer)>>( - 'VecFloat_At'); - late final _VecFloat_At = - _VecFloat_AtPtr.asFunction Function(VecFloat, int, ffi.Pointer)>(); + late final _VecFloat_AtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecFloat, ffi.Int, ffi.Pointer)>>('VecFloat_At'); + late final _VecFloat_At = _VecFloat_AtPtr.asFunction< + ffi.Pointer Function(VecFloat, int, ffi.Pointer)>(); void VecFloat_Close( VecFloatPtr vec, @@ -16740,8 +18553,10 @@ class CvNative { } late final _VecFloat_ClosePtr = - _lookup>('VecFloat_Close'); - late final _VecFloat_Close = _VecFloat_ClosePtr.asFunction(); + _lookup>( + 'VecFloat_Close'); + late final _VecFloat_Close = + _VecFloat_ClosePtr.asFunction(); ffi.Pointer VecFloat_Data( VecFloat vec, @@ -16754,10 +18569,12 @@ class CvNative { } late final _VecFloat_DataPtr = _lookup< - ffi.NativeFunction Function(VecFloat, ffi.Pointer>)>>( - 'VecFloat_Data'); + ffi.NativeFunction< + ffi.Pointer Function( + VecFloat, ffi.Pointer>)>>('VecFloat_Data'); late final _VecFloat_Data = _VecFloat_DataPtr.asFunction< - ffi.Pointer Function(VecFloat, ffi.Pointer>)>(); + ffi.Pointer Function( + VecFloat, ffi.Pointer>)>(); ffi.Pointer VecFloat_New( ffi.Pointer rval, @@ -16767,10 +18584,12 @@ class CvNative { ); } - late final _VecFloat_NewPtr = - _lookup Function(ffi.Pointer)>>('VecFloat_New'); - late final _VecFloat_New = - _VecFloat_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecFloat_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecFloat_New'); + late final _VecFloat_New = _VecFloat_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecFloat_NewFromPointer( ffi.Pointer p, @@ -16786,10 +18605,11 @@ class CvNative { late final _VecFloat_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecFloat_NewFromPointer'); + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecFloat_NewFromPointer'); late final _VecFloat_NewFromPointer = _VecFloat_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecFloat_NewFromVec( VecFloat vec, @@ -16801,11 +18621,12 @@ class CvNative { ); } - late final _VecFloat_NewFromVecPtr = - _lookup Function(VecFloat, ffi.Pointer)>>( - 'VecFloat_NewFromVec'); - late final _VecFloat_NewFromVec = - _VecFloat_NewFromVecPtr.asFunction Function(VecFloat, ffi.Pointer)>(); + late final _VecFloat_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecFloat, ffi.Pointer)>>('VecFloat_NewFromVec'); + late final _VecFloat_NewFromVec = _VecFloat_NewFromVecPtr.asFunction< + ffi.Pointer Function(VecFloat, ffi.Pointer)>(); ffi.Pointer VecFloat_Size( VecFloat vec, @@ -16817,11 +18638,12 @@ class CvNative { ); } - late final _VecFloat_SizePtr = - _lookup Function(VecFloat, ffi.Pointer)>>( - 'VecFloat_Size'); - late final _VecFloat_Size = - _VecFloat_SizePtr.asFunction Function(VecFloat, ffi.Pointer)>(); + late final _VecFloat_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecFloat, ffi.Pointer)>>('VecFloat_Size'); + late final _VecFloat_Size = _VecFloat_SizePtr.asFunction< + ffi.Pointer Function(VecFloat, ffi.Pointer)>(); ffi.Pointer VecInt_Append( VecInt vec, @@ -16833,9 +18655,11 @@ class CvNative { ); } - late final _VecInt_AppendPtr = - _lookup Function(VecInt, ffi.Int)>>('VecInt_Append'); - late final _VecInt_Append = _VecInt_AppendPtr.asFunction Function(VecInt, int)>(); + late final _VecInt_AppendPtr = _lookup< + ffi.NativeFunction Function(VecInt, ffi.Int)>>( + 'VecInt_Append'); + late final _VecInt_Append = _VecInt_AppendPtr.asFunction< + ffi.Pointer Function(VecInt, int)>(); ffi.Pointer VecInt_At( VecInt vec, @@ -16849,11 +18673,12 @@ class CvNative { ); } - late final _VecInt_AtPtr = - _lookup Function(VecInt, ffi.Int, ffi.Pointer)>>( - 'VecInt_At'); - late final _VecInt_At = - _VecInt_AtPtr.asFunction Function(VecInt, int, ffi.Pointer)>(); + late final _VecInt_AtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecInt, ffi.Int, ffi.Pointer)>>('VecInt_At'); + late final _VecInt_At = _VecInt_AtPtr.asFunction< + ffi.Pointer Function(VecInt, int, ffi.Pointer)>(); ffi.Pointer VecInt_AtNoBoundCheck( VecInt vec, @@ -16867,9 +18692,10 @@ class CvNative { ); } - late final _VecInt_AtNoBoundCheckPtr = - _lookup Function(VecInt, ffi.Int, ffi.Pointer)>>( - 'VecInt_AtNoBoundCheck'); + late final _VecInt_AtNoBoundCheckPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecInt, ffi.Int, ffi.Pointer)>>('VecInt_AtNoBoundCheck'); late final _VecInt_AtNoBoundCheck = _VecInt_AtNoBoundCheckPtr.asFunction< ffi.Pointer Function(VecInt, int, ffi.Pointer)>(); @@ -16881,8 +18707,10 @@ class CvNative { ); } - late final _VecInt_ClosePtr = _lookup>('VecInt_Close'); - late final _VecInt_Close = _VecInt_ClosePtr.asFunction(); + late final _VecInt_ClosePtr = + _lookup>('VecInt_Close'); + late final _VecInt_Close = + _VecInt_ClosePtr.asFunction(); ffi.Pointer VecInt_Data( VecInt vec, @@ -16894,11 +18722,13 @@ class CvNative { ); } - late final _VecInt_DataPtr = - _lookup Function(VecInt, ffi.Pointer>)>>( - 'VecInt_Data'); - late final _VecInt_Data = - _VecInt_DataPtr.asFunction Function(VecInt, ffi.Pointer>)>(); + late final _VecInt_DataPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecInt, ffi.Pointer>)>>('VecInt_Data'); + late final _VecInt_Data = _VecInt_DataPtr.asFunction< + ffi.Pointer Function( + VecInt, ffi.Pointer>)>(); ffi.Pointer VecInt_New( ffi.Pointer rval, @@ -16908,9 +18738,11 @@ class CvNative { ); } - late final _VecInt_NewPtr = - _lookup Function(ffi.Pointer)>>('VecInt_New'); - late final _VecInt_New = _VecInt_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecInt_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('VecInt_New'); + late final _VecInt_New = _VecInt_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Copy from a pointer ffi.Pointer VecInt_NewFromPointer( @@ -16927,10 +18759,11 @@ class CvNative { late final _VecInt_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecInt_NewFromPointer'); + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecInt_NewFromPointer'); late final _VecInt_NewFromPointer = _VecInt_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecInt_NewFromVec( VecInt vec, @@ -16942,11 +18775,12 @@ class CvNative { ); } - late final _VecInt_NewFromVecPtr = - _lookup Function(VecInt, ffi.Pointer)>>( - 'VecInt_NewFromVec'); - late final _VecInt_NewFromVec = - _VecInt_NewFromVecPtr.asFunction Function(VecInt, ffi.Pointer)>(); + late final _VecInt_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecInt, ffi.Pointer)>>('VecInt_NewFromVec'); + late final _VecInt_NewFromVec = _VecInt_NewFromVecPtr.asFunction< + ffi.Pointer Function(VecInt, ffi.Pointer)>(); ffi.Pointer VecInt_Size( VecInt vec, @@ -16958,11 +18792,12 @@ class CvNative { ); } - late final _VecInt_SizePtr = - _lookup Function(VecInt, ffi.Pointer)>>( - 'VecInt_Size'); - late final _VecInt_Size = - _VecInt_SizePtr.asFunction Function(VecInt, ffi.Pointer)>(); + late final _VecInt_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecInt, ffi.Pointer)>>('VecInt_Size'); + late final _VecInt_Size = _VecInt_SizePtr.asFunction< + ffi.Pointer Function(VecInt, ffi.Pointer)>(); ffi.Pointer VecKeyPoint_Append( VecKeyPoint vec, @@ -16974,11 +18809,12 @@ class CvNative { ); } - late final _VecKeyPoint_AppendPtr = - _lookup Function(VecKeyPoint, KeyPoint)>>( - 'VecKeyPoint_Append'); - late final _VecKeyPoint_Append = - _VecKeyPoint_AppendPtr.asFunction Function(VecKeyPoint, KeyPoint)>(); + late final _VecKeyPoint_AppendPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecKeyPoint, KeyPoint)>>('VecKeyPoint_Append'); + late final _VecKeyPoint_Append = _VecKeyPoint_AppendPtr.asFunction< + ffi.Pointer Function(VecKeyPoint, KeyPoint)>(); ffi.Pointer VecKeyPoint_At( VecKeyPoint vec, @@ -16993,10 +18829,12 @@ class CvNative { } late final _VecKeyPoint_AtPtr = _lookup< - ffi.NativeFunction Function(VecKeyPoint, ffi.Int, ffi.Pointer)>>( - 'VecKeyPoint_At'); + ffi.NativeFunction< + ffi.Pointer Function( + VecKeyPoint, ffi.Int, ffi.Pointer)>>('VecKeyPoint_At'); late final _VecKeyPoint_At = _VecKeyPoint_AtPtr.asFunction< - ffi.Pointer Function(VecKeyPoint, int, ffi.Pointer)>(); + ffi.Pointer Function( + VecKeyPoint, int, ffi.Pointer)>(); void VecKeyPoint_Close( VecKeyPointPtr vec, @@ -17007,8 +18845,10 @@ class CvNative { } late final _VecKeyPoint_ClosePtr = - _lookup>('VecKeyPoint_Close'); - late final _VecKeyPoint_Close = _VecKeyPoint_ClosePtr.asFunction(); + _lookup>( + 'VecKeyPoint_Close'); + late final _VecKeyPoint_Close = + _VecKeyPoint_ClosePtr.asFunction(); ffi.Pointer VecKeyPoint_New( ffi.Pointer rval, @@ -17018,11 +18858,12 @@ class CvNative { ); } - late final _VecKeyPoint_NewPtr = - _lookup Function(ffi.Pointer)>>( - 'VecKeyPoint_New'); - late final _VecKeyPoint_New = - _VecKeyPoint_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecKeyPoint_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecKeyPoint_New'); + late final _VecKeyPoint_New = _VecKeyPoint_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecKeyPoint_NewFromPointer( ffi.Pointer keypoints, @@ -17038,10 +18879,12 @@ class CvNative { late final _VecKeyPoint_NewFromPointerPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecKeyPoint_NewFromPointer'); + late final _VecKeyPoint_NewFromPointer = + _VecKeyPoint_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecKeyPoint_NewFromPointer'); - late final _VecKeyPoint_NewFromPointer = _VecKeyPoint_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecKeyPoint_NewFromVec( VecKeyPoint vec, @@ -17053,9 +18896,10 @@ class CvNative { ); } - late final _VecKeyPoint_NewFromVecPtr = - _lookup Function(VecKeyPoint, ffi.Pointer)>>( - 'VecKeyPoint_NewFromVec'); + late final _VecKeyPoint_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecKeyPoint, + ffi.Pointer)>>('VecKeyPoint_NewFromVec'); late final _VecKeyPoint_NewFromVec = _VecKeyPoint_NewFromVecPtr.asFunction< ffi.Pointer Function(VecKeyPoint, ffi.Pointer)>(); @@ -17069,11 +18913,12 @@ class CvNative { ); } - late final _VecKeyPoint_SizePtr = - _lookup Function(VecKeyPoint, ffi.Pointer)>>( - 'VecKeyPoint_Size'); - late final _VecKeyPoint_Size = - _VecKeyPoint_SizePtr.asFunction Function(VecKeyPoint, ffi.Pointer)>(); + late final _VecKeyPoint_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecKeyPoint, ffi.Pointer)>>('VecKeyPoint_Size'); + late final _VecKeyPoint_Size = _VecKeyPoint_SizePtr.asFunction< + ffi.Pointer Function(VecKeyPoint, ffi.Pointer)>(); ffi.Pointer VecMat_Append( VecMat vec, @@ -17086,8 +18931,10 @@ class CvNative { } late final _VecMat_AppendPtr = - _lookup Function(VecMat, Mat)>>('VecMat_Append'); - late final _VecMat_Append = _VecMat_AppendPtr.asFunction Function(VecMat, Mat)>(); + _lookup Function(VecMat, Mat)>>( + 'VecMat_Append'); + late final _VecMat_Append = _VecMat_AppendPtr.asFunction< + ffi.Pointer Function(VecMat, Mat)>(); ffi.Pointer VecMat_At( VecMat vec, @@ -17101,11 +18948,12 @@ class CvNative { ); } - late final _VecMat_AtPtr = - _lookup Function(VecMat, ffi.Int, ffi.Pointer)>>( - 'VecMat_At'); - late final _VecMat_At = - _VecMat_AtPtr.asFunction Function(VecMat, int, ffi.Pointer)>(); + late final _VecMat_AtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecMat, ffi.Int, ffi.Pointer)>>('VecMat_At'); + late final _VecMat_At = _VecMat_AtPtr.asFunction< + ffi.Pointer Function(VecMat, int, ffi.Pointer)>(); void VecMat_Close( VecMatPtr vec, @@ -17115,8 +18963,10 @@ class CvNative { ); } - late final _VecMat_ClosePtr = _lookup>('VecMat_Close'); - late final _VecMat_Close = _VecMat_ClosePtr.asFunction(); + late final _VecMat_ClosePtr = + _lookup>('VecMat_Close'); + late final _VecMat_Close = + _VecMat_ClosePtr.asFunction(); ffi.Pointer VecMat_New( ffi.Pointer rval, @@ -17126,9 +18976,11 @@ class CvNative { ); } - late final _VecMat_NewPtr = - _lookup Function(ffi.Pointer)>>('VecMat_New'); - late final _VecMat_New = _VecMat_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecMat_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('VecMat_New'); + late final _VecMat_New = _VecMat_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecMat_NewFromPointer( ffi.Pointer mats, @@ -17143,10 +18995,12 @@ class CvNative { } late final _VecMat_NewFromPointerPtr = _lookup< - ffi.NativeFunction Function(ffi.Pointer, ffi.Int, ffi.Pointer)>>( - 'VecMat_NewFromPointer'); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecMat_NewFromPointer'); late final _VecMat_NewFromPointer = _VecMat_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecMat_NewFromVec( VecMat vec, @@ -17158,11 +19012,12 @@ class CvNative { ); } - late final _VecMat_NewFromVecPtr = - _lookup Function(VecMat, ffi.Pointer)>>( - 'VecMat_NewFromVec'); - late final _VecMat_NewFromVec = - _VecMat_NewFromVecPtr.asFunction Function(VecMat, ffi.Pointer)>(); + late final _VecMat_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecMat, ffi.Pointer)>>('VecMat_NewFromVec'); + late final _VecMat_NewFromVec = _VecMat_NewFromVecPtr.asFunction< + ffi.Pointer Function(VecMat, ffi.Pointer)>(); ffi.Pointer VecMat_Size( VecMat vec, @@ -17174,11 +19029,12 @@ class CvNative { ); } - late final _VecMat_SizePtr = - _lookup Function(VecMat, ffi.Pointer)>>( - 'VecMat_Size'); - late final _VecMat_Size = - _VecMat_SizePtr.asFunction Function(VecMat, ffi.Pointer)>(); + late final _VecMat_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecMat, ffi.Pointer)>>('VecMat_Size'); + late final _VecMat_Size = _VecMat_SizePtr.asFunction< + ffi.Pointer Function(VecMat, ffi.Pointer)>(); ffi.Pointer VecPoint2f_Append( VecPoint2f vec, @@ -17190,10 +19046,12 @@ class CvNative { ); } - late final _VecPoint2f_AppendPtr = - _lookup Function(VecPoint2f, Point2f)>>('VecPoint2f_Append'); - late final _VecPoint2f_Append = - _VecPoint2f_AppendPtr.asFunction Function(VecPoint2f, Point2f)>(); + late final _VecPoint2f_AppendPtr = _lookup< + ffi + .NativeFunction Function(VecPoint2f, Point2f)>>( + 'VecPoint2f_Append'); + late final _VecPoint2f_Append = _VecPoint2f_AppendPtr.asFunction< + ffi.Pointer Function(VecPoint2f, Point2f)>(); ffi.Pointer VecPoint2f_At( VecPoint2f vec, @@ -17207,11 +19065,12 @@ class CvNative { ); } - late final _VecPoint2f_AtPtr = - _lookup Function(VecPoint2f, ffi.Int, ffi.Pointer)>>( - 'VecPoint2f_At'); - late final _VecPoint2f_At = - _VecPoint2f_AtPtr.asFunction Function(VecPoint2f, int, ffi.Pointer)>(); + late final _VecPoint2f_AtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint2f, ffi.Int, ffi.Pointer)>>('VecPoint2f_At'); + late final _VecPoint2f_At = _VecPoint2f_AtPtr.asFunction< + ffi.Pointer Function(VecPoint2f, int, ffi.Pointer)>(); void VecPoint2f_Close( VecPoint2fPtr vec, @@ -17222,8 +19081,10 @@ class CvNative { } late final _VecPoint2f_ClosePtr = - _lookup>('VecPoint2f_Close'); - late final _VecPoint2f_Close = _VecPoint2f_ClosePtr.asFunction(); + _lookup>( + 'VecPoint2f_Close'); + late final _VecPoint2f_Close = + _VecPoint2f_ClosePtr.asFunction(); ffi.Pointer VecPoint2f_New( ffi.Pointer rval, @@ -17233,10 +19094,12 @@ class CvNative { ); } - late final _VecPoint2f_NewPtr = - _lookup Function(ffi.Pointer)>>('VecPoint2f_New'); - late final _VecPoint2f_New = - _VecPoint2f_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecPoint2f_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecPoint2f_New'); + late final _VecPoint2f_New = _VecPoint2f_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecPoint2f_NewFromMat( Mat mat, @@ -17248,11 +19111,12 @@ class CvNative { ); } - late final _VecPoint2f_NewFromMatPtr = - _lookup Function(Mat, ffi.Pointer)>>( - 'VecPoint2f_NewFromMat'); - late final _VecPoint2f_NewFromMat = - _VecPoint2f_NewFromMatPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _VecPoint2f_NewFromMatPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('VecPoint2f_NewFromMat'); + late final _VecPoint2f_NewFromMat = _VecPoint2f_NewFromMatPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer VecPoint2f_NewFromPointer( ffi.Pointer pts, @@ -17268,10 +19132,12 @@ class CvNative { late final _VecPoint2f_NewFromPointerPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecPoint2f_NewFromPointer'); + late final _VecPoint2f_NewFromPointer = + _VecPoint2f_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecPoint2f_NewFromPointer'); - late final _VecPoint2f_NewFromPointer = _VecPoint2f_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecPoint2f_NewFromVec( VecPoint2f vec, @@ -17283,9 +19149,10 @@ class CvNative { ); } - late final _VecPoint2f_NewFromVecPtr = - _lookup Function(VecPoint2f, ffi.Pointer)>>( - 'VecPoint2f_NewFromVec'); + late final _VecPoint2f_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint2f, ffi.Pointer)>>('VecPoint2f_NewFromVec'); late final _VecPoint2f_NewFromVec = _VecPoint2f_NewFromVecPtr.asFunction< ffi.Pointer Function(VecPoint2f, ffi.Pointer)>(); @@ -17299,11 +19166,12 @@ class CvNative { ); } - late final _VecPoint2f_SizePtr = - _lookup Function(VecPoint2f, ffi.Pointer)>>( - 'VecPoint2f_Size'); - late final _VecPoint2f_Size = - _VecPoint2f_SizePtr.asFunction Function(VecPoint2f, ffi.Pointer)>(); + late final _VecPoint2f_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint2f, ffi.Pointer)>>('VecPoint2f_Size'); + late final _VecPoint2f_Size = _VecPoint2f_SizePtr.asFunction< + ffi.Pointer Function(VecPoint2f, ffi.Pointer)>(); ffi.Pointer VecPoint3f_Append( VecPoint3f vec, @@ -17315,10 +19183,12 @@ class CvNative { ); } - late final _VecPoint3f_AppendPtr = - _lookup Function(VecPoint3f, Point3f)>>('VecPoint3f_Append'); - late final _VecPoint3f_Append = - _VecPoint3f_AppendPtr.asFunction Function(VecPoint3f, Point3f)>(); + late final _VecPoint3f_AppendPtr = _lookup< + ffi + .NativeFunction Function(VecPoint3f, Point3f)>>( + 'VecPoint3f_Append'); + late final _VecPoint3f_Append = _VecPoint3f_AppendPtr.asFunction< + ffi.Pointer Function(VecPoint3f, Point3f)>(); ffi.Pointer VecPoint3f_At( VecPoint3f vec, @@ -17332,11 +19202,12 @@ class CvNative { ); } - late final _VecPoint3f_AtPtr = - _lookup Function(VecPoint3f, ffi.Int, ffi.Pointer)>>( - 'VecPoint3f_At'); - late final _VecPoint3f_At = - _VecPoint3f_AtPtr.asFunction Function(VecPoint3f, int, ffi.Pointer)>(); + late final _VecPoint3f_AtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint3f, ffi.Int, ffi.Pointer)>>('VecPoint3f_At'); + late final _VecPoint3f_At = _VecPoint3f_AtPtr.asFunction< + ffi.Pointer Function(VecPoint3f, int, ffi.Pointer)>(); void VecPoint3f_Close( VecPoint3fPtr vec, @@ -17347,8 +19218,10 @@ class CvNative { } late final _VecPoint3f_ClosePtr = - _lookup>('VecPoint3f_Close'); - late final _VecPoint3f_Close = _VecPoint3f_ClosePtr.asFunction(); + _lookup>( + 'VecPoint3f_Close'); + late final _VecPoint3f_Close = + _VecPoint3f_ClosePtr.asFunction(); ffi.Pointer VecPoint3f_New( ffi.Pointer rval, @@ -17358,10 +19231,12 @@ class CvNative { ); } - late final _VecPoint3f_NewPtr = - _lookup Function(ffi.Pointer)>>('VecPoint3f_New'); - late final _VecPoint3f_New = - _VecPoint3f_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecPoint3f_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecPoint3f_New'); + late final _VecPoint3f_New = _VecPoint3f_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecPoint3f_NewFromMat( Mat mat, @@ -17373,11 +19248,12 @@ class CvNative { ); } - late final _VecPoint3f_NewFromMatPtr = - _lookup Function(Mat, ffi.Pointer)>>( - 'VecPoint3f_NewFromMat'); - late final _VecPoint3f_NewFromMat = - _VecPoint3f_NewFromMatPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _VecPoint3f_NewFromMatPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('VecPoint3f_NewFromMat'); + late final _VecPoint3f_NewFromMat = _VecPoint3f_NewFromMatPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer VecPoint3f_NewFromPointer( ffi.Pointer points, @@ -17393,10 +19269,12 @@ class CvNative { late final _VecPoint3f_NewFromPointerPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecPoint3f_NewFromPointer'); + late final _VecPoint3f_NewFromPointer = + _VecPoint3f_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecPoint3f_NewFromPointer'); - late final _VecPoint3f_NewFromPointer = _VecPoint3f_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecPoint3f_NewFromVec( VecPoint3f vec, @@ -17408,9 +19286,10 @@ class CvNative { ); } - late final _VecPoint3f_NewFromVecPtr = - _lookup Function(VecPoint3f, ffi.Pointer)>>( - 'VecPoint3f_NewFromVec'); + late final _VecPoint3f_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint3f, ffi.Pointer)>>('VecPoint3f_NewFromVec'); late final _VecPoint3f_NewFromVec = _VecPoint3f_NewFromVecPtr.asFunction< ffi.Pointer Function(VecPoint3f, ffi.Pointer)>(); @@ -17424,11 +19303,12 @@ class CvNative { ); } - late final _VecPoint3f_SizePtr = - _lookup Function(VecPoint3f, ffi.Pointer)>>( - 'VecPoint3f_Size'); - late final _VecPoint3f_Size = - _VecPoint3f_SizePtr.asFunction Function(VecPoint3f, ffi.Pointer)>(); + late final _VecPoint3f_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint3f, ffi.Pointer)>>('VecPoint3f_Size'); + late final _VecPoint3f_Size = _VecPoint3f_SizePtr.asFunction< + ffi.Pointer Function(VecPoint3f, ffi.Pointer)>(); ffi.Pointer VecPoint_Append( VecPoint vec, @@ -17440,10 +19320,11 @@ class CvNative { ); } - late final _VecPoint_AppendPtr = - _lookup Function(VecPoint, Point)>>('VecPoint_Append'); - late final _VecPoint_Append = - _VecPoint_AppendPtr.asFunction Function(VecPoint, Point)>(); + late final _VecPoint_AppendPtr = _lookup< + ffi.NativeFunction Function(VecPoint, Point)>>( + 'VecPoint_Append'); + late final _VecPoint_Append = _VecPoint_AppendPtr.asFunction< + ffi.Pointer Function(VecPoint, Point)>(); ffi.Pointer VecPoint_At( VecPoint vec, @@ -17457,11 +19338,12 @@ class CvNative { ); } - late final _VecPoint_AtPtr = - _lookup Function(VecPoint, ffi.Int, ffi.Pointer)>>( - 'VecPoint_At'); - late final _VecPoint_At = - _VecPoint_AtPtr.asFunction Function(VecPoint, int, ffi.Pointer)>(); + late final _VecPoint_AtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Int, ffi.Pointer)>>('VecPoint_At'); + late final _VecPoint_At = _VecPoint_AtPtr.asFunction< + ffi.Pointer Function(VecPoint, int, ffi.Pointer)>(); void VecPoint_Close( VecPointPtr vec, @@ -17472,8 +19354,10 @@ class CvNative { } late final _VecPoint_ClosePtr = - _lookup>('VecPoint_Close'); - late final _VecPoint_Close = _VecPoint_ClosePtr.asFunction(); + _lookup>( + 'VecPoint_Close'); + late final _VecPoint_Close = + _VecPoint_ClosePtr.asFunction(); ffi.Pointer VecPoint_New( ffi.Pointer rval, @@ -17483,10 +19367,12 @@ class CvNative { ); } - late final _VecPoint_NewPtr = - _lookup Function(ffi.Pointer)>>('VecPoint_New'); - late final _VecPoint_New = - _VecPoint_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecPoint_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecPoint_New'); + late final _VecPoint_New = _VecPoint_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecPoint_NewFromMat( Mat mat, @@ -17498,11 +19384,12 @@ class CvNative { ); } - late final _VecPoint_NewFromMatPtr = - _lookup Function(Mat, ffi.Pointer)>>( - 'VecPoint_NewFromMat'); - late final _VecPoint_NewFromMat = - _VecPoint_NewFromMatPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _VecPoint_NewFromMatPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('VecPoint_NewFromMat'); + late final _VecPoint_NewFromMat = _VecPoint_NewFromMatPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); /// Copy from a pointer ffi.Pointer VecPoint_NewFromPointer( @@ -17519,10 +19406,11 @@ class CvNative { late final _VecPoint_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecPoint_NewFromPointer'); + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecPoint_NewFromPointer'); late final _VecPoint_NewFromPointer = _VecPoint_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecPoint_NewFromVec( VecPoint vec, @@ -17534,11 +19422,12 @@ class CvNative { ); } - late final _VecPoint_NewFromVecPtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'VecPoint_NewFromVec'); - late final _VecPoint_NewFromVec = - _VecPoint_NewFromVecPtr.asFunction Function(VecPoint, ffi.Pointer)>(); + late final _VecPoint_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('VecPoint_NewFromVec'); + late final _VecPoint_NewFromVec = _VecPoint_NewFromVecPtr.asFunction< + ffi.Pointer Function(VecPoint, ffi.Pointer)>(); ffi.Pointer VecPoint_Size( VecPoint vec, @@ -17550,11 +19439,12 @@ class CvNative { ); } - late final _VecPoint_SizePtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'VecPoint_Size'); - late final _VecPoint_Size = - _VecPoint_SizePtr.asFunction Function(VecPoint, ffi.Pointer)>(); + late final _VecPoint_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('VecPoint_Size'); + late final _VecPoint_Size = _VecPoint_SizePtr.asFunction< + ffi.Pointer Function(VecPoint, ffi.Pointer)>(); ffi.Pointer VecPrim_Append( VecPrim vec, @@ -17566,9 +19456,11 @@ class CvNative { ); } - late final _VecPrim_AppendPtr = - _lookup Function(VecPrim, Prim)>>('VecPrim_Append'); - late final _VecPrim_Append = _VecPrim_AppendPtr.asFunction Function(VecPrim, Prim)>(); + late final _VecPrim_AppendPtr = _lookup< + ffi.NativeFunction Function(VecPrim, Prim)>>( + 'VecPrim_Append'); + late final _VecPrim_Append = _VecPrim_AppendPtr.asFunction< + ffi.Pointer Function(VecPrim, Prim)>(); ffi.Pointer VecPrim_At( VecPrim vec, @@ -17582,11 +19474,12 @@ class CvNative { ); } - late final _VecPrim_AtPtr = - _lookup Function(VecPrim, ffi.Int, ffi.Pointer)>>( - 'VecPrim_At'); - late final _VecPrim_At = - _VecPrim_AtPtr.asFunction Function(VecPrim, int, ffi.Pointer)>(); + late final _VecPrim_AtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPrim, ffi.Int, ffi.Pointer)>>('VecPrim_At'); + late final _VecPrim_At = _VecPrim_AtPtr.asFunction< + ffi.Pointer Function(VecPrim, int, ffi.Pointer)>(); void VecPrim_Close( VecPrimPtr vec, @@ -17596,8 +19489,11 @@ class CvNative { ); } - late final _VecPrim_ClosePtr = _lookup>('VecPrim_Close'); - late final _VecPrim_Close = _VecPrim_ClosePtr.asFunction(); + late final _VecPrim_ClosePtr = + _lookup>( + 'VecPrim_Close'); + late final _VecPrim_Close = + _VecPrim_ClosePtr.asFunction(); ffi.Pointer VecPrim_New( ffi.Pointer rval, @@ -17607,10 +19503,11 @@ class CvNative { ); } - late final _VecPrim_NewPtr = - _lookup Function(ffi.Pointer)>>('VecPrim_New'); - late final _VecPrim_New = - _VecPrim_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecPrim_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('VecPrim_New'); + late final _VecPrim_New = _VecPrim_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecPrim_NewFromPointer( ffi.Pointer points, @@ -17625,11 +19522,12 @@ class CvNative { } late final _VecPrim_NewFromPointerPtr = _lookup< - ffi - .NativeFunction Function(ffi.Pointer, ffi.Int, ffi.Pointer)>>( - 'VecPrim_NewFromPointer'); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecPrim_NewFromPointer'); late final _VecPrim_NewFromPointer = _VecPrim_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecPrim_NewFromVec( VecPrim vec, @@ -17641,11 +19539,12 @@ class CvNative { ); } - late final _VecPrim_NewFromVecPtr = - _lookup Function(VecPrim, ffi.Pointer)>>( - 'VecPrim_NewFromVec'); - late final _VecPrim_NewFromVec = - _VecPrim_NewFromVecPtr.asFunction Function(VecPrim, ffi.Pointer)>(); + late final _VecPrim_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPrim, ffi.Pointer)>>('VecPrim_NewFromVec'); + late final _VecPrim_NewFromVec = _VecPrim_NewFromVecPtr.asFunction< + ffi.Pointer Function(VecPrim, ffi.Pointer)>(); ffi.Pointer VecPrim_Size( VecPrim vec, @@ -17657,11 +19556,12 @@ class CvNative { ); } - late final _VecPrim_SizePtr = - _lookup Function(VecPrim, ffi.Pointer)>>( - 'VecPrim_Size'); - late final _VecPrim_Size = - _VecPrim_SizePtr.asFunction Function(VecPrim, ffi.Pointer)>(); + late final _VecPrim_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPrim, ffi.Pointer)>>('VecPrim_Size'); + late final _VecPrim_Size = _VecPrim_SizePtr.asFunction< + ffi.Pointer Function(VecPrim, ffi.Pointer)>(); ffi.Pointer VecRect_Append( VecRect vec, @@ -17673,9 +19573,11 @@ class CvNative { ); } - late final _VecRect_AppendPtr = - _lookup Function(VecRect, Rect)>>('VecRect_Append'); - late final _VecRect_Append = _VecRect_AppendPtr.asFunction Function(VecRect, Rect)>(); + late final _VecRect_AppendPtr = _lookup< + ffi.NativeFunction Function(VecRect, Rect)>>( + 'VecRect_Append'); + late final _VecRect_Append = _VecRect_AppendPtr.asFunction< + ffi.Pointer Function(VecRect, Rect)>(); ffi.Pointer VecRect_At( VecRect vec, @@ -17689,11 +19591,12 @@ class CvNative { ); } - late final _VecRect_AtPtr = - _lookup Function(VecRect, ffi.Int, ffi.Pointer)>>( - 'VecRect_At'); - late final _VecRect_At = - _VecRect_AtPtr.asFunction Function(VecRect, int, ffi.Pointer)>(); + late final _VecRect_AtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecRect, ffi.Int, ffi.Pointer)>>('VecRect_At'); + late final _VecRect_At = _VecRect_AtPtr.asFunction< + ffi.Pointer Function(VecRect, int, ffi.Pointer)>(); void VecRect_Close( VecRectPtr vec, @@ -17703,8 +19606,11 @@ class CvNative { ); } - late final _VecRect_ClosePtr = _lookup>('VecRect_Close'); - late final _VecRect_Close = _VecRect_ClosePtr.asFunction(); + late final _VecRect_ClosePtr = + _lookup>( + 'VecRect_Close'); + late final _VecRect_Close = + _VecRect_ClosePtr.asFunction(); ffi.Pointer VecRect_New( ffi.Pointer rval, @@ -17714,10 +19620,11 @@ class CvNative { ); } - late final _VecRect_NewPtr = - _lookup Function(ffi.Pointer)>>('VecRect_New'); - late final _VecRect_New = - _VecRect_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecRect_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('VecRect_New'); + late final _VecRect_New = _VecRect_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecRect_NewFromPointer( ffi.Pointer rects, @@ -17732,11 +19639,12 @@ class CvNative { } late final _VecRect_NewFromPointerPtr = _lookup< - ffi - .NativeFunction Function(ffi.Pointer, ffi.Int, ffi.Pointer)>>( - 'VecRect_NewFromPointer'); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecRect_NewFromPointer'); late final _VecRect_NewFromPointer = _VecRect_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecRect_NewFromVec( VecRect vec, @@ -17748,11 +19656,12 @@ class CvNative { ); } - late final _VecRect_NewFromVecPtr = - _lookup Function(VecRect, ffi.Pointer)>>( - 'VecRect_NewFromVec'); - late final _VecRect_NewFromVec = - _VecRect_NewFromVecPtr.asFunction Function(VecRect, ffi.Pointer)>(); + late final _VecRect_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecRect, ffi.Pointer)>>('VecRect_NewFromVec'); + late final _VecRect_NewFromVec = _VecRect_NewFromVecPtr.asFunction< + ffi.Pointer Function(VecRect, ffi.Pointer)>(); ffi.Pointer VecRect_Size( VecRect vec, @@ -17764,11 +19673,12 @@ class CvNative { ); } - late final _VecRect_SizePtr = - _lookup Function(VecRect, ffi.Pointer)>>( - 'VecRect_Size'); - late final _VecRect_Size = - _VecRect_SizePtr.asFunction Function(VecRect, ffi.Pointer)>(); + late final _VecRect_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecRect, ffi.Pointer)>>('VecRect_Size'); + late final _VecRect_Size = _VecRect_SizePtr.asFunction< + ffi.Pointer Function(VecRect, ffi.Pointer)>(); ffi.Pointer VecUChar_Append( VecUChar vec, @@ -17780,10 +19690,11 @@ class CvNative { ); } - late final _VecUChar_AppendPtr = - _lookup Function(VecUChar, uchar)>>('VecUChar_Append'); - late final _VecUChar_Append = - _VecUChar_AppendPtr.asFunction Function(VecUChar, int)>(); + late final _VecUChar_AppendPtr = _lookup< + ffi.NativeFunction Function(VecUChar, uchar)>>( + 'VecUChar_Append'); + late final _VecUChar_Append = _VecUChar_AppendPtr.asFunction< + ffi.Pointer Function(VecUChar, int)>(); ffi.Pointer VecUChar_At( VecUChar vec, @@ -17797,11 +19708,12 @@ class CvNative { ); } - late final _VecUChar_AtPtr = - _lookup Function(VecUChar, ffi.Int, ffi.Pointer)>>( - 'VecUChar_At'); - late final _VecUChar_At = - _VecUChar_AtPtr.asFunction Function(VecUChar, int, ffi.Pointer)>(); + late final _VecUChar_AtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecUChar, ffi.Int, ffi.Pointer)>>('VecUChar_At'); + late final _VecUChar_At = _VecUChar_AtPtr.asFunction< + ffi.Pointer Function(VecUChar, int, ffi.Pointer)>(); ffi.Pointer VecUChar_AtNoBoundCheck( VecUChar vec, @@ -17815,9 +19727,10 @@ class CvNative { ); } - late final _VecUChar_AtNoBoundCheckPtr = - _lookup Function(VecUChar, ffi.Int, ffi.Pointer)>>( - 'VecUChar_AtNoBoundCheck'); + late final _VecUChar_AtNoBoundCheckPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecUChar, ffi.Int, + ffi.Pointer)>>('VecUChar_AtNoBoundCheck'); late final _VecUChar_AtNoBoundCheck = _VecUChar_AtNoBoundCheckPtr.asFunction< ffi.Pointer Function(VecUChar, int, ffi.Pointer)>(); @@ -17830,8 +19743,10 @@ class CvNative { } late final _VecUChar_ClosePtr = - _lookup>('VecUChar_Close'); - late final _VecUChar_Close = _VecUChar_ClosePtr.asFunction(); + _lookup>( + 'VecUChar_Close'); + late final _VecUChar_Close = + _VecUChar_ClosePtr.asFunction(); ffi.Pointer VecUChar_Data( VecUChar vec, @@ -17843,11 +19758,13 @@ class CvNative { ); } - late final _VecUChar_DataPtr = - _lookup Function(VecUChar, ffi.Pointer>)>>( - 'VecUChar_Data'); + late final _VecUChar_DataPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecUChar, ffi.Pointer>)>>('VecUChar_Data'); late final _VecUChar_Data = _VecUChar_DataPtr.asFunction< - ffi.Pointer Function(VecUChar, ffi.Pointer>)>(); + ffi.Pointer Function( + VecUChar, ffi.Pointer>)>(); ffi.Pointer VecUChar_New( ffi.Pointer rval, @@ -17857,10 +19774,12 @@ class CvNative { ); } - late final _VecUChar_NewPtr = - _lookup Function(ffi.Pointer)>>('VecUChar_New'); - late final _VecUChar_New = - _VecUChar_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecUChar_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecUChar_New'); + late final _VecUChar_New = _VecUChar_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecUChar_NewFromPointer( ffi.Pointer p, @@ -17876,10 +19795,11 @@ class CvNative { late final _VecUChar_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecUChar_NewFromPointer'); + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecUChar_NewFromPointer'); late final _VecUChar_NewFromPointer = _VecUChar_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecUChar_NewFromVec( VecUChar vec, @@ -17891,11 +19811,12 @@ class CvNative { ); } - late final _VecUChar_NewFromVecPtr = - _lookup Function(VecUChar, ffi.Pointer)>>( - 'VecUChar_NewFromVec'); - late final _VecUChar_NewFromVec = - _VecUChar_NewFromVecPtr.asFunction Function(VecUChar, ffi.Pointer)>(); + late final _VecUChar_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecUChar, ffi.Pointer)>>('VecUChar_NewFromVec'); + late final _VecUChar_NewFromVec = _VecUChar_NewFromVecPtr.asFunction< + ffi.Pointer Function(VecUChar, ffi.Pointer)>(); ffi.Pointer VecUChar_Size( VecUChar vec, @@ -17907,11 +19828,12 @@ class CvNative { ); } - late final _VecUChar_SizePtr = - _lookup Function(VecUChar, ffi.Pointer)>>( - 'VecUChar_Size'); - late final _VecUChar_Size = - _VecUChar_SizePtr.asFunction Function(VecUChar, ffi.Pointer)>(); + late final _VecUChar_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecUChar, ffi.Pointer)>>('VecUChar_Size'); + late final _VecUChar_Size = _VecUChar_SizePtr.asFunction< + ffi.Pointer Function(VecUChar, ffi.Pointer)>(); ffi.Pointer VecVec4i_Append( VecVec4i vec, @@ -17923,10 +19845,11 @@ class CvNative { ); } - late final _VecVec4i_AppendPtr = - _lookup Function(VecVec4i, Vec4i)>>('VecVec4i_Append'); - late final _VecVec4i_Append = - _VecVec4i_AppendPtr.asFunction Function(VecVec4i, Vec4i)>(); + late final _VecVec4i_AppendPtr = _lookup< + ffi.NativeFunction Function(VecVec4i, Vec4i)>>( + 'VecVec4i_Append'); + late final _VecVec4i_Append = _VecVec4i_AppendPtr.asFunction< + ffi.Pointer Function(VecVec4i, Vec4i)>(); ffi.Pointer VecVec4i_At( VecVec4i vec, @@ -17940,11 +19863,12 @@ class CvNative { ); } - late final _VecVec4i_AtPtr = - _lookup Function(VecVec4i, ffi.Int, ffi.Pointer)>>( - 'VecVec4i_At'); - late final _VecVec4i_At = - _VecVec4i_AtPtr.asFunction Function(VecVec4i, int, ffi.Pointer)>(); + late final _VecVec4i_AtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVec4i, ffi.Int, ffi.Pointer)>>('VecVec4i_At'); + late final _VecVec4i_At = _VecVec4i_AtPtr.asFunction< + ffi.Pointer Function(VecVec4i, int, ffi.Pointer)>(); void VecVec4i_Close( VecVec4iPtr vec, @@ -17955,8 +19879,10 @@ class CvNative { } late final _VecVec4i_ClosePtr = - _lookup>('VecVec4i_Close'); - late final _VecVec4i_Close = _VecVec4i_ClosePtr.asFunction(); + _lookup>( + 'VecVec4i_Close'); + late final _VecVec4i_Close = + _VecVec4i_ClosePtr.asFunction(); ffi.Pointer VecVec4i_New( ffi.Pointer rval, @@ -17966,10 +19892,12 @@ class CvNative { ); } - late final _VecVec4i_NewPtr = - _lookup Function(ffi.Pointer)>>('VecVec4i_New'); - late final _VecVec4i_New = - _VecVec4i_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecVec4i_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecVec4i_New'); + late final _VecVec4i_New = _VecVec4i_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecVec4i_NewFromPointer( ffi.Pointer data, @@ -17985,10 +19913,11 @@ class CvNative { late final _VecVec4i_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecVec4i_NewFromPointer'); + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecVec4i_NewFromPointer'); late final _VecVec4i_NewFromPointer = _VecVec4i_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecVec4i_Size( VecVec4i vec, @@ -18000,11 +19929,12 @@ class CvNative { ); } - late final _VecVec4i_SizePtr = - _lookup Function(VecVec4i, ffi.Pointer)>>( - 'VecVec4i_Size'); - late final _VecVec4i_Size = - _VecVec4i_SizePtr.asFunction Function(VecVec4i, ffi.Pointer)>(); + late final _VecVec4i_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVec4i, ffi.Pointer)>>('VecVec4i_Size'); + late final _VecVec4i_Size = _VecVec4i_SizePtr.asFunction< + ffi.Pointer Function(VecVec4i, ffi.Pointer)>(); ffi.Pointer VecVecChar_Append( VecVecChar vec, @@ -18016,10 +19946,12 @@ class CvNative { ); } - late final _VecVecChar_AppendPtr = - _lookup Function(VecVecChar, VecChar)>>('VecVecChar_Append'); - late final _VecVecChar_Append = - _VecVecChar_AppendPtr.asFunction Function(VecVecChar, VecChar)>(); + late final _VecVecChar_AppendPtr = _lookup< + ffi + .NativeFunction Function(VecVecChar, VecChar)>>( + 'VecVecChar_Append'); + late final _VecVecChar_Append = _VecVecChar_AppendPtr.asFunction< + ffi.Pointer Function(VecVecChar, VecChar)>(); ffi.Pointer VecVecChar_Append_Str( VecVecChar vec, @@ -18031,9 +19963,10 @@ class CvNative { ); } - late final _VecVecChar_Append_StrPtr = - _lookup Function(VecVecChar, ffi.Pointer)>>( - 'VecVecChar_Append_Str'); + late final _VecVecChar_Append_StrPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVecChar, ffi.Pointer)>>('VecVecChar_Append_Str'); late final _VecVecChar_Append_Str = _VecVecChar_Append_StrPtr.asFunction< ffi.Pointer Function(VecVecChar, ffi.Pointer)>(); @@ -18049,11 +19982,12 @@ class CvNative { ); } - late final _VecVecChar_AtPtr = - _lookup Function(VecVecChar, ffi.Int, ffi.Pointer)>>( - 'VecVecChar_At'); - late final _VecVecChar_At = - _VecVecChar_AtPtr.asFunction Function(VecVecChar, int, ffi.Pointer)>(); + late final _VecVecChar_AtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVecChar, ffi.Int, ffi.Pointer)>>('VecVecChar_At'); + late final _VecVecChar_At = _VecVecChar_AtPtr.asFunction< + ffi.Pointer Function(VecVecChar, int, ffi.Pointer)>(); ffi.Pointer VecVecChar_At_Str( VecVecChar vec, @@ -18071,11 +20005,14 @@ class CvNative { late final _VecVecChar_At_StrPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecVecChar, ffi.Int, ffi.Pointer>, + ffi.Pointer Function( + VecVecChar, + ffi.Int, + ffi.Pointer>, ffi.Pointer)>>('VecVecChar_At_Str'); late final _VecVecChar_At_Str = _VecVecChar_At_StrPtr.asFunction< - ffi.Pointer Function( - VecVecChar, int, ffi.Pointer>, ffi.Pointer)>(); + ffi.Pointer Function(VecVecChar, int, + ffi.Pointer>, ffi.Pointer)>(); void VecVecChar_Close( VecVecCharPtr vec, @@ -18086,8 +20023,10 @@ class CvNative { } late final _VecVecChar_ClosePtr = - _lookup>('VecVecChar_Close'); - late final _VecVecChar_Close = _VecVecChar_ClosePtr.asFunction(); + _lookup>( + 'VecVecChar_Close'); + late final _VecVecChar_Close = + _VecVecChar_ClosePtr.asFunction(); ffi.Pointer VecVecChar_New( ffi.Pointer rval, @@ -18097,10 +20036,12 @@ class CvNative { ); } - late final _VecVecChar_NewPtr = - _lookup Function(ffi.Pointer)>>('VecVecChar_New'); - late final _VecVecChar_New = - _VecVecChar_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecVecChar_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecVecChar_New'); + late final _VecVecChar_New = _VecVecChar_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecVecChar_NewFromVec( VecVecChar vec, @@ -18112,9 +20053,10 @@ class CvNative { ); } - late final _VecVecChar_NewFromVecPtr = - _lookup Function(VecVecChar, ffi.Pointer)>>( - 'VecVecChar_NewFromVec'); + late final _VecVecChar_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVecChar, ffi.Pointer)>>('VecVecChar_NewFromVec'); late final _VecVecChar_NewFromVec = _VecVecChar_NewFromVecPtr.asFunction< ffi.Pointer Function(VecVecChar, ffi.Pointer)>(); @@ -18128,11 +20070,12 @@ class CvNative { ); } - late final _VecVecChar_SizePtr = - _lookup Function(VecVecChar, ffi.Pointer)>>( - 'VecVecChar_Size'); - late final _VecVecChar_Size = - _VecVecChar_SizePtr.asFunction Function(VecVecChar, ffi.Pointer)>(); + late final _VecVecChar_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVecChar, ffi.Pointer)>>('VecVecChar_Size'); + late final _VecVecChar_Size = _VecVecChar_SizePtr.asFunction< + ffi.Pointer Function(VecVecChar, ffi.Pointer)>(); ffi.Pointer VecVecDMatch_Append( VecVecDMatch vec, @@ -18144,11 +20087,12 @@ class CvNative { ); } - late final _VecVecDMatch_AppendPtr = - _lookup Function(VecVecDMatch, VecDMatch)>>( - 'VecVecDMatch_Append'); - late final _VecVecDMatch_Append = - _VecVecDMatch_AppendPtr.asFunction Function(VecVecDMatch, VecDMatch)>(); + late final _VecVecDMatch_AppendPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVecDMatch, VecDMatch)>>('VecVecDMatch_Append'); + late final _VecVecDMatch_Append = _VecVecDMatch_AppendPtr.asFunction< + ffi.Pointer Function(VecVecDMatch, VecDMatch)>(); ffi.Pointer VecVecDMatch_At( VecVecDMatch vec, @@ -18163,10 +20107,12 @@ class CvNative { } late final _VecVecDMatch_AtPtr = _lookup< - ffi.NativeFunction Function(VecVecDMatch, ffi.Int, ffi.Pointer)>>( - 'VecVecDMatch_At'); + ffi.NativeFunction< + ffi.Pointer Function(VecVecDMatch, ffi.Int, + ffi.Pointer)>>('VecVecDMatch_At'); late final _VecVecDMatch_At = _VecVecDMatch_AtPtr.asFunction< - ffi.Pointer Function(VecVecDMatch, int, ffi.Pointer)>(); + ffi.Pointer Function( + VecVecDMatch, int, ffi.Pointer)>(); void VecVecDMatch_Close( VecVecDMatchPtr vec, @@ -18177,8 +20123,10 @@ class CvNative { } late final _VecVecDMatch_ClosePtr = - _lookup>('VecVecDMatch_Close'); - late final _VecVecDMatch_Close = _VecVecDMatch_ClosePtr.asFunction(); + _lookup>( + 'VecVecDMatch_Close'); + late final _VecVecDMatch_Close = + _VecVecDMatch_ClosePtr.asFunction(); ffi.Pointer VecVecDMatch_Data( VecVecDMatch vec, @@ -18191,11 +20139,12 @@ class CvNative { } late final _VecVecDMatch_DataPtr = _lookup< - ffi - .NativeFunction Function(VecVecDMatch, ffi.Pointer>)>>( - 'VecVecDMatch_Data'); + ffi.NativeFunction< + ffi.Pointer Function(VecVecDMatch, + ffi.Pointer>)>>('VecVecDMatch_Data'); late final _VecVecDMatch_Data = _VecVecDMatch_DataPtr.asFunction< - ffi.Pointer Function(VecVecDMatch, ffi.Pointer>)>(); + ffi.Pointer Function( + VecVecDMatch, ffi.Pointer>)>(); ffi.Pointer VecVecDMatch_New( ffi.Pointer rval, @@ -18205,11 +20154,12 @@ class CvNative { ); } - late final _VecVecDMatch_NewPtr = - _lookup Function(ffi.Pointer)>>( - 'VecVecDMatch_New'); - late final _VecVecDMatch_New = - _VecVecDMatch_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecVecDMatch_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecVecDMatch_New'); + late final _VecVecDMatch_New = _VecVecDMatch_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecVecDMatch_NewFromPointer( ffi.Pointer matches, @@ -18225,10 +20175,12 @@ class CvNative { late final _VecVecDMatch_NewFromPointerPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecVecDMatch_NewFromPointer'); + late final _VecVecDMatch_NewFromPointer = + _VecVecDMatch_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecVecDMatch_NewFromPointer'); - late final _VecVecDMatch_NewFromPointer = _VecVecDMatch_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecVecDMatch_NewFromVec( VecVecDMatch vec, @@ -18240,11 +20192,13 @@ class CvNative { ); } - late final _VecVecDMatch_NewFromVecPtr = - _lookup Function(VecVecDMatch, ffi.Pointer)>>( - 'VecVecDMatch_NewFromVec'); + late final _VecVecDMatch_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecVecDMatch, + ffi.Pointer)>>('VecVecDMatch_NewFromVec'); late final _VecVecDMatch_NewFromVec = _VecVecDMatch_NewFromVecPtr.asFunction< - ffi.Pointer Function(VecVecDMatch, ffi.Pointer)>(); + ffi.Pointer Function( + VecVecDMatch, ffi.Pointer)>(); ffi.Pointer VecVecDMatch_Size( VecVecDMatch vec, @@ -18256,11 +20210,12 @@ class CvNative { ); } - late final _VecVecDMatch_SizePtr = - _lookup Function(VecVecDMatch, ffi.Pointer)>>( - 'VecVecDMatch_Size'); - late final _VecVecDMatch_Size = - _VecVecDMatch_SizePtr.asFunction Function(VecVecDMatch, ffi.Pointer)>(); + late final _VecVecDMatch_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVecDMatch, ffi.Pointer)>>('VecVecDMatch_Size'); + late final _VecVecDMatch_Size = _VecVecDMatch_SizePtr.asFunction< + ffi.Pointer Function(VecVecDMatch, ffi.Pointer)>(); ffi.Pointer VecVecPoint2f_Append( VecVecPoint2f vec, @@ -18272,11 +20227,12 @@ class CvNative { ); } - late final _VecVecPoint2f_AppendPtr = - _lookup Function(VecVecPoint2f, VecPoint2f)>>( - 'VecVecPoint2f_Append'); - late final _VecVecPoint2f_Append = - _VecVecPoint2f_AppendPtr.asFunction Function(VecVecPoint2f, VecPoint2f)>(); + late final _VecVecPoint2f_AppendPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVecPoint2f, VecPoint2f)>>('VecVecPoint2f_Append'); + late final _VecVecPoint2f_Append = _VecVecPoint2f_AppendPtr.asFunction< + ffi.Pointer Function(VecVecPoint2f, VecPoint2f)>(); ffi.Pointer VecVecPoint2f_At( VecVecPoint2f vec, @@ -18291,11 +20247,12 @@ class CvNative { } late final _VecVecPoint2f_AtPtr = _lookup< - ffi - .NativeFunction Function(VecVecPoint2f, ffi.Int, ffi.Pointer)>>( - 'VecVecPoint2f_At'); + ffi.NativeFunction< + ffi.Pointer Function(VecVecPoint2f, ffi.Int, + ffi.Pointer)>>('VecVecPoint2f_At'); late final _VecVecPoint2f_At = _VecVecPoint2f_AtPtr.asFunction< - ffi.Pointer Function(VecVecPoint2f, int, ffi.Pointer)>(); + ffi.Pointer Function( + VecVecPoint2f, int, ffi.Pointer)>(); void VecVecPoint2f_Close( VecVecPoint2fPtr vec, @@ -18306,8 +20263,10 @@ class CvNative { } late final _VecVecPoint2f_ClosePtr = - _lookup>('VecVecPoint2f_Close'); - late final _VecVecPoint2f_Close = _VecVecPoint2f_ClosePtr.asFunction(); + _lookup>( + 'VecVecPoint2f_Close'); + late final _VecVecPoint2f_Close = + _VecVecPoint2f_ClosePtr.asFunction(); ffi.Pointer VecVecPoint2f_New( ffi.Pointer rval, @@ -18317,11 +20276,12 @@ class CvNative { ); } - late final _VecVecPoint2f_NewPtr = - _lookup Function(ffi.Pointer)>>( - 'VecVecPoint2f_New'); - late final _VecVecPoint2f_New = - _VecVecPoint2f_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecVecPoint2f_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecVecPoint2f_New'); + late final _VecVecPoint2f_New = _VecVecPoint2f_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecVecPoint2f_NewFromPointer( ffi.Pointer points, @@ -18337,10 +20297,12 @@ class CvNative { late final _VecVecPoint2f_NewFromPointerPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecVecPoint2f_NewFromPointer'); + late final _VecVecPoint2f_NewFromPointer = + _VecVecPoint2f_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecVecPoint2f_NewFromPointer'); - late final _VecVecPoint2f_NewFromPointer = _VecVecPoint2f_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecVecPoint2f_NewFromVec( VecVecPoint2f vec, @@ -18352,11 +20314,14 @@ class CvNative { ); } - late final _VecVecPoint2f_NewFromVecPtr = - _lookup Function(VecVecPoint2f, ffi.Pointer)>>( - 'VecVecPoint2f_NewFromVec'); - late final _VecVecPoint2f_NewFromVec = _VecVecPoint2f_NewFromVecPtr.asFunction< - ffi.Pointer Function(VecVecPoint2f, ffi.Pointer)>(); + late final _VecVecPoint2f_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecVecPoint2f, + ffi.Pointer)>>('VecVecPoint2f_NewFromVec'); + late final _VecVecPoint2f_NewFromVec = + _VecVecPoint2f_NewFromVecPtr.asFunction< + ffi.Pointer Function( + VecVecPoint2f, ffi.Pointer)>(); ffi.Pointer VecVecPoint2f_Size( VecVecPoint2f vec, @@ -18368,9 +20333,10 @@ class CvNative { ); } - late final _VecVecPoint2f_SizePtr = - _lookup Function(VecVecPoint2f, ffi.Pointer)>>( - 'VecVecPoint2f_Size'); + late final _VecVecPoint2f_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVecPoint2f, ffi.Pointer)>>('VecVecPoint2f_Size'); late final _VecVecPoint2f_Size = _VecVecPoint2f_SizePtr.asFunction< ffi.Pointer Function(VecVecPoint2f, ffi.Pointer)>(); @@ -18384,11 +20350,12 @@ class CvNative { ); } - late final _VecVecPoint3f_AppendPtr = - _lookup Function(VecVecPoint3f, VecPoint3f)>>( - 'VecVecPoint3f_Append'); - late final _VecVecPoint3f_Append = - _VecVecPoint3f_AppendPtr.asFunction Function(VecVecPoint3f, VecPoint3f)>(); + late final _VecVecPoint3f_AppendPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVecPoint3f, VecPoint3f)>>('VecVecPoint3f_Append'); + late final _VecVecPoint3f_Append = _VecVecPoint3f_AppendPtr.asFunction< + ffi.Pointer Function(VecVecPoint3f, VecPoint3f)>(); ffi.Pointer VecVecPoint3f_At( VecVecPoint3f vec, @@ -18403,11 +20370,12 @@ class CvNative { } late final _VecVecPoint3f_AtPtr = _lookup< - ffi - .NativeFunction Function(VecVecPoint3f, ffi.Int, ffi.Pointer)>>( - 'VecVecPoint3f_At'); + ffi.NativeFunction< + ffi.Pointer Function(VecVecPoint3f, ffi.Int, + ffi.Pointer)>>('VecVecPoint3f_At'); late final _VecVecPoint3f_At = _VecVecPoint3f_AtPtr.asFunction< - ffi.Pointer Function(VecVecPoint3f, int, ffi.Pointer)>(); + ffi.Pointer Function( + VecVecPoint3f, int, ffi.Pointer)>(); void VecVecPoint3f_Close( VecVecPoint3fPtr vec, @@ -18418,8 +20386,10 @@ class CvNative { } late final _VecVecPoint3f_ClosePtr = - _lookup>('VecVecPoint3f_Close'); - late final _VecVecPoint3f_Close = _VecVecPoint3f_ClosePtr.asFunction(); + _lookup>( + 'VecVecPoint3f_Close'); + late final _VecVecPoint3f_Close = + _VecVecPoint3f_ClosePtr.asFunction(); ffi.Pointer VecVecPoint3f_New( ffi.Pointer rval, @@ -18429,11 +20399,12 @@ class CvNative { ); } - late final _VecVecPoint3f_NewPtr = - _lookup Function(ffi.Pointer)>>( - 'VecVecPoint3f_New'); - late final _VecVecPoint3f_New = - _VecVecPoint3f_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecVecPoint3f_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecVecPoint3f_New'); + late final _VecVecPoint3f_New = _VecVecPoint3f_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecVecPoint3f_NewFromPointer( ffi.Pointer points, @@ -18449,10 +20420,12 @@ class CvNative { late final _VecVecPoint3f_NewFromPointerPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecVecPoint3f_NewFromPointer'); + late final _VecVecPoint3f_NewFromPointer = + _VecVecPoint3f_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecVecPoint3f_NewFromPointer'); - late final _VecVecPoint3f_NewFromPointer = _VecVecPoint3f_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecVecPoint3f_NewFromVec( VecVecPoint3f vec, @@ -18464,11 +20437,14 @@ class CvNative { ); } - late final _VecVecPoint3f_NewFromVecPtr = - _lookup Function(VecVecPoint3f, ffi.Pointer)>>( - 'VecVecPoint3f_NewFromVec'); - late final _VecVecPoint3f_NewFromVec = _VecVecPoint3f_NewFromVecPtr.asFunction< - ffi.Pointer Function(VecVecPoint3f, ffi.Pointer)>(); + late final _VecVecPoint3f_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecVecPoint3f, + ffi.Pointer)>>('VecVecPoint3f_NewFromVec'); + late final _VecVecPoint3f_NewFromVec = + _VecVecPoint3f_NewFromVecPtr.asFunction< + ffi.Pointer Function( + VecVecPoint3f, ffi.Pointer)>(); ffi.Pointer VecVecPoint3f_Size( VecVecPoint3f vec, @@ -18480,9 +20456,10 @@ class CvNative { ); } - late final _VecVecPoint3f_SizePtr = - _lookup Function(VecVecPoint3f, ffi.Pointer)>>( - 'VecVecPoint3f_Size'); + late final _VecVecPoint3f_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVecPoint3f, ffi.Pointer)>>('VecVecPoint3f_Size'); late final _VecVecPoint3f_Size = _VecVecPoint3f_SizePtr.asFunction< ffi.Pointer Function(VecVecPoint3f, ffi.Pointer)>(); @@ -18496,11 +20473,12 @@ class CvNative { ); } - late final _VecVecPoint_AppendPtr = - _lookup Function(VecVecPoint, VecPoint)>>( - 'VecVecPoint_Append'); - late final _VecVecPoint_Append = - _VecVecPoint_AppendPtr.asFunction Function(VecVecPoint, VecPoint)>(); + late final _VecVecPoint_AppendPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVecPoint, VecPoint)>>('VecVecPoint_Append'); + late final _VecVecPoint_Append = _VecVecPoint_AppendPtr.asFunction< + ffi.Pointer Function(VecVecPoint, VecPoint)>(); ffi.Pointer VecVecPoint_At( VecVecPoint vec, @@ -18515,10 +20493,12 @@ class CvNative { } late final _VecVecPoint_AtPtr = _lookup< - ffi.NativeFunction Function(VecVecPoint, ffi.Int, ffi.Pointer)>>( - 'VecVecPoint_At'); + ffi.NativeFunction< + ffi.Pointer Function( + VecVecPoint, ffi.Int, ffi.Pointer)>>('VecVecPoint_At'); late final _VecVecPoint_At = _VecVecPoint_AtPtr.asFunction< - ffi.Pointer Function(VecVecPoint, int, ffi.Pointer)>(); + ffi.Pointer Function( + VecVecPoint, int, ffi.Pointer)>(); void VecVecPoint_Close( VecVecPointPtr vec, @@ -18529,8 +20509,10 @@ class CvNative { } late final _VecVecPoint_ClosePtr = - _lookup>('VecVecPoint_Close'); - late final _VecVecPoint_Close = _VecVecPoint_ClosePtr.asFunction(); + _lookup>( + 'VecVecPoint_Close'); + late final _VecVecPoint_Close = + _VecVecPoint_ClosePtr.asFunction(); ffi.Pointer VecVecPoint_New( ffi.Pointer rval, @@ -18540,11 +20522,12 @@ class CvNative { ); } - late final _VecVecPoint_NewPtr = - _lookup Function(ffi.Pointer)>>( - 'VecVecPoint_New'); - late final _VecVecPoint_New = - _VecVecPoint_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecVecPoint_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecVecPoint_New'); + late final _VecVecPoint_New = _VecVecPoint_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecVecPoint_NewFromPointer( ffi.Pointer points, @@ -18560,10 +20543,12 @@ class CvNative { late final _VecVecPoint_NewFromPointerPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecVecPoint_NewFromPointer'); + late final _VecVecPoint_NewFromPointer = + _VecVecPoint_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecVecPoint_NewFromPointer'); - late final _VecVecPoint_NewFromPointer = _VecVecPoint_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecVecPoint_NewFromVec( VecVecPoint vec, @@ -18575,9 +20560,10 @@ class CvNative { ); } - late final _VecVecPoint_NewFromVecPtr = - _lookup Function(VecVecPoint, ffi.Pointer)>>( - 'VecVecPoint_NewFromVec'); + late final _VecVecPoint_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecVecPoint, + ffi.Pointer)>>('VecVecPoint_NewFromVec'); late final _VecVecPoint_NewFromVec = _VecVecPoint_NewFromVecPtr.asFunction< ffi.Pointer Function(VecVecPoint, ffi.Pointer)>(); @@ -18591,11 +20577,12 @@ class CvNative { ); } - late final _VecVecPoint_SizePtr = - _lookup Function(VecVecPoint, ffi.Pointer)>>( - 'VecVecPoint_Size'); - late final _VecVecPoint_Size = - _VecVecPoint_SizePtr.asFunction Function(VecVecPoint, ffi.Pointer)>(); + late final _VecVecPoint_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVecPoint, ffi.Pointer)>>('VecVecPoint_Size'); + late final _VecVecPoint_Size = _VecVecPoint_SizePtr.asFunction< + ffi.Pointer Function(VecVecPoint, ffi.Pointer)>(); void VideoCapture_Close( VideoCapturePtr self, @@ -18606,8 +20593,10 @@ class CvNative { } late final _VideoCapture_ClosePtr = - _lookup>('VideoCapture_Close'); - late final _VideoCapture_Close = _VideoCapture_ClosePtr.asFunction(); + _lookup>( + 'VideoCapture_Close'); + late final _VideoCapture_Close = + _VideoCapture_ClosePtr.asFunction(); ffi.Pointer VideoCapture_Get( VideoCapture self, @@ -18622,10 +20611,12 @@ class CvNative { } late final _VideoCapture_GetPtr = _lookup< - ffi.NativeFunction Function(VideoCapture, ffi.Int, ffi.Pointer)>>( - 'VideoCapture_Get'); + ffi.NativeFunction< + ffi.Pointer Function(VideoCapture, ffi.Int, + ffi.Pointer)>>('VideoCapture_Get'); late final _VideoCapture_Get = _VideoCapture_GetPtr.asFunction< - ffi.Pointer Function(VideoCapture, int, ffi.Pointer)>(); + ffi.Pointer Function( + VideoCapture, int, ffi.Pointer)>(); ffi.Pointer VideoCapture_Grab( VideoCapture self, @@ -18637,10 +20628,12 @@ class CvNative { ); } - late final _VideoCapture_GrabPtr = - _lookup Function(VideoCapture, ffi.Int)>>('VideoCapture_Grab'); - late final _VideoCapture_Grab = - _VideoCapture_GrabPtr.asFunction Function(VideoCapture, int)>(); + late final _VideoCapture_GrabPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VideoCapture, ffi.Int)>>('VideoCapture_Grab'); + late final _VideoCapture_Grab = _VideoCapture_GrabPtr.asFunction< + ffi.Pointer Function(VideoCapture, int)>(); ffi.Pointer VideoCapture_IsOpened( VideoCapture self, @@ -18652,9 +20645,10 @@ class CvNative { ); } - late final _VideoCapture_IsOpenedPtr = - _lookup Function(VideoCapture, ffi.Pointer)>>( - 'VideoCapture_IsOpened'); + late final _VideoCapture_IsOpenedPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VideoCapture, ffi.Pointer)>>('VideoCapture_IsOpened'); late final _VideoCapture_IsOpened = _VideoCapture_IsOpenedPtr.asFunction< ffi.Pointer Function(VideoCapture, ffi.Pointer)>(); @@ -18666,11 +20660,12 @@ class CvNative { ); } - late final _VideoCapture_NewPtr = - _lookup Function(ffi.Pointer)>>( - 'VideoCapture_New'); - late final _VideoCapture_New = - _VideoCapture_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VideoCapture_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VideoCapture_New'); + late final _VideoCapture_New = _VideoCapture_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VideoCapture_NewFromFile( ffi.Pointer filename, @@ -18686,10 +20681,12 @@ class CvNative { late final _VideoCapture_NewFromFilePtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VideoCapture_NewFromFile'); + late final _VideoCapture_NewFromFile = + _VideoCapture_NewFromFilePtr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VideoCapture_NewFromFile'); - late final _VideoCapture_NewFromFile = _VideoCapture_NewFromFilePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VideoCapture_NewFromIndex( int index, @@ -18704,10 +20701,13 @@ class CvNative { } late final _VideoCapture_NewFromIndexPtr = _lookup< - ffi.NativeFunction Function(ffi.Int, ffi.Int, ffi.Pointer)>>( - 'VideoCapture_NewFromIndex'); - late final _VideoCapture_NewFromIndex = _VideoCapture_NewFromIndexPtr.asFunction< - ffi.Pointer Function(int, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Int, + ffi.Pointer)>>('VideoCapture_NewFromIndex'); + late final _VideoCapture_NewFromIndex = + _VideoCapture_NewFromIndexPtr.asFunction< + ffi.Pointer Function( + int, int, ffi.Pointer)>(); ffi.Pointer VideoCapture_Open( VideoCapture self, @@ -18723,10 +20723,11 @@ class CvNative { late final _VideoCapture_OpenPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VideoCapture, ffi.Pointer, ffi.Pointer)>>('VideoCapture_Open'); + ffi.Pointer Function(VideoCapture, ffi.Pointer, + ffi.Pointer)>>('VideoCapture_Open'); late final _VideoCapture_Open = _VideoCapture_OpenPtr.asFunction< - ffi.Pointer Function(VideoCapture, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + VideoCapture, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer VideoCapture_OpenDevice( VideoCapture self, @@ -18741,10 +20742,12 @@ class CvNative { } late final _VideoCapture_OpenDevicePtr = _lookup< - ffi.NativeFunction Function(VideoCapture, ffi.Int, ffi.Pointer)>>( - 'VideoCapture_OpenDevice'); + ffi.NativeFunction< + ffi.Pointer Function(VideoCapture, ffi.Int, + ffi.Pointer)>>('VideoCapture_OpenDevice'); late final _VideoCapture_OpenDevice = _VideoCapture_OpenDevicePtr.asFunction< - ffi.Pointer Function(VideoCapture, int, ffi.Pointer)>(); + ffi.Pointer Function( + VideoCapture, int, ffi.Pointer)>(); ffi.Pointer VideoCapture_OpenDeviceWithAPI( VideoCapture self, @@ -18762,10 +20765,12 @@ class CvNative { late final _VideoCapture_OpenDeviceWithAPIPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(VideoCapture, ffi.Int, ffi.Int, + ffi.Pointer)>>('VideoCapture_OpenDeviceWithAPI'); + late final _VideoCapture_OpenDeviceWithAPI = + _VideoCapture_OpenDeviceWithAPIPtr.asFunction< ffi.Pointer Function( - VideoCapture, ffi.Int, ffi.Int, ffi.Pointer)>>('VideoCapture_OpenDeviceWithAPI'); - late final _VideoCapture_OpenDeviceWithAPI = _VideoCapture_OpenDeviceWithAPIPtr.asFunction< - ffi.Pointer Function(VideoCapture, int, int, ffi.Pointer)>(); + VideoCapture, int, int, ffi.Pointer)>(); ffi.Pointer VideoCapture_OpenWithAPI( VideoCapture self, @@ -18783,10 +20788,12 @@ class CvNative { late final _VideoCapture_OpenWithAPIPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VideoCapture, ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VideoCapture_OpenWithAPI'); - late final _VideoCapture_OpenWithAPI = _VideoCapture_OpenWithAPIPtr.asFunction< - ffi.Pointer Function(VideoCapture, ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function(VideoCapture, ffi.Pointer, + ffi.Int, ffi.Pointer)>>('VideoCapture_OpenWithAPI'); + late final _VideoCapture_OpenWithAPI = + _VideoCapture_OpenWithAPIPtr.asFunction< + ffi.Pointer Function(VideoCapture, ffi.Pointer, + int, ffi.Pointer)>(); ffi.Pointer VideoCapture_Read( VideoCapture self, @@ -18800,11 +20807,13 @@ class CvNative { ); } - late final _VideoCapture_ReadPtr = - _lookup Function(VideoCapture, Mat, ffi.Pointer)>>( - 'VideoCapture_Read'); + late final _VideoCapture_ReadPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VideoCapture, Mat, ffi.Pointer)>>('VideoCapture_Read'); late final _VideoCapture_Read = _VideoCapture_ReadPtr.asFunction< - ffi.Pointer Function(VideoCapture, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + VideoCapture, Mat, ffi.Pointer)>(); ffi.Pointer VideoCapture_Release( VideoCapture self, @@ -18815,9 +20824,10 @@ class CvNative { } late final _VideoCapture_ReleasePtr = - _lookup Function(VideoCapture)>>('VideoCapture_Release'); - late final _VideoCapture_Release = - _VideoCapture_ReleasePtr.asFunction Function(VideoCapture)>(); + _lookup Function(VideoCapture)>>( + 'VideoCapture_Release'); + late final _VideoCapture_Release = _VideoCapture_ReleasePtr.asFunction< + ffi.Pointer Function(VideoCapture)>(); ffi.Pointer VideoCapture_Set( VideoCapture self, @@ -18831,11 +20841,12 @@ class CvNative { ); } - late final _VideoCapture_SetPtr = - _lookup Function(VideoCapture, ffi.Int, ffi.Double)>>( - 'VideoCapture_Set'); - late final _VideoCapture_Set = - _VideoCapture_SetPtr.asFunction Function(VideoCapture, int, double)>(); + late final _VideoCapture_SetPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VideoCapture, ffi.Int, ffi.Double)>>('VideoCapture_Set'); + late final _VideoCapture_Set = _VideoCapture_SetPtr.asFunction< + ffi.Pointer Function(VideoCapture, int, double)>(); void VideoWriter_Close( VideoWriterPtr self, @@ -18846,8 +20857,10 @@ class CvNative { } late final _VideoWriter_ClosePtr = - _lookup>('VideoWriter_Close'); - late final _VideoWriter_Close = _VideoWriter_ClosePtr.asFunction(); + _lookup>( + 'VideoWriter_Close'); + late final _VideoWriter_Close = + _VideoWriter_ClosePtr.asFunction(); ffi.Pointer VideoWriter_Fourcc( int c1, @@ -18867,10 +20880,11 @@ class CvNative { late final _VideoWriter_FourccPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Char, ffi.Char, ffi.Char, ffi.Char, ffi.Pointer)>>('VideoWriter_Fourcc'); + ffi.Pointer Function(ffi.Char, ffi.Char, ffi.Char, ffi.Char, + ffi.Pointer)>>('VideoWriter_Fourcc'); late final _VideoWriter_Fourcc = _VideoWriter_FourccPtr.asFunction< - ffi.Pointer Function(int, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + int, int, int, int, ffi.Pointer)>(); ffi.Pointer VideoWriter_IsOpened( VideoWriter self, @@ -18882,9 +20896,10 @@ class CvNative { ); } - late final _VideoWriter_IsOpenedPtr = - _lookup Function(VideoWriter, ffi.Pointer)>>( - 'VideoWriter_IsOpened'); + late final _VideoWriter_IsOpenedPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VideoWriter, ffi.Pointer)>>('VideoWriter_IsOpened'); late final _VideoWriter_IsOpened = _VideoWriter_IsOpenedPtr.asFunction< ffi.Pointer Function(VideoWriter, ffi.Pointer)>(); @@ -18896,11 +20911,12 @@ class CvNative { ); } - late final _VideoWriter_NewPtr = - _lookup Function(ffi.Pointer)>>( - 'VideoWriter_New'); - late final _VideoWriter_New = - _VideoWriter_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VideoWriter_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VideoWriter_New'); + late final _VideoWriter_New = _VideoWriter_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VideoWriter_Open( VideoWriter self, @@ -18924,11 +20940,17 @@ class CvNative { late final _VideoWriter_OpenPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VideoWriter, ffi.Pointer, ffi.Pointer, - ffi.Double, ffi.Int, ffi.Int, ffi.Bool)>>('VideoWriter_Open'); + ffi.Pointer Function( + VideoWriter, + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Int, + ffi.Int, + ffi.Bool)>>('VideoWriter_Open'); late final _VideoWriter_Open = _VideoWriter_OpenPtr.asFunction< - ffi.Pointer Function( - VideoWriter, ffi.Pointer, ffi.Pointer, double, int, int, bool)>(); + ffi.Pointer Function(VideoWriter, ffi.Pointer, + ffi.Pointer, double, int, int, bool)>(); ffi.Pointer VideoWriter_Release( VideoWriter self, @@ -18939,9 +20961,10 @@ class CvNative { } late final _VideoWriter_ReleasePtr = - _lookup Function(VideoWriter)>>('VideoWriter_Release'); - late final _VideoWriter_Release = - _VideoWriter_ReleasePtr.asFunction Function(VideoWriter)>(); + _lookup Function(VideoWriter)>>( + 'VideoWriter_Release'); + late final _VideoWriter_Release = _VideoWriter_ReleasePtr.asFunction< + ffi.Pointer Function(VideoWriter)>(); ffi.Pointer VideoWriter_Write( VideoWriter self, @@ -18953,10 +20976,11 @@ class CvNative { ); } - late final _VideoWriter_WritePtr = - _lookup Function(VideoWriter, Mat)>>('VideoWriter_Write'); - late final _VideoWriter_Write = - _VideoWriter_WritePtr.asFunction Function(VideoWriter, Mat)>(); + late final _VideoWriter_WritePtr = _lookup< + ffi.NativeFunction Function(VideoWriter, Mat)>>( + 'VideoWriter_Write'); + late final _VideoWriter_Write = _VideoWriter_WritePtr.asFunction< + ffi.Pointer Function(VideoWriter, Mat)>(); ffi.Pointer WarpAffine( Mat src, @@ -18972,9 +20996,11 @@ class CvNative { ); } - late final _WarpAffinePtr = - _lookup Function(Mat, Mat, Mat, Size)>>('WarpAffine'); - late final _WarpAffine = _WarpAffinePtr.asFunction Function(Mat, Mat, Mat, Size)>(); + late final _WarpAffinePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Mat, Size)>>('WarpAffine'); + late final _WarpAffine = _WarpAffinePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Size)>(); ffi.Pointer WarpAffineWithParams( Mat src, @@ -18997,8 +21023,9 @@ class CvNative { } late final _WarpAffineWithParamsPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat, Size, ffi.Int, ffi.Int, Scalar)>>( - 'WarpAffineWithParams'); + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Mat, Size, ffi.Int, ffi.Int, + Scalar)>>('WarpAffineWithParams'); late final _WarpAffineWithParams = _WarpAffineWithParamsPtr.asFunction< ffi.Pointer Function(Mat, Mat, Mat, Size, int, int, Scalar)>(); @@ -19016,10 +21043,12 @@ class CvNative { ); } - late final _WarpPerspectivePtr = - _lookup Function(Mat, Mat, Mat, Size)>>('WarpPerspective'); - late final _WarpPerspective = - _WarpPerspectivePtr.asFunction Function(Mat, Mat, Mat, Size)>(); + late final _WarpPerspectivePtr = _lookup< + ffi + .NativeFunction Function(Mat, Mat, Mat, Size)>>( + 'WarpPerspective'); + late final _WarpPerspective = _WarpPerspectivePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Size)>(); ffi.Pointer WarpPerspectiveWithParams( Mat src, @@ -19042,10 +21071,13 @@ class CvNative { } late final _WarpPerspectiveWithParamsPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat, Size, ffi.Int, ffi.Int, Scalar)>>( - 'WarpPerspectiveWithParams'); - late final _WarpPerspectiveWithParams = _WarpPerspectiveWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Size, int, int, Scalar)>(); + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Mat, Size, ffi.Int, ffi.Int, + Scalar)>>('WarpPerspectiveWithParams'); + late final _WarpPerspectiveWithParams = + _WarpPerspectiveWithParamsPtr.asFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Size, int, int, Scalar)>(); ffi.Pointer Watershed( Mat image, @@ -19058,8 +21090,10 @@ class CvNative { } late final _WatershedPtr = - _lookup Function(Mat, Mat)>>('Watershed'); - late final _Watershed = _WatershedPtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'Watershed'); + late final _Watershed = + _WatershedPtr.asFunction Function(Mat, Mat)>(); void WeChatQRCode_Close( WeChatQRCodePtr self, @@ -19070,8 +21104,10 @@ class CvNative { } late final _WeChatQRCode_ClosePtr = - _lookup>('WeChatQRCode_Close'); - late final _WeChatQRCode_Close = _WeChatQRCode_ClosePtr.asFunction(); + _lookup>( + 'WeChatQRCode_Close'); + late final _WeChatQRCode_Close = + _WeChatQRCode_ClosePtr.asFunction(); ffi.Pointer WeChatQRCode_DetectAndDecode( ffi.Pointer self, @@ -19089,11 +21125,15 @@ class CvNative { late final _WeChatQRCode_DetectAndDecodePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, Mat, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + Mat, + ffi.Pointer, ffi.Pointer)>>('WeChatQRCode_DetectAndDecode'); - late final _WeChatQRCode_DetectAndDecode = _WeChatQRCode_DetectAndDecodePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, Mat, ffi.Pointer, ffi.Pointer)>(); + late final _WeChatQRCode_DetectAndDecode = + _WeChatQRCode_DetectAndDecodePtr.asFunction< + ffi.Pointer Function(ffi.Pointer, Mat, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer WeChatQRCode_GetScaleFactor( ffi.Pointer self, @@ -19106,11 +21146,13 @@ class CvNative { } late final _WeChatQRCode_GetScaleFactorPtr = _lookup< - ffi - .NativeFunction Function(ffi.Pointer, ffi.Pointer)>>( - 'WeChatQRCode_GetScaleFactor'); - late final _WeChatQRCode_GetScaleFactor = _WeChatQRCode_GetScaleFactorPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer)>>('WeChatQRCode_GetScaleFactor'); + late final _WeChatQRCode_GetScaleFactor = + _WeChatQRCode_GetScaleFactorPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer WeChatQRCode_New( ffi.Pointer qrcode, @@ -19120,11 +21162,12 @@ class CvNative { ); } - late final _WeChatQRCode_NewPtr = - _lookup Function(ffi.Pointer)>>( - 'WeChatQRCode_New'); - late final _WeChatQRCode_New = - _WeChatQRCode_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _WeChatQRCode_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('WeChatQRCode_New'); + late final _WeChatQRCode_New = _WeChatQRCode_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer WeChatQRCode_NewWithParams( ffi.Pointer detector_prototxt_path, @@ -19144,11 +21187,20 @@ class CvNative { late final _WeChatQRCode_NewWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('WeChatQRCode_NewWithParams'); - late final _WeChatQRCode_NewWithParams = _WeChatQRCode_NewWithParamsPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('WeChatQRCode_NewWithParams'); + late final _WeChatQRCode_NewWithParams = + _WeChatQRCode_NewWithParamsPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); ffi.Pointer WeChatQRCode_SetScaleFactor( ffi.Pointer self, @@ -19160,11 +21212,13 @@ class CvNative { ); } - late final _WeChatQRCode_SetScaleFactorPtr = - _lookup Function(ffi.Pointer, ffi.Float)>>( - 'WeChatQRCode_SetScaleFactor'); - late final _WeChatQRCode_SetScaleFactor = _WeChatQRCode_SetScaleFactorPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, double)>(); + late final _WeChatQRCode_SetScaleFactorPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Float)>>('WeChatQRCode_SetScaleFactor'); + late final _WeChatQRCode_SetScaleFactor = + _WeChatQRCode_SetScaleFactorPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, double)>(); void Window_Close( ffi.Pointer winname, @@ -19175,8 +21229,10 @@ class CvNative { } late final _Window_ClosePtr = - _lookup)>>('Window_Close'); - late final _Window_Close = _Window_ClosePtr.asFunction)>(); + _lookup)>>( + 'Window_Close'); + late final _Window_Close = + _Window_ClosePtr.asFunction)>(); ffi.Pointer Window_GetProperty( ffi.Pointer winname, @@ -19192,10 +21248,11 @@ class CvNative { late final _Window_GetPropertyPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('Window_GetProperty'); + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('Window_GetProperty'); late final _Window_GetProperty = _Window_GetPropertyPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer Window_IMShow( ffi.Pointer winname, @@ -19207,11 +21264,12 @@ class CvNative { ); } - late final _Window_IMShowPtr = - _lookup Function(ffi.Pointer, Mat)>>( - 'Window_IMShow'); - late final _Window_IMShow = - _Window_IMShowPtr.asFunction Function(ffi.Pointer, Mat)>(); + late final _Window_IMShowPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, Mat)>>('Window_IMShow'); + late final _Window_IMShow = _Window_IMShowPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, Mat)>(); ffi.Pointer Window_Move( ffi.Pointer winname, @@ -19225,11 +21283,12 @@ class CvNative { ); } - late final _Window_MovePtr = - _lookup Function(ffi.Pointer, ffi.Int, ffi.Int)>>( - 'Window_Move'); - late final _Window_Move = - _Window_MovePtr.asFunction Function(ffi.Pointer, int, int)>(); + late final _Window_MovePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Int, ffi.Int)>>('Window_Move'); + late final _Window_Move = _Window_MovePtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, int)>(); ffi.Pointer Window_New( ffi.Pointer winname, @@ -19241,11 +21300,12 @@ class CvNative { ); } - late final _Window_NewPtr = - _lookup Function(ffi.Pointer, ffi.Int)>>( - 'Window_New'); - late final _Window_New = - _Window_NewPtr.asFunction Function(ffi.Pointer, int)>(); + late final _Window_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Int)>>('Window_New'); + late final _Window_New = _Window_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int)>(); ffi.Pointer Window_Resize( ffi.Pointer winname, @@ -19259,11 +21319,12 @@ class CvNative { ); } - late final _Window_ResizePtr = - _lookup Function(ffi.Pointer, ffi.Int, ffi.Int)>>( - 'Window_Resize'); - late final _Window_Resize = - _Window_ResizePtr.asFunction Function(ffi.Pointer, int, int)>(); + late final _Window_ResizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Int, ffi.Int)>>('Window_Resize'); + late final _Window_Resize = _Window_ResizePtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, int)>(); ffi.Pointer Window_SelectROI( ffi.Pointer winname, @@ -19278,10 +21339,12 @@ class CvNative { } late final _Window_SelectROIPtr = _lookup< - ffi.NativeFunction Function(ffi.Pointer, Mat, ffi.Pointer)>>( - 'Window_SelectROI'); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, Mat, + ffi.Pointer)>>('Window_SelectROI'); late final _Window_SelectROI = _Window_SelectROIPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, Mat, ffi.Pointer)>(); ffi.Pointer Window_SelectROIs( ffi.Pointer winname, @@ -19296,11 +21359,12 @@ class CvNative { } late final _Window_SelectROIsPtr = _lookup< - ffi - .NativeFunction Function(ffi.Pointer, Mat, ffi.Pointer)>>( - 'Window_SelectROIs'); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, Mat, + ffi.Pointer)>>('Window_SelectROIs'); late final _Window_SelectROIs = _Window_SelectROIsPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, Mat, ffi.Pointer)>(); ffi.Pointer Window_SetProperty( ffi.Pointer winname, @@ -19314,11 +21378,12 @@ class CvNative { ); } - late final _Window_SetPropertyPtr = - _lookup Function(ffi.Pointer, ffi.Int, ffi.Double)>>( - 'Window_SetProperty'); - late final _Window_SetProperty = - _Window_SetPropertyPtr.asFunction Function(ffi.Pointer, int, double)>(); + late final _Window_SetPropertyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Double)>>('Window_SetProperty'); + late final _Window_SetProperty = _Window_SetPropertyPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, double)>(); ffi.Pointer Window_SetTitle( ffi.Pointer winname, @@ -19331,10 +21396,12 @@ class CvNative { } late final _Window_SetTitlePtr = _lookup< - ffi.NativeFunction Function(ffi.Pointer, ffi.Pointer)>>( - 'Window_SetTitle'); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer)>>('Window_SetTitle'); late final _Window_SetTitle = _Window_SetTitlePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Window_WaitKey( int delay, @@ -19346,11 +21413,12 @@ class CvNative { ); } - late final _Window_WaitKeyPtr = - _lookup Function(ffi.Int, ffi.Pointer)>>( - 'Window_WaitKey'); - late final _Window_WaitKey = - _Window_WaitKeyPtr.asFunction Function(int, ffi.Pointer)>(); + late final _Window_WaitKeyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int, ffi.Pointer)>>('Window_WaitKey'); + late final _Window_WaitKey = _Window_WaitKeyPtr.asFunction< + ffi.Pointer Function(int, ffi.Pointer)>(); ffi.Pointer Zeros( int rows, @@ -19367,9 +21435,11 @@ class CvNative { } late final _ZerosPtr = _lookup< - ffi - .NativeFunction Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Zeros'); - late final _Zeros = _ZerosPtr.asFunction Function(int, int, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Zeros'); + late final _Zeros = _ZerosPtr.asFunction< + ffi.Pointer Function(int, int, int, ffi.Pointer)>(); ffi.Pointer averageHashCompare( Mat a, @@ -19383,11 +21453,12 @@ class CvNative { ); } - late final _averageHashComparePtr = - _lookup Function(Mat, Mat, ffi.Pointer)>>( - 'averageHashCompare'); - late final _averageHashCompare = - _averageHashComparePtr.asFunction Function(Mat, Mat, ffi.Pointer)>(); + late final _averageHashComparePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Pointer)>>('averageHashCompare'); + late final _averageHashCompare = _averageHashComparePtr.asFunction< + ffi.Pointer Function(Mat, Mat, ffi.Pointer)>(); ffi.Pointer averageHashCompute( Mat inputArr, @@ -19400,9 +21471,10 @@ class CvNative { } late final _averageHashComputePtr = - _lookup Function(Mat, Mat)>>('averageHashCompute'); - late final _averageHashCompute = - _averageHashComputePtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'averageHashCompute'); + late final _averageHashCompute = _averageHashComputePtr + .asFunction Function(Mat, Mat)>(); ffi.Pointer blockMeanHashCompare( Mat a, @@ -19418,11 +21490,12 @@ class CvNative { ); } - late final _blockMeanHashComparePtr = - _lookup Function(Mat, Mat, ffi.Int, ffi.Pointer)>>( - 'blockMeanHashCompare'); - late final _blockMeanHashCompare = _blockMeanHashComparePtr - .asFunction Function(Mat, Mat, int, ffi.Pointer)>(); + late final _blockMeanHashComparePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int, + ffi.Pointer)>>('blockMeanHashCompare'); + late final _blockMeanHashCompare = _blockMeanHashComparePtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer blockMeanHashCompute( Mat inputArr, @@ -19436,10 +21509,12 @@ class CvNative { ); } - late final _blockMeanHashComputePtr = - _lookup Function(Mat, Mat, ffi.Int)>>('blockMeanHashCompute'); - late final _blockMeanHashCompute = - _blockMeanHashComputePtr.asFunction Function(Mat, Mat, int)>(); + late final _blockMeanHashComputePtr = _lookup< + ffi + .NativeFunction Function(Mat, Mat, ffi.Int)>>( + 'blockMeanHashCompute'); + late final _blockMeanHashCompute = _blockMeanHashComputePtr + .asFunction Function(Mat, Mat, int)>(); ffi.Pointer calibrateCamera_Async( VecVecPoint3f objectPoints, @@ -19465,11 +21540,18 @@ class CvNative { late final _calibrateCamera_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecVecPoint3f, VecVecPoint2f, Size, Mat, Mat, ffi.Int, TermCriteria, + ffi.Pointer Function( + VecVecPoint3f, + VecVecPoint2f, + Size, + Mat, + Mat, + ffi.Int, + TermCriteria, CvCallback_5)>>('calibrateCamera_Async'); late final _calibrateCamera_Async = _calibrateCamera_AsyncPtr.asFunction< - ffi.Pointer Function( - VecVecPoint3f, VecVecPoint2f, Size, Mat, Mat, int, TermCriteria, CvCallback_5)>(); + ffi.Pointer Function(VecVecPoint3f, VecVecPoint2f, Size, Mat, + Mat, int, TermCriteria, CvCallback_5)>(); ffi.Pointer colorMomentHashCompare( Mat a, @@ -19483,11 +21565,12 @@ class CvNative { ); } - late final _colorMomentHashComparePtr = - _lookup Function(Mat, Mat, ffi.Pointer)>>( - 'colorMomentHashCompare'); - late final _colorMomentHashCompare = _colorMomentHashComparePtr - .asFunction Function(Mat, Mat, ffi.Pointer)>(); + late final _colorMomentHashComparePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Pointer)>>('colorMomentHashCompare'); + late final _colorMomentHashCompare = _colorMomentHashComparePtr.asFunction< + ffi.Pointer Function(Mat, Mat, ffi.Pointer)>(); ffi.Pointer colorMomentHashCompute( Mat inputArr, @@ -19500,17 +21583,20 @@ class CvNative { } late final _colorMomentHashComputePtr = - _lookup Function(Mat, Mat)>>('colorMomentHashCompute'); - late final _colorMomentHashCompute = - _colorMomentHashComputePtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'colorMomentHashCompute'); + late final _colorMomentHashCompute = _colorMomentHashComputePtr + .asFunction Function(Mat, Mat)>(); ffi.Pointer destroyAllWindows() { return _destroyAllWindows(); } late final _destroyAllWindowsPtr = - _lookup Function()>>('destroyAllWindows'); - late final _destroyAllWindows = _destroyAllWindowsPtr.asFunction Function()>(); + _lookup Function()>>( + 'destroyAllWindows'); + late final _destroyAllWindows = + _destroyAllWindowsPtr.asFunction Function()>(); ffi.Pointer drawChessboardCorners_Async( Mat image, @@ -19526,11 +21612,13 @@ class CvNative { ); } - late final _drawChessboardCorners_AsyncPtr = - _lookup Function(Mat, Size, ffi.Bool, CvCallback_0)>>( - 'drawChessboardCorners_Async'); - late final _drawChessboardCorners_Async = _drawChessboardCorners_AsyncPtr - .asFunction Function(Mat, Size, bool, CvCallback_0)>(); + late final _drawChessboardCorners_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Size, ffi.Bool, + CvCallback_0)>>('drawChessboardCorners_Async'); + late final _drawChessboardCorners_Async = + _drawChessboardCorners_AsyncPtr.asFunction< + ffi.Pointer Function(Mat, Size, bool, CvCallback_0)>(); ffi.Pointer estimateAffine2DWithParams_Async( VecPoint2f from, @@ -19556,10 +21644,19 @@ class CvNative { late final _estimateAffine2DWithParams_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, ffi.Int, ffi.Double, ffi.Size, ffi.Double, - ffi.Size, CvCallback_2)>>('estimateAffine2DWithParams_Async'); - late final _estimateAffine2DWithParams_Async = _estimateAffine2DWithParams_AsyncPtr.asFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, int, double, int, double, int, CvCallback_2)>(); + ffi.Pointer Function( + VecPoint2f, + VecPoint2f, + ffi.Int, + ffi.Double, + ffi.Size, + ffi.Double, + ffi.Size, + CvCallback_2)>>('estimateAffine2DWithParams_Async'); + late final _estimateAffine2DWithParams_Async = + _estimateAffine2DWithParams_AsyncPtr.asFunction< + ffi.Pointer Function(VecPoint2f, VecPoint2f, int, double, + int, double, int, CvCallback_2)>(); ffi.Pointer estimateAffine2D_Async( VecPoint2f from, @@ -19573,11 +21670,12 @@ class CvNative { ); } - late final _estimateAffine2D_AsyncPtr = - _lookup Function(VecPoint2f, VecPoint2f, CvCallback_1)>>( - 'estimateAffine2D_Async'); - late final _estimateAffine2D_Async = _estimateAffine2D_AsyncPtr - .asFunction Function(VecPoint2f, VecPoint2f, CvCallback_1)>(); + late final _estimateAffine2D_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint2f, VecPoint2f, CvCallback_1)>>('estimateAffine2D_Async'); + late final _estimateAffine2D_Async = _estimateAffine2D_AsyncPtr.asFunction< + ffi.Pointer Function(VecPoint2f, VecPoint2f, CvCallback_1)>(); ffi.Pointer estimateAffinePartial2DWithParams_Async( VecPoint2f from, @@ -19603,12 +21701,19 @@ class CvNative { late final _estimateAffinePartial2DWithParams_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, ffi.Int, ffi.Double, ffi.Size, ffi.Double, - ffi.Size, CvCallback_2)>>('estimateAffinePartial2DWithParams_Async'); + ffi.Pointer Function( + VecPoint2f, + VecPoint2f, + ffi.Int, + ffi.Double, + ffi.Size, + ffi.Double, + ffi.Size, + CvCallback_2)>>('estimateAffinePartial2DWithParams_Async'); late final _estimateAffinePartial2DWithParams_Async = _estimateAffinePartial2DWithParams_AsyncPtr.asFunction< - ffi.Pointer Function( - VecPoint2f, VecPoint2f, int, double, int, double, int, CvCallback_2)>(); + ffi.Pointer Function(VecPoint2f, VecPoint2f, int, double, + int, double, int, CvCallback_2)>(); ffi.Pointer estimateAffinePartial2D_Async( VecPoint2f from, @@ -19622,11 +21727,14 @@ class CvNative { ); } - late final _estimateAffinePartial2D_AsyncPtr = - _lookup Function(VecPoint2f, VecPoint2f, CvCallback_1)>>( - 'estimateAffinePartial2D_Async'); - late final _estimateAffinePartial2D_Async = _estimateAffinePartial2D_AsyncPtr - .asFunction Function(VecPoint2f, VecPoint2f, CvCallback_1)>(); + late final _estimateAffinePartial2D_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecPoint2f, VecPoint2f, + CvCallback_1)>>('estimateAffinePartial2D_Async'); + late final _estimateAffinePartial2D_Async = + _estimateAffinePartial2D_AsyncPtr.asFunction< + ffi.Pointer Function( + VecPoint2f, VecPoint2f, CvCallback_1)>(); ffi.Pointer findChessboardCornersSBWithMeta_Async( Mat image, @@ -19642,11 +21750,13 @@ class CvNative { ); } - late final _findChessboardCornersSBWithMeta_AsyncPtr = - _lookup Function(Mat, Size, ffi.Int, CvCallback_3)>>( - 'findChessboardCornersSBWithMeta_Async'); - late final _findChessboardCornersSBWithMeta_Async = _findChessboardCornersSBWithMeta_AsyncPtr - .asFunction Function(Mat, Size, int, CvCallback_3)>(); + late final _findChessboardCornersSBWithMeta_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Size, ffi.Int, + CvCallback_3)>>('findChessboardCornersSBWithMeta_Async'); + late final _findChessboardCornersSBWithMeta_Async = + _findChessboardCornersSBWithMeta_AsyncPtr.asFunction< + ffi.Pointer Function(Mat, Size, int, CvCallback_3)>(); ffi.Pointer findChessboardCornersSB_Async( Mat image, @@ -19662,11 +21772,13 @@ class CvNative { ); } - late final _findChessboardCornersSB_AsyncPtr = - _lookup Function(Mat, Size, ffi.Int, CvCallback_2)>>( - 'findChessboardCornersSB_Async'); - late final _findChessboardCornersSB_Async = _findChessboardCornersSB_AsyncPtr - .asFunction Function(Mat, Size, int, CvCallback_2)>(); + late final _findChessboardCornersSB_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Size, ffi.Int, + CvCallback_2)>>('findChessboardCornersSB_Async'); + late final _findChessboardCornersSB_Async = + _findChessboardCornersSB_AsyncPtr.asFunction< + ffi.Pointer Function(Mat, Size, int, CvCallback_2)>(); ffi.Pointer findChessboardCorners_Async( Mat image, @@ -19682,13 +21794,16 @@ class CvNative { ); } - late final _findChessboardCorners_AsyncPtr = - _lookup Function(Mat, Size, ffi.Int, CvCallback_2)>>( - 'findChessboardCorners_Async'); - late final _findChessboardCorners_Async = _findChessboardCorners_AsyncPtr - .asFunction Function(Mat, Size, int, CvCallback_2)>(); + late final _findChessboardCorners_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Size, ffi.Int, + CvCallback_2)>>('findChessboardCorners_Async'); + late final _findChessboardCorners_Async = + _findChessboardCorners_AsyncPtr.asFunction< + ffi.Pointer Function(Mat, Size, int, CvCallback_2)>(); - ffi.Pointer fisheye_estimateNewCameraMatrixForUndistortRectify_Async( + ffi.Pointer + fisheye_estimateNewCameraMatrixForUndistortRectify_Async( Mat k, Mat d, Size imgSize, @@ -19710,13 +21825,16 @@ class CvNative { ); } - late final _fisheye_estimateNewCameraMatrixForUndistortRectify_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Size, Mat, ffi.Double, Size, ffi.Double, - CvCallback_1)>>('fisheye_estimateNewCameraMatrixForUndistortRectify_Async'); + late final _fisheye_estimateNewCameraMatrixForUndistortRectify_AsyncPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Size, Mat, + ffi.Double, Size, ffi.Double, CvCallback_1)>>( + 'fisheye_estimateNewCameraMatrixForUndistortRectify_Async'); late final _fisheye_estimateNewCameraMatrixForUndistortRectify_Async = _fisheye_estimateNewCameraMatrixForUndistortRectify_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Size, Mat, double, Size, double, CvCallback_1)>(); + ffi.Pointer Function( + Mat, Mat, Size, Mat, double, Size, double, CvCallback_1)>(); ffi.Pointer fisheye_undistortImageWithParams_Async( Mat distorted, @@ -19736,11 +21854,14 @@ class CvNative { ); } - late final _fisheye_undistortImageWithParams_AsyncPtr = - _lookup Function(Mat, Mat, Mat, Mat, Size, CvCallback_1)>>( - 'fisheye_undistortImageWithParams_Async'); - late final _fisheye_undistortImageWithParams_Async = _fisheye_undistortImageWithParams_AsyncPtr - .asFunction Function(Mat, Mat, Mat, Mat, Size, CvCallback_1)>(); + late final _fisheye_undistortImageWithParams_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, Size, + CvCallback_1)>>('fisheye_undistortImageWithParams_Async'); + late final _fisheye_undistortImageWithParams_Async = + _fisheye_undistortImageWithParams_AsyncPtr.asFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, Size, CvCallback_1)>(); ffi.Pointer fisheye_undistortImage_Async( Mat distorted, @@ -19756,11 +21877,13 @@ class CvNative { ); } - late final _fisheye_undistortImage_AsyncPtr = - _lookup Function(Mat, Mat, Mat, CvCallback_1)>>( - 'fisheye_undistortImage_Async'); - late final _fisheye_undistortImage_Async = _fisheye_undistortImage_AsyncPtr - .asFunction Function(Mat, Mat, Mat, CvCallback_1)>(); + late final _fisheye_undistortImage_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, CvCallback_1)>>('fisheye_undistortImage_Async'); + late final _fisheye_undistortImage_Async = + _fisheye_undistortImage_AsyncPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, CvCallback_1)>(); ffi.Pointer fisheye_undistortPoints_Async( Mat distorted, @@ -19780,11 +21903,14 @@ class CvNative { ); } - late final _fisheye_undistortPoints_AsyncPtr = - _lookup Function(Mat, Mat, Mat, Mat, Mat, CvCallback_1)>>( - 'fisheye_undistortPoints_Async'); - late final _fisheye_undistortPoints_Async = _fisheye_undistortPoints_AsyncPtr - .asFunction Function(Mat, Mat, Mat, Mat, Mat, CvCallback_1)>(); + late final _fisheye_undistortPoints_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, + CvCallback_1)>>('fisheye_undistortPoints_Async'); + late final _fisheye_undistortPoints_Async = + _fisheye_undistortPoints_AsyncPtr.asFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, Mat, CvCallback_1)>(); ffi.Pointer gapi_BGR2Gray( GMat src, @@ -19796,10 +21922,12 @@ class CvNative { ); } - late final _gapi_BGR2GrayPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_BGR2Gray'); - late final _gapi_BGR2Gray = - _gapi_BGR2GrayPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_BGR2GrayPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_BGR2Gray'); + late final _gapi_BGR2Gray = _gapi_BGR2GrayPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_BGR2I420( GMat src, @@ -19811,10 +21939,12 @@ class CvNative { ); } - late final _gapi_BGR2I420Ptr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_BGR2I420'); - late final _gapi_BGR2I420 = - _gapi_BGR2I420Ptr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_BGR2I420Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_BGR2I420'); + late final _gapi_BGR2I420 = _gapi_BGR2I420Ptr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_BGR2LUV( GMat src, @@ -19826,10 +21956,12 @@ class CvNative { ); } - late final _gapi_BGR2LUVPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_BGR2LUV'); - late final _gapi_BGR2LUV = - _gapi_BGR2LUVPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_BGR2LUVPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_BGR2LUV'); + late final _gapi_BGR2LUV = _gapi_BGR2LUVPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_BGR2RGB( GMat src, @@ -19841,10 +21973,12 @@ class CvNative { ); } - late final _gapi_BGR2RGBPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_BGR2RGB'); - late final _gapi_BGR2RGB = - _gapi_BGR2RGBPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_BGR2RGBPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_BGR2RGB'); + late final _gapi_BGR2RGB = _gapi_BGR2RGBPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_BGR2YUV( GMat src, @@ -19856,10 +21990,12 @@ class CvNative { ); } - late final _gapi_BGR2YUVPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_BGR2YUV'); - late final _gapi_BGR2YUV = - _gapi_BGR2YUVPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_BGR2YUVPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_BGR2YUV'); + late final _gapi_BGR2YUV = _gapi_BGR2YUVPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_BayerGR2RGB( GMat src_gr, @@ -19871,11 +22007,12 @@ class CvNative { ); } - late final _gapi_BayerGR2RGBPtr = - _lookup Function(GMat, ffi.Pointer)>>( - 'gapi_BayerGR2RGB'); - late final _gapi_BayerGR2RGB = - _gapi_BayerGR2RGBPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_BayerGR2RGBPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_BayerGR2RGB'); + late final _gapi_BayerGR2RGB = _gapi_BayerGR2RGBPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_Canny( GMat image, @@ -19897,10 +22034,11 @@ class CvNative { late final _gapi_CannyPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Double, ffi.Double, ffi.Int, ffi.Bool, ffi.Pointer)>>('gapi_Canny'); - late final _gapi_Canny = _gapi_CannyPtr - .asFunction Function(GMat, double, double, int, bool, ffi.Pointer)>(); + ffi.Pointer Function(GMat, ffi.Double, ffi.Double, ffi.Int, + ffi.Bool, ffi.Pointer)>>('gapi_Canny'); + late final _gapi_Canny = _gapi_CannyPtr.asFunction< + ffi.Pointer Function( + GMat, double, double, int, bool, ffi.Pointer)>(); void gapi_GComputation_Close( GComputationPtr self, @@ -19911,7 +22049,8 @@ class CvNative { } late final _gapi_GComputation_ClosePtr = - _lookup>('gapi_GComputation_Close'); + _lookup>( + 'gapi_GComputation_Close'); late final _gapi_GComputation_Close = _gapi_GComputation_ClosePtr.asFunction(); @@ -19927,11 +22066,12 @@ class CvNative { ); } - late final _gapi_GComputation_NewPtr = - _lookup Function(GMat, GMat, ffi.Pointer)>>( - 'gapi_GComputation_New'); - late final _gapi_GComputation_New = _gapi_GComputation_NewPtr - .asFunction Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_GComputation_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, ffi.Pointer)>>('gapi_GComputation_New'); + late final _gapi_GComputation_New = _gapi_GComputation_NewPtr.asFunction< + ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_GComputation_New_1( GMat in1, @@ -19945,11 +22085,13 @@ class CvNative { ); } - late final _gapi_GComputation_New_1Ptr = - _lookup Function(GMat, GScalar, ffi.Pointer)>>( - 'gapi_GComputation_New_1'); - late final _gapi_GComputation_New_1 = _gapi_GComputation_New_1Ptr - .asFunction Function(GMat, GScalar, ffi.Pointer)>(); + late final _gapi_GComputation_New_1Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(GMat, GScalar, + ffi.Pointer)>>('gapi_GComputation_New_1'); + late final _gapi_GComputation_New_1 = _gapi_GComputation_New_1Ptr.asFunction< + ffi.Pointer Function( + GMat, GScalar, ffi.Pointer)>(); ffi.Pointer gapi_GComputation_New_2( GMat in1, @@ -19966,10 +22108,12 @@ class CvNative { } late final _gapi_GComputation_New_2Ptr = _lookup< - ffi.NativeFunction Function(GMat, GMat, GMat, ffi.Pointer)>>( - 'gapi_GComputation_New_2'); - late final _gapi_GComputation_New_2 = _gapi_GComputation_New_2Ptr - .asFunction Function(GMat, GMat, GMat, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(GMat, GMat, GMat, + ffi.Pointer)>>('gapi_GComputation_New_2'); + late final _gapi_GComputation_New_2 = _gapi_GComputation_New_2Ptr.asFunction< + ffi.Pointer Function( + GMat, GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_GComputation_New_3( GMat in1, @@ -19986,10 +22130,12 @@ class CvNative { } late final _gapi_GComputation_New_3Ptr = _lookup< - ffi.NativeFunction Function(GMat, GMat, GScalar, ffi.Pointer)>>( - 'gapi_GComputation_New_3'); - late final _gapi_GComputation_New_3 = _gapi_GComputation_New_3Ptr - .asFunction Function(GMat, GMat, GScalar, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(GMat, GMat, GScalar, + ffi.Pointer)>>('gapi_GComputation_New_3'); + late final _gapi_GComputation_New_3 = _gapi_GComputation_New_3Ptr.asFunction< + ffi.Pointer Function( + GMat, GMat, GScalar, ffi.Pointer)>(); ffi.Pointer gapi_GComputation_apply( GComputation self, @@ -20003,11 +22149,12 @@ class CvNative { ); } - late final _gapi_GComputation_applyPtr = - _lookup Function(GComputation, Mat, CvCallback_1)>>( - 'gapi_GComputation_apply'); - late final _gapi_GComputation_apply = _gapi_GComputation_applyPtr - .asFunction Function(GComputation, Mat, CvCallback_1)>(); + late final _gapi_GComputation_applyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GComputation, Mat, CvCallback_1)>>('gapi_GComputation_apply'); + late final _gapi_GComputation_apply = _gapi_GComputation_applyPtr.asFunction< + ffi.Pointer Function(GComputation, Mat, CvCallback_1)>(); ffi.Pointer gapi_GComputation_apply_1( GComputation self, @@ -20021,11 +22168,14 @@ class CvNative { ); } - late final _gapi_GComputation_apply_1Ptr = - _lookup Function(GComputation, Mat, ffi.Pointer)>>( - 'gapi_GComputation_apply_1'); - late final _gapi_GComputation_apply_1 = _gapi_GComputation_apply_1Ptr - .asFunction Function(GComputation, Mat, ffi.Pointer)>(); + late final _gapi_GComputation_apply_1Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(GComputation, Mat, + ffi.Pointer)>>('gapi_GComputation_apply_1'); + late final _gapi_GComputation_apply_1 = + _gapi_GComputation_apply_1Ptr.asFunction< + ffi.Pointer Function( + GComputation, Mat, ffi.Pointer)>(); ffi.Pointer gapi_GComputation_apply_2( GComputation self, @@ -20041,11 +22191,14 @@ class CvNative { ); } - late final _gapi_GComputation_apply_2Ptr = - _lookup Function(GComputation, Mat, Mat, ffi.Pointer)>>( - 'gapi_GComputation_apply_2'); - late final _gapi_GComputation_apply_2 = _gapi_GComputation_apply_2Ptr - .asFunction Function(GComputation, Mat, Mat, ffi.Pointer)>(); + late final _gapi_GComputation_apply_2Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(GComputation, Mat, Mat, + ffi.Pointer)>>('gapi_GComputation_apply_2'); + late final _gapi_GComputation_apply_2 = + _gapi_GComputation_apply_2Ptr.asFunction< + ffi.Pointer Function( + GComputation, Mat, Mat, ffi.Pointer)>(); ffi.Pointer gapi_GComputation_apply_3( GComputation self, @@ -20062,10 +22215,13 @@ class CvNative { } late final _gapi_GComputation_apply_3Ptr = _lookup< - ffi.NativeFunction Function(GComputation, Mat, Mat, ffi.Pointer)>>( - 'gapi_GComputation_apply_3'); - late final _gapi_GComputation_apply_3 = _gapi_GComputation_apply_3Ptr - .asFunction Function(GComputation, Mat, Mat, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(GComputation, Mat, Mat, + ffi.Pointer)>>('gapi_GComputation_apply_3'); + late final _gapi_GComputation_apply_3 = + _gapi_GComputation_apply_3Ptr.asFunction< + ffi.Pointer Function( + GComputation, Mat, Mat, ffi.Pointer)>(); void gapi_GMat_Close( GMatPtr mat, @@ -20075,8 +22231,11 @@ class CvNative { ); } - late final _gapi_GMat_ClosePtr = _lookup>('gapi_GMat_Close'); - late final _gapi_GMat_Close = _gapi_GMat_ClosePtr.asFunction(); + late final _gapi_GMat_ClosePtr = + _lookup>( + 'gapi_GMat_Close'); + late final _gapi_GMat_Close = + _gapi_GMat_ClosePtr.asFunction(); ffi.Pointer gapi_GMat_New_Empty( ffi.Pointer rval, @@ -20086,10 +22245,12 @@ class CvNative { ); } - late final _gapi_GMat_New_EmptyPtr = - _lookup Function(ffi.Pointer)>>('gapi_GMat_New_Empty'); - late final _gapi_GMat_New_Empty = - _gapi_GMat_New_EmptyPtr.asFunction Function(ffi.Pointer)>(); + late final _gapi_GMat_New_EmptyPtr = _lookup< + ffi + .NativeFunction Function(ffi.Pointer)>>( + 'gapi_GMat_New_Empty'); + late final _gapi_GMat_New_Empty = _gapi_GMat_New_EmptyPtr + .asFunction Function(ffi.Pointer)>(); ffi.Pointer gapi_GMat_New_FromMat( Mat mat, @@ -20101,11 +22262,12 @@ class CvNative { ); } - late final _gapi_GMat_New_FromMatPtr = - _lookup Function(Mat, ffi.Pointer)>>( - 'gapi_GMat_New_FromMat'); - late final _gapi_GMat_New_FromMat = - _gapi_GMat_New_FromMatPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _gapi_GMat_New_FromMatPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('gapi_GMat_New_FromMat'); + late final _gapi_GMat_New_FromMat = _gapi_GMat_New_FromMatPtr + .asFunction Function(Mat, ffi.Pointer)>(); void gapi_GScalar_Close( GScalarPtr scalar, @@ -20116,8 +22278,10 @@ class CvNative { } late final _gapi_GScalar_ClosePtr = - _lookup>('gapi_GScalar_Close'); - late final _gapi_GScalar_Close = _gapi_GScalar_ClosePtr.asFunction(); + _lookup>( + 'gapi_GScalar_Close'); + late final _gapi_GScalar_Close = + _gapi_GScalar_ClosePtr.asFunction(); ffi.Pointer gapi_GScalar_New_Empty( ffi.Pointer rval, @@ -20127,11 +22291,12 @@ class CvNative { ); } - late final _gapi_GScalar_New_EmptyPtr = - _lookup Function(ffi.Pointer)>>( - 'gapi_GScalar_New_Empty'); - late final _gapi_GScalar_New_Empty = - _gapi_GScalar_New_EmptyPtr.asFunction Function(ffi.Pointer)>(); + late final _gapi_GScalar_New_EmptyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('gapi_GScalar_New_Empty'); + late final _gapi_GScalar_New_Empty = _gapi_GScalar_New_EmptyPtr + .asFunction Function(ffi.Pointer)>(); ffi.Pointer gapi_GScalar_New_FromDouble( double v0, @@ -20143,11 +22308,13 @@ class CvNative { ); } - late final _gapi_GScalar_New_FromDoublePtr = - _lookup Function(ffi.Double, ffi.Pointer)>>( - 'gapi_GScalar_New_FromDouble'); - late final _gapi_GScalar_New_FromDouble = _gapi_GScalar_New_FromDoublePtr - .asFunction Function(double, ffi.Pointer)>(); + late final _gapi_GScalar_New_FromDoublePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Double, + ffi.Pointer)>>('gapi_GScalar_New_FromDouble'); + late final _gapi_GScalar_New_FromDouble = + _gapi_GScalar_New_FromDoublePtr.asFunction< + ffi.Pointer Function(double, ffi.Pointer)>(); ffi.Pointer gapi_GScalar_New_FromScalar( Scalar scalar, @@ -20159,11 +22326,13 @@ class CvNative { ); } - late final _gapi_GScalar_New_FromScalarPtr = - _lookup Function(Scalar, ffi.Pointer)>>( - 'gapi_GScalar_New_FromScalar'); - late final _gapi_GScalar_New_FromScalar = _gapi_GScalar_New_FromScalarPtr - .asFunction Function(Scalar, ffi.Pointer)>(); + late final _gapi_GScalar_New_FromScalarPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Scalar, ffi.Pointer)>>('gapi_GScalar_New_FromScalar'); + late final _gapi_GScalar_New_FromScalar = + _gapi_GScalar_New_FromScalarPtr.asFunction< + ffi.Pointer Function(Scalar, ffi.Pointer)>(); ffi.Pointer gapi_I4202BGR( GMat src, @@ -20175,10 +22344,12 @@ class CvNative { ); } - late final _gapi_I4202BGRPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_I4202BGR'); - late final _gapi_I4202BGR = - _gapi_I4202BGRPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_I4202BGRPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_I4202BGR'); + late final _gapi_I4202BGR = _gapi_I4202BGRPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_I4202RGB( GMat src, @@ -20190,10 +22361,12 @@ class CvNative { ); } - late final _gapi_I4202RGBPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_I4202RGB'); - late final _gapi_I4202RGB = - _gapi_I4202RGBPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_I4202RGBPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_I4202RGB'); + late final _gapi_I4202RGB = _gapi_I4202RGBPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_LUT( GMat src, @@ -20207,10 +22380,12 @@ class CvNative { ); } - late final _gapi_LUTPtr = - _lookup Function(GMat, Mat, ffi.Pointer)>>('gapi_LUT'); - late final _gapi_LUT = - _gapi_LUTPtr.asFunction Function(GMat, Mat, ffi.Pointer)>(); + late final _gapi_LUTPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, Mat, ffi.Pointer)>>('gapi_LUT'); + late final _gapi_LUT = _gapi_LUTPtr.asFunction< + ffi.Pointer Function(GMat, Mat, ffi.Pointer)>(); ffi.Pointer gapi_LUV2BGR( GMat src, @@ -20222,10 +22397,12 @@ class CvNative { ); } - late final _gapi_LUV2BGRPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_LUV2BGR'); - late final _gapi_LUV2BGR = - _gapi_LUV2BGRPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_LUV2BGRPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_LUV2BGR'); + late final _gapi_LUV2BGR = _gapi_LUV2BGRPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_Laplacian( GMat src, @@ -20249,10 +22426,11 @@ class CvNative { late final _gapi_LaplacianPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Int, ffi.Int, ffi.Double, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_Laplacian'); - late final _gapi_Laplacian = _gapi_LaplacianPtr - .asFunction Function(GMat, int, int, double, double, int, ffi.Pointer)>(); + ffi.Pointer Function(GMat, ffi.Int, ffi.Int, ffi.Double, + ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_Laplacian'); + late final _gapi_Laplacian = _gapi_LaplacianPtr.asFunction< + ffi.Pointer Function( + GMat, int, int, double, double, int, ffi.Pointer)>(); ffi.Pointer gapi_NV12toBGR( GMat src_y, @@ -20266,11 +22444,12 @@ class CvNative { ); } - late final _gapi_NV12toBGRPtr = - _lookup Function(GMat, GMat, ffi.Pointer)>>( - 'gapi_NV12toBGR'); - late final _gapi_NV12toBGR = - _gapi_NV12toBGRPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_NV12toBGRPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, ffi.Pointer)>>('gapi_NV12toBGR'); + late final _gapi_NV12toBGR = _gapi_NV12toBGRPtr.asFunction< + ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_NV12toBGRp( GMat src_y, @@ -20284,11 +22463,12 @@ class CvNative { ); } - late final _gapi_NV12toBGRpPtr = - _lookup Function(GMat, GMat, ffi.Pointer)>>( - 'gapi_NV12toBGRp'); - late final _gapi_NV12toBGRp = - _gapi_NV12toBGRpPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_NV12toBGRpPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, ffi.Pointer)>>('gapi_NV12toBGRp'); + late final _gapi_NV12toBGRp = _gapi_NV12toBGRpPtr.asFunction< + ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_NV12toGray( GMat src_y, @@ -20302,11 +22482,12 @@ class CvNative { ); } - late final _gapi_NV12toGrayPtr = - _lookup Function(GMat, GMat, ffi.Pointer)>>( - 'gapi_NV12toGray'); - late final _gapi_NV12toGray = - _gapi_NV12toGrayPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_NV12toGrayPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, ffi.Pointer)>>('gapi_NV12toGray'); + late final _gapi_NV12toGray = _gapi_NV12toGrayPtr.asFunction< + ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_NV12toRGB( GMat src_y, @@ -20320,11 +22501,12 @@ class CvNative { ); } - late final _gapi_NV12toRGBPtr = - _lookup Function(GMat, GMat, ffi.Pointer)>>( - 'gapi_NV12toRGB'); - late final _gapi_NV12toRGB = - _gapi_NV12toRGBPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_NV12toRGBPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, ffi.Pointer)>>('gapi_NV12toRGB'); + late final _gapi_NV12toRGB = _gapi_NV12toRGBPtr.asFunction< + ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_NV12toRGBp( GMat src_y, @@ -20338,11 +22520,12 @@ class CvNative { ); } - late final _gapi_NV12toRGBpPtr = - _lookup Function(GMat, GMat, ffi.Pointer)>>( - 'gapi_NV12toRGBp'); - late final _gapi_NV12toRGBp = - _gapi_NV12toRGBpPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_NV12toRGBpPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, ffi.Pointer)>>('gapi_NV12toRGBp'); + late final _gapi_NV12toRGBp = _gapi_NV12toRGBpPtr.asFunction< + ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_RGB2Gray( GMat src, @@ -20354,10 +22537,12 @@ class CvNative { ); } - late final _gapi_RGB2GrayPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_RGB2Gray'); - late final _gapi_RGB2Gray = - _gapi_RGB2GrayPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_RGB2GrayPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_RGB2Gray'); + late final _gapi_RGB2Gray = _gapi_RGB2GrayPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_RGB2Gray_1( GMat src, @@ -20377,10 +22562,11 @@ class CvNative { late final _gapi_RGB2Gray_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Float, ffi.Float, ffi.Float, ffi.Pointer)>>('gapi_RGB2Gray_1'); - late final _gapi_RGB2Gray_1 = _gapi_RGB2Gray_1Ptr - .asFunction Function(GMat, double, double, double, ffi.Pointer)>(); + ffi.Pointer Function(GMat, ffi.Float, ffi.Float, ffi.Float, + ffi.Pointer)>>('gapi_RGB2Gray_1'); + late final _gapi_RGB2Gray_1 = _gapi_RGB2Gray_1Ptr.asFunction< + ffi.Pointer Function( + GMat, double, double, double, ffi.Pointer)>(); ffi.Pointer gapi_RGB2HSV( GMat src, @@ -20392,10 +22578,12 @@ class CvNative { ); } - late final _gapi_RGB2HSVPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_RGB2HSV'); - late final _gapi_RGB2HSV = - _gapi_RGB2HSVPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_RGB2HSVPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_RGB2HSV'); + late final _gapi_RGB2HSV = _gapi_RGB2HSVPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_RGB2I420( GMat src, @@ -20407,10 +22595,12 @@ class CvNative { ); } - late final _gapi_RGB2I420Ptr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_RGB2I420'); - late final _gapi_RGB2I420 = - _gapi_RGB2I420Ptr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_RGB2I420Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_RGB2I420'); + late final _gapi_RGB2I420 = _gapi_RGB2I420Ptr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_RGB2Lab( GMat src, @@ -20422,10 +22612,12 @@ class CvNative { ); } - late final _gapi_RGB2LabPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_RGB2Lab'); - late final _gapi_RGB2Lab = - _gapi_RGB2LabPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_RGB2LabPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_RGB2Lab'); + late final _gapi_RGB2Lab = _gapi_RGB2LabPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_RGB2YUV( GMat src, @@ -20437,10 +22629,12 @@ class CvNative { ); } - late final _gapi_RGB2YUVPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_RGB2YUV'); - late final _gapi_RGB2YUV = - _gapi_RGB2YUVPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_RGB2YUVPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_RGB2YUV'); + late final _gapi_RGB2YUV = _gapi_RGB2YUVPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_RGB2YUV422( GMat src, @@ -20452,10 +22646,12 @@ class CvNative { ); } - late final _gapi_RGB2YUV422Ptr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_RGB2YUV422'); - late final _gapi_RGB2YUV422 = - _gapi_RGB2YUV422Ptr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_RGB2YUV422Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_RGB2YUV422'); + late final _gapi_RGB2YUV422 = _gapi_RGB2YUV422Ptr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_Sobel( GMat src, @@ -20485,11 +22681,20 @@ class CvNative { late final _gapi_SobelPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Double, ffi.Double, - ffi.Int, Scalar, ffi.Pointer)>>('gapi_Sobel'); + ffi.Pointer Function( + GMat, + ffi.Int, + ffi.Int, + ffi.Int, + ffi.Int, + ffi.Double, + ffi.Double, + ffi.Int, + Scalar, + ffi.Pointer)>>('gapi_Sobel'); late final _gapi_Sobel = _gapi_SobelPtr.asFunction< - ffi.Pointer Function( - GMat, int, int, int, int, double, double, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function(GMat, int, int, int, int, double, double, + int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_SobelXY( GMat src, @@ -20519,11 +22724,20 @@ class CvNative { late final _gapi_SobelXYPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Int, ffi.Int, ffi.Double, ffi.Double, ffi.Int, - Scalar, ffi.Pointer, ffi.Pointer)>>('gapi_SobelXY'); + ffi.Pointer Function( + GMat, + ffi.Int, + ffi.Int, + ffi.Int, + ffi.Double, + ffi.Double, + ffi.Int, + Scalar, + ffi.Pointer, + ffi.Pointer)>>('gapi_SobelXY'); late final _gapi_SobelXY = _gapi_SobelXYPtr.asFunction< - ffi.Pointer Function( - GMat, int, int, int, double, double, int, Scalar, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(GMat, int, int, int, double, double, int, + Scalar, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer gapi_YUV2BGR( GMat src, @@ -20535,10 +22749,12 @@ class CvNative { ); } - late final _gapi_YUV2BGRPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_YUV2BGR'); - late final _gapi_YUV2BGR = - _gapi_YUV2BGRPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_YUV2BGRPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_YUV2BGR'); + late final _gapi_YUV2BGR = _gapi_YUV2BGRPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_YUV2RGB( GMat src, @@ -20550,10 +22766,12 @@ class CvNative { ); } - late final _gapi_YUV2RGBPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_YUV2RGB'); - late final _gapi_YUV2RGB = - _gapi_YUV2RGBPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_YUV2RGBPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_YUV2RGB'); + late final _gapi_YUV2RGB = _gapi_YUV2RGBPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_add( GMat src1, @@ -20569,11 +22787,12 @@ class CvNative { ); } - late final _gapi_addPtr = - _lookup Function(GMat, GMat, ffi.Int, ffi.Pointer)>>( - 'gapi_add'); - late final _gapi_add = - _gapi_addPtr.asFunction Function(GMat, GMat, int, ffi.Pointer)>(); + late final _gapi_addPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, ffi.Int, ffi.Pointer)>>('gapi_add'); + late final _gapi_add = _gapi_addPtr.asFunction< + ffi.Pointer Function(GMat, GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_addC( GMat src, @@ -20589,11 +22808,12 @@ class CvNative { ); } - late final _gapi_addCPtr = - _lookup Function(GMat, GScalar, ffi.Int, ffi.Pointer)>>( - 'gapi_addC'); - late final _gapi_addC = - _gapi_addCPtr.asFunction Function(GMat, GScalar, int, ffi.Pointer)>(); + late final _gapi_addCPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GScalar, ffi.Int, ffi.Pointer)>>('gapi_addC'); + late final _gapi_addC = _gapi_addCPtr.asFunction< + ffi.Pointer Function(GMat, GScalar, int, ffi.Pointer)>(); ffi.Pointer gapi_addC_1( GScalar c, @@ -20609,11 +22829,12 @@ class CvNative { ); } - late final _gapi_addC_1Ptr = - _lookup Function(GScalar, GMat, ffi.Int, ffi.Pointer)>>( - 'gapi_addC_1'); - late final _gapi_addC_1 = - _gapi_addC_1Ptr.asFunction Function(GScalar, GMat, int, ffi.Pointer)>(); + late final _gapi_addC_1Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GScalar, GMat, ffi.Int, ffi.Pointer)>>('gapi_addC_1'); + late final _gapi_addC_1 = _gapi_addC_1Ptr.asFunction< + ffi.Pointer Function(GScalar, GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_bilateralFilter( GMat src, @@ -20635,10 +22856,11 @@ class CvNative { late final _gapi_bilateralFilterPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Int, ffi.Double, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_bilateralFilter'); - late final _gapi_bilateralFilter = _gapi_bilateralFilterPtr - .asFunction Function(GMat, int, double, double, int, ffi.Pointer)>(); + ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, + ffi.Int, ffi.Pointer)>>('gapi_bilateralFilter'); + late final _gapi_bilateralFilter = _gapi_bilateralFilterPtr.asFunction< + ffi.Pointer Function( + GMat, int, double, double, int, ffi.Pointer)>(); ffi.Pointer gapi_blur( GMat src, @@ -20660,10 +22882,11 @@ class CvNative { late final _gapi_blurPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, Size, Point, ffi.Int, Scalar, ffi.Pointer)>>('gapi_blur'); - late final _gapi_blur = _gapi_blurPtr - .asFunction Function(GMat, Size, Point, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function(GMat, Size, Point, ffi.Int, Scalar, + ffi.Pointer)>>('gapi_blur'); + late final _gapi_blur = _gapi_blurPtr.asFunction< + ffi.Pointer Function( + GMat, Size, Point, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_boundingRect( GArrayPoint2f src, @@ -20675,11 +22898,13 @@ class CvNative { ); } - late final _gapi_boundingRectPtr = - _lookup Function(GArrayPoint2f, ffi.Pointer)>>( - 'gapi_boundingRect'); - late final _gapi_boundingRect = _gapi_boundingRectPtr - .asFunction Function(GArrayPoint2f, ffi.Pointer)>(); + late final _gapi_boundingRectPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GArrayPoint2f, ffi.Pointer)>>('gapi_boundingRect'); + late final _gapi_boundingRect = _gapi_boundingRectPtr.asFunction< + ffi.Pointer Function( + GArrayPoint2f, ffi.Pointer)>(); ffi.Pointer gapi_boundingRect_1( GArrayPoint2i src, @@ -20691,11 +22916,13 @@ class CvNative { ); } - late final _gapi_boundingRect_1Ptr = - _lookup Function(GArrayPoint2i, ffi.Pointer)>>( - 'gapi_boundingRect_1'); - late final _gapi_boundingRect_1 = _gapi_boundingRect_1Ptr - .asFunction Function(GArrayPoint2i, ffi.Pointer)>(); + late final _gapi_boundingRect_1Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GArrayPoint2i, ffi.Pointer)>>('gapi_boundingRect_1'); + late final _gapi_boundingRect_1 = _gapi_boundingRect_1Ptr.asFunction< + ffi.Pointer Function( + GArrayPoint2i, ffi.Pointer)>(); ffi.Pointer gapi_boundingRect_2( GMat src, @@ -20707,11 +22934,12 @@ class CvNative { ); } - late final _gapi_boundingRect_2Ptr = - _lookup Function(GMat, ffi.Pointer)>>( - 'gapi_boundingRect_2'); - late final _gapi_boundingRect_2 = - _gapi_boundingRect_2Ptr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_boundingRect_2Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_boundingRect_2'); + late final _gapi_boundingRect_2 = _gapi_boundingRect_2Ptr.asFunction< + ffi.Pointer Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_boxFilter( GMat src, @@ -20737,10 +22965,11 @@ class CvNative { late final _gapi_boxFilterPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Int, Size, Point, ffi.Bool, ffi.Int, Scalar, ffi.Pointer)>>('gapi_boxFilter'); + ffi.Pointer Function(GMat, ffi.Int, Size, Point, ffi.Bool, + ffi.Int, Scalar, ffi.Pointer)>>('gapi_boxFilter'); late final _gapi_boxFilter = _gapi_boxFilterPtr.asFunction< - ffi.Pointer Function(GMat, int, Size, Point, bool, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, int, Size, Point, bool, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_cartToPolar( GMat x, @@ -20760,10 +22989,11 @@ class CvNative { late final _gapi_cartToPolarPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Bool, ffi.Pointer, ffi.Pointer)>>('gapi_cartToPolar'); - late final _gapi_cartToPolar = _gapi_cartToPolarPtr - .asFunction Function(GMat, GMat, bool, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(GMat, GMat, ffi.Bool, + ffi.Pointer, ffi.Pointer)>>('gapi_cartToPolar'); + late final _gapi_cartToPolar = _gapi_cartToPolarPtr.asFunction< + ffi.Pointer Function( + GMat, GMat, bool, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer gapi_concatHor( GMat src1, @@ -20777,11 +23007,12 @@ class CvNative { ); } - late final _gapi_concatHorPtr = - _lookup Function(GMat, GMat, ffi.Pointer)>>( - 'gapi_concatHor'); - late final _gapi_concatHor = - _gapi_concatHorPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_concatHorPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, ffi.Pointer)>>('gapi_concatHor'); + late final _gapi_concatHor = _gapi_concatHorPtr.asFunction< + ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_concatVert( GMat src1, @@ -20795,11 +23026,12 @@ class CvNative { ); } - late final _gapi_concatVertPtr = - _lookup Function(GMat, GMat, ffi.Pointer)>>( - 'gapi_concatVert'); - late final _gapi_concatVert = - _gapi_concatVertPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_concatVertPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, ffi.Pointer)>>('gapi_concatVert'); + late final _gapi_concatVert = _gapi_concatVertPtr.asFunction< + ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_convertTo( GMat src, @@ -20819,10 +23051,11 @@ class CvNative { late final _gapi_convertToPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Int, ffi.Double, ffi.Double, ffi.Pointer)>>('gapi_convertTo'); - late final _gapi_convertTo = _gapi_convertToPtr - .asFunction Function(GMat, int, double, double, ffi.Pointer)>(); + ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, + ffi.Pointer)>>('gapi_convertTo'); + late final _gapi_convertTo = _gapi_convertToPtr.asFunction< + ffi.Pointer Function( + GMat, int, double, double, ffi.Pointer)>(); ffi.Pointer gapi_copy_1( GMat in1, @@ -20834,10 +23067,12 @@ class CvNative { ); } - late final _gapi_copy_1Ptr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_copy_1'); - late final _gapi_copy_1 = - _gapi_copy_1Ptr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_copy_1Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_copy_1'); + late final _gapi_copy_1 = _gapi_copy_1Ptr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_crop( GMat src, @@ -20851,10 +23086,12 @@ class CvNative { ); } - late final _gapi_cropPtr = - _lookup Function(GMat, Rect, ffi.Pointer)>>('gapi_crop'); - late final _gapi_crop = - _gapi_cropPtr.asFunction Function(GMat, Rect, ffi.Pointer)>(); + late final _gapi_cropPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, Rect, ffi.Pointer)>>('gapi_crop'); + late final _gapi_crop = _gapi_cropPtr.asFunction< + ffi.Pointer Function(GMat, Rect, ffi.Pointer)>(); ffi.Pointer gapi_dilate( GMat src, @@ -20878,10 +23115,11 @@ class CvNative { late final _gapi_dilatePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, Mat, Point, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>('gapi_dilate'); - late final _gapi_dilate = _gapi_dilatePtr - .asFunction Function(GMat, Mat, Point, int, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function(GMat, Mat, Point, ffi.Int, ffi.Int, + Scalar, ffi.Pointer)>>('gapi_dilate'); + late final _gapi_dilate = _gapi_dilatePtr.asFunction< + ffi.Pointer Function( + GMat, Mat, Point, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_dilate3x3( GMat src, @@ -20900,11 +23138,12 @@ class CvNative { } late final _gapi_dilate3x3Ptr = _lookup< - ffi - .NativeFunction Function(GMat, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>( - 'gapi_dilate3x3'); - late final _gapi_dilate3x3 = _gapi_dilate3x3Ptr - .asFunction Function(GMat, int, int, Scalar, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(GMat, ffi.Int, ffi.Int, Scalar, + ffi.Pointer)>>('gapi_dilate3x3'); + late final _gapi_dilate3x3 = _gapi_dilate3x3Ptr.asFunction< + ffi.Pointer Function( + GMat, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_div( GMat src1, @@ -20924,9 +23163,11 @@ class CvNative { late final _gapi_divPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, GMat, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_div'); - late final _gapi_div = - _gapi_divPtr.asFunction Function(GMat, GMat, double, int, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, GMat, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_div'); + late final _gapi_div = _gapi_divPtr.asFunction< + ffi.Pointer Function( + GMat, GMat, double, int, ffi.Pointer)>(); ffi.Pointer gapi_divC( GMat src, @@ -20946,10 +23187,11 @@ class CvNative { late final _gapi_divCPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, GScalar, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_divC'); - late final _gapi_divC = _gapi_divCPtr - .asFunction Function(GMat, GScalar, double, int, ffi.Pointer)>(); + ffi.Pointer Function(GMat, GScalar, ffi.Double, ffi.Int, + ffi.Pointer)>>('gapi_divC'); + late final _gapi_divC = _gapi_divCPtr.asFunction< + ffi.Pointer Function( + GMat, GScalar, double, int, ffi.Pointer)>(); ffi.Pointer gapi_divRC( GScalar divident, @@ -20969,10 +23211,11 @@ class CvNative { late final _gapi_divRCPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GScalar, GMat, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_divRC'); - late final _gapi_divRC = _gapi_divRCPtr - .asFunction Function(GScalar, GMat, double, int, ffi.Pointer)>(); + ffi.Pointer Function(GScalar, GMat, ffi.Double, ffi.Int, + ffi.Pointer)>>('gapi_divRC'); + late final _gapi_divRC = _gapi_divRCPtr.asFunction< + ffi.Pointer Function( + GScalar, GMat, double, int, ffi.Pointer)>(); ffi.Pointer gapi_erode( GMat src, @@ -20996,10 +23239,11 @@ class CvNative { late final _gapi_erodePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, Mat, Point, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>('gapi_erode'); - late final _gapi_erode = _gapi_erodePtr - .asFunction Function(GMat, Mat, Point, int, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function(GMat, Mat, Point, ffi.Int, ffi.Int, + Scalar, ffi.Pointer)>>('gapi_erode'); + late final _gapi_erode = _gapi_erodePtr.asFunction< + ffi.Pointer Function( + GMat, Mat, Point, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_erode3x3( GMat src, @@ -21018,11 +23262,12 @@ class CvNative { } late final _gapi_erode3x3Ptr = _lookup< - ffi - .NativeFunction Function(GMat, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>( - 'gapi_erode3x3'); - late final _gapi_erode3x3 = _gapi_erode3x3Ptr - .asFunction Function(GMat, int, int, Scalar, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(GMat, ffi.Int, ffi.Int, Scalar, + ffi.Pointer)>>('gapi_erode3x3'); + late final _gapi_erode3x3 = _gapi_erode3x3Ptr.asFunction< + ffi.Pointer Function( + GMat, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_filter2D( GMat src, @@ -21048,10 +23293,11 @@ class CvNative { late final _gapi_filter2DPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Int, Mat, Point, Scalar, ffi.Int, Scalar, ffi.Pointer)>>('gapi_filter2D'); + ffi.Pointer Function(GMat, ffi.Int, Mat, Point, Scalar, + ffi.Int, Scalar, ffi.Pointer)>>('gapi_filter2D'); late final _gapi_filter2D = _gapi_filter2DPtr.asFunction< - ffi.Pointer Function(GMat, int, Mat, Point, Scalar, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, int, Mat, Point, Scalar, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_findContours( GMat src, @@ -21069,10 +23315,11 @@ class CvNative { late final _gapi_findContoursPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Int, ffi.Int, ffi.Pointer)>>('gapi_findContours'); - late final _gapi_findContours = _gapi_findContoursPtr - .asFunction Function(GMat, int, int, ffi.Pointer)>(); + ffi.Pointer Function(GMat, ffi.Int, ffi.Int, + ffi.Pointer)>>('gapi_findContours'); + late final _gapi_findContours = _gapi_findContoursPtr.asFunction< + ffi.Pointer Function( + GMat, int, int, ffi.Pointer)>(); ffi.Pointer gapi_findContoursH( GMat src, @@ -21092,11 +23339,15 @@ class CvNative { late final _gapi_findContoursHPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Int, ffi.Pointer, + ffi.Pointer Function( + GMat, + ffi.Int, + ffi.Int, + ffi.Pointer, ffi.Pointer)>>('gapi_findContoursH'); late final _gapi_findContoursH = _gapi_findContoursHPtr.asFunction< - ffi.Pointer Function( - GMat, int, int, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(GMat, int, int, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer gapi_findContoursH_1( GMat src, @@ -21118,11 +23369,16 @@ class CvNative { late final _gapi_findContoursH_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Int, GOpaquePoint, ffi.Pointer, + ffi.Pointer Function( + GMat, + ffi.Int, + ffi.Int, + GOpaquePoint, + ffi.Pointer, ffi.Pointer)>>('gapi_findContoursH_1'); late final _gapi_findContoursH_1 = _gapi_findContoursH_1Ptr.asFunction< - ffi.Pointer Function( - GMat, int, int, GOpaquePoint, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(GMat, int, int, GOpaquePoint, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer gapi_findContours_1( GMat src, @@ -21142,10 +23398,11 @@ class CvNative { late final _gapi_findContours_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Int, ffi.Int, GOpaquePoint, ffi.Pointer)>>('gapi_findContours_1'); + ffi.Pointer Function(GMat, ffi.Int, ffi.Int, GOpaquePoint, + ffi.Pointer)>>('gapi_findContours_1'); late final _gapi_findContours_1 = _gapi_findContours_1Ptr.asFunction< - ffi.Pointer Function(GMat, int, int, GOpaquePoint, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, int, int, GOpaquePoint, ffi.Pointer)>(); ffi.Pointer gapi_fitLine2D( GArrayPoint2d src, @@ -21167,11 +23424,16 @@ class CvNative { late final _gapi_fitLine2DPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GArrayPoint2d, ffi.Int, ffi.Double, ffi.Double, ffi.Double, + ffi.Pointer Function( + GArrayPoint2d, + ffi.Int, + ffi.Double, + ffi.Double, + ffi.Double, ffi.Pointer)>>('gapi_fitLine2D'); late final _gapi_fitLine2D = _gapi_fitLine2DPtr.asFunction< - ffi.Pointer Function( - GArrayPoint2d, int, double, double, double, ffi.Pointer)>(); + ffi.Pointer Function(GArrayPoint2d, int, double, double, double, + ffi.Pointer)>(); ffi.Pointer gapi_fitLine2D_1( GArrayPoint2f src, @@ -21193,11 +23455,16 @@ class CvNative { late final _gapi_fitLine2D_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GArrayPoint2f, ffi.Int, ffi.Double, ffi.Double, ffi.Double, + ffi.Pointer Function( + GArrayPoint2f, + ffi.Int, + ffi.Double, + ffi.Double, + ffi.Double, ffi.Pointer)>>('gapi_fitLine2D_1'); late final _gapi_fitLine2D_1 = _gapi_fitLine2D_1Ptr.asFunction< - ffi.Pointer Function( - GArrayPoint2f, int, double, double, double, ffi.Pointer)>(); + ffi.Pointer Function(GArrayPoint2f, int, double, double, double, + ffi.Pointer)>(); ffi.Pointer gapi_fitLine2D_2( GArrayPoint2i src, @@ -21219,11 +23486,16 @@ class CvNative { late final _gapi_fitLine2D_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GArrayPoint2i, ffi.Int, ffi.Double, ffi.Double, ffi.Double, + ffi.Pointer Function( + GArrayPoint2i, + ffi.Int, + ffi.Double, + ffi.Double, + ffi.Double, ffi.Pointer)>>('gapi_fitLine2D_2'); late final _gapi_fitLine2D_2 = _gapi_fitLine2D_2Ptr.asFunction< - ffi.Pointer Function( - GArrayPoint2i, int, double, double, double, ffi.Pointer)>(); + ffi.Pointer Function(GArrayPoint2i, int, double, double, double, + ffi.Pointer)>(); ffi.Pointer gapi_fitLine2D_3( GMat src, @@ -21245,10 +23517,11 @@ class CvNative { late final _gapi_fitLine2D_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, ffi.Double, - ffi.Pointer)>>('gapi_fitLine2D_3'); + ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, + ffi.Double, ffi.Pointer)>>('gapi_fitLine2D_3'); late final _gapi_fitLine2D_3 = _gapi_fitLine2D_3Ptr.asFunction< - ffi.Pointer Function(GMat, int, double, double, double, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, int, double, double, double, ffi.Pointer)>(); ffi.Pointer gapi_fitLine3D_1( GArrayPoint3d src, @@ -21270,11 +23543,16 @@ class CvNative { late final _gapi_fitLine3D_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GArrayPoint3d, ffi.Int, ffi.Double, ffi.Double, ffi.Double, + ffi.Pointer Function( + GArrayPoint3d, + ffi.Int, + ffi.Double, + ffi.Double, + ffi.Double, ffi.Pointer)>>('gapi_fitLine3D_1'); late final _gapi_fitLine3D_1 = _gapi_fitLine3D_1Ptr.asFunction< - ffi.Pointer Function( - GArrayPoint3d, int, double, double, double, ffi.Pointer)>(); + ffi.Pointer Function(GArrayPoint3d, int, double, double, double, + ffi.Pointer)>(); ffi.Pointer gapi_fitLine3D_2( GArrayPoint3f src, @@ -21296,11 +23574,16 @@ class CvNative { late final _gapi_fitLine3D_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GArrayPoint3f, ffi.Int, ffi.Double, ffi.Double, ffi.Double, + ffi.Pointer Function( + GArrayPoint3f, + ffi.Int, + ffi.Double, + ffi.Double, + ffi.Double, ffi.Pointer)>>('gapi_fitLine3D_2'); late final _gapi_fitLine3D_2 = _gapi_fitLine3D_2Ptr.asFunction< - ffi.Pointer Function( - GArrayPoint3f, int, double, double, double, ffi.Pointer)>(); + ffi.Pointer Function(GArrayPoint3f, int, double, double, double, + ffi.Pointer)>(); ffi.Pointer gapi_fitLine3D_3( GArrayPoint3i src, @@ -21322,11 +23605,16 @@ class CvNative { late final _gapi_fitLine3D_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GArrayPoint3i, ffi.Int, ffi.Double, ffi.Double, ffi.Double, + ffi.Pointer Function( + GArrayPoint3i, + ffi.Int, + ffi.Double, + ffi.Double, + ffi.Double, ffi.Pointer)>>('gapi_fitLine3D_3'); late final _gapi_fitLine3D_3 = _gapi_fitLine3D_3Ptr.asFunction< - ffi.Pointer Function( - GArrayPoint3i, int, double, double, double, ffi.Pointer)>(); + ffi.Pointer Function(GArrayPoint3i, int, double, double, double, + ffi.Pointer)>(); ffi.Pointer gapi_fitLine3D_4( GMat src, @@ -21348,10 +23636,11 @@ class CvNative { late final _gapi_fitLine3D_4Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, ffi.Double, - ffi.Pointer)>>('gapi_fitLine3D_4'); + ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, + ffi.Double, ffi.Pointer)>>('gapi_fitLine3D_4'); late final _gapi_fitLine3D_4 = _gapi_fitLine3D_4Ptr.asFunction< - ffi.Pointer Function(GMat, int, double, double, double, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, int, double, double, double, ffi.Pointer)>(); ffi.Pointer gapi_flip( GMat src, @@ -21365,11 +23654,12 @@ class CvNative { ); } - late final _gapi_flipPtr = - _lookup Function(GMat, ffi.Int, ffi.Pointer)>>( - 'gapi_flip'); - late final _gapi_flip = - _gapi_flipPtr.asFunction Function(GMat, int, ffi.Pointer)>(); + late final _gapi_flipPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Int, ffi.Pointer)>>('gapi_flip'); + late final _gapi_flip = _gapi_flipPtr.asFunction< + ffi.Pointer Function(GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_gaussianBlur( GMat src, @@ -21393,10 +23683,11 @@ class CvNative { late final _gapi_gaussianBlurPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, Size, ffi.Double, ffi.Double, ffi.Int, Scalar, ffi.Pointer)>>('gapi_gaussianBlur'); + ffi.Pointer Function(GMat, Size, ffi.Double, ffi.Double, + ffi.Int, Scalar, ffi.Pointer)>>('gapi_gaussianBlur'); late final _gapi_gaussianBlur = _gapi_gaussianBlurPtr.asFunction< - ffi.Pointer Function(GMat, Size, double, double, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, Size, double, double, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_goodFeaturesToTrack( GMat image, @@ -21422,10 +23713,12 @@ class CvNative { late final _gapi_goodFeaturesToTrackPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, Mat, ffi.Int, ffi.Bool, - ffi.Double)>>('gapi_goodFeaturesToTrack'); - late final _gapi_goodFeaturesToTrack = _gapi_goodFeaturesToTrackPtr - .asFunction Function(GMat, int, double, double, Mat, int, bool, double)>(); + ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, + Mat, ffi.Int, ffi.Bool, ffi.Double)>>('gapi_goodFeaturesToTrack'); + late final _gapi_goodFeaturesToTrack = + _gapi_goodFeaturesToTrackPtr.asFunction< + ffi.Pointer Function( + GMat, int, double, double, Mat, int, bool, double)>(); ffi.Pointer gapi_mask( GMat src, @@ -21439,10 +23732,12 @@ class CvNative { ); } - late final _gapi_maskPtr = - _lookup Function(GMat, GMat, ffi.Pointer)>>('gapi_mask'); - late final _gapi_mask = - _gapi_maskPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_maskPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, ffi.Pointer)>>('gapi_mask'); + late final _gapi_mask = _gapi_maskPtr.asFunction< + ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_mean( GMat src, @@ -21454,10 +23749,12 @@ class CvNative { ); } - late final _gapi_meanPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_mean'); - late final _gapi_mean = - _gapi_meanPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_meanPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_mean'); + late final _gapi_mean = _gapi_meanPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_medianBlur( GMat src, @@ -21471,11 +23768,12 @@ class CvNative { ); } - late final _gapi_medianBlurPtr = - _lookup Function(GMat, ffi.Int, ffi.Pointer)>>( - 'gapi_medianBlur'); - late final _gapi_medianBlur = - _gapi_medianBlurPtr.asFunction Function(GMat, int, ffi.Pointer)>(); + late final _gapi_medianBlurPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Int, ffi.Pointer)>>('gapi_medianBlur'); + late final _gapi_medianBlur = _gapi_medianBlurPtr.asFunction< + ffi.Pointer Function(GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_merge3( GMat src1, @@ -21491,11 +23789,12 @@ class CvNative { ); } - late final _gapi_merge3Ptr = - _lookup Function(GMat, GMat, GMat, ffi.Pointer)>>( - 'gapi_merge3'); - late final _gapi_merge3 = - _gapi_merge3Ptr.asFunction Function(GMat, GMat, GMat, ffi.Pointer)>(); + late final _gapi_merge3Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, GMat, ffi.Pointer)>>('gapi_merge3'); + late final _gapi_merge3 = _gapi_merge3Ptr.asFunction< + ffi.Pointer Function(GMat, GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_merge4( GMat src1, @@ -21513,11 +23812,13 @@ class CvNative { ); } - late final _gapi_merge4Ptr = - _lookup Function(GMat, GMat, GMat, GMat, ffi.Pointer)>>( - 'gapi_merge4'); - late final _gapi_merge4 = - _gapi_merge4Ptr.asFunction Function(GMat, GMat, GMat, GMat, ffi.Pointer)>(); + late final _gapi_merge4Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, GMat, GMat, ffi.Pointer)>>('gapi_merge4'); + late final _gapi_merge4 = _gapi_merge4Ptr.asFunction< + ffi.Pointer Function( + GMat, GMat, GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_morphologyEx( GMat src, @@ -21543,10 +23844,11 @@ class CvNative { late final _gapi_morphologyExPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Int, Mat, Point, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>('gapi_morphologyEx'); + ffi.Pointer Function(GMat, ffi.Int, Mat, Point, ffi.Int, + ffi.Int, Scalar, ffi.Pointer)>>('gapi_morphologyEx'); late final _gapi_morphologyEx = _gapi_morphologyExPtr.asFunction< - ffi.Pointer Function(GMat, int, Mat, Point, int, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, int, Mat, Point, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_mul( GMat src1, @@ -21566,9 +23868,11 @@ class CvNative { late final _gapi_mulPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, GMat, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_mul'); - late final _gapi_mul = - _gapi_mulPtr.asFunction Function(GMat, GMat, double, int, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, GMat, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_mul'); + late final _gapi_mul = _gapi_mulPtr.asFunction< + ffi.Pointer Function( + GMat, GMat, double, int, ffi.Pointer)>(); ffi.Pointer gapi_mulC( GMat src, @@ -21584,11 +23888,12 @@ class CvNative { ); } - late final _gapi_mulCPtr = - _lookup Function(GMat, GScalar, ffi.Int, ffi.Pointer)>>( - 'gapi_mulC'); - late final _gapi_mulC = - _gapi_mulCPtr.asFunction Function(GMat, GScalar, int, ffi.Pointer)>(); + late final _gapi_mulCPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GScalar, ffi.Int, ffi.Pointer)>>('gapi_mulC'); + late final _gapi_mulC = _gapi_mulCPtr.asFunction< + ffi.Pointer Function(GMat, GScalar, int, ffi.Pointer)>(); ffi.Pointer gapi_mulC_1( GMat src, @@ -21605,10 +23910,11 @@ class CvNative { } late final _gapi_mulC_1Ptr = _lookup< - ffi.NativeFunction Function(GMat, ffi.Double, ffi.Int, ffi.Pointer)>>( - 'gapi_mulC_1'); - late final _gapi_mulC_1 = - _gapi_mulC_1Ptr.asFunction Function(GMat, double, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_mulC_1'); + late final _gapi_mulC_1 = _gapi_mulC_1Ptr.asFunction< + ffi.Pointer Function(GMat, double, int, ffi.Pointer)>(); ffi.Pointer gapi_mulC_2( GScalar multiplier, @@ -21624,11 +23930,12 @@ class CvNative { ); } - late final _gapi_mulC_2Ptr = - _lookup Function(GScalar, GMat, ffi.Int, ffi.Pointer)>>( - 'gapi_mulC_2'); - late final _gapi_mulC_2 = - _gapi_mulC_2Ptr.asFunction Function(GScalar, GMat, int, ffi.Pointer)>(); + late final _gapi_mulC_2Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GScalar, GMat, ffi.Int, ffi.Pointer)>>('gapi_mulC_2'); + late final _gapi_mulC_2 = _gapi_mulC_2Ptr.asFunction< + ffi.Pointer Function(GScalar, GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_normalize( GMat src, @@ -21650,10 +23957,11 @@ class CvNative { late final _gapi_normalizePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Double, ffi.Double, ffi.Int, ffi.Int, ffi.Pointer)>>('gapi_normalize'); - late final _gapi_normalize = _gapi_normalizePtr - .asFunction Function(GMat, double, double, int, int, ffi.Pointer)>(); + ffi.Pointer Function(GMat, ffi.Double, ffi.Double, ffi.Int, + ffi.Int, ffi.Pointer)>>('gapi_normalize'); + late final _gapi_normalize = _gapi_normalizePtr.asFunction< + ffi.Pointer Function( + GMat, double, double, int, int, ffi.Pointer)>(); ffi.Pointer gapi_phase( GMat x, @@ -21669,11 +23977,12 @@ class CvNative { ); } - late final _gapi_phasePtr = - _lookup Function(GMat, GMat, ffi.Bool, ffi.Pointer)>>( - 'gapi_phase'); - late final _gapi_phase = - _gapi_phasePtr.asFunction Function(GMat, GMat, bool, ffi.Pointer)>(); + late final _gapi_phasePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, ffi.Bool, ffi.Pointer)>>('gapi_phase'); + late final _gapi_phase = _gapi_phasePtr.asFunction< + ffi.Pointer Function(GMat, GMat, bool, ffi.Pointer)>(); ffi.Pointer gapi_polarToCart( GMat magnitude, @@ -21689,11 +23998,12 @@ class CvNative { ); } - late final _gapi_polarToCartPtr = - _lookup Function(GMat, GMat, ffi.Bool, ffi.Pointer)>>( - 'gapi_polarToCart'); - late final _gapi_polarToCart = - _gapi_polarToCartPtr.asFunction Function(GMat, GMat, bool, ffi.Pointer)>(); + late final _gapi_polarToCartPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, ffi.Bool, ffi.Pointer)>>('gapi_polarToCart'); + late final _gapi_polarToCart = _gapi_polarToCartPtr.asFunction< + ffi.Pointer Function(GMat, GMat, bool, ffi.Pointer)>(); ffi.Pointer gapi_remap( GMat src, @@ -21717,10 +24027,11 @@ class CvNative { late final _gapi_remapPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, Mat, Mat, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>('gapi_remap'); - late final _gapi_remap = _gapi_remapPtr - .asFunction Function(GMat, Mat, Mat, int, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function(GMat, Mat, Mat, ffi.Int, ffi.Int, + Scalar, ffi.Pointer)>>('gapi_remap'); + late final _gapi_remap = _gapi_remapPtr.asFunction< + ffi.Pointer Function( + GMat, Mat, Mat, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_resize( GMat src, @@ -21742,10 +24053,11 @@ class CvNative { late final _gapi_resizePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, Size, ffi.Double, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_resize'); - late final _gapi_resize = _gapi_resizePtr - .asFunction Function(GMat, Size, double, double, int, ffi.Pointer)>(); + ffi.Pointer Function(GMat, Size, ffi.Double, ffi.Double, + ffi.Int, ffi.Pointer)>>('gapi_resize'); + late final _gapi_resize = _gapi_resizePtr.asFunction< + ffi.Pointer Function( + GMat, Size, double, double, int, ffi.Pointer)>(); ffi.Pointer gapi_resizeP( GMat src, @@ -21761,11 +24073,12 @@ class CvNative { ); } - late final _gapi_resizePPtr = - _lookup Function(GMat, Size, ffi.Int, ffi.Pointer)>>( - 'gapi_resizeP'); - late final _gapi_resizeP = - _gapi_resizePPtr.asFunction Function(GMat, Size, int, ffi.Pointer)>(); + late final _gapi_resizePPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, Size, ffi.Int, ffi.Pointer)>>('gapi_resizeP'); + late final _gapi_resizeP = _gapi_resizePPtr.asFunction< + ffi.Pointer Function(GMat, Size, int, ffi.Pointer)>(); ffi.Pointer gapi_sepFilter( GMat src, @@ -21793,10 +24106,11 @@ class CvNative { late final _gapi_sepFilterPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Int, Mat, Mat, Point, Scalar, ffi.Int, Scalar, ffi.Pointer)>>('gapi_sepFilter'); + ffi.Pointer Function(GMat, ffi.Int, Mat, Mat, Point, Scalar, + ffi.Int, Scalar, ffi.Pointer)>>('gapi_sepFilter'); late final _gapi_sepFilter = _gapi_sepFilterPtr.asFunction< - ffi.Pointer Function(GMat, int, Mat, Mat, Point, Scalar, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function(GMat, int, Mat, Mat, Point, Scalar, int, + Scalar, ffi.Pointer)>(); ffi.Pointer gapi_split3( GMat src, @@ -21814,10 +24128,11 @@ class CvNative { late final _gapi_split3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('gapi_split3'); + ffi.Pointer Function(GMat, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('gapi_split3'); late final _gapi_split3 = _gapi_split3Ptr.asFunction< - ffi.Pointer Function(GMat, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer gapi_split4( GMat src, @@ -21837,11 +24152,15 @@ class CvNative { late final _gapi_split4Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + GMat, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('gapi_split4'); late final _gapi_split4 = _gapi_split4Ptr.asFunction< - ffi.Pointer Function( - GMat, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(GMat, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer gapi_sqrt( GMat src, @@ -21853,9 +24172,12 @@ class CvNative { ); } - late final _gapi_sqrtPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_sqrt'); - late final _gapi_sqrt = _gapi_sqrtPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_sqrtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_sqrt'); + late final _gapi_sqrt = _gapi_sqrtPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_sub( GMat src1, @@ -21871,11 +24193,12 @@ class CvNative { ); } - late final _gapi_subPtr = - _lookup Function(GMat, GMat, ffi.Int, ffi.Pointer)>>( - 'gapi_sub'); - late final _gapi_sub = - _gapi_subPtr.asFunction Function(GMat, GMat, int, ffi.Pointer)>(); + late final _gapi_subPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, ffi.Int, ffi.Pointer)>>('gapi_sub'); + late final _gapi_sub = _gapi_subPtr.asFunction< + ffi.Pointer Function(GMat, GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_subC( GMat src, @@ -21891,11 +24214,12 @@ class CvNative { ); } - late final _gapi_subCPtr = - _lookup Function(GMat, GScalar, ffi.Int, ffi.Pointer)>>( - 'gapi_subC'); - late final _gapi_subC = - _gapi_subCPtr.asFunction Function(GMat, GScalar, int, ffi.Pointer)>(); + late final _gapi_subCPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GScalar, ffi.Int, ffi.Pointer)>>('gapi_subC'); + late final _gapi_subC = _gapi_subCPtr.asFunction< + ffi.Pointer Function(GMat, GScalar, int, ffi.Pointer)>(); ffi.Pointer gapi_subRC( GScalar c, @@ -21911,11 +24235,12 @@ class CvNative { ); } - late final _gapi_subRCPtr = - _lookup Function(GScalar, GMat, ffi.Int, ffi.Pointer)>>( - 'gapi_subRC'); - late final _gapi_subRC = - _gapi_subRCPtr.asFunction Function(GScalar, GMat, int, ffi.Pointer)>(); + late final _gapi_subRCPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GScalar, GMat, ffi.Int, ffi.Pointer)>>('gapi_subRC'); + late final _gapi_subRC = _gapi_subRCPtr.asFunction< + ffi.Pointer Function(GScalar, GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_warpAffine( GMat src, @@ -21939,10 +24264,11 @@ class CvNative { late final _gapi_warpAffinePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, Mat, Size, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>('gapi_warpAffine'); - late final _gapi_warpAffine = _gapi_warpAffinePtr - .asFunction Function(GMat, Mat, Size, int, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function(GMat, Mat, Size, ffi.Int, ffi.Int, + Scalar, ffi.Pointer)>>('gapi_warpAffine'); + late final _gapi_warpAffine = _gapi_warpAffinePtr.asFunction< + ffi.Pointer Function( + GMat, Mat, Size, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_warpPerspective( GMat src, @@ -21966,10 +24292,11 @@ class CvNative { late final _gapi_warpPerspectivePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, Mat, Size, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>('gapi_warpPerspective'); - late final _gapi_warpPerspective = _gapi_warpPerspectivePtr - .asFunction Function(GMat, Mat, Size, int, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function(GMat, Mat, Size, ffi.Int, ffi.Int, + Scalar, ffi.Pointer)>>('gapi_warpPerspective'); + late final _gapi_warpPerspective = _gapi_warpPerspectivePtr.asFunction< + ffi.Pointer Function( + GMat, Mat, Size, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer getBuildInfo( ffi.Pointer> rval, @@ -21979,11 +24306,12 @@ class CvNative { ); } - late final _getBuildInfoPtr = - _lookup Function(ffi.Pointer>)>>( - 'getBuildInfo'); - late final _getBuildInfo = - _getBuildInfoPtr.asFunction Function(ffi.Pointer>)>(); + late final _getBuildInfoPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer>)>>('getBuildInfo'); + late final _getBuildInfo = _getBuildInfoPtr.asFunction< + ffi.Pointer Function(ffi.Pointer>)>(); ffi.Pointer getOptimalNewCameraMatrix_Async( Mat cameraMatrix, @@ -22007,10 +24335,12 @@ class CvNative { late final _getOptimalNewCameraMatrix_AsyncPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Size, ffi.Double, Size, + ffi.Bool, CvCallback_2)>>('getOptimalNewCameraMatrix_Async'); + late final _getOptimalNewCameraMatrix_Async = + _getOptimalNewCameraMatrix_AsyncPtr.asFunction< ffi.Pointer Function( - Mat, Mat, Size, ffi.Double, Size, ffi.Bool, CvCallback_2)>>('getOptimalNewCameraMatrix_Async'); - late final _getOptimalNewCameraMatrix_Async = _getOptimalNewCameraMatrix_AsyncPtr - .asFunction Function(Mat, Mat, Size, double, Size, bool, CvCallback_2)>(); + Mat, Mat, Size, double, Size, bool, CvCallback_2)>(); ffi.Pointer getPredefinedDictionary( int dictionaryId, @@ -22022,11 +24352,12 @@ class CvNative { ); } - late final _getPredefinedDictionaryPtr = - _lookup Function(ffi.Int, ffi.Pointer)>>( - 'getPredefinedDictionary'); - late final _getPredefinedDictionary = _getPredefinedDictionaryPtr - .asFunction Function(int, ffi.Pointer)>(); + late final _getPredefinedDictionaryPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, + ffi.Pointer)>>('getPredefinedDictionary'); + late final _getPredefinedDictionary = _getPredefinedDictionaryPtr.asFunction< + ffi.Pointer Function(int, ffi.Pointer)>(); ffi.Pointer initUndistortRectifyMap_Async( Mat cameraMatrix, @@ -22049,11 +24380,13 @@ class CvNative { } late final _initUndistortRectifyMap_AsyncPtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, Mat, Mat, Size, ffi.Int, CvCallback_2)>>( - 'initUndistortRectifyMap_Async'); - late final _initUndistortRectifyMap_Async = _initUndistortRectifyMap_AsyncPtr - .asFunction Function(Mat, Mat, Mat, Mat, Size, int, CvCallback_2)>(); + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, Size, ffi.Int, + CvCallback_2)>>('initUndistortRectifyMap_Async'); + late final _initUndistortRectifyMap_Async = + _initUndistortRectifyMap_AsyncPtr.asFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, Size, int, CvCallback_2)>(); ffi.Pointer marrHildrethHashCompare( Mat a, @@ -22073,10 +24406,11 @@ class CvNative { late final _marrHildrethHashComparePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Float, ffi.Float, ffi.Pointer)>>('marrHildrethHashCompare'); - late final _marrHildrethHashCompare = _marrHildrethHashComparePtr - .asFunction Function(Mat, Mat, double, double, ffi.Pointer)>(); + ffi.Pointer Function(Mat, Mat, ffi.Float, ffi.Float, + ffi.Pointer)>>('marrHildrethHashCompare'); + late final _marrHildrethHashCompare = _marrHildrethHashComparePtr.asFunction< + ffi.Pointer Function( + Mat, Mat, double, double, ffi.Pointer)>(); ffi.Pointer marrHildrethHashCompute( Mat inputArr, @@ -22092,11 +24426,12 @@ class CvNative { ); } - late final _marrHildrethHashComputePtr = - _lookup Function(Mat, Mat, ffi.Float, ffi.Float)>>( - 'marrHildrethHashCompute'); - late final _marrHildrethHashCompute = - _marrHildrethHashComputePtr.asFunction Function(Mat, Mat, double, double)>(); + late final _marrHildrethHashComputePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Float, ffi.Float)>>('marrHildrethHashCompute'); + late final _marrHildrethHashCompute = _marrHildrethHashComputePtr + .asFunction Function(Mat, Mat, double, double)>(); ffi.Pointer openCVVersion( ffi.Pointer> rval, @@ -22106,11 +24441,12 @@ class CvNative { ); } - late final _openCVVersionPtr = - _lookup Function(ffi.Pointer>)>>( - 'openCVVersion'); - late final _openCVVersion = - _openCVVersionPtr.asFunction Function(ffi.Pointer>)>(); + late final _openCVVersionPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer>)>>('openCVVersion'); + late final _openCVVersion = _openCVVersionPtr.asFunction< + ffi.Pointer Function(ffi.Pointer>)>(); ffi.Pointer pHashCompare( Mat a, @@ -22124,11 +24460,12 @@ class CvNative { ); } - late final _pHashComparePtr = - _lookup Function(Mat, Mat, ffi.Pointer)>>( - 'pHashCompare'); - late final _pHashCompare = - _pHashComparePtr.asFunction Function(Mat, Mat, ffi.Pointer)>(); + late final _pHashComparePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Pointer)>>('pHashCompare'); + late final _pHashCompare = _pHashComparePtr.asFunction< + ffi.Pointer Function(Mat, Mat, ffi.Pointer)>(); ffi.Pointer pHashCompute( Mat inputArr, @@ -22141,8 +24478,10 @@ class CvNative { } late final _pHashComputePtr = - _lookup Function(Mat, Mat)>>('pHashCompute'); - late final _pHashCompute = _pHashComputePtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'pHashCompute'); + late final _pHashCompute = + _pHashComputePtr.asFunction Function(Mat, Mat)>(); ffi.Pointer radialVarianceHashCompare( Mat a, @@ -22162,10 +24501,12 @@ class CvNative { late final _radialVarianceHashComparePtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Double, ffi.Int, + ffi.Pointer)>>('radialVarianceHashCompare'); + late final _radialVarianceHashCompare = + _radialVarianceHashComparePtr.asFunction< ffi.Pointer Function( - Mat, Mat, ffi.Double, ffi.Int, ffi.Pointer)>>('radialVarianceHashCompare'); - late final _radialVarianceHashCompare = _radialVarianceHashComparePtr - .asFunction Function(Mat, Mat, double, int, ffi.Pointer)>(); + Mat, Mat, double, int, ffi.Pointer)>(); ffi.Pointer radialVarianceHashCompute( Mat inputArr, @@ -22181,11 +24522,12 @@ class CvNative { ); } - late final _radialVarianceHashComputePtr = - _lookup Function(Mat, Mat, ffi.Double, ffi.Int)>>( - 'radialVarianceHashCompute'); - late final _radialVarianceHashCompute = - _radialVarianceHashComputePtr.asFunction Function(Mat, Mat, double, int)>(); + late final _radialVarianceHashComputePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Double, ffi.Int)>>('radialVarianceHashCompute'); + late final _radialVarianceHashCompute = _radialVarianceHashComputePtr + .asFunction Function(Mat, Mat, double, int)>(); void registerErrorCallback( ErrorCallback callback, @@ -22196,8 +24538,10 @@ class CvNative { } late final _registerErrorCallbackPtr = - _lookup>('registerErrorCallback'); - late final _registerErrorCallback = _registerErrorCallbackPtr.asFunction(); + _lookup>( + 'registerErrorCallback'); + late final _registerErrorCallback = + _registerErrorCallbackPtr.asFunction(); ffi.Pointer undistortPoints_Async( Mat distorted, @@ -22221,10 +24565,11 @@ class CvNative { late final _undistortPoints_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, Mat, TermCriteria, CvCallback_1)>>('undistortPoints_Async'); - late final _undistortPoints_Async = _undistortPoints_AsyncPtr - .asFunction Function(Mat, Mat, Mat, Mat, Mat, TermCriteria, CvCallback_1)>(); + ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, TermCriteria, + CvCallback_1)>>('undistortPoints_Async'); + late final _undistortPoints_Async = _undistortPoints_AsyncPtr.asFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, Mat, TermCriteria, CvCallback_1)>(); ffi.Pointer undistort_Async( Mat src, @@ -22242,11 +24587,12 @@ class CvNative { ); } - late final _undistort_AsyncPtr = - _lookup Function(Mat, Mat, Mat, Mat, CvCallback_1)>>( - 'undistort_Async'); - late final _undistort_Async = - _undistort_AsyncPtr.asFunction Function(Mat, Mat, Mat, Mat, CvCallback_1)>(); + late final _undistort_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, CvCallback_1)>>('undistort_Async'); + late final _undistort_Async = _undistort_AsyncPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, CvCallback_1)>(); late final addresses = _SymbolAddresses(this); } @@ -22254,22 +24600,25 @@ class CvNative { class _SymbolAddresses { final CvNative _library; _SymbolAddresses(this._library); - ffi.Pointer> get AKAZE_Close => _library._AKAZE_ClosePtr; + ffi.Pointer> + get AKAZE_Close => _library._AKAZE_ClosePtr; ffi.Pointer> get AgastFeatureDetector_Close => _library._AgastFeatureDetector_ClosePtr; - ffi.Pointer> get AlignMTB_Close => - _library._AlignMTB_ClosePtr; + ffi.Pointer> + get AlignMTB_Close => _library._AlignMTB_ClosePtr; ffi.Pointer> - get ArucoDetectorParameters_Close => _library._ArucoDetectorParameters_ClosePtr; - ffi.Pointer> get ArucoDetector_Close => - _library._ArucoDetector_ClosePtr; - ffi.Pointer> get ArucoDictionary_Close => - _library._ArucoDictionary_ClosePtr; - ffi.Pointer> get AsyncArray_Close => - _library._AsyncArray_ClosePtr; - ffi.Pointer> get BFMatcher_Close => - _library._BFMatcher_ClosePtr; - ffi.Pointer> get BRISK_Close => _library._BRISK_ClosePtr; + get ArucoDetectorParameters_Close => + _library._ArucoDetectorParameters_ClosePtr; + ffi.Pointer> + get ArucoDetector_Close => _library._ArucoDetector_ClosePtr; + ffi.Pointer> + get ArucoDictionary_Close => _library._ArucoDictionary_ClosePtr; + ffi.Pointer> + get AsyncArray_Close => _library._AsyncArray_ClosePtr; + ffi.Pointer> + get BFMatcher_Close => _library._BFMatcher_ClosePtr; + ffi.Pointer> + get BRISK_Close => _library._BRISK_ClosePtr; ffi.Pointer> get BackgroundSubtractorKNN_Close => _library._BackgroundSubtractorKNN_ClosePtr; @@ -22301,9 +24650,9 @@ class _SymbolAddresses { _library._KAZE_ClosePtr; ffi.Pointer> get KalmanFilter_Close => _library._KalmanFilter_ClosePtr; - ffi.Pointer> + ffi.Pointer> get Layer_Close => _library._Layer_ClosePtr; - ffi.Pointer> + ffi.Pointer> get Layer_Close_Async => _library._Layer_Close_AsyncPtr; ffi.Pointer> get MSER_Close => _library._MSER_ClosePtr; @@ -22480,23 +24829,33 @@ typedef CvCallback_1 = ffi.Pointer>; typedef CvCallback_1Function = ffi.Void Function(ffi.Pointer); typedef DartCvCallback_1Function = void Function(ffi.Pointer); typedef CvCallback_2 = ffi.Pointer>; -typedef CvCallback_2Function = ffi.Void Function(ffi.Pointer, ffi.Pointer); -typedef DartCvCallback_2Function = void Function(ffi.Pointer, ffi.Pointer); +typedef CvCallback_2Function = ffi.Void Function( + ffi.Pointer, ffi.Pointer); +typedef DartCvCallback_2Function = void Function( + ffi.Pointer, ffi.Pointer); typedef CvCallback_3 = ffi.Pointer>; typedef CvCallback_3Function = ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer); typedef DartCvCallback_3Function = void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer); typedef CvCallback_4 = ffi.Pointer>; -typedef CvCallback_4Function = ffi.Void Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer); -typedef DartCvCallback_4Function = void Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer); -typedef CvCallback_5 = ffi.Pointer>; -typedef CvCallback_5Function = ffi.Void Function(ffi.Pointer, ffi.Pointer, +typedef CvCallback_4Function = ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer); -typedef DartCvCallback_5Function = void Function(ffi.Pointer, ffi.Pointer, +typedef DartCvCallback_4Function = void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer); +typedef CvCallback_5 = ffi.Pointer>; +typedef CvCallback_5Function = ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer); +typedef DartCvCallback_5Function = void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer); final class CvStatus extends ffi.Struct { @ffi.Int() @@ -22536,8 +24895,13 @@ typedef ErrorCallbackFunction = ffi.Void Function( ffi.Pointer file_name, ffi.Int line, ffi.Pointer userdata); -typedef DartErrorCallbackFunction = void Function(int status, ffi.Pointer func_name, - ffi.Pointer err_msg, ffi.Pointer file_name, int line, ffi.Pointer userdata); +typedef DartErrorCallbackFunction = void Function( + int status, + ffi.Pointer func_name, + ffi.Pointer err_msg, + ffi.Pointer file_name, + int line, + ffi.Pointer userdata); final class FaceDetectorYN extends ffi.Struct { external ffi.Pointer> ptr; diff --git a/src/objdetect/objdetect_async.cpp b/src/objdetect/objdetect_async.cpp index e5a36274..3bc8a89f 100644 --- a/src/objdetect/objdetect_async.cpp +++ b/src/objdetect/objdetect_async.cpp @@ -169,10 +169,10 @@ CvStatus *HOG_GetDefaultPeopleDetector_Async(CvCallback_1 callback) { END_WRAP } -CvStatus *HOGDescriptor_SetSVMDetector_Async(HOGDescriptor self, VecFloat det, CvCallback_1 callback) { +CvStatus *HOGDescriptor_SetSVMDetector_Async(HOGDescriptor self, VecFloat det, CvCallback_0 callback) { BEGIN_WRAP self.ptr->setSVMDetector(*det.ptr); - callback(new int(0)); + callback(); END_WRAP } @@ -286,24 +286,24 @@ CvStatus *QRCodeDetector_DetectAndDecodeMulti_Async(QRCodeDetector self, Mat inp END_WRAP } -CvStatus *QRCodeDetector_setEpsX_Async(QRCodeDetector self, double epsX, CvCallback_1 callback) { +CvStatus *QRCodeDetector_setEpsX_Async(QRCodeDetector self, double epsX, CvCallback_0 callback) { BEGIN_WRAP self.ptr->setEpsX(epsX); - callback(new int(0)); + callback(); END_WRAP } -CvStatus *QRCodeDetector_setEpsY_Async(QRCodeDetector self, double epsY, CvCallback_1 callback) { +CvStatus *QRCodeDetector_setEpsY_Async(QRCodeDetector self, double epsY, CvCallback_0 callback) { BEGIN_WRAP self.ptr->setEpsY(epsY); - callback(new int(0)); + callback(); END_WRAP } -CvStatus *QRCodeDetector_setUseAlignmentMarkers_Async(QRCodeDetector self, bool useAlignmentMarkers, CvCallback_1 callback) { +CvStatus *QRCodeDetector_setUseAlignmentMarkers_Async(QRCodeDetector self, bool useAlignmentMarkers, CvCallback_0 callback) { BEGIN_WRAP self.ptr->setUseAlignmentMarkers(useAlignmentMarkers); - callback(new int(0)); + callback(); END_WRAP } @@ -328,10 +328,10 @@ CvStatus *FaceDetectorYN_Detect_Async(FaceDetectorYN self, Mat img, CvCallback_1 END_WRAP } -CvStatus *FaceDetectorYN_SetInputSize_Async(FaceDetectorYN self, Size input_size, CvCallback_1 callback) { +CvStatus *FaceDetectorYN_SetInputSize_Async(FaceDetectorYN self, Size input_size, CvCallback_0 callback) { BEGIN_WRAP (*self.ptr)->setInputSize(cv::Size(input_size.width, input_size.height)); - callback(new int(0)); + callback(); END_WRAP } @@ -342,10 +342,10 @@ CvStatus *FaceDetectorYN_GetInputSize_Async(FaceDetectorYN self, CvCallback_1 ca END_WRAP } -CvStatus *FaceDetectorYN_SetScoreThreshold_Async(FaceDetectorYN self, float score_threshold, CvCallback_1 callback) { +CvStatus *FaceDetectorYN_SetScoreThreshold_Async(FaceDetectorYN self, float score_threshold, CvCallback_0 callback) { BEGIN_WRAP (*self.ptr)->setScoreThreshold(score_threshold); - callback(new int(0)); + callback(); END_WRAP } @@ -356,10 +356,10 @@ CvStatus *FaceDetectorYN_GetScoreThreshold_Async(FaceDetectorYN self, CvCallback END_WRAP } -CvStatus *FaceDetectorYN_SetNMSThreshold_Async(FaceDetectorYN self, float nms_threshold, CvCallback_1 callback) { +CvStatus *FaceDetectorYN_SetNMSThreshold_Async(FaceDetectorYN self, float nms_threshold, CvCallback_0 callback) { BEGIN_WRAP (*self.ptr)->setNMSThreshold(nms_threshold); - callback(new int(0)); + callback(); END_WRAP } @@ -370,10 +370,10 @@ CvStatus *FaceDetectorYN_GetNMSThreshold_Async(FaceDetectorYN self, CvCallback_1 END_WRAP } -CvStatus *FaceDetectorYN_SetTopK_Async(FaceDetectorYN self, int top_k, CvCallback_1 callback) { +CvStatus *FaceDetectorYN_SetTopK_Async(FaceDetectorYN self, int top_k, CvCallback_0 callback) { BEGIN_WRAP (*self.ptr)->setTopK(top_k); - callback(new int(0)); + callback(); END_WRAP } diff --git a/src/objdetect/objdetect_async.h b/src/objdetect/objdetect_async.h index 9743fd0d..d257cf2a 100644 --- a/src/objdetect/objdetect_async.h +++ b/src/objdetect/objdetect_async.h @@ -50,7 +50,7 @@ CvStatus *HOGDescriptor_DetectMultiScaleWithParams_Async(HOGDescriptor self, Mat CvStatus *HOGDescriptor_Compute_Async(HOGDescriptor self, Mat img, Size winStride, Size padding, CvCallback_2 callback); CvStatus *HOGDescriptor_computeGradient_Async(HOGDescriptor self, Mat img, Mat grad, Mat angleOfs, Size paddingTL, Size paddingBR, CvCallback_0 callback); CvStatus *HOG_GetDefaultPeopleDetector_Async(CvCallback_1 callback); -CvStatus *HOGDescriptor_SetSVMDetector_Async(HOGDescriptor self, VecFloat det, CvCallback_1 callback); +CvStatus *HOGDescriptor_SetSVMDetector_Async(HOGDescriptor self, VecFloat det, CvCallback_0 callback); CvStatus *HOGDescriptor_getDaimlerPeopleDetector_Async(CvCallback_1 callback); CvStatus *HOGDescriptor_getDescriptorSize_Async(HOGDescriptor self, CvCallback_1 callback); CvStatus *HOGDescriptor_getWinSigma_Async(HOGDescriptor self, CvCallback_1 callback); @@ -66,21 +66,21 @@ CvStatus *QRCodeDetector_decodeCurved_Async(QRCodeDetector self, Mat img, VecPoi CvStatus *QRCodeDetector_detectAndDecodeCurved_Async(QRCodeDetector self, Mat img, CvCallback_3 callback); CvStatus *QRCodeDetector_DetectMulti_Async(QRCodeDetector self, Mat input, CvCallback_2 callback); CvStatus *QRCodeDetector_DetectAndDecodeMulti_Async(QRCodeDetector self, Mat input, CvCallback_4 callback); -CvStatus *QRCodeDetector_setEpsX_Async(QRCodeDetector self, double epsX, CvCallback_1 callback); -CvStatus *QRCodeDetector_setEpsY_Async(QRCodeDetector self, double epsY, CvCallback_1 callback); -CvStatus *QRCodeDetector_setUseAlignmentMarkers_Async(QRCodeDetector self, bool useAlignmentMarkers, CvCallback_1 callback); +CvStatus *QRCodeDetector_setEpsX_Async(QRCodeDetector self, double epsX, CvCallback_0 callback); +CvStatus *QRCodeDetector_setEpsY_Async(QRCodeDetector self, double epsY, CvCallback_0 callback); +CvStatus *QRCodeDetector_setUseAlignmentMarkers_Async(QRCodeDetector self, bool useAlignmentMarkers, CvCallback_0 callback); // FaceDetectorYN CvStatus *FaceDetectorYN_New_Async(const char *model, const char *config, Size input_size, float score_threshold, float nms_threshold, int top_k, int backend_id, int target_id, CvCallback_1 callback); CvStatus *FaceDetectorYN_NewFromBuffer_Async(const char *framework, VecUChar buffer, VecUChar buffer_config, Size input_size, float score_threshold, float nms_threshold, int top_k, int backend_id, int target_id, CvCallback_1 callback); CvStatus *FaceDetectorYN_Detect_Async(FaceDetectorYN self, Mat img, CvCallback_1 callback); -CvStatus *FaceDetectorYN_SetInputSize_Async(FaceDetectorYN self, Size input_size, CvCallback_1 callback); +CvStatus *FaceDetectorYN_SetInputSize_Async(FaceDetectorYN self, Size input_size, CvCallback_0 callback); CvStatus *FaceDetectorYN_GetInputSize_Async(FaceDetectorYN self, CvCallback_1 callback); -CvStatus *FaceDetectorYN_SetScoreThreshold_Async(FaceDetectorYN self, float score_threshold, CvCallback_1 callback); +CvStatus *FaceDetectorYN_SetScoreThreshold_Async(FaceDetectorYN self, float score_threshold, CvCallback_0 callback); CvStatus *FaceDetectorYN_GetScoreThreshold_Async(FaceDetectorYN self, CvCallback_1 callback); -CvStatus *FaceDetectorYN_SetNMSThreshold_Async(FaceDetectorYN self, float nms_threshold, CvCallback_1 callback); +CvStatus *FaceDetectorYN_SetNMSThreshold_Async(FaceDetectorYN self, float nms_threshold, CvCallback_0 callback); CvStatus *FaceDetectorYN_GetNMSThreshold_Async(FaceDetectorYN self, CvCallback_1 callback); -CvStatus *FaceDetectorYN_SetTopK_Async(FaceDetectorYN self, int top_k, CvCallback_1 callback); +CvStatus *FaceDetectorYN_SetTopK_Async(FaceDetectorYN self, int top_k, CvCallback_0 callback); CvStatus *FaceDetectorYN_GetTopK_Async(FaceDetectorYN self, CvCallback_1 callback); // FaceRecognizerSF From 03b4a8a1e5e94a4fd3972de8ed7aeeb924335b4f Mon Sep 17 00:00:00 2001 From: Abdelaziz Mahdy Date: Thu, 27 Jun 2024 11:46:36 +0300 Subject: [PATCH 12/21] formatting --- lib/src/objdetect/objdetect_async.dart | 142 +- lib/src/opencv.g.dart | 11872 +++++++++-------------- 2 files changed, 4786 insertions(+), 7228 deletions(-) diff --git a/lib/src/objdetect/objdetect_async.dart b/lib/src/objdetect/objdetect_async.dart index 5ef027bd..beddaba8 100644 --- a/lib/src/objdetect/objdetect_async.dart +++ b/lib/src/objdetect/objdetect_async.dart @@ -12,8 +12,7 @@ import '../core/vec.dart'; import '../opencv.g.dart' as cvg; class CascadeClassifier extends CvStruct { - CascadeClassifier._(cvg.CascadeClassifierPtr ptr, [bool attach = true]) - : super.fromPointer(ptr) { + CascadeClassifier._(cvg.CascadeClassifierPtr ptr, [bool attach = true]) : super.fromPointer(ptr) { if (attach) { finalizer.attach(this, ptr.cast(), detach: this); } @@ -35,9 +34,8 @@ class CascadeClassifier extends CvStruct { Future loadAsync(String name) async { final cname = name.toNativeUtf8().cast(); - final rval = cvRunAsync( - (callback) => CFFI.CascadeClassifier_Load_Async(ref, cname, callback), - (c, p) { + final rval = + cvRunAsync((callback) => CFFI.CascadeClassifier_Load_Async(ref, cname, callback), (c, p) { final rval = p.cast().value != 0; calloc.free(p); return c.complete(rval); @@ -91,17 +89,13 @@ class CascadeClassifier extends CvStruct { callback, ), (c, ret, pnums) { return c.complete( - ( - VecRect.fromPointer(ret.cast()), - VecInt.fromPointer(pnums.cast()) - ), + (VecRect.fromPointer(ret.cast()), VecInt.fromPointer(pnums.cast())), ); }); return rval; } - Future<(VecRect objects, VecInt rejectLevels, VecDouble levelWeights)> - detectMultiScale3Async( + Future<(VecRect objects, VecInt rejectLevels, VecDouble levelWeights)> detectMultiScale3Async( InputArray image, { double scaleFactor = 1.1, int minNeighbors = 3, @@ -134,9 +128,7 @@ class CascadeClassifier extends CvStruct { } Future emptyAsync() async { - final rval = cvRunAsync( - (callback) => CFFI.CascadeClassifier_Empty_Async(ref, callback), - (c, p) { + final rval = cvRunAsync((callback) => CFFI.CascadeClassifier_Empty_Async(ref, callback), (c, p) { final rval = p.cast().value; calloc.free(p); return c.complete(rval); @@ -145,9 +137,8 @@ class CascadeClassifier extends CvStruct { } Future getFeatureTypeAsync() async { - final rval = cvRunAsync( - (callback) => - CFFI.CascadeClassifier_getFeatureType_Async(ref, callback), (c, p) { + final rval = + cvRunAsync((callback) => CFFI.CascadeClassifier_getFeatureType_Async(ref, callback), (c, p) { final rval = p.cast().value; calloc.free(p); @@ -158,9 +149,7 @@ class CascadeClassifier extends CvStruct { Future<(int, int)> getOriginalWindowSizeAsync() async { final rval = cvRunAsync<(int, int)>( - (callback) => - CFFI.CascadeClassifier_getOriginalWindowSize_Async(ref, callback), - (c, p) { + (callback) => CFFI.CascadeClassifier_getOriginalWindowSize_Async(ref, callback), (c, p) { final size = p.cast().ref; final ret = (size.width, size.height); return c.complete(ret); @@ -170,9 +159,7 @@ class CascadeClassifier extends CvStruct { Future isOldFormatCascadeAsync() async { final rval = cvRunAsync( - (callback) => - CFFI.CascadeClassifier_isOldFormatCascade_Async(ref, callback), - (c, p) { + (callback) => CFFI.CascadeClassifier_isOldFormatCascade_Async(ref, callback), (c, p) { final rval = p.cast().value; calloc.free(p); return c.complete(rval); @@ -196,8 +183,7 @@ class CascadeClassifier extends CvStruct { } class HOGDescriptor extends CvStruct { - HOGDescriptor._(cvg.HOGDescriptorPtr ptr, [bool attach = true]) - : super.fromPointer(ptr) { + HOGDescriptor._(cvg.HOGDescriptorPtr ptr, [bool attach = true]) : super.fromPointer(ptr) { if (attach) { finalizer.attach(this, ptr.cast(), detach: this); } @@ -219,9 +205,7 @@ class HOGDescriptor extends CvStruct { Future loadAsync(String name) async { final cname = name.toNativeUtf8().cast(); - final rval = cvRunAsync( - (callback) => CFFI.HOGDescriptor_Load_Async(ref, cname, callback), - (c, p) { + final rval = cvRunAsync((callback) => CFFI.HOGDescriptor_Load_Async(ref, cname, callback), (c, p) { final rval = p.cast().value; calloc.free(p); @@ -276,8 +260,7 @@ class HOGDescriptor extends CvStruct { return rval; } - Future<(VecPoint foundLocations, VecDouble weights, VecPoint searchLocations)> - detect2Async( + Future<(VecPoint foundLocations, VecDouble weights, VecPoint searchLocations)> detect2Async( InputArray img, { double hitThreshold = 0, (int, int) winStride = (0, 0), @@ -356,25 +339,22 @@ class HOGDescriptor extends CvStruct { } static Future getDefaultPeopleDetectorAsync() async { - final rval = - cvRunAsync(CFFI.HOG_GetDefaultPeopleDetector_Async, (c, v) { + final rval = cvRunAsync(CFFI.HOG_GetDefaultPeopleDetector_Async, (c, v) { return c.complete(VecFloat.fromPointer(v.cast())); }); return rval; } static Future getDaimlerPeopleDetectorAsync() async { - final rval = cvRunAsync( - CFFI.HOGDescriptor_getDaimlerPeopleDetector_Async, (c, v) { + final rval = cvRunAsync(CFFI.HOGDescriptor_getDaimlerPeopleDetector_Async, (c, v) { return c.complete(VecFloat.fromPointer(v.cast())); }); return rval; } Future getDescriptorSizeAsync() async { - final rval = cvRunAsync( - (callback) => CFFI.HOGDescriptor_getDescriptorSize_Async(ref, callback), - (c, p) { + final rval = + cvRunAsync((callback) => CFFI.HOGDescriptor_getDescriptorSize_Async(ref, callback), (c, p) { final rval = p.cast().value; calloc.free(p); return c.complete(rval); @@ -383,9 +363,8 @@ class HOGDescriptor extends CvStruct { } Future getWinSigmaAsync() async { - final rval = cvRunAsync( - (callback) => CFFI.HOGDescriptor_getWinSigma_Async(ref, callback), - (c, p) { + final rval = + cvRunAsync((callback) => CFFI.HOGDescriptor_getWinSigma_Async(ref, callback), (c, p) { final rval = p.cast().value; calloc.free(p); return c.complete(rval); @@ -414,9 +393,7 @@ class HOGDescriptor extends CvStruct { } Future setSVMDetectorAsync(VecFloat det) async { - await cvRunAsync0( - (callback) => - CFFI.HOGDescriptor_SetSVMDetector_Async(ref, det.ref, callback), + await cvRunAsync0((callback) => CFFI.HOGDescriptor_SetSVMDetector_Async(ref, det.ref, callback), (c) { return c.complete(); }); @@ -424,8 +401,7 @@ class HOGDescriptor extends CvStruct { @override cvg.HOGDescriptor get ref => ptr.ref; - static final finalizer = - OcvFinalizer(CFFI.addresses.HOGDescriptor_Close); + static final finalizer = OcvFinalizer(CFFI.addresses.HOGDescriptor_Close); void dispose() { finalizer.detach(this); @@ -442,17 +418,14 @@ Future groupRectanglesAsync( double eps, ) async { final rval = cvRunAsync0( - (callback) => - CFFI.GroupRectangles_Async(rects.ref, groupThreshold, eps, callback), - (c) { + (callback) => CFFI.GroupRectangles_Async(rects.ref, groupThreshold, eps, callback), (c) { return c.complete(rects); }); return rval; } class QRCodeDetector extends CvStruct { - QRCodeDetector._(cvg.QRCodeDetectorPtr ptr, [bool attach = true]) - : super.fromPointer(ptr) { + QRCodeDetector._(cvg.QRCodeDetectorPtr ptr, [bool attach = true]) : super.fromPointer(ptr) { if (attach) { finalizer.attach(this, ptr.cast(), detach: this); } @@ -477,17 +450,13 @@ class QRCodeDetector extends CvStruct { callback, ), (c, rval, straightQRcode) { return c.complete( - ( - rval.cast().toDartString(), - Mat.fromPointer(straightQRcode.cast()) - ), + (rval.cast().toDartString(), Mat.fromPointer(straightQRcode.cast())), ); }); return rval; } - Future<(String rval, VecPoint points, Mat straightQRcode)> - detectAndDecodeCurvedAsync( + Future<(String rval, VecPoint points, Mat straightQRcode)> detectAndDecodeCurvedAsync( InputArray img, { VecPoint? points, Mat? straightQRcode, @@ -515,8 +484,7 @@ class QRCodeDetector extends CvStruct { OutputArray? straightCode, }) async { final rval = cvRunAsync3<(String, VecPoint, Mat)>( - (callback) => - CFFI.QRCodeDetector_DetectAndDecode_Async(ref, img.ref, callback), + (callback) => CFFI.QRCodeDetector_DetectAndDecode_Async(ref, img.ref, callback), (c, ret, points, straightCode) { return c.complete( ( @@ -534,9 +502,7 @@ class QRCodeDetector extends CvStruct { VecPoint? points, }) async { final rval = cvRunAsync2<(bool, VecPoint)>( - (callback) => - CFFI.QRCodeDetector_Detect_Async(ref, input.ref, callback), - (c, ret, points) { + (callback) => CFFI.QRCodeDetector_Detect_Async(ref, input.ref, callback), (c, ret, points) { final retValue = ret.cast().value; calloc.free(ret); return c.complete( @@ -570,13 +536,10 @@ class QRCodeDetector extends CvStruct { VecPoint? points, }) async { final rval = cvRunAsync2<(bool, VecPoint)>( - (callback) => - CFFI.QRCodeDetector_DetectMulti_Async(ref, img.ref, callback), - (c, ret, points) { + (callback) => CFFI.QRCodeDetector_DetectMulti_Async(ref, img.ref, callback), (c, ret, points) { final retValue = ret.cast().value; calloc.free(ret); - return c.complete( - (retValue, VecPoint.fromPointer(points.cast()))); + return c.complete((retValue, VecPoint.fromPointer(points.cast()))); }); return rval; } @@ -604,17 +567,13 @@ class QRCodeDetector extends CvStruct { } Future setEpsXAsync(double epsX) async { - await cvRunAsync0( - (callback) => CFFI.QRCodeDetector_setEpsX_Async(ref, epsX, callback), - (c) { + await cvRunAsync0((callback) => CFFI.QRCodeDetector_setEpsX_Async(ref, epsX, callback), (c) { return c.complete(); }); } Future setEpsYAsync(double epsY) async { - await cvRunAsync0( - (callback) => CFFI.QRCodeDetector_setEpsY_Async(ref, epsY, callback), - (c) { + await cvRunAsync0((callback) => CFFI.QRCodeDetector_setEpsY_Async(ref, epsY, callback), (c) { return c.complete(); }); } @@ -632,8 +591,7 @@ class QRCodeDetector extends CvStruct { @override cvg.QRCodeDetector get ref => ptr.ref; - static final finalizer = - OcvFinalizer(CFFI.addresses.QRCodeDetector_Close); + static final finalizer = OcvFinalizer(CFFI.addresses.QRCodeDetector_Close); void dispose() { finalizer.detach(this); @@ -645,8 +603,7 @@ class QRCodeDetector extends CvStruct { } class FaceDetectorYN extends CvStruct { - FaceDetectorYN._(cvg.FaceDetectorYNPtr ptr, [bool attach = true]) - : super.fromPointer(ptr) { + FaceDetectorYN._(cvg.FaceDetectorYNPtr ptr, [bool attach = true]) : super.fromPointer(ptr) { if (attach) { finalizer.attach(this, ptr.cast(), detach: this); } @@ -715,9 +672,8 @@ class FaceDetectorYN extends CvStruct { } Future<(int, int)> getInputSizeAsync() async { - final rval = cvRunAsync<(int, int)>( - (callback) => CFFI.FaceDetectorYN_GetInputSize_Async(ref, callback), - (c, p) { + final rval = + cvRunAsync<(int, int)>((callback) => CFFI.FaceDetectorYN_GetInputSize_Async(ref, callback), (c, p) { final size = p.cast().ref; final ret = (size.width, size.height); return c.complete(ret); @@ -726,9 +682,8 @@ class FaceDetectorYN extends CvStruct { } Future getScoreThresholdAsync() async { - final rval = cvRunAsync( - (callback) => - CFFI.FaceDetectorYN_GetScoreThreshold_Async(ref, callback), (c, p) { + final rval = + cvRunAsync((callback) => CFFI.FaceDetectorYN_GetScoreThreshold_Async(ref, callback), (c, p) { final rval = p.cast().value; calloc.free(p); return c.complete(rval); @@ -737,9 +692,8 @@ class FaceDetectorYN extends CvStruct { } Future getNmsThresholdAsync() async { - final rval = cvRunAsync( - (callback) => CFFI.FaceDetectorYN_GetNMSThreshold_Async(ref, callback), - (c, p) { + final rval = + cvRunAsync((callback) => CFFI.FaceDetectorYN_GetNMSThreshold_Async(ref, callback), (c, p) { final rval = p.cast().value; calloc.free(p); return c.complete(rval); @@ -748,8 +702,7 @@ class FaceDetectorYN extends CvStruct { } Future getTopKAsync() async { - final rval = cvRunAsync( - (callback) => CFFI.FaceDetectorYN_GetTopK_Async(ref, callback), (c, p) { + final rval = cvRunAsync((callback) => CFFI.FaceDetectorYN_GetTopK_Async(ref, callback), (c, p) { final rval = p.cast().value; calloc.free(p); return c.complete(rval); @@ -758,9 +711,8 @@ class FaceDetectorYN extends CvStruct { } Future detectAsync(Mat image) async { - final rval = cvRunAsync( - (callback) => - CFFI.FaceDetectorYN_Detect_Async(ref, image.ref, callback), (c, p) { + final rval = + cvRunAsync((callback) => CFFI.FaceDetectorYN_Detect_Async(ref, image.ref, callback), (c, p) { return c.complete(Mat.fromPointer(p.cast())); }); return rval; @@ -800,17 +752,14 @@ class FaceDetectorYN extends CvStruct { } Future setTopKAsync(int topK) async { - await cvRunAsync0( - (callback) => CFFI.FaceDetectorYN_SetTopK_Async(ref, topK, callback), - (c) { + await cvRunAsync0((callback) => CFFI.FaceDetectorYN_SetTopK_Async(ref, topK, callback), (c) { return c.complete(); }); } @override cvg.FaceDetectorYN get ref => ptr.ref; - static final finalizer = - OcvFinalizer(CFFI.addresses.FaceDetectorYN_Close); + static final finalizer = OcvFinalizer(CFFI.addresses.FaceDetectorYN_Close); void dispose() { finalizer.detach(this); @@ -822,8 +771,7 @@ class FaceDetectorYN extends CvStruct { } class FaceRecognizerSF extends CvStruct { - FaceRecognizerSF._(cvg.FaceRecognizerSFPtr ptr, [bool attach = true]) - : super.fromPointer(ptr) { + FaceRecognizerSF._(cvg.FaceRecognizerSFPtr ptr, [bool attach = true]) : super.fromPointer(ptr) { if (attach) { finalizer.attach(this, ptr.cast(), detach: this); } diff --git a/lib/src/opencv.g.dart b/lib/src/opencv.g.dart index f7bc1683..98ae9d21 100644 --- a/lib/src/opencv.g.dart +++ b/lib/src/opencv.g.dart @@ -16,16 +16,13 @@ import 'dart:ffi' as ffi; /// class CvNative { /// Holds the symbol lookup function. - final ffi.Pointer Function(String symbolName) - _lookup; + final ffi.Pointer Function(String symbolName) _lookup; /// The symbols are looked up in [dynamicLibrary]. CvNative(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; /// The symbols are looked up with [lookup]. - CvNative.fromLookup( - ffi.Pointer Function(String symbolName) - lookup) + CvNative.fromLookup(ffi.Pointer Function(String symbolName) lookup) : _lookup = lookup; void AKAZE_Close( @@ -36,10 +33,8 @@ class CvNative { ); } - late final _AKAZE_ClosePtr = - _lookup>('AKAZE_Close'); - late final _AKAZE_Close = - _AKAZE_ClosePtr.asFunction(); + late final _AKAZE_ClosePtr = _lookup>('AKAZE_Close'); + late final _AKAZE_Close = _AKAZE_ClosePtr.asFunction(); ffi.Pointer AKAZE_Create( ffi.Pointer rval, @@ -49,11 +44,10 @@ class CvNative { ); } - late final _AKAZE_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('AKAZE_Create'); - late final _AKAZE_Create = _AKAZE_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _AKAZE_CreatePtr = + _lookup Function(ffi.Pointer)>>('AKAZE_Create'); + late final _AKAZE_Create = + _AKAZE_CreatePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer AKAZE_Detect( AKAZE a, @@ -67,12 +61,11 @@ class CvNative { ); } - late final _AKAZE_DetectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - AKAZE, Mat, ffi.Pointer)>>('AKAZE_Detect'); - late final _AKAZE_Detect = _AKAZE_DetectPtr.asFunction< - ffi.Pointer Function(AKAZE, Mat, ffi.Pointer)>(); + late final _AKAZE_DetectPtr = + _lookup Function(AKAZE, Mat, ffi.Pointer)>>( + 'AKAZE_Detect'); + late final _AKAZE_Detect = + _AKAZE_DetectPtr.asFunction Function(AKAZE, Mat, ffi.Pointer)>(); ffi.Pointer AKAZE_DetectAndCompute( AKAZE a, @@ -91,12 +84,10 @@ class CvNative { } late final _AKAZE_DetectAndComputePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(AKAZE, Mat, Mat, Mat, - ffi.Pointer)>>('AKAZE_DetectAndCompute'); + ffi.NativeFunction Function(AKAZE, Mat, Mat, Mat, ffi.Pointer)>>( + 'AKAZE_DetectAndCompute'); late final _AKAZE_DetectAndCompute = _AKAZE_DetectAndComputePtr.asFunction< - ffi.Pointer Function( - AKAZE, Mat, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function(AKAZE, Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer AdaptiveThreshold( Mat src, @@ -120,11 +111,10 @@ class CvNative { late final _AdaptiveThresholdPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Double, ffi.Int, ffi.Int, - ffi.Int, ffi.Double)>>('AdaptiveThreshold'); + ffi.Pointer Function( + Mat, Mat, ffi.Double, ffi.Int, ffi.Int, ffi.Int, ffi.Double)>>('AdaptiveThreshold'); late final _AdaptiveThreshold = _AdaptiveThresholdPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, double, int, int, int, double)>(); + ffi.Pointer Function(Mat, Mat, double, int, int, int, double)>(); void AgastFeatureDetector_Close( AgastFeatureDetectorPtr a, @@ -135,10 +125,9 @@ class CvNative { } late final _AgastFeatureDetector_ClosePtr = - _lookup>( - 'AgastFeatureDetector_Close'); - late final _AgastFeatureDetector_Close = _AgastFeatureDetector_ClosePtr - .asFunction(); + _lookup>('AgastFeatureDetector_Close'); + late final _AgastFeatureDetector_Close = + _AgastFeatureDetector_ClosePtr.asFunction(); ffi.Pointer AgastFeatureDetector_Create( ffi.Pointer rval, @@ -148,14 +137,11 @@ class CvNative { ); } - late final _AgastFeatureDetector_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>( - 'AgastFeatureDetector_Create'); - late final _AgastFeatureDetector_Create = - _AgastFeatureDetector_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _AgastFeatureDetector_CreatePtr = + _lookup Function(ffi.Pointer)>>( + 'AgastFeatureDetector_Create'); + late final _AgastFeatureDetector_Create = _AgastFeatureDetector_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer AgastFeatureDetector_Detect( AgastFeatureDetector a, @@ -171,12 +157,10 @@ class CvNative { late final _AgastFeatureDetector_DetectPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(AgastFeatureDetector, Mat, - ffi.Pointer)>>('AgastFeatureDetector_Detect'); - late final _AgastFeatureDetector_Detect = - _AgastFeatureDetector_DetectPtr.asFunction< ffi.Pointer Function( - AgastFeatureDetector, Mat, ffi.Pointer)>(); + AgastFeatureDetector, Mat, ffi.Pointer)>>('AgastFeatureDetector_Detect'); + late final _AgastFeatureDetector_Detect = _AgastFeatureDetector_DetectPtr.asFunction< + ffi.Pointer Function(AgastFeatureDetector, Mat, ffi.Pointer)>(); void AlignMTB_Close( AlignMTBPtr b, @@ -187,10 +171,8 @@ class CvNative { } late final _AlignMTB_ClosePtr = - _lookup>( - 'AlignMTB_Close'); - late final _AlignMTB_Close = - _AlignMTB_ClosePtr.asFunction(); + _lookup>('AlignMTB_Close'); + late final _AlignMTB_Close = _AlignMTB_ClosePtr.asFunction(); ffi.Pointer AlignMTB_Create( ffi.Pointer rval, @@ -200,12 +182,10 @@ class CvNative { ); } - late final _AlignMTB_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('AlignMTB_Create'); - late final _AlignMTB_Create = _AlignMTB_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _AlignMTB_CreatePtr = + _lookup Function(ffi.Pointer)>>('AlignMTB_Create'); + late final _AlignMTB_Create = + _AlignMTB_CreatePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer AlignMTB_CreateWithParams( int max_bits, @@ -222,13 +202,11 @@ class CvNative { } late final _AlignMTB_CreateWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Int, ffi.Bool, - ffi.Pointer)>>('AlignMTB_CreateWithParams'); - late final _AlignMTB_CreateWithParams = - _AlignMTB_CreateWithParamsPtr.asFunction< - ffi.Pointer Function( - int, int, bool, ffi.Pointer)>(); + ffi + .NativeFunction Function(ffi.Int, ffi.Int, ffi.Bool, ffi.Pointer)>>( + 'AlignMTB_CreateWithParams'); + late final _AlignMTB_CreateWithParams = _AlignMTB_CreateWithParamsPtr.asFunction< + ffi.Pointer Function(int, int, bool, ffi.Pointer)>(); ffi.Pointer AlignMTB_Process( AlignMTB b, @@ -242,10 +220,9 @@ class CvNative { ); } - late final _AlignMTB_ProcessPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - AlignMTB, VecMat, ffi.Pointer)>>('AlignMTB_Process'); + late final _AlignMTB_ProcessPtr = + _lookup Function(AlignMTB, VecMat, ffi.Pointer)>>( + 'AlignMTB_Process'); late final _AlignMTB_Process = _AlignMTB_ProcessPtr.asFunction< ffi.Pointer Function(AlignMTB, VecMat, ffi.Pointer)>(); @@ -261,11 +238,9 @@ class CvNative { ); } - late final _ApplyColorMapPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int)>>('ApplyColorMap'); - late final _ApplyColorMap = _ApplyColorMapPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int)>(); + late final _ApplyColorMapPtr = + _lookup Function(Mat, Mat, ffi.Int)>>('ApplyColorMap'); + late final _ApplyColorMap = _ApplyColorMapPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer ApplyCustomColorMap( Mat src, @@ -279,11 +254,10 @@ class CvNative { ); } - late final _ApplyCustomColorMapPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'ApplyCustomColorMap'); - late final _ApplyCustomColorMap = _ApplyCustomColorMapPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _ApplyCustomColorMapPtr = + _lookup Function(Mat, Mat, Mat)>>('ApplyCustomColorMap'); + late final _ApplyCustomColorMap = + _ApplyCustomColorMapPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer ApproxPolyDP( VecPoint curve, @@ -301,11 +275,10 @@ class CvNative { late final _ApproxPolyDPPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecPoint, ffi.Double, ffi.Bool, - ffi.Pointer)>>('ApproxPolyDP'); + ffi.Pointer Function( + VecPoint, ffi.Double, ffi.Bool, ffi.Pointer)>>('ApproxPolyDP'); late final _ApproxPolyDP = _ApproxPolyDPPtr.asFunction< - ffi.Pointer Function( - VecPoint, double, bool, ffi.Pointer)>(); + ffi.Pointer Function(VecPoint, double, bool, ffi.Pointer)>(); ffi.Pointer ArcLength( VecPoint curve, @@ -320,12 +293,10 @@ class CvNative { } late final _ArcLengthPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Bool, ffi.Pointer)>>('ArcLength'); - late final _ArcLength = _ArcLengthPtr.asFunction< - ffi.Pointer Function( - VecPoint, bool, ffi.Pointer)>(); + ffi.NativeFunction Function(VecPoint, ffi.Bool, ffi.Pointer)>>( + 'ArcLength'); + late final _ArcLength = + _ArcLengthPtr.asFunction Function(VecPoint, bool, ffi.Pointer)>(); ffi.Pointer ArrowedLine( Mat img, @@ -351,11 +322,10 @@ class CvNative { late final _ArrowedLinePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Point, Point, Scalar, ffi.Int, - ffi.Int, ffi.Int, ffi.Double)>>('ArrowedLine'); + ffi.Pointer Function( + Mat, Point, Point, Scalar, ffi.Int, ffi.Int, ffi.Int, ffi.Double)>>('ArrowedLine'); late final _ArrowedLine = _ArrowedLinePtr.asFunction< - ffi.Pointer Function( - Mat, Point, Point, Scalar, int, int, int, double)>(); + ffi.Pointer Function(Mat, Point, Point, Scalar, int, int, int, double)>(); void ArucoDetectorParameters_Close( ArucoDetectorParametersPtr ap, @@ -365,11 +335,11 @@ class CvNative { ); } - late final _ArucoDetectorParameters_ClosePtr = _lookup< - ffi.NativeFunction>( - 'ArucoDetectorParameters_Close'); - late final _ArucoDetectorParameters_Close = _ArucoDetectorParameters_ClosePtr - .asFunction(); + late final _ArucoDetectorParameters_ClosePtr = + _lookup>( + 'ArucoDetectorParameters_Close'); + late final _ArucoDetectorParameters_Close = + _ArucoDetectorParameters_ClosePtr.asFunction(); ffi.Pointer ArucoDetectorParameters_Create( ffi.Pointer rval, @@ -379,15 +349,11 @@ class CvNative { ); } - late final _ArucoDetectorParameters_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>( - 'ArucoDetectorParameters_Create'); - late final _ArucoDetectorParameters_Create = - _ArucoDetectorParameters_CreatePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer)>(); + late final _ArucoDetectorParameters_CreatePtr = + _lookup Function(ffi.Pointer)>>( + 'ArucoDetectorParameters_Create'); + late final _ArucoDetectorParameters_Create = _ArucoDetectorParameters_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAdaptiveThreshConstant( ArucoDetectorParameters ap, @@ -400,14 +366,12 @@ class CvNative { } late final _ArucoDetectorParameters_GetAdaptiveThreshConstantPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAdaptiveThreshConstant'); late final _ArucoDetectorParameters_GetAdaptiveThreshConstant = _ArucoDetectorParameters_GetAdaptiveThreshConstantPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAdaptiveThreshWinSizeMax( ArucoDetectorParameters ap, @@ -420,14 +384,11 @@ class CvNative { } late final _ArucoDetectorParameters_GetAdaptiveThreshWinSizeMaxPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAdaptiveThreshWinSizeMax'); late final _ArucoDetectorParameters_GetAdaptiveThreshWinSizeMax = _ArucoDetectorParameters_GetAdaptiveThreshWinSizeMaxPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAdaptiveThreshWinSizeMin( ArucoDetectorParameters ap, @@ -440,14 +401,11 @@ class CvNative { } late final _ArucoDetectorParameters_GetAdaptiveThreshWinSizeMinPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAdaptiveThreshWinSizeMin'); late final _ArucoDetectorParameters_GetAdaptiveThreshWinSizeMin = _ArucoDetectorParameters_GetAdaptiveThreshWinSizeMinPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAdaptiveThreshWinSizeStep( ArucoDetectorParameters ap, @@ -460,14 +418,11 @@ class CvNative { } late final _ArucoDetectorParameters_GetAdaptiveThreshWinSizeStepPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAdaptiveThreshWinSizeStep'); late final _ArucoDetectorParameters_GetAdaptiveThreshWinSizeStep = _ArucoDetectorParameters_GetAdaptiveThreshWinSizeStepPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagCriticalRad( ArucoDetectorParameters ap, @@ -480,14 +435,12 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagCriticalRadPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagCriticalRad'); late final _ArucoDetectorParameters_GetAprilTagCriticalRad = _ArucoDetectorParameters_GetAprilTagCriticalRadPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagDeglitch( ArucoDetectorParameters ap, @@ -500,14 +453,10 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagDeglitchPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagDeglitch'); - late final _ArucoDetectorParameters_GetAprilTagDeglitch = - _ArucoDetectorParameters_GetAprilTagDeglitchPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + late final _ArucoDetectorParameters_GetAprilTagDeglitch = _ArucoDetectorParameters_GetAprilTagDeglitchPtr + .asFunction Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagMaxLineFitMse( ArucoDetectorParameters ap, @@ -520,14 +469,12 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagMaxLineFitMsePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagMaxLineFitMse'); late final _ArucoDetectorParameters_GetAprilTagMaxLineFitMse = _ArucoDetectorParameters_GetAprilTagMaxLineFitMsePtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagMaxNmaxima( ArucoDetectorParameters ap, @@ -540,14 +487,11 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagMaxNmaximaPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagMaxNmaxima'); late final _ArucoDetectorParameters_GetAprilTagMaxNmaxima = _ArucoDetectorParameters_GetAprilTagMaxNmaximaPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagMinClusterPixels( ArucoDetectorParameters ap, @@ -560,14 +504,11 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagMinClusterPixelsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagMinClusterPixels'); late final _ArucoDetectorParameters_GetAprilTagMinClusterPixels = _ArucoDetectorParameters_GetAprilTagMinClusterPixelsPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagMinWhiteBlackDiff( ArucoDetectorParameters ap, @@ -580,14 +521,11 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagMinWhiteBlackDiffPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagMinWhiteBlackDiff'); late final _ArucoDetectorParameters_GetAprilTagMinWhiteBlackDiff = _ArucoDetectorParameters_GetAprilTagMinWhiteBlackDiffPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagQuadDecimate( ArucoDetectorParameters ap, @@ -600,14 +538,12 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagQuadDecimatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagQuadDecimate'); late final _ArucoDetectorParameters_GetAprilTagQuadDecimate = _ArucoDetectorParameters_GetAprilTagQuadDecimatePtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagQuadSigma( ArucoDetectorParameters ap, @@ -620,17 +556,13 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagQuadSigmaPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagQuadSigma'); - late final _ArucoDetectorParameters_GetAprilTagQuadSigma = - _ArucoDetectorParameters_GetAprilTagQuadSigmaPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + late final _ArucoDetectorParameters_GetAprilTagQuadSigma = _ArucoDetectorParameters_GetAprilTagQuadSigmaPtr + .asFunction Function(ArucoDetectorParameters, ffi.Pointer)>(); - ffi.Pointer - ArucoDetectorParameters_GetCornerRefinementMaxIterations( + ffi.Pointer ArucoDetectorParameters_GetCornerRefinementMaxIterations( ArucoDetectorParameters ap, ffi.Pointer rval, ) { @@ -640,16 +572,12 @@ class CvNative { ); } - late final _ArucoDetectorParameters_GetCornerRefinementMaxIterationsPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( - 'ArucoDetectorParameters_GetCornerRefinementMaxIterations'); + late final _ArucoDetectorParameters_GetCornerRefinementMaxIterationsPtr = _lookup< + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + 'ArucoDetectorParameters_GetCornerRefinementMaxIterations'); late final _ArucoDetectorParameters_GetCornerRefinementMaxIterations = _ArucoDetectorParameters_GetCornerRefinementMaxIterationsPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetCornerRefinementMethod( ArucoDetectorParameters ap, @@ -662,14 +590,11 @@ class CvNative { } late final _ArucoDetectorParameters_GetCornerRefinementMethodPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetCornerRefinementMethod'); late final _ArucoDetectorParameters_GetCornerRefinementMethod = _ArucoDetectorParameters_GetCornerRefinementMethodPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetCornerRefinementMinAccuracy( ArucoDetectorParameters ap, @@ -681,16 +606,13 @@ class CvNative { ); } - late final _ArucoDetectorParameters_GetCornerRefinementMinAccuracyPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( - 'ArucoDetectorParameters_GetCornerRefinementMinAccuracy'); + late final _ArucoDetectorParameters_GetCornerRefinementMinAccuracyPtr = _lookup< + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + 'ArucoDetectorParameters_GetCornerRefinementMinAccuracy'); late final _ArucoDetectorParameters_GetCornerRefinementMinAccuracy = _ArucoDetectorParameters_GetCornerRefinementMinAccuracyPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetCornerRefinementWinSize( ArucoDetectorParameters ap, @@ -703,14 +625,11 @@ class CvNative { } late final _ArucoDetectorParameters_GetCornerRefinementWinSizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetCornerRefinementWinSize'); late final _ArucoDetectorParameters_GetCornerRefinementWinSize = _ArucoDetectorParameters_GetCornerRefinementWinSizePtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetDetectInvertedMarker( ArucoDetectorParameters ap, @@ -723,14 +642,11 @@ class CvNative { } late final _ArucoDetectorParameters_GetDetectInvertedMarkerPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetDetectInvertedMarker'); late final _ArucoDetectorParameters_GetDetectInvertedMarker = _ArucoDetectorParameters_GetDetectInvertedMarkerPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetErrorCorrectionRate( ArucoDetectorParameters ap, @@ -743,14 +659,12 @@ class CvNative { } late final _ArucoDetectorParameters_GetErrorCorrectionRatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetErrorCorrectionRate'); late final _ArucoDetectorParameters_GetErrorCorrectionRate = _ArucoDetectorParameters_GetErrorCorrectionRatePtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMarkerBorderBits( ArucoDetectorParameters ap, @@ -763,14 +677,10 @@ class CvNative { } late final _ArucoDetectorParameters_GetMarkerBorderBitsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMarkerBorderBits'); - late final _ArucoDetectorParameters_GetMarkerBorderBits = - _ArucoDetectorParameters_GetMarkerBorderBitsPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + late final _ArucoDetectorParameters_GetMarkerBorderBits = _ArucoDetectorParameters_GetMarkerBorderBitsPtr + .asFunction Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMaxErroneousBitsInBorderRate( ArucoDetectorParameters ap, @@ -782,16 +692,13 @@ class CvNative { ); } - late final _ArucoDetectorParameters_GetMaxErroneousBitsInBorderRatePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( - 'ArucoDetectorParameters_GetMaxErroneousBitsInBorderRate'); + late final _ArucoDetectorParameters_GetMaxErroneousBitsInBorderRatePtr = _lookup< + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + 'ArucoDetectorParameters_GetMaxErroneousBitsInBorderRate'); late final _ArucoDetectorParameters_GetMaxErroneousBitsInBorderRate = _ArucoDetectorParameters_GetMaxErroneousBitsInBorderRatePtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMaxMarkerPerimeterRate( ArucoDetectorParameters ap, @@ -804,14 +711,12 @@ class CvNative { } late final _ArucoDetectorParameters_GetMaxMarkerPerimeterRatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMaxMarkerPerimeterRate'); late final _ArucoDetectorParameters_GetMaxMarkerPerimeterRate = _ArucoDetectorParameters_GetMaxMarkerPerimeterRatePtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMinCornerDistanceRate( ArucoDetectorParameters ap, @@ -824,14 +729,12 @@ class CvNative { } late final _ArucoDetectorParameters_GetMinCornerDistanceRatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMinCornerDistanceRate'); late final _ArucoDetectorParameters_GetMinCornerDistanceRate = _ArucoDetectorParameters_GetMinCornerDistanceRatePtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMinDistanceToBorder( ArucoDetectorParameters ap, @@ -844,14 +747,11 @@ class CvNative { } late final _ArucoDetectorParameters_GetMinDistanceToBorderPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMinDistanceToBorder'); late final _ArucoDetectorParameters_GetMinDistanceToBorder = _ArucoDetectorParameters_GetMinDistanceToBorderPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMinMarkerDistanceRate( ArucoDetectorParameters ap, @@ -864,14 +764,12 @@ class CvNative { } late final _ArucoDetectorParameters_GetMinMarkerDistanceRatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMinMarkerDistanceRate'); late final _ArucoDetectorParameters_GetMinMarkerDistanceRate = _ArucoDetectorParameters_GetMinMarkerDistanceRatePtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMinMarkerPerimeterRate( ArucoDetectorParameters ap, @@ -884,14 +782,12 @@ class CvNative { } late final _ArucoDetectorParameters_GetMinMarkerPerimeterRatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMinMarkerPerimeterRate'); late final _ArucoDetectorParameters_GetMinMarkerPerimeterRate = _ArucoDetectorParameters_GetMinMarkerPerimeterRatePtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMinOtsuStdDev( ArucoDetectorParameters ap, @@ -904,17 +800,13 @@ class CvNative { } late final _ArucoDetectorParameters_GetMinOtsuStdDevPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMinOtsuStdDev'); - late final _ArucoDetectorParameters_GetMinOtsuStdDev = - _ArucoDetectorParameters_GetMinOtsuStdDevPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + late final _ArucoDetectorParameters_GetMinOtsuStdDev = _ArucoDetectorParameters_GetMinOtsuStdDevPtr + .asFunction Function(ArucoDetectorParameters, ffi.Pointer)>(); - ffi.Pointer - ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCell( + ffi.Pointer ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCell( ArucoDetectorParameters ap, ffi.Pointer rval, ) { @@ -924,20 +816,15 @@ class CvNative { ); } - late final _ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCellPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( - 'ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCell'); + late final _ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCellPtr = _lookup< + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + 'ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCell'); late final _ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCell = - _ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCellPtr - .asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + _ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCellPtr.asFunction< + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); - ffi.Pointer - ArucoDetectorParameters_GetPerspectiveRemovePixelPerCell( + ffi.Pointer ArucoDetectorParameters_GetPerspectiveRemovePixelPerCell( ArucoDetectorParameters ap, ffi.Pointer rval, ) { @@ -947,16 +834,12 @@ class CvNative { ); } - late final _ArucoDetectorParameters_GetPerspectiveRemovePixelPerCellPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( - 'ArucoDetectorParameters_GetPerspectiveRemovePixelPerCell'); + late final _ArucoDetectorParameters_GetPerspectiveRemovePixelPerCellPtr = _lookup< + ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + 'ArucoDetectorParameters_GetPerspectiveRemovePixelPerCell'); late final _ArucoDetectorParameters_GetPerspectiveRemovePixelPerCell = _ArucoDetectorParameters_GetPerspectiveRemovePixelPerCellPtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetPolygonalApproxAccuracyRate( ArucoDetectorParameters ap, @@ -968,16 +851,13 @@ class CvNative { ); } - late final _ArucoDetectorParameters_GetPolygonalApproxAccuracyRatePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>>( - 'ArucoDetectorParameters_GetPolygonalApproxAccuracyRate'); + late final _ArucoDetectorParameters_GetPolygonalApproxAccuracyRatePtr = _lookup< + ffi + .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + 'ArucoDetectorParameters_GetPolygonalApproxAccuracyRate'); late final _ArucoDetectorParameters_GetPolygonalApproxAccuracyRate = _ArucoDetectorParameters_GetPolygonalApproxAccuracyRatePtr.asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_SetAdaptiveThreshConstant( ArucoDetectorParameters ap, @@ -989,11 +869,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAdaptiveThreshConstantPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Double)>>( - 'ArucoDetectorParameters_SetAdaptiveThreshConstant'); + late final _ArucoDetectorParameters_SetAdaptiveThreshConstantPtr = + _lookup Function(ArucoDetectorParameters, ffi.Double)>>( + 'ArucoDetectorParameters_SetAdaptiveThreshConstant'); late final _ArucoDetectorParameters_SetAdaptiveThreshConstant = _ArucoDetectorParameters_SetAdaptiveThreshConstantPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1008,10 +886,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMaxPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Int)>>('ArucoDetectorParameters_SetAdaptiveThreshWinSizeMax'); + late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMaxPtr = + _lookup Function(ArucoDetectorParameters, ffi.Int)>>( + 'ArucoDetectorParameters_SetAdaptiveThreshWinSizeMax'); late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMax = _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMaxPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1026,10 +903,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMinPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Int)>>('ArucoDetectorParameters_SetAdaptiveThreshWinSizeMin'); + late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMinPtr = + _lookup Function(ArucoDetectorParameters, ffi.Int)>>( + 'ArucoDetectorParameters_SetAdaptiveThreshWinSizeMin'); late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMin = _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMinPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1044,11 +920,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeStepPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Int)>>( - 'ArucoDetectorParameters_SetAdaptiveThreshWinSizeStep'); + late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeStepPtr = + _lookup Function(ArucoDetectorParameters, ffi.Int)>>( + 'ArucoDetectorParameters_SetAdaptiveThreshWinSizeStep'); late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeStep = _ArucoDetectorParameters_SetAdaptiveThreshWinSizeStepPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1063,10 +937,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagCriticalRadPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Float)>>('ArucoDetectorParameters_SetAprilTagCriticalRad'); + late final _ArucoDetectorParameters_SetAprilTagCriticalRadPtr = + _lookup Function(ArucoDetectorParameters, ffi.Float)>>( + 'ArucoDetectorParameters_SetAprilTagCriticalRad'); late final _ArucoDetectorParameters_SetAprilTagCriticalRad = _ArucoDetectorParameters_SetAprilTagCriticalRadPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1081,13 +954,11 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagDeglitchPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Int)>>('ArucoDetectorParameters_SetAprilTagDeglitch'); - late final _ArucoDetectorParameters_SetAprilTagDeglitch = - _ArucoDetectorParameters_SetAprilTagDeglitchPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, int)>(); + late final _ArucoDetectorParameters_SetAprilTagDeglitchPtr = + _lookup Function(ArucoDetectorParameters, ffi.Int)>>( + 'ArucoDetectorParameters_SetAprilTagDeglitch'); + late final _ArucoDetectorParameters_SetAprilTagDeglitch = _ArucoDetectorParameters_SetAprilTagDeglitchPtr + .asFunction Function(ArucoDetectorParameters, int)>(); ffi.Pointer ArucoDetectorParameters_SetAprilTagMaxLineFitMse( ArucoDetectorParameters ap, @@ -1099,10 +970,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagMaxLineFitMsePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Float)>>('ArucoDetectorParameters_SetAprilTagMaxLineFitMse'); + late final _ArucoDetectorParameters_SetAprilTagMaxLineFitMsePtr = + _lookup Function(ArucoDetectorParameters, ffi.Float)>>( + 'ArucoDetectorParameters_SetAprilTagMaxLineFitMse'); late final _ArucoDetectorParameters_SetAprilTagMaxLineFitMse = _ArucoDetectorParameters_SetAprilTagMaxLineFitMsePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1117,10 +987,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagMaxNmaximaPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Int)>>('ArucoDetectorParameters_SetAprilTagMaxNmaxima'); + late final _ArucoDetectorParameters_SetAprilTagMaxNmaximaPtr = + _lookup Function(ArucoDetectorParameters, ffi.Int)>>( + 'ArucoDetectorParameters_SetAprilTagMaxNmaxima'); late final _ArucoDetectorParameters_SetAprilTagMaxNmaxima = _ArucoDetectorParameters_SetAprilTagMaxNmaximaPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1135,10 +1004,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagMinClusterPixelsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Int)>>('ArucoDetectorParameters_SetAprilTagMinClusterPixels'); + late final _ArucoDetectorParameters_SetAprilTagMinClusterPixelsPtr = + _lookup Function(ArucoDetectorParameters, ffi.Int)>>( + 'ArucoDetectorParameters_SetAprilTagMinClusterPixels'); late final _ArucoDetectorParameters_SetAprilTagMinClusterPixels = _ArucoDetectorParameters_SetAprilTagMinClusterPixelsPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1153,11 +1021,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagMinWhiteBlackDiffPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Int)>>( - 'ArucoDetectorParameters_SetAprilTagMinWhiteBlackDiff'); + late final _ArucoDetectorParameters_SetAprilTagMinWhiteBlackDiffPtr = + _lookup Function(ArucoDetectorParameters, ffi.Int)>>( + 'ArucoDetectorParameters_SetAprilTagMinWhiteBlackDiff'); late final _ArucoDetectorParameters_SetAprilTagMinWhiteBlackDiff = _ArucoDetectorParameters_SetAprilTagMinWhiteBlackDiffPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1172,10 +1038,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagQuadDecimatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Float)>>('ArucoDetectorParameters_SetAprilTagQuadDecimate'); + late final _ArucoDetectorParameters_SetAprilTagQuadDecimatePtr = + _lookup Function(ArucoDetectorParameters, ffi.Float)>>( + 'ArucoDetectorParameters_SetAprilTagQuadDecimate'); late final _ArucoDetectorParameters_SetAprilTagQuadDecimate = _ArucoDetectorParameters_SetAprilTagQuadDecimatePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1190,16 +1055,13 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagQuadSigmaPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Float)>>('ArucoDetectorParameters_SetAprilTagQuadSigma'); - late final _ArucoDetectorParameters_SetAprilTagQuadSigma = - _ArucoDetectorParameters_SetAprilTagQuadSigmaPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, double)>(); + late final _ArucoDetectorParameters_SetAprilTagQuadSigmaPtr = + _lookup Function(ArucoDetectorParameters, ffi.Float)>>( + 'ArucoDetectorParameters_SetAprilTagQuadSigma'); + late final _ArucoDetectorParameters_SetAprilTagQuadSigma = _ArucoDetectorParameters_SetAprilTagQuadSigmaPtr + .asFunction Function(ArucoDetectorParameters, double)>(); - ffi.Pointer - ArucoDetectorParameters_SetCornerRefinementMaxIterations( + ffi.Pointer ArucoDetectorParameters_SetCornerRefinementMaxIterations( ArucoDetectorParameters ap, int cornerRefinementMaxIterations, ) { @@ -1210,10 +1072,7 @@ class CvNative { } late final _ArucoDetectorParameters_SetCornerRefinementMaxIterationsPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Int)>>( + _lookup Function(ArucoDetectorParameters, ffi.Int)>>( 'ArucoDetectorParameters_SetCornerRefinementMaxIterations'); late final _ArucoDetectorParameters_SetCornerRefinementMaxIterations = _ArucoDetectorParameters_SetCornerRefinementMaxIterationsPtr.asFunction< @@ -1229,10 +1088,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetCornerRefinementMethodPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Int)>>('ArucoDetectorParameters_SetCornerRefinementMethod'); + late final _ArucoDetectorParameters_SetCornerRefinementMethodPtr = + _lookup Function(ArucoDetectorParameters, ffi.Int)>>( + 'ArucoDetectorParameters_SetCornerRefinementMethod'); late final _ArucoDetectorParameters_SetCornerRefinementMethod = _ArucoDetectorParameters_SetCornerRefinementMethodPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1248,10 +1106,7 @@ class CvNative { } late final _ArucoDetectorParameters_SetCornerRefinementMinAccuracyPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Double)>>( + _lookup Function(ArucoDetectorParameters, ffi.Double)>>( 'ArucoDetectorParameters_SetCornerRefinementMinAccuracy'); late final _ArucoDetectorParameters_SetCornerRefinementMinAccuracy = _ArucoDetectorParameters_SetCornerRefinementMinAccuracyPtr.asFunction< @@ -1267,10 +1122,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetCornerRefinementWinSizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Int)>>('ArucoDetectorParameters_SetCornerRefinementWinSize'); + late final _ArucoDetectorParameters_SetCornerRefinementWinSizePtr = + _lookup Function(ArucoDetectorParameters, ffi.Int)>>( + 'ArucoDetectorParameters_SetCornerRefinementWinSize'); late final _ArucoDetectorParameters_SetCornerRefinementWinSize = _ArucoDetectorParameters_SetCornerRefinementWinSizePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1285,10 +1139,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetDetectInvertedMarkerPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Bool)>>('ArucoDetectorParameters_SetDetectInvertedMarker'); + late final _ArucoDetectorParameters_SetDetectInvertedMarkerPtr = + _lookup Function(ArucoDetectorParameters, ffi.Bool)>>( + 'ArucoDetectorParameters_SetDetectInvertedMarker'); late final _ArucoDetectorParameters_SetDetectInvertedMarker = _ArucoDetectorParameters_SetDetectInvertedMarkerPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, bool)>(); @@ -1303,10 +1156,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetErrorCorrectionRatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Double)>>('ArucoDetectorParameters_SetErrorCorrectionRate'); + late final _ArucoDetectorParameters_SetErrorCorrectionRatePtr = + _lookup Function(ArucoDetectorParameters, ffi.Double)>>( + 'ArucoDetectorParameters_SetErrorCorrectionRate'); late final _ArucoDetectorParameters_SetErrorCorrectionRate = _ArucoDetectorParameters_SetErrorCorrectionRatePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1321,13 +1173,11 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMarkerBorderBitsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Int)>>('ArucoDetectorParameters_SetMarkerBorderBits'); - late final _ArucoDetectorParameters_SetMarkerBorderBits = - _ArucoDetectorParameters_SetMarkerBorderBitsPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, int)>(); + late final _ArucoDetectorParameters_SetMarkerBorderBitsPtr = + _lookup Function(ArucoDetectorParameters, ffi.Int)>>( + 'ArucoDetectorParameters_SetMarkerBorderBits'); + late final _ArucoDetectorParameters_SetMarkerBorderBits = _ArucoDetectorParameters_SetMarkerBorderBitsPtr + .asFunction Function(ArucoDetectorParameters, int)>(); ffi.Pointer ArucoDetectorParameters_SetMaxErroneousBitsInBorderRate( ArucoDetectorParameters ap, @@ -1340,10 +1190,7 @@ class CvNative { } late final _ArucoDetectorParameters_SetMaxErroneousBitsInBorderRatePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Double)>>( + _lookup Function(ArucoDetectorParameters, ffi.Double)>>( 'ArucoDetectorParameters_SetMaxErroneousBitsInBorderRate'); late final _ArucoDetectorParameters_SetMaxErroneousBitsInBorderRate = _ArucoDetectorParameters_SetMaxErroneousBitsInBorderRatePtr.asFunction< @@ -1359,11 +1206,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMaxMarkerPerimeterRatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Double)>>( - 'ArucoDetectorParameters_SetMaxMarkerPerimeterRate'); + late final _ArucoDetectorParameters_SetMaxMarkerPerimeterRatePtr = + _lookup Function(ArucoDetectorParameters, ffi.Double)>>( + 'ArucoDetectorParameters_SetMaxMarkerPerimeterRate'); late final _ArucoDetectorParameters_SetMaxMarkerPerimeterRate = _ArucoDetectorParameters_SetMaxMarkerPerimeterRatePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1378,10 +1223,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMinCornerDistanceRatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Double)>>('ArucoDetectorParameters_SetMinCornerDistanceRate'); + late final _ArucoDetectorParameters_SetMinCornerDistanceRatePtr = + _lookup Function(ArucoDetectorParameters, ffi.Double)>>( + 'ArucoDetectorParameters_SetMinCornerDistanceRate'); late final _ArucoDetectorParameters_SetMinCornerDistanceRate = _ArucoDetectorParameters_SetMinCornerDistanceRatePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1396,10 +1240,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMinDistanceToBorderPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Int)>>('ArucoDetectorParameters_SetMinDistanceToBorder'); + late final _ArucoDetectorParameters_SetMinDistanceToBorderPtr = + _lookup Function(ArucoDetectorParameters, ffi.Int)>>( + 'ArucoDetectorParameters_SetMinDistanceToBorder'); late final _ArucoDetectorParameters_SetMinDistanceToBorder = _ArucoDetectorParameters_SetMinDistanceToBorderPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1414,10 +1257,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMinMarkerDistanceRatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Double)>>('ArucoDetectorParameters_SetMinMarkerDistanceRate'); + late final _ArucoDetectorParameters_SetMinMarkerDistanceRatePtr = + _lookup Function(ArucoDetectorParameters, ffi.Double)>>( + 'ArucoDetectorParameters_SetMinMarkerDistanceRate'); late final _ArucoDetectorParameters_SetMinMarkerDistanceRate = _ArucoDetectorParameters_SetMinMarkerDistanceRatePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1432,11 +1274,9 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMinMarkerPerimeterRatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Double)>>( - 'ArucoDetectorParameters_SetMinMarkerPerimeterRate'); + late final _ArucoDetectorParameters_SetMinMarkerPerimeterRatePtr = + _lookup Function(ArucoDetectorParameters, ffi.Double)>>( + 'ArucoDetectorParameters_SetMinMarkerPerimeterRate'); late final _ArucoDetectorParameters_SetMinMarkerPerimeterRate = _ArucoDetectorParameters_SetMinMarkerPerimeterRatePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1451,16 +1291,13 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMinOtsuStdDevPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ArucoDetectorParameters, - ffi.Double)>>('ArucoDetectorParameters_SetMinOtsuStdDev'); - late final _ArucoDetectorParameters_SetMinOtsuStdDev = - _ArucoDetectorParameters_SetMinOtsuStdDevPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, double)>(); + late final _ArucoDetectorParameters_SetMinOtsuStdDevPtr = + _lookup Function(ArucoDetectorParameters, ffi.Double)>>( + 'ArucoDetectorParameters_SetMinOtsuStdDev'); + late final _ArucoDetectorParameters_SetMinOtsuStdDev = _ArucoDetectorParameters_SetMinOtsuStdDevPtr + .asFunction Function(ArucoDetectorParameters, double)>(); - ffi.Pointer - ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCell( + ffi.Pointer ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCell( ArucoDetectorParameters ap, double perspectiveRemoveIgnoredMarginPerCell, ) { @@ -1471,19 +1308,13 @@ class CvNative { } late final _ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCellPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Double)>>( + _lookup Function(ArucoDetectorParameters, ffi.Double)>>( 'ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCell'); late final _ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCell = - _ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCellPtr - .asFunction< - ffi.Pointer Function( - ArucoDetectorParameters, double)>(); + _ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCellPtr.asFunction< + ffi.Pointer Function(ArucoDetectorParameters, double)>(); - ffi.Pointer - ArucoDetectorParameters_SetPerspectiveRemovePixelPerCell( + ffi.Pointer ArucoDetectorParameters_SetPerspectiveRemovePixelPerCell( ArucoDetectorParameters ap, int perspectiveRemovePixelPerCell, ) { @@ -1494,10 +1325,7 @@ class CvNative { } late final _ArucoDetectorParameters_SetPerspectiveRemovePixelPerCellPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Int)>>( + _lookup Function(ArucoDetectorParameters, ffi.Int)>>( 'ArucoDetectorParameters_SetPerspectiveRemovePixelPerCell'); late final _ArucoDetectorParameters_SetPerspectiveRemovePixelPerCell = _ArucoDetectorParameters_SetPerspectiveRemovePixelPerCellPtr.asFunction< @@ -1514,10 +1342,7 @@ class CvNative { } late final _ArucoDetectorParameters_SetPolygonalApproxAccuracyRatePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetectorParameters, ffi.Double)>>( + _lookup Function(ArucoDetectorParameters, ffi.Double)>>( 'ArucoDetectorParameters_SetPolygonalApproxAccuracyRate'); late final _ArucoDetectorParameters_SetPolygonalApproxAccuracyRate = _ArucoDetectorParameters_SetPolygonalApproxAccuracyRatePtr.asFunction< @@ -1532,10 +1357,8 @@ class CvNative { } late final _ArucoDetector_ClosePtr = - _lookup>( - 'ArucoDetector_Close'); - late final _ArucoDetector_Close = - _ArucoDetector_ClosePtr.asFunction(); + _lookup>('ArucoDetector_Close'); + late final _ArucoDetector_Close = _ArucoDetector_ClosePtr.asFunction(); ffi.Pointer ArucoDetector_DetectMarkers( ArucoDetector ad, @@ -1555,20 +1378,11 @@ class CvNative { late final _ArucoDetector_DetectMarkersPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ArucoDetector, - Mat, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer Function(ArucoDetector, Mat, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('ArucoDetector_DetectMarkers'); - late final _ArucoDetector_DetectMarkers = - _ArucoDetector_DetectMarkersPtr.asFunction< - ffi.Pointer Function( - ArucoDetector, - Mat, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + late final _ArucoDetector_DetectMarkers = _ArucoDetector_DetectMarkersPtr.asFunction< + ffi.Pointer Function( + ArucoDetector, Mat, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer ArucoDetector_New( ffi.Pointer rval, @@ -1578,12 +1392,11 @@ class CvNative { ); } - late final _ArucoDetector_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('ArucoDetector_New'); - late final _ArucoDetector_New = _ArucoDetector_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _ArucoDetector_NewPtr = + _lookup Function(ffi.Pointer)>>( + 'ArucoDetector_New'); + late final _ArucoDetector_New = + _ArucoDetector_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer ArucoDetector_NewWithParams( ArucoDictionary dictionary, @@ -1599,14 +1412,10 @@ class CvNative { late final _ArucoDetector_NewWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ArucoDictionary, - ArucoDetectorParameters, + ffi.Pointer Function(ArucoDictionary, ArucoDetectorParameters, ffi.Pointer)>>('ArucoDetector_NewWithParams'); - late final _ArucoDetector_NewWithParams = - _ArucoDetector_NewWithParamsPtr.asFunction< - ffi.Pointer Function(ArucoDictionary, - ArucoDetectorParameters, ffi.Pointer)>(); + late final _ArucoDetector_NewWithParams = _ArucoDetector_NewWithParamsPtr.asFunction< + ffi.Pointer Function(ArucoDictionary, ArucoDetectorParameters, ffi.Pointer)>(); void ArucoDictionary_Close( ArucoDictionaryPtr self, @@ -1617,8 +1426,7 @@ class CvNative { } late final _ArucoDictionary_ClosePtr = - _lookup>( - 'ArucoDictionary_Close'); + _lookup>('ArucoDictionary_Close'); late final _ArucoDictionary_Close = _ArucoDictionary_ClosePtr.asFunction(); @@ -1636,13 +1444,11 @@ class CvNative { ); } - late final _ArucoDrawDetectedMarkersPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, VecVecPoint2f, VecInt, Scalar)>>('ArucoDrawDetectedMarkers'); - late final _ArucoDrawDetectedMarkers = - _ArucoDrawDetectedMarkersPtr.asFunction< - ffi.Pointer Function(Mat, VecVecPoint2f, VecInt, Scalar)>(); + late final _ArucoDrawDetectedMarkersPtr = + _lookup Function(Mat, VecVecPoint2f, VecInt, Scalar)>>( + 'ArucoDrawDetectedMarkers'); + late final _ArucoDrawDetectedMarkers = _ArucoDrawDetectedMarkersPtr.asFunction< + ffi.Pointer Function(Mat, VecVecPoint2f, VecInt, Scalar)>(); ffi.Pointer ArucoGenerateImageMarker( int dictionaryId, @@ -1660,12 +1466,11 @@ class CvNative { ); } - late final _ArucoGenerateImageMarkerPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Int, ffi.Int, Mat, - ffi.Int)>>('ArucoGenerateImageMarker'); - late final _ArucoGenerateImageMarker = _ArucoGenerateImageMarkerPtr - .asFunction Function(int, int, int, Mat, int)>(); + late final _ArucoGenerateImageMarkerPtr = + _lookup Function(ffi.Int, ffi.Int, ffi.Int, Mat, ffi.Int)>>( + 'ArucoGenerateImageMarker'); + late final _ArucoGenerateImageMarker = + _ArucoGenerateImageMarkerPtr.asFunction Function(int, int, int, Mat, int)>(); void AsyncArray_Close( AsyncArrayPtr a, @@ -1676,10 +1481,8 @@ class CvNative { } late final _AsyncArray_ClosePtr = - _lookup>( - 'AsyncArray_Close'); - late final _AsyncArray_Close = - _AsyncArray_ClosePtr.asFunction(); + _lookup>('AsyncArray_Close'); + late final _AsyncArray_Close = _AsyncArray_ClosePtr.asFunction(); ffi.Pointer AsyncArray_Get( AsyncArray async_out, @@ -1691,11 +1494,10 @@ class CvNative { ); } - late final _AsyncArray_GetPtr = _lookup< - ffi.NativeFunction Function(AsyncArray, Mat)>>( - 'AsyncArray_Get'); - late final _AsyncArray_Get = _AsyncArray_GetPtr.asFunction< - ffi.Pointer Function(AsyncArray, Mat)>(); + late final _AsyncArray_GetPtr = + _lookup Function(AsyncArray, Mat)>>('AsyncArray_Get'); + late final _AsyncArray_Get = + _AsyncArray_GetPtr.asFunction Function(AsyncArray, Mat)>(); ffi.Pointer AsyncArray_New( ffi.Pointer rval, @@ -1705,12 +1507,10 @@ class CvNative { ); } - late final _AsyncArray_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('AsyncArray_New'); - late final _AsyncArray_New = _AsyncArray_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _AsyncArray_NewPtr = + _lookup Function(ffi.Pointer)>>('AsyncArray_New'); + late final _AsyncArray_New = + _AsyncArray_NewPtr.asFunction Function(ffi.Pointer)>(); void BFMatcher_Close( BFMatcherPtr b, @@ -1721,10 +1521,8 @@ class CvNative { } late final _BFMatcher_ClosePtr = - _lookup>( - 'BFMatcher_Close'); - late final _BFMatcher_Close = - _BFMatcher_ClosePtr.asFunction(); + _lookup>('BFMatcher_Close'); + late final _BFMatcher_Close = _BFMatcher_ClosePtr.asFunction(); ffi.Pointer BFMatcher_Create( ffi.Pointer rval, @@ -1734,12 +1532,10 @@ class CvNative { ); } - late final _BFMatcher_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('BFMatcher_Create'); - late final _BFMatcher_Create = _BFMatcher_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _BFMatcher_CreatePtr = + _lookup Function(ffi.Pointer)>>('BFMatcher_Create'); + late final _BFMatcher_Create = + _BFMatcher_CreatePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer BFMatcher_CreateWithParams( int normType, @@ -1753,13 +1549,11 @@ class CvNative { ); } - late final _BFMatcher_CreateWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Bool, - ffi.Pointer)>>('BFMatcher_CreateWithParams'); - late final _BFMatcher_CreateWithParams = - _BFMatcher_CreateWithParamsPtr.asFunction< - ffi.Pointer Function(int, bool, ffi.Pointer)>(); + late final _BFMatcher_CreateWithParamsPtr = + _lookup Function(ffi.Int, ffi.Bool, ffi.Pointer)>>( + 'BFMatcher_CreateWithParams'); + late final _BFMatcher_CreateWithParams = _BFMatcher_CreateWithParamsPtr.asFunction< + ffi.Pointer Function(int, bool, ffi.Pointer)>(); ffi.Pointer BFMatcher_KnnMatch( BFMatcher b, @@ -1779,11 +1573,10 @@ class CvNative { late final _BFMatcher_KnnMatchPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(BFMatcher, Mat, Mat, ffi.Int, - ffi.Pointer)>>('BFMatcher_KnnMatch'); + ffi.Pointer Function( + BFMatcher, Mat, Mat, ffi.Int, ffi.Pointer)>>('BFMatcher_KnnMatch'); late final _BFMatcher_KnnMatch = _BFMatcher_KnnMatchPtr.asFunction< - ffi.Pointer Function( - BFMatcher, Mat, Mat, int, ffi.Pointer)>(); + ffi.Pointer Function(BFMatcher, Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer BFMatcher_Match( BFMatcher b, @@ -1800,12 +1593,10 @@ class CvNative { } late final _BFMatcher_MatchPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - BFMatcher, Mat, Mat, ffi.Pointer)>>('BFMatcher_Match'); + ffi.NativeFunction Function(BFMatcher, Mat, Mat, ffi.Pointer)>>( + 'BFMatcher_Match'); late final _BFMatcher_Match = _BFMatcher_MatchPtr.asFunction< - ffi.Pointer Function( - BFMatcher, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function(BFMatcher, Mat, Mat, ffi.Pointer)>(); void BRISK_Close( BRISKPtr b, @@ -1815,10 +1606,8 @@ class CvNative { ); } - late final _BRISK_ClosePtr = - _lookup>('BRISK_Close'); - late final _BRISK_Close = - _BRISK_ClosePtr.asFunction(); + late final _BRISK_ClosePtr = _lookup>('BRISK_Close'); + late final _BRISK_Close = _BRISK_ClosePtr.asFunction(); ffi.Pointer BRISK_Create( ffi.Pointer rval, @@ -1828,11 +1617,10 @@ class CvNative { ); } - late final _BRISK_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('BRISK_Create'); - late final _BRISK_Create = _BRISK_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _BRISK_CreatePtr = + _lookup Function(ffi.Pointer)>>('BRISK_Create'); + late final _BRISK_Create = + _BRISK_CreatePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer BRISK_Detect( BRISK b, @@ -1846,12 +1634,11 @@ class CvNative { ); } - late final _BRISK_DetectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - BRISK, Mat, ffi.Pointer)>>('BRISK_Detect'); - late final _BRISK_Detect = _BRISK_DetectPtr.asFunction< - ffi.Pointer Function(BRISK, Mat, ffi.Pointer)>(); + late final _BRISK_DetectPtr = + _lookup Function(BRISK, Mat, ffi.Pointer)>>( + 'BRISK_Detect'); + late final _BRISK_Detect = + _BRISK_DetectPtr.asFunction Function(BRISK, Mat, ffi.Pointer)>(); ffi.Pointer BRISK_DetectAndCompute( BRISK b, @@ -1870,12 +1657,10 @@ class CvNative { } late final _BRISK_DetectAndComputePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(BRISK, Mat, Mat, Mat, - ffi.Pointer)>>('BRISK_DetectAndCompute'); + ffi.NativeFunction Function(BRISK, Mat, Mat, Mat, ffi.Pointer)>>( + 'BRISK_DetectAndCompute'); late final _BRISK_DetectAndCompute = _BRISK_DetectAndComputePtr.asFunction< - ffi.Pointer Function( - BRISK, Mat, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function(BRISK, Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer BackgroundSubtractorKNN_Apply( BackgroundSubtractorKNN self, @@ -1889,13 +1674,11 @@ class CvNative { ); } - late final _BackgroundSubtractorKNN_ApplyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(BackgroundSubtractorKNN, Mat, - Mat)>>('BackgroundSubtractorKNN_Apply'); - late final _BackgroundSubtractorKNN_Apply = - _BackgroundSubtractorKNN_ApplyPtr.asFunction< - ffi.Pointer Function(BackgroundSubtractorKNN, Mat, Mat)>(); + late final _BackgroundSubtractorKNN_ApplyPtr = + _lookup Function(BackgroundSubtractorKNN, Mat, Mat)>>( + 'BackgroundSubtractorKNN_Apply'); + late final _BackgroundSubtractorKNN_Apply = _BackgroundSubtractorKNN_ApplyPtr.asFunction< + ffi.Pointer Function(BackgroundSubtractorKNN, Mat, Mat)>(); void BackgroundSubtractorKNN_Close( BackgroundSubtractorKNNPtr self, @@ -1905,11 +1688,11 @@ class CvNative { ); } - late final _BackgroundSubtractorKNN_ClosePtr = _lookup< - ffi.NativeFunction>( - 'BackgroundSubtractorKNN_Close'); - late final _BackgroundSubtractorKNN_Close = _BackgroundSubtractorKNN_ClosePtr - .asFunction(); + late final _BackgroundSubtractorKNN_ClosePtr = + _lookup>( + 'BackgroundSubtractorKNN_Close'); + late final _BackgroundSubtractorKNN_Close = + _BackgroundSubtractorKNN_ClosePtr.asFunction(); ffi.Pointer BackgroundSubtractorKNN_Create( ffi.Pointer rval, @@ -1919,15 +1702,11 @@ class CvNative { ); } - late final _BackgroundSubtractorKNN_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>( - 'BackgroundSubtractorKNN_Create'); - late final _BackgroundSubtractorKNN_Create = - _BackgroundSubtractorKNN_CreatePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer)>(); + late final _BackgroundSubtractorKNN_CreatePtr = + _lookup Function(ffi.Pointer)>>( + 'BackgroundSubtractorKNN_Create'); + late final _BackgroundSubtractorKNN_Create = _BackgroundSubtractorKNN_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer BackgroundSubtractorKNN_CreateWithParams( int history, @@ -1944,14 +1723,11 @@ class CvNative { } late final _BackgroundSubtractorKNN_CreateWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Double, ffi.Bool, - ffi.Pointer)>>( - 'BackgroundSubtractorKNN_CreateWithParams'); - late final _BackgroundSubtractorKNN_CreateWithParams = - _BackgroundSubtractorKNN_CreateWithParamsPtr.asFunction< - ffi.Pointer Function( - int, double, bool, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Double, ffi.Bool, + ffi.Pointer)>>('BackgroundSubtractorKNN_CreateWithParams'); + late final _BackgroundSubtractorKNN_CreateWithParams = _BackgroundSubtractorKNN_CreateWithParamsPtr + .asFunction Function(int, double, bool, ffi.Pointer)>(); ffi.Pointer BackgroundSubtractorMOG2_Apply( BackgroundSubtractorMOG2 self, @@ -1965,13 +1741,11 @@ class CvNative { ); } - late final _BackgroundSubtractorMOG2_ApplyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(BackgroundSubtractorMOG2, Mat, - Mat)>>('BackgroundSubtractorMOG2_Apply'); - late final _BackgroundSubtractorMOG2_Apply = - _BackgroundSubtractorMOG2_ApplyPtr.asFunction< - ffi.Pointer Function(BackgroundSubtractorMOG2, Mat, Mat)>(); + late final _BackgroundSubtractorMOG2_ApplyPtr = + _lookup Function(BackgroundSubtractorMOG2, Mat, Mat)>>( + 'BackgroundSubtractorMOG2_Apply'); + late final _BackgroundSubtractorMOG2_Apply = _BackgroundSubtractorMOG2_ApplyPtr.asFunction< + ffi.Pointer Function(BackgroundSubtractorMOG2, Mat, Mat)>(); void BackgroundSubtractorMOG2_Close( BackgroundSubtractorMOG2Ptr self, @@ -1981,12 +1755,11 @@ class CvNative { ); } - late final _BackgroundSubtractorMOG2_ClosePtr = _lookup< - ffi.NativeFunction>( - 'BackgroundSubtractorMOG2_Close'); + late final _BackgroundSubtractorMOG2_ClosePtr = + _lookup>( + 'BackgroundSubtractorMOG2_Close'); late final _BackgroundSubtractorMOG2_Close = - _BackgroundSubtractorMOG2_ClosePtr.asFunction< - void Function(BackgroundSubtractorMOG2Ptr)>(); + _BackgroundSubtractorMOG2_ClosePtr.asFunction(); ffi.Pointer BackgroundSubtractorMOG2_Create( ffi.Pointer rval, @@ -1996,15 +1769,11 @@ class CvNative { ); } - late final _BackgroundSubtractorMOG2_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>( - 'BackgroundSubtractorMOG2_Create'); - late final _BackgroundSubtractorMOG2_Create = - _BackgroundSubtractorMOG2_CreatePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer)>(); + late final _BackgroundSubtractorMOG2_CreatePtr = + _lookup Function(ffi.Pointer)>>( + 'BackgroundSubtractorMOG2_Create'); + late final _BackgroundSubtractorMOG2_Create = _BackgroundSubtractorMOG2_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer BackgroundSubtractorMOG2_CreateWithParams( int history, @@ -2021,14 +1790,11 @@ class CvNative { } late final _BackgroundSubtractorMOG2_CreateWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Double, ffi.Bool, - ffi.Pointer)>>( - 'BackgroundSubtractorMOG2_CreateWithParams'); - late final _BackgroundSubtractorMOG2_CreateWithParams = - _BackgroundSubtractorMOG2_CreateWithParamsPtr.asFunction< - ffi.Pointer Function( - int, double, bool, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Double, ffi.Bool, + ffi.Pointer)>>('BackgroundSubtractorMOG2_CreateWithParams'); + late final _BackgroundSubtractorMOG2_CreateWithParams = _BackgroundSubtractorMOG2_CreateWithParamsPtr + .asFunction Function(int, double, bool, ffi.Pointer)>(); ffi.Pointer BilateralFilter( Mat src, @@ -2046,12 +1812,11 @@ class CvNative { ); } - late final _BilateralFilterPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Double, ffi.Double)>>('BilateralFilter'); - late final _BilateralFilter = _BilateralFilterPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, double, double)>(); + late final _BilateralFilterPtr = + _lookup Function(Mat, Mat, ffi.Int, ffi.Double, ffi.Double)>>( + 'BilateralFilter'); + late final _BilateralFilter = + _BilateralFilterPtr.asFunction Function(Mat, Mat, int, double, double)>(); void BlockMeanHash_Close( BlockMeanHashPtr self, @@ -2062,10 +1827,8 @@ class CvNative { } late final _BlockMeanHash_ClosePtr = - _lookup>( - 'BlockMeanHash_Close'); - late final _BlockMeanHash_Close = - _BlockMeanHash_ClosePtr.asFunction(); + _lookup>('BlockMeanHash_Close'); + late final _BlockMeanHash_Close = _BlockMeanHash_ClosePtr.asFunction(); ffi.Pointer BlockMeanHash_Compare( BlockMeanHash self, @@ -2082,12 +1845,11 @@ class CvNative { } late final _BlockMeanHash_ComparePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(BlockMeanHash, Mat, Mat, - ffi.Pointer)>>('BlockMeanHash_Compare'); + ffi + .NativeFunction Function(BlockMeanHash, Mat, Mat, ffi.Pointer)>>( + 'BlockMeanHash_Compare'); late final _BlockMeanHash_Compare = _BlockMeanHash_ComparePtr.asFunction< - ffi.Pointer Function( - BlockMeanHash, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function(BlockMeanHash, Mat, Mat, ffi.Pointer)>(); ffi.Pointer BlockMeanHash_Compute( BlockMeanHash self, @@ -2101,12 +1863,11 @@ class CvNative { ); } - late final _BlockMeanHash_ComputePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - BlockMeanHash, Mat, Mat)>>('BlockMeanHash_Compute'); - late final _BlockMeanHash_Compute = _BlockMeanHash_ComputePtr.asFunction< - ffi.Pointer Function(BlockMeanHash, Mat, Mat)>(); + late final _BlockMeanHash_ComputePtr = + _lookup Function(BlockMeanHash, Mat, Mat)>>( + 'BlockMeanHash_Compute'); + late final _BlockMeanHash_Compute = + _BlockMeanHash_ComputePtr.asFunction Function(BlockMeanHash, Mat, Mat)>(); ffi.Pointer BlockMeanHash_Create( int mode, @@ -2118,12 +1879,11 @@ class CvNative { ); } - late final _BlockMeanHash_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, ffi.Pointer)>>('BlockMeanHash_Create'); - late final _BlockMeanHash_Create = _BlockMeanHash_CreatePtr.asFunction< - ffi.Pointer Function(int, ffi.Pointer)>(); + late final _BlockMeanHash_CreatePtr = + _lookup Function(ffi.Int, ffi.Pointer)>>( + 'BlockMeanHash_Create'); + late final _BlockMeanHash_Create = + _BlockMeanHash_CreatePtr.asFunction Function(int, ffi.Pointer)>(); ffi.Pointer BlockMeanHash_GetMean( BlockMeanHash self, @@ -2139,13 +1899,11 @@ class CvNative { late final _BlockMeanHash_GetMeanPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - BlockMeanHash, - ffi.Pointer>, + ffi.Pointer Function(BlockMeanHash, ffi.Pointer>, ffi.Pointer)>>('BlockMeanHash_GetMean'); late final _BlockMeanHash_GetMean = _BlockMeanHash_GetMeanPtr.asFunction< - ffi.Pointer Function(BlockMeanHash, - ffi.Pointer>, ffi.Pointer)>(); + ffi.Pointer Function( + BlockMeanHash, ffi.Pointer>, ffi.Pointer)>(); ffi.Pointer BlockMeanHash_SetMode( BlockMeanHash self, @@ -2157,12 +1915,11 @@ class CvNative { ); } - late final _BlockMeanHash_SetModePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - BlockMeanHash, ffi.Int)>>('BlockMeanHash_SetMode'); - late final _BlockMeanHash_SetMode = _BlockMeanHash_SetModePtr.asFunction< - ffi.Pointer Function(BlockMeanHash, int)>(); + late final _BlockMeanHash_SetModePtr = + _lookup Function(BlockMeanHash, ffi.Int)>>( + 'BlockMeanHash_SetMode'); + late final _BlockMeanHash_SetMode = + _BlockMeanHash_SetModePtr.asFunction Function(BlockMeanHash, int)>(); ffi.Pointer Blur( Mat src, @@ -2176,11 +1933,8 @@ class CvNative { ); } - late final _BlurPtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, Size)>>('Blur'); - late final _Blur = - _BlurPtr.asFunction Function(Mat, Mat, Size)>(); + late final _BlurPtr = _lookup Function(Mat, Mat, Size)>>('Blur'); + late final _Blur = _BlurPtr.asFunction Function(Mat, Mat, Size)>(); ffi.Pointer BoundingRect( VecPoint pts, @@ -2192,12 +1946,11 @@ class CvNative { ); } - late final _BoundingRectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('BoundingRect'); - late final _BoundingRect = _BoundingRectPtr.asFunction< - ffi.Pointer Function(VecPoint, ffi.Pointer)>(); + late final _BoundingRectPtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'BoundingRect'); + late final _BoundingRect = + _BoundingRectPtr.asFunction Function(VecPoint, ffi.Pointer)>(); ffi.Pointer BoxFilter( Mat src, @@ -2213,12 +1966,9 @@ class CvNative { ); } - late final _BoxFilterPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, Size)>>('BoxFilter'); - late final _BoxFilter = _BoxFilterPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, Size)>(); + late final _BoxFilterPtr = + _lookup Function(Mat, Mat, ffi.Int, Size)>>('BoxFilter'); + late final _BoxFilter = _BoxFilterPtr.asFunction Function(Mat, Mat, int, Size)>(); ffi.Pointer BoxPoints( RotatedRect rect, @@ -2230,12 +1980,11 @@ class CvNative { ); } - late final _BoxPointsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - RotatedRect, ffi.Pointer)>>('BoxPoints'); - late final _BoxPoints = _BoxPointsPtr.asFunction< - ffi.Pointer Function(RotatedRect, ffi.Pointer)>(); + late final _BoxPointsPtr = + _lookup Function(RotatedRect, ffi.Pointer)>>( + 'BoxPoints'); + late final _BoxPoints = + _BoxPointsPtr.asFunction Function(RotatedRect, ffi.Pointer)>(); ffi.Pointer CLAHE_Apply( CLAHE c, @@ -2249,11 +1998,9 @@ class CvNative { ); } - late final _CLAHE_ApplyPtr = _lookup< - ffi.NativeFunction Function(CLAHE, Mat, Mat)>>( - 'CLAHE_Apply'); - late final _CLAHE_Apply = _CLAHE_ApplyPtr.asFunction< - ffi.Pointer Function(CLAHE, Mat, Mat)>(); + late final _CLAHE_ApplyPtr = + _lookup Function(CLAHE, Mat, Mat)>>('CLAHE_Apply'); + late final _CLAHE_Apply = _CLAHE_ApplyPtr.asFunction Function(CLAHE, Mat, Mat)>(); void CLAHE_Close( CLAHEPtr c, @@ -2263,10 +2010,8 @@ class CvNative { ); } - late final _CLAHE_ClosePtr = - _lookup>('CLAHE_Close'); - late final _CLAHE_Close = - _CLAHE_ClosePtr.asFunction(); + late final _CLAHE_ClosePtr = _lookup>('CLAHE_Close'); + late final _CLAHE_Close = _CLAHE_ClosePtr.asFunction(); ffi.Pointer CLAHE_CollectGarbage( CLAHE c, @@ -2277,10 +2022,9 @@ class CvNative { } late final _CLAHE_CollectGarbagePtr = - _lookup Function(CLAHE)>>( - 'CLAHE_CollectGarbage'); - late final _CLAHE_CollectGarbage = _CLAHE_CollectGarbagePtr.asFunction< - ffi.Pointer Function(CLAHE)>(); + _lookup Function(CLAHE)>>('CLAHE_CollectGarbage'); + late final _CLAHE_CollectGarbage = + _CLAHE_CollectGarbagePtr.asFunction Function(CLAHE)>(); ffi.Pointer CLAHE_Create( ffi.Pointer rval, @@ -2290,11 +2034,10 @@ class CvNative { ); } - late final _CLAHE_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('CLAHE_Create'); - late final _CLAHE_Create = _CLAHE_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _CLAHE_CreatePtr = + _lookup Function(ffi.Pointer)>>('CLAHE_Create'); + late final _CLAHE_Create = + _CLAHE_CreatePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer CLAHE_CreateWithParams( double clipLimit, @@ -2308,10 +2051,9 @@ class CvNative { ); } - late final _CLAHE_CreateWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Double, Size, ffi.Pointer)>>('CLAHE_CreateWithParams'); + late final _CLAHE_CreateWithParamsPtr = + _lookup Function(ffi.Double, Size, ffi.Pointer)>>( + 'CLAHE_CreateWithParams'); late final _CLAHE_CreateWithParams = _CLAHE_CreateWithParamsPtr.asFunction< ffi.Pointer Function(double, Size, ffi.Pointer)>(); @@ -2325,12 +2067,11 @@ class CvNative { ); } - late final _CLAHE_GetClipLimitPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - CLAHE, ffi.Pointer)>>('CLAHE_GetClipLimit'); - late final _CLAHE_GetClipLimit = _CLAHE_GetClipLimitPtr.asFunction< - ffi.Pointer Function(CLAHE, ffi.Pointer)>(); + late final _CLAHE_GetClipLimitPtr = + _lookup Function(CLAHE, ffi.Pointer)>>( + 'CLAHE_GetClipLimit'); + late final _CLAHE_GetClipLimit = + _CLAHE_GetClipLimitPtr.asFunction Function(CLAHE, ffi.Pointer)>(); ffi.Pointer CLAHE_GetTilesGridSize( CLAHE c, @@ -2342,12 +2083,11 @@ class CvNative { ); } - late final _CLAHE_GetTilesGridSizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - CLAHE, ffi.Pointer)>>('CLAHE_GetTilesGridSize'); - late final _CLAHE_GetTilesGridSize = _CLAHE_GetTilesGridSizePtr.asFunction< - ffi.Pointer Function(CLAHE, ffi.Pointer)>(); + late final _CLAHE_GetTilesGridSizePtr = + _lookup Function(CLAHE, ffi.Pointer)>>( + 'CLAHE_GetTilesGridSize'); + late final _CLAHE_GetTilesGridSize = + _CLAHE_GetTilesGridSizePtr.asFunction Function(CLAHE, ffi.Pointer)>(); ffi.Pointer CLAHE_SetClipLimit( CLAHE c, @@ -2359,12 +2099,10 @@ class CvNative { ); } - late final _CLAHE_SetClipLimitPtr = _lookup< - ffi - .NativeFunction Function(CLAHE, ffi.Double)>>( - 'CLAHE_SetClipLimit'); - late final _CLAHE_SetClipLimit = _CLAHE_SetClipLimitPtr.asFunction< - ffi.Pointer Function(CLAHE, double)>(); + late final _CLAHE_SetClipLimitPtr = + _lookup Function(CLAHE, ffi.Double)>>('CLAHE_SetClipLimit'); + late final _CLAHE_SetClipLimit = + _CLAHE_SetClipLimitPtr.asFunction Function(CLAHE, double)>(); ffi.Pointer CLAHE_SetTilesGridSize( CLAHE c, @@ -2377,10 +2115,9 @@ class CvNative { } late final _CLAHE_SetTilesGridSizePtr = - _lookup Function(CLAHE, Size)>>( - 'CLAHE_SetTilesGridSize'); - late final _CLAHE_SetTilesGridSize = _CLAHE_SetTilesGridSizePtr.asFunction< - ffi.Pointer Function(CLAHE, Size)>(); + _lookup Function(CLAHE, Size)>>('CLAHE_SetTilesGridSize'); + late final _CLAHE_SetTilesGridSize = + _CLAHE_SetTilesGridSizePtr.asFunction Function(CLAHE, Size)>(); ffi.Pointer CalcBackProject( VecMat mats, @@ -2401,12 +2138,10 @@ class CvNative { } late final _CalcBackProjectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecMat, VecInt, Mat, Mat, VecFloat, - ffi.Bool)>>('CalcBackProject'); + ffi.NativeFunction Function(VecMat, VecInt, Mat, Mat, VecFloat, ffi.Bool)>>( + 'CalcBackProject'); late final _CalcBackProject = _CalcBackProjectPtr.asFunction< - ffi.Pointer Function( - VecMat, VecInt, Mat, Mat, VecFloat, bool)>(); + ffi.Pointer Function(VecMat, VecInt, Mat, Mat, VecFloat, bool)>(); ffi.Pointer CalcHist( VecMat mats, @@ -2430,11 +2165,9 @@ class CvNative { late final _CalcHistPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecMat, VecInt, Mat, Mat, VecInt, - VecFloat, ffi.Bool)>>('CalcHist'); + ffi.Pointer Function(VecMat, VecInt, Mat, Mat, VecInt, VecFloat, ffi.Bool)>>('CalcHist'); late final _CalcHist = _CalcHistPtr.asFunction< - ffi.Pointer Function( - VecMat, VecInt, Mat, Mat, VecInt, VecFloat, bool)>(); + ffi.Pointer Function(VecMat, VecInt, Mat, Mat, VecInt, VecFloat, bool)>(); ffi.Pointer CalcOpticalFlowFarneback( Mat prevImg, @@ -2464,21 +2197,10 @@ class CvNative { late final _CalcOpticalFlowFarnebackPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - Mat, - Mat, - ffi.Double, - ffi.Int, - ffi.Int, - ffi.Int, - ffi.Int, - ffi.Double, - ffi.Int)>>('CalcOpticalFlowFarneback'); - late final _CalcOpticalFlowFarneback = - _CalcOpticalFlowFarnebackPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Mat, double, int, int, int, int, double, int)>(); + ffi.Pointer Function(Mat, Mat, Mat, ffi.Double, ffi.Int, ffi.Int, ffi.Int, ffi.Int, + ffi.Double, ffi.Int)>>('CalcOpticalFlowFarneback'); + late final _CalcOpticalFlowFarneback = _CalcOpticalFlowFarnebackPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, double, int, int, int, int, double, int)>(); ffi.Pointer CalcOpticalFlowPyrLK( Mat prevImg, @@ -2500,11 +2222,10 @@ class CvNative { late final _CalcOpticalFlowPyrLKPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, VecPoint2f, VecPoint2f, - VecUChar, VecFloat)>>('CalcOpticalFlowPyrLK'); + ffi.Pointer Function( + Mat, Mat, VecPoint2f, VecPoint2f, VecUChar, VecFloat)>>('CalcOpticalFlowPyrLK'); late final _CalcOpticalFlowPyrLK = _CalcOpticalFlowPyrLKPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, VecPoint2f, VecPoint2f, VecUChar, VecFloat)>(); + ffi.Pointer Function(Mat, Mat, VecPoint2f, VecPoint2f, VecUChar, VecFloat)>(); ffi.Pointer CalcOpticalFlowPyrLKWithParams( Mat prevImg, @@ -2548,20 +2269,9 @@ class CvNative { TermCriteria, ffi.Int, ffi.Double)>>('CalcOpticalFlowPyrLKWithParams'); - late final _CalcOpticalFlowPyrLKWithParams = - _CalcOpticalFlowPyrLKWithParamsPtr.asFunction< - ffi.Pointer Function( - Mat, - Mat, - VecPoint2f, - VecPoint2f, - ffi.Pointer, - ffi.Pointer, - Size, - int, - TermCriteria, - int, - double)>(); + late final _CalcOpticalFlowPyrLKWithParams = _CalcOpticalFlowPyrLKWithParamsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, VecPoint2f, VecPoint2f, ffi.Pointer, + ffi.Pointer, Size, int, TermCriteria, int, double)>(); ffi.Pointer CalibrateCamera( VecVecPoint3f objectPoints, @@ -2591,20 +2301,11 @@ class CvNative { late final _CalibrateCameraPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecVecPoint3f, - VecVecPoint2f, - Size, - Mat, - Mat, - Mat, - Mat, - ffi.Int, - TermCriteria, - ffi.Pointer)>>('CalibrateCamera'); + ffi.Pointer Function(VecVecPoint3f, VecVecPoint2f, Size, Mat, Mat, Mat, Mat, ffi.Int, + TermCriteria, ffi.Pointer)>>('CalibrateCamera'); late final _CalibrateCamera = _CalibrateCameraPtr.asFunction< - ffi.Pointer Function(VecVecPoint3f, VecVecPoint2f, Size, Mat, - Mat, Mat, Mat, int, TermCriteria, ffi.Pointer)>(); + ffi.Pointer Function(VecVecPoint3f, VecVecPoint2f, Size, Mat, Mat, Mat, Mat, int, + TermCriteria, ffi.Pointer)>(); ffi.Pointer Canny( Mat src, @@ -2626,10 +2327,9 @@ class CvNative { late final _CannyPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Double, ffi.Double, ffi.Int, ffi.Bool)>>('Canny'); - late final _Canny = _CannyPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, double, int, bool)>(); + ffi.Pointer Function(Mat, Mat, ffi.Double, ffi.Double, ffi.Int, ffi.Bool)>>('Canny'); + late final _Canny = + _CannyPtr.asFunction Function(Mat, Mat, double, double, int, bool)>(); void CascadeClassifier_Close( CascadeClassifierPtr self, @@ -2640,10 +2340,9 @@ class CvNative { } late final _CascadeClassifier_ClosePtr = - _lookup>( - 'CascadeClassifier_Close'); - late final _CascadeClassifier_Close = _CascadeClassifier_ClosePtr.asFunction< - void Function(CascadeClassifierPtr)>(); + _lookup>('CascadeClassifier_Close'); + late final _CascadeClassifier_Close = + _CascadeClassifier_ClosePtr.asFunction(); ffi.Pointer CascadeClassifier_DetectMultiScale( CascadeClassifier self, @@ -2658,13 +2357,10 @@ class CvNative { } late final _CascadeClassifier_DetectMultiScalePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, Mat, - ffi.Pointer)>>('CascadeClassifier_DetectMultiScale'); - late final _CascadeClassifier_DetectMultiScale = - _CascadeClassifier_DetectMultiScalePtr.asFunction< - ffi.Pointer Function( - CascadeClassifier, Mat, ffi.Pointer)>(); + ffi.NativeFunction Function(CascadeClassifier, Mat, ffi.Pointer)>>( + 'CascadeClassifier_DetectMultiScale'); + late final _CascadeClassifier_DetectMultiScale = _CascadeClassifier_DetectMultiScalePtr.asFunction< + ffi.Pointer Function(CascadeClassifier, Mat, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_DetectMultiScale2( CascadeClassifier self, @@ -2692,28 +2388,11 @@ class CvNative { late final _CascadeClassifier_DetectMultiScale2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - CascadeClassifier, - Mat, - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Int, - ffi.Int, - Size, - Size)>>('CascadeClassifier_DetectMultiScale2'); - late final _CascadeClassifier_DetectMultiScale2 = - _CascadeClassifier_DetectMultiScale2Ptr.asFunction< - ffi.Pointer Function( - CascadeClassifier, - Mat, - ffi.Pointer, - ffi.Pointer, - double, - int, - int, - Size, - Size)>(); + ffi.Pointer Function(CascadeClassifier, Mat, ffi.Pointer, ffi.Pointer, + ffi.Double, ffi.Int, ffi.Int, Size, Size)>>('CascadeClassifier_DetectMultiScale2'); + late final _CascadeClassifier_DetectMultiScale2 = _CascadeClassifier_DetectMultiScale2Ptr.asFunction< + ffi.Pointer Function( + CascadeClassifier, Mat, ffi.Pointer, ffi.Pointer, double, int, int, Size, Size)>(); ffi.Pointer CascadeClassifier_DetectMultiScale2_Async( CascadeClassifier self, @@ -2739,19 +2418,12 @@ class CvNative { late final _CascadeClassifier_DetectMultiScale2_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - CascadeClassifier, - Mat, - ffi.Double, - ffi.Int, - ffi.Int, - Size, - Size, + ffi.Pointer Function(CascadeClassifier, Mat, ffi.Double, ffi.Int, ffi.Int, Size, Size, CvCallback_2)>>('CascadeClassifier_DetectMultiScale2_Async'); late final _CascadeClassifier_DetectMultiScale2_Async = _CascadeClassifier_DetectMultiScale2_AsyncPtr.asFunction< - ffi.Pointer Function(CascadeClassifier, Mat, double, int, - int, Size, Size, CvCallback_2)>(); + ffi.Pointer Function( + CascadeClassifier, Mat, double, int, int, Size, Size, CvCallback_2)>(); ffi.Pointer CascadeClassifier_DetectMultiScale3( CascadeClassifier self, @@ -2795,20 +2467,9 @@ class CvNative { Size, Size, ffi.Bool)>>('CascadeClassifier_DetectMultiScale3'); - late final _CascadeClassifier_DetectMultiScale3 = - _CascadeClassifier_DetectMultiScale3Ptr.asFunction< - ffi.Pointer Function( - CascadeClassifier, - Mat, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - double, - int, - int, - Size, - Size, - bool)>(); + late final _CascadeClassifier_DetectMultiScale3 = _CascadeClassifier_DetectMultiScale3Ptr.asFunction< + ffi.Pointer Function(CascadeClassifier, Mat, ffi.Pointer, ffi.Pointer, + ffi.Pointer, double, int, int, Size, Size, bool)>(); ffi.Pointer CascadeClassifier_DetectMultiScale3_Async( CascadeClassifier self, @@ -2836,20 +2497,12 @@ class CvNative { late final _CascadeClassifier_DetectMultiScale3_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - CascadeClassifier, - Mat, - ffi.Double, - ffi.Int, - ffi.Int, - Size, - Size, - ffi.Bool, - CvCallback_3)>>('CascadeClassifier_DetectMultiScale3_Async'); + ffi.Pointer Function(CascadeClassifier, Mat, ffi.Double, ffi.Int, ffi.Int, Size, Size, + ffi.Bool, CvCallback_3)>>('CascadeClassifier_DetectMultiScale3_Async'); late final _CascadeClassifier_DetectMultiScale3_Async = _CascadeClassifier_DetectMultiScale3_AsyncPtr.asFunction< - ffi.Pointer Function(CascadeClassifier, Mat, double, int, - int, Size, Size, bool, CvCallback_3)>(); + ffi.Pointer Function( + CascadeClassifier, Mat, double, int, int, Size, Size, bool, CvCallback_3)>(); ffi.Pointer CascadeClassifier_DetectMultiScaleWithParams( CascadeClassifier self, @@ -2875,19 +2528,12 @@ class CvNative { late final _CascadeClassifier_DetectMultiScaleWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - CascadeClassifier, - Mat, - ffi.Pointer, - ffi.Double, - ffi.Int, - ffi.Int, - Size, - Size)>>('CascadeClassifier_DetectMultiScaleWithParams'); + ffi.Pointer Function(CascadeClassifier, Mat, ffi.Pointer, ffi.Double, ffi.Int, + ffi.Int, Size, Size)>>('CascadeClassifier_DetectMultiScaleWithParams'); late final _CascadeClassifier_DetectMultiScaleWithParams = _CascadeClassifier_DetectMultiScaleWithParamsPtr.asFunction< - ffi.Pointer Function(CascadeClassifier, Mat, - ffi.Pointer, double, int, int, Size, Size)>(); + ffi.Pointer Function( + CascadeClassifier, Mat, ffi.Pointer, double, int, int, Size, Size)>(); ffi.Pointer CascadeClassifier_DetectMultiScaleWithParams_Async( CascadeClassifier self, @@ -2912,14 +2558,13 @@ class CvNative { } late final _CascadeClassifier_DetectMultiScaleWithParams_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, Mat, ffi.Double, - ffi.Int, ffi.Int, Size, Size, CvCallback_1)>>( - 'CascadeClassifier_DetectMultiScaleWithParams_Async'); + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, Mat, ffi.Double, ffi.Int, ffi.Int, Size, Size, + CvCallback_1)>>('CascadeClassifier_DetectMultiScaleWithParams_Async'); late final _CascadeClassifier_DetectMultiScaleWithParams_Async = _CascadeClassifier_DetectMultiScaleWithParams_AsyncPtr.asFunction< - ffi.Pointer Function(CascadeClassifier, Mat, double, int, - int, Size, Size, CvCallback_1)>(); + ffi.Pointer Function( + CascadeClassifier, Mat, double, int, int, Size, Size, CvCallback_1)>(); ffi.Pointer CascadeClassifier_DetectMultiScale_Async( CascadeClassifier self, @@ -2933,14 +2578,11 @@ class CvNative { ); } - late final _CascadeClassifier_DetectMultiScale_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, Mat, - CvCallback_1)>>('CascadeClassifier_DetectMultiScale_Async'); - late final _CascadeClassifier_DetectMultiScale_Async = - _CascadeClassifier_DetectMultiScale_AsyncPtr.asFunction< - ffi.Pointer Function( - CascadeClassifier, Mat, CvCallback_1)>(); + late final _CascadeClassifier_DetectMultiScale_AsyncPtr = + _lookup Function(CascadeClassifier, Mat, CvCallback_1)>>( + 'CascadeClassifier_DetectMultiScale_Async'); + late final _CascadeClassifier_DetectMultiScale_Async = _CascadeClassifier_DetectMultiScale_AsyncPtr + .asFunction Function(CascadeClassifier, Mat, CvCallback_1)>(); ffi.Pointer CascadeClassifier_Empty( CascadeClassifier self, @@ -2952,13 +2594,11 @@ class CvNative { ); } - late final _CascadeClassifier_EmptyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, - ffi.Pointer)>>('CascadeClassifier_Empty'); + late final _CascadeClassifier_EmptyPtr = + _lookup Function(CascadeClassifier, ffi.Pointer)>>( + 'CascadeClassifier_Empty'); late final _CascadeClassifier_Empty = _CascadeClassifier_EmptyPtr.asFunction< - ffi.Pointer Function( - CascadeClassifier, ffi.Pointer)>(); + ffi.Pointer Function(CascadeClassifier, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_Empty_Async( CascadeClassifier self, @@ -2970,13 +2610,11 @@ class CvNative { ); } - late final _CascadeClassifier_Empty_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, - CvCallback_1)>>('CascadeClassifier_Empty_Async'); - late final _CascadeClassifier_Empty_Async = - _CascadeClassifier_Empty_AsyncPtr.asFunction< - ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); + late final _CascadeClassifier_Empty_AsyncPtr = + _lookup Function(CascadeClassifier, CvCallback_1)>>( + 'CascadeClassifier_Empty_Async'); + late final _CascadeClassifier_Empty_Async = _CascadeClassifier_Empty_AsyncPtr.asFunction< + ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); ffi.Pointer CascadeClassifier_Load( CascadeClassifier self, @@ -2993,12 +2631,9 @@ class CvNative { late final _CascadeClassifier_LoadPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - CascadeClassifier, - ffi.Pointer, - ffi.Pointer)>>('CascadeClassifier_Load'); + CascadeClassifier, ffi.Pointer, ffi.Pointer)>>('CascadeClassifier_Load'); late final _CascadeClassifier_Load = _CascadeClassifier_LoadPtr.asFunction< - ffi.Pointer Function( - CascadeClassifier, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(CascadeClassifier, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_Load_Async( CascadeClassifier self, @@ -3015,13 +2650,9 @@ class CvNative { late final _CascadeClassifier_Load_AsyncPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - CascadeClassifier, - ffi.Pointer, - CvCallback_1)>>('CascadeClassifier_Load_Async'); - late final _CascadeClassifier_Load_Async = - _CascadeClassifier_Load_AsyncPtr.asFunction< - ffi.Pointer Function( - CascadeClassifier, ffi.Pointer, CvCallback_1)>(); + CascadeClassifier, ffi.Pointer, CvCallback_1)>>('CascadeClassifier_Load_Async'); + late final _CascadeClassifier_Load_Async = _CascadeClassifier_Load_AsyncPtr.asFunction< + ffi.Pointer Function(CascadeClassifier, ffi.Pointer, CvCallback_1)>(); ffi.Pointer CascadeClassifier_New( ffi.Pointer rval, @@ -3031,12 +2662,11 @@ class CvNative { ); } - late final _CascadeClassifier_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('CascadeClassifier_New'); - late final _CascadeClassifier_New = _CascadeClassifier_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _CascadeClassifier_NewPtr = + _lookup Function(ffi.Pointer)>>( + 'CascadeClassifier_New'); + late final _CascadeClassifier_New = + _CascadeClassifier_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer CascadeClassifier_NewFromFile( ffi.Pointer filename, @@ -3049,14 +2679,11 @@ class CvNative { } late final _CascadeClassifier_NewFromFilePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>( - 'CascadeClassifier_NewFromFile'); - late final _CascadeClassifier_NewFromFile = - _CascadeClassifier_NewFromFilePtr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer)>>('CascadeClassifier_NewFromFile'); + late final _CascadeClassifier_NewFromFile = _CascadeClassifier_NewFromFilePtr.asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_NewFromFile_Async( ffi.Pointer filename, @@ -3068,14 +2695,11 @@ class CvNative { ); } - late final _CascadeClassifier_NewFromFile_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - CvCallback_1)>>('CascadeClassifier_NewFromFile_Async'); - late final _CascadeClassifier_NewFromFile_Async = - _CascadeClassifier_NewFromFile_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, CvCallback_1)>(); + late final _CascadeClassifier_NewFromFile_AsyncPtr = + _lookup Function(ffi.Pointer, CvCallback_1)>>( + 'CascadeClassifier_NewFromFile_Async'); + late final _CascadeClassifier_NewFromFile_Async = _CascadeClassifier_NewFromFile_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, CvCallback_1)>(); ffi.Pointer CascadeClassifier_New_Async( CvCallback_1 callback, @@ -3088,8 +2712,8 @@ class CvNative { late final _CascadeClassifier_New_AsyncPtr = _lookup Function(CvCallback_1)>>( 'CascadeClassifier_New_Async'); - late final _CascadeClassifier_New_Async = _CascadeClassifier_New_AsyncPtr - .asFunction Function(CvCallback_1)>(); + late final _CascadeClassifier_New_Async = + _CascadeClassifier_New_AsyncPtr.asFunction Function(CvCallback_1)>(); ffi.Pointer CascadeClassifier_getFeatureType( CascadeClassifier self, @@ -3101,14 +2725,11 @@ class CvNative { ); } - late final _CascadeClassifier_getFeatureTypePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, - ffi.Pointer)>>('CascadeClassifier_getFeatureType'); - late final _CascadeClassifier_getFeatureType = - _CascadeClassifier_getFeatureTypePtr.asFunction< - ffi.Pointer Function( - CascadeClassifier, ffi.Pointer)>(); + late final _CascadeClassifier_getFeatureTypePtr = + _lookup Function(CascadeClassifier, ffi.Pointer)>>( + 'CascadeClassifier_getFeatureType'); + late final _CascadeClassifier_getFeatureType = _CascadeClassifier_getFeatureTypePtr.asFunction< + ffi.Pointer Function(CascadeClassifier, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_getFeatureType_Async( CascadeClassifier self, @@ -3120,13 +2741,11 @@ class CvNative { ); } - late final _CascadeClassifier_getFeatureType_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, - CvCallback_1)>>('CascadeClassifier_getFeatureType_Async'); - late final _CascadeClassifier_getFeatureType_Async = - _CascadeClassifier_getFeatureType_AsyncPtr.asFunction< - ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); + late final _CascadeClassifier_getFeatureType_AsyncPtr = + _lookup Function(CascadeClassifier, CvCallback_1)>>( + 'CascadeClassifier_getFeatureType_Async'); + late final _CascadeClassifier_getFeatureType_Async = _CascadeClassifier_getFeatureType_AsyncPtr.asFunction< + ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); ffi.Pointer CascadeClassifier_getOriginalWindowSize( CascadeClassifier self, @@ -3138,14 +2757,11 @@ class CvNative { ); } - late final _CascadeClassifier_getOriginalWindowSizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, - ffi.Pointer)>>('CascadeClassifier_getOriginalWindowSize'); - late final _CascadeClassifier_getOriginalWindowSize = - _CascadeClassifier_getOriginalWindowSizePtr.asFunction< - ffi.Pointer Function( - CascadeClassifier, ffi.Pointer)>(); + late final _CascadeClassifier_getOriginalWindowSizePtr = + _lookup Function(CascadeClassifier, ffi.Pointer)>>( + 'CascadeClassifier_getOriginalWindowSize'); + late final _CascadeClassifier_getOriginalWindowSize = _CascadeClassifier_getOriginalWindowSizePtr + .asFunction Function(CascadeClassifier, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_getOriginalWindowSize_Async( CascadeClassifier self, @@ -3157,10 +2773,9 @@ class CvNative { ); } - late final _CascadeClassifier_getOriginalWindowSize_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, - CvCallback_1)>>('CascadeClassifier_getOriginalWindowSize_Async'); + late final _CascadeClassifier_getOriginalWindowSize_AsyncPtr = + _lookup Function(CascadeClassifier, CvCallback_1)>>( + 'CascadeClassifier_getOriginalWindowSize_Async'); late final _CascadeClassifier_getOriginalWindowSize_Async = _CascadeClassifier_getOriginalWindowSize_AsyncPtr.asFunction< ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); @@ -3175,14 +2790,11 @@ class CvNative { ); } - late final _CascadeClassifier_isOldFormatCascadePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, - ffi.Pointer)>>('CascadeClassifier_isOldFormatCascade'); - late final _CascadeClassifier_isOldFormatCascade = - _CascadeClassifier_isOldFormatCascadePtr.asFunction< - ffi.Pointer Function( - CascadeClassifier, ffi.Pointer)>(); + late final _CascadeClassifier_isOldFormatCascadePtr = + _lookup Function(CascadeClassifier, ffi.Pointer)>>( + 'CascadeClassifier_isOldFormatCascade'); + late final _CascadeClassifier_isOldFormatCascade = _CascadeClassifier_isOldFormatCascadePtr.asFunction< + ffi.Pointer Function(CascadeClassifier, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_isOldFormatCascade_Async( CascadeClassifier self, @@ -3194,13 +2806,11 @@ class CvNative { ); } - late final _CascadeClassifier_isOldFormatCascade_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, - CvCallback_1)>>('CascadeClassifier_isOldFormatCascade_Async'); - late final _CascadeClassifier_isOldFormatCascade_Async = - _CascadeClassifier_isOldFormatCascade_AsyncPtr.asFunction< - ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); + late final _CascadeClassifier_isOldFormatCascade_AsyncPtr = + _lookup Function(CascadeClassifier, CvCallback_1)>>( + 'CascadeClassifier_isOldFormatCascade_Async'); + late final _CascadeClassifier_isOldFormatCascade_Async = _CascadeClassifier_isOldFormatCascade_AsyncPtr + .asFunction Function(CascadeClassifier, CvCallback_1)>(); ffi.Pointer Circle( Mat img, @@ -3218,12 +2828,10 @@ class CvNative { ); } - late final _CirclePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Point, ffi.Int, Scalar, ffi.Int)>>('Circle'); - late final _Circle = _CirclePtr.asFunction< - ffi.Pointer Function(Mat, Point, int, Scalar, int)>(); + late final _CirclePtr = + _lookup Function(Mat, Point, ffi.Int, Scalar, ffi.Int)>>( + 'Circle'); + late final _Circle = _CirclePtr.asFunction Function(Mat, Point, int, Scalar, int)>(); ffi.Pointer CircleWithParams( Mat img, @@ -3247,8 +2855,8 @@ class CvNative { late final _CircleWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Point, ffi.Int, Scalar, ffi.Int, - ffi.Int, ffi.Int)>>('CircleWithParams'); + ffi.Pointer Function( + Mat, Point, ffi.Int, Scalar, ffi.Int, ffi.Int, ffi.Int)>>('CircleWithParams'); late final _CircleWithParams = _CircleWithParamsPtr.asFunction< ffi.Pointer Function(Mat, Point, int, Scalar, int, int, int)>(); @@ -3266,13 +2874,11 @@ class CvNative { ); } - late final _ClipLinePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Rect, Point, Point, ffi.Pointer)>>('ClipLine'); - late final _ClipLine = _ClipLinePtr.asFunction< - ffi.Pointer Function( - Rect, Point, Point, ffi.Pointer)>(); + late final _ClipLinePtr = + _lookup Function(Rect, Point, Point, ffi.Pointer)>>( + 'ClipLine'); + late final _ClipLine = + _ClipLinePtr.asFunction Function(Rect, Point, Point, ffi.Pointer)>(); ffi.Pointer ColorChange( Mat src, @@ -3293,11 +2899,10 @@ class CvNative { } late final _ColorChangePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Float, ffi.Float, ffi.Float)>>('ColorChange'); - late final _ColorChange = _ColorChangePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, double, double, double)>(); + ffi.NativeFunction Function(Mat, Mat, Mat, ffi.Float, ffi.Float, ffi.Float)>>( + 'ColorChange'); + late final _ColorChange = + _ColorChangePtr.asFunction Function(Mat, Mat, Mat, double, double, double)>(); ffi.Pointer CompareHist( Mat hist1, @@ -3313,12 +2918,11 @@ class CvNative { ); } - late final _CompareHistPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Pointer)>>('CompareHist'); - late final _CompareHist = _CompareHistPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, ffi.Pointer)>(); + late final _CompareHistPtr = + _lookup Function(Mat, Mat, ffi.Int, ffi.Pointer)>>( + 'CompareHist'); + late final _CompareHist = + _CompareHistPtr.asFunction Function(Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer ConnectedComponents( Mat src, @@ -3340,11 +2944,10 @@ class CvNative { late final _ConnectedComponentsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer)>>('ConnectedComponents'); + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('ConnectedComponents'); late final _ConnectedComponents = _ConnectedComponentsPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer ConnectedComponentsWithStats( Mat src, @@ -3370,12 +2973,10 @@ class CvNative { late final _ConnectedComponentsWithStatsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, ffi.Int, ffi.Int, - ffi.Int, ffi.Pointer)>>('ConnectedComponentsWithStats'); - late final _ConnectedComponentsWithStats = - _ConnectedComponentsWithStatsPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, Mat, Mat, Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer)>>('ConnectedComponentsWithStats'); + late final _ConnectedComponentsWithStats = _ConnectedComponentsWithStatsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer ContourArea( VecPoint pts, @@ -3387,12 +2988,11 @@ class CvNative { ); } - late final _ContourAreaPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('ContourArea'); - late final _ContourArea = _ContourAreaPtr.asFunction< - ffi.Pointer Function(VecPoint, ffi.Pointer)>(); + late final _ContourAreaPtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'ContourArea'); + late final _ContourArea = + _ContourAreaPtr.asFunction Function(VecPoint, ffi.Pointer)>(); ffi.Pointer ConvexHull( VecPoint points, @@ -3408,12 +3008,11 @@ class CvNative { ); } - late final _ConvexHullPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, Mat, ffi.Bool, ffi.Bool)>>('ConvexHull'); - late final _ConvexHull = _ConvexHullPtr.asFunction< - ffi.Pointer Function(VecPoint, Mat, bool, bool)>(); + late final _ConvexHullPtr = + _lookup Function(VecPoint, Mat, ffi.Bool, ffi.Bool)>>( + 'ConvexHull'); + late final _ConvexHull = + _ConvexHullPtr.asFunction Function(VecPoint, Mat, bool, bool)>(); ffi.Pointer ConvexityDefects( VecPoint points, @@ -3427,12 +3026,10 @@ class CvNative { ); } - late final _ConvexityDefectsPtr = _lookup< - ffi - .NativeFunction Function(VecPoint, Mat, Mat)>>( - 'ConvexityDefects'); - late final _ConvexityDefects = _ConvexityDefectsPtr.asFunction< - ffi.Pointer Function(VecPoint, Mat, Mat)>(); + late final _ConvexityDefectsPtr = + _lookup Function(VecPoint, Mat, Mat)>>('ConvexityDefects'); + late final _ConvexityDefects = + _ConvexityDefectsPtr.asFunction Function(VecPoint, Mat, Mat)>(); ffi.Pointer CornerSubPix( Mat img, @@ -3450,13 +3047,11 @@ class CvNative { ); } - late final _CornerSubPixPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, VecPoint2f, Size, Size, TermCriteria)>>('CornerSubPix'); + late final _CornerSubPixPtr = + _lookup Function(Mat, VecPoint2f, Size, Size, TermCriteria)>>( + 'CornerSubPix'); late final _CornerSubPix = _CornerSubPixPtr.asFunction< - ffi.Pointer Function( - Mat, VecPoint2f, Size, Size, TermCriteria)>(); + ffi.Pointer Function(Mat, VecPoint2f, Size, Size, TermCriteria)>(); void CvStatus_Close( ffi.Pointer self, @@ -3467,10 +3062,8 @@ class CvNative { } late final _CvStatus_ClosePtr = - _lookup)>>( - 'CvStatus_Close'); - late final _CvStatus_Close = - _CvStatus_ClosePtr.asFunction)>(); + _lookup)>>('CvStatus_Close'); + late final _CvStatus_Close = _CvStatus_ClosePtr.asFunction)>(); ffi.Pointer CvtColor( Mat src, @@ -3484,11 +3077,9 @@ class CvNative { ); } - late final _CvtColorPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int)>>('CvtColor'); - late final _CvtColor = - _CvtColorPtr.asFunction Function(Mat, Mat, int)>(); + late final _CvtColorPtr = + _lookup Function(Mat, Mat, ffi.Int)>>('CvtColor'); + late final _CvtColor = _CvtColorPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer CvtColor_Async( Mat src, @@ -3502,12 +3093,11 @@ class CvNative { ); } - late final _CvtColor_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, CvCallback_1)>>('CvtColor_Async'); - late final _CvtColor_Async = _CvtColor_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, int, CvCallback_1)>(); + late final _CvtColor_AsyncPtr = + _lookup Function(Mat, ffi.Int, CvCallback_1)>>( + 'CvtColor_Async'); + late final _CvtColor_Async = + _CvtColor_AsyncPtr.asFunction Function(Mat, int, CvCallback_1)>(); ffi.Pointer DetailEnhance( Mat src, @@ -3523,12 +3113,11 @@ class CvNative { ); } - late final _DetailEnhancePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Float, ffi.Float)>>('DetailEnhance'); - late final _DetailEnhance = _DetailEnhancePtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, double)>(); + late final _DetailEnhancePtr = + _lookup Function(Mat, Mat, ffi.Float, ffi.Float)>>( + 'DetailEnhance'); + late final _DetailEnhance = + _DetailEnhancePtr.asFunction Function(Mat, Mat, double, double)>(); ffi.Pointer Dilate( Mat src, @@ -3542,11 +3131,9 @@ class CvNative { ); } - late final _DilatePtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, Mat)>>('Dilate'); - late final _Dilate = - _DilatePtr.asFunction Function(Mat, Mat, Mat)>(); + late final _DilatePtr = + _lookup Function(Mat, Mat, Mat)>>('Dilate'); + late final _Dilate = _DilatePtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer DilateWithParams( Mat src, @@ -3569,9 +3156,8 @@ class CvNative { } late final _DilateWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Point, ffi.Int, ffi.Int, - Scalar)>>('DilateWithParams'); + ffi.NativeFunction Function(Mat, Mat, Mat, Point, ffi.Int, ffi.Int, Scalar)>>( + 'DilateWithParams'); late final _DilateWithParams = _DilateWithParamsPtr.asFunction< ffi.Pointer Function(Mat, Mat, Mat, Point, int, int, Scalar)>(); @@ -3593,12 +3179,11 @@ class CvNative { ); } - late final _DistanceTransformPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Int, ffi.Int, ffi.Int)>>('DistanceTransform'); - late final _DistanceTransform = _DistanceTransformPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, int, int, int)>(); + late final _DistanceTransformPtr = + _lookup Function(Mat, Mat, Mat, ffi.Int, ffi.Int, ffi.Int)>>( + 'DistanceTransform'); + late final _DistanceTransform = + _DistanceTransformPtr.asFunction Function(Mat, Mat, Mat, int, int, int)>(); ffi.Pointer DrawChessboardCorners( Mat image, @@ -3614,12 +3199,11 @@ class CvNative { ); } - late final _DrawChessboardCornersPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Size, Mat, ffi.Bool)>>('DrawChessboardCorners'); - late final _DrawChessboardCorners = _DrawChessboardCornersPtr.asFunction< - ffi.Pointer Function(Mat, Size, Mat, bool)>(); + late final _DrawChessboardCornersPtr = + _lookup Function(Mat, Size, Mat, ffi.Bool)>>( + 'DrawChessboardCorners'); + late final _DrawChessboardCorners = + _DrawChessboardCornersPtr.asFunction Function(Mat, Size, Mat, bool)>(); ffi.Pointer DrawContours( Mat src, @@ -3637,12 +3221,11 @@ class CvNative { ); } - late final _DrawContoursPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, VecVecPoint, ffi.Int, Scalar, ffi.Int)>>('DrawContours'); - late final _DrawContours = _DrawContoursPtr.asFunction< - ffi.Pointer Function(Mat, VecVecPoint, int, Scalar, int)>(); + late final _DrawContoursPtr = + _lookup Function(Mat, VecVecPoint, ffi.Int, Scalar, ffi.Int)>>( + 'DrawContours'); + late final _DrawContours = + _DrawContoursPtr.asFunction Function(Mat, VecVecPoint, int, Scalar, int)>(); ffi.Pointer DrawContoursWithParams( Mat src, @@ -3670,19 +3253,10 @@ class CvNative { late final _DrawContoursWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - VecVecPoint, - ffi.Int, - Scalar, - ffi.Int, - ffi.Int, - Mat, - ffi.Int, + ffi.Pointer Function(Mat, VecVecPoint, ffi.Int, Scalar, ffi.Int, ffi.Int, Mat, ffi.Int, Point)>>('DrawContoursWithParams'); late final _DrawContoursWithParams = _DrawContoursWithParamsPtr.asFunction< - ffi.Pointer Function( - Mat, VecVecPoint, int, Scalar, int, int, Mat, int, Point)>(); + ffi.Pointer Function(Mat, VecVecPoint, int, Scalar, int, int, Mat, int, Point)>(); ffi.Pointer DrawKeyPoints( Mat src, @@ -3700,12 +3274,11 @@ class CvNative { ); } - late final _DrawKeyPointsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, VecKeyPoint, Mat, Scalar, ffi.Int)>>('DrawKeyPoints'); - late final _DrawKeyPoints = _DrawKeyPointsPtr.asFunction< - ffi.Pointer Function(Mat, VecKeyPoint, Mat, Scalar, int)>(); + late final _DrawKeyPointsPtr = + _lookup Function(Mat, VecKeyPoint, Mat, Scalar, ffi.Int)>>( + 'DrawKeyPoints'); + late final _DrawKeyPoints = + _DrawKeyPointsPtr.asFunction Function(Mat, VecKeyPoint, Mat, Scalar, int)>(); ffi.Pointer DrawMatches( Mat img1, @@ -3735,20 +3308,11 @@ class CvNative { late final _DrawMatchesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - VecKeyPoint, - Mat, - VecKeyPoint, - VecDMatch, - Mat, - Scalar, - Scalar, - VecChar, - ffi.Int)>>('DrawMatches'); + ffi.Pointer Function(Mat, VecKeyPoint, Mat, VecKeyPoint, VecDMatch, Mat, Scalar, Scalar, + VecChar, ffi.Int)>>('DrawMatches'); late final _DrawMatches = _DrawMatchesPtr.asFunction< - ffi.Pointer Function(Mat, VecKeyPoint, Mat, VecKeyPoint, - VecDMatch, Mat, Scalar, Scalar, VecChar, int)>(); + ffi.Pointer Function( + Mat, VecKeyPoint, Mat, VecKeyPoint, VecDMatch, Mat, Scalar, Scalar, VecChar, int)>(); ffi.Pointer EdgePreservingFilter( Mat src, @@ -3766,12 +3330,11 @@ class CvNative { ); } - late final _EdgePreservingFilterPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Float, - ffi.Float)>>('EdgePreservingFilter'); - late final _EdgePreservingFilter = _EdgePreservingFilterPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, double, double)>(); + late final _EdgePreservingFilterPtr = + _lookup Function(Mat, Mat, ffi.Int, ffi.Float, ffi.Float)>>( + 'EdgePreservingFilter'); + late final _EdgePreservingFilter = + _EdgePreservingFilterPtr.asFunction Function(Mat, Mat, int, double, double)>(); ffi.Pointer Ellipse( Mat img, @@ -3797,11 +3360,10 @@ class CvNative { late final _EllipsePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Point, Point, ffi.Double, - ffi.Double, ffi.Double, Scalar, ffi.Int)>>('Ellipse'); + ffi.Pointer Function( + Mat, Point, Point, ffi.Double, ffi.Double, ffi.Double, Scalar, ffi.Int)>>('Ellipse'); late final _Ellipse = _EllipsePtr.asFunction< - ffi.Pointer Function( - Mat, Point, Point, double, double, double, Scalar, int)>(); + ffi.Pointer Function(Mat, Point, Point, double, double, double, Scalar, int)>(); ffi.Pointer EllipseWithParams( Mat img, @@ -3831,20 +3393,10 @@ class CvNative { late final _EllipseWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - Point, - Point, - ffi.Double, - ffi.Double, - ffi.Double, - Scalar, - ffi.Int, - ffi.Int, - ffi.Int)>>('EllipseWithParams'); + ffi.Pointer Function(Mat, Point, Point, ffi.Double, ffi.Double, ffi.Double, Scalar, + ffi.Int, ffi.Int, ffi.Int)>>('EllipseWithParams'); late final _EllipseWithParams = _EllipseWithParamsPtr.asFunction< - ffi.Pointer Function( - Mat, Point, Point, double, double, double, Scalar, int, int, int)>(); + ffi.Pointer Function(Mat, Point, Point, double, double, double, Scalar, int, int, int)>(); ffi.Pointer EqualizeHist( Mat src, @@ -3857,10 +3409,8 @@ class CvNative { } late final _EqualizeHistPtr = - _lookup Function(Mat, Mat)>>( - 'EqualizeHist'); - late final _EqualizeHist = - _EqualizeHistPtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('EqualizeHist'); + late final _EqualizeHist = _EqualizeHistPtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Erode( Mat src, @@ -3874,11 +3424,8 @@ class CvNative { ); } - late final _ErodePtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, Mat)>>('Erode'); - late final _Erode = - _ErodePtr.asFunction Function(Mat, Mat, Mat)>(); + late final _ErodePtr = _lookup Function(Mat, Mat, Mat)>>('Erode'); + late final _Erode = _ErodePtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer ErodeWithParams( Mat src, @@ -3901,9 +3448,8 @@ class CvNative { } late final _ErodeWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Point, ffi.Int, ffi.Int, - Scalar)>>('ErodeWithParams'); + ffi.NativeFunction Function(Mat, Mat, Mat, Point, ffi.Int, ffi.Int, Scalar)>>( + 'ErodeWithParams'); late final _ErodeWithParams = _ErodeWithParamsPtr.asFunction< ffi.Pointer Function(Mat, Mat, Mat, Point, int, int, Scalar)>(); @@ -3919,13 +3465,11 @@ class CvNative { ); } - late final _EstimateAffine2DPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint2f, VecPoint2f, ffi.Pointer)>>('EstimateAffine2D'); + late final _EstimateAffine2DPtr = + _lookup Function(VecPoint2f, VecPoint2f, ffi.Pointer)>>( + 'EstimateAffine2D'); late final _EstimateAffine2D = _EstimateAffine2DPtr.asFunction< - ffi.Pointer Function( - VecPoint2f, VecPoint2f, ffi.Pointer)>(); + ffi.Pointer Function(VecPoint2f, VecPoint2f, ffi.Pointer)>(); ffi.Pointer EstimateAffine2DWithParams( VecPoint2f from, @@ -3953,20 +3497,11 @@ class CvNative { late final _EstimateAffine2DWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecPoint2f, - VecPoint2f, - Mat, - ffi.Int, - ffi.Double, - ffi.Size, - ffi.Double, - ffi.Size, - ffi.Pointer)>>('EstimateAffine2DWithParams'); - late final _EstimateAffine2DWithParams = - _EstimateAffine2DWithParamsPtr.asFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, Mat, int, - double, int, double, int, ffi.Pointer)>(); + ffi.Pointer Function(VecPoint2f, VecPoint2f, Mat, ffi.Int, ffi.Double, ffi.Size, + ffi.Double, ffi.Size, ffi.Pointer)>>('EstimateAffine2DWithParams'); + late final _EstimateAffine2DWithParams = _EstimateAffine2DWithParamsPtr.asFunction< + ffi.Pointer Function( + VecPoint2f, VecPoint2f, Mat, int, double, int, double, int, ffi.Pointer)>(); ffi.Pointer EstimateAffinePartial2D( VecPoint2f from, @@ -3980,13 +3515,11 @@ class CvNative { ); } - late final _EstimateAffinePartial2DPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, - ffi.Pointer)>>('EstimateAffinePartial2D'); + late final _EstimateAffinePartial2DPtr = + _lookup Function(VecPoint2f, VecPoint2f, ffi.Pointer)>>( + 'EstimateAffinePartial2D'); late final _EstimateAffinePartial2D = _EstimateAffinePartial2DPtr.asFunction< - ffi.Pointer Function( - VecPoint2f, VecPoint2f, ffi.Pointer)>(); + ffi.Pointer Function(VecPoint2f, VecPoint2f, ffi.Pointer)>(); ffi.Pointer EstimateAffinePartial2DWithParams( VecPoint2f from, @@ -4014,20 +3547,11 @@ class CvNative { late final _EstimateAffinePartial2DWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecPoint2f, - VecPoint2f, - Mat, - ffi.Int, - ffi.Double, - ffi.Size, - ffi.Double, - ffi.Size, - ffi.Pointer)>>('EstimateAffinePartial2DWithParams'); - late final _EstimateAffinePartial2DWithParams = - _EstimateAffinePartial2DWithParamsPtr.asFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, Mat, int, - double, int, double, int, ffi.Pointer)>(); + ffi.Pointer Function(VecPoint2f, VecPoint2f, Mat, ffi.Int, ffi.Double, ffi.Size, + ffi.Double, ffi.Size, ffi.Pointer)>>('EstimateAffinePartial2DWithParams'); + late final _EstimateAffinePartial2DWithParams = _EstimateAffinePartial2DWithParamsPtr.asFunction< + ffi.Pointer Function( + VecPoint2f, VecPoint2f, Mat, int, double, int, double, int, ffi.Pointer)>(); ffi.Pointer Eye( int rows, @@ -4044,11 +3568,8 @@ class CvNative { } late final _EyePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Eye'); - late final _Eye = _EyePtr.asFunction< - ffi.Pointer Function(int, int, int, ffi.Pointer)>(); + ffi.NativeFunction Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Eye'); + late final _Eye = _EyePtr.asFunction Function(int, int, int, ffi.Pointer)>(); void FaceDetectorYN_Close( FaceDetectorYNPtr self, @@ -4059,10 +3580,8 @@ class CvNative { } late final _FaceDetectorYN_ClosePtr = - _lookup>( - 'FaceDetectorYN_Close'); - late final _FaceDetectorYN_Close = - _FaceDetectorYN_ClosePtr.asFunction(); + _lookup>('FaceDetectorYN_Close'); + late final _FaceDetectorYN_Close = _FaceDetectorYN_ClosePtr.asFunction(); ffi.Pointer FaceDetectorYN_Detect( FaceDetectorYN self, @@ -4076,10 +3595,9 @@ class CvNative { ); } - late final _FaceDetectorYN_DetectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - FaceDetectorYN, Mat, ffi.Pointer)>>('FaceDetectorYN_Detect'); + late final _FaceDetectorYN_DetectPtr = + _lookup Function(FaceDetectorYN, Mat, ffi.Pointer)>>( + 'FaceDetectorYN_Detect'); late final _FaceDetectorYN_Detect = _FaceDetectorYN_DetectPtr.asFunction< ffi.Pointer Function(FaceDetectorYN, Mat, ffi.Pointer)>(); @@ -4095,13 +3613,11 @@ class CvNative { ); } - late final _FaceDetectorYN_Detect_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceDetectorYN, Mat, - CvCallback_1)>>('FaceDetectorYN_Detect_Async'); - late final _FaceDetectorYN_Detect_Async = - _FaceDetectorYN_Detect_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, Mat, CvCallback_1)>(); + late final _FaceDetectorYN_Detect_AsyncPtr = + _lookup Function(FaceDetectorYN, Mat, CvCallback_1)>>( + 'FaceDetectorYN_Detect_Async'); + late final _FaceDetectorYN_Detect_Async = _FaceDetectorYN_Detect_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, Mat, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_GetInputSize( FaceDetectorYN self, @@ -4113,13 +3629,11 @@ class CvNative { ); } - late final _FaceDetectorYN_GetInputSizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceDetectorYN, - ffi.Pointer)>>('FaceDetectorYN_GetInputSize'); - late final _FaceDetectorYN_GetInputSize = - _FaceDetectorYN_GetInputSizePtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, ffi.Pointer)>(); + late final _FaceDetectorYN_GetInputSizePtr = + _lookup Function(FaceDetectorYN, ffi.Pointer)>>( + 'FaceDetectorYN_GetInputSize'); + late final _FaceDetectorYN_GetInputSize = _FaceDetectorYN_GetInputSizePtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, ffi.Pointer)>(); ffi.Pointer FaceDetectorYN_GetInputSize_Async( FaceDetectorYN self, @@ -4131,13 +3645,11 @@ class CvNative { ); } - late final _FaceDetectorYN_GetInputSize_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceDetectorYN, - CvCallback_1)>>('FaceDetectorYN_GetInputSize_Async'); - late final _FaceDetectorYN_GetInputSize_Async = - _FaceDetectorYN_GetInputSize_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); + late final _FaceDetectorYN_GetInputSize_AsyncPtr = + _lookup Function(FaceDetectorYN, CvCallback_1)>>( + 'FaceDetectorYN_GetInputSize_Async'); + late final _FaceDetectorYN_GetInputSize_Async = _FaceDetectorYN_GetInputSize_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_GetNMSThreshold( FaceDetectorYN self, @@ -4149,14 +3661,11 @@ class CvNative { ); } - late final _FaceDetectorYN_GetNMSThresholdPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceDetectorYN, - ffi.Pointer)>>('FaceDetectorYN_GetNMSThreshold'); - late final _FaceDetectorYN_GetNMSThreshold = - _FaceDetectorYN_GetNMSThresholdPtr.asFunction< - ffi.Pointer Function( - FaceDetectorYN, ffi.Pointer)>(); + late final _FaceDetectorYN_GetNMSThresholdPtr = + _lookup Function(FaceDetectorYN, ffi.Pointer)>>( + 'FaceDetectorYN_GetNMSThreshold'); + late final _FaceDetectorYN_GetNMSThreshold = _FaceDetectorYN_GetNMSThresholdPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, ffi.Pointer)>(); ffi.Pointer FaceDetectorYN_GetNMSThreshold_Async( FaceDetectorYN self, @@ -4168,13 +3677,11 @@ class CvNative { ); } - late final _FaceDetectorYN_GetNMSThreshold_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceDetectorYN, - CvCallback_1)>>('FaceDetectorYN_GetNMSThreshold_Async'); - late final _FaceDetectorYN_GetNMSThreshold_Async = - _FaceDetectorYN_GetNMSThreshold_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); + late final _FaceDetectorYN_GetNMSThreshold_AsyncPtr = + _lookup Function(FaceDetectorYN, CvCallback_1)>>( + 'FaceDetectorYN_GetNMSThreshold_Async'); + late final _FaceDetectorYN_GetNMSThreshold_Async = _FaceDetectorYN_GetNMSThreshold_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_GetScoreThreshold( FaceDetectorYN self, @@ -4186,14 +3693,11 @@ class CvNative { ); } - late final _FaceDetectorYN_GetScoreThresholdPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceDetectorYN, - ffi.Pointer)>>('FaceDetectorYN_GetScoreThreshold'); - late final _FaceDetectorYN_GetScoreThreshold = - _FaceDetectorYN_GetScoreThresholdPtr.asFunction< - ffi.Pointer Function( - FaceDetectorYN, ffi.Pointer)>(); + late final _FaceDetectorYN_GetScoreThresholdPtr = + _lookup Function(FaceDetectorYN, ffi.Pointer)>>( + 'FaceDetectorYN_GetScoreThreshold'); + late final _FaceDetectorYN_GetScoreThreshold = _FaceDetectorYN_GetScoreThresholdPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, ffi.Pointer)>(); ffi.Pointer FaceDetectorYN_GetScoreThreshold_Async( FaceDetectorYN self, @@ -4205,13 +3709,11 @@ class CvNative { ); } - late final _FaceDetectorYN_GetScoreThreshold_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceDetectorYN, - CvCallback_1)>>('FaceDetectorYN_GetScoreThreshold_Async'); - late final _FaceDetectorYN_GetScoreThreshold_Async = - _FaceDetectorYN_GetScoreThreshold_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); + late final _FaceDetectorYN_GetScoreThreshold_AsyncPtr = + _lookup Function(FaceDetectorYN, CvCallback_1)>>( + 'FaceDetectorYN_GetScoreThreshold_Async'); + late final _FaceDetectorYN_GetScoreThreshold_Async = _FaceDetectorYN_GetScoreThreshold_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_GetTopK( FaceDetectorYN self, @@ -4223,10 +3725,9 @@ class CvNative { ); } - late final _FaceDetectorYN_GetTopKPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - FaceDetectorYN, ffi.Pointer)>>('FaceDetectorYN_GetTopK'); + late final _FaceDetectorYN_GetTopKPtr = + _lookup Function(FaceDetectorYN, ffi.Pointer)>>( + 'FaceDetectorYN_GetTopK'); late final _FaceDetectorYN_GetTopK = _FaceDetectorYN_GetTopKPtr.asFunction< ffi.Pointer Function(FaceDetectorYN, ffi.Pointer)>(); @@ -4240,13 +3741,11 @@ class CvNative { ); } - late final _FaceDetectorYN_GetTopK_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - FaceDetectorYN, CvCallback_1)>>('FaceDetectorYN_GetTopK_Async'); - late final _FaceDetectorYN_GetTopK_Async = - _FaceDetectorYN_GetTopK_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); + late final _FaceDetectorYN_GetTopK_AsyncPtr = + _lookup Function(FaceDetectorYN, CvCallback_1)>>( + 'FaceDetectorYN_GetTopK_Async'); + late final _FaceDetectorYN_GetTopK_Async = _FaceDetectorYN_GetTopK_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_New( ffi.Pointer model, @@ -4274,27 +3773,11 @@ class CvNative { late final _FaceDetectorYN_NewPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - Size, - ffi.Float, - ffi.Float, - ffi.Int, - ffi.Int, - ffi.Int, - ffi.Pointer)>>('FaceDetectorYN_New'); + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, Size, ffi.Float, + ffi.Float, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('FaceDetectorYN_New'); late final _FaceDetectorYN_New = _FaceDetectorYN_NewPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - Size, - double, - double, - int, - int, - int, - ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, Size, double, double, int, + int, int, ffi.Pointer)>(); ffi.Pointer FaceDetectorYN_NewFromBuffer( ffi.Pointer framework, @@ -4335,19 +3818,9 @@ class CvNative { ffi.Int, ffi.Int, ffi.Pointer)>>('FaceDetectorYN_NewFromBuffer'); - late final _FaceDetectorYN_NewFromBuffer = - _FaceDetectorYN_NewFromBufferPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - VecUChar, - VecUChar, - Size, - double, - double, - int, - int, - int, - ffi.Pointer)>(); + late final _FaceDetectorYN_NewFromBuffer = _FaceDetectorYN_NewFromBufferPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, VecUChar, VecUChar, Size, double, double, int, + int, int, ffi.Pointer)>(); ffi.Pointer FaceDetectorYN_NewFromBuffer_Async( ffi.Pointer framework, @@ -4377,21 +3850,11 @@ class CvNative { late final _FaceDetectorYN_NewFromBuffer_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - VecUChar, - VecUChar, - Size, - ffi.Float, - ffi.Float, - ffi.Int, - ffi.Int, - ffi.Int, - CvCallback_1)>>('FaceDetectorYN_NewFromBuffer_Async'); - late final _FaceDetectorYN_NewFromBuffer_Async = - _FaceDetectorYN_NewFromBuffer_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, VecUChar, - VecUChar, Size, double, double, int, int, int, CvCallback_1)>(); + ffi.Pointer Function(ffi.Pointer, VecUChar, VecUChar, Size, ffi.Float, + ffi.Float, ffi.Int, ffi.Int, ffi.Int, CvCallback_1)>>('FaceDetectorYN_NewFromBuffer_Async'); + late final _FaceDetectorYN_NewFromBuffer_Async = _FaceDetectorYN_NewFromBuffer_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, VecUChar, VecUChar, Size, double, double, int, int, int, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_New_Async( ffi.Pointer model, @@ -4419,28 +3882,11 @@ class CvNative { late final _FaceDetectorYN_New_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - Size, - ffi.Float, - ffi.Float, - ffi.Int, - ffi.Int, - ffi.Int, - CvCallback_1)>>('FaceDetectorYN_New_Async'); - late final _FaceDetectorYN_New_Async = - _FaceDetectorYN_New_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - Size, - double, - double, - int, - int, - int, - CvCallback_1)>(); + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, Size, ffi.Float, + ffi.Float, ffi.Int, ffi.Int, ffi.Int, CvCallback_1)>>('FaceDetectorYN_New_Async'); + late final _FaceDetectorYN_New_Async = _FaceDetectorYN_New_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, Size, double, double, int, int, int, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_SetInputSize( FaceDetectorYN self, @@ -4452,12 +3898,11 @@ class CvNative { ); } - late final _FaceDetectorYN_SetInputSizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - FaceDetectorYN, Size)>>('FaceDetectorYN_SetInputSize'); - late final _FaceDetectorYN_SetInputSize = _FaceDetectorYN_SetInputSizePtr - .asFunction Function(FaceDetectorYN, Size)>(); + late final _FaceDetectorYN_SetInputSizePtr = + _lookup Function(FaceDetectorYN, Size)>>( + 'FaceDetectorYN_SetInputSize'); + late final _FaceDetectorYN_SetInputSize = + _FaceDetectorYN_SetInputSizePtr.asFunction Function(FaceDetectorYN, Size)>(); ffi.Pointer FaceDetectorYN_SetInputSize_Async( FaceDetectorYN self, @@ -4471,13 +3916,11 @@ class CvNative { ); } - late final _FaceDetectorYN_SetInputSize_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceDetectorYN, Size, - CvCallback_0)>>('FaceDetectorYN_SetInputSize_Async'); - late final _FaceDetectorYN_SetInputSize_Async = - _FaceDetectorYN_SetInputSize_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, Size, CvCallback_0)>(); + late final _FaceDetectorYN_SetInputSize_AsyncPtr = + _lookup Function(FaceDetectorYN, Size, CvCallback_0)>>( + 'FaceDetectorYN_SetInputSize_Async'); + late final _FaceDetectorYN_SetInputSize_Async = _FaceDetectorYN_SetInputSize_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, Size, CvCallback_0)>(); ffi.Pointer FaceDetectorYN_SetNMSThreshold( FaceDetectorYN self, @@ -4489,13 +3932,11 @@ class CvNative { ); } - late final _FaceDetectorYN_SetNMSThresholdPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - FaceDetectorYN, ffi.Float)>>('FaceDetectorYN_SetNMSThreshold'); + late final _FaceDetectorYN_SetNMSThresholdPtr = + _lookup Function(FaceDetectorYN, ffi.Float)>>( + 'FaceDetectorYN_SetNMSThreshold'); late final _FaceDetectorYN_SetNMSThreshold = - _FaceDetectorYN_SetNMSThresholdPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, double)>(); + _FaceDetectorYN_SetNMSThresholdPtr.asFunction Function(FaceDetectorYN, double)>(); ffi.Pointer FaceDetectorYN_SetNMSThreshold_Async( FaceDetectorYN self, @@ -4509,14 +3950,11 @@ class CvNative { ); } - late final _FaceDetectorYN_SetNMSThreshold_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceDetectorYN, ffi.Float, - CvCallback_0)>>('FaceDetectorYN_SetNMSThreshold_Async'); - late final _FaceDetectorYN_SetNMSThreshold_Async = - _FaceDetectorYN_SetNMSThreshold_AsyncPtr.asFunction< - ffi.Pointer Function( - FaceDetectorYN, double, CvCallback_0)>(); + late final _FaceDetectorYN_SetNMSThreshold_AsyncPtr = + _lookup Function(FaceDetectorYN, ffi.Float, CvCallback_0)>>( + 'FaceDetectorYN_SetNMSThreshold_Async'); + late final _FaceDetectorYN_SetNMSThreshold_Async = _FaceDetectorYN_SetNMSThreshold_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, double, CvCallback_0)>(); ffi.Pointer FaceDetectorYN_SetScoreThreshold( FaceDetectorYN self, @@ -4528,13 +3966,11 @@ class CvNative { ); } - late final _FaceDetectorYN_SetScoreThresholdPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - FaceDetectorYN, ffi.Float)>>('FaceDetectorYN_SetScoreThreshold'); - late final _FaceDetectorYN_SetScoreThreshold = - _FaceDetectorYN_SetScoreThresholdPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, double)>(); + late final _FaceDetectorYN_SetScoreThresholdPtr = + _lookup Function(FaceDetectorYN, ffi.Float)>>( + 'FaceDetectorYN_SetScoreThreshold'); + late final _FaceDetectorYN_SetScoreThreshold = _FaceDetectorYN_SetScoreThresholdPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, double)>(); ffi.Pointer FaceDetectorYN_SetScoreThreshold_Async( FaceDetectorYN self, @@ -4548,14 +3984,11 @@ class CvNative { ); } - late final _FaceDetectorYN_SetScoreThreshold_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceDetectorYN, ffi.Float, - CvCallback_0)>>('FaceDetectorYN_SetScoreThreshold_Async'); - late final _FaceDetectorYN_SetScoreThreshold_Async = - _FaceDetectorYN_SetScoreThreshold_AsyncPtr.asFunction< - ffi.Pointer Function( - FaceDetectorYN, double, CvCallback_0)>(); + late final _FaceDetectorYN_SetScoreThreshold_AsyncPtr = + _lookup Function(FaceDetectorYN, ffi.Float, CvCallback_0)>>( + 'FaceDetectorYN_SetScoreThreshold_Async'); + late final _FaceDetectorYN_SetScoreThreshold_Async = _FaceDetectorYN_SetScoreThreshold_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, double, CvCallback_0)>(); ffi.Pointer FaceDetectorYN_SetTopK( FaceDetectorYN self, @@ -4567,12 +4000,11 @@ class CvNative { ); } - late final _FaceDetectorYN_SetTopKPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - FaceDetectorYN, ffi.Int)>>('FaceDetectorYN_SetTopK'); - late final _FaceDetectorYN_SetTopK = _FaceDetectorYN_SetTopKPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, int)>(); + late final _FaceDetectorYN_SetTopKPtr = + _lookup Function(FaceDetectorYN, ffi.Int)>>( + 'FaceDetectorYN_SetTopK'); + late final _FaceDetectorYN_SetTopK = + _FaceDetectorYN_SetTopKPtr.asFunction Function(FaceDetectorYN, int)>(); ffi.Pointer FaceDetectorYN_SetTopK_Async( FaceDetectorYN self, @@ -4586,13 +4018,11 @@ class CvNative { ); } - late final _FaceDetectorYN_SetTopK_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceDetectorYN, ffi.Int, - CvCallback_0)>>('FaceDetectorYN_SetTopK_Async'); - late final _FaceDetectorYN_SetTopK_Async = - _FaceDetectorYN_SetTopK_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, int, CvCallback_0)>(); + late final _FaceDetectorYN_SetTopK_AsyncPtr = + _lookup Function(FaceDetectorYN, ffi.Int, CvCallback_0)>>( + 'FaceDetectorYN_SetTopK_Async'); + late final _FaceDetectorYN_SetTopK_Async = _FaceDetectorYN_SetTopK_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, int, CvCallback_0)>(); ffi.Pointer FaceRecognizerSF_AlignCrop( FaceRecognizerSF self, @@ -4609,13 +4039,10 @@ class CvNative { } late final _FaceRecognizerSF_AlignCropPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, - ffi.Pointer)>>('FaceRecognizerSF_AlignCrop'); - late final _FaceRecognizerSF_AlignCrop = - _FaceRecognizerSF_AlignCropPtr.asFunction< - ffi.Pointer Function( - FaceRecognizerSF, Mat, Mat, ffi.Pointer)>(); + ffi.NativeFunction Function(FaceRecognizerSF, Mat, Mat, ffi.Pointer)>>( + 'FaceRecognizerSF_AlignCrop'); + late final _FaceRecognizerSF_AlignCrop = _FaceRecognizerSF_AlignCropPtr.asFunction< + ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, ffi.Pointer)>(); ffi.Pointer FaceRecognizerSF_AlignCrop_Async( FaceRecognizerSF self, @@ -4631,14 +4058,11 @@ class CvNative { ); } - late final _FaceRecognizerSF_AlignCrop_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, - CvCallback_1)>>('FaceRecognizerSF_AlignCrop_Async'); - late final _FaceRecognizerSF_AlignCrop_Async = - _FaceRecognizerSF_AlignCrop_AsyncPtr.asFunction< - ffi.Pointer Function( - FaceRecognizerSF, Mat, Mat, CvCallback_1)>(); + late final _FaceRecognizerSF_AlignCrop_AsyncPtr = + _lookup Function(FaceRecognizerSF, Mat, Mat, CvCallback_1)>>( + 'FaceRecognizerSF_AlignCrop_Async'); + late final _FaceRecognizerSF_AlignCrop_Async = _FaceRecognizerSF_AlignCrop_AsyncPtr.asFunction< + ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, CvCallback_1)>(); void FaceRecognizerSF_Close( FaceRecognizerSFPtr self, @@ -4649,10 +4073,9 @@ class CvNative { } late final _FaceRecognizerSF_ClosePtr = - _lookup>( - 'FaceRecognizerSF_Close'); - late final _FaceRecognizerSF_Close = _FaceRecognizerSF_ClosePtr.asFunction< - void Function(FaceRecognizerSFPtr)>(); + _lookup>('FaceRecognizerSF_Close'); + late final _FaceRecognizerSF_Close = + _FaceRecognizerSF_ClosePtr.asFunction(); ffi.Pointer FaceRecognizerSF_Feature( FaceRecognizerSF self, @@ -4669,13 +4092,11 @@ class CvNative { } late final _FaceRecognizerSF_FeaturePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceRecognizerSF, Mat, ffi.Bool, - ffi.Pointer)>>('FaceRecognizerSF_Feature'); - late final _FaceRecognizerSF_Feature = - _FaceRecognizerSF_FeaturePtr.asFunction< - ffi.Pointer Function( - FaceRecognizerSF, Mat, bool, ffi.Pointer)>(); + ffi + .NativeFunction Function(FaceRecognizerSF, Mat, ffi.Bool, ffi.Pointer)>>( + 'FaceRecognizerSF_Feature'); + late final _FaceRecognizerSF_Feature = _FaceRecognizerSF_FeaturePtr.asFunction< + ffi.Pointer Function(FaceRecognizerSF, Mat, bool, ffi.Pointer)>(); ffi.Pointer FaceRecognizerSF_Feature_Async( FaceRecognizerSF self, @@ -4692,13 +4113,10 @@ class CvNative { } late final _FaceRecognizerSF_Feature_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceRecognizerSF, Mat, ffi.Bool, - CvCallback_1)>>('FaceRecognizerSF_Feature_Async'); - late final _FaceRecognizerSF_Feature_Async = - _FaceRecognizerSF_Feature_AsyncPtr.asFunction< - ffi.Pointer Function( - FaceRecognizerSF, Mat, bool, CvCallback_1)>(); + ffi.NativeFunction Function(FaceRecognizerSF, Mat, ffi.Bool, CvCallback_1)>>( + 'FaceRecognizerSF_Feature_Async'); + late final _FaceRecognizerSF_Feature_Async = _FaceRecognizerSF_Feature_AsyncPtr.asFunction< + ffi.Pointer Function(FaceRecognizerSF, Mat, bool, CvCallback_1)>(); ffi.Pointer FaceRecognizerSF_Match( FaceRecognizerSF self, @@ -4718,11 +4136,10 @@ class CvNative { late final _FaceRecognizerSF_MatchPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, ffi.Int, - ffi.Pointer)>>('FaceRecognizerSF_Match'); + ffi.Pointer Function( + FaceRecognizerSF, Mat, Mat, ffi.Int, ffi.Pointer)>>('FaceRecognizerSF_Match'); late final _FaceRecognizerSF_Match = _FaceRecognizerSF_MatchPtr.asFunction< - ffi.Pointer Function( - FaceRecognizerSF, Mat, Mat, int, ffi.Pointer)>(); + ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer FaceRecognizerSF_Match_Async( FaceRecognizerSF self, @@ -4741,13 +4158,11 @@ class CvNative { } late final _FaceRecognizerSF_Match_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, ffi.Int, - CvCallback_1)>>('FaceRecognizerSF_Match_Async'); - late final _FaceRecognizerSF_Match_Async = - _FaceRecognizerSF_Match_AsyncPtr.asFunction< - ffi.Pointer Function( - FaceRecognizerSF, Mat, Mat, int, CvCallback_1)>(); + ffi + .NativeFunction Function(FaceRecognizerSF, Mat, Mat, ffi.Int, CvCallback_1)>>( + 'FaceRecognizerSF_Match_Async'); + late final _FaceRecognizerSF_Match_Async = _FaceRecognizerSF_Match_AsyncPtr.asFunction< + ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, int, CvCallback_1)>(); ffi.Pointer FaceRecognizerSF_New( ffi.Pointer model, @@ -4767,15 +4182,11 @@ class CvNative { late final _FaceRecognizerSF_NewPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Int, + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Int, ffi.Pointer)>>('FaceRecognizerSF_New'); late final _FaceRecognizerSF_New = _FaceRecognizerSF_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer)>(); ffi.Pointer FaceRecognizerSF_New_Async( ffi.Pointer model, @@ -4795,16 +4206,10 @@ class CvNative { late final _FaceRecognizerSF_New_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Int, + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Int, CvCallback_1)>>('FaceRecognizerSF_New_Async'); - late final _FaceRecognizerSF_New_Async = - _FaceRecognizerSF_New_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, int, CvCallback_1)>(); + late final _FaceRecognizerSF_New_Async = _FaceRecognizerSF_New_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, int, CvCallback_1)>(); void FastFeatureDetector_Close( FastFeatureDetectorPtr f, @@ -4815,10 +4220,9 @@ class CvNative { } late final _FastFeatureDetector_ClosePtr = - _lookup>( - 'FastFeatureDetector_Close'); - late final _FastFeatureDetector_Close = _FastFeatureDetector_ClosePtr - .asFunction(); + _lookup>('FastFeatureDetector_Close'); + late final _FastFeatureDetector_Close = + _FastFeatureDetector_ClosePtr.asFunction(); ffi.Pointer FastFeatureDetector_Create( ffi.Pointer rval, @@ -4828,13 +4232,11 @@ class CvNative { ); } - late final _FastFeatureDetector_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('FastFeatureDetector_Create'); - late final _FastFeatureDetector_Create = - _FastFeatureDetector_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _FastFeatureDetector_CreatePtr = + _lookup Function(ffi.Pointer)>>( + 'FastFeatureDetector_Create'); + late final _FastFeatureDetector_Create = _FastFeatureDetector_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer FastFeatureDetector_CreateWithParams( int threshold, @@ -4851,14 +4253,11 @@ class CvNative { } late final _FastFeatureDetector_CreateWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Bool, ffi.Int, - ffi.Pointer)>>( - 'FastFeatureDetector_CreateWithParams'); - late final _FastFeatureDetector_CreateWithParams = - _FastFeatureDetector_CreateWithParamsPtr.asFunction< - ffi.Pointer Function( - int, bool, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Bool, ffi.Int, + ffi.Pointer)>>('FastFeatureDetector_CreateWithParams'); + late final _FastFeatureDetector_CreateWithParams = _FastFeatureDetector_CreateWithParamsPtr.asFunction< + ffi.Pointer Function(int, bool, int, ffi.Pointer)>(); ffi.Pointer FastFeatureDetector_Detect( FastFeatureDetector f, @@ -4874,12 +4273,10 @@ class CvNative { late final _FastFeatureDetector_DetectPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(FastFeatureDetector, Mat, - ffi.Pointer)>>('FastFeatureDetector_Detect'); - late final _FastFeatureDetector_Detect = - _FastFeatureDetector_DetectPtr.asFunction< ffi.Pointer Function( - FastFeatureDetector, Mat, ffi.Pointer)>(); + FastFeatureDetector, Mat, ffi.Pointer)>>('FastFeatureDetector_Detect'); + late final _FastFeatureDetector_Detect = _FastFeatureDetector_DetectPtr.asFunction< + ffi.Pointer Function(FastFeatureDetector, Mat, ffi.Pointer)>(); ffi.Pointer FastNlMeansDenoising( Mat src, @@ -4892,10 +4289,9 @@ class CvNative { } late final _FastNlMeansDenoisingPtr = - _lookup Function(Mat, Mat)>>( - 'FastNlMeansDenoising'); - late final _FastNlMeansDenoising = _FastNlMeansDenoisingPtr.asFunction< - ffi.Pointer Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('FastNlMeansDenoising'); + late final _FastNlMeansDenoising = + _FastNlMeansDenoisingPtr.asFunction Function(Mat, Mat)>(); ffi.Pointer FastNlMeansDenoisingColored( Mat src, @@ -4908,10 +4304,9 @@ class CvNative { } late final _FastNlMeansDenoisingColoredPtr = - _lookup Function(Mat, Mat)>>( - 'FastNlMeansDenoisingColored'); - late final _FastNlMeansDenoisingColored = _FastNlMeansDenoisingColoredPtr - .asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('FastNlMeansDenoisingColored'); + late final _FastNlMeansDenoisingColored = + _FastNlMeansDenoisingColoredPtr.asFunction Function(Mat, Mat)>(); ffi.Pointer FastNlMeansDenoisingColoredMulti( VecMat src, @@ -4927,13 +4322,11 @@ class CvNative { ); } - late final _FastNlMeansDenoisingColoredMultiPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecMat, Mat, ffi.Int, - ffi.Int)>>('FastNlMeansDenoisingColoredMulti'); - late final _FastNlMeansDenoisingColoredMulti = - _FastNlMeansDenoisingColoredMultiPtr.asFunction< - ffi.Pointer Function(VecMat, Mat, int, int)>(); + late final _FastNlMeansDenoisingColoredMultiPtr = + _lookup Function(VecMat, Mat, ffi.Int, ffi.Int)>>( + 'FastNlMeansDenoisingColoredMulti'); + late final _FastNlMeansDenoisingColoredMulti = _FastNlMeansDenoisingColoredMultiPtr.asFunction< + ffi.Pointer Function(VecMat, Mat, int, int)>(); ffi.Pointer FastNlMeansDenoisingColoredMultiWithParams( VecMat src, @@ -4959,19 +4352,10 @@ class CvNative { late final _FastNlMeansDenoisingColoredMultiWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecMat, - Mat, - ffi.Int, - ffi.Int, - ffi.Float, - ffi.Float, - ffi.Int, + ffi.Pointer Function(VecMat, Mat, ffi.Int, ffi.Int, ffi.Float, ffi.Float, ffi.Int, ffi.Int)>>('FastNlMeansDenoisingColoredMultiWithParams'); - late final _FastNlMeansDenoisingColoredMultiWithParams = - _FastNlMeansDenoisingColoredMultiWithParamsPtr.asFunction< - ffi.Pointer Function( - VecMat, Mat, int, int, double, double, int, int)>(); + late final _FastNlMeansDenoisingColoredMultiWithParams = _FastNlMeansDenoisingColoredMultiWithParamsPtr + .asFunction Function(VecMat, Mat, int, int, double, double, int, int)>(); ffi.Pointer FastNlMeansDenoisingColoredWithParams( Mat src, @@ -4992,12 +4376,11 @@ class CvNative { } late final _FastNlMeansDenoisingColoredWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Float, ffi.Float, - ffi.Int, ffi.Int)>>('FastNlMeansDenoisingColoredWithParams'); - late final _FastNlMeansDenoisingColoredWithParams = - _FastNlMeansDenoisingColoredWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, double, int, int)>(); + ffi + .NativeFunction Function(Mat, Mat, ffi.Float, ffi.Float, ffi.Int, ffi.Int)>>( + 'FastNlMeansDenoisingColoredWithParams'); + late final _FastNlMeansDenoisingColoredWithParams = _FastNlMeansDenoisingColoredWithParamsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, double, double, int, int)>(); ffi.Pointer FastNlMeansDenoisingWithParams( Mat src, @@ -5015,13 +4398,11 @@ class CvNative { ); } - late final _FastNlMeansDenoisingWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Float, ffi.Int, - ffi.Int)>>('FastNlMeansDenoisingWithParams'); - late final _FastNlMeansDenoisingWithParams = - _FastNlMeansDenoisingWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, int, int)>(); + late final _FastNlMeansDenoisingWithParamsPtr = + _lookup Function(Mat, Mat, ffi.Float, ffi.Int, ffi.Int)>>( + 'FastNlMeansDenoisingWithParams'); + late final _FastNlMeansDenoisingWithParams = _FastNlMeansDenoisingWithParamsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, double, int, int)>(); ffi.Pointer FillPoly( Mat img, @@ -5035,12 +4416,9 @@ class CvNative { ); } - late final _FillPolyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, VecVecPoint, Scalar)>>('FillPoly'); - late final _FillPoly = _FillPolyPtr.asFunction< - ffi.Pointer Function(Mat, VecVecPoint, Scalar)>(); + late final _FillPolyPtr = + _lookup Function(Mat, VecVecPoint, Scalar)>>('FillPoly'); + late final _FillPoly = _FillPolyPtr.asFunction Function(Mat, VecVecPoint, Scalar)>(); ffi.Pointer FillPolyWithParams( Mat img, @@ -5061,12 +4439,11 @@ class CvNative { } late final _FillPolyWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, VecVecPoint, Scalar, ffi.Int, - ffi.Int, Point)>>('FillPolyWithParams'); + ffi + .NativeFunction Function(Mat, VecVecPoint, Scalar, ffi.Int, ffi.Int, Point)>>( + 'FillPolyWithParams'); late final _FillPolyWithParams = _FillPolyWithParamsPtr.asFunction< - ffi.Pointer Function( - Mat, VecVecPoint, Scalar, int, int, Point)>(); + ffi.Pointer Function(Mat, VecVecPoint, Scalar, int, int, Point)>(); ffi.Pointer Filter2D( Mat src, @@ -5090,10 +4467,9 @@ class CvNative { late final _Filter2DPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, Mat, Point, ffi.Double, ffi.Int)>>('Filter2D'); - late final _Filter2D = _Filter2DPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, Mat, Point, double, int)>(); + ffi.Pointer Function(Mat, Mat, ffi.Int, Mat, Point, ffi.Double, ffi.Int)>>('Filter2D'); + late final _Filter2D = + _Filter2DPtr.asFunction Function(Mat, Mat, int, Mat, Point, double, int)>(); ffi.Pointer FindChessboardCorners( Mat image, @@ -5112,12 +4488,10 @@ class CvNative { } late final _FindChessboardCornersPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Size, Mat, ffi.Int, - ffi.Pointer)>>('FindChessboardCorners'); + ffi.NativeFunction Function(Mat, Size, Mat, ffi.Int, ffi.Pointer)>>( + 'FindChessboardCorners'); late final _FindChessboardCorners = _FindChessboardCornersPtr.asFunction< - ffi.Pointer Function( - Mat, Size, Mat, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, Size, Mat, int, ffi.Pointer)>(); ffi.Pointer FindChessboardCornersSB( Mat image, @@ -5136,12 +4510,10 @@ class CvNative { } late final _FindChessboardCornersSBPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Size, Mat, ffi.Int, - ffi.Pointer)>>('FindChessboardCornersSB'); + ffi.NativeFunction Function(Mat, Size, Mat, ffi.Int, ffi.Pointer)>>( + 'FindChessboardCornersSB'); late final _FindChessboardCornersSB = _FindChessboardCornersSBPtr.asFunction< - ffi.Pointer Function( - Mat, Size, Mat, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, Size, Mat, int, ffi.Pointer)>(); ffi.Pointer FindChessboardCornersSBWithMeta( Mat image, @@ -5163,12 +4535,10 @@ class CvNative { late final _FindChessboardCornersSBWithMetaPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Size, Mat, ffi.Int, Mat, - ffi.Pointer)>>('FindChessboardCornersSBWithMeta'); - late final _FindChessboardCornersSBWithMeta = - _FindChessboardCornersSBWithMetaPtr.asFunction< ffi.Pointer Function( - Mat, Size, Mat, int, Mat, ffi.Pointer)>(); + Mat, Size, Mat, ffi.Int, Mat, ffi.Pointer)>>('FindChessboardCornersSBWithMeta'); + late final _FindChessboardCornersSBWithMeta = _FindChessboardCornersSBWithMetaPtr.asFunction< + ffi.Pointer Function(Mat, Size, Mat, int, Mat, ffi.Pointer)>(); ffi.Pointer FindContours( Mat src, @@ -5188,11 +4558,10 @@ class CvNative { late final _FindContoursPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, - ffi.Pointer)>>('FindContours'); + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('FindContours'); late final _FindContours = _FindContoursPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, Mat, int, int, ffi.Pointer)>(); ffi.Pointer FindHomography( Mat src, @@ -5218,11 +4587,10 @@ class CvNative { late final _FindHomographyPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Double, Mat, - ffi.Int, ffi.Double, ffi.Pointer)>>('FindHomography'); + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Double, Mat, ffi.Int, ffi.Double, ffi.Pointer)>>('FindHomography'); late final _FindHomography = _FindHomographyPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, int, double, Mat, int, double, ffi.Pointer)>(); + ffi.Pointer Function(Mat, Mat, int, double, Mat, int, double, ffi.Pointer)>(); ffi.Pointer FindTransformECC( Mat templateImage, @@ -5248,11 +4616,10 @@ class CvNative { late final _FindTransformECCPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, ffi.Int, TermCriteria, - Mat, ffi.Int, ffi.Pointer)>>('FindTransformECC'); + ffi.Pointer Function(Mat, Mat, Mat, ffi.Int, TermCriteria, Mat, ffi.Int, + ffi.Pointer)>>('FindTransformECC'); late final _FindTransformECC = _FindTransformECCPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, int, TermCriteria, Mat, int, - ffi.Pointer)>(); + ffi.Pointer Function(Mat, Mat, Mat, int, TermCriteria, Mat, int, ffi.Pointer)>(); ffi.Pointer Fisheye_EstimateNewCameraMatrixForUndistortRectify( Mat k, @@ -5277,14 +4644,12 @@ class CvNative { } late final _Fisheye_EstimateNewCameraMatrixForUndistortRectifyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Size, Mat, Mat, ffi.Double, Size, ffi.Double)>>( - 'Fisheye_EstimateNewCameraMatrixForUndistortRectify'); + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Size, Mat, Mat, ffi.Double, Size, + ffi.Double)>>('Fisheye_EstimateNewCameraMatrixForUndistortRectify'); late final _Fisheye_EstimateNewCameraMatrixForUndistortRectify = _Fisheye_EstimateNewCameraMatrixForUndistortRectifyPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Size, Mat, Mat, double, Size, double)>(); + ffi.Pointer Function(Mat, Mat, Size, Mat, Mat, double, Size, double)>(); ffi.Pointer Fisheye_UndistortImage( Mat distorted, @@ -5300,12 +4665,11 @@ class CvNative { ); } - late final _Fisheye_UndistortImagePtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, Mat, Mat)>>( - 'Fisheye_UndistortImage'); - late final _Fisheye_UndistortImage = _Fisheye_UndistortImagePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat)>(); + late final _Fisheye_UndistortImagePtr = + _lookup Function(Mat, Mat, Mat, Mat)>>( + 'Fisheye_UndistortImage'); + late final _Fisheye_UndistortImage = + _Fisheye_UndistortImagePtr.asFunction Function(Mat, Mat, Mat, Mat)>(); ffi.Pointer Fisheye_UndistortImageWithParams( Mat distorted, @@ -5325,13 +4689,11 @@ class CvNative { ); } - late final _Fisheye_UndistortImageWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, - Size)>>('Fisheye_UndistortImageWithParams'); - late final _Fisheye_UndistortImageWithParams = - _Fisheye_UndistortImageWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, Size)>(); + late final _Fisheye_UndistortImageWithParamsPtr = + _lookup Function(Mat, Mat, Mat, Mat, Mat, Size)>>( + 'Fisheye_UndistortImageWithParams'); + late final _Fisheye_UndistortImageWithParams = _Fisheye_UndistortImageWithParamsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, Size)>(); ffi.Pointer Fisheye_UndistortPoints( Mat distorted, @@ -5351,12 +4713,11 @@ class CvNative { ); } - late final _Fisheye_UndistortPointsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, Mat, Mat)>>('Fisheye_UndistortPoints'); - late final _Fisheye_UndistortPoints = _Fisheye_UndistortPointsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, Mat)>(); + late final _Fisheye_UndistortPointsPtr = + _lookup Function(Mat, Mat, Mat, Mat, Mat, Mat)>>( + 'Fisheye_UndistortPoints'); + late final _Fisheye_UndistortPoints = + _Fisheye_UndistortPointsPtr.asFunction Function(Mat, Mat, Mat, Mat, Mat, Mat)>(); ffi.Pointer FitEllipse( VecPoint pts, @@ -5368,12 +4729,11 @@ class CvNative { ); } - late final _FitEllipsePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('FitEllipse'); - late final _FitEllipse = _FitEllipsePtr.asFunction< - ffi.Pointer Function(VecPoint, ffi.Pointer)>(); + late final _FitEllipsePtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'FitEllipse'); + late final _FitEllipse = + _FitEllipsePtr.asFunction Function(VecPoint, ffi.Pointer)>(); ffi.Pointer FitLine( VecPoint pts, @@ -5395,11 +4755,10 @@ class CvNative { late final _FitLinePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecPoint, Mat, ffi.Int, ffi.Double, - ffi.Double, ffi.Double)>>('FitLine'); - late final _FitLine = _FitLinePtr.asFunction< - ffi.Pointer Function( - VecPoint, Mat, int, double, double, double)>(); + ffi.Pointer Function( + VecPoint, Mat, ffi.Int, ffi.Double, ffi.Double, ffi.Double)>>('FitLine'); + late final _FitLine = + _FitLinePtr.asFunction Function(VecPoint, Mat, int, double, double, double)>(); void FlannBasedMatcher_Close( FlannBasedMatcherPtr f, @@ -5410,10 +4769,9 @@ class CvNative { } late final _FlannBasedMatcher_ClosePtr = - _lookup>( - 'FlannBasedMatcher_Close'); - late final _FlannBasedMatcher_Close = _FlannBasedMatcher_ClosePtr.asFunction< - void Function(FlannBasedMatcherPtr)>(); + _lookup>('FlannBasedMatcher_Close'); + late final _FlannBasedMatcher_Close = + _FlannBasedMatcher_ClosePtr.asFunction(); ffi.Pointer FlannBasedMatcher_Create( ffi.Pointer rval, @@ -5423,13 +4781,11 @@ class CvNative { ); } - late final _FlannBasedMatcher_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('FlannBasedMatcher_Create'); - late final _FlannBasedMatcher_Create = - _FlannBasedMatcher_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _FlannBasedMatcher_CreatePtr = + _lookup Function(ffi.Pointer)>>( + 'FlannBasedMatcher_Create'); + late final _FlannBasedMatcher_Create = _FlannBasedMatcher_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer FlannBasedMatcher_KnnMatch( FlannBasedMatcher f, @@ -5451,10 +4807,8 @@ class CvNative { ffi.NativeFunction< ffi.Pointer Function(FlannBasedMatcher, Mat, Mat, ffi.Int, ffi.Pointer)>>('FlannBasedMatcher_KnnMatch'); - late final _FlannBasedMatcher_KnnMatch = - _FlannBasedMatcher_KnnMatchPtr.asFunction< - ffi.Pointer Function( - FlannBasedMatcher, Mat, Mat, int, ffi.Pointer)>(); + late final _FlannBasedMatcher_KnnMatch = _FlannBasedMatcher_KnnMatchPtr.asFunction< + ffi.Pointer Function(FlannBasedMatcher, Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer GArrayGArrayPoint_FromVec( VecVecPoint points, @@ -5467,13 +4821,10 @@ class CvNative { } late final _GArrayGArrayPoint_FromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecVecPoint, - ffi.Pointer)>>('GArrayGArrayPoint_FromVec'); - late final _GArrayGArrayPoint_FromVec = - _GArrayGArrayPoint_FromVecPtr.asFunction< - ffi.Pointer Function( - VecVecPoint, ffi.Pointer)>(); + ffi.NativeFunction Function(VecVecPoint, ffi.Pointer)>>( + 'GArrayGArrayPoint_FromVec'); + late final _GArrayGArrayPoint_FromVec = _GArrayGArrayPoint_FromVecPtr.asFunction< + ffi.Pointer Function(VecVecPoint, ffi.Pointer)>(); ffi.Pointer GArrayPoint2d_FromVec( VecPoint v, @@ -5485,10 +4836,9 @@ class CvNative { ); } - late final _GArrayPoint2d_FromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('GArrayPoint2d_FromVec'); + late final _GArrayPoint2d_FromVecPtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'GArrayPoint2d_FromVec'); late final _GArrayPoint2d_FromVec = _GArrayPoint2d_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -5502,10 +4852,9 @@ class CvNative { ); } - late final _GArrayPoint2f_FromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('GArrayPoint2f_FromVec'); + late final _GArrayPoint2f_FromVecPtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'GArrayPoint2f_FromVec'); late final _GArrayPoint2f_FromVec = _GArrayPoint2f_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -5519,10 +4868,9 @@ class CvNative { ); } - late final _GArrayPoint2i_FromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('GArrayPoint2i_FromVec'); + late final _GArrayPoint2i_FromVecPtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'GArrayPoint2i_FromVec'); late final _GArrayPoint2i_FromVec = _GArrayPoint2i_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -5536,10 +4884,9 @@ class CvNative { ); } - late final _GArrayPoint3d_FromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('GArrayPoint3d_FromVec'); + late final _GArrayPoint3d_FromVecPtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'GArrayPoint3d_FromVec'); late final _GArrayPoint3d_FromVec = _GArrayPoint3d_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -5553,10 +4900,9 @@ class CvNative { ); } - late final _GArrayPoint3f_FromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('GArrayPoint3f_FromVec'); + late final _GArrayPoint3f_FromVecPtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'GArrayPoint3f_FromVec'); late final _GArrayPoint3f_FromVec = _GArrayPoint3f_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -5570,10 +4916,9 @@ class CvNative { ); } - late final _GArrayPoint3i_FromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('GArrayPoint3i_FromVec'); + late final _GArrayPoint3i_FromVecPtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'GArrayPoint3i_FromVec'); late final _GArrayPoint3i_FromVec = _GArrayPoint3i_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -5587,10 +4932,9 @@ class CvNative { ); } - late final _GArrayPoint_FromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('GArrayPoint_FromVec'); + late final _GArrayPoint_FromVecPtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'GArrayPoint_FromVec'); late final _GArrayPoint_FromVec = _GArrayPoint_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -5604,12 +4948,11 @@ class CvNative { ); } - late final _GArrayPrim_FromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPrim, ffi.Pointer)>>('GArrayPrim_FromVec'); - late final _GArrayPrim_FromVec = _GArrayPrim_FromVecPtr.asFunction< - ffi.Pointer Function(VecPrim, ffi.Pointer)>(); + late final _GArrayPrim_FromVecPtr = + _lookup Function(VecPrim, ffi.Pointer)>>( + 'GArrayPrim_FromVec'); + late final _GArrayPrim_FromVec = + _GArrayPrim_FromVecPtr.asFunction Function(VecPrim, ffi.Pointer)>(); ffi.Pointer GArrayVec4i_FromVec( VecVec4i v, @@ -5621,10 +4964,9 @@ class CvNative { ); } - late final _GArrayVec4i_FromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVec4i, ffi.Pointer)>>('GArrayVec4i_FromVec'); + late final _GArrayVec4i_FromVecPtr = + _lookup Function(VecVec4i, ffi.Pointer)>>( + 'GArrayVec4i_FromVec'); late final _GArrayVec4i_FromVec = _GArrayVec4i_FromVecPtr.asFunction< ffi.Pointer Function(VecVec4i, ffi.Pointer)>(); @@ -5637,10 +4979,8 @@ class CvNative { } late final _GFTTDetector_ClosePtr = - _lookup>( - 'GFTTDetector_Close'); - late final _GFTTDetector_Close = - _GFTTDetector_ClosePtr.asFunction(); + _lookup>('GFTTDetector_Close'); + late final _GFTTDetector_Close = _GFTTDetector_ClosePtr.asFunction(); ffi.Pointer GFTTDetector_Create( ffi.Pointer rval, @@ -5650,12 +4990,11 @@ class CvNative { ); } - late final _GFTTDetector_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('GFTTDetector_Create'); - late final _GFTTDetector_Create = _GFTTDetector_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _GFTTDetector_CreatePtr = + _lookup Function(ffi.Pointer)>>( + 'GFTTDetector_Create'); + late final _GFTTDetector_Create = + _GFTTDetector_CreatePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer GFTTDetector_Detect( GFTTDetector a, @@ -5670,12 +5009,10 @@ class CvNative { } late final _GFTTDetector_DetectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(GFTTDetector, Mat, - ffi.Pointer)>>('GFTTDetector_Detect'); + ffi.NativeFunction Function(GFTTDetector, Mat, ffi.Pointer)>>( + 'GFTTDetector_Detect'); late final _GFTTDetector_Detect = _GFTTDetector_DetectPtr.asFunction< - ffi.Pointer Function( - GFTTDetector, Mat, ffi.Pointer)>(); + ffi.Pointer Function(GFTTDetector, Mat, ffi.Pointer)>(); ffi.Pointer GaussianBlur( Mat src, @@ -5697,10 +5034,9 @@ class CvNative { late final _GaussianBlurPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Size, ffi.Double, ffi.Double, - ffi.Int)>>('GaussianBlur'); - late final _GaussianBlur = _GaussianBlurPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Size, double, double, int)>(); + ffi.Pointer Function(Mat, Mat, Size, ffi.Double, ffi.Double, ffi.Int)>>('GaussianBlur'); + late final _GaussianBlur = + _GaussianBlurPtr.asFunction Function(Mat, Mat, Size, double, double, int)>(); ffi.Pointer GaussianBlur_Async( Mat src, @@ -5722,11 +5058,10 @@ class CvNative { late final _GaussianBlur_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Size, ffi.Double, ffi.Double, - ffi.Int, CvCallback_1)>>('GaussianBlur_Async'); + ffi.Pointer Function( + Mat, Size, ffi.Double, ffi.Double, ffi.Int, CvCallback_1)>>('GaussianBlur_Async'); late final _GaussianBlur_Async = _GaussianBlur_AsyncPtr.asFunction< - ffi.Pointer Function( - Mat, Size, double, double, int, CvCallback_1)>(); + ffi.Pointer Function(Mat, Size, double, double, int, CvCallback_1)>(); ffi.Pointer GetAffineTransform( VecPoint src, @@ -5740,10 +5075,9 @@ class CvNative { ); } - late final _GetAffineTransformPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, VecPoint, ffi.Pointer)>>('GetAffineTransform'); + late final _GetAffineTransformPtr = + _lookup Function(VecPoint, VecPoint, ffi.Pointer)>>( + 'GetAffineTransform'); late final _GetAffineTransform = _GetAffineTransformPtr.asFunction< ffi.Pointer Function(VecPoint, VecPoint, ffi.Pointer)>(); @@ -5759,13 +5093,11 @@ class CvNative { ); } - late final _GetAffineTransform2fPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, - ffi.Pointer)>>('GetAffineTransform2f'); + late final _GetAffineTransform2fPtr = + _lookup Function(VecPoint2f, VecPoint2f, ffi.Pointer)>>( + 'GetAffineTransform2f'); late final _GetAffineTransform2f = _GetAffineTransform2fPtr.asFunction< - ffi.Pointer Function( - VecPoint2f, VecPoint2f, ffi.Pointer)>(); + ffi.Pointer Function(VecPoint2f, VecPoint2f, ffi.Pointer)>(); ffi.Pointer GetCVTickCount( ffi.Pointer rval, @@ -5775,12 +5107,10 @@ class CvNative { ); } - late final _GetCVTickCountPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('GetCVTickCount'); - late final _GetCVTickCount = _GetCVTickCountPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _GetCVTickCountPtr = + _lookup Function(ffi.Pointer)>>('GetCVTickCount'); + late final _GetCVTickCount = + _GetCVTickCountPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer GetGaussianKernel( int ksize, @@ -5797,11 +5127,10 @@ class CvNative { } late final _GetGaussianKernelPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Double, ffi.Int, - ffi.Pointer)>>('GetGaussianKernel'); - late final _GetGaussianKernel = _GetGaussianKernelPtr.asFunction< - ffi.Pointer Function(int, double, int, ffi.Pointer)>(); + ffi.NativeFunction Function(ffi.Int, ffi.Double, ffi.Int, ffi.Pointer)>>( + 'GetGaussianKernel'); + late final _GetGaussianKernel = + _GetGaussianKernelPtr.asFunction Function(int, double, int, ffi.Pointer)>(); ffi.Pointer GetNumThreads( ffi.Pointer rval, @@ -5811,12 +5140,10 @@ class CvNative { ); } - late final _GetNumThreadsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('GetNumThreads'); - late final _GetNumThreads = _GetNumThreadsPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _GetNumThreadsPtr = + _lookup Function(ffi.Pointer)>>('GetNumThreads'); + late final _GetNumThreads = + _GetNumThreadsPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer GetOptimalNewCameraMatrixWithParams( Mat cameraMatrix, @@ -5842,19 +5169,11 @@ class CvNative { late final _GetOptimalNewCameraMatrixWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - Mat, - Size, - ffi.Double, - Size, - ffi.Pointer, - ffi.Bool, + ffi.Pointer Function(Mat, Mat, Size, ffi.Double, Size, ffi.Pointer, ffi.Bool, ffi.Pointer)>>('GetOptimalNewCameraMatrixWithParams'); - late final _GetOptimalNewCameraMatrixWithParams = - _GetOptimalNewCameraMatrixWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Size, double, Size, - ffi.Pointer, bool, ffi.Pointer)>(); + late final _GetOptimalNewCameraMatrixWithParams = _GetOptimalNewCameraMatrixWithParamsPtr.asFunction< + ffi.Pointer Function( + Mat, Mat, Size, double, Size, ffi.Pointer, bool, ffi.Pointer)>(); ffi.Pointer GetPerspectiveTransform( VecPoint src, @@ -5871,12 +5190,10 @@ class CvNative { } late final _GetPerspectiveTransformPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecPoint, VecPoint, ffi.Pointer, - ffi.Int)>>('GetPerspectiveTransform'); + ffi.NativeFunction Function(VecPoint, VecPoint, ffi.Pointer, ffi.Int)>>( + 'GetPerspectiveTransform'); late final _GetPerspectiveTransform = _GetPerspectiveTransformPtr.asFunction< - ffi.Pointer Function( - VecPoint, VecPoint, ffi.Pointer, int)>(); + ffi.Pointer Function(VecPoint, VecPoint, ffi.Pointer, int)>(); ffi.Pointer GetPerspectiveTransform2f( VecPoint2f src, @@ -5893,13 +5210,11 @@ class CvNative { } late final _GetPerspectiveTransform2fPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, - ffi.Pointer, ffi.Int)>>('GetPerspectiveTransform2f'); - late final _GetPerspectiveTransform2f = - _GetPerspectiveTransform2fPtr.asFunction< - ffi.Pointer Function( - VecPoint2f, VecPoint2f, ffi.Pointer, int)>(); + ffi + .NativeFunction Function(VecPoint2f, VecPoint2f, ffi.Pointer, ffi.Int)>>( + 'GetPerspectiveTransform2f'); + late final _GetPerspectiveTransform2f = _GetPerspectiveTransform2fPtr.asFunction< + ffi.Pointer Function(VecPoint2f, VecPoint2f, ffi.Pointer, int)>(); ffi.Pointer GetRectSubPix( Mat src, @@ -5915,12 +5230,10 @@ class CvNative { ); } - late final _GetRectSubPixPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Size, Point2f, Mat)>>('GetRectSubPix'); - late final _GetRectSubPix = _GetRectSubPixPtr.asFunction< - ffi.Pointer Function(Mat, Size, Point2f, Mat)>(); + late final _GetRectSubPixPtr = + _lookup Function(Mat, Size, Point2f, Mat)>>('GetRectSubPix'); + late final _GetRectSubPix = + _GetRectSubPixPtr.asFunction Function(Mat, Size, Point2f, Mat)>(); ffi.Pointer GetRotationMatrix2D( Point2f center, @@ -5937,12 +5250,11 @@ class CvNative { } late final _GetRotationMatrix2DPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Point2f, ffi.Double, ffi.Double, - ffi.Pointer)>>('GetRotationMatrix2D'); + ffi + .NativeFunction Function(Point2f, ffi.Double, ffi.Double, ffi.Pointer)>>( + 'GetRotationMatrix2D'); late final _GetRotationMatrix2D = _GetRotationMatrix2DPtr.asFunction< - ffi.Pointer Function( - Point2f, double, double, ffi.Pointer)>(); + ffi.Pointer Function(Point2f, double, double, ffi.Pointer)>(); ffi.Pointer GetStructuringElement( int shape, @@ -5956,12 +5268,11 @@ class CvNative { ); } - late final _GetStructuringElementPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, Size, ffi.Pointer)>>('GetStructuringElement'); - late final _GetStructuringElement = _GetStructuringElementPtr.asFunction< - ffi.Pointer Function(int, Size, ffi.Pointer)>(); + late final _GetStructuringElementPtr = + _lookup Function(ffi.Int, Size, ffi.Pointer)>>( + 'GetStructuringElement'); + late final _GetStructuringElement = + _GetStructuringElementPtr.asFunction Function(int, Size, ffi.Pointer)>(); ffi.Pointer GetTextSizeWithBaseline( ffi.Pointer text, @@ -5983,16 +5294,11 @@ class CvNative { late final _GetTextSizeWithBaselinePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Double, - ffi.Int, - ffi.Pointer, - ffi.Pointer)>>('GetTextSizeWithBaseline'); + ffi.Pointer Function(ffi.Pointer, ffi.Int, ffi.Double, ffi.Int, + ffi.Pointer, ffi.Pointer)>>('GetTextSizeWithBaseline'); late final _GetTextSizeWithBaseline = _GetTextSizeWithBaselinePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, double, int, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, int, double, int, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer GetTickFrequency( ffi.Pointer rval, @@ -6002,12 +5308,11 @@ class CvNative { ); } - late final _GetTickFrequencyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('GetTickFrequency'); - late final _GetTickFrequency = _GetTickFrequencyPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _GetTickFrequencyPtr = + _lookup Function(ffi.Pointer)>>( + 'GetTickFrequency'); + late final _GetTickFrequency = + _GetTickFrequencyPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer GoodFeaturesToTrack( Mat img, @@ -6035,19 +5340,11 @@ class CvNative { late final _GoodFeaturesToTrackPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - ffi.Pointer, - ffi.Int, - ffi.Double, - ffi.Double, - Mat, - ffi.Int, - ffi.Bool, - ffi.Double)>>('GoodFeaturesToTrack'); + ffi.Pointer Function(Mat, ffi.Pointer, ffi.Int, ffi.Double, ffi.Double, Mat, + ffi.Int, ffi.Bool, ffi.Double)>>('GoodFeaturesToTrack'); late final _GoodFeaturesToTrack = _GoodFeaturesToTrackPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer, int, double, - double, Mat, int, bool, double)>(); + ffi.Pointer Function( + Mat, ffi.Pointer, int, double, double, Mat, int, bool, double)>(); ffi.Pointer GoodFeaturesToTrackWithGradient( Mat img, @@ -6077,21 +5374,11 @@ class CvNative { late final _GoodFeaturesToTrackWithGradientPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - ffi.Pointer, - ffi.Int, - ffi.Double, - ffi.Double, - Mat, - ffi.Int, - ffi.Int, - ffi.Bool, - ffi.Double)>>('GoodFeaturesToTrackWithGradient'); - late final _GoodFeaturesToTrackWithGradient = - _GoodFeaturesToTrackWithGradientPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer, int, - double, double, Mat, int, int, bool, double)>(); + ffi.Pointer Function(Mat, ffi.Pointer, ffi.Int, ffi.Double, ffi.Double, Mat, + ffi.Int, ffi.Int, ffi.Bool, ffi.Double)>>('GoodFeaturesToTrackWithGradient'); + late final _GoodFeaturesToTrackWithGradient = _GoodFeaturesToTrackWithGradientPtr.asFunction< + ffi.Pointer Function( + Mat, ffi.Pointer, int, double, double, Mat, int, int, bool, double)>(); ffi.Pointer GrabCut( Mat img, @@ -6113,12 +5400,11 @@ class CvNative { ); } - late final _GrabCutPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Rect, Mat, Mat, ffi.Int, ffi.Int)>>('GrabCut'); - late final _GrabCut = _GrabCutPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Rect, Mat, Mat, int, int)>(); + late final _GrabCutPtr = + _lookup Function(Mat, Mat, Rect, Mat, Mat, ffi.Int, ffi.Int)>>( + 'GrabCut'); + late final _GrabCut = + _GrabCutPtr.asFunction Function(Mat, Mat, Rect, Mat, Mat, int, int)>(); ffi.Pointer GroupRectangles( VecRect rects, @@ -6132,12 +5418,11 @@ class CvNative { ); } - late final _GroupRectanglesPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecRect, ffi.Int, ffi.Double)>>('GroupRectangles'); - late final _GroupRectangles = _GroupRectanglesPtr.asFunction< - ffi.Pointer Function(VecRect, int, double)>(); + late final _GroupRectanglesPtr = + _lookup Function(VecRect, ffi.Int, ffi.Double)>>( + 'GroupRectangles'); + late final _GroupRectangles = + _GroupRectanglesPtr.asFunction Function(VecRect, int, double)>(); ffi.Pointer GroupRectangles_Async( VecRect rects, @@ -6153,10 +5438,9 @@ class CvNative { ); } - late final _GroupRectangles_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecRect, ffi.Int, ffi.Double, - CvCallback_0)>>('GroupRectangles_Async'); + late final _GroupRectangles_AsyncPtr = + _lookup Function(VecRect, ffi.Int, ffi.Double, CvCallback_0)>>( + 'GroupRectangles_Async'); late final _GroupRectangles_Async = _GroupRectangles_AsyncPtr.asFunction< ffi.Pointer Function(VecRect, int, double, CvCallback_0)>(); @@ -6169,10 +5453,8 @@ class CvNative { } late final _HOGDescriptor_ClosePtr = - _lookup>( - 'HOGDescriptor_Close'); - late final _HOGDescriptor_Close = - _HOGDescriptor_ClosePtr.asFunction(); + _lookup>('HOGDescriptor_Close'); + late final _HOGDescriptor_Close = _HOGDescriptor_ClosePtr.asFunction(); ffi.Pointer HOGDescriptor_Compute( HOGDescriptor self, @@ -6194,16 +5476,11 @@ class CvNative { late final _HOGDescriptor_ComputePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - HOGDescriptor, - Mat, - ffi.Pointer, - Size, - Size, + ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, Size, Size, ffi.Pointer)>>('HOGDescriptor_Compute'); late final _HOGDescriptor_Compute = _HOGDescriptor_ComputePtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, - Size, Size, ffi.Pointer)>(); + ffi.Pointer Function( + HOGDescriptor, Mat, ffi.Pointer, Size, Size, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_Compute_Async( HOGDescriptor self, @@ -6222,13 +5499,10 @@ class CvNative { } late final _HOGDescriptor_Compute_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, Mat, Size, Size, - CvCallback_2)>>('HOGDescriptor_Compute_Async'); - late final _HOGDescriptor_Compute_Async = - _HOGDescriptor_Compute_AsyncPtr.asFunction< - ffi.Pointer Function( - HOGDescriptor, Mat, Size, Size, CvCallback_2)>(); + ffi.NativeFunction Function(HOGDescriptor, Mat, Size, Size, CvCallback_2)>>( + 'HOGDescriptor_Compute_Async'); + late final _HOGDescriptor_Compute_Async = _HOGDescriptor_Compute_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, Mat, Size, Size, CvCallback_2)>(); ffi.Pointer HOGDescriptor_Detect( HOGDescriptor self, @@ -6254,18 +5528,11 @@ class CvNative { late final _HOGDescriptor_DetectPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - HOGDescriptor, - Mat, - ffi.Pointer, - ffi.Pointer, - ffi.Double, - Size, - Size, - ffi.Pointer)>>('HOGDescriptor_Detect'); + ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, ffi.Pointer, + ffi.Double, Size, Size, ffi.Pointer)>>('HOGDescriptor_Detect'); late final _HOGDescriptor_Detect = _HOGDescriptor_DetectPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, - ffi.Pointer, double, Size, Size, ffi.Pointer)>(); + ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, ffi.Pointer, + double, Size, Size, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_Detect2( HOGDescriptor self, @@ -6289,17 +5556,11 @@ class CvNative { late final _HOGDescriptor_Detect2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - HOGDescriptor, - Mat, - ffi.Pointer, - ffi.Double, - Size, - Size, + ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, ffi.Double, Size, Size, ffi.Pointer)>>('HOGDescriptor_Detect2'); late final _HOGDescriptor_Detect2 = _HOGDescriptor_Detect2Ptr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, - double, Size, Size, ffi.Pointer)>(); + ffi.Pointer Function( + HOGDescriptor, Mat, ffi.Pointer, double, Size, Size, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_Detect2_Async( HOGDescriptor self, @@ -6321,12 +5582,10 @@ class CvNative { late final _HOGDescriptor_Detect2_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, Mat, ffi.Double, Size, - Size, CvCallback_2)>>('HOGDescriptor_Detect2_Async'); - late final _HOGDescriptor_Detect2_Async = - _HOGDescriptor_Detect2_AsyncPtr.asFunction< ffi.Pointer Function( - HOGDescriptor, Mat, double, Size, Size, CvCallback_2)>(); + HOGDescriptor, Mat, ffi.Double, Size, Size, CvCallback_2)>>('HOGDescriptor_Detect2_Async'); + late final _HOGDescriptor_Detect2_Async = _HOGDescriptor_Detect2_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, Mat, double, Size, Size, CvCallback_2)>(); ffi.Pointer HOGDescriptor_DetectMultiScale( HOGDescriptor self, @@ -6340,14 +5599,11 @@ class CvNative { ); } - late final _HOGDescriptor_DetectMultiScalePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, Mat, - ffi.Pointer)>>('HOGDescriptor_DetectMultiScale'); - late final _HOGDescriptor_DetectMultiScale = - _HOGDescriptor_DetectMultiScalePtr.asFunction< - ffi.Pointer Function( - HOGDescriptor, Mat, ffi.Pointer)>(); + late final _HOGDescriptor_DetectMultiScalePtr = + _lookup Function(HOGDescriptor, Mat, ffi.Pointer)>>( + 'HOGDescriptor_DetectMultiScale'); + late final _HOGDescriptor_DetectMultiScale = _HOGDescriptor_DetectMultiScalePtr.asFunction< + ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_DetectMultiScaleWithParams( HOGDescriptor self, @@ -6374,22 +5630,13 @@ class CvNative { } late final _HOGDescriptor_DetectMultiScaleWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - HOGDescriptor, - Mat, - ffi.Double, - Size, - Size, - ffi.Double, - ffi.Double, - ffi.Bool, - ffi.Pointer)>>( - 'HOGDescriptor_DetectMultiScaleWithParams'); + ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, Mat, ffi.Double, Size, Size, ffi.Double, ffi.Double, + ffi.Bool, ffi.Pointer)>>('HOGDescriptor_DetectMultiScaleWithParams'); late final _HOGDescriptor_DetectMultiScaleWithParams = _HOGDescriptor_DetectMultiScaleWithParamsPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, double, Size, Size, - double, double, bool, ffi.Pointer)>(); + ffi.Pointer Function( + HOGDescriptor, Mat, double, Size, Size, double, double, bool, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_DetectMultiScaleWithParams_Async( HOGDescriptor self, @@ -6417,20 +5664,12 @@ class CvNative { late final _HOGDescriptor_DetectMultiScaleWithParams_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - HOGDescriptor, - Mat, - ffi.Double, - Size, - Size, - ffi.Double, - ffi.Double, - ffi.Bool, - CvCallback_1)>>('HOGDescriptor_DetectMultiScaleWithParams_Async'); + ffi.Pointer Function(HOGDescriptor, Mat, ffi.Double, Size, Size, ffi.Double, ffi.Double, + ffi.Bool, CvCallback_1)>>('HOGDescriptor_DetectMultiScaleWithParams_Async'); late final _HOGDescriptor_DetectMultiScaleWithParams_Async = _HOGDescriptor_DetectMultiScaleWithParams_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, double, Size, Size, - double, double, bool, CvCallback_1)>(); + ffi.Pointer Function( + HOGDescriptor, Mat, double, Size, Size, double, double, bool, CvCallback_1)>(); ffi.Pointer HOGDescriptor_DetectMultiScale_Async( HOGDescriptor self, @@ -6444,13 +5683,11 @@ class CvNative { ); } - late final _HOGDescriptor_DetectMultiScale_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, Mat, - CvCallback_1)>>('HOGDescriptor_DetectMultiScale_Async'); - late final _HOGDescriptor_DetectMultiScale_Async = - _HOGDescriptor_DetectMultiScale_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, CvCallback_1)>(); + late final _HOGDescriptor_DetectMultiScale_AsyncPtr = + _lookup Function(HOGDescriptor, Mat, CvCallback_1)>>( + 'HOGDescriptor_DetectMultiScale_Async'); + late final _HOGDescriptor_DetectMultiScale_Async = _HOGDescriptor_DetectMultiScale_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, Mat, CvCallback_1)>(); ffi.Pointer HOGDescriptor_Detect_Async( HOGDescriptor self, @@ -6472,12 +5709,10 @@ class CvNative { late final _HOGDescriptor_Detect_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, Mat, ffi.Double, Size, - Size, CvCallback_3)>>('HOGDescriptor_Detect_Async'); - late final _HOGDescriptor_Detect_Async = - _HOGDescriptor_Detect_AsyncPtr.asFunction< ffi.Pointer Function( - HOGDescriptor, Mat, double, Size, Size, CvCallback_3)>(); + HOGDescriptor, Mat, ffi.Double, Size, Size, CvCallback_3)>>('HOGDescriptor_Detect_Async'); + late final _HOGDescriptor_Detect_Async = _HOGDescriptor_Detect_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, Mat, double, Size, Size, CvCallback_3)>(); ffi.Pointer HOGDescriptor_Load( HOGDescriptor self, @@ -6493,11 +5728,10 @@ class CvNative { late final _HOGDescriptor_LoadPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, ffi.Pointer, - ffi.Pointer)>>('HOGDescriptor_Load'); + ffi.Pointer Function( + HOGDescriptor, ffi.Pointer, ffi.Pointer)>>('HOGDescriptor_Load'); late final _HOGDescriptor_Load = _HOGDescriptor_LoadPtr.asFunction< - ffi.Pointer Function( - HOGDescriptor, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(HOGDescriptor, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_Load_Async( HOGDescriptor self, @@ -6513,12 +5747,10 @@ class CvNative { late final _HOGDescriptor_Load_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, ffi.Pointer, - CvCallback_1)>>('HOGDescriptor_Load_Async'); - late final _HOGDescriptor_Load_Async = - _HOGDescriptor_Load_AsyncPtr.asFunction< ffi.Pointer Function( - HOGDescriptor, ffi.Pointer, CvCallback_1)>(); + HOGDescriptor, ffi.Pointer, CvCallback_1)>>('HOGDescriptor_Load_Async'); + late final _HOGDescriptor_Load_Async = _HOGDescriptor_Load_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, ffi.Pointer, CvCallback_1)>(); ffi.Pointer HOGDescriptor_New( ffi.Pointer rval, @@ -6528,12 +5760,11 @@ class CvNative { ); } - late final _HOGDescriptor_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('HOGDescriptor_New'); - late final _HOGDescriptor_New = _HOGDescriptor_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _HOGDescriptor_NewPtr = + _lookup Function(ffi.Pointer)>>( + 'HOGDescriptor_New'); + late final _HOGDescriptor_New = + _HOGDescriptor_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer HOGDescriptor_NewFromFile( ffi.Pointer filename, @@ -6546,13 +5777,11 @@ class CvNative { } late final _HOGDescriptor_NewFromFilePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer)>>('HOGDescriptor_NewFromFile'); - late final _HOGDescriptor_NewFromFile = - _HOGDescriptor_NewFromFilePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi + .NativeFunction Function(ffi.Pointer, ffi.Pointer)>>( + 'HOGDescriptor_NewFromFile'); + late final _HOGDescriptor_NewFromFile = _HOGDescriptor_NewFromFilePtr.asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_NewFromFile_Async( ffi.Pointer filename, @@ -6564,14 +5793,11 @@ class CvNative { ); } - late final _HOGDescriptor_NewFromFile_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - CvCallback_1)>>('HOGDescriptor_NewFromFile_Async'); - late final _HOGDescriptor_NewFromFile_Async = - _HOGDescriptor_NewFromFile_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, CvCallback_1)>(); + late final _HOGDescriptor_NewFromFile_AsyncPtr = + _lookup Function(ffi.Pointer, CvCallback_1)>>( + 'HOGDescriptor_NewFromFile_Async'); + late final _HOGDescriptor_NewFromFile_Async = _HOGDescriptor_NewFromFile_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, CvCallback_1)>(); ffi.Pointer HOGDescriptor_New_Async( CvCallback_1 callback, @@ -6582,10 +5808,9 @@ class CvNative { } late final _HOGDescriptor_New_AsyncPtr = - _lookup Function(CvCallback_1)>>( - 'HOGDescriptor_New_Async'); - late final _HOGDescriptor_New_Async = _HOGDescriptor_New_AsyncPtr.asFunction< - ffi.Pointer Function(CvCallback_1)>(); + _lookup Function(CvCallback_1)>>('HOGDescriptor_New_Async'); + late final _HOGDescriptor_New_Async = + _HOGDescriptor_New_AsyncPtr.asFunction Function(CvCallback_1)>(); ffi.Pointer HOGDescriptor_SetSVMDetector( HOGDescriptor self, @@ -6597,12 +5822,11 @@ class CvNative { ); } - late final _HOGDescriptor_SetSVMDetectorPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - HOGDescriptor, VecFloat)>>('HOGDescriptor_SetSVMDetector'); - late final _HOGDescriptor_SetSVMDetector = _HOGDescriptor_SetSVMDetectorPtr - .asFunction Function(HOGDescriptor, VecFloat)>(); + late final _HOGDescriptor_SetSVMDetectorPtr = + _lookup Function(HOGDescriptor, VecFloat)>>( + 'HOGDescriptor_SetSVMDetector'); + late final _HOGDescriptor_SetSVMDetector = + _HOGDescriptor_SetSVMDetectorPtr.asFunction Function(HOGDescriptor, VecFloat)>(); ffi.Pointer HOGDescriptor_SetSVMDetector_Async( HOGDescriptor self, @@ -6616,14 +5840,11 @@ class CvNative { ); } - late final _HOGDescriptor_SetSVMDetector_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, VecFloat, - CvCallback_0)>>('HOGDescriptor_SetSVMDetector_Async'); - late final _HOGDescriptor_SetSVMDetector_Async = - _HOGDescriptor_SetSVMDetector_AsyncPtr.asFunction< - ffi.Pointer Function( - HOGDescriptor, VecFloat, CvCallback_0)>(); + late final _HOGDescriptor_SetSVMDetector_AsyncPtr = + _lookup Function(HOGDescriptor, VecFloat, CvCallback_0)>>( + 'HOGDescriptor_SetSVMDetector_Async'); + late final _HOGDescriptor_SetSVMDetector_Async = _HOGDescriptor_SetSVMDetector_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, VecFloat, CvCallback_0)>(); ffi.Pointer HOGDescriptor_computeGradient( HOGDescriptor self, @@ -6643,14 +5864,11 @@ class CvNative { ); } - late final _HOGDescriptor_computeGradientPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, Mat, Mat, Mat, Size, - Size)>>('HOGDescriptor_computeGradient'); - late final _HOGDescriptor_computeGradient = - _HOGDescriptor_computeGradientPtr.asFunction< - ffi.Pointer Function( - HOGDescriptor, Mat, Mat, Mat, Size, Size)>(); + late final _HOGDescriptor_computeGradientPtr = + _lookup Function(HOGDescriptor, Mat, Mat, Mat, Size, Size)>>( + 'HOGDescriptor_computeGradient'); + late final _HOGDescriptor_computeGradient = _HOGDescriptor_computeGradientPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, Mat, Mat, Mat, Size, Size)>(); ffi.Pointer HOGDescriptor_computeGradient_Async( HOGDescriptor self, @@ -6674,12 +5892,10 @@ class CvNative { late final _HOGDescriptor_computeGradient_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, Mat, Mat, Mat, Size, - Size, CvCallback_0)>>('HOGDescriptor_computeGradient_Async'); - late final _HOGDescriptor_computeGradient_Async = - _HOGDescriptor_computeGradient_AsyncPtr.asFunction< - ffi.Pointer Function( - HOGDescriptor, Mat, Mat, Mat, Size, Size, CvCallback_0)>(); + ffi.Pointer Function(HOGDescriptor, Mat, Mat, Mat, Size, Size, + CvCallback_0)>>('HOGDescriptor_computeGradient_Async'); + late final _HOGDescriptor_computeGradient_Async = _HOGDescriptor_computeGradient_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, Mat, Mat, Mat, Size, Size, CvCallback_0)>(); ffi.Pointer HOGDescriptor_getDaimlerPeopleDetector( ffi.Pointer rval, @@ -6689,13 +5905,11 @@ class CvNative { ); } - late final _HOGDescriptor_getDaimlerPeopleDetectorPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>( - 'HOGDescriptor_getDaimlerPeopleDetector'); - late final _HOGDescriptor_getDaimlerPeopleDetector = - _HOGDescriptor_getDaimlerPeopleDetectorPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _HOGDescriptor_getDaimlerPeopleDetectorPtr = + _lookup Function(ffi.Pointer)>>( + 'HOGDescriptor_getDaimlerPeopleDetector'); + late final _HOGDescriptor_getDaimlerPeopleDetector = _HOGDescriptor_getDaimlerPeopleDetectorPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer HOGDescriptor_getDaimlerPeopleDetector_Async( CvCallback_1 callback, @@ -6708,9 +5922,8 @@ class CvNative { late final _HOGDescriptor_getDaimlerPeopleDetector_AsyncPtr = _lookup Function(CvCallback_1)>>( 'HOGDescriptor_getDaimlerPeopleDetector_Async'); - late final _HOGDescriptor_getDaimlerPeopleDetector_Async = - _HOGDescriptor_getDaimlerPeopleDetector_AsyncPtr.asFunction< - ffi.Pointer Function(CvCallback_1)>(); + late final _HOGDescriptor_getDaimlerPeopleDetector_Async = _HOGDescriptor_getDaimlerPeopleDetector_AsyncPtr + .asFunction Function(CvCallback_1)>(); ffi.Pointer HOGDescriptor_getDescriptorSize( HOGDescriptor self, @@ -6722,14 +5935,11 @@ class CvNative { ); } - late final _HOGDescriptor_getDescriptorSizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, - ffi.Pointer)>>('HOGDescriptor_getDescriptorSize'); - late final _HOGDescriptor_getDescriptorSize = - _HOGDescriptor_getDescriptorSizePtr.asFunction< - ffi.Pointer Function( - HOGDescriptor, ffi.Pointer)>(); + late final _HOGDescriptor_getDescriptorSizePtr = + _lookup Function(HOGDescriptor, ffi.Pointer)>>( + 'HOGDescriptor_getDescriptorSize'); + late final _HOGDescriptor_getDescriptorSize = _HOGDescriptor_getDescriptorSizePtr.asFunction< + ffi.Pointer Function(HOGDescriptor, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_getDescriptorSize_Async( HOGDescriptor self, @@ -6741,13 +5951,11 @@ class CvNative { ); } - late final _HOGDescriptor_getDescriptorSize_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, - CvCallback_1)>>('HOGDescriptor_getDescriptorSize_Async'); - late final _HOGDescriptor_getDescriptorSize_Async = - _HOGDescriptor_getDescriptorSize_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, CvCallback_1)>(); + late final _HOGDescriptor_getDescriptorSize_AsyncPtr = + _lookup Function(HOGDescriptor, CvCallback_1)>>( + 'HOGDescriptor_getDescriptorSize_Async'); + late final _HOGDescriptor_getDescriptorSize_Async = _HOGDescriptor_getDescriptorSize_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, CvCallback_1)>(); ffi.Pointer HOGDescriptor_getWinSigma( HOGDescriptor self, @@ -6759,14 +5967,11 @@ class CvNative { ); } - late final _HOGDescriptor_getWinSigmaPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, - ffi.Pointer)>>('HOGDescriptor_getWinSigma'); - late final _HOGDescriptor_getWinSigma = - _HOGDescriptor_getWinSigmaPtr.asFunction< - ffi.Pointer Function( - HOGDescriptor, ffi.Pointer)>(); + late final _HOGDescriptor_getWinSigmaPtr = + _lookup Function(HOGDescriptor, ffi.Pointer)>>( + 'HOGDescriptor_getWinSigma'); + late final _HOGDescriptor_getWinSigma = _HOGDescriptor_getWinSigmaPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_getWinSigma_Async( HOGDescriptor self, @@ -6778,13 +5983,11 @@ class CvNative { ); } - late final _HOGDescriptor_getWinSigma_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - HOGDescriptor, CvCallback_1)>>('HOGDescriptor_getWinSigma_Async'); - late final _HOGDescriptor_getWinSigma_Async = - _HOGDescriptor_getWinSigma_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, CvCallback_1)>(); + late final _HOGDescriptor_getWinSigma_AsyncPtr = + _lookup Function(HOGDescriptor, CvCallback_1)>>( + 'HOGDescriptor_getWinSigma_Async'); + late final _HOGDescriptor_getWinSigma_Async = _HOGDescriptor_getWinSigma_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, CvCallback_1)>(); ffi.Pointer HOGDescriptor_groupRectangles( HOGDescriptor self, @@ -6804,12 +6007,10 @@ class CvNative { late final _HOGDescriptor_groupRectanglesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, VecRect, VecDouble, - ffi.Int, ffi.Double)>>('HOGDescriptor_groupRectangles'); - late final _HOGDescriptor_groupRectangles = - _HOGDescriptor_groupRectanglesPtr.asFunction< ffi.Pointer Function( - HOGDescriptor, VecRect, VecDouble, int, double)>(); + HOGDescriptor, VecRect, VecDouble, ffi.Int, ffi.Double)>>('HOGDescriptor_groupRectangles'); + late final _HOGDescriptor_groupRectangles = _HOGDescriptor_groupRectanglesPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, VecRect, VecDouble, int, double)>(); ffi.Pointer HOGDescriptor_groupRectangles_Async( HOGDescriptor self, @@ -6831,17 +6032,10 @@ class CvNative { late final _HOGDescriptor_groupRectangles_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - HOGDescriptor, - VecRect, - VecDouble, - ffi.Int, - ffi.Double, + ffi.Pointer Function(HOGDescriptor, VecRect, VecDouble, ffi.Int, ffi.Double, CvCallback_0)>>('HOGDescriptor_groupRectangles_Async'); - late final _HOGDescriptor_groupRectangles_Async = - _HOGDescriptor_groupRectangles_AsyncPtr.asFunction< - ffi.Pointer Function( - HOGDescriptor, VecRect, VecDouble, int, double, CvCallback_0)>(); + late final _HOGDescriptor_groupRectangles_Async = _HOGDescriptor_groupRectangles_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, VecRect, VecDouble, int, double, CvCallback_0)>(); ffi.Pointer HOG_GetDefaultPeopleDetector( ffi.Pointer rval, @@ -6851,12 +6045,11 @@ class CvNative { ); } - late final _HOG_GetDefaultPeopleDetectorPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('HOG_GetDefaultPeopleDetector'); - late final _HOG_GetDefaultPeopleDetector = _HOG_GetDefaultPeopleDetectorPtr - .asFunction Function(ffi.Pointer)>(); + late final _HOG_GetDefaultPeopleDetectorPtr = + _lookup Function(ffi.Pointer)>>( + 'HOG_GetDefaultPeopleDetector'); + late final _HOG_GetDefaultPeopleDetector = + _HOG_GetDefaultPeopleDetectorPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer HOG_GetDefaultPeopleDetector_Async( CvCallback_1 callback, @@ -6870,8 +6063,7 @@ class CvNative { _lookup Function(CvCallback_1)>>( 'HOG_GetDefaultPeopleDetector_Async'); late final _HOG_GetDefaultPeopleDetector_Async = - _HOG_GetDefaultPeopleDetector_AsyncPtr.asFunction< - ffi.Pointer Function(CvCallback_1)>(); + _HOG_GetDefaultPeopleDetector_AsyncPtr.asFunction Function(CvCallback_1)>(); ffi.Pointer HoughCircles( Mat src, @@ -6889,12 +6081,11 @@ class CvNative { ); } - late final _HoughCirclesPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Double, ffi.Double)>>('HoughCircles'); - late final _HoughCircles = _HoughCirclesPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, double, double)>(); + late final _HoughCirclesPtr = + _lookup Function(Mat, Mat, ffi.Int, ffi.Double, ffi.Double)>>( + 'HoughCircles'); + late final _HoughCircles = + _HoughCirclesPtr.asFunction Function(Mat, Mat, int, double, double)>(); ffi.Pointer HoughCirclesWithParams( Mat src, @@ -6922,19 +6113,10 @@ class CvNative { late final _HoughCirclesWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - Mat, - ffi.Int, - ffi.Double, - ffi.Double, - ffi.Double, - ffi.Double, - ffi.Int, - ffi.Int)>>('HoughCirclesWithParams'); + ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Double, ffi.Double, ffi.Double, ffi.Double, + ffi.Int, ffi.Int)>>('HoughCirclesWithParams'); late final _HoughCirclesWithParams = _HoughCirclesWithParamsPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, int, double, double, double, double, int, int)>(); + ffi.Pointer Function(Mat, Mat, int, double, double, double, double, int, int)>(); ffi.Pointer HoughLines( Mat src, @@ -6962,19 +6144,10 @@ class CvNative { late final _HoughLinesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - Mat, - ffi.Double, - ffi.Double, - ffi.Int, - ffi.Double, - ffi.Double, - ffi.Double, - ffi.Double)>>('HoughLines'); + ffi.Pointer Function(Mat, Mat, ffi.Double, ffi.Double, ffi.Int, ffi.Double, ffi.Double, + ffi.Double, ffi.Double)>>('HoughLines'); late final _HoughLines = _HoughLinesPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, double, double, int, double, double, double, double)>(); + ffi.Pointer Function(Mat, Mat, double, double, int, double, double, double, double)>(); ffi.Pointer HoughLinesP( Mat src, @@ -6992,12 +6165,11 @@ class CvNative { ); } - late final _HoughLinesPPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Double, ffi.Double, ffi.Int)>>('HoughLinesP'); - late final _HoughLinesP = _HoughLinesPPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, double, int)>(); + late final _HoughLinesPPtr = + _lookup Function(Mat, Mat, ffi.Double, ffi.Double, ffi.Int)>>( + 'HoughLinesP'); + late final _HoughLinesP = + _HoughLinesPPtr.asFunction Function(Mat, Mat, double, double, int)>(); ffi.Pointer HoughLinesPWithParams( Mat src, @@ -7021,11 +6193,10 @@ class CvNative { late final _HoughLinesPWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Double, ffi.Double, - ffi.Int, ffi.Double, ffi.Double)>>('HoughLinesPWithParams'); + ffi.Pointer Function( + Mat, Mat, ffi.Double, ffi.Double, ffi.Int, ffi.Double, ffi.Double)>>('HoughLinesPWithParams'); late final _HoughLinesPWithParams = _HoughLinesPWithParamsPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, double, double, int, double, double)>(); + ffi.Pointer Function(Mat, Mat, double, double, int, double, double)>(); ffi.Pointer HoughLinesPointSet( Mat points, @@ -7054,21 +6225,11 @@ class CvNative { } late final _HoughLinesPointSetPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, - Mat, - ffi.Int, - ffi.Int, - ffi.Double, - ffi.Double, - ffi.Double, - ffi.Double, - ffi.Double, - ffi.Double)>>('HoughLinesPointSet'); + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Double, ffi.Double, ffi.Double, + ffi.Double, ffi.Double, ffi.Double)>>('HoughLinesPointSet'); late final _HoughLinesPointSet = _HoughLinesPointSetPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, int, double, double, double, - double, double, double)>(); + ffi.Pointer Function(Mat, Mat, int, int, double, double, double, double, double, double)>(); ffi.Pointer IlluminationChange( Mat src, @@ -7086,12 +6247,11 @@ class CvNative { ); } - late final _IlluminationChangePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Float, ffi.Float)>>('IlluminationChange'); - late final _IlluminationChange = _IlluminationChangePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, double, double)>(); + late final _IlluminationChangePtr = + _lookup Function(Mat, Mat, Mat, ffi.Float, ffi.Float)>>( + 'IlluminationChange'); + late final _IlluminationChange = + _IlluminationChangePtr.asFunction Function(Mat, Mat, Mat, double, double)>(); ffi.Pointer Image_IMDecode( VecUChar buf, @@ -7105,12 +6265,11 @@ class CvNative { ); } - late final _Image_IMDecodePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecUChar, ffi.Int, ffi.Pointer)>>('Image_IMDecode'); - late final _Image_IMDecode = _Image_IMDecodePtr.asFunction< - ffi.Pointer Function(VecUChar, int, ffi.Pointer)>(); + late final _Image_IMDecodePtr = + _lookup Function(VecUChar, ffi.Int, ffi.Pointer)>>( + 'Image_IMDecode'); + late final _Image_IMDecode = + _Image_IMDecodePtr.asFunction Function(VecUChar, int, ffi.Pointer)>(); ffi.Pointer Image_IMDecode_Async( VecUChar buf, @@ -7124,12 +6283,11 @@ class CvNative { ); } - late final _Image_IMDecode_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecUChar, ffi.Int, CvCallback_1)>>('Image_IMDecode_Async'); - late final _Image_IMDecode_Async = _Image_IMDecode_AsyncPtr.asFunction< - ffi.Pointer Function(VecUChar, int, CvCallback_1)>(); + late final _Image_IMDecode_AsyncPtr = + _lookup Function(VecUChar, ffi.Int, CvCallback_1)>>( + 'Image_IMDecode_Async'); + late final _Image_IMDecode_Async = + _Image_IMDecode_AsyncPtr.asFunction Function(VecUChar, int, CvCallback_1)>(); ffi.Pointer Image_IMEncode( ffi.Pointer fileExt, @@ -7147,11 +6305,11 @@ class CvNative { late final _Image_IMEncodePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, Mat, - ffi.Pointer, ffi.Pointer)>>('Image_IMEncode'); + ffi.Pointer Function( + ffi.Pointer, Mat, ffi.Pointer, ffi.Pointer)>>('Image_IMEncode'); late final _Image_IMEncode = _Image_IMEncodePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, Mat, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, Mat, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Image_IMEncode_Async( ffi.Pointer fileExt, @@ -7165,13 +6323,11 @@ class CvNative { ); } - late final _Image_IMEncode_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, Mat, - CvCallback_2)>>('Image_IMEncode_Async'); + late final _Image_IMEncode_AsyncPtr = + _lookup Function(ffi.Pointer, Mat, CvCallback_2)>>( + 'Image_IMEncode_Async'); late final _Image_IMEncode_Async = _Image_IMEncode_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, Mat, CvCallback_2)>(); + ffi.Pointer Function(ffi.Pointer, Mat, CvCallback_2)>(); ffi.Pointer Image_IMEncode_WithParams( ffi.Pointer fileExt, @@ -7191,16 +6347,11 @@ class CvNative { late final _Image_IMEncode_WithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - Mat, - VecInt, - ffi.Pointer, + ffi.Pointer Function(ffi.Pointer, Mat, VecInt, ffi.Pointer, ffi.Pointer)>>('Image_IMEncode_WithParams'); - late final _Image_IMEncode_WithParams = - _Image_IMEncode_WithParamsPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, Mat, VecInt, - ffi.Pointer, ffi.Pointer)>(); + late final _Image_IMEncode_WithParams = _Image_IMEncode_WithParamsPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, Mat, VecInt, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Image_IMEncode_WithParams_Async( ffi.Pointer fileExt, @@ -7217,13 +6368,11 @@ class CvNative { } late final _Image_IMEncode_WithParams_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, Mat, VecInt, - CvCallback_2)>>('Image_IMEncode_WithParams_Async'); - late final _Image_IMEncode_WithParams_Async = - _Image_IMEncode_WithParams_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, Mat, VecInt, CvCallback_2)>(); + ffi + .NativeFunction Function(ffi.Pointer, Mat, VecInt, CvCallback_2)>>( + 'Image_IMEncode_WithParams_Async'); + late final _Image_IMEncode_WithParams_Async = _Image_IMEncode_WithParams_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, Mat, VecInt, CvCallback_2)>(); ffi.Pointer Image_IMRead( ffi.Pointer filename, @@ -7239,11 +6388,9 @@ class CvNative { late final _Image_IMReadPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('Image_IMRead'); + ffi.Pointer Function(ffi.Pointer, ffi.Int, ffi.Pointer)>>('Image_IMRead'); late final _Image_IMRead = _Image_IMReadPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer Image_IMRead_Async( ffi.Pointer filename, @@ -7258,12 +6405,10 @@ class CvNative { } late final _Image_IMRead_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - CvCallback_1)>>('Image_IMRead_Async'); + ffi.NativeFunction Function(ffi.Pointer, ffi.Int, CvCallback_1)>>( + 'Image_IMRead_Async'); late final _Image_IMRead_Async = _Image_IMRead_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, CvCallback_1)>(); + ffi.Pointer Function(ffi.Pointer, int, CvCallback_1)>(); ffi.Pointer Image_IMWrite( ffi.Pointer filename, @@ -7278,12 +6423,11 @@ class CvNative { } late final _Image_IMWritePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, Mat, - ffi.Pointer)>>('Image_IMWrite'); + ffi + .NativeFunction Function(ffi.Pointer, Mat, ffi.Pointer)>>( + 'Image_IMWrite'); late final _Image_IMWrite = _Image_IMWritePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, Mat, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, Mat, ffi.Pointer)>(); ffi.Pointer Image_IMWrite_Async( ffi.Pointer filename, @@ -7297,13 +6441,11 @@ class CvNative { ); } - late final _Image_IMWrite_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, Mat, - CvCallback_1)>>('Image_IMWrite_Async'); + late final _Image_IMWrite_AsyncPtr = + _lookup Function(ffi.Pointer, Mat, CvCallback_1)>>( + 'Image_IMWrite_Async'); late final _Image_IMWrite_Async = _Image_IMWrite_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, Mat, CvCallback_1)>(); + ffi.Pointer Function(ffi.Pointer, Mat, CvCallback_1)>(); ffi.Pointer Image_IMWrite_WithParams( ffi.Pointer filename, @@ -7321,12 +6463,10 @@ class CvNative { late final _Image_IMWrite_WithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, Mat, VecInt, - ffi.Pointer)>>('Image_IMWrite_WithParams'); - late final _Image_IMWrite_WithParams = - _Image_IMWrite_WithParamsPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, Mat, VecInt, ffi.Pointer)>(); + ffi.Pointer, Mat, VecInt, ffi.Pointer)>>('Image_IMWrite_WithParams'); + late final _Image_IMWrite_WithParams = _Image_IMWrite_WithParamsPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, Mat, VecInt, ffi.Pointer)>(); ffi.Pointer Image_IMWrite_WithParams_Async( ffi.Pointer filename, @@ -7343,13 +6483,11 @@ class CvNative { } late final _Image_IMWrite_WithParams_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, Mat, VecInt, - CvCallback_1)>>('Image_IMWrite_WithParams_Async'); - late final _Image_IMWrite_WithParams_Async = - _Image_IMWrite_WithParams_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, Mat, VecInt, CvCallback_1)>(); + ffi + .NativeFunction Function(ffi.Pointer, Mat, VecInt, CvCallback_1)>>( + 'Image_IMWrite_WithParams_Async'); + late final _Image_IMWrite_WithParams_Async = _Image_IMWrite_WithParams_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, Mat, VecInt, CvCallback_1)>(); ffi.Pointer InitUndistortRectifyMap( Mat cameraMatrix, @@ -7374,12 +6512,10 @@ class CvNative { } late final _InitUndistortRectifyMapPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, Size, ffi.Int, Mat, - Mat)>>('InitUndistortRectifyMap'); + ffi.NativeFunction Function(Mat, Mat, Mat, Mat, Size, ffi.Int, Mat, Mat)>>( + 'InitUndistortRectifyMap'); late final _InitUndistortRectifyMap = _InitUndistortRectifyMapPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, Size, int, Mat, Mat)>(); + ffi.Pointer Function(Mat, Mat, Mat, Mat, Size, int, Mat, Mat)>(); ffi.Pointer Integral( Mat src, @@ -7399,12 +6535,11 @@ class CvNative { ); } - late final _IntegralPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, ffi.Int, ffi.Int)>>('Integral'); - late final _Integral = _IntegralPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, int, int)>(); + late final _IntegralPtr = + _lookup Function(Mat, Mat, Mat, Mat, ffi.Int, ffi.Int)>>( + 'Integral'); + late final _Integral = + _IntegralPtr.asFunction Function(Mat, Mat, Mat, Mat, int, int)>(); ffi.Pointer InvertAffineTransform( Mat src, @@ -7417,10 +6552,9 @@ class CvNative { } late final _InvertAffineTransformPtr = - _lookup Function(Mat, Mat)>>( - 'InvertAffineTransform'); - late final _InvertAffineTransform = _InvertAffineTransformPtr.asFunction< - ffi.Pointer Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('InvertAffineTransform'); + late final _InvertAffineTransform = + _InvertAffineTransformPtr.asFunction Function(Mat, Mat)>(); void KAZE_Close( KAZEPtr a, @@ -7430,8 +6564,7 @@ class CvNative { ); } - late final _KAZE_ClosePtr = - _lookup>('KAZE_Close'); + late final _KAZE_ClosePtr = _lookup>('KAZE_Close'); late final _KAZE_Close = _KAZE_ClosePtr.asFunction(); ffi.Pointer KAZE_Create( @@ -7442,11 +6575,9 @@ class CvNative { ); } - late final _KAZE_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('KAZE_Create'); - late final _KAZE_Create = _KAZE_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _KAZE_CreatePtr = + _lookup Function(ffi.Pointer)>>('KAZE_Create'); + late final _KAZE_Create = _KAZE_CreatePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer KAZE_Detect( KAZE a, @@ -7460,12 +6591,11 @@ class CvNative { ); } - late final _KAZE_DetectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KAZE, Mat, ffi.Pointer)>>('KAZE_Detect'); - late final _KAZE_Detect = _KAZE_DetectPtr.asFunction< - ffi.Pointer Function(KAZE, Mat, ffi.Pointer)>(); + late final _KAZE_DetectPtr = + _lookup Function(KAZE, Mat, ffi.Pointer)>>( + 'KAZE_Detect'); + late final _KAZE_Detect = + _KAZE_DetectPtr.asFunction Function(KAZE, Mat, ffi.Pointer)>(); ffi.Pointer KAZE_DetectAndCompute( KAZE a, @@ -7484,12 +6614,10 @@ class CvNative { } late final _KAZE_DetectAndComputePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(KAZE, Mat, Mat, Mat, - ffi.Pointer)>>('KAZE_DetectAndCompute'); + ffi.NativeFunction Function(KAZE, Mat, Mat, Mat, ffi.Pointer)>>( + 'KAZE_DetectAndCompute'); late final _KAZE_DetectAndCompute = _KAZE_DetectAndComputePtr.asFunction< - ffi.Pointer Function( - KAZE, Mat, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function(KAZE, Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer KMeans( Mat data, @@ -7515,11 +6643,10 @@ class CvNative { late final _KMeansPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, Mat, TermCriteria, - ffi.Int, ffi.Int, Mat, ffi.Pointer)>>('KMeans'); + ffi.Pointer Function( + Mat, ffi.Int, Mat, TermCriteria, ffi.Int, ffi.Int, Mat, ffi.Pointer)>>('KMeans'); late final _KMeans = _KMeansPtr.asFunction< - ffi.Pointer Function(Mat, int, Mat, TermCriteria, int, int, Mat, - ffi.Pointer)>(); + ffi.Pointer Function(Mat, int, Mat, TermCriteria, int, int, Mat, ffi.Pointer)>(); ffi.Pointer KMeansPoints( VecPoint2f pts, @@ -7545,11 +6672,11 @@ class CvNative { late final _KMeansPointsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecPoint2f, ffi.Int, Mat, TermCriteria, - ffi.Int, ffi.Int, Mat, ffi.Pointer)>>('KMeansPoints'); + ffi.Pointer Function(VecPoint2f, ffi.Int, Mat, TermCriteria, ffi.Int, ffi.Int, Mat, + ffi.Pointer)>>('KMeansPoints'); late final _KMeansPoints = _KMeansPointsPtr.asFunction< - ffi.Pointer Function(VecPoint2f, int, Mat, TermCriteria, int, - int, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + VecPoint2f, int, Mat, TermCriteria, int, int, Mat, ffi.Pointer)>(); void KalmanFilter_Close( KalmanFilterPtr self, @@ -7560,10 +6687,8 @@ class CvNative { } late final _KalmanFilter_ClosePtr = - _lookup>( - 'KalmanFilter_Close'); - late final _KalmanFilter_Close = - _KalmanFilter_ClosePtr.asFunction(); + _lookup>('KalmanFilter_Close'); + late final _KalmanFilter_Close = _KalmanFilter_ClosePtr.asFunction(); ffi.Pointer KalmanFilter_Correct( KalmanFilter self, @@ -7577,10 +6702,9 @@ class CvNative { ); } - late final _KalmanFilter_CorrectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KalmanFilter, Mat, ffi.Pointer)>>('KalmanFilter_Correct'); + late final _KalmanFilter_CorrectPtr = + _lookup Function(KalmanFilter, Mat, ffi.Pointer)>>( + 'KalmanFilter_Correct'); late final _KalmanFilter_Correct = _KalmanFilter_CorrectPtr.asFunction< ffi.Pointer Function(KalmanFilter, Mat, ffi.Pointer)>(); @@ -7594,13 +6718,11 @@ class CvNative { ); } - late final _KalmanFilter_GetControlMatrixPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(KalmanFilter, - ffi.Pointer)>>('KalmanFilter_GetControlMatrix'); - late final _KalmanFilter_GetControlMatrix = - _KalmanFilter_GetControlMatrixPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetControlMatrixPtr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetControlMatrix'); + late final _KalmanFilter_GetControlMatrix = _KalmanFilter_GetControlMatrixPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetErrorCovPost( KalmanFilter self, @@ -7612,13 +6734,11 @@ class CvNative { ); } - late final _KalmanFilter_GetErrorCovPostPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetErrorCovPost'); - late final _KalmanFilter_GetErrorCovPost = - _KalmanFilter_GetErrorCovPostPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetErrorCovPostPtr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetErrorCovPost'); + late final _KalmanFilter_GetErrorCovPost = _KalmanFilter_GetErrorCovPostPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetErrorCovPre( KalmanFilter self, @@ -7630,13 +6750,11 @@ class CvNative { ); } - late final _KalmanFilter_GetErrorCovPrePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetErrorCovPre'); - late final _KalmanFilter_GetErrorCovPre = - _KalmanFilter_GetErrorCovPrePtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetErrorCovPrePtr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetErrorCovPre'); + late final _KalmanFilter_GetErrorCovPre = _KalmanFilter_GetErrorCovPrePtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetGain( KalmanFilter self, @@ -7648,12 +6766,11 @@ class CvNative { ); } - late final _KalmanFilter_GetGainPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetGain'); - late final _KalmanFilter_GetGain = _KalmanFilter_GetGainPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetGainPtr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetGain'); + late final _KalmanFilter_GetGain = + _KalmanFilter_GetGainPtr.asFunction Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetMeasurementMatrix( KalmanFilter self, @@ -7665,13 +6782,11 @@ class CvNative { ); } - late final _KalmanFilter_GetMeasurementMatrixPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(KalmanFilter, - ffi.Pointer)>>('KalmanFilter_GetMeasurementMatrix'); - late final _KalmanFilter_GetMeasurementMatrix = - _KalmanFilter_GetMeasurementMatrixPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetMeasurementMatrixPtr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetMeasurementMatrix'); + late final _KalmanFilter_GetMeasurementMatrix = _KalmanFilter_GetMeasurementMatrixPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetMeasurementNoiseCov( KalmanFilter self, @@ -7683,13 +6798,11 @@ class CvNative { ); } - late final _KalmanFilter_GetMeasurementNoiseCovPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(KalmanFilter, - ffi.Pointer)>>('KalmanFilter_GetMeasurementNoiseCov'); - late final _KalmanFilter_GetMeasurementNoiseCov = - _KalmanFilter_GetMeasurementNoiseCovPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetMeasurementNoiseCovPtr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetMeasurementNoiseCov'); + late final _KalmanFilter_GetMeasurementNoiseCov = _KalmanFilter_GetMeasurementNoiseCovPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetProcessNoiseCov( KalmanFilter self, @@ -7701,13 +6814,11 @@ class CvNative { ); } - late final _KalmanFilter_GetProcessNoiseCovPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(KalmanFilter, - ffi.Pointer)>>('KalmanFilter_GetProcessNoiseCov'); - late final _KalmanFilter_GetProcessNoiseCov = - _KalmanFilter_GetProcessNoiseCovPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetProcessNoiseCovPtr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetProcessNoiseCov'); + late final _KalmanFilter_GetProcessNoiseCov = _KalmanFilter_GetProcessNoiseCovPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetStatePost( KalmanFilter self, @@ -7719,13 +6830,11 @@ class CvNative { ); } - late final _KalmanFilter_GetStatePostPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetStatePost'); - late final _KalmanFilter_GetStatePost = - _KalmanFilter_GetStatePostPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetStatePostPtr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetStatePost'); + late final _KalmanFilter_GetStatePost = _KalmanFilter_GetStatePostPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetStatePre( KalmanFilter self, @@ -7737,13 +6846,11 @@ class CvNative { ); } - late final _KalmanFilter_GetStatePrePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetStatePre'); - late final _KalmanFilter_GetStatePre = - _KalmanFilter_GetStatePrePtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetStatePrePtr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetStatePre'); + late final _KalmanFilter_GetStatePre = _KalmanFilter_GetStatePrePtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetTemp1( KalmanFilter self, @@ -7755,12 +6862,11 @@ class CvNative { ); } - late final _KalmanFilter_GetTemp1Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetTemp1'); - late final _KalmanFilter_GetTemp1 = _KalmanFilter_GetTemp1Ptr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetTemp1Ptr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetTemp1'); + late final _KalmanFilter_GetTemp1 = + _KalmanFilter_GetTemp1Ptr.asFunction Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetTemp2( KalmanFilter self, @@ -7772,12 +6878,11 @@ class CvNative { ); } - late final _KalmanFilter_GetTemp2Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetTemp2'); - late final _KalmanFilter_GetTemp2 = _KalmanFilter_GetTemp2Ptr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetTemp2Ptr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetTemp2'); + late final _KalmanFilter_GetTemp2 = + _KalmanFilter_GetTemp2Ptr.asFunction Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetTemp3( KalmanFilter self, @@ -7789,12 +6894,11 @@ class CvNative { ); } - late final _KalmanFilter_GetTemp3Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetTemp3'); - late final _KalmanFilter_GetTemp3 = _KalmanFilter_GetTemp3Ptr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetTemp3Ptr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetTemp3'); + late final _KalmanFilter_GetTemp3 = + _KalmanFilter_GetTemp3Ptr.asFunction Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetTemp4( KalmanFilter self, @@ -7806,12 +6910,11 @@ class CvNative { ); } - late final _KalmanFilter_GetTemp4Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetTemp4'); - late final _KalmanFilter_GetTemp4 = _KalmanFilter_GetTemp4Ptr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetTemp4Ptr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetTemp4'); + late final _KalmanFilter_GetTemp4 = + _KalmanFilter_GetTemp4Ptr.asFunction Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetTemp5( KalmanFilter self, @@ -7823,12 +6926,11 @@ class CvNative { ); } - late final _KalmanFilter_GetTemp5Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetTemp5'); - late final _KalmanFilter_GetTemp5 = _KalmanFilter_GetTemp5Ptr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetTemp5Ptr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetTemp5'); + late final _KalmanFilter_GetTemp5 = + _KalmanFilter_GetTemp5Ptr.asFunction Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetTransitionMatrix( KalmanFilter self, @@ -7840,13 +6942,11 @@ class CvNative { ); } - late final _KalmanFilter_GetTransitionMatrixPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(KalmanFilter, - ffi.Pointer)>>('KalmanFilter_GetTransitionMatrix'); - late final _KalmanFilter_GetTransitionMatrix = - _KalmanFilter_GetTransitionMatrixPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetTransitionMatrixPtr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_GetTransitionMatrix'); + late final _KalmanFilter_GetTransitionMatrix = _KalmanFilter_GetTransitionMatrixPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_Init( KalmanFilter self, @@ -7860,12 +6960,11 @@ class CvNative { ); } - late final _KalmanFilter_InitPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KalmanFilter, ffi.Int, ffi.Int)>>('KalmanFilter_Init'); - late final _KalmanFilter_Init = _KalmanFilter_InitPtr.asFunction< - ffi.Pointer Function(KalmanFilter, int, int)>(); + late final _KalmanFilter_InitPtr = + _lookup Function(KalmanFilter, ffi.Int, ffi.Int)>>( + 'KalmanFilter_Init'); + late final _KalmanFilter_Init = + _KalmanFilter_InitPtr.asFunction Function(KalmanFilter, int, int)>(); ffi.Pointer KalmanFilter_InitWithParams( KalmanFilter self, @@ -7884,12 +6983,11 @@ class CvNative { } late final _KalmanFilter_InitWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(KalmanFilter, ffi.Int, ffi.Int, - ffi.Int, ffi.Int)>>('KalmanFilter_InitWithParams'); - late final _KalmanFilter_InitWithParams = - _KalmanFilter_InitWithParamsPtr.asFunction< - ffi.Pointer Function(KalmanFilter, int, int, int, int)>(); + ffi + .NativeFunction Function(KalmanFilter, ffi.Int, ffi.Int, ffi.Int, ffi.Int)>>( + 'KalmanFilter_InitWithParams'); + late final _KalmanFilter_InitWithParams = _KalmanFilter_InitWithParamsPtr.asFunction< + ffi.Pointer Function(KalmanFilter, int, int, int, int)>(); ffi.Pointer KalmanFilter_New( int dynamParams, @@ -7909,11 +7007,10 @@ class CvNative { late final _KalmanFilter_NewPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer)>>('KalmanFilter_New'); + ffi.Pointer Function( + ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('KalmanFilter_New'); late final _KalmanFilter_New = _KalmanFilter_NewPtr.asFunction< - ffi.Pointer Function( - int, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(int, int, int, int, ffi.Pointer)>(); ffi.Pointer KalmanFilter_Predict( KalmanFilter self, @@ -7925,12 +7022,11 @@ class CvNative { ); } - late final _KalmanFilter_PredictPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - KalmanFilter, ffi.Pointer)>>('KalmanFilter_Predict'); - late final _KalmanFilter_Predict = _KalmanFilter_PredictPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_PredictPtr = + _lookup Function(KalmanFilter, ffi.Pointer)>>( + 'KalmanFilter_Predict'); + late final _KalmanFilter_Predict = + _KalmanFilter_PredictPtr.asFunction Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_PredictWithParams( KalmanFilter self, @@ -7944,14 +7040,11 @@ class CvNative { ); } - late final _KalmanFilter_PredictWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(KalmanFilter, Mat, - ffi.Pointer)>>('KalmanFilter_PredictWithParams'); - late final _KalmanFilter_PredictWithParams = - _KalmanFilter_PredictWithParamsPtr.asFunction< - ffi.Pointer Function( - KalmanFilter, Mat, ffi.Pointer)>(); + late final _KalmanFilter_PredictWithParamsPtr = + _lookup Function(KalmanFilter, Mat, ffi.Pointer)>>( + 'KalmanFilter_PredictWithParams'); + late final _KalmanFilter_PredictWithParams = _KalmanFilter_PredictWithParamsPtr.asFunction< + ffi.Pointer Function(KalmanFilter, Mat, ffi.Pointer)>(); ffi.Pointer KalmanFilter_SetControlMatrix( KalmanFilter self, @@ -7963,12 +7056,11 @@ class CvNative { ); } - late final _KalmanFilter_SetControlMatrixPtr = _lookup< - ffi - .NativeFunction Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetControlMatrix'); - late final _KalmanFilter_SetControlMatrix = _KalmanFilter_SetControlMatrixPtr - .asFunction Function(KalmanFilter, Mat)>(); + late final _KalmanFilter_SetControlMatrixPtr = + _lookup Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetControlMatrix'); + late final _KalmanFilter_SetControlMatrix = + _KalmanFilter_SetControlMatrixPtr.asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetErrorCovPost( KalmanFilter self, @@ -7980,12 +7072,11 @@ class CvNative { ); } - late final _KalmanFilter_SetErrorCovPostPtr = _lookup< - ffi - .NativeFunction Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetErrorCovPost'); - late final _KalmanFilter_SetErrorCovPost = _KalmanFilter_SetErrorCovPostPtr - .asFunction Function(KalmanFilter, Mat)>(); + late final _KalmanFilter_SetErrorCovPostPtr = + _lookup Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetErrorCovPost'); + late final _KalmanFilter_SetErrorCovPost = + _KalmanFilter_SetErrorCovPostPtr.asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetErrorCovPre( KalmanFilter self, @@ -7997,12 +7088,11 @@ class CvNative { ); } - late final _KalmanFilter_SetErrorCovPrePtr = _lookup< - ffi - .NativeFunction Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetErrorCovPre'); - late final _KalmanFilter_SetErrorCovPre = _KalmanFilter_SetErrorCovPrePtr - .asFunction Function(KalmanFilter, Mat)>(); + late final _KalmanFilter_SetErrorCovPrePtr = + _lookup Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetErrorCovPre'); + late final _KalmanFilter_SetErrorCovPre = + _KalmanFilter_SetErrorCovPrePtr.asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetGain( KalmanFilter self, @@ -8014,12 +7104,10 @@ class CvNative { ); } - late final _KalmanFilter_SetGainPtr = _lookup< - ffi - .NativeFunction Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetGain'); - late final _KalmanFilter_SetGain = _KalmanFilter_SetGainPtr.asFunction< - ffi.Pointer Function(KalmanFilter, Mat)>(); + late final _KalmanFilter_SetGainPtr = + _lookup Function(KalmanFilter, Mat)>>('KalmanFilter_SetGain'); + late final _KalmanFilter_SetGain = + _KalmanFilter_SetGainPtr.asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetMeasurementMatrix( KalmanFilter self, @@ -8031,13 +7119,11 @@ class CvNative { ); } - late final _KalmanFilter_SetMeasurementMatrixPtr = _lookup< - ffi - .NativeFunction Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetMeasurementMatrix'); + late final _KalmanFilter_SetMeasurementMatrixPtr = + _lookup Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetMeasurementMatrix'); late final _KalmanFilter_SetMeasurementMatrix = - _KalmanFilter_SetMeasurementMatrixPtr.asFunction< - ffi.Pointer Function(KalmanFilter, Mat)>(); + _KalmanFilter_SetMeasurementMatrixPtr.asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetMeasurementNoiseCov( KalmanFilter self, @@ -8049,13 +7135,11 @@ class CvNative { ); } - late final _KalmanFilter_SetMeasurementNoiseCovPtr = _lookup< - ffi - .NativeFunction Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetMeasurementNoiseCov'); + late final _KalmanFilter_SetMeasurementNoiseCovPtr = + _lookup Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetMeasurementNoiseCov'); late final _KalmanFilter_SetMeasurementNoiseCov = - _KalmanFilter_SetMeasurementNoiseCovPtr.asFunction< - ffi.Pointer Function(KalmanFilter, Mat)>(); + _KalmanFilter_SetMeasurementNoiseCovPtr.asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetProcessNoiseCov( KalmanFilter self, @@ -8067,13 +7151,11 @@ class CvNative { ); } - late final _KalmanFilter_SetProcessNoiseCovPtr = _lookup< - ffi - .NativeFunction Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetProcessNoiseCov'); + late final _KalmanFilter_SetProcessNoiseCovPtr = + _lookup Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetProcessNoiseCov'); late final _KalmanFilter_SetProcessNoiseCov = - _KalmanFilter_SetProcessNoiseCovPtr.asFunction< - ffi.Pointer Function(KalmanFilter, Mat)>(); + _KalmanFilter_SetProcessNoiseCovPtr.asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetStatePost( KalmanFilter self, @@ -8085,12 +7167,11 @@ class CvNative { ); } - late final _KalmanFilter_SetStatePostPtr = _lookup< - ffi - .NativeFunction Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetStatePost'); - late final _KalmanFilter_SetStatePost = _KalmanFilter_SetStatePostPtr - .asFunction Function(KalmanFilter, Mat)>(); + late final _KalmanFilter_SetStatePostPtr = + _lookup Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetStatePost'); + late final _KalmanFilter_SetStatePost = + _KalmanFilter_SetStatePostPtr.asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetStatePre( KalmanFilter self, @@ -8102,12 +7183,11 @@ class CvNative { ); } - late final _KalmanFilter_SetStatePrePtr = _lookup< - ffi - .NativeFunction Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetStatePre'); - late final _KalmanFilter_SetStatePre = _KalmanFilter_SetStatePrePtr - .asFunction Function(KalmanFilter, Mat)>(); + late final _KalmanFilter_SetStatePrePtr = + _lookup Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetStatePre'); + late final _KalmanFilter_SetStatePre = + _KalmanFilter_SetStatePrePtr.asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetTransitionMatrix( KalmanFilter self, @@ -8119,13 +7199,11 @@ class CvNative { ); } - late final _KalmanFilter_SetTransitionMatrixPtr = _lookup< - ffi - .NativeFunction Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetTransitionMatrix'); + late final _KalmanFilter_SetTransitionMatrixPtr = + _lookup Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetTransitionMatrix'); late final _KalmanFilter_SetTransitionMatrix = - _KalmanFilter_SetTransitionMatrixPtr.asFunction< - ffi.Pointer Function(KalmanFilter, Mat)>(); + _KalmanFilter_SetTransitionMatrixPtr.asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer LUT( Mat src, @@ -8139,10 +7217,8 @@ class CvNative { ); } - late final _LUTPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>('LUT'); - late final _LUT = - _LUTPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _LUTPtr = _lookup Function(Mat, Mat, Mat)>>('LUT'); + late final _LUT = _LUTPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Laplacian( Mat src, @@ -8166,11 +7242,10 @@ class CvNative { late final _LaplacianPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Double, - ffi.Double, ffi.Int)>>('Laplacian'); - late final _Laplacian = _LaplacianPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, int, int, double, double, int)>(); + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Int, ffi.Double, ffi.Double, ffi.Int)>>('Laplacian'); + late final _Laplacian = + _LaplacianPtr.asFunction Function(Mat, Mat, int, int, double, double, int)>(); void Layer_Close( LayerPtr1 layer, @@ -8180,10 +7255,8 @@ class CvNative { ); } - late final _Layer_ClosePtr = - _lookup>('Layer_Close'); - late final _Layer_Close = - _Layer_ClosePtr.asFunction(); + late final _Layer_ClosePtr = _lookup>('Layer_Close'); + late final _Layer_Close = _Layer_ClosePtr.asFunction(); void Layer_Close_Async( LayerPtr layer, @@ -8196,10 +7269,8 @@ class CvNative { } late final _Layer_Close_AsyncPtr = - _lookup>( - 'Layer_Close_Async'); - late final _Layer_Close_Async = - _Layer_Close_AsyncPtr.asFunction(); + _lookup>('Layer_Close_Async'); + late final _Layer_Close_Async = _Layer_Close_AsyncPtr.asFunction(); ffi.Pointer Layer_GetName( Layer layer, @@ -8211,13 +7282,11 @@ class CvNative { ); } - late final _Layer_GetNamePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Layer, ffi.Pointer>)>>('Layer_GetName'); + late final _Layer_GetNamePtr = + _lookup Function(Layer, ffi.Pointer>)>>( + 'Layer_GetName'); late final _Layer_GetName = _Layer_GetNamePtr.asFunction< - ffi.Pointer Function( - Layer, ffi.Pointer>)>(); + ffi.Pointer Function(Layer, ffi.Pointer>)>(); ffi.Pointer Layer_GetName_Async( Layer layer, @@ -8229,12 +7298,10 @@ class CvNative { ); } - late final _Layer_GetName_AsyncPtr = _lookup< - ffi - .NativeFunction Function(Layer, CvCallback_1)>>( - 'Layer_GetName_Async'); - late final _Layer_GetName_Async = _Layer_GetName_AsyncPtr.asFunction< - ffi.Pointer Function(Layer, CvCallback_1)>(); + late final _Layer_GetName_AsyncPtr = + _lookup Function(Layer, CvCallback_1)>>('Layer_GetName_Async'); + late final _Layer_GetName_Async = + _Layer_GetName_AsyncPtr.asFunction Function(Layer, CvCallback_1)>(); ffi.Pointer Layer_GetType( Layer layer, @@ -8246,13 +7313,11 @@ class CvNative { ); } - late final _Layer_GetTypePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Layer, ffi.Pointer>)>>('Layer_GetType'); + late final _Layer_GetTypePtr = + _lookup Function(Layer, ffi.Pointer>)>>( + 'Layer_GetType'); late final _Layer_GetType = _Layer_GetTypePtr.asFunction< - ffi.Pointer Function( - Layer, ffi.Pointer>)>(); + ffi.Pointer Function(Layer, ffi.Pointer>)>(); ffi.Pointer Layer_GetType_Async( Layer layer, @@ -8264,12 +7329,10 @@ class CvNative { ); } - late final _Layer_GetType_AsyncPtr = _lookup< - ffi - .NativeFunction Function(Layer, CvCallback_1)>>( - 'Layer_GetType_Async'); - late final _Layer_GetType_Async = _Layer_GetType_AsyncPtr.asFunction< - ffi.Pointer Function(Layer, CvCallback_1)>(); + late final _Layer_GetType_AsyncPtr = + _lookup Function(Layer, CvCallback_1)>>('Layer_GetType_Async'); + late final _Layer_GetType_Async = + _Layer_GetType_AsyncPtr.asFunction Function(Layer, CvCallback_1)>(); ffi.Pointer Layer_InputNameToIndex( Layer layer, @@ -8285,11 +7348,10 @@ class CvNative { late final _Layer_InputNameToIndexPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Layer, ffi.Pointer, - ffi.Pointer)>>('Layer_InputNameToIndex'); + ffi.Pointer Function( + Layer, ffi.Pointer, ffi.Pointer)>>('Layer_InputNameToIndex'); late final _Layer_InputNameToIndex = _Layer_InputNameToIndexPtr.asFunction< - ffi.Pointer Function( - Layer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(Layer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Layer_InputNameToIndex_Async( Layer layer, @@ -8303,14 +7365,11 @@ class CvNative { ); } - late final _Layer_InputNameToIndex_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Layer, ffi.Pointer, - CvCallback_1)>>('Layer_InputNameToIndex_Async'); - late final _Layer_InputNameToIndex_Async = - _Layer_InputNameToIndex_AsyncPtr.asFunction< - ffi.Pointer Function( - Layer, ffi.Pointer, CvCallback_1)>(); + late final _Layer_InputNameToIndex_AsyncPtr = + _lookup Function(Layer, ffi.Pointer, CvCallback_1)>>( + 'Layer_InputNameToIndex_Async'); + late final _Layer_InputNameToIndex_Async = _Layer_InputNameToIndex_AsyncPtr.asFunction< + ffi.Pointer Function(Layer, ffi.Pointer, CvCallback_1)>(); ffi.Pointer Layer_OutputNameToIndex( Layer layer, @@ -8326,11 +7385,10 @@ class CvNative { late final _Layer_OutputNameToIndexPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Layer, ffi.Pointer, - ffi.Pointer)>>('Layer_OutputNameToIndex'); + ffi.Pointer Function( + Layer, ffi.Pointer, ffi.Pointer)>>('Layer_OutputNameToIndex'); late final _Layer_OutputNameToIndex = _Layer_OutputNameToIndexPtr.asFunction< - ffi.Pointer Function( - Layer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(Layer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Layer_OutputNameToIndex_Async( Layer layer, @@ -8344,14 +7402,11 @@ class CvNative { ); } - late final _Layer_OutputNameToIndex_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Layer, ffi.Pointer, - CvCallback_1)>>('Layer_OutputNameToIndex_Async'); - late final _Layer_OutputNameToIndex_Async = - _Layer_OutputNameToIndex_AsyncPtr.asFunction< - ffi.Pointer Function( - Layer, ffi.Pointer, CvCallback_1)>(); + late final _Layer_OutputNameToIndex_AsyncPtr = + _lookup Function(Layer, ffi.Pointer, CvCallback_1)>>( + 'Layer_OutputNameToIndex_Async'); + late final _Layer_OutputNameToIndex_Async = _Layer_OutputNameToIndex_AsyncPtr.asFunction< + ffi.Pointer Function(Layer, ffi.Pointer, CvCallback_1)>(); ffi.Pointer Line( Mat img, @@ -8375,11 +7430,9 @@ class CvNative { late final _LinePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Point, Point, Scalar, ffi.Int, ffi.Int, ffi.Int)>>('Line'); - late final _Line = _LinePtr.asFunction< - ffi.Pointer Function( - Mat, Point, Point, Scalar, int, int, int)>(); + ffi.Pointer Function(Mat, Point, Point, Scalar, ffi.Int, ffi.Int, ffi.Int)>>('Line'); + late final _Line = + _LinePtr.asFunction Function(Mat, Point, Point, Scalar, int, int, int)>(); ffi.Pointer LinearPolar( Mat src, @@ -8397,12 +7450,11 @@ class CvNative { ); } - late final _LinearPolarPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Point2f, ffi.Double, ffi.Int)>>('LinearPolar'); - late final _LinearPolar = _LinearPolarPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Point2f, double, int)>(); + late final _LinearPolarPtr = + _lookup Function(Mat, Mat, Point2f, ffi.Double, ffi.Int)>>( + 'LinearPolar'); + late final _LinearPolar = + _LinearPolarPtr.asFunction Function(Mat, Mat, Point2f, double, int)>(); ffi.Pointer LogPolar( Mat src, @@ -8420,12 +7472,11 @@ class CvNative { ); } - late final _LogPolarPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Point2f, ffi.Double, ffi.Int)>>('LogPolar'); - late final _LogPolar = _LogPolarPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Point2f, double, int)>(); + late final _LogPolarPtr = + _lookup Function(Mat, Mat, Point2f, ffi.Double, ffi.Int)>>( + 'LogPolar'); + late final _LogPolar = + _LogPolarPtr.asFunction Function(Mat, Mat, Point2f, double, int)>(); void MSER_Close( MSERPtr a, @@ -8435,8 +7486,7 @@ class CvNative { ); } - late final _MSER_ClosePtr = - _lookup>('MSER_Close'); + late final _MSER_ClosePtr = _lookup>('MSER_Close'); late final _MSER_Close = _MSER_ClosePtr.asFunction(); ffi.Pointer MSER_Create( @@ -8447,11 +7497,9 @@ class CvNative { ); } - late final _MSER_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('MSER_Create'); - late final _MSER_Create = _MSER_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _MSER_CreatePtr = + _lookup Function(ffi.Pointer)>>('MSER_Create'); + late final _MSER_Create = _MSER_CreatePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer MSER_Detect( MSER a, @@ -8465,12 +7513,11 @@ class CvNative { ); } - late final _MSER_DetectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - MSER, Mat, ffi.Pointer)>>('MSER_Detect'); - late final _MSER_Detect = _MSER_DetectPtr.asFunction< - ffi.Pointer Function(MSER, Mat, ffi.Pointer)>(); + late final _MSER_DetectPtr = + _lookup Function(MSER, Mat, ffi.Pointer)>>( + 'MSER_Detect'); + late final _MSER_Detect = + _MSER_DetectPtr.asFunction Function(MSER, Mat, ffi.Pointer)>(); ffi.Pointer Mat_AbsDiff( Mat src1, @@ -8484,11 +7531,9 @@ class CvNative { ); } - late final _Mat_AbsDiffPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_AbsDiff'); - late final _Mat_AbsDiff = _Mat_AbsDiffPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_AbsDiffPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_AbsDiff'); + late final _Mat_AbsDiff = _Mat_AbsDiffPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_Accumulate( Mat src, @@ -8501,10 +7546,8 @@ class CvNative { } late final _Mat_AccumulatePtr = - _lookup Function(Mat, Mat)>>( - 'Mat_Accumulate'); - late final _Mat_Accumulate = - _Mat_AccumulatePtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('Mat_Accumulate'); + late final _Mat_Accumulate = _Mat_AccumulatePtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_AccumulateProduct( Mat src1, @@ -8518,11 +7561,10 @@ class CvNative { ); } - late final _Mat_AccumulateProductPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_AccumulateProduct'); - late final _Mat_AccumulateProduct = _Mat_AccumulateProductPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_AccumulateProductPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_AccumulateProduct'); + late final _Mat_AccumulateProduct = + _Mat_AccumulateProductPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_AccumulateProductWithMask( Mat src1, @@ -8538,12 +7580,11 @@ class CvNative { ); } - late final _Mat_AccumulateProductWithMaskPtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, Mat, Mat)>>( - 'Mat_AccumulateProductWithMask'); - late final _Mat_AccumulateProductWithMask = _Mat_AccumulateProductWithMaskPtr - .asFunction Function(Mat, Mat, Mat, Mat)>(); + late final _Mat_AccumulateProductWithMaskPtr = + _lookup Function(Mat, Mat, Mat, Mat)>>( + 'Mat_AccumulateProductWithMask'); + late final _Mat_AccumulateProductWithMask = + _Mat_AccumulateProductWithMaskPtr.asFunction Function(Mat, Mat, Mat, Mat)>(); ffi.Pointer Mat_AccumulateSquare( Mat src, @@ -8556,10 +7597,9 @@ class CvNative { } late final _Mat_AccumulateSquarePtr = - _lookup Function(Mat, Mat)>>( - 'Mat_AccumulateSquare'); - late final _Mat_AccumulateSquare = _Mat_AccumulateSquarePtr.asFunction< - ffi.Pointer Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('Mat_AccumulateSquare'); + late final _Mat_AccumulateSquare = + _Mat_AccumulateSquarePtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_AccumulateSquareWithMask( Mat src, @@ -8573,11 +7613,11 @@ class CvNative { ); } - late final _Mat_AccumulateSquareWithMaskPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_AccumulateSquareWithMask'); - late final _Mat_AccumulateSquareWithMask = _Mat_AccumulateSquareWithMaskPtr - .asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_AccumulateSquareWithMaskPtr = + _lookup Function(Mat, Mat, Mat)>>( + 'Mat_AccumulateSquareWithMask'); + late final _Mat_AccumulateSquareWithMask = + _Mat_AccumulateSquareWithMaskPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_AccumulateWithMask( Mat src, @@ -8591,11 +7631,10 @@ class CvNative { ); } - late final _Mat_AccumulateWithMaskPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_AccumulateWithMask'); - late final _Mat_AccumulateWithMask = _Mat_AccumulateWithMaskPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_AccumulateWithMaskPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_AccumulateWithMask'); + late final _Mat_AccumulateWithMask = + _Mat_AccumulateWithMaskPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_AccumulatedWeighted( Mat src, @@ -8609,12 +7648,11 @@ class CvNative { ); } - late final _Mat_AccumulatedWeightedPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Double)>>('Mat_AccumulatedWeighted'); - late final _Mat_AccumulatedWeighted = _Mat_AccumulatedWeightedPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double)>(); + late final _Mat_AccumulatedWeightedPtr = + _lookup Function(Mat, Mat, ffi.Double)>>( + 'Mat_AccumulatedWeighted'); + late final _Mat_AccumulatedWeighted = + _Mat_AccumulatedWeightedPtr.asFunction Function(Mat, Mat, double)>(); ffi.Pointer Mat_AccumulatedWeightedWithMask( Mat src, @@ -8630,13 +7668,11 @@ class CvNative { ); } - late final _Mat_AccumulatedWeightedWithMaskPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Double, Mat)>>('Mat_AccumulatedWeightedWithMask'); + late final _Mat_AccumulatedWeightedWithMaskPtr = + _lookup Function(Mat, Mat, ffi.Double, Mat)>>( + 'Mat_AccumulatedWeightedWithMask'); late final _Mat_AccumulatedWeightedWithMask = - _Mat_AccumulatedWeightedWithMaskPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, Mat)>(); + _Mat_AccumulatedWeightedWithMaskPtr.asFunction Function(Mat, Mat, double, Mat)>(); ffi.Pointer Mat_Add( Mat src1, @@ -8650,11 +7686,9 @@ class CvNative { ); } - late final _Mat_AddPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_Add'); - late final _Mat_Add = - _Mat_AddPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_AddPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_Add'); + late final _Mat_Add = _Mat_AddPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_AddF64( Mat m, @@ -8666,11 +7700,9 @@ class CvNative { ); } - late final _Mat_AddF64Ptr = _lookup< - ffi.NativeFunction Function(Mat, double_t)>>( - 'Mat_AddF64'); - late final _Mat_AddF64 = - _Mat_AddF64Ptr.asFunction Function(Mat, double)>(); + late final _Mat_AddF64Ptr = + _lookup Function(Mat, double_t)>>('Mat_AddF64'); + late final _Mat_AddF64 = _Mat_AddF64Ptr.asFunction Function(Mat, double)>(); ffi.Pointer Mat_AddFloat( Mat m, @@ -8683,10 +7715,8 @@ class CvNative { } late final _Mat_AddFloatPtr = - _lookup Function(Mat, float_t)>>( - 'Mat_AddFloat'); - late final _Mat_AddFloat = _Mat_AddFloatPtr.asFunction< - ffi.Pointer Function(Mat, double)>(); + _lookup Function(Mat, float_t)>>('Mat_AddFloat'); + late final _Mat_AddFloat = _Mat_AddFloatPtr.asFunction Function(Mat, double)>(); ffi.Pointer Mat_AddI32( Mat m, @@ -8698,11 +7728,9 @@ class CvNative { ); } - late final _Mat_AddI32Ptr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int32)>>( - 'Mat_AddI32'); - late final _Mat_AddI32 = - _Mat_AddI32Ptr.asFunction Function(Mat, int)>(); + late final _Mat_AddI32Ptr = + _lookup Function(Mat, ffi.Int32)>>('Mat_AddI32'); + late final _Mat_AddI32 = _Mat_AddI32Ptr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_AddSChar( Mat m, @@ -8714,11 +7742,9 @@ class CvNative { ); } - late final _Mat_AddSCharPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int8)>>( - 'Mat_AddSChar'); - late final _Mat_AddSChar = - _Mat_AddSCharPtr.asFunction Function(Mat, int)>(); + late final _Mat_AddSCharPtr = + _lookup Function(Mat, ffi.Int8)>>('Mat_AddSChar'); + late final _Mat_AddSChar = _Mat_AddSCharPtr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_AddUChar( Mat m, @@ -8730,11 +7756,9 @@ class CvNative { ); } - late final _Mat_AddUCharPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Uint8)>>( - 'Mat_AddUChar'); - late final _Mat_AddUChar = - _Mat_AddUCharPtr.asFunction Function(Mat, int)>(); + late final _Mat_AddUCharPtr = + _lookup Function(Mat, ffi.Uint8)>>('Mat_AddUChar'); + late final _Mat_AddUChar = _Mat_AddUCharPtr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_AddWeighted( Mat src1, @@ -8755,11 +7779,11 @@ class CvNative { } late final _Mat_AddWeightedPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Double, Mat, ffi.Double, - ffi.Double, Mat)>>('Mat_AddWeighted'); - late final _Mat_AddWeighted = _Mat_AddWeightedPtr.asFunction< - ffi.Pointer Function(Mat, double, Mat, double, double, Mat)>(); + ffi + .NativeFunction Function(Mat, ffi.Double, Mat, ffi.Double, ffi.Double, Mat)>>( + 'Mat_AddWeighted'); + late final _Mat_AddWeighted = + _Mat_AddWeightedPtr.asFunction Function(Mat, double, Mat, double, double, Mat)>(); ffi.Pointer Mat_BatchDistance( Mat src1, @@ -8789,11 +7813,10 @@ class CvNative { late final _Mat_BatchDistancePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, ffi.Int, Mat, ffi.Int, - ffi.Int, Mat, ffi.Int, ffi.Bool)>>('Mat_BatchDistance'); + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Int, Mat, ffi.Int, ffi.Int, Mat, ffi.Int, ffi.Bool)>>('Mat_BatchDistance'); late final _Mat_BatchDistance = _Mat_BatchDistancePtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Mat, int, Mat, int, int, Mat, int, bool)>(); + ffi.Pointer Function(Mat, Mat, Mat, int, Mat, int, int, Mat, int, bool)>(); ffi.Pointer Mat_BitwiseAnd( Mat src1, @@ -8807,11 +7830,9 @@ class CvNative { ); } - late final _Mat_BitwiseAndPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_BitwiseAnd'); - late final _Mat_BitwiseAnd = _Mat_BitwiseAndPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_BitwiseAndPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_BitwiseAnd'); + late final _Mat_BitwiseAnd = _Mat_BitwiseAndPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_BitwiseAndWithMask( Mat src1, @@ -8827,12 +7848,11 @@ class CvNative { ); } - late final _Mat_BitwiseAndWithMaskPtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, Mat, Mat)>>( - 'Mat_BitwiseAndWithMask'); - late final _Mat_BitwiseAndWithMask = _Mat_BitwiseAndWithMaskPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat)>(); + late final _Mat_BitwiseAndWithMaskPtr = + _lookup Function(Mat, Mat, Mat, Mat)>>( + 'Mat_BitwiseAndWithMask'); + late final _Mat_BitwiseAndWithMask = + _Mat_BitwiseAndWithMaskPtr.asFunction Function(Mat, Mat, Mat, Mat)>(); ffi.Pointer Mat_BitwiseNot( Mat src1, @@ -8845,10 +7865,8 @@ class CvNative { } late final _Mat_BitwiseNotPtr = - _lookup Function(Mat, Mat)>>( - 'Mat_BitwiseNot'); - late final _Mat_BitwiseNot = - _Mat_BitwiseNotPtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('Mat_BitwiseNot'); + late final _Mat_BitwiseNot = _Mat_BitwiseNotPtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_BitwiseNotWithMask( Mat src1, @@ -8862,11 +7880,10 @@ class CvNative { ); } - late final _Mat_BitwiseNotWithMaskPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_BitwiseNotWithMask'); - late final _Mat_BitwiseNotWithMask = _Mat_BitwiseNotWithMaskPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_BitwiseNotWithMaskPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_BitwiseNotWithMask'); + late final _Mat_BitwiseNotWithMask = + _Mat_BitwiseNotWithMaskPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_BitwiseOr( Mat src1, @@ -8880,11 +7897,9 @@ class CvNative { ); } - late final _Mat_BitwiseOrPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_BitwiseOr'); - late final _Mat_BitwiseOr = _Mat_BitwiseOrPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_BitwiseOrPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_BitwiseOr'); + late final _Mat_BitwiseOr = _Mat_BitwiseOrPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_BitwiseOrWithMask( Mat src1, @@ -8900,12 +7915,11 @@ class CvNative { ); } - late final _Mat_BitwiseOrWithMaskPtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, Mat, Mat)>>( - 'Mat_BitwiseOrWithMask'); - late final _Mat_BitwiseOrWithMask = _Mat_BitwiseOrWithMaskPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat)>(); + late final _Mat_BitwiseOrWithMaskPtr = + _lookup Function(Mat, Mat, Mat, Mat)>>( + 'Mat_BitwiseOrWithMask'); + late final _Mat_BitwiseOrWithMask = + _Mat_BitwiseOrWithMaskPtr.asFunction Function(Mat, Mat, Mat, Mat)>(); ffi.Pointer Mat_BitwiseXor( Mat src1, @@ -8919,11 +7933,9 @@ class CvNative { ); } - late final _Mat_BitwiseXorPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_BitwiseXor'); - late final _Mat_BitwiseXor = _Mat_BitwiseXorPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_BitwiseXorPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_BitwiseXor'); + late final _Mat_BitwiseXor = _Mat_BitwiseXorPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_BitwiseXorWithMask( Mat src1, @@ -8939,12 +7951,11 @@ class CvNative { ); } - late final _Mat_BitwiseXorWithMaskPtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, Mat, Mat)>>( - 'Mat_BitwiseXorWithMask'); - late final _Mat_BitwiseXorWithMask = _Mat_BitwiseXorWithMaskPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat)>(); + late final _Mat_BitwiseXorWithMaskPtr = + _lookup Function(Mat, Mat, Mat, Mat)>>( + 'Mat_BitwiseXorWithMask'); + late final _Mat_BitwiseXorWithMask = + _Mat_BitwiseXorWithMaskPtr.asFunction Function(Mat, Mat, Mat, Mat)>(); ffi.Pointer Mat_BorderInterpolate( int p, @@ -8961,9 +7972,9 @@ class CvNative { } late final _Mat_BorderInterpolatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer)>>('Mat_BorderInterpolate'); + ffi + .NativeFunction Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_BorderInterpolate'); late final _Mat_BorderInterpolate = _Mat_BorderInterpolatePtr.asFunction< ffi.Pointer Function(int, int, int, ffi.Pointer)>(); @@ -8983,12 +7994,11 @@ class CvNative { ); } - late final _Mat_CalcCovarMatrixPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Int, ffi.Int)>>('Mat_CalcCovarMatrix'); - late final _Mat_CalcCovarMatrix = _Mat_CalcCovarMatrixPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, int, int)>(); + late final _Mat_CalcCovarMatrixPtr = + _lookup Function(Mat, Mat, Mat, ffi.Int, ffi.Int)>>( + 'Mat_CalcCovarMatrix'); + late final _Mat_CalcCovarMatrix = + _Mat_CalcCovarMatrixPtr.asFunction Function(Mat, Mat, Mat, int, int)>(); ffi.Pointer Mat_CartToPolar( Mat x, @@ -9006,12 +8016,11 @@ class CvNative { ); } - late final _Mat_CartToPolarPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, ffi.Bool)>>('Mat_CartToPolar'); - late final _Mat_CartToPolar = _Mat_CartToPolarPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, bool)>(); + late final _Mat_CartToPolarPtr = + _lookup Function(Mat, Mat, Mat, Mat, ffi.Bool)>>( + 'Mat_CartToPolar'); + late final _Mat_CartToPolar = + _Mat_CartToPolarPtr.asFunction Function(Mat, Mat, Mat, Mat, bool)>(); ffi.Pointer Mat_Channels( Mat m, @@ -9023,12 +8032,10 @@ class CvNative { ); } - late final _Mat_ChannelsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_Channels'); - late final _Mat_Channels = _Mat_ChannelsPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_ChannelsPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Channels'); + late final _Mat_Channels = + _Mat_ChannelsPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_CheckRange( Mat m, @@ -9050,16 +8057,10 @@ class CvNative { late final _Mat_CheckRangePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - ffi.Bool, - ffi.Pointer, - ffi.Double, - ffi.Double, + ffi.Pointer Function(Mat, ffi.Bool, ffi.Pointer, ffi.Double, ffi.Double, ffi.Pointer)>>('Mat_CheckRange'); late final _Mat_CheckRange = _Mat_CheckRangePtr.asFunction< - ffi.Pointer Function(Mat, bool, ffi.Pointer, double, - double, ffi.Pointer)>(); + ffi.Pointer Function(Mat, bool, ffi.Pointer, double, double, ffi.Pointer)>(); ffi.Pointer Mat_Clone( Mat m, @@ -9071,11 +8072,9 @@ class CvNative { ); } - late final _Mat_ClonePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>>('Mat_Clone'); - late final _Mat_Clone = _Mat_ClonePtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_ClonePtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Clone'); + late final _Mat_Clone = _Mat_ClonePtr.asFunction Function(Mat, ffi.Pointer)>(); void Mat_Close( MatPtr m, @@ -9085,8 +8084,7 @@ class CvNative { ); } - late final _Mat_ClosePtr = - _lookup>('Mat_Close'); + late final _Mat_ClosePtr = _lookup>('Mat_Close'); late final _Mat_Close = _Mat_ClosePtr.asFunction(); void Mat_CloseVoid( @@ -9098,10 +8096,8 @@ class CvNative { } late final _Mat_CloseVoidPtr = - _lookup)>>( - 'Mat_CloseVoid'); - late final _Mat_CloseVoid = - _Mat_CloseVoidPtr.asFunction)>(); + _lookup)>>('Mat_CloseVoid'); + late final _Mat_CloseVoid = _Mat_CloseVoidPtr.asFunction)>(); ffi.Pointer Mat_Cols( Mat m, @@ -9113,12 +8109,9 @@ class CvNative { ); } - late final _Mat_ColsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_Cols'); - late final _Mat_Cols = _Mat_ColsPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_ColsPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Cols'); + late final _Mat_Cols = _Mat_ColsPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Compare( Mat src1, @@ -9134,12 +8127,9 @@ class CvNative { ); } - late final _Mat_ComparePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Int)>>('Mat_Compare'); - late final _Mat_Compare = _Mat_ComparePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, int)>(); + late final _Mat_ComparePtr = + _lookup Function(Mat, Mat, Mat, ffi.Int)>>('Mat_Compare'); + late final _Mat_Compare = _Mat_ComparePtr.asFunction Function(Mat, Mat, Mat, int)>(); ffi.Pointer Mat_CompleteSymm( Mat m, @@ -9151,11 +8141,9 @@ class CvNative { ); } - late final _Mat_CompleteSymmPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Bool)>>( - 'Mat_CompleteSymm'); - late final _Mat_CompleteSymm = _Mat_CompleteSymmPtr.asFunction< - ffi.Pointer Function(Mat, bool)>(); + late final _Mat_CompleteSymmPtr = + _lookup Function(Mat, ffi.Bool)>>('Mat_CompleteSymm'); + late final _Mat_CompleteSymm = _Mat_CompleteSymmPtr.asFunction Function(Mat, bool)>(); ffi.Pointer Mat_ConvertFp16( Mat m, @@ -9167,12 +8155,10 @@ class CvNative { ); } - late final _Mat_ConvertFp16Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_ConvertFp16'); - late final _Mat_ConvertFp16 = _Mat_ConvertFp16Ptr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_ConvertFp16Ptr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_ConvertFp16'); + late final _Mat_ConvertFp16 = + _Mat_ConvertFp16Ptr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_ConvertScaleAbs( Mat src, @@ -9188,12 +8174,11 @@ class CvNative { ); } - late final _Mat_ConvertScaleAbsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Double, ffi.Double)>>('Mat_ConvertScaleAbs'); - late final _Mat_ConvertScaleAbs = _Mat_ConvertScaleAbsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, double)>(); + late final _Mat_ConvertScaleAbsPtr = + _lookup Function(Mat, Mat, ffi.Double, ffi.Double)>>( + 'Mat_ConvertScaleAbs'); + late final _Mat_ConvertScaleAbs = + _Mat_ConvertScaleAbsPtr.asFunction Function(Mat, Mat, double, double)>(); ffi.Pointer Mat_ConvertTo( Mat m, @@ -9207,11 +8192,9 @@ class CvNative { ); } - late final _Mat_ConvertToPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_ConvertTo'); - late final _Mat_ConvertTo = _Mat_ConvertToPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int)>(); + late final _Mat_ConvertToPtr = + _lookup Function(Mat, Mat, ffi.Int)>>('Mat_ConvertTo'); + late final _Mat_ConvertTo = _Mat_ConvertToPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_ConvertToWithParams( Mat m, @@ -9229,12 +8212,11 @@ class CvNative { ); } - late final _Mat_ConvertToWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Float, - ffi.Float)>>('Mat_ConvertToWithParams'); - late final _Mat_ConvertToWithParams = _Mat_ConvertToWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, double, double)>(); + late final _Mat_ConvertToWithParamsPtr = + _lookup Function(Mat, Mat, ffi.Int, ffi.Float, ffi.Float)>>( + 'Mat_ConvertToWithParams'); + late final _Mat_ConvertToWithParams = + _Mat_ConvertToWithParamsPtr.asFunction Function(Mat, Mat, int, double, double)>(); ffi.Pointer Mat_CopyMakeBorder( Mat src, @@ -9260,11 +8242,10 @@ class CvNative { late final _Mat_CopyMakeBorderPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Int, ffi.Int, Scalar)>>('Mat_CopyMakeBorder'); + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Int, Scalar)>>('Mat_CopyMakeBorder'); late final _Mat_CopyMakeBorder = _Mat_CopyMakeBorderPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, int, int, int, int, int, Scalar)>(); + ffi.Pointer Function(Mat, Mat, int, int, int, int, int, Scalar)>(); ffi.Pointer Mat_CopyTo( Mat m, @@ -9277,10 +8258,8 @@ class CvNative { } late final _Mat_CopyToPtr = - _lookup Function(Mat, Mat)>>( - 'Mat_CopyTo'); - late final _Mat_CopyTo = - _Mat_CopyToPtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('Mat_CopyTo'); + late final _Mat_CopyTo = _Mat_CopyToPtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_CopyToWithMask( Mat m, @@ -9294,11 +8273,10 @@ class CvNative { ); } - late final _Mat_CopyToWithMaskPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_CopyToWithMask'); - late final _Mat_CopyToWithMask = _Mat_CopyToWithMaskPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_CopyToWithMaskPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_CopyToWithMask'); + late final _Mat_CopyToWithMask = + _Mat_CopyToWithMaskPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_CountNonZero( Mat src, @@ -9310,12 +8288,11 @@ class CvNative { ); } - late final _Mat_CountNonZeroPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_CountNonZero'); - late final _Mat_CountNonZero = _Mat_CountNonZeroPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_CountNonZeroPtr = + _lookup Function(Mat, ffi.Pointer)>>( + 'Mat_CountNonZero'); + late final _Mat_CountNonZero = + _Mat_CountNonZeroPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_DCT( Mat src, @@ -9329,11 +8306,9 @@ class CvNative { ); } - late final _Mat_DCTPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_DCT'); - late final _Mat_DCT = - _Mat_DCTPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_DCTPtr = + _lookup Function(Mat, Mat, ffi.Int)>>('Mat_DCT'); + late final _Mat_DCT = _Mat_DCTPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_DFT( Mat m, @@ -9347,11 +8322,9 @@ class CvNative { ); } - late final _Mat_DFTPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_DFT'); - late final _Mat_DFT = - _Mat_DFTPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_DFTPtr = + _lookup Function(Mat, Mat, ffi.Int)>>('Mat_DFT'); + late final _Mat_DFT = _Mat_DFTPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_Data( Mat m, @@ -9363,12 +8336,10 @@ class CvNative { ); } - late final _Mat_DataPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_Data'); - late final _Mat_Data = _Mat_DataPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_DataPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Data'); + late final _Mat_Data = + _Mat_DataPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_DataPtr( Mat m, @@ -9384,11 +8355,10 @@ class CvNative { late final _Mat_DataPtrPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer>, - ffi.Pointer)>>('Mat_DataPtr'); + ffi.Pointer Function( + Mat, ffi.Pointer>, ffi.Pointer)>>('Mat_DataPtr'); late final _Mat_DataPtr1 = _Mat_DataPtrPtr.asFunction< - ffi.Pointer Function( - Mat, ffi.Pointer>, ffi.Pointer)>(); + ffi.Pointer Function(Mat, ffi.Pointer>, ffi.Pointer)>(); ffi.Pointer Mat_Determinant( Mat m, @@ -9400,12 +8370,11 @@ class CvNative { ); } - late final _Mat_DeterminantPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_Determinant'); - late final _Mat_Determinant = _Mat_DeterminantPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_DeterminantPtr = + _lookup Function(Mat, ffi.Pointer)>>( + 'Mat_Determinant'); + late final _Mat_Determinant = + _Mat_DeterminantPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Divide( Mat src1, @@ -9419,11 +8388,9 @@ class CvNative { ); } - late final _Mat_DividePtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_Divide'); - late final _Mat_Divide = _Mat_DividePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_DividePtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_Divide'); + late final _Mat_Divide = _Mat_DividePtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_DivideF64( Mat m, @@ -9435,11 +8402,9 @@ class CvNative { ); } - late final _Mat_DivideF64Ptr = _lookup< - ffi.NativeFunction Function(Mat, double_t)>>( - 'Mat_DivideF64'); - late final _Mat_DivideF64 = _Mat_DivideF64Ptr.asFunction< - ffi.Pointer Function(Mat, double)>(); + late final _Mat_DivideF64Ptr = + _lookup Function(Mat, double_t)>>('Mat_DivideF64'); + late final _Mat_DivideF64 = _Mat_DivideF64Ptr.asFunction Function(Mat, double)>(); ffi.Pointer Mat_DivideFloat( Mat m, @@ -9452,10 +8417,8 @@ class CvNative { } late final _Mat_DivideFloatPtr = - _lookup Function(Mat, float_t)>>( - 'Mat_DivideFloat'); - late final _Mat_DivideFloat = _Mat_DivideFloatPtr.asFunction< - ffi.Pointer Function(Mat, double)>(); + _lookup Function(Mat, float_t)>>('Mat_DivideFloat'); + late final _Mat_DivideFloat = _Mat_DivideFloatPtr.asFunction Function(Mat, double)>(); ffi.Pointer Mat_DivideI32( Mat m, @@ -9467,11 +8430,9 @@ class CvNative { ); } - late final _Mat_DivideI32Ptr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int32)>>( - 'Mat_DivideI32'); - late final _Mat_DivideI32 = - _Mat_DivideI32Ptr.asFunction Function(Mat, int)>(); + late final _Mat_DivideI32Ptr = + _lookup Function(Mat, ffi.Int32)>>('Mat_DivideI32'); + late final _Mat_DivideI32 = _Mat_DivideI32Ptr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_DivideSChar( Mat m, @@ -9483,11 +8444,9 @@ class CvNative { ); } - late final _Mat_DivideSCharPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int8)>>( - 'Mat_DivideSChar'); - late final _Mat_DivideSChar = _Mat_DivideSCharPtr.asFunction< - ffi.Pointer Function(Mat, int)>(); + late final _Mat_DivideSCharPtr = + _lookup Function(Mat, ffi.Int8)>>('Mat_DivideSChar'); + late final _Mat_DivideSChar = _Mat_DivideSCharPtr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_DivideUChar( Mat m, @@ -9499,11 +8458,9 @@ class CvNative { ); } - late final _Mat_DivideUCharPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Uint8)>>( - 'Mat_DivideUChar'); - late final _Mat_DivideUChar = _Mat_DivideUCharPtr.asFunction< - ffi.Pointer Function(Mat, int)>(); + late final _Mat_DivideUCharPtr = + _lookup Function(Mat, ffi.Uint8)>>('Mat_DivideUChar'); + late final _Mat_DivideUChar = _Mat_DivideUCharPtr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_Eigen( Mat src, @@ -9519,12 +8476,11 @@ class CvNative { ); } - late final _Mat_EigenPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Pointer)>>('Mat_Eigen'); - late final _Mat_Eigen = _Mat_EigenPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, ffi.Pointer)>(); + late final _Mat_EigenPtr = + _lookup Function(Mat, Mat, Mat, ffi.Pointer)>>( + 'Mat_Eigen'); + late final _Mat_Eigen = + _Mat_EigenPtr.asFunction Function(Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer Mat_EigenNonSymmetric( Mat src, @@ -9538,11 +8494,10 @@ class CvNative { ); } - late final _Mat_EigenNonSymmetricPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_EigenNonSymmetric'); - late final _Mat_EigenNonSymmetric = _Mat_EigenNonSymmetricPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_EigenNonSymmetricPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_EigenNonSymmetric'); + late final _Mat_EigenNonSymmetric = + _Mat_EigenNonSymmetricPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_ElemSize( Mat m, @@ -9554,12 +8509,10 @@ class CvNative { ); } - late final _Mat_ElemSizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_ElemSize'); - late final _Mat_ElemSize = _Mat_ElemSizePtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_ElemSizePtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_ElemSize'); + late final _Mat_ElemSize = + _Mat_ElemSizePtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Empty( Mat m, @@ -9571,12 +8524,10 @@ class CvNative { ); } - late final _Mat_EmptyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_Empty'); - late final _Mat_Empty = _Mat_EmptyPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_EmptyPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Empty'); + late final _Mat_Empty = + _Mat_EmptyPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Exp( Mat src, @@ -9588,11 +8539,8 @@ class CvNative { ); } - late final _Mat_ExpPtr = - _lookup Function(Mat, Mat)>>( - 'Mat_Exp'); - late final _Mat_Exp = - _Mat_ExpPtr.asFunction Function(Mat, Mat)>(); + late final _Mat_ExpPtr = _lookup Function(Mat, Mat)>>('Mat_Exp'); + late final _Mat_Exp = _Mat_ExpPtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_ExtractChannel( Mat src, @@ -9606,12 +8554,10 @@ class CvNative { ); } - late final _Mat_ExtractChannelPtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, ffi.Int)>>( - 'Mat_ExtractChannel'); - late final _Mat_ExtractChannel = _Mat_ExtractChannelPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int)>(); + late final _Mat_ExtractChannelPtr = + _lookup Function(Mat, Mat, ffi.Int)>>('Mat_ExtractChannel'); + late final _Mat_ExtractChannel = + _Mat_ExtractChannelPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_FindNonZero( Mat src, @@ -9624,10 +8570,8 @@ class CvNative { } late final _Mat_FindNonZeroPtr = - _lookup Function(Mat, Mat)>>( - 'Mat_FindNonZero'); - late final _Mat_FindNonZero = _Mat_FindNonZeroPtr.asFunction< - ffi.Pointer Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('Mat_FindNonZero'); + late final _Mat_FindNonZero = _Mat_FindNonZeroPtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_Flip( Mat src, @@ -9641,11 +8585,9 @@ class CvNative { ); } - late final _Mat_FlipPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_Flip'); - late final _Mat_Flip = - _Mat_FlipPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_FlipPtr = + _lookup Function(Mat, Mat, ffi.Int)>>('Mat_Flip'); + late final _Mat_Flip = _Mat_FlipPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_FromCMat( Mat m, @@ -9657,12 +8599,10 @@ class CvNative { ); } - late final _Mat_FromCMatPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_FromCMat'); - late final _Mat_FromCMat = _Mat_FromCMatPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_FromCMatPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_FromCMat'); + late final _Mat_FromCMat = + _Mat_FromCMatPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_FromPtr( Mat m, @@ -9686,11 +8626,10 @@ class CvNative { late final _Mat_FromPtrPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_FromPtr'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_FromPtr'); late final _Mat_FromPtr = _Mat_FromPtrPtr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, int, int, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_Gemm( Mat src1, @@ -9714,11 +8653,9 @@ class CvNative { late final _Mat_GemmPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Double, Mat, ffi.Double, - Mat, ffi.Int)>>('Mat_Gemm'); - late final _Mat_Gemm = _Mat_GemmPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, double, Mat, double, Mat, int)>(); + ffi.Pointer Function(Mat, Mat, ffi.Double, Mat, ffi.Double, Mat, ffi.Int)>>('Mat_Gemm'); + late final _Mat_Gemm = + _Mat_GemmPtr.asFunction Function(Mat, Mat, double, Mat, double, Mat, int)>(); ffi.Pointer Mat_GetDouble( Mat m, @@ -9735,11 +8672,10 @@ class CvNative { } late final _Mat_GetDoublePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, - ffi.Pointer)>>('Mat_GetDouble'); - late final _Mat_GetDouble = _Mat_GetDoublePtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetDouble'); + late final _Mat_GetDouble = + _Mat_GetDoublePtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetDouble3( Mat m, @@ -9759,11 +8695,10 @@ class CvNative { late final _Mat_GetDouble3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer)>>('Mat_GetDouble3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetDouble3'); late final _Mat_GetDouble3 = _Mat_GetDouble3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetFloat( Mat m, @@ -9780,11 +8715,10 @@ class CvNative { } late final _Mat_GetFloatPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetFloat'); - late final _Mat_GetFloat = _Mat_GetFloatPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetFloat'); + late final _Mat_GetFloat = + _Mat_GetFloatPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetFloat3( Mat m, @@ -9804,11 +8738,10 @@ class CvNative { late final _Mat_GetFloat3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer)>>('Mat_GetFloat3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetFloat3'); late final _Mat_GetFloat3 = _Mat_GetFloat3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetInt( Mat m, @@ -9825,11 +8758,10 @@ class CvNative { } late final _Mat_GetIntPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetInt'); - late final _Mat_GetInt = _Mat_GetIntPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetInt'); + late final _Mat_GetInt = + _Mat_GetIntPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetInt3( Mat m, @@ -9849,11 +8781,10 @@ class CvNative { late final _Mat_GetInt3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer)>>('Mat_GetInt3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetInt3'); late final _Mat_GetInt3 = _Mat_GetInt3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetOptimalDFTSize( int vecsize, @@ -9865,12 +8796,11 @@ class CvNative { ); } - late final _Mat_GetOptimalDFTSizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, ffi.Pointer)>>('Mat_GetOptimalDFTSize'); - late final _Mat_GetOptimalDFTSize = _Mat_GetOptimalDFTSizePtr.asFunction< - ffi.Pointer Function(int, ffi.Pointer)>(); + late final _Mat_GetOptimalDFTSizePtr = + _lookup Function(ffi.Int, ffi.Pointer)>>( + 'Mat_GetOptimalDFTSize'); + late final _Mat_GetOptimalDFTSize = + _Mat_GetOptimalDFTSizePtr.asFunction Function(int, ffi.Pointer)>(); ffi.Pointer Mat_GetSChar( Mat m, @@ -9887,11 +8817,10 @@ class CvNative { } late final _Mat_GetSCharPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetSChar'); - late final _Mat_GetSChar = _Mat_GetSCharPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetSChar'); + late final _Mat_GetSChar = + _Mat_GetSCharPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetSChar3( Mat m, @@ -9911,11 +8840,10 @@ class CvNative { late final _Mat_GetSChar3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer)>>('Mat_GetSChar3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetSChar3'); late final _Mat_GetSChar3 = _Mat_GetSChar3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetShort( Mat m, @@ -9932,11 +8860,10 @@ class CvNative { } late final _Mat_GetShortPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetShort'); - late final _Mat_GetShort = _Mat_GetShortPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetShort'); + late final _Mat_GetShort = + _Mat_GetShortPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetShort3( Mat m, @@ -9956,11 +8883,10 @@ class CvNative { late final _Mat_GetShort3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer)>>('Mat_GetShort3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetShort3'); late final _Mat_GetShort3 = _Mat_GetShort3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetUChar( Mat m, @@ -9977,11 +8903,10 @@ class CvNative { } late final _Mat_GetUCharPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetUChar'); - late final _Mat_GetUChar = _Mat_GetUCharPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetUChar'); + late final _Mat_GetUChar = + _Mat_GetUCharPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetUChar3( Mat m, @@ -10001,11 +8926,10 @@ class CvNative { late final _Mat_GetUChar3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer)>>('Mat_GetUChar3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetUChar3'); late final _Mat_GetUChar3 = _Mat_GetUChar3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetUShort( Mat m, @@ -10022,11 +8946,10 @@ class CvNative { } late final _Mat_GetUShortPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, - ffi.Pointer)>>('Mat_GetUShort'); - late final _Mat_GetUShort = _Mat_GetUShortPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetUShort'); + late final _Mat_GetUShort = + _Mat_GetUShortPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetUShort3( Mat m, @@ -10046,11 +8969,10 @@ class CvNative { late final _Mat_GetUShort3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer)>>('Mat_GetUShort3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetUShort3'); late final _Mat_GetUShort3 = _Mat_GetUShort3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec2b( Mat m, @@ -10066,12 +8988,11 @@ class CvNative { ); } - late final _Mat_GetVec2bPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec2b'); - late final _Mat_GetVec2b = _Mat_GetVec2bPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec2bPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec2b'); + late final _Mat_GetVec2b = + _Mat_GetVec2bPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec2d( Mat m, @@ -10087,12 +9008,11 @@ class CvNative { ); } - late final _Mat_GetVec2dPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec2d'); - late final _Mat_GetVec2d = _Mat_GetVec2dPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec2dPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec2d'); + late final _Mat_GetVec2d = + _Mat_GetVec2dPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec2f( Mat m, @@ -10108,12 +9028,11 @@ class CvNative { ); } - late final _Mat_GetVec2fPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec2f'); - late final _Mat_GetVec2f = _Mat_GetVec2fPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec2fPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec2f'); + late final _Mat_GetVec2f = + _Mat_GetVec2fPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec2i( Mat m, @@ -10129,12 +9048,11 @@ class CvNative { ); } - late final _Mat_GetVec2iPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec2i'); - late final _Mat_GetVec2i = _Mat_GetVec2iPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec2iPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec2i'); + late final _Mat_GetVec2i = + _Mat_GetVec2iPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec2s( Mat m, @@ -10150,12 +9068,11 @@ class CvNative { ); } - late final _Mat_GetVec2sPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec2s'); - late final _Mat_GetVec2s = _Mat_GetVec2sPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec2sPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec2s'); + late final _Mat_GetVec2s = + _Mat_GetVec2sPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec2w( Mat m, @@ -10171,12 +9088,11 @@ class CvNative { ); } - late final _Mat_GetVec2wPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec2w'); - late final _Mat_GetVec2w = _Mat_GetVec2wPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec2wPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec2w'); + late final _Mat_GetVec2w = + _Mat_GetVec2wPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec3b( Mat m, @@ -10192,12 +9108,11 @@ class CvNative { ); } - late final _Mat_GetVec3bPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec3b'); - late final _Mat_GetVec3b = _Mat_GetVec3bPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec3bPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec3b'); + late final _Mat_GetVec3b = + _Mat_GetVec3bPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec3d( Mat m, @@ -10213,12 +9128,11 @@ class CvNative { ); } - late final _Mat_GetVec3dPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec3d'); - late final _Mat_GetVec3d = _Mat_GetVec3dPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec3dPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec3d'); + late final _Mat_GetVec3d = + _Mat_GetVec3dPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec3f( Mat m, @@ -10234,12 +9148,11 @@ class CvNative { ); } - late final _Mat_GetVec3fPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec3f'); - late final _Mat_GetVec3f = _Mat_GetVec3fPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec3fPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec3f'); + late final _Mat_GetVec3f = + _Mat_GetVec3fPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec3i( Mat m, @@ -10255,12 +9168,11 @@ class CvNative { ); } - late final _Mat_GetVec3iPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec3i'); - late final _Mat_GetVec3i = _Mat_GetVec3iPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec3iPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec3i'); + late final _Mat_GetVec3i = + _Mat_GetVec3iPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec3s( Mat m, @@ -10276,12 +9188,11 @@ class CvNative { ); } - late final _Mat_GetVec3sPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec3s'); - late final _Mat_GetVec3s = _Mat_GetVec3sPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec3sPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec3s'); + late final _Mat_GetVec3s = + _Mat_GetVec3sPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec3w( Mat m, @@ -10297,12 +9208,11 @@ class CvNative { ); } - late final _Mat_GetVec3wPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec3w'); - late final _Mat_GetVec3w = _Mat_GetVec3wPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec3wPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec3w'); + late final _Mat_GetVec3w = + _Mat_GetVec3wPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec4b( Mat m, @@ -10318,12 +9228,11 @@ class CvNative { ); } - late final _Mat_GetVec4bPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec4b'); - late final _Mat_GetVec4b = _Mat_GetVec4bPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec4bPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec4b'); + late final _Mat_GetVec4b = + _Mat_GetVec4bPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec4d( Mat m, @@ -10339,12 +9248,11 @@ class CvNative { ); } - late final _Mat_GetVec4dPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec4d'); - late final _Mat_GetVec4d = _Mat_GetVec4dPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec4dPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec4d'); + late final _Mat_GetVec4d = + _Mat_GetVec4dPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec4f( Mat m, @@ -10360,12 +9268,11 @@ class CvNative { ); } - late final _Mat_GetVec4fPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec4f'); - late final _Mat_GetVec4f = _Mat_GetVec4fPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec4fPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec4f'); + late final _Mat_GetVec4f = + _Mat_GetVec4fPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec4i( Mat m, @@ -10381,12 +9288,11 @@ class CvNative { ); } - late final _Mat_GetVec4iPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec4i'); - late final _Mat_GetVec4i = _Mat_GetVec4iPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec4iPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec4i'); + late final _Mat_GetVec4i = + _Mat_GetVec4iPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec4s( Mat m, @@ -10402,12 +9308,11 @@ class CvNative { ); } - late final _Mat_GetVec4sPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec4s'); - late final _Mat_GetVec4s = _Mat_GetVec4sPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec4sPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec4s'); + late final _Mat_GetVec4s = + _Mat_GetVec4sPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec4w( Mat m, @@ -10423,13 +9328,12 @@ class CvNative { ); } - late final _Mat_GetVec4wPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec4w'); - late final _Mat_GetVec4w = _Mat_GetVec4wPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); - + late final _Mat_GetVec4wPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec4w'); + late final _Mat_GetVec4w = + _Mat_GetVec4wPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + ffi.Pointer Mat_GetVec6d( Mat m, int row, @@ -10444,12 +9348,11 @@ class CvNative { ); } - late final _Mat_GetVec6dPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec6d'); - late final _Mat_GetVec6d = _Mat_GetVec6dPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec6dPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec6d'); + late final _Mat_GetVec6d = + _Mat_GetVec6dPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec6f( Mat m, @@ -10465,12 +9368,11 @@ class CvNative { ); } - late final _Mat_GetVec6fPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec6f'); - late final _Mat_GetVec6f = _Mat_GetVec6fPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec6fPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec6f'); + late final _Mat_GetVec6f = + _Mat_GetVec6fPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec6i( Mat m, @@ -10486,12 +9388,11 @@ class CvNative { ); } - late final _Mat_GetVec6iPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec6i'); - late final _Mat_GetVec6i = _Mat_GetVec6iPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec6iPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec6i'); + late final _Mat_GetVec6i = + _Mat_GetVec6iPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec8i( Mat m, @@ -10507,12 +9408,11 @@ class CvNative { ); } - late final _Mat_GetVec8iPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec8i'); - late final _Mat_GetVec8i = _Mat_GetVec8iPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec8iPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_GetVec8i'); + late final _Mat_GetVec8i = + _Mat_GetVec8iPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_Hconcat( Mat src1, @@ -10526,11 +9426,9 @@ class CvNative { ); } - late final _Mat_HconcatPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_Hconcat'); - late final _Mat_Hconcat = _Mat_HconcatPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_HconcatPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_Hconcat'); + late final _Mat_Hconcat = _Mat_HconcatPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_Idct( Mat src, @@ -10544,11 +9442,9 @@ class CvNative { ); } - late final _Mat_IdctPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_Idct'); - late final _Mat_Idct = - _Mat_IdctPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_IdctPtr = + _lookup Function(Mat, Mat, ffi.Int)>>('Mat_Idct'); + late final _Mat_Idct = _Mat_IdctPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_Idft( Mat src, @@ -10564,12 +9460,9 @@ class CvNative { ); } - late final _Mat_IdftPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Int)>>('Mat_Idft'); - late final _Mat_Idft = _Mat_IdftPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, int)>(); + late final _Mat_IdftPtr = + _lookup Function(Mat, Mat, ffi.Int, ffi.Int)>>('Mat_Idft'); + late final _Mat_Idft = _Mat_IdftPtr.asFunction Function(Mat, Mat, int, int)>(); ffi.Pointer Mat_InRange( Mat src, @@ -10585,11 +9478,9 @@ class CvNative { ); } - late final _Mat_InRangePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat)>>('Mat_InRange'); - late final _Mat_InRange = _Mat_InRangePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat)>(); + late final _Mat_InRangePtr = + _lookup Function(Mat, Mat, Mat, Mat)>>('Mat_InRange'); + late final _Mat_InRange = _Mat_InRangePtr.asFunction Function(Mat, Mat, Mat, Mat)>(); ffi.Pointer Mat_InRangeWithScalar( Mat src, @@ -10605,12 +9496,11 @@ class CvNative { ); } - late final _Mat_InRangeWithScalarPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Scalar, Scalar, Mat)>>('Mat_InRangeWithScalar'); - late final _Mat_InRangeWithScalar = _Mat_InRangeWithScalarPtr.asFunction< - ffi.Pointer Function(Mat, Scalar, Scalar, Mat)>(); + late final _Mat_InRangeWithScalarPtr = + _lookup Function(Mat, Scalar, Scalar, Mat)>>( + 'Mat_InRangeWithScalar'); + late final _Mat_InRangeWithScalar = + _Mat_InRangeWithScalarPtr.asFunction Function(Mat, Scalar, Scalar, Mat)>(); ffi.Pointer Mat_InsertChannel( Mat src, @@ -10624,12 +9514,10 @@ class CvNative { ); } - late final _Mat_InsertChannelPtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, ffi.Int)>>( - 'Mat_InsertChannel'); - late final _Mat_InsertChannel = _Mat_InsertChannelPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int)>(); + late final _Mat_InsertChannelPtr = + _lookup Function(Mat, Mat, ffi.Int)>>('Mat_InsertChannel'); + late final _Mat_InsertChannel = + _Mat_InsertChannelPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_Invert( Mat src, @@ -10645,12 +9533,11 @@ class CvNative { ); } - late final _Mat_InvertPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Pointer)>>('Mat_Invert'); - late final _Mat_Invert = _Mat_InvertPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, ffi.Pointer)>(); + late final _Mat_InvertPtr = + _lookup Function(Mat, Mat, ffi.Int, ffi.Pointer)>>( + 'Mat_Invert'); + late final _Mat_Invert = + _Mat_InvertPtr.asFunction Function(Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer Mat_IsContinuous( Mat m, @@ -10662,12 +9549,11 @@ class CvNative { ); } - late final _Mat_IsContinuousPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_IsContinuous'); - late final _Mat_IsContinuous = _Mat_IsContinuousPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_IsContinuousPtr = + _lookup Function(Mat, ffi.Pointer)>>( + 'Mat_IsContinuous'); + late final _Mat_IsContinuous = + _Mat_IsContinuousPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Log( Mat src, @@ -10679,11 +9565,8 @@ class CvNative { ); } - late final _Mat_LogPtr = - _lookup Function(Mat, Mat)>>( - 'Mat_Log'); - late final _Mat_Log = - _Mat_LogPtr.asFunction Function(Mat, Mat)>(); + late final _Mat_LogPtr = _lookup Function(Mat, Mat)>>('Mat_Log'); + late final _Mat_Log = _Mat_LogPtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_Magnitude( Mat x, @@ -10697,11 +9580,9 @@ class CvNative { ); } - late final _Mat_MagnitudePtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_Magnitude'); - late final _Mat_Magnitude = _Mat_MagnitudePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_MagnitudePtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_Magnitude'); + late final _Mat_Magnitude = _Mat_MagnitudePtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_Max( Mat src1, @@ -10715,11 +9596,9 @@ class CvNative { ); } - late final _Mat_MaxPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_Max'); - late final _Mat_Max = - _Mat_MaxPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_MaxPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_Max'); + late final _Mat_Max = _Mat_MaxPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_Mean( Mat m, @@ -10731,12 +9610,9 @@ class CvNative { ); } - late final _Mat_MeanPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_Mean'); - late final _Mat_Mean = _Mat_MeanPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_MeanPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Mean'); + late final _Mat_Mean = _Mat_MeanPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_MeanStdDev( Mat src, @@ -10751,12 +9627,10 @@ class CvNative { } late final _Mat_MeanStdDevPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer, - ffi.Pointer)>>('Mat_MeanStdDev'); + ffi.NativeFunction Function(Mat, ffi.Pointer, ffi.Pointer)>>( + 'Mat_MeanStdDev'); late final _Mat_MeanStdDev = _Mat_MeanStdDevPtr.asFunction< - ffi.Pointer Function( - Mat, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(Mat, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Mat_MeanStdDevWithMask( Mat src, @@ -10774,11 +9648,10 @@ class CvNative { late final _Mat_MeanStdDevWithMaskPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer, - ffi.Pointer, Mat)>>('Mat_MeanStdDevWithMask'); + ffi.Pointer Function( + Mat, ffi.Pointer, ffi.Pointer, Mat)>>('Mat_MeanStdDevWithMask'); late final _Mat_MeanStdDevWithMask = _Mat_MeanStdDevWithMaskPtr.asFunction< - ffi.Pointer Function( - Mat, ffi.Pointer, ffi.Pointer, Mat)>(); + ffi.Pointer Function(Mat, ffi.Pointer, ffi.Pointer, Mat)>(); ffi.Pointer Mat_MeanWithMask( Mat m, @@ -10792,12 +9665,11 @@ class CvNative { ); } - late final _Mat_MeanWithMaskPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Pointer)>>('Mat_MeanWithMask'); - late final _Mat_MeanWithMask = _Mat_MeanWithMaskPtr.asFunction< - ffi.Pointer Function(Mat, Mat, ffi.Pointer)>(); + late final _Mat_MeanWithMaskPtr = + _lookup Function(Mat, Mat, ffi.Pointer)>>( + 'Mat_MeanWithMask'); + late final _Mat_MeanWithMask = + _Mat_MeanWithMaskPtr.asFunction Function(Mat, Mat, ffi.Pointer)>(); ffi.Pointer Mat_Merge( VecMat mats, @@ -10810,10 +9682,8 @@ class CvNative { } late final _Mat_MergePtr = - _lookup Function(VecMat, Mat)>>( - 'Mat_Merge'); - late final _Mat_Merge = - _Mat_MergePtr.asFunction Function(VecMat, Mat)>(); + _lookup Function(VecMat, Mat)>>('Mat_Merge'); + late final _Mat_Merge = _Mat_MergePtr.asFunction Function(VecMat, Mat)>(); ffi.Pointer Mat_Min( Mat src1, @@ -10827,11 +9697,9 @@ class CvNative { ); } - late final _Mat_MinPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_Min'); - late final _Mat_Min = - _Mat_MinPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_MinPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_Min'); + late final _Mat_Min = _Mat_MinPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_MinMaxIdx( Mat m, @@ -10851,19 +9719,11 @@ class CvNative { late final _Mat_MinMaxIdxPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('Mat_MinMaxIdx'); + ffi.Pointer Function(Mat, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('Mat_MinMaxIdx'); late final _Mat_MinMaxIdx = _Mat_MinMaxIdxPtr.asFunction< - ffi.Pointer Function( - Mat, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function(Mat, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Mat_MinMaxLoc( Mat m, @@ -10883,15 +9743,11 @@ class CvNative { late final _Mat_MinMaxLocPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('Mat_MinMaxLoc'); + ffi.Pointer Function(Mat, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('Mat_MinMaxLoc'); late final _Mat_MinMaxLoc = _Mat_MinMaxLocPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer, - ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Mat_MixChannels( VecMat src, @@ -10905,12 +9761,10 @@ class CvNative { ); } - late final _Mat_MixChannelsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecMat, VecMat, VecInt)>>('Mat_MixChannels'); - late final _Mat_MixChannels = _Mat_MixChannelsPtr.asFunction< - ffi.Pointer Function(VecMat, VecMat, VecInt)>(); + late final _Mat_MixChannelsPtr = + _lookup Function(VecMat, VecMat, VecInt)>>('Mat_MixChannels'); + late final _Mat_MixChannels = + _Mat_MixChannelsPtr.asFunction Function(VecMat, VecMat, VecInt)>(); ffi.Pointer Mat_MulSpectrums( Mat a, @@ -10926,12 +9780,10 @@ class CvNative { ); } - late final _Mat_MulSpectrumsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Int)>>('Mat_MulSpectrums'); - late final _Mat_MulSpectrums = _Mat_MulSpectrumsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, int)>(); + late final _Mat_MulSpectrumsPtr = + _lookup Function(Mat, Mat, Mat, ffi.Int)>>('Mat_MulSpectrums'); + late final _Mat_MulSpectrums = + _Mat_MulSpectrumsPtr.asFunction Function(Mat, Mat, Mat, int)>(); ffi.Pointer Mat_Multiply( Mat src1, @@ -10945,11 +9797,9 @@ class CvNative { ); } - late final _Mat_MultiplyPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_Multiply'); - late final _Mat_Multiply = _Mat_MultiplyPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_MultiplyPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_Multiply'); + late final _Mat_Multiply = _Mat_MultiplyPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_MultiplyF64( Mat m, @@ -10961,11 +9811,9 @@ class CvNative { ); } - late final _Mat_MultiplyF64Ptr = _lookup< - ffi.NativeFunction Function(Mat, double_t)>>( - 'Mat_MultiplyF64'); - late final _Mat_MultiplyF64 = _Mat_MultiplyF64Ptr.asFunction< - ffi.Pointer Function(Mat, double)>(); + late final _Mat_MultiplyF64Ptr = + _lookup Function(Mat, double_t)>>('Mat_MultiplyF64'); + late final _Mat_MultiplyF64 = _Mat_MultiplyF64Ptr.asFunction Function(Mat, double)>(); ffi.Pointer Mat_MultiplyFloat( Mat m, @@ -10978,10 +9826,9 @@ class CvNative { } late final _Mat_MultiplyFloatPtr = - _lookup Function(Mat, float_t)>>( - 'Mat_MultiplyFloat'); - late final _Mat_MultiplyFloat = _Mat_MultiplyFloatPtr.asFunction< - ffi.Pointer Function(Mat, double)>(); + _lookup Function(Mat, float_t)>>('Mat_MultiplyFloat'); + late final _Mat_MultiplyFloat = + _Mat_MultiplyFloatPtr.asFunction Function(Mat, double)>(); ffi.Pointer Mat_MultiplyI32( Mat m, @@ -10993,11 +9840,9 @@ class CvNative { ); } - late final _Mat_MultiplyI32Ptr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int32)>>( - 'Mat_MultiplyI32'); - late final _Mat_MultiplyI32 = _Mat_MultiplyI32Ptr.asFunction< - ffi.Pointer Function(Mat, int)>(); + late final _Mat_MultiplyI32Ptr = + _lookup Function(Mat, ffi.Int32)>>('Mat_MultiplyI32'); + late final _Mat_MultiplyI32 = _Mat_MultiplyI32Ptr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_MultiplyMatrix( Mat x, @@ -11011,12 +9856,11 @@ class CvNative { ); } - late final _Mat_MultiplyMatrixPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Pointer)>>('Mat_MultiplyMatrix'); - late final _Mat_MultiplyMatrix = _Mat_MultiplyMatrixPtr.asFunction< - ffi.Pointer Function(Mat, Mat, ffi.Pointer)>(); + late final _Mat_MultiplyMatrixPtr = + _lookup Function(Mat, Mat, ffi.Pointer)>>( + 'Mat_MultiplyMatrix'); + late final _Mat_MultiplyMatrix = + _Mat_MultiplyMatrixPtr.asFunction Function(Mat, Mat, ffi.Pointer)>(); ffi.Pointer Mat_MultiplySChar( Mat m, @@ -11028,11 +9872,10 @@ class CvNative { ); } - late final _Mat_MultiplySCharPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int8)>>( - 'Mat_MultiplySChar'); - late final _Mat_MultiplySChar = _Mat_MultiplySCharPtr.asFunction< - ffi.Pointer Function(Mat, int)>(); + late final _Mat_MultiplySCharPtr = + _lookup Function(Mat, ffi.Int8)>>('Mat_MultiplySChar'); + late final _Mat_MultiplySChar = + _Mat_MultiplySCharPtr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_MultiplyUChar( Mat m, @@ -11044,11 +9887,10 @@ class CvNative { ); } - late final _Mat_MultiplyUCharPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Uint8)>>( - 'Mat_MultiplyUChar'); - late final _Mat_MultiplyUChar = _Mat_MultiplyUCharPtr.asFunction< - ffi.Pointer Function(Mat, int)>(); + late final _Mat_MultiplyUCharPtr = + _lookup Function(Mat, ffi.Uint8)>>('Mat_MultiplyUChar'); + late final _Mat_MultiplyUChar = + _Mat_MultiplyUCharPtr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_MultiplyWithParams( Mat src1, @@ -11066,12 +9908,11 @@ class CvNative { ); } - late final _Mat_MultiplyWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Double, ffi.Int)>>('Mat_MultiplyWithParams'); - late final _Mat_MultiplyWithParams = _Mat_MultiplyWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, double, int)>(); + late final _Mat_MultiplyWithParamsPtr = + _lookup Function(Mat, Mat, Mat, ffi.Double, ffi.Int)>>( + 'Mat_MultiplyWithParams'); + late final _Mat_MultiplyWithParams = + _Mat_MultiplyWithParamsPtr.asFunction Function(Mat, Mat, Mat, double, int)>(); /// @brief Create empty Mat /// @@ -11092,11 +9933,9 @@ class CvNative { ); } - late final _Mat_NewPtr = _lookup< - ffi.NativeFunction Function(ffi.Pointer)>>( - 'Mat_New'); - late final _Mat_New = _Mat_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _Mat_NewPtr = + _lookup Function(ffi.Pointer)>>('Mat_New'); + late final _Mat_New = _Mat_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer Mat_NewFromBytes( int rows, @@ -11118,16 +9957,10 @@ class CvNative { late final _Mat_NewFromBytesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, - ffi.Int, - ffi.Int, - ffi.Pointer, - ffi.Int, + ffi.Pointer Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer, ffi.Int, ffi.Pointer)>>('Mat_NewFromBytes'); late final _Mat_NewFromBytes = _Mat_NewFromBytesPtr.asFunction< - ffi.Pointer Function( - int, int, int, ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function(int, int, int, ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer Mat_NewFromScalar( Scalar ar, @@ -11141,12 +9974,11 @@ class CvNative { ); } - late final _Mat_NewFromScalarPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Scalar, ffi.Int, ffi.Pointer)>>('Mat_NewFromScalar'); - late final _Mat_NewFromScalar = _Mat_NewFromScalarPtr.asFunction< - ffi.Pointer Function(Scalar, int, ffi.Pointer)>(); + late final _Mat_NewFromScalarPtr = + _lookup Function(Scalar, ffi.Int, ffi.Pointer)>>( + 'Mat_NewFromScalar'); + late final _Mat_NewFromScalar = + _Mat_NewFromScalarPtr.asFunction Function(Scalar, int, ffi.Pointer)>(); ffi.Pointer Mat_NewFromVecPoint( VecPoint vec, @@ -11158,12 +9990,11 @@ class CvNative { ); } - late final _Mat_NewFromVecPointPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('Mat_NewFromVecPoint'); - late final _Mat_NewFromVecPoint = _Mat_NewFromVecPointPtr.asFunction< - ffi.Pointer Function(VecPoint, ffi.Pointer)>(); + late final _Mat_NewFromVecPointPtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'Mat_NewFromVecPoint'); + late final _Mat_NewFromVecPoint = + _Mat_NewFromVecPointPtr.asFunction Function(VecPoint, ffi.Pointer)>(); ffi.Pointer Mat_NewFromVecPoint2f( VecPoint2f vec, @@ -11175,12 +10006,11 @@ class CvNative { ); } - late final _Mat_NewFromVecPoint2fPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint2f, ffi.Pointer)>>('Mat_NewFromVecPoint2f'); - late final _Mat_NewFromVecPoint2f = _Mat_NewFromVecPoint2fPtr.asFunction< - ffi.Pointer Function(VecPoint2f, ffi.Pointer)>(); + late final _Mat_NewFromVecPoint2fPtr = + _lookup Function(VecPoint2f, ffi.Pointer)>>( + 'Mat_NewFromVecPoint2f'); + late final _Mat_NewFromVecPoint2f = + _Mat_NewFromVecPoint2fPtr.asFunction Function(VecPoint2f, ffi.Pointer)>(); ffi.Pointer Mat_NewFromVecPoint3f( VecPoint3f vec, @@ -11192,12 +10022,11 @@ class CvNative { ); } - late final _Mat_NewFromVecPoint3fPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint3f, ffi.Pointer)>>('Mat_NewFromVecPoint3f'); - late final _Mat_NewFromVecPoint3f = _Mat_NewFromVecPoint3fPtr.asFunction< - ffi.Pointer Function(VecPoint3f, ffi.Pointer)>(); + late final _Mat_NewFromVecPoint3fPtr = + _lookup Function(VecPoint3f, ffi.Pointer)>>( + 'Mat_NewFromVecPoint3f'); + late final _Mat_NewFromVecPoint3f = + _Mat_NewFromVecPoint3fPtr.asFunction Function(VecPoint3f, ffi.Pointer)>(); ffi.Pointer Mat_NewWithSize( int rows, @@ -11214,11 +10043,10 @@ class CvNative { } late final _Mat_NewWithSizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_NewWithSize'); - late final _Mat_NewWithSize = _Mat_NewWithSizePtr.asFunction< - ffi.Pointer Function(int, int, int, ffi.Pointer)>(); + ffi.NativeFunction Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_NewWithSize'); + late final _Mat_NewWithSize = + _Mat_NewWithSizePtr.asFunction Function(int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_NewWithSizeFromScalar( Scalar ar, @@ -11238,12 +10066,10 @@ class CvNative { late final _Mat_NewWithSizeFromScalarPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Scalar, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer)>>('Mat_NewWithSizeFromScalar'); - late final _Mat_NewWithSizeFromScalar = - _Mat_NewWithSizeFromScalarPtr.asFunction< ffi.Pointer Function( - Scalar, int, int, int, ffi.Pointer)>(); + Scalar, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_NewWithSizeFromScalar'); + late final _Mat_NewWithSizeFromScalar = _Mat_NewWithSizeFromScalarPtr.asFunction< + ffi.Pointer Function(Scalar, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_NewWithSizes( VecInt sizes, @@ -11257,12 +10083,11 @@ class CvNative { ); } - late final _Mat_NewWithSizesPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecInt, ffi.Int, ffi.Pointer)>>('Mat_NewWithSizes'); - late final _Mat_NewWithSizes = _Mat_NewWithSizesPtr.asFunction< - ffi.Pointer Function(VecInt, int, ffi.Pointer)>(); + late final _Mat_NewWithSizesPtr = + _lookup Function(VecInt, ffi.Int, ffi.Pointer)>>( + 'Mat_NewWithSizes'); + late final _Mat_NewWithSizes = + _Mat_NewWithSizesPtr.asFunction Function(VecInt, int, ffi.Pointer)>(); ffi.Pointer Mat_NewWithSizesFromBytes( VecInt sizes, @@ -11278,14 +10103,11 @@ class CvNative { ); } - late final _Mat_NewWithSizesFromBytesPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecInt, ffi.Int, VecChar, - ffi.Pointer)>>('Mat_NewWithSizesFromBytes'); - late final _Mat_NewWithSizesFromBytes = - _Mat_NewWithSizesFromBytesPtr.asFunction< - ffi.Pointer Function( - VecInt, int, VecChar, ffi.Pointer)>(); + late final _Mat_NewWithSizesFromBytesPtr = + _lookup Function(VecInt, ffi.Int, VecChar, ffi.Pointer)>>( + 'Mat_NewWithSizesFromBytes'); + late final _Mat_NewWithSizesFromBytes = _Mat_NewWithSizesFromBytesPtr.asFunction< + ffi.Pointer Function(VecInt, int, VecChar, ffi.Pointer)>(); ffi.Pointer Mat_NewWithSizesFromScalar( VecInt sizes, @@ -11301,14 +10123,11 @@ class CvNative { ); } - late final _Mat_NewWithSizesFromScalarPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecInt, ffi.Int, Scalar, - ffi.Pointer)>>('Mat_NewWithSizesFromScalar'); - late final _Mat_NewWithSizesFromScalar = - _Mat_NewWithSizesFromScalarPtr.asFunction< - ffi.Pointer Function( - VecInt, int, Scalar, ffi.Pointer)>(); + late final _Mat_NewWithSizesFromScalarPtr = + _lookup Function(VecInt, ffi.Int, Scalar, ffi.Pointer)>>( + 'Mat_NewWithSizesFromScalar'); + late final _Mat_NewWithSizesFromScalar = _Mat_NewWithSizesFromScalarPtr.asFunction< + ffi.Pointer Function(VecInt, int, Scalar, ffi.Pointer)>(); ffi.Pointer Mat_Normalize( Mat src, @@ -11326,12 +10145,11 @@ class CvNative { ); } - late final _Mat_NormalizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Double, ffi.Double, ffi.Int)>>('Mat_Normalize'); - late final _Mat_Normalize = _Mat_NormalizePtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, double, int)>(); + late final _Mat_NormalizePtr = + _lookup Function(Mat, Mat, ffi.Double, ffi.Double, ffi.Int)>>( + 'Mat_Normalize'); + late final _Mat_Normalize = + _Mat_NormalizePtr.asFunction Function(Mat, Mat, double, double, int)>(); ffi.Pointer Mat_PCACompute( Mat src, @@ -11349,12 +10167,11 @@ class CvNative { ); } - late final _Mat_PCAComputePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, ffi.Int)>>('Mat_PCACompute'); - late final _Mat_PCACompute = _Mat_PCAComputePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, int)>(); + late final _Mat_PCAComputePtr = + _lookup Function(Mat, Mat, Mat, Mat, ffi.Int)>>( + 'Mat_PCACompute'); + late final _Mat_PCACompute = + _Mat_PCAComputePtr.asFunction Function(Mat, Mat, Mat, Mat, int)>(); ffi.Pointer Mat_PatchNaNs( Mat m, @@ -11366,11 +10183,9 @@ class CvNative { ); } - late final _Mat_PatchNaNsPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Double)>>( - 'Mat_PatchNaNs'); - late final _Mat_PatchNaNs = _Mat_PatchNaNsPtr.asFunction< - ffi.Pointer Function(Mat, double)>(); + late final _Mat_PatchNaNsPtr = + _lookup Function(Mat, ffi.Double)>>('Mat_PatchNaNs'); + late final _Mat_PatchNaNs = _Mat_PatchNaNsPtr.asFunction Function(Mat, double)>(); ffi.Pointer Mat_PerspectiveTransform( Mat src, @@ -11384,11 +10199,10 @@ class CvNative { ); } - late final _Mat_PerspectiveTransformPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_PerspectiveTransform'); - late final _Mat_PerspectiveTransform = _Mat_PerspectiveTransformPtr - .asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_PerspectiveTransformPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_PerspectiveTransform'); + late final _Mat_PerspectiveTransform = + _Mat_PerspectiveTransformPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_Phase( Mat x, @@ -11404,12 +10218,9 @@ class CvNative { ); } - late final _Mat_PhasePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Bool)>>('Mat_Phase'); - late final _Mat_Phase = _Mat_PhasePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, bool)>(); + late final _Mat_PhasePtr = + _lookup Function(Mat, Mat, Mat, ffi.Bool)>>('Mat_Phase'); + late final _Mat_Phase = _Mat_PhasePtr.asFunction Function(Mat, Mat, Mat, bool)>(); ffi.Pointer Mat_PolarToCart( Mat magnitude, @@ -11427,12 +10238,11 @@ class CvNative { ); } - late final _Mat_PolarToCartPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, ffi.Bool)>>('Mat_PolarToCart'); - late final _Mat_PolarToCart = _Mat_PolarToCartPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, bool)>(); + late final _Mat_PolarToCartPtr = + _lookup Function(Mat, Mat, Mat, Mat, ffi.Bool)>>( + 'Mat_PolarToCart'); + late final _Mat_PolarToCart = + _Mat_PolarToCartPtr.asFunction Function(Mat, Mat, Mat, Mat, bool)>(); ffi.Pointer Mat_Pow( Mat src, @@ -11446,11 +10256,9 @@ class CvNative { ); } - late final _Mat_PowPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Double, Mat)>>('Mat_Pow'); - late final _Mat_Pow = _Mat_PowPtr.asFunction< - ffi.Pointer Function(Mat, double, Mat)>(); + late final _Mat_PowPtr = + _lookup Function(Mat, ffi.Double, Mat)>>('Mat_Pow'); + late final _Mat_Pow = _Mat_PowPtr.asFunction Function(Mat, double, Mat)>(); ffi.Pointer Mat_Ptr_f32_1( Mat m, @@ -11465,12 +10273,11 @@ class CvNative { } late final _Mat_Ptr_f32_1Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_f32_1'); + ffi + .NativeFunction Function(Mat, ffi.Int, ffi.Pointer>)>>( + 'Mat_Ptr_f32_1'); late final _Mat_Ptr_f32_1 = _Mat_Ptr_f32_1Ptr.asFunction< - ffi.Pointer Function( - Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_f32_2( Mat m, @@ -11488,11 +10295,10 @@ class CvNative { late final _Mat_Ptr_f32_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_f32_2'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_f32_2'); late final _Mat_Ptr_f32_2 = _Mat_Ptr_f32_2Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_f32_3( Mat m, @@ -11512,11 +10318,10 @@ class CvNative { late final _Mat_Ptr_f32_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_f32_3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_f32_3'); late final _Mat_Ptr_f32_3 = _Mat_Ptr_f32_3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_f64_1( Mat m, @@ -11532,11 +10337,10 @@ class CvNative { late final _Mat_Ptr_f64_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_f64_1'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_f64_1'); late final _Mat_Ptr_f64_1 = _Mat_Ptr_f64_1Ptr.asFunction< - ffi.Pointer Function( - Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_f64_2( Mat m, @@ -11554,11 +10358,10 @@ class CvNative { late final _Mat_Ptr_f64_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_f64_2'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_f64_2'); late final _Mat_Ptr_f64_2 = _Mat_Ptr_f64_2Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_f64_3( Mat m, @@ -11578,11 +10381,10 @@ class CvNative { late final _Mat_Ptr_f64_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_f64_3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_f64_3'); late final _Mat_Ptr_f64_3 = _Mat_Ptr_f64_3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i16_1( Mat m, @@ -11597,12 +10399,11 @@ class CvNative { } late final _Mat_Ptr_i16_1Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_i16_1'); + ffi + .NativeFunction Function(Mat, ffi.Int, ffi.Pointer>)>>( + 'Mat_Ptr_i16_1'); late final _Mat_Ptr_i16_1 = _Mat_Ptr_i16_1Ptr.asFunction< - ffi.Pointer Function( - Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i16_2( Mat m, @@ -11620,11 +10421,10 @@ class CvNative { late final _Mat_Ptr_i16_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_i16_2'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i16_2'); late final _Mat_Ptr_i16_2 = _Mat_Ptr_i16_2Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i16_3( Mat m, @@ -11644,11 +10444,10 @@ class CvNative { late final _Mat_Ptr_i16_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_i16_3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i16_3'); late final _Mat_Ptr_i16_3 = _Mat_Ptr_i16_3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i32_1( Mat m, @@ -11664,11 +10463,9 @@ class CvNative { late final _Mat_Ptr_i32_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_i32_1'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i32_1'); late final _Mat_Ptr_i32_1 = _Mat_Ptr_i32_1Ptr.asFunction< - ffi.Pointer Function( - Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i32_2( Mat m, @@ -11686,11 +10483,10 @@ class CvNative { late final _Mat_Ptr_i32_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_i32_2'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i32_2'); late final _Mat_Ptr_i32_2 = _Mat_Ptr_i32_2Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i32_3( Mat m, @@ -11710,11 +10506,10 @@ class CvNative { late final _Mat_Ptr_i32_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_i32_3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i32_3'); late final _Mat_Ptr_i32_3 = _Mat_Ptr_i32_3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i8_1( Mat m, @@ -11730,11 +10525,9 @@ class CvNative { late final _Mat_Ptr_i8_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_i8_1'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i8_1'); late final _Mat_Ptr_i8_1 = _Mat_Ptr_i8_1Ptr.asFunction< - ffi.Pointer Function( - Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i8_2( Mat m, @@ -11752,11 +10545,10 @@ class CvNative { late final _Mat_Ptr_i8_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_i8_2'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i8_2'); late final _Mat_Ptr_i8_2 = _Mat_Ptr_i8_2Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i8_3( Mat m, @@ -11776,11 +10568,10 @@ class CvNative { late final _Mat_Ptr_i8_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_i8_3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i8_3'); late final _Mat_Ptr_i8_3 = _Mat_Ptr_i8_3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_u16_1( Mat m, @@ -11795,12 +10586,10 @@ class CvNative { } late final _Mat_Ptr_u16_1Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_u16_1'); + ffi.NativeFunction Function(Mat, ffi.Int, ffi.Pointer>)>>( + 'Mat_Ptr_u16_1'); late final _Mat_Ptr_u16_1 = _Mat_Ptr_u16_1Ptr.asFunction< - ffi.Pointer Function( - Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_u16_2( Mat m, @@ -11818,11 +10607,10 @@ class CvNative { late final _Mat_Ptr_u16_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_u16_2'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_u16_2'); late final _Mat_Ptr_u16_2 = _Mat_Ptr_u16_2Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_u16_3( Mat m, @@ -11842,11 +10630,10 @@ class CvNative { late final _Mat_Ptr_u16_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_u16_3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_u16_3'); late final _Mat_Ptr_u16_3 = _Mat_Ptr_u16_3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_u8_1( Mat m, @@ -11861,12 +10648,10 @@ class CvNative { } late final _Mat_Ptr_u8_1Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_u8_1'); + ffi.NativeFunction Function(Mat, ffi.Int, ffi.Pointer>)>>( + 'Mat_Ptr_u8_1'); late final _Mat_Ptr_u8_1 = _Mat_Ptr_u8_1Ptr.asFunction< - ffi.Pointer Function( - Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_u8_2( Mat m, @@ -11884,11 +10669,10 @@ class CvNative { late final _Mat_Ptr_u8_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_u8_2'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_u8_2'); late final _Mat_Ptr_u8_2 = _Mat_Ptr_u8_2Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_u8_3( Mat m, @@ -11908,11 +10692,10 @@ class CvNative { late final _Mat_Ptr_u8_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer>)>>('Mat_Ptr_u8_3'); + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_u8_3'); late final _Mat_Ptr_u8_3 = _Mat_Ptr_u8_3Ptr.asFunction< - ffi.Pointer Function( - Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Reduce( Mat src, @@ -11930,12 +10713,11 @@ class CvNative { ); } - late final _Mat_ReducePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Int, ffi.Int)>>('Mat_Reduce'); - late final _Mat_Reduce = _Mat_ReducePtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, int, int)>(); + late final _Mat_ReducePtr = + _lookup Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Int)>>( + 'Mat_Reduce'); + late final _Mat_Reduce = + _Mat_ReducePtr.asFunction Function(Mat, Mat, int, int, int)>(); ffi.Pointer Mat_ReduceArgMax( Mat src, @@ -11951,12 +10733,11 @@ class CvNative { ); } - late final _Mat_ReduceArgMaxPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Bool)>>('Mat_ReduceArgMax'); - late final _Mat_ReduceArgMax = _Mat_ReduceArgMaxPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, bool)>(); + late final _Mat_ReduceArgMaxPtr = + _lookup Function(Mat, Mat, ffi.Int, ffi.Bool)>>( + 'Mat_ReduceArgMax'); + late final _Mat_ReduceArgMax = + _Mat_ReduceArgMaxPtr.asFunction Function(Mat, Mat, int, bool)>(); ffi.Pointer Mat_ReduceArgMin( Mat src, @@ -11972,12 +10753,11 @@ class CvNative { ); } - late final _Mat_ReduceArgMinPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Bool)>>('Mat_ReduceArgMin'); - late final _Mat_ReduceArgMin = _Mat_ReduceArgMinPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, bool)>(); + late final _Mat_ReduceArgMinPtr = + _lookup Function(Mat, Mat, ffi.Int, ffi.Bool)>>( + 'Mat_ReduceArgMin'); + late final _Mat_ReduceArgMin = + _Mat_ReduceArgMinPtr.asFunction Function(Mat, Mat, int, bool)>(); ffi.Pointer Mat_Region( Mat m, @@ -11991,12 +10771,10 @@ class CvNative { ); } - late final _Mat_RegionPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Rect, ffi.Pointer)>>('Mat_Region'); - late final _Mat_Region = _Mat_RegionPtr.asFunction< - ffi.Pointer Function(Mat, Rect, ffi.Pointer)>(); + late final _Mat_RegionPtr = + _lookup Function(Mat, Rect, ffi.Pointer)>>('Mat_Region'); + late final _Mat_Region = + _Mat_RegionPtr.asFunction Function(Mat, Rect, ffi.Pointer)>(); ffi.Pointer Mat_Release( ffi.Pointer m, @@ -12006,11 +10784,9 @@ class CvNative { ); } - late final _Mat_ReleasePtr = _lookup< - ffi.NativeFunction Function(ffi.Pointer)>>( - 'Mat_Release'); - late final _Mat_Release = _Mat_ReleasePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _Mat_ReleasePtr = + _lookup Function(ffi.Pointer)>>('Mat_Release'); + late final _Mat_Release = _Mat_ReleasePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer Mat_Repeat( Mat src, @@ -12026,12 +10802,9 @@ class CvNative { ); } - late final _Mat_RepeatPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Mat)>>('Mat_Repeat'); - late final _Mat_Repeat = _Mat_RepeatPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Mat)>(); + late final _Mat_RepeatPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Mat)>>('Mat_Repeat'); + late final _Mat_Repeat = _Mat_RepeatPtr.asFunction Function(Mat, int, int, Mat)>(); ffi.Pointer Mat_Reshape( Mat m, @@ -12047,12 +10820,11 @@ class CvNative { ); } - late final _Mat_ReshapePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_Reshape'); - late final _Mat_Reshape = _Mat_ReshapePtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_ReshapePtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_Reshape'); + late final _Mat_Reshape = + _Mat_ReshapePtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_Rows( Mat m, @@ -12064,12 +10836,9 @@ class CvNative { ); } - late final _Mat_RowsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_Rows'); - late final _Mat_Rows = _Mat_RowsPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_RowsPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Rows'); + late final _Mat_Rows = _Mat_RowsPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_ScaleAdd( Mat src1, @@ -12085,12 +10854,10 @@ class CvNative { ); } - late final _Mat_ScaleAddPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Double, Mat, Mat)>>('Mat_ScaleAdd'); - late final _Mat_ScaleAdd = _Mat_ScaleAddPtr.asFunction< - ffi.Pointer Function(Mat, double, Mat, Mat)>(); + late final _Mat_ScaleAddPtr = + _lookup Function(Mat, ffi.Double, Mat, Mat)>>('Mat_ScaleAdd'); + late final _Mat_ScaleAdd = + _Mat_ScaleAddPtr.asFunction Function(Mat, double, Mat, Mat)>(); ffi.Pointer Mat_SetDouble( Mat m, @@ -12106,12 +10873,11 @@ class CvNative { ); } - late final _Mat_SetDoublePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Double)>>('Mat_SetDouble'); - late final _Mat_SetDouble = _Mat_SetDoublePtr.asFunction< - ffi.Pointer Function(Mat, int, int, double)>(); + late final _Mat_SetDoublePtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Double)>>( + 'Mat_SetDouble'); + late final _Mat_SetDouble = + _Mat_SetDoublePtr.asFunction Function(Mat, int, int, double)>(); ffi.Pointer Mat_SetDouble3( Mat m, @@ -12129,12 +10895,11 @@ class CvNative { ); } - late final _Mat_SetDouble3Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Double)>>('Mat_SetDouble3'); - late final _Mat_SetDouble3 = _Mat_SetDouble3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, double)>(); + late final _Mat_SetDouble3Ptr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Double)>>( + 'Mat_SetDouble3'); + late final _Mat_SetDouble3 = + _Mat_SetDouble3Ptr.asFunction Function(Mat, int, int, int, double)>(); ffi.Pointer Mat_SetFloat( Mat m, @@ -12150,12 +10915,11 @@ class CvNative { ); } - late final _Mat_SetFloatPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Float)>>('Mat_SetFloat'); - late final _Mat_SetFloat = _Mat_SetFloatPtr.asFunction< - ffi.Pointer Function(Mat, int, int, double)>(); + late final _Mat_SetFloatPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Float)>>( + 'Mat_SetFloat'); + late final _Mat_SetFloat = + _Mat_SetFloatPtr.asFunction Function(Mat, int, int, double)>(); ffi.Pointer Mat_SetFloat3( Mat m, @@ -12173,12 +10937,11 @@ class CvNative { ); } - late final _Mat_SetFloat3Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Float)>>('Mat_SetFloat3'); - late final _Mat_SetFloat3 = _Mat_SetFloat3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, double)>(); + late final _Mat_SetFloat3Ptr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Float)>>( + 'Mat_SetFloat3'); + late final _Mat_SetFloat3 = + _Mat_SetFloat3Ptr.asFunction Function(Mat, int, int, int, double)>(); ffi.Pointer Mat_SetIdentity( Mat src, @@ -12190,11 +10953,9 @@ class CvNative { ); } - late final _Mat_SetIdentityPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Double)>>( - 'Mat_SetIdentity'); - late final _Mat_SetIdentity = _Mat_SetIdentityPtr.asFunction< - ffi.Pointer Function(Mat, double)>(); + late final _Mat_SetIdentityPtr = + _lookup Function(Mat, ffi.Double)>>('Mat_SetIdentity'); + late final _Mat_SetIdentity = _Mat_SetIdentityPtr.asFunction Function(Mat, double)>(); ffi.Pointer Mat_SetInt( Mat m, @@ -12210,12 +10971,10 @@ class CvNative { ); } - late final _Mat_SetIntPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int32)>>('Mat_SetInt'); - late final _Mat_SetInt = _Mat_SetIntPtr.asFunction< - ffi.Pointer Function(Mat, int, int, int)>(); + late final _Mat_SetIntPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int32)>>( + 'Mat_SetInt'); + late final _Mat_SetInt = _Mat_SetIntPtr.asFunction Function(Mat, int, int, int)>(); ffi.Pointer Mat_SetInt3( Mat m, @@ -12233,12 +10992,11 @@ class CvNative { ); } - late final _Mat_SetInt3Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int32)>>('Mat_SetInt3'); - late final _Mat_SetInt3 = _Mat_SetInt3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, int)>(); + late final _Mat_SetInt3Ptr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int32)>>( + 'Mat_SetInt3'); + late final _Mat_SetInt3 = + _Mat_SetInt3Ptr.asFunction Function(Mat, int, int, int, int)>(); ffi.Pointer Mat_SetSChar( Mat m, @@ -12254,12 +11012,11 @@ class CvNative { ); } - late final _Mat_SetSCharPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int8)>>('Mat_SetSChar'); - late final _Mat_SetSChar = _Mat_SetSCharPtr.asFunction< - ffi.Pointer Function(Mat, int, int, int)>(); + late final _Mat_SetSCharPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int8)>>( + 'Mat_SetSChar'); + late final _Mat_SetSChar = + _Mat_SetSCharPtr.asFunction Function(Mat, int, int, int)>(); ffi.Pointer Mat_SetSChar3( Mat m, @@ -12277,12 +11034,11 @@ class CvNative { ); } - late final _Mat_SetSChar3Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int8)>>('Mat_SetSChar3'); - late final _Mat_SetSChar3 = _Mat_SetSChar3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, int)>(); + late final _Mat_SetSChar3Ptr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int8)>>( + 'Mat_SetSChar3'); + late final _Mat_SetSChar3 = + _Mat_SetSChar3Ptr.asFunction Function(Mat, int, int, int, int)>(); ffi.Pointer Mat_SetShort( Mat m, @@ -12298,12 +11054,11 @@ class CvNative { ); } - late final _Mat_SetShortPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int16)>>('Mat_SetShort'); - late final _Mat_SetShort = _Mat_SetShortPtr.asFunction< - ffi.Pointer Function(Mat, int, int, int)>(); + late final _Mat_SetShortPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int16)>>( + 'Mat_SetShort'); + late final _Mat_SetShort = + _Mat_SetShortPtr.asFunction Function(Mat, int, int, int)>(); ffi.Pointer Mat_SetShort3( Mat m, @@ -12321,12 +11076,11 @@ class CvNative { ); } - late final _Mat_SetShort3Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int16)>>('Mat_SetShort3'); - late final _Mat_SetShort3 = _Mat_SetShort3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, int)>(); + late final _Mat_SetShort3Ptr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int16)>>( + 'Mat_SetShort3'); + late final _Mat_SetShort3 = + _Mat_SetShort3Ptr.asFunction Function(Mat, int, int, int, int)>(); ffi.Pointer Mat_SetTo( Mat m, @@ -12339,10 +11093,8 @@ class CvNative { } late final _Mat_SetToPtr = - _lookup Function(Mat, Scalar)>>( - 'Mat_SetTo'); - late final _Mat_SetTo = - _Mat_SetToPtr.asFunction Function(Mat, Scalar)>(); + _lookup Function(Mat, Scalar)>>('Mat_SetTo'); + late final _Mat_SetTo = _Mat_SetToPtr.asFunction Function(Mat, Scalar)>(); ffi.Pointer Mat_SetUChar( Mat m, @@ -12358,12 +11110,11 @@ class CvNative { ); } - late final _Mat_SetUCharPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Uint8)>>('Mat_SetUChar'); - late final _Mat_SetUChar = _Mat_SetUCharPtr.asFunction< - ffi.Pointer Function(Mat, int, int, int)>(); + late final _Mat_SetUCharPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Uint8)>>( + 'Mat_SetUChar'); + late final _Mat_SetUChar = + _Mat_SetUCharPtr.asFunction Function(Mat, int, int, int)>(); ffi.Pointer Mat_SetUChar3( Mat m, @@ -12381,12 +11132,11 @@ class CvNative { ); } - late final _Mat_SetUChar3Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Uint8)>>('Mat_SetUChar3'); - late final _Mat_SetUChar3 = _Mat_SetUChar3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, int)>(); + late final _Mat_SetUChar3Ptr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Uint8)>>( + 'Mat_SetUChar3'); + late final _Mat_SetUChar3 = + _Mat_SetUChar3Ptr.asFunction Function(Mat, int, int, int, int)>(); ffi.Pointer Mat_SetUShort( Mat m, @@ -12402,12 +11152,11 @@ class CvNative { ); } - late final _Mat_SetUShortPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Uint16)>>('Mat_SetUShort'); - late final _Mat_SetUShort = _Mat_SetUShortPtr.asFunction< - ffi.Pointer Function(Mat, int, int, int)>(); + late final _Mat_SetUShortPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Uint16)>>( + 'Mat_SetUShort'); + late final _Mat_SetUShort = + _Mat_SetUShortPtr.asFunction Function(Mat, int, int, int)>(); ffi.Pointer Mat_SetUShort3( Mat m, @@ -12425,12 +11174,11 @@ class CvNative { ); } - late final _Mat_SetUShort3Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Uint16)>>('Mat_SetUShort3'); - late final _Mat_SetUShort3 = _Mat_SetUShort3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, int)>(); + late final _Mat_SetUShort3Ptr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Uint16)>>( + 'Mat_SetUShort3'); + late final _Mat_SetUShort3 = + _Mat_SetUShort3Ptr.asFunction Function(Mat, int, int, int, int)>(); ffi.Pointer Mat_SetVec2b( Mat m, @@ -12446,12 +11194,11 @@ class CvNative { ); } - late final _Mat_SetVec2bPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec2b)>>('Mat_SetVec2b'); - late final _Mat_SetVec2b = _Mat_SetVec2bPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec2b)>(); + late final _Mat_SetVec2bPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec2b)>>( + 'Mat_SetVec2b'); + late final _Mat_SetVec2b = + _Mat_SetVec2bPtr.asFunction Function(Mat, int, int, Vec2b)>(); ffi.Pointer Mat_SetVec2d( Mat m, @@ -12467,12 +11214,11 @@ class CvNative { ); } - late final _Mat_SetVec2dPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec2d)>>('Mat_SetVec2d'); - late final _Mat_SetVec2d = _Mat_SetVec2dPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec2d)>(); + late final _Mat_SetVec2dPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec2d)>>( + 'Mat_SetVec2d'); + late final _Mat_SetVec2d = + _Mat_SetVec2dPtr.asFunction Function(Mat, int, int, Vec2d)>(); ffi.Pointer Mat_SetVec2f( Mat m, @@ -12488,12 +11234,11 @@ class CvNative { ); } - late final _Mat_SetVec2fPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec2f)>>('Mat_SetVec2f'); - late final _Mat_SetVec2f = _Mat_SetVec2fPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec2f)>(); + late final _Mat_SetVec2fPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec2f)>>( + 'Mat_SetVec2f'); + late final _Mat_SetVec2f = + _Mat_SetVec2fPtr.asFunction Function(Mat, int, int, Vec2f)>(); ffi.Pointer Mat_SetVec2i( Mat m, @@ -12509,12 +11254,11 @@ class CvNative { ); } - late final _Mat_SetVec2iPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec2i)>>('Mat_SetVec2i'); - late final _Mat_SetVec2i = _Mat_SetVec2iPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec2i)>(); + late final _Mat_SetVec2iPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec2i)>>( + 'Mat_SetVec2i'); + late final _Mat_SetVec2i = + _Mat_SetVec2iPtr.asFunction Function(Mat, int, int, Vec2i)>(); ffi.Pointer Mat_SetVec2s( Mat m, @@ -12530,12 +11274,11 @@ class CvNative { ); } - late final _Mat_SetVec2sPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec2s)>>('Mat_SetVec2s'); - late final _Mat_SetVec2s = _Mat_SetVec2sPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec2s)>(); + late final _Mat_SetVec2sPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec2s)>>( + 'Mat_SetVec2s'); + late final _Mat_SetVec2s = + _Mat_SetVec2sPtr.asFunction Function(Mat, int, int, Vec2s)>(); ffi.Pointer Mat_SetVec2w( Mat m, @@ -12551,12 +11294,11 @@ class CvNative { ); } - late final _Mat_SetVec2wPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec2w)>>('Mat_SetVec2w'); - late final _Mat_SetVec2w = _Mat_SetVec2wPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec2w)>(); + late final _Mat_SetVec2wPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec2w)>>( + 'Mat_SetVec2w'); + late final _Mat_SetVec2w = + _Mat_SetVec2wPtr.asFunction Function(Mat, int, int, Vec2w)>(); ffi.Pointer Mat_SetVec3b( Mat m, @@ -12572,12 +11314,11 @@ class CvNative { ); } - late final _Mat_SetVec3bPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec3b)>>('Mat_SetVec3b'); - late final _Mat_SetVec3b = _Mat_SetVec3bPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec3b)>(); + late final _Mat_SetVec3bPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec3b)>>( + 'Mat_SetVec3b'); + late final _Mat_SetVec3b = + _Mat_SetVec3bPtr.asFunction Function(Mat, int, int, Vec3b)>(); ffi.Pointer Mat_SetVec3d( Mat m, @@ -12593,12 +11334,11 @@ class CvNative { ); } - late final _Mat_SetVec3dPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec3d)>>('Mat_SetVec3d'); - late final _Mat_SetVec3d = _Mat_SetVec3dPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec3d)>(); + late final _Mat_SetVec3dPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec3d)>>( + 'Mat_SetVec3d'); + late final _Mat_SetVec3d = + _Mat_SetVec3dPtr.asFunction Function(Mat, int, int, Vec3d)>(); ffi.Pointer Mat_SetVec3f( Mat m, @@ -12614,12 +11354,11 @@ class CvNative { ); } - late final _Mat_SetVec3fPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec3f)>>('Mat_SetVec3f'); - late final _Mat_SetVec3f = _Mat_SetVec3fPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec3f)>(); + late final _Mat_SetVec3fPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec3f)>>( + 'Mat_SetVec3f'); + late final _Mat_SetVec3f = + _Mat_SetVec3fPtr.asFunction Function(Mat, int, int, Vec3f)>(); ffi.Pointer Mat_SetVec3i( Mat m, @@ -12635,12 +11374,11 @@ class CvNative { ); } - late final _Mat_SetVec3iPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec3i)>>('Mat_SetVec3i'); - late final _Mat_SetVec3i = _Mat_SetVec3iPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec3i)>(); + late final _Mat_SetVec3iPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec3i)>>( + 'Mat_SetVec3i'); + late final _Mat_SetVec3i = + _Mat_SetVec3iPtr.asFunction Function(Mat, int, int, Vec3i)>(); ffi.Pointer Mat_SetVec3s( Mat m, @@ -12656,12 +11394,11 @@ class CvNative { ); } - late final _Mat_SetVec3sPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec3s)>>('Mat_SetVec3s'); - late final _Mat_SetVec3s = _Mat_SetVec3sPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec3s)>(); + late final _Mat_SetVec3sPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec3s)>>( + 'Mat_SetVec3s'); + late final _Mat_SetVec3s = + _Mat_SetVec3sPtr.asFunction Function(Mat, int, int, Vec3s)>(); ffi.Pointer Mat_SetVec3w( Mat m, @@ -12677,12 +11414,11 @@ class CvNative { ); } - late final _Mat_SetVec3wPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec3w)>>('Mat_SetVec3w'); - late final _Mat_SetVec3w = _Mat_SetVec3wPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec3w)>(); + late final _Mat_SetVec3wPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec3w)>>( + 'Mat_SetVec3w'); + late final _Mat_SetVec3w = + _Mat_SetVec3wPtr.asFunction Function(Mat, int, int, Vec3w)>(); ffi.Pointer Mat_SetVec4b( Mat m, @@ -12698,12 +11434,11 @@ class CvNative { ); } - late final _Mat_SetVec4bPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec4b)>>('Mat_SetVec4b'); - late final _Mat_SetVec4b = _Mat_SetVec4bPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec4b)>(); + late final _Mat_SetVec4bPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec4b)>>( + 'Mat_SetVec4b'); + late final _Mat_SetVec4b = + _Mat_SetVec4bPtr.asFunction Function(Mat, int, int, Vec4b)>(); ffi.Pointer Mat_SetVec4d( Mat m, @@ -12719,12 +11454,11 @@ class CvNative { ); } - late final _Mat_SetVec4dPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec4d)>>('Mat_SetVec4d'); - late final _Mat_SetVec4d = _Mat_SetVec4dPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec4d)>(); + late final _Mat_SetVec4dPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec4d)>>( + 'Mat_SetVec4d'); + late final _Mat_SetVec4d = + _Mat_SetVec4dPtr.asFunction Function(Mat, int, int, Vec4d)>(); ffi.Pointer Mat_SetVec4f( Mat m, @@ -12740,12 +11474,11 @@ class CvNative { ); } - late final _Mat_SetVec4fPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec4f)>>('Mat_SetVec4f'); - late final _Mat_SetVec4f = _Mat_SetVec4fPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec4f)>(); + late final _Mat_SetVec4fPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec4f)>>( + 'Mat_SetVec4f'); + late final _Mat_SetVec4f = + _Mat_SetVec4fPtr.asFunction Function(Mat, int, int, Vec4f)>(); ffi.Pointer Mat_SetVec4i( Mat m, @@ -12761,12 +11494,11 @@ class CvNative { ); } - late final _Mat_SetVec4iPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec4i)>>('Mat_SetVec4i'); - late final _Mat_SetVec4i = _Mat_SetVec4iPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec4i)>(); + late final _Mat_SetVec4iPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec4i)>>( + 'Mat_SetVec4i'); + late final _Mat_SetVec4i = + _Mat_SetVec4iPtr.asFunction Function(Mat, int, int, Vec4i)>(); ffi.Pointer Mat_SetVec4s( Mat m, @@ -12782,12 +11514,11 @@ class CvNative { ); } - late final _Mat_SetVec4sPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec4s)>>('Mat_SetVec4s'); - late final _Mat_SetVec4s = _Mat_SetVec4sPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec4s)>(); + late final _Mat_SetVec4sPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec4s)>>( + 'Mat_SetVec4s'); + late final _Mat_SetVec4s = + _Mat_SetVec4sPtr.asFunction Function(Mat, int, int, Vec4s)>(); ffi.Pointer Mat_SetVec4w( Mat m, @@ -12803,12 +11534,11 @@ class CvNative { ); } - late final _Mat_SetVec4wPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec4w)>>('Mat_SetVec4w'); - late final _Mat_SetVec4w = _Mat_SetVec4wPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec4w)>(); + late final _Mat_SetVec4wPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec4w)>>( + 'Mat_SetVec4w'); + late final _Mat_SetVec4w = + _Mat_SetVec4wPtr.asFunction Function(Mat, int, int, Vec4w)>(); ffi.Pointer Mat_SetVec6d( Mat m, @@ -12824,12 +11554,11 @@ class CvNative { ); } - late final _Mat_SetVec6dPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec6d)>>('Mat_SetVec6d'); - late final _Mat_SetVec6d = _Mat_SetVec6dPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec6d)>(); + late final _Mat_SetVec6dPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec6d)>>( + 'Mat_SetVec6d'); + late final _Mat_SetVec6d = + _Mat_SetVec6dPtr.asFunction Function(Mat, int, int, Vec6d)>(); ffi.Pointer Mat_SetVec6f( Mat m, @@ -12845,12 +11574,11 @@ class CvNative { ); } - late final _Mat_SetVec6fPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec6f)>>('Mat_SetVec6f'); - late final _Mat_SetVec6f = _Mat_SetVec6fPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec6f)>(); + late final _Mat_SetVec6fPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec6f)>>( + 'Mat_SetVec6f'); + late final _Mat_SetVec6f = + _Mat_SetVec6fPtr.asFunction Function(Mat, int, int, Vec6f)>(); ffi.Pointer Mat_SetVec6i( Mat m, @@ -12866,12 +11594,11 @@ class CvNative { ); } - late final _Mat_SetVec6iPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec6i)>>('Mat_SetVec6i'); - late final _Mat_SetVec6i = _Mat_SetVec6iPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec6i)>(); + late final _Mat_SetVec6iPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec6i)>>( + 'Mat_SetVec6i'); + late final _Mat_SetVec6i = + _Mat_SetVec6iPtr.asFunction Function(Mat, int, int, Vec6i)>(); ffi.Pointer Mat_SetVec8i( Mat m, @@ -12887,12 +11614,11 @@ class CvNative { ); } - late final _Mat_SetVec8iPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, Vec8i)>>('Mat_SetVec8i'); - late final _Mat_SetVec8i = _Mat_SetVec8iPtr.asFunction< - ffi.Pointer Function(Mat, int, int, Vec8i)>(); + late final _Mat_SetVec8iPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, Vec8i)>>( + 'Mat_SetVec8i'); + late final _Mat_SetVec8i = + _Mat_SetVec8iPtr.asFunction Function(Mat, int, int, Vec8i)>(); ffi.Pointer Mat_Size( Mat m, @@ -12904,12 +11630,9 @@ class CvNative { ); } - late final _Mat_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_Size'); - late final _Mat_Size = _Mat_SizePtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_SizePtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Size'); + late final _Mat_Size = _Mat_SizePtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Solve( Mat src1, @@ -12928,12 +11651,10 @@ class CvNative { } late final _Mat_SolvePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Int, ffi.Pointer)>>('Mat_Solve'); - late final _Mat_Solve = _Mat_SolvePtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Mat, int, ffi.Pointer)>(); + ffi.NativeFunction Function(Mat, Mat, Mat, ffi.Int, ffi.Pointer)>>( + 'Mat_Solve'); + late final _Mat_Solve = + _Mat_SolvePtr.asFunction Function(Mat, Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer Mat_SolveCubic( Mat coeffs, @@ -12947,12 +11668,11 @@ class CvNative { ); } - late final _Mat_SolveCubicPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Pointer)>>('Mat_SolveCubic'); - late final _Mat_SolveCubic = _Mat_SolveCubicPtr.asFunction< - ffi.Pointer Function(Mat, Mat, ffi.Pointer)>(); + late final _Mat_SolveCubicPtr = + _lookup Function(Mat, Mat, ffi.Pointer)>>( + 'Mat_SolveCubic'); + late final _Mat_SolveCubic = + _Mat_SolveCubicPtr.asFunction Function(Mat, Mat, ffi.Pointer)>(); ffi.Pointer Mat_SolvePoly( Mat coeffs, @@ -12968,12 +11688,11 @@ class CvNative { ); } - late final _Mat_SolvePolyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Pointer)>>('Mat_SolvePoly'); - late final _Mat_SolvePoly = _Mat_SolvePolyPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, ffi.Pointer)>(); + late final _Mat_SolvePolyPtr = + _lookup Function(Mat, Mat, ffi.Int, ffi.Pointer)>>( + 'Mat_SolvePoly'); + late final _Mat_SolvePoly = + _Mat_SolvePolyPtr.asFunction Function(Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer Mat_Sort( Mat src, @@ -12987,11 +11706,9 @@ class CvNative { ); } - late final _Mat_SortPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_Sort'); - late final _Mat_Sort = - _Mat_SortPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_SortPtr = + _lookup Function(Mat, Mat, ffi.Int)>>('Mat_Sort'); + late final _Mat_Sort = _Mat_SortPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_SortIdx( Mat src, @@ -13005,11 +11722,9 @@ class CvNative { ); } - late final _Mat_SortIdxPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_SortIdx'); - late final _Mat_SortIdx = _Mat_SortIdxPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int)>(); + late final _Mat_SortIdxPtr = + _lookup Function(Mat, Mat, ffi.Int)>>('Mat_SortIdx'); + late final _Mat_SortIdx = _Mat_SortIdxPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_Split( Mat src, @@ -13021,12 +11736,10 @@ class CvNative { ); } - late final _Mat_SplitPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_Split'); - late final _Mat_Split = _Mat_SplitPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_SplitPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Split'); + late final _Mat_Split = + _Mat_SplitPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Sqrt( Mat m, @@ -13038,11 +11751,9 @@ class CvNative { ); } - late final _Mat_SqrtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>>('Mat_Sqrt'); - late final _Mat_Sqrt = _Mat_SqrtPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_SqrtPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Sqrt'); + late final _Mat_Sqrt = _Mat_SqrtPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Step( Mat m, @@ -13054,12 +11765,9 @@ class CvNative { ); } - late final _Mat_StepPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_Step'); - late final _Mat_Step = _Mat_StepPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_StepPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Step'); + late final _Mat_Step = _Mat_StepPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Subtract( Mat src1, @@ -13073,11 +11781,9 @@ class CvNative { ); } - late final _Mat_SubtractPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_Subtract'); - late final _Mat_Subtract = _Mat_SubtractPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_SubtractPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_Subtract'); + late final _Mat_Subtract = _Mat_SubtractPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_SubtractF64( Mat m, @@ -13089,11 +11795,9 @@ class CvNative { ); } - late final _Mat_SubtractF64Ptr = _lookup< - ffi.NativeFunction Function(Mat, double_t)>>( - 'Mat_SubtractF64'); - late final _Mat_SubtractF64 = _Mat_SubtractF64Ptr.asFunction< - ffi.Pointer Function(Mat, double)>(); + late final _Mat_SubtractF64Ptr = + _lookup Function(Mat, double_t)>>('Mat_SubtractF64'); + late final _Mat_SubtractF64 = _Mat_SubtractF64Ptr.asFunction Function(Mat, double)>(); ffi.Pointer Mat_SubtractFloat( Mat m, @@ -13106,10 +11810,9 @@ class CvNative { } late final _Mat_SubtractFloatPtr = - _lookup Function(Mat, float_t)>>( - 'Mat_SubtractFloat'); - late final _Mat_SubtractFloat = _Mat_SubtractFloatPtr.asFunction< - ffi.Pointer Function(Mat, double)>(); + _lookup Function(Mat, float_t)>>('Mat_SubtractFloat'); + late final _Mat_SubtractFloat = + _Mat_SubtractFloatPtr.asFunction Function(Mat, double)>(); ffi.Pointer Mat_SubtractI32( Mat m, @@ -13121,11 +11824,9 @@ class CvNative { ); } - late final _Mat_SubtractI32Ptr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int32)>>( - 'Mat_SubtractI32'); - late final _Mat_SubtractI32 = _Mat_SubtractI32Ptr.asFunction< - ffi.Pointer Function(Mat, int)>(); + late final _Mat_SubtractI32Ptr = + _lookup Function(Mat, ffi.Int32)>>('Mat_SubtractI32'); + late final _Mat_SubtractI32 = _Mat_SubtractI32Ptr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_SubtractSChar( Mat m, @@ -13137,11 +11838,10 @@ class CvNative { ); } - late final _Mat_SubtractSCharPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int8)>>( - 'Mat_SubtractSChar'); - late final _Mat_SubtractSChar = _Mat_SubtractSCharPtr.asFunction< - ffi.Pointer Function(Mat, int)>(); + late final _Mat_SubtractSCharPtr = + _lookup Function(Mat, ffi.Int8)>>('Mat_SubtractSChar'); + late final _Mat_SubtractSChar = + _Mat_SubtractSCharPtr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_SubtractUChar( Mat m, @@ -13153,11 +11853,10 @@ class CvNative { ); } - late final _Mat_SubtractUCharPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Uint8)>>( - 'Mat_SubtractUChar'); - late final _Mat_SubtractUChar = _Mat_SubtractUCharPtr.asFunction< - ffi.Pointer Function(Mat, int)>(); + late final _Mat_SubtractUCharPtr = + _lookup Function(Mat, ffi.Uint8)>>('Mat_SubtractUChar'); + late final _Mat_SubtractUChar = + _Mat_SubtractUCharPtr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_Sum( Mat src, @@ -13169,11 +11868,9 @@ class CvNative { ); } - late final _Mat_SumPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>>('Mat_Sum'); - late final _Mat_Sum = _Mat_SumPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_SumPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Sum'); + late final _Mat_Sum = _Mat_SumPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_T( Mat x, @@ -13185,11 +11882,9 @@ class CvNative { ); } - late final _Mat_TPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>>('Mat_T'); - late final _Mat_T = _Mat_TPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_TPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_T'); + late final _Mat_T = _Mat_TPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_ToVecChar( Mat m, @@ -13201,12 +11896,10 @@ class CvNative { ); } - late final _Mat_ToVecCharPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_ToVecChar'); - late final _Mat_ToVecChar = _Mat_ToVecCharPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_ToVecCharPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_ToVecChar'); + late final _Mat_ToVecChar = + _Mat_ToVecCharPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_ToVecUChar( Mat m, @@ -13218,12 +11911,11 @@ class CvNative { ); } - late final _Mat_ToVecUCharPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_ToVecUChar'); - late final _Mat_ToVecUChar = _Mat_ToVecUCharPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_ToVecUCharPtr = + _lookup Function(Mat, ffi.Pointer)>>( + 'Mat_ToVecUChar'); + late final _Mat_ToVecUChar = + _Mat_ToVecUCharPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Total( Mat m, @@ -13235,12 +11927,10 @@ class CvNative { ); } - late final _Mat_TotalPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_Total'); - late final _Mat_Total = _Mat_TotalPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_TotalPtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Total'); + late final _Mat_Total = + _Mat_TotalPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Trace( Mat src, @@ -13252,12 +11942,10 @@ class CvNative { ); } - late final _Mat_TracePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_Trace'); - late final _Mat_Trace = _Mat_TracePtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_TracePtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Trace'); + late final _Mat_Trace = + _Mat_TracePtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Transform( Mat src, @@ -13271,11 +11959,9 @@ class CvNative { ); } - late final _Mat_TransformPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_Transform'); - late final _Mat_Transform = _Mat_TransformPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_TransformPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_Transform'); + late final _Mat_Transform = _Mat_TransformPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_Transpose( Mat src, @@ -13288,10 +11974,8 @@ class CvNative { } late final _Mat_TransposePtr = - _lookup Function(Mat, Mat)>>( - 'Mat_Transpose'); - late final _Mat_Transpose = - _Mat_TransposePtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('Mat_Transpose'); + late final _Mat_Transpose = _Mat_TransposePtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_Type( Mat m, @@ -13303,12 +11987,9 @@ class CvNative { ); } - late final _Mat_TypePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Mat_Type'); - late final _Mat_Type = _Mat_TypePtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Mat_TypePtr = + _lookup Function(Mat, ffi.Pointer)>>('Mat_Type'); + late final _Mat_Type = _Mat_TypePtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Vconcat( Mat src1, @@ -13322,11 +12003,9 @@ class CvNative { ); } - late final _Mat_VconcatPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat)>>( - 'Mat_Vconcat'); - late final _Mat_Vconcat = _Mat_VconcatPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat)>(); + late final _Mat_VconcatPtr = + _lookup Function(Mat, Mat, Mat)>>('Mat_Vconcat'); + late final _Mat_Vconcat = _Mat_VconcatPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_colRange( Mat m, @@ -13342,12 +12021,11 @@ class CvNative { ); } - late final _Mat_colRangePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_colRange'); - late final _Mat_colRange = _Mat_colRangePtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_colRangePtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_colRange'); + late final _Mat_colRange = + _Mat_colRangePtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_rowRange( Mat m, @@ -13363,12 +12041,11 @@ class CvNative { ); } - late final _Mat_rowRangePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_rowRange'); - late final _Mat_rowRange = _Mat_rowRangePtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_rowRangePtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Mat_rowRange'); + late final _Mat_rowRange = + _Mat_rowRangePtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer MatchShapes( VecPoint contour1, @@ -13388,11 +12065,10 @@ class CvNative { late final _MatchShapesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecPoint, VecPoint, ffi.Int, - ffi.Double, ffi.Pointer)>>('MatchShapes'); + ffi.Pointer Function( + VecPoint, VecPoint, ffi.Int, ffi.Double, ffi.Pointer)>>('MatchShapes'); late final _MatchShapes = _MatchShapesPtr.asFunction< - ffi.Pointer Function( - VecPoint, VecPoint, int, double, ffi.Pointer)>(); + ffi.Pointer Function(VecPoint, VecPoint, int, double, ffi.Pointer)>(); ffi.Pointer MatchTemplate( Mat image, @@ -13410,12 +12086,11 @@ class CvNative { ); } - late final _MatchTemplatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Int, Mat)>>('MatchTemplate'); - late final _MatchTemplate = _MatchTemplatePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, int, Mat)>(); + late final _MatchTemplatePtr = + _lookup Function(Mat, Mat, Mat, ffi.Int, Mat)>>( + 'MatchTemplate'); + late final _MatchTemplate = + _MatchTemplatePtr.asFunction Function(Mat, Mat, Mat, int, Mat)>(); ffi.Pointer MedianBlur( Mat src, @@ -13429,11 +12104,9 @@ class CvNative { ); } - late final _MedianBlurPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int)>>('MedianBlur'); - late final _MedianBlur = _MedianBlurPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int)>(); + late final _MedianBlurPtr = + _lookup Function(Mat, Mat, ffi.Int)>>('MedianBlur'); + late final _MedianBlur = _MedianBlurPtr.asFunction Function(Mat, Mat, int)>(); void MergeMertens_Close( MergeMertensPtr b, @@ -13444,10 +12117,8 @@ class CvNative { } late final _MergeMertens_ClosePtr = - _lookup>( - 'MergeMertens_Close'); - late final _MergeMertens_Close = - _MergeMertens_ClosePtr.asFunction(); + _lookup>('MergeMertens_Close'); + late final _MergeMertens_Close = _MergeMertens_ClosePtr.asFunction(); ffi.Pointer MergeMertens_Create( ffi.Pointer rval, @@ -13457,12 +12128,11 @@ class CvNative { ); } - late final _MergeMertens_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('MergeMertens_Create'); - late final _MergeMertens_Create = _MergeMertens_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _MergeMertens_CreatePtr = + _lookup Function(ffi.Pointer)>>( + 'MergeMertens_Create'); + late final _MergeMertens_Create = + _MergeMertens_CreatePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer MergeMertens_CreateWithParams( double contrast_weight, @@ -13480,12 +12150,10 @@ class CvNative { late final _MergeMertens_CreateWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Float, ffi.Float, ffi.Float, - ffi.Pointer)>>('MergeMertens_CreateWithParams'); - late final _MergeMertens_CreateWithParams = - _MergeMertens_CreateWithParamsPtr.asFunction< ffi.Pointer Function( - double, double, double, ffi.Pointer)>(); + ffi.Float, ffi.Float, ffi.Float, ffi.Pointer)>>('MergeMertens_CreateWithParams'); + late final _MergeMertens_CreateWithParams = _MergeMertens_CreateWithParamsPtr.asFunction< + ffi.Pointer Function(double, double, double, ffi.Pointer)>(); ffi.Pointer MergeMertens_Process( MergeMertens b, @@ -13499,12 +12167,11 @@ class CvNative { ); } - late final _MergeMertens_ProcessPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - MergeMertens, VecMat, Mat)>>('MergeMertens_Process'); - late final _MergeMertens_Process = _MergeMertens_ProcessPtr.asFunction< - ffi.Pointer Function(MergeMertens, VecMat, Mat)>(); + late final _MergeMertens_ProcessPtr = + _lookup Function(MergeMertens, VecMat, Mat)>>( + 'MergeMertens_Process'); + late final _MergeMertens_Process = + _MergeMertens_ProcessPtr.asFunction Function(MergeMertens, VecMat, Mat)>(); ffi.Pointer MinAreaRect( VecPoint pts, @@ -13516,12 +12183,11 @@ class CvNative { ); } - late final _MinAreaRectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('MinAreaRect'); - late final _MinAreaRect = _MinAreaRectPtr.asFunction< - ffi.Pointer Function(VecPoint, ffi.Pointer)>(); + late final _MinAreaRectPtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'MinAreaRect'); + late final _MinAreaRect = + _MinAreaRectPtr.asFunction Function(VecPoint, ffi.Pointer)>(); ffi.Pointer MinEnclosingCircle( VecPoint pts, @@ -13537,11 +12203,10 @@ class CvNative { late final _MinEnclosingCirclePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecPoint, ffi.Pointer, - ffi.Pointer)>>('MinEnclosingCircle'); + ffi.Pointer Function( + VecPoint, ffi.Pointer, ffi.Pointer)>>('MinEnclosingCircle'); late final _MinEnclosingCircle = _MinEnclosingCirclePtr.asFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(VecPoint, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Moments( Mat src, @@ -13555,12 +12220,11 @@ class CvNative { ); } - late final _MomentsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Bool, ffi.Pointer)>>('Moments'); - late final _Moments = _MomentsPtr.asFunction< - ffi.Pointer Function(Mat, bool, ffi.Pointer)>(); + late final _MomentsPtr = + _lookup Function(Mat, ffi.Bool, ffi.Pointer)>>( + 'Moments'); + late final _Moments = + _MomentsPtr.asFunction Function(Mat, bool, ffi.Pointer)>(); ffi.Pointer MorphologyDefaultBorderValue( ffi.Pointer rval, @@ -13570,12 +12234,11 @@ class CvNative { ); } - late final _MorphologyDefaultBorderValuePtr = _lookup< - ffi - .NativeFunction Function(ffi.Pointer)>>( - 'MorphologyDefaultBorderValue'); - late final _MorphologyDefaultBorderValue = _MorphologyDefaultBorderValuePtr - .asFunction Function(ffi.Pointer)>(); + late final _MorphologyDefaultBorderValuePtr = + _lookup Function(ffi.Pointer)>>( + 'MorphologyDefaultBorderValue'); + late final _MorphologyDefaultBorderValue = + _MorphologyDefaultBorderValuePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer MorphologyEx( Mat src, @@ -13591,12 +12254,10 @@ class CvNative { ); } - late final _MorphologyExPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, Mat)>>('MorphologyEx'); - late final _MorphologyEx = _MorphologyExPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, Mat)>(); + late final _MorphologyExPtr = + _lookup Function(Mat, Mat, ffi.Int, Mat)>>('MorphologyEx'); + late final _MorphologyEx = + _MorphologyExPtr.asFunction Function(Mat, Mat, int, Mat)>(); ffi.Pointer MorphologyExWithParams( Mat src, @@ -13622,11 +12283,10 @@ class CvNative { late final _MorphologyExWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, Mat, Point, ffi.Int, - ffi.Int, Scalar)>>('MorphologyExWithParams'); + ffi.Pointer Function( + Mat, Mat, ffi.Int, Mat, Point, ffi.Int, ffi.Int, Scalar)>>('MorphologyExWithParams'); late final _MorphologyExWithParams = _MorphologyExWithParamsPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, int, Mat, Point, int, int, Scalar)>(); + ffi.Pointer Function(Mat, Mat, int, Mat, Point, int, int, Scalar)>(); ffi.Pointer NMSBoxes( VecRect bboxes, @@ -13646,11 +12306,10 @@ class CvNative { late final _NMSBoxesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecRect, VecFloat, ffi.Float, - ffi.Float, ffi.Pointer)>>('NMSBoxes'); + ffi.Pointer Function( + VecRect, VecFloat, ffi.Float, ffi.Float, ffi.Pointer)>>('NMSBoxes'); late final _NMSBoxes = _NMSBoxesPtr.asFunction< - ffi.Pointer Function( - VecRect, VecFloat, double, double, ffi.Pointer)>(); + ffi.Pointer Function(VecRect, VecFloat, double, double, ffi.Pointer)>(); ffi.Pointer NMSBoxesWithParams( VecRect bboxes, @@ -13674,17 +12333,10 @@ class CvNative { late final _NMSBoxesWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecRect, - VecFloat, - ffi.Float, - ffi.Float, - ffi.Pointer, - ffi.Float, - ffi.Int)>>('NMSBoxesWithParams'); + ffi.Pointer Function(VecRect, VecFloat, ffi.Float, ffi.Float, ffi.Pointer, + ffi.Float, ffi.Int)>>('NMSBoxesWithParams'); late final _NMSBoxesWithParams = _NMSBoxesWithParamsPtr.asFunction< - ffi.Pointer Function(VecRect, VecFloat, double, double, - ffi.Pointer, double, int)>(); + ffi.Pointer Function(VecRect, VecFloat, double, double, ffi.Pointer, double, int)>(); ffi.Pointer NMSBoxesWithParams_Async( VecRect bboxes, @@ -13708,18 +12360,10 @@ class CvNative { late final _NMSBoxesWithParams_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecRect, - VecFloat, - ffi.Float, - ffi.Float, - ffi.Float, - ffi.Int, + ffi.Pointer Function(VecRect, VecFloat, ffi.Float, ffi.Float, ffi.Float, ffi.Int, CvCallback_1)>>('NMSBoxesWithParams_Async'); - late final _NMSBoxesWithParams_Async = - _NMSBoxesWithParams_AsyncPtr.asFunction< - ffi.Pointer Function( - VecRect, VecFloat, double, double, double, int, CvCallback_1)>(); + late final _NMSBoxesWithParams_Async = _NMSBoxesWithParams_AsyncPtr.asFunction< + ffi.Pointer Function(VecRect, VecFloat, double, double, double, int, CvCallback_1)>(); ffi.Pointer NMSBoxes_Async( VecRect bboxes, @@ -13739,11 +12383,10 @@ class CvNative { late final _NMSBoxes_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecRect, VecFloat, ffi.Float, - ffi.Float, CvCallback_1)>>('NMSBoxes_Async'); + ffi.Pointer Function( + VecRect, VecFloat, ffi.Float, ffi.Float, CvCallback_1)>>('NMSBoxes_Async'); late final _NMSBoxes_Async = _NMSBoxes_AsyncPtr.asFunction< - ffi.Pointer Function( - VecRect, VecFloat, double, double, CvCallback_1)>(); + ffi.Pointer Function(VecRect, VecFloat, double, double, CvCallback_1)>(); ffi.Pointer Net_BlobFromImage( Mat image, @@ -13769,11 +12412,10 @@ class CvNative { late final _Net_BlobFromImagePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Double, Size, Scalar, - ffi.Bool, ffi.Bool, ffi.Int)>>('Net_BlobFromImage'); + ffi.Pointer Function( + Mat, Mat, ffi.Double, Size, Scalar, ffi.Bool, ffi.Bool, ffi.Int)>>('Net_BlobFromImage'); late final _Net_BlobFromImage = _Net_BlobFromImagePtr.asFunction< - ffi.Pointer Function( - Mat, Mat, double, Size, Scalar, bool, bool, int)>(); + ffi.Pointer Function(Mat, Mat, double, Size, Scalar, bool, bool, int)>(); ffi.Pointer Net_BlobFromImage_Async( Mat image, @@ -13799,18 +12441,10 @@ class CvNative { late final _Net_BlobFromImage_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - ffi.Double, - Size, - Scalar, - ffi.Bool, - ffi.Bool, - ffi.Int, + ffi.Pointer Function(Mat, ffi.Double, Size, Scalar, ffi.Bool, ffi.Bool, ffi.Int, CvCallback_1)>>('Net_BlobFromImage_Async'); late final _Net_BlobFromImage_Async = _Net_BlobFromImage_AsyncPtr.asFunction< - ffi.Pointer Function( - Mat, double, Size, Scalar, bool, bool, int, CvCallback_1)>(); + ffi.Pointer Function(Mat, double, Size, Scalar, bool, bool, int, CvCallback_1)>(); ffi.Pointer Net_BlobFromImages( VecMat images, @@ -13836,11 +12470,10 @@ class CvNative { late final _Net_BlobFromImagesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecMat, Mat, ffi.Double, Size, Scalar, - ffi.Bool, ffi.Bool, ffi.Int)>>('Net_BlobFromImages'); + ffi.Pointer Function( + VecMat, Mat, ffi.Double, Size, Scalar, ffi.Bool, ffi.Bool, ffi.Int)>>('Net_BlobFromImages'); late final _Net_BlobFromImages = _Net_BlobFromImagesPtr.asFunction< - ffi.Pointer Function( - VecMat, Mat, double, Size, Scalar, bool, bool, int)>(); + ffi.Pointer Function(VecMat, Mat, double, Size, Scalar, bool, bool, int)>(); ffi.Pointer Net_BlobFromImages_Async( VecMat images, @@ -13866,19 +12499,10 @@ class CvNative { late final _Net_BlobFromImages_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecMat, - ffi.Double, - Size, - Scalar, - ffi.Bool, - ffi.Bool, - ffi.Int, + ffi.Pointer Function(VecMat, ffi.Double, Size, Scalar, ffi.Bool, ffi.Bool, ffi.Int, CvCallback_1)>>('Net_BlobFromImages_Async'); - late final _Net_BlobFromImages_Async = - _Net_BlobFromImages_AsyncPtr.asFunction< - ffi.Pointer Function( - VecMat, double, Size, Scalar, bool, bool, int, CvCallback_1)>(); + late final _Net_BlobFromImages_Async = _Net_BlobFromImages_AsyncPtr.asFunction< + ffi.Pointer Function(VecMat, double, Size, Scalar, bool, bool, int, CvCallback_1)>(); void Net_Close( NetPtr net, @@ -13888,8 +12512,7 @@ class CvNative { ); } - late final _Net_ClosePtr = - _lookup>('Net_Close'); + late final _Net_ClosePtr = _lookup>('Net_Close'); late final _Net_Close = _Net_ClosePtr.asFunction(); void Net_Close_Async( @@ -13903,10 +12526,8 @@ class CvNative { } late final _Net_Close_AsyncPtr = - _lookup>( - 'Net_Close_Async'); - late final _Net_Close_Async = - _Net_Close_AsyncPtr.asFunction(); + _lookup>('Net_Close_Async'); + late final _Net_Close_Async = _Net_Close_AsyncPtr.asFunction(); ffi.Pointer Net_Create( ffi.Pointer rval, @@ -13916,11 +12537,9 @@ class CvNative { ); } - late final _Net_CreatePtr = _lookup< - ffi.NativeFunction Function(ffi.Pointer)>>( - 'Net_Create'); - late final _Net_Create = _Net_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _Net_CreatePtr = + _lookup Function(ffi.Pointer)>>('Net_Create'); + late final _Net_Create = _Net_CreatePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer Net_Create_Async( CvCallback_1 callback, @@ -13931,10 +12550,9 @@ class CvNative { } late final _Net_Create_AsyncPtr = - _lookup Function(CvCallback_1)>>( - 'Net_Create_Async'); - late final _Net_Create_Async = _Net_Create_AsyncPtr.asFunction< - ffi.Pointer Function(CvCallback_1)>(); + _lookup Function(CvCallback_1)>>('Net_Create_Async'); + late final _Net_Create_Async = + _Net_Create_AsyncPtr.asFunction Function(CvCallback_1)>(); ffi.Pointer Net_Dump( Net net, @@ -13946,13 +12564,11 @@ class CvNative { ); } - late final _Net_DumpPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Pointer>)>>('Net_Dump'); - late final _Net_Dump = _Net_DumpPtr.asFunction< - ffi.Pointer Function( - Net, ffi.Pointer>)>(); + late final _Net_DumpPtr = + _lookup Function(Net, ffi.Pointer>)>>( + 'Net_Dump'); + late final _Net_Dump = + _Net_DumpPtr.asFunction Function(Net, ffi.Pointer>)>(); ffi.Pointer Net_Dump_Async( Net net, @@ -13964,11 +12580,10 @@ class CvNative { ); } - late final _Net_Dump_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Net, CvCallback_1)>>('Net_Dump_Async'); - late final _Net_Dump_Async = _Net_Dump_AsyncPtr.asFunction< - ffi.Pointer Function(Net, CvCallback_1)>(); + late final _Net_Dump_AsyncPtr = + _lookup Function(Net, CvCallback_1)>>('Net_Dump_Async'); + late final _Net_Dump_Async = + _Net_Dump_AsyncPtr.asFunction Function(Net, CvCallback_1)>(); ffi.Pointer Net_Empty( Net net, @@ -13980,12 +12595,10 @@ class CvNative { ); } - late final _Net_EmptyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Pointer)>>('Net_Empty'); - late final _Net_Empty = _Net_EmptyPtr.asFunction< - ffi.Pointer Function(Net, ffi.Pointer)>(); + late final _Net_EmptyPtr = + _lookup Function(Net, ffi.Pointer)>>('Net_Empty'); + late final _Net_Empty = + _Net_EmptyPtr.asFunction Function(Net, ffi.Pointer)>(); ffi.Pointer Net_Empty_Async( Net net, @@ -13997,12 +12610,10 @@ class CvNative { ); } - late final _Net_Empty_AsyncPtr = _lookup< - ffi - .NativeFunction Function(Net, CvCallback_1)>>( - 'Net_Empty_Async'); - late final _Net_Empty_Async = _Net_Empty_AsyncPtr.asFunction< - ffi.Pointer Function(Net, CvCallback_1)>(); + late final _Net_Empty_AsyncPtr = + _lookup Function(Net, CvCallback_1)>>('Net_Empty_Async'); + late final _Net_Empty_Async = + _Net_Empty_AsyncPtr.asFunction Function(Net, CvCallback_1)>(); ffi.Pointer Net_Forward( Net net, @@ -14017,12 +12628,10 @@ class CvNative { } late final _Net_ForwardPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Pointer, ffi.Pointer)>>('Net_Forward'); + ffi.NativeFunction Function(Net, ffi.Pointer, ffi.Pointer)>>( + 'Net_Forward'); late final _Net_Forward = _Net_ForwardPtr.asFunction< - ffi.Pointer Function( - Net, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(Net, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_ForwardLayers( Net net, @@ -14036,10 +12645,9 @@ class CvNative { ); } - late final _Net_ForwardLayersPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Pointer, VecVecChar)>>('Net_ForwardLayers'); + late final _Net_ForwardLayersPtr = + _lookup Function(Net, ffi.Pointer, VecVecChar)>>( + 'Net_ForwardLayers'); late final _Net_ForwardLayers = _Net_ForwardLayersPtr.asFunction< ffi.Pointer Function(Net, ffi.Pointer, VecVecChar)>(); @@ -14055,12 +12663,11 @@ class CvNative { ); } - late final _Net_ForwardLayers_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, VecVecChar, CvCallback_1)>>('Net_ForwardLayers_Async'); - late final _Net_ForwardLayers_Async = _Net_ForwardLayers_AsyncPtr.asFunction< - ffi.Pointer Function(Net, VecVecChar, CvCallback_1)>(); + late final _Net_ForwardLayers_AsyncPtr = + _lookup Function(Net, VecVecChar, CvCallback_1)>>( + 'Net_ForwardLayers_Async'); + late final _Net_ForwardLayers_Async = + _Net_ForwardLayers_AsyncPtr.asFunction Function(Net, VecVecChar, CvCallback_1)>(); ffi.Pointer Net_Forward_Async( Net net, @@ -14074,13 +12681,11 @@ class CvNative { ); } - late final _Net_Forward_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Pointer, CvCallback_1)>>('Net_Forward_Async'); + late final _Net_Forward_AsyncPtr = + _lookup Function(Net, ffi.Pointer, CvCallback_1)>>( + 'Net_Forward_Async'); late final _Net_Forward_Async = _Net_Forward_AsyncPtr.asFunction< - ffi.Pointer Function( - Net, ffi.Pointer, CvCallback_1)>(); + ffi.Pointer Function(Net, ffi.Pointer, CvCallback_1)>(); ffi.Pointer Net_FromNet( Net net, @@ -14092,12 +12697,10 @@ class CvNative { ); } - late final _Net_FromNetPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Pointer)>>('Net_FromNet'); - late final _Net_FromNet = _Net_FromNetPtr.asFunction< - ffi.Pointer Function(Net, ffi.Pointer)>(); + late final _Net_FromNetPtr = + _lookup Function(Net, ffi.Pointer)>>('Net_FromNet'); + late final _Net_FromNet = + _Net_FromNetPtr.asFunction Function(Net, ffi.Pointer)>(); ffi.Pointer Net_FromNet_Async( Net net, @@ -14109,12 +12712,10 @@ class CvNative { ); } - late final _Net_FromNet_AsyncPtr = _lookup< - ffi - .NativeFunction Function(Net, CvCallback_1)>>( - 'Net_FromNet_Async'); - late final _Net_FromNet_Async = _Net_FromNet_AsyncPtr.asFunction< - ffi.Pointer Function(Net, CvCallback_1)>(); + late final _Net_FromNet_AsyncPtr = + _lookup Function(Net, CvCallback_1)>>('Net_FromNet_Async'); + late final _Net_FromNet_Async = + _Net_FromNet_AsyncPtr.asFunction Function(Net, CvCallback_1)>(); ffi.Pointer Net_GetBlobChannel( Mat blob, @@ -14130,12 +12731,11 @@ class CvNative { ); } - late final _Net_GetBlobChannelPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Net_GetBlobChannel'); - late final _Net_GetBlobChannel = _Net_GetBlobChannelPtr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); + late final _Net_GetBlobChannelPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Net_GetBlobChannel'); + late final _Net_GetBlobChannel = + _Net_GetBlobChannelPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Net_GetBlobChannel_Async( Mat blob, @@ -14151,13 +12751,11 @@ class CvNative { ); } - late final _Net_GetBlobChannel_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Int, - CvCallback_1)>>('Net_GetBlobChannel_Async'); + late final _Net_GetBlobChannel_AsyncPtr = + _lookup Function(Mat, ffi.Int, ffi.Int, CvCallback_1)>>( + 'Net_GetBlobChannel_Async'); late final _Net_GetBlobChannel_Async = - _Net_GetBlobChannel_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, int, int, CvCallback_1)>(); + _Net_GetBlobChannel_AsyncPtr.asFunction Function(Mat, int, int, CvCallback_1)>(); ffi.Pointer Net_GetBlobSize( Mat blob, @@ -14169,12 +12767,11 @@ class CvNative { ); } - late final _Net_GetBlobSizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Net_GetBlobSize'); - late final _Net_GetBlobSize = _Net_GetBlobSizePtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Net_GetBlobSizePtr = + _lookup Function(Mat, ffi.Pointer)>>( + 'Net_GetBlobSize'); + late final _Net_GetBlobSize = + _Net_GetBlobSizePtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Net_GetBlobSize_Async( Mat blob, @@ -14186,12 +12783,10 @@ class CvNative { ); } - late final _Net_GetBlobSize_AsyncPtr = _lookup< - ffi - .NativeFunction Function(Mat, CvCallback_1)>>( - 'Net_GetBlobSize_Async'); - late final _Net_GetBlobSize_Async = _Net_GetBlobSize_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, CvCallback_1)>(); + late final _Net_GetBlobSize_AsyncPtr = + _lookup Function(Mat, CvCallback_1)>>('Net_GetBlobSize_Async'); + late final _Net_GetBlobSize_Async = + _Net_GetBlobSize_AsyncPtr.asFunction Function(Mat, CvCallback_1)>(); ffi.Pointer Net_GetInputDetails( Net net, @@ -14206,12 +12801,11 @@ class CvNative { } late final _Net_GetInputDetailsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Net, ffi.Pointer, - ffi.Pointer)>>('Net_GetInputDetails'); + ffi + .NativeFunction Function(Net, ffi.Pointer, ffi.Pointer)>>( + 'Net_GetInputDetails'); late final _Net_GetInputDetails = _Net_GetInputDetailsPtr.asFunction< - ffi.Pointer Function( - Net, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(Net, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_GetInputDetails_Async( Net net, @@ -14223,12 +12817,11 @@ class CvNative { ); } - late final _Net_GetInputDetails_AsyncPtr = _lookup< - ffi - .NativeFunction Function(Net, CvCallback_2)>>( - 'Net_GetInputDetails_Async'); - late final _Net_GetInputDetails_Async = _Net_GetInputDetails_AsyncPtr - .asFunction Function(Net, CvCallback_2)>(); + late final _Net_GetInputDetails_AsyncPtr = + _lookup Function(Net, CvCallback_2)>>( + 'Net_GetInputDetails_Async'); + late final _Net_GetInputDetails_Async = + _Net_GetInputDetails_AsyncPtr.asFunction Function(Net, CvCallback_2)>(); ffi.Pointer Net_GetLayer( Net net, @@ -14242,12 +12835,11 @@ class CvNative { ); } - late final _Net_GetLayerPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Int, ffi.Pointer)>>('Net_GetLayer'); - late final _Net_GetLayer = _Net_GetLayerPtr.asFunction< - ffi.Pointer Function(Net, int, ffi.Pointer)>(); + late final _Net_GetLayerPtr = + _lookup Function(Net, ffi.Int, ffi.Pointer)>>( + 'Net_GetLayer'); + late final _Net_GetLayer = + _Net_GetLayerPtr.asFunction Function(Net, int, ffi.Pointer)>(); ffi.Pointer Net_GetLayerNames( Net net, @@ -14259,12 +12851,11 @@ class CvNative { ); } - late final _Net_GetLayerNamesPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Pointer)>>('Net_GetLayerNames'); - late final _Net_GetLayerNames = _Net_GetLayerNamesPtr.asFunction< - ffi.Pointer Function(Net, ffi.Pointer)>(); + late final _Net_GetLayerNamesPtr = + _lookup Function(Net, ffi.Pointer)>>( + 'Net_GetLayerNames'); + late final _Net_GetLayerNames = + _Net_GetLayerNamesPtr.asFunction Function(Net, ffi.Pointer)>(); ffi.Pointer Net_GetLayerNames_Async( Net net, @@ -14276,12 +12867,11 @@ class CvNative { ); } - late final _Net_GetLayerNames_AsyncPtr = _lookup< - ffi - .NativeFunction Function(Net, CvCallback_1)>>( - 'Net_GetLayerNames_Async'); - late final _Net_GetLayerNames_Async = _Net_GetLayerNames_AsyncPtr.asFunction< - ffi.Pointer Function(Net, CvCallback_1)>(); + late final _Net_GetLayerNames_AsyncPtr = + _lookup Function(Net, CvCallback_1)>>( + 'Net_GetLayerNames_Async'); + late final _Net_GetLayerNames_Async = + _Net_GetLayerNames_AsyncPtr.asFunction Function(Net, CvCallback_1)>(); ffi.Pointer Net_GetLayer_Async( Net net, @@ -14295,12 +12885,11 @@ class CvNative { ); } - late final _Net_GetLayer_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Int, CvCallback_1)>>('Net_GetLayer_Async'); - late final _Net_GetLayer_Async = _Net_GetLayer_AsyncPtr.asFunction< - ffi.Pointer Function(Net, int, CvCallback_1)>(); + late final _Net_GetLayer_AsyncPtr = + _lookup Function(Net, ffi.Int, CvCallback_1)>>( + 'Net_GetLayer_Async'); + late final _Net_GetLayer_Async = + _Net_GetLayer_AsyncPtr.asFunction Function(Net, int, CvCallback_1)>(); ffi.Pointer Net_GetPerfProfile( Net net, @@ -14312,12 +12901,11 @@ class CvNative { ); } - late final _Net_GetPerfProfilePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Pointer)>>('Net_GetPerfProfile'); - late final _Net_GetPerfProfile = _Net_GetPerfProfilePtr.asFunction< - ffi.Pointer Function(Net, ffi.Pointer)>(); + late final _Net_GetPerfProfilePtr = + _lookup Function(Net, ffi.Pointer)>>( + 'Net_GetPerfProfile'); + late final _Net_GetPerfProfile = + _Net_GetPerfProfilePtr.asFunction Function(Net, ffi.Pointer)>(); ffi.Pointer Net_GetPerfProfile_Async( Net net, @@ -14329,12 +12917,11 @@ class CvNative { ); } - late final _Net_GetPerfProfile_AsyncPtr = _lookup< - ffi - .NativeFunction Function(Net, CvCallback_1)>>( - 'Net_GetPerfProfile_Async'); - late final _Net_GetPerfProfile_Async = _Net_GetPerfProfile_AsyncPtr - .asFunction Function(Net, CvCallback_1)>(); + late final _Net_GetPerfProfile_AsyncPtr = + _lookup Function(Net, CvCallback_1)>>( + 'Net_GetPerfProfile_Async'); + late final _Net_GetPerfProfile_Async = + _Net_GetPerfProfile_AsyncPtr.asFunction Function(Net, CvCallback_1)>(); ffi.Pointer Net_GetUnconnectedOutLayers( Net net, @@ -14346,12 +12933,11 @@ class CvNative { ); } - late final _Net_GetUnconnectedOutLayersPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Pointer)>>('Net_GetUnconnectedOutLayers'); - late final _Net_GetUnconnectedOutLayers = _Net_GetUnconnectedOutLayersPtr - .asFunction Function(Net, ffi.Pointer)>(); + late final _Net_GetUnconnectedOutLayersPtr = + _lookup Function(Net, ffi.Pointer)>>( + 'Net_GetUnconnectedOutLayers'); + late final _Net_GetUnconnectedOutLayers = + _Net_GetUnconnectedOutLayersPtr.asFunction Function(Net, ffi.Pointer)>(); ffi.Pointer Net_GetUnconnectedOutLayers_Async( Net net, @@ -14363,13 +12949,11 @@ class CvNative { ); } - late final _Net_GetUnconnectedOutLayers_AsyncPtr = _lookup< - ffi - .NativeFunction Function(Net, CvCallback_1)>>( - 'Net_GetUnconnectedOutLayers_Async'); + late final _Net_GetUnconnectedOutLayers_AsyncPtr = + _lookup Function(Net, CvCallback_1)>>( + 'Net_GetUnconnectedOutLayers_Async'); late final _Net_GetUnconnectedOutLayers_Async = - _Net_GetUnconnectedOutLayers_AsyncPtr.asFunction< - ffi.Pointer Function(Net, CvCallback_1)>(); + _Net_GetUnconnectedOutLayers_AsyncPtr.asFunction Function(Net, CvCallback_1)>(); ffi.Pointer Net_ImagesFromBlob( Mat blob, @@ -14381,12 +12965,11 @@ class CvNative { ); } - late final _Net_ImagesFromBlobPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('Net_ImagesFromBlob'); - late final _Net_ImagesFromBlob = _Net_ImagesFromBlobPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _Net_ImagesFromBlobPtr = + _lookup Function(Mat, ffi.Pointer)>>( + 'Net_ImagesFromBlob'); + late final _Net_ImagesFromBlob = + _Net_ImagesFromBlobPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer Net_ImagesFromBlob_Async( Mat blob, @@ -14398,12 +12981,11 @@ class CvNative { ); } - late final _Net_ImagesFromBlob_AsyncPtr = _lookup< - ffi - .NativeFunction Function(Mat, CvCallback_1)>>( - 'Net_ImagesFromBlob_Async'); - late final _Net_ImagesFromBlob_Async = _Net_ImagesFromBlob_AsyncPtr - .asFunction Function(Mat, CvCallback_1)>(); + late final _Net_ImagesFromBlob_AsyncPtr = + _lookup Function(Mat, CvCallback_1)>>( + 'Net_ImagesFromBlob_Async'); + late final _Net_ImagesFromBlob_Async = + _Net_ImagesFromBlob_AsyncPtr.asFunction Function(Mat, CvCallback_1)>(); ffi.Pointer Net_ReadNet( ffi.Pointer model, @@ -14421,14 +13003,11 @@ class CvNative { late final _Net_ReadNetPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('Net_ReadNet'); late final _Net_ReadNet = _Net_ReadNetPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_ReadNetBytes( ffi.Pointer framework, @@ -14446,11 +13025,10 @@ class CvNative { late final _Net_ReadNetBytesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, VecUChar, - VecUChar, ffi.Pointer)>>('Net_ReadNetBytes'); + ffi.Pointer Function( + ffi.Pointer, VecUChar, VecUChar, ffi.Pointer)>>('Net_ReadNetBytes'); late final _Net_ReadNetBytes = _Net_ReadNetBytesPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, VecUChar, VecUChar, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, VecUChar, VecUChar, ffi.Pointer)>(); ffi.Pointer Net_ReadNetBytes_Async( ffi.Pointer framework, @@ -14468,11 +13046,10 @@ class CvNative { late final _Net_ReadNetBytes_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, VecUChar, - VecUChar, CvCallback_1)>>('Net_ReadNetBytes_Async'); + ffi.Pointer Function( + ffi.Pointer, VecUChar, VecUChar, CvCallback_1)>>('Net_ReadNetBytes_Async'); late final _Net_ReadNetBytes_Async = _Net_ReadNetBytes_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, VecUChar, VecUChar, CvCallback_1)>(); + ffi.Pointer Function(ffi.Pointer, VecUChar, VecUChar, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromCaffe( ffi.Pointer prototxt, @@ -14489,12 +13066,9 @@ class CvNative { late final _Net_ReadNetFromCaffePtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('Net_ReadNetFromCaffe'); + ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('Net_ReadNetFromCaffe'); late final _Net_ReadNetFromCaffe = _Net_ReadNetFromCaffePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromCaffeBytes( VecUChar prototxt, @@ -14508,14 +13082,11 @@ class CvNative { ); } - late final _Net_ReadNetFromCaffeBytesPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecUChar, VecUChar, - ffi.Pointer)>>('Net_ReadNetFromCaffeBytes'); - late final _Net_ReadNetFromCaffeBytes = - _Net_ReadNetFromCaffeBytesPtr.asFunction< - ffi.Pointer Function( - VecUChar, VecUChar, ffi.Pointer)>(); + late final _Net_ReadNetFromCaffeBytesPtr = + _lookup Function(VecUChar, VecUChar, ffi.Pointer)>>( + 'Net_ReadNetFromCaffeBytes'); + late final _Net_ReadNetFromCaffeBytes = _Net_ReadNetFromCaffeBytesPtr.asFunction< + ffi.Pointer Function(VecUChar, VecUChar, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromCaffeBytes_Async( VecUChar prototxt, @@ -14529,13 +13100,11 @@ class CvNative { ); } - late final _Net_ReadNetFromCaffeBytes_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecUChar, VecUChar, - CvCallback_1)>>('Net_ReadNetFromCaffeBytes_Async'); - late final _Net_ReadNetFromCaffeBytes_Async = - _Net_ReadNetFromCaffeBytes_AsyncPtr.asFunction< - ffi.Pointer Function(VecUChar, VecUChar, CvCallback_1)>(); + late final _Net_ReadNetFromCaffeBytes_AsyncPtr = + _lookup Function(VecUChar, VecUChar, CvCallback_1)>>( + 'Net_ReadNetFromCaffeBytes_Async'); + late final _Net_ReadNetFromCaffeBytes_Async = _Net_ReadNetFromCaffeBytes_AsyncPtr.asFunction< + ffi.Pointer Function(VecUChar, VecUChar, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromCaffe_Async( ffi.Pointer prototxt, @@ -14552,13 +13121,9 @@ class CvNative { late final _Net_ReadNetFromCaffe_AsyncPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - CvCallback_1)>>('Net_ReadNetFromCaffe_Async'); - late final _Net_ReadNetFromCaffe_Async = - _Net_ReadNetFromCaffe_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, CvCallback_1)>(); + ffi.Pointer, ffi.Pointer, CvCallback_1)>>('Net_ReadNetFromCaffe_Async'); + late final _Net_ReadNetFromCaffe_Async = _Net_ReadNetFromCaffe_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromONNX( ffi.Pointer model, @@ -14570,13 +13135,11 @@ class CvNative { ); } - late final _Net_ReadNetFromONNXPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('Net_ReadNetFromONNX'); + late final _Net_ReadNetFromONNXPtr = + _lookup Function(ffi.Pointer, ffi.Pointer)>>( + 'Net_ReadNetFromONNX'); late final _Net_ReadNetFromONNX = _Net_ReadNetFromONNXPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromONNXBytes( VecUChar model, @@ -14588,12 +13151,11 @@ class CvNative { ); } - late final _Net_ReadNetFromONNXBytesPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecUChar, ffi.Pointer)>>('Net_ReadNetFromONNXBytes'); - late final _Net_ReadNetFromONNXBytes = _Net_ReadNetFromONNXBytesPtr - .asFunction Function(VecUChar, ffi.Pointer)>(); + late final _Net_ReadNetFromONNXBytesPtr = + _lookup Function(VecUChar, ffi.Pointer)>>( + 'Net_ReadNetFromONNXBytes'); + late final _Net_ReadNetFromONNXBytes = + _Net_ReadNetFromONNXBytesPtr.asFunction Function(VecUChar, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromONNXBytes_Async( VecUChar model, @@ -14605,13 +13167,11 @@ class CvNative { ); } - late final _Net_ReadNetFromONNXBytes_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecUChar, CvCallback_1)>>('Net_ReadNetFromONNXBytes_Async'); + late final _Net_ReadNetFromONNXBytes_AsyncPtr = + _lookup Function(VecUChar, CvCallback_1)>>( + 'Net_ReadNetFromONNXBytes_Async'); late final _Net_ReadNetFromONNXBytes_Async = - _Net_ReadNetFromONNXBytes_AsyncPtr.asFunction< - ffi.Pointer Function(VecUChar, CvCallback_1)>(); + _Net_ReadNetFromONNXBytes_AsyncPtr.asFunction Function(VecUChar, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromONNX_Async( ffi.Pointer model, @@ -14623,14 +13183,11 @@ class CvNative { ); } - late final _Net_ReadNetFromONNX_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - CvCallback_1)>>('Net_ReadNetFromONNX_Async'); - late final _Net_ReadNetFromONNX_Async = - _Net_ReadNetFromONNX_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, CvCallback_1)>(); + late final _Net_ReadNetFromONNX_AsyncPtr = + _lookup Function(ffi.Pointer, CvCallback_1)>>( + 'Net_ReadNetFromONNX_Async'); + late final _Net_ReadNetFromONNX_Async = _Net_ReadNetFromONNX_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromTFLite( ffi.Pointer model, @@ -14642,13 +13199,11 @@ class CvNative { ); } - late final _Net_ReadNetFromTFLitePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer)>>('Net_ReadNetFromTFLite'); + late final _Net_ReadNetFromTFLitePtr = + _lookup Function(ffi.Pointer, ffi.Pointer)>>( + 'Net_ReadNetFromTFLite'); late final _Net_ReadNetFromTFLite = _Net_ReadNetFromTFLitePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromTFLiteBytes( VecUChar bufferModel, @@ -14660,12 +13215,11 @@ class CvNative { ); } - late final _Net_ReadNetFromTFLiteBytesPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecUChar, ffi.Pointer)>>('Net_ReadNetFromTFLiteBytes'); - late final _Net_ReadNetFromTFLiteBytes = _Net_ReadNetFromTFLiteBytesPtr - .asFunction Function(VecUChar, ffi.Pointer)>(); + late final _Net_ReadNetFromTFLiteBytesPtr = + _lookup Function(VecUChar, ffi.Pointer)>>( + 'Net_ReadNetFromTFLiteBytes'); + late final _Net_ReadNetFromTFLiteBytes = + _Net_ReadNetFromTFLiteBytesPtr.asFunction Function(VecUChar, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromTFLiteBytes_Async( VecUChar bufferModel, @@ -14677,13 +13231,11 @@ class CvNative { ); } - late final _Net_ReadNetFromTFLiteBytes_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecUChar, CvCallback_1)>>('Net_ReadNetFromTFLiteBytes_Async'); - late final _Net_ReadNetFromTFLiteBytes_Async = - _Net_ReadNetFromTFLiteBytes_AsyncPtr.asFunction< - ffi.Pointer Function(VecUChar, CvCallback_1)>(); + late final _Net_ReadNetFromTFLiteBytes_AsyncPtr = + _lookup Function(VecUChar, CvCallback_1)>>( + 'Net_ReadNetFromTFLiteBytes_Async'); + late final _Net_ReadNetFromTFLiteBytes_Async = _Net_ReadNetFromTFLiteBytes_AsyncPtr.asFunction< + ffi.Pointer Function(VecUChar, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromTFLite_Async( ffi.Pointer model, @@ -14695,14 +13247,11 @@ class CvNative { ); } - late final _Net_ReadNetFromTFLite_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - CvCallback_1)>>('Net_ReadNetFromTFLite_Async'); - late final _Net_ReadNetFromTFLite_Async = - _Net_ReadNetFromTFLite_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, CvCallback_1)>(); + late final _Net_ReadNetFromTFLite_AsyncPtr = + _lookup Function(ffi.Pointer, CvCallback_1)>>( + 'Net_ReadNetFromTFLite_Async'); + late final _Net_ReadNetFromTFLite_Async = _Net_ReadNetFromTFLite_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromTensorflow( ffi.Pointer model, @@ -14719,13 +13268,9 @@ class CvNative { late final _Net_ReadNetFromTensorflowPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('Net_ReadNetFromTensorflow'); - late final _Net_ReadNetFromTensorflow = - _Net_ReadNetFromTensorflowPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('Net_ReadNetFromTensorflow'); + late final _Net_ReadNetFromTensorflow = _Net_ReadNetFromTensorflowPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromTensorflowBytes( VecUChar model, @@ -14739,14 +13284,11 @@ class CvNative { ); } - late final _Net_ReadNetFromTensorflowBytesPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecUChar, VecUChar, - ffi.Pointer)>>('Net_ReadNetFromTensorflowBytes'); - late final _Net_ReadNetFromTensorflowBytes = - _Net_ReadNetFromTensorflowBytesPtr.asFunction< - ffi.Pointer Function( - VecUChar, VecUChar, ffi.Pointer)>(); + late final _Net_ReadNetFromTensorflowBytesPtr = + _lookup Function(VecUChar, VecUChar, ffi.Pointer)>>( + 'Net_ReadNetFromTensorflowBytes'); + late final _Net_ReadNetFromTensorflowBytes = _Net_ReadNetFromTensorflowBytesPtr.asFunction< + ffi.Pointer Function(VecUChar, VecUChar, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromTensorflowBytes_Async( VecUChar model, @@ -14760,13 +13302,11 @@ class CvNative { ); } - late final _Net_ReadNetFromTensorflowBytes_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecUChar, VecUChar, - CvCallback_1)>>('Net_ReadNetFromTensorflowBytes_Async'); - late final _Net_ReadNetFromTensorflowBytes_Async = - _Net_ReadNetFromTensorflowBytes_AsyncPtr.asFunction< - ffi.Pointer Function(VecUChar, VecUChar, CvCallback_1)>(); + late final _Net_ReadNetFromTensorflowBytes_AsyncPtr = + _lookup Function(VecUChar, VecUChar, CvCallback_1)>>( + 'Net_ReadNetFromTensorflowBytes_Async'); + late final _Net_ReadNetFromTensorflowBytes_Async = _Net_ReadNetFromTensorflowBytes_AsyncPtr.asFunction< + ffi.Pointer Function(VecUChar, VecUChar, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromTensorflow_Async( ffi.Pointer model, @@ -14782,14 +13322,10 @@ class CvNative { late final _Net_ReadNetFromTensorflow_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, CvCallback_1)>>('Net_ReadNetFromTensorflow_Async'); - late final _Net_ReadNetFromTensorflow_Async = - _Net_ReadNetFromTensorflow_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, CvCallback_1)>(); + late final _Net_ReadNetFromTensorflow_Async = _Net_ReadNetFromTensorflow_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromTorch( ffi.Pointer model, @@ -14807,11 +13343,10 @@ class CvNative { late final _Net_ReadNetFromTorchPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Bool, - ffi.Bool, ffi.Pointer)>>('Net_ReadNetFromTorch'); + ffi.Pointer Function( + ffi.Pointer, ffi.Bool, ffi.Bool, ffi.Pointer)>>('Net_ReadNetFromTorch'); late final _Net_ReadNetFromTorch = _Net_ReadNetFromTorchPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, bool, bool, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, bool, bool, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromTorch_Async( ffi.Pointer model, @@ -14829,12 +13364,10 @@ class CvNative { late final _Net_ReadNetFromTorch_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Bool, - ffi.Bool, CvCallback_1)>>('Net_ReadNetFromTorch_Async'); - late final _Net_ReadNetFromTorch_Async = - _Net_ReadNetFromTorch_AsyncPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, bool, bool, CvCallback_1)>(); + ffi.Pointer, ffi.Bool, ffi.Bool, CvCallback_1)>>('Net_ReadNetFromTorch_Async'); + late final _Net_ReadNetFromTorch_Async = _Net_ReadNetFromTorch_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, bool, bool, CvCallback_1)>(); ffi.Pointer Net_ReadNet_Async( ffi.Pointer model, @@ -14852,14 +13385,11 @@ class CvNative { late final _Net_ReadNet_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, CvCallback_1)>>('Net_ReadNet_Async'); late final _Net_ReadNet_Async = _Net_ReadNet_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, CvCallback_1)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, CvCallback_1)>(); ffi.Pointer Net_SetInput( Net net, @@ -14873,12 +13403,11 @@ class CvNative { ); } - late final _Net_SetInputPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, Mat, ffi.Pointer)>>('Net_SetInput'); - late final _Net_SetInput = _Net_SetInputPtr.asFunction< - ffi.Pointer Function(Net, Mat, ffi.Pointer)>(); + late final _Net_SetInputPtr = + _lookup Function(Net, Mat, ffi.Pointer)>>( + 'Net_SetInput'); + late final _Net_SetInput = + _Net_SetInputPtr.asFunction Function(Net, Mat, ffi.Pointer)>(); ffi.Pointer Net_SetInput_Async( Net net, @@ -14895,12 +13424,10 @@ class CvNative { } late final _Net_SetInput_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Net, Mat, ffi.Pointer, - CvCallback_0)>>('Net_SetInput_Async'); + ffi.NativeFunction Function(Net, Mat, ffi.Pointer, CvCallback_0)>>( + 'Net_SetInput_Async'); late final _Net_SetInput_Async = _Net_SetInput_AsyncPtr.asFunction< - ffi.Pointer Function( - Net, Mat, ffi.Pointer, CvCallback_0)>(); + ffi.Pointer Function(Net, Mat, ffi.Pointer, CvCallback_0)>(); ffi.Pointer Net_SetPreferableBackend( Net net, @@ -14913,10 +13440,9 @@ class CvNative { } late final _Net_SetPreferableBackendPtr = - _lookup Function(Net, ffi.Int)>>( - 'Net_SetPreferableBackend'); - late final _Net_SetPreferableBackend = _Net_SetPreferableBackendPtr - .asFunction Function(Net, int)>(); + _lookup Function(Net, ffi.Int)>>('Net_SetPreferableBackend'); + late final _Net_SetPreferableBackend = + _Net_SetPreferableBackendPtr.asFunction Function(Net, int)>(); ffi.Pointer Net_SetPreferableBackend_Async( Net net, @@ -14930,13 +13456,11 @@ class CvNative { ); } - late final _Net_SetPreferableBackend_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Int, CvCallback_0)>>('Net_SetPreferableBackend_Async'); + late final _Net_SetPreferableBackend_AsyncPtr = + _lookup Function(Net, ffi.Int, CvCallback_0)>>( + 'Net_SetPreferableBackend_Async'); late final _Net_SetPreferableBackend_Async = - _Net_SetPreferableBackend_AsyncPtr.asFunction< - ffi.Pointer Function(Net, int, CvCallback_0)>(); + _Net_SetPreferableBackend_AsyncPtr.asFunction Function(Net, int, CvCallback_0)>(); ffi.Pointer Net_SetPreferableTarget( Net net, @@ -14949,10 +13473,9 @@ class CvNative { } late final _Net_SetPreferableTargetPtr = - _lookup Function(Net, ffi.Int)>>( - 'Net_SetPreferableTarget'); - late final _Net_SetPreferableTarget = _Net_SetPreferableTargetPtr.asFunction< - ffi.Pointer Function(Net, int)>(); + _lookup Function(Net, ffi.Int)>>('Net_SetPreferableTarget'); + late final _Net_SetPreferableTarget = + _Net_SetPreferableTargetPtr.asFunction Function(Net, int)>(); ffi.Pointer Net_SetPreferableTarget_Async( Net net, @@ -14966,12 +13489,11 @@ class CvNative { ); } - late final _Net_SetPreferableTarget_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Int, CvCallback_0)>>('Net_SetPreferableTarget_Async'); - late final _Net_SetPreferableTarget_Async = _Net_SetPreferableTarget_AsyncPtr - .asFunction Function(Net, int, CvCallback_0)>(); + late final _Net_SetPreferableTarget_AsyncPtr = + _lookup Function(Net, ffi.Int, CvCallback_0)>>( + 'Net_SetPreferableTarget_Async'); + late final _Net_SetPreferableTarget_Async = + _Net_SetPreferableTarget_AsyncPtr.asFunction Function(Net, int, CvCallback_0)>(); ffi.Pointer Net_forwardAsync( Net net, @@ -14987,11 +13509,10 @@ class CvNative { late final _Net_forwardAsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Net, ffi.Pointer, - ffi.Pointer)>>('Net_forwardAsync'); + ffi.Pointer Function( + Net, ffi.Pointer, ffi.Pointer)>>('Net_forwardAsync'); late final _Net_forwardAsync = _Net_forwardAsyncPtr.asFunction< - ffi.Pointer Function( - Net, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(Net, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Norm( Mat src1, @@ -15005,12 +13526,10 @@ class CvNative { ); } - late final _NormPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Pointer)>>('Norm'); - late final _Norm = _NormPtr.asFunction< - ffi.Pointer Function(Mat, int, ffi.Pointer)>(); + late final _NormPtr = + _lookup Function(Mat, ffi.Int, ffi.Pointer)>>( + 'Norm'); + late final _Norm = _NormPtr.asFunction Function(Mat, int, ffi.Pointer)>(); ffi.Pointer NormWithMats( Mat src1, @@ -15026,12 +13545,11 @@ class CvNative { ); } - late final _NormWithMatsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Pointer)>>('NormWithMats'); - late final _NormWithMats = _NormWithMatsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, ffi.Pointer)>(); + late final _NormWithMatsPtr = + _lookup Function(Mat, Mat, ffi.Int, ffi.Pointer)>>( + 'NormWithMats'); + late final _NormWithMats = + _NormWithMatsPtr.asFunction Function(Mat, Mat, int, ffi.Pointer)>(); void ORB_Close( ORBPtr o, @@ -15041,8 +13559,7 @@ class CvNative { ); } - late final _ORB_ClosePtr = - _lookup>('ORB_Close'); + late final _ORB_ClosePtr = _lookup>('ORB_Close'); late final _ORB_Close = _ORB_ClosePtr.asFunction(); ffi.Pointer ORB_Create( @@ -15053,11 +13570,9 @@ class CvNative { ); } - late final _ORB_CreatePtr = _lookup< - ffi.NativeFunction Function(ffi.Pointer)>>( - 'ORB_Create'); - late final _ORB_Create = _ORB_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _ORB_CreatePtr = + _lookup Function(ffi.Pointer)>>('ORB_Create'); + late final _ORB_Create = _ORB_CreatePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer ORB_CreateWithParams( int nfeatures, @@ -15087,20 +13602,10 @@ class CvNative { late final _ORB_CreateWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, - ffi.Float, - ffi.Int, - ffi.Int, - ffi.Int, - ffi.Int, - ffi.Int, - ffi.Int, - ffi.Int, - ffi.Pointer)>>('ORB_CreateWithParams'); + ffi.Pointer Function(ffi.Int, ffi.Float, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Int, + ffi.Int, ffi.Int, ffi.Pointer)>>('ORB_CreateWithParams'); late final _ORB_CreateWithParams = _ORB_CreateWithParamsPtr.asFunction< - ffi.Pointer Function( - int, double, int, int, int, int, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(int, double, int, int, int, int, int, int, int, ffi.Pointer)>(); ffi.Pointer ORB_Detect( ORB o, @@ -15114,12 +13619,11 @@ class CvNative { ); } - late final _ORB_DetectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ORB, Mat, ffi.Pointer)>>('ORB_Detect'); - late final _ORB_Detect = _ORB_DetectPtr.asFunction< - ffi.Pointer Function(ORB, Mat, ffi.Pointer)>(); + late final _ORB_DetectPtr = + _lookup Function(ORB, Mat, ffi.Pointer)>>( + 'ORB_Detect'); + late final _ORB_Detect = + _ORB_DetectPtr.asFunction Function(ORB, Mat, ffi.Pointer)>(); ffi.Pointer ORB_DetectAndCompute( ORB o, @@ -15138,12 +13642,10 @@ class CvNative { } late final _ORB_DetectAndComputePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ORB, Mat, Mat, Mat, - ffi.Pointer)>>('ORB_DetectAndCompute'); + ffi.NativeFunction Function(ORB, Mat, Mat, Mat, ffi.Pointer)>>( + 'ORB_DetectAndCompute'); late final _ORB_DetectAndCompute = _ORB_DetectAndComputePtr.asFunction< - ffi.Pointer Function( - ORB, Mat, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function(ORB, Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer Ones( int rows, @@ -15160,11 +13662,9 @@ class CvNative { } late final _OnesPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Ones'); - late final _Ones = _OnesPtr.asFunction< - ffi.Pointer Function(int, int, int, ffi.Pointer)>(); + ffi + .NativeFunction Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Ones'); + late final _Ones = _OnesPtr.asFunction Function(int, int, int, ffi.Pointer)>(); ffi.Pointer PencilSketch( Mat src, @@ -15185,11 +13685,10 @@ class CvNative { } late final _PencilSketchPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Float, ffi.Float, ffi.Float)>>('PencilSketch'); - late final _PencilSketch = _PencilSketchPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, double, double, double)>(); + ffi.NativeFunction Function(Mat, Mat, Mat, ffi.Float, ffi.Float, ffi.Float)>>( + 'PencilSketch'); + late final _PencilSketch = + _PencilSketchPtr.asFunction Function(Mat, Mat, Mat, double, double, double)>(); ffi.Pointer PhaseCorrelate( Mat src1, @@ -15209,11 +13708,10 @@ class CvNative { late final _PhaseCorrelatePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, ffi.Pointer, - ffi.Pointer)>>('PhaseCorrelate'); + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Pointer, ffi.Pointer)>>('PhaseCorrelate'); late final _PhaseCorrelate = _PhaseCorrelatePtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(Mat, Mat, Mat, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer PhotoInpaint( Mat src, @@ -15231,12 +13729,11 @@ class CvNative { ); } - late final _PhotoInpaintPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Float, ffi.Int)>>('PhotoInpaint'); - late final _PhotoInpaint = _PhotoInpaintPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, double, int)>(); + late final _PhotoInpaintPtr = + _lookup Function(Mat, Mat, Mat, ffi.Float, ffi.Int)>>( + 'PhotoInpaint'); + late final _PhotoInpaint = + _PhotoInpaintPtr.asFunction Function(Mat, Mat, Mat, double, int)>(); ffi.Pointer PointPolygonTest( VecPoint pts, @@ -15254,11 +13751,10 @@ class CvNative { late final _PointPolygonTestPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecPoint, Point2f, ffi.Bool, - ffi.Pointer)>>('PointPolygonTest'); + ffi.Pointer Function( + VecPoint, Point2f, ffi.Bool, ffi.Pointer)>>('PointPolygonTest'); late final _PointPolygonTest = _PointPolygonTestPtr.asFunction< - ffi.Pointer Function( - VecPoint, Point2f, bool, ffi.Pointer)>(); + ffi.Pointer Function(VecPoint, Point2f, bool, ffi.Pointer)>(); ffi.Pointer Polylines( Mat img, @@ -15277,11 +13773,10 @@ class CvNative { } late final _PolylinesPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, VecVecPoint, ffi.Bool, Scalar, ffi.Int)>>('Polylines'); - late final _Polylines = _PolylinesPtr.asFunction< - ffi.Pointer Function(Mat, VecVecPoint, bool, Scalar, int)>(); + ffi.NativeFunction Function(Mat, VecVecPoint, ffi.Bool, Scalar, ffi.Int)>>( + 'Polylines'); + late final _Polylines = + _PolylinesPtr.asFunction Function(Mat, VecVecPoint, bool, Scalar, int)>(); ffi.Pointer Prim_from_Circle( Point center, @@ -15305,11 +13800,10 @@ class CvNative { late final _Prim_from_CirclePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Point, Scalar, ffi.Int, ffi.Int, - ffi.Int, ffi.Int, ffi.Pointer)>>('Prim_from_Circle'); + ffi.Pointer Function( + Point, Scalar, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Prim_from_Circle'); late final _Prim_from_Circle = _Prim_from_CirclePtr.asFunction< - ffi.Pointer Function( - Point, Scalar, int, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Point, Scalar, int, int, int, int, ffi.Pointer)>(); ffi.Pointer Prim_from_FText( ffi.Pointer text, @@ -15331,11 +13825,10 @@ class CvNative { late final _Prim_from_FTextPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, Point, - ffi.Int, Scalar, ffi.Pointer)>>('Prim_from_FText'); + ffi.Pointer Function( + ffi.Pointer, ffi.Int, Point, ffi.Int, Scalar, ffi.Pointer)>>('Prim_from_FText'); late final _Prim_from_FText = _Prim_from_FTextPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, Point, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, int, Point, int, Scalar, ffi.Pointer)>(); ffi.Pointer Prim_from_Image( Point org, @@ -15351,12 +13844,11 @@ class CvNative { ); } - late final _Prim_from_ImagePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Point, Mat, Mat, ffi.Pointer)>>('Prim_from_Image'); - late final _Prim_from_Image = _Prim_from_ImagePtr.asFunction< - ffi.Pointer Function(Point, Mat, Mat, ffi.Pointer)>(); + late final _Prim_from_ImagePtr = + _lookup Function(Point, Mat, Mat, ffi.Pointer)>>( + 'Prim_from_Image'); + late final _Prim_from_Image = + _Prim_from_ImagePtr.asFunction Function(Point, Mat, Mat, ffi.Pointer)>(); ffi.Pointer Prim_from_Line( Scalar color, @@ -15380,11 +13872,10 @@ class CvNative { late final _Prim_from_LinePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Scalar, ffi.Int, Point, Point, ffi.Int, - ffi.Int, ffi.Pointer)>>('Prim_from_Line'); + ffi.Pointer Function( + Scalar, ffi.Int, Point, Point, ffi.Int, ffi.Int, ffi.Pointer)>>('Prim_from_Line'); late final _Prim_from_Line = _Prim_from_LinePtr.asFunction< - ffi.Pointer Function( - Scalar, int, Point, Point, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Scalar, int, Point, Point, int, int, ffi.Pointer)>(); ffi.Pointer Prim_from_Mosaic( int cellSz, @@ -15400,12 +13891,11 @@ class CvNative { ); } - late final _Prim_from_MosaicPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, ffi.Int, Rect, ffi.Pointer)>>('Prim_from_Mosaic'); - late final _Prim_from_Mosaic = _Prim_from_MosaicPtr.asFunction< - ffi.Pointer Function(int, int, Rect, ffi.Pointer)>(); + late final _Prim_from_MosaicPtr = + _lookup Function(ffi.Int, ffi.Int, Rect, ffi.Pointer)>>( + 'Prim_from_Mosaic'); + late final _Prim_from_Mosaic = + _Prim_from_MosaicPtr.asFunction Function(int, int, Rect, ffi.Pointer)>(); ffi.Pointer Prim_from_Poly( VecPoint points, @@ -15427,11 +13917,10 @@ class CvNative { late final _Prim_from_PolyPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecPoint, Scalar, ffi.Int, ffi.Int, - ffi.Int, ffi.Pointer)>>('Prim_from_Poly'); + ffi.Pointer Function( + VecPoint, Scalar, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Prim_from_Poly'); late final _Prim_from_Poly = _Prim_from_PolyPtr.asFunction< - ffi.Pointer Function( - VecPoint, Scalar, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(VecPoint, Scalar, int, int, int, ffi.Pointer)>(); ffi.Pointer Prim_from_Rect( Scalar color, @@ -15453,11 +13942,10 @@ class CvNative { late final _Prim_from_RectPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Scalar, ffi.Int, Rect, ffi.Int, - ffi.Int, ffi.Pointer)>>('Prim_from_Rect'); + ffi.Pointer Function( + Scalar, ffi.Int, Rect, ffi.Int, ffi.Int, ffi.Pointer)>>('Prim_from_Rect'); late final _Prim_from_Rect = _Prim_from_RectPtr.asFunction< - ffi.Pointer Function( - Scalar, int, Rect, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Scalar, int, Rect, int, int, ffi.Pointer)>(); ffi.Pointer Prim_from_Text( bool bottom_left_origin, @@ -15487,20 +13975,11 @@ class CvNative { late final _Prim_from_TextPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Bool, - Scalar, - ffi.Int, - ffi.Double, - ffi.Int, - Point, - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer)>>('Prim_from_Text'); + ffi.Pointer Function(ffi.Bool, Scalar, ffi.Int, ffi.Double, ffi.Int, Point, + ffi.Pointer, ffi.Int, ffi.Int, ffi.Pointer)>>('Prim_from_Text'); late final _Prim_from_Text = _Prim_from_TextPtr.asFunction< - ffi.Pointer Function(bool, Scalar, int, double, int, Point, - ffi.Pointer, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + bool, Scalar, int, double, int, Point, ffi.Pointer, int, int, ffi.Pointer)>(); ffi.Pointer PutText( Mat img, @@ -15524,11 +14003,10 @@ class CvNative { late final _PutTextPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer, Point, - ffi.Int, ffi.Double, Scalar, ffi.Int)>>('PutText'); + ffi.Pointer Function( + Mat, ffi.Pointer, Point, ffi.Int, ffi.Double, Scalar, ffi.Int)>>('PutText'); late final _PutText = _PutTextPtr.asFunction< - ffi.Pointer Function( - Mat, ffi.Pointer, Point, int, double, Scalar, int)>(); + ffi.Pointer Function(Mat, ffi.Pointer, Point, int, double, Scalar, int)>(); ffi.Pointer PutTextWithParams( Mat img, @@ -15556,19 +14034,11 @@ class CvNative { late final _PutTextWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, - ffi.Pointer, - Point, - ffi.Int, - ffi.Double, - Scalar, - ffi.Int, - ffi.Int, - ffi.Bool)>>('PutTextWithParams'); + ffi.Pointer Function(Mat, ffi.Pointer, Point, ffi.Int, ffi.Double, Scalar, + ffi.Int, ffi.Int, ffi.Bool)>>('PutTextWithParams'); late final _PutTextWithParams = _PutTextWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer, Point, int, - double, Scalar, int, int, bool)>(); + ffi.Pointer Function( + Mat, ffi.Pointer, Point, int, double, Scalar, int, int, bool)>(); ffi.Pointer PyrDown( Mat src, @@ -15584,11 +14054,9 @@ class CvNative { ); } - late final _PyrDownPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Size, ffi.Int)>>('PyrDown'); - late final _PyrDown = _PyrDownPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Size, int)>(); + late final _PyrDownPtr = + _lookup Function(Mat, Mat, Size, ffi.Int)>>('PyrDown'); + late final _PyrDown = _PyrDownPtr.asFunction Function(Mat, Mat, Size, int)>(); ffi.Pointer PyrUp( Mat src, @@ -15604,11 +14072,9 @@ class CvNative { ); } - late final _PyrUpPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Size, ffi.Int)>>('PyrUp'); - late final _PyrUp = _PyrUpPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Size, int)>(); + late final _PyrUpPtr = + _lookup Function(Mat, Mat, Size, ffi.Int)>>('PyrUp'); + late final _PyrUp = _PyrUpPtr.asFunction Function(Mat, Mat, Size, int)>(); void QRCodeDetector_Close( QRCodeDetectorPtr self, @@ -15619,10 +14085,8 @@ class CvNative { } late final _QRCodeDetector_ClosePtr = - _lookup>( - 'QRCodeDetector_Close'); - late final _QRCodeDetector_Close = - _QRCodeDetector_ClosePtr.asFunction(); + _lookup>('QRCodeDetector_Close'); + late final _QRCodeDetector_Close = _QRCodeDetector_ClosePtr.asFunction(); ffi.Pointer QRCodeDetector_Decode( QRCodeDetector self, @@ -15642,15 +14106,11 @@ class CvNative { late final _QRCodeDetector_DecodePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - QRCodeDetector, - Mat, - ffi.Pointer, - Mat, + ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, Mat, ffi.Pointer>)>>('QRCodeDetector_Decode'); late final _QRCodeDetector_Decode = _QRCodeDetector_DecodePtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, - Mat, ffi.Pointer>)>(); + ffi.Pointer Function( + QRCodeDetector, Mat, ffi.Pointer, Mat, ffi.Pointer>)>(); ffi.Pointer QRCodeDetector_Decode_Async( QRCodeDetector self, @@ -15664,13 +14124,11 @@ class CvNative { ); } - late final _QRCodeDetector_Decode_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, - CvCallback_3)>>('QRCodeDetector_Decode_Async'); - late final _QRCodeDetector_Decode_Async = - _QRCodeDetector_Decode_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_3)>(); + late final _QRCodeDetector_Decode_AsyncPtr = + _lookup Function(QRCodeDetector, Mat, CvCallback_3)>>( + 'QRCodeDetector_Decode_Async'); + late final _QRCodeDetector_Decode_Async = _QRCodeDetector_Decode_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_3)>(); ffi.Pointer QRCodeDetector_Detect( QRCodeDetector self, @@ -15689,13 +14147,9 @@ class CvNative { late final _QRCodeDetector_DetectPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - QRCodeDetector, - Mat, - ffi.Pointer, - ffi.Pointer)>>('QRCodeDetector_Detect'); + QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer)>>('QRCodeDetector_Detect'); late final _QRCodeDetector_Detect = _QRCodeDetector_DetectPtr.asFunction< - ffi.Pointer Function( - QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer QRCodeDetector_DetectAndDecode( QRCodeDetector self, @@ -15714,22 +14168,12 @@ class CvNative { } late final _QRCodeDetector_DetectAndDecodePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - QRCodeDetector, - Mat, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>( - 'QRCodeDetector_DetectAndDecode'); - late final _QRCodeDetector_DetectAndDecode = - _QRCodeDetector_DetectAndDecodePtr.asFunction< - ffi.Pointer Function( - QRCodeDetector, - Mat, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>>('QRCodeDetector_DetectAndDecode'); + late final _QRCodeDetector_DetectAndDecode = _QRCodeDetector_DetectAndDecodePtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>(); ffi.Pointer QRCodeDetector_DetectAndDecodeMulti( QRCodeDetector self, @@ -15751,22 +14195,11 @@ class CvNative { late final _QRCodeDetector_DetectAndDecodeMultiPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - QRCodeDetector, - Mat, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('QRCodeDetector_DetectAndDecodeMulti'); - late final _QRCodeDetector_DetectAndDecodeMulti = - _QRCodeDetector_DetectAndDecodeMultiPtr.asFunction< - ffi.Pointer Function( - QRCodeDetector, - Mat, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('QRCodeDetector_DetectAndDecodeMulti'); + late final _QRCodeDetector_DetectAndDecodeMulti = _QRCodeDetector_DetectAndDecodeMultiPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer QRCodeDetector_DetectAndDecodeMulti_Async( QRCodeDetector self, @@ -15780,13 +14213,11 @@ class CvNative { ); } - late final _QRCodeDetector_DetectAndDecodeMulti_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, - CvCallback_4)>>('QRCodeDetector_DetectAndDecodeMulti_Async'); - late final _QRCodeDetector_DetectAndDecodeMulti_Async = - _QRCodeDetector_DetectAndDecodeMulti_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_4)>(); + late final _QRCodeDetector_DetectAndDecodeMulti_AsyncPtr = + _lookup Function(QRCodeDetector, Mat, CvCallback_4)>>( + 'QRCodeDetector_DetectAndDecodeMulti_Async'); + late final _QRCodeDetector_DetectAndDecodeMulti_Async = _QRCodeDetector_DetectAndDecodeMulti_AsyncPtr + .asFunction Function(QRCodeDetector, Mat, CvCallback_4)>(); ffi.Pointer QRCodeDetector_DetectAndDecode_Async( QRCodeDetector self, @@ -15800,13 +14231,11 @@ class CvNative { ); } - late final _QRCodeDetector_DetectAndDecode_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, - CvCallback_3)>>('QRCodeDetector_DetectAndDecode_Async'); - late final _QRCodeDetector_DetectAndDecode_Async = - _QRCodeDetector_DetectAndDecode_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_3)>(); + late final _QRCodeDetector_DetectAndDecode_AsyncPtr = + _lookup Function(QRCodeDetector, Mat, CvCallback_3)>>( + 'QRCodeDetector_DetectAndDecode_Async'); + late final _QRCodeDetector_DetectAndDecode_Async = _QRCodeDetector_DetectAndDecode_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_3)>(); ffi.Pointer QRCodeDetector_DetectMulti( QRCodeDetector self, @@ -15824,15 +14253,10 @@ class CvNative { late final _QRCodeDetector_DetectMultiPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - QRCodeDetector, - Mat, - ffi.Pointer, + ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer)>>('QRCodeDetector_DetectMulti'); - late final _QRCodeDetector_DetectMulti = - _QRCodeDetector_DetectMultiPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, - ffi.Pointer, ffi.Pointer)>(); + late final _QRCodeDetector_DetectMulti = _QRCodeDetector_DetectMultiPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer QRCodeDetector_DetectMulti_Async( QRCodeDetector self, @@ -15846,13 +14270,11 @@ class CvNative { ); } - late final _QRCodeDetector_DetectMulti_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, - CvCallback_2)>>('QRCodeDetector_DetectMulti_Async'); - late final _QRCodeDetector_DetectMulti_Async = - _QRCodeDetector_DetectMulti_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_2)>(); + late final _QRCodeDetector_DetectMulti_AsyncPtr = + _lookup Function(QRCodeDetector, Mat, CvCallback_2)>>( + 'QRCodeDetector_DetectMulti_Async'); + late final _QRCodeDetector_DetectMulti_Async = _QRCodeDetector_DetectMulti_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_2)>(); ffi.Pointer QRCodeDetector_Detect_Async( QRCodeDetector self, @@ -15866,13 +14288,11 @@ class CvNative { ); } - late final _QRCodeDetector_Detect_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, - CvCallback_2)>>('QRCodeDetector_Detect_Async'); - late final _QRCodeDetector_Detect_Async = - _QRCodeDetector_Detect_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_2)>(); + late final _QRCodeDetector_Detect_AsyncPtr = + _lookup Function(QRCodeDetector, Mat, CvCallback_2)>>( + 'QRCodeDetector_Detect_Async'); + late final _QRCodeDetector_Detect_Async = _QRCodeDetector_Detect_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_2)>(); ffi.Pointer QRCodeDetector_New( ffi.Pointer rval, @@ -15882,12 +14302,11 @@ class CvNative { ); } - late final _QRCodeDetector_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('QRCodeDetector_New'); - late final _QRCodeDetector_New = _QRCodeDetector_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _QRCodeDetector_NewPtr = + _lookup Function(ffi.Pointer)>>( + 'QRCodeDetector_New'); + late final _QRCodeDetector_New = + _QRCodeDetector_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer QRCodeDetector_New_Async( CvCallback_1 callback, @@ -15898,10 +14317,9 @@ class CvNative { } late final _QRCodeDetector_New_AsyncPtr = - _lookup Function(CvCallback_1)>>( - 'QRCodeDetector_New_Async'); - late final _QRCodeDetector_New_Async = _QRCodeDetector_New_AsyncPtr - .asFunction Function(CvCallback_1)>(); + _lookup Function(CvCallback_1)>>('QRCodeDetector_New_Async'); + late final _QRCodeDetector_New_Async = + _QRCodeDetector_New_AsyncPtr.asFunction Function(CvCallback_1)>(); ffi.Pointer QRCodeDetector_decodeCurved( QRCodeDetector self, @@ -15920,14 +14338,12 @@ class CvNative { } late final _QRCodeDetector_decodeCurvedPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, VecPoint, - ffi.Pointer, ffi.Pointer>)>>( - 'QRCodeDetector_decodeCurved'); - late final _QRCodeDetector_decodeCurved = - _QRCodeDetector_decodeCurvedPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, VecPoint, - ffi.Pointer, ffi.Pointer>)>(); + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, VecPoint, ffi.Pointer, + ffi.Pointer>)>>('QRCodeDetector_decodeCurved'); + late final _QRCodeDetector_decodeCurved = _QRCodeDetector_decodeCurvedPtr.asFunction< + ffi.Pointer Function( + QRCodeDetector, Mat, VecPoint, ffi.Pointer, ffi.Pointer>)>(); ffi.Pointer QRCodeDetector_decodeCurved_Async( QRCodeDetector self, @@ -15944,13 +14360,10 @@ class CvNative { } late final _QRCodeDetector_decodeCurved_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, VecPoint, - CvCallback_2)>>('QRCodeDetector_decodeCurved_Async'); - late final _QRCodeDetector_decodeCurved_Async = - _QRCodeDetector_decodeCurved_AsyncPtr.asFunction< - ffi.Pointer Function( - QRCodeDetector, Mat, VecPoint, CvCallback_2)>(); + ffi.NativeFunction Function(QRCodeDetector, Mat, VecPoint, CvCallback_2)>>( + 'QRCodeDetector_decodeCurved_Async'); + late final _QRCodeDetector_decodeCurved_Async = _QRCodeDetector_decodeCurved_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, VecPoint, CvCallback_2)>(); ffi.Pointer QRCodeDetector_detectAndDecodeCurved( QRCodeDetector self, @@ -15969,22 +14382,12 @@ class CvNative { } late final _QRCodeDetector_detectAndDecodeCurvedPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - QRCodeDetector, - Mat, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>( - 'QRCodeDetector_detectAndDecodeCurved'); - late final _QRCodeDetector_detectAndDecodeCurved = - _QRCodeDetector_detectAndDecodeCurvedPtr.asFunction< - ffi.Pointer Function( - QRCodeDetector, - Mat, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>>('QRCodeDetector_detectAndDecodeCurved'); + late final _QRCodeDetector_detectAndDecodeCurved = _QRCodeDetector_detectAndDecodeCurvedPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>(); ffi.Pointer QRCodeDetector_detectAndDecodeCurved_Async( QRCodeDetector self, @@ -15998,13 +14401,11 @@ class CvNative { ); } - late final _QRCodeDetector_detectAndDecodeCurved_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, - CvCallback_3)>>('QRCodeDetector_detectAndDecodeCurved_Async'); - late final _QRCodeDetector_detectAndDecodeCurved_Async = - _QRCodeDetector_detectAndDecodeCurved_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_3)>(); + late final _QRCodeDetector_detectAndDecodeCurved_AsyncPtr = + _lookup Function(QRCodeDetector, Mat, CvCallback_3)>>( + 'QRCodeDetector_detectAndDecodeCurved_Async'); + late final _QRCodeDetector_detectAndDecodeCurved_Async = _QRCodeDetector_detectAndDecodeCurved_AsyncPtr + .asFunction Function(QRCodeDetector, Mat, CvCallback_3)>(); ffi.Pointer QRCodeDetector_setEpsX( QRCodeDetector self, @@ -16016,12 +14417,11 @@ class CvNative { ); } - late final _QRCodeDetector_setEpsXPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - QRCodeDetector, ffi.Double)>>('QRCodeDetector_setEpsX'); - late final _QRCodeDetector_setEpsX = _QRCodeDetector_setEpsXPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, double)>(); + late final _QRCodeDetector_setEpsXPtr = + _lookup Function(QRCodeDetector, ffi.Double)>>( + 'QRCodeDetector_setEpsX'); + late final _QRCodeDetector_setEpsX = + _QRCodeDetector_setEpsXPtr.asFunction Function(QRCodeDetector, double)>(); ffi.Pointer QRCodeDetector_setEpsX_Async( QRCodeDetector self, @@ -16035,14 +14435,11 @@ class CvNative { ); } - late final _QRCodeDetector_setEpsX_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, ffi.Double, - CvCallback_0)>>('QRCodeDetector_setEpsX_Async'); - late final _QRCodeDetector_setEpsX_Async = - _QRCodeDetector_setEpsX_AsyncPtr.asFunction< - ffi.Pointer Function( - QRCodeDetector, double, CvCallback_0)>(); + late final _QRCodeDetector_setEpsX_AsyncPtr = + _lookup Function(QRCodeDetector, ffi.Double, CvCallback_0)>>( + 'QRCodeDetector_setEpsX_Async'); + late final _QRCodeDetector_setEpsX_Async = _QRCodeDetector_setEpsX_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, double, CvCallback_0)>(); ffi.Pointer QRCodeDetector_setEpsY( QRCodeDetector self, @@ -16054,12 +14451,11 @@ class CvNative { ); } - late final _QRCodeDetector_setEpsYPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - QRCodeDetector, ffi.Double)>>('QRCodeDetector_setEpsY'); - late final _QRCodeDetector_setEpsY = _QRCodeDetector_setEpsYPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, double)>(); + late final _QRCodeDetector_setEpsYPtr = + _lookup Function(QRCodeDetector, ffi.Double)>>( + 'QRCodeDetector_setEpsY'); + late final _QRCodeDetector_setEpsY = + _QRCodeDetector_setEpsYPtr.asFunction Function(QRCodeDetector, double)>(); ffi.Pointer QRCodeDetector_setEpsY_Async( QRCodeDetector self, @@ -16073,14 +14469,11 @@ class CvNative { ); } - late final _QRCodeDetector_setEpsY_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, ffi.Double, - CvCallback_0)>>('QRCodeDetector_setEpsY_Async'); - late final _QRCodeDetector_setEpsY_Async = - _QRCodeDetector_setEpsY_AsyncPtr.asFunction< - ffi.Pointer Function( - QRCodeDetector, double, CvCallback_0)>(); + late final _QRCodeDetector_setEpsY_AsyncPtr = + _lookup Function(QRCodeDetector, ffi.Double, CvCallback_0)>>( + 'QRCodeDetector_setEpsY_Async'); + late final _QRCodeDetector_setEpsY_Async = _QRCodeDetector_setEpsY_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, double, CvCallback_0)>(); ffi.Pointer QRCodeDetector_setUseAlignmentMarkers( QRCodeDetector self, @@ -16092,13 +14485,11 @@ class CvNative { ); } - late final _QRCodeDetector_setUseAlignmentMarkersPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, - ffi.Bool)>>('QRCodeDetector_setUseAlignmentMarkers'); - late final _QRCodeDetector_setUseAlignmentMarkers = - _QRCodeDetector_setUseAlignmentMarkersPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, bool)>(); + late final _QRCodeDetector_setUseAlignmentMarkersPtr = + _lookup Function(QRCodeDetector, ffi.Bool)>>( + 'QRCodeDetector_setUseAlignmentMarkers'); + late final _QRCodeDetector_setUseAlignmentMarkers = _QRCodeDetector_setUseAlignmentMarkersPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, bool)>(); ffi.Pointer QRCodeDetector_setUseAlignmentMarkers_Async( QRCodeDetector self, @@ -16112,13 +14503,11 @@ class CvNative { ); } - late final _QRCodeDetector_setUseAlignmentMarkers_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, ffi.Bool, - CvCallback_0)>>('QRCodeDetector_setUseAlignmentMarkers_Async'); - late final _QRCodeDetector_setUseAlignmentMarkers_Async = - _QRCodeDetector_setUseAlignmentMarkers_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, bool, CvCallback_0)>(); + late final _QRCodeDetector_setUseAlignmentMarkers_AsyncPtr = + _lookup Function(QRCodeDetector, ffi.Bool, CvCallback_0)>>( + 'QRCodeDetector_setUseAlignmentMarkers_Async'); + late final _QRCodeDetector_setUseAlignmentMarkers_Async = _QRCodeDetector_setUseAlignmentMarkers_AsyncPtr + .asFunction Function(QRCodeDetector, bool, CvCallback_0)>(); ffi.Pointer RNG_Fill( RNG rng, @@ -16140,10 +14529,9 @@ class CvNative { late final _RNG_FillPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(RNG, Mat, ffi.Int, ffi.Double, - ffi.Double, ffi.Bool)>>('RNG_Fill'); - late final _RNG_Fill = _RNG_FillPtr.asFunction< - ffi.Pointer Function(RNG, Mat, int, double, double, bool)>(); + ffi.Pointer Function(RNG, Mat, ffi.Int, ffi.Double, ffi.Double, ffi.Bool)>>('RNG_Fill'); + late final _RNG_Fill = + _RNG_FillPtr.asFunction Function(RNG, Mat, int, double, double, bool)>(); ffi.Pointer RNG_Gaussian( RNG rng, @@ -16157,12 +14545,11 @@ class CvNative { ); } - late final _RNG_GaussianPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - RNG, ffi.Double, ffi.Pointer)>>('RNG_Gaussian'); - late final _RNG_Gaussian = _RNG_GaussianPtr.asFunction< - ffi.Pointer Function(RNG, double, ffi.Pointer)>(); + late final _RNG_GaussianPtr = + _lookup Function(RNG, ffi.Double, ffi.Pointer)>>( + 'RNG_Gaussian'); + late final _RNG_Gaussian = + _RNG_GaussianPtr.asFunction Function(RNG, double, ffi.Pointer)>(); ffi.Pointer RNG_Next( RNG rng, @@ -16174,12 +14561,10 @@ class CvNative { ); } - late final _RNG_NextPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - RNG, ffi.Pointer)>>('RNG_Next'); - late final _RNG_Next = _RNG_NextPtr.asFunction< - ffi.Pointer Function(RNG, ffi.Pointer)>(); + late final _RNG_NextPtr = + _lookup Function(RNG, ffi.Pointer)>>('RNG_Next'); + late final _RNG_Next = + _RNG_NextPtr.asFunction Function(RNG, ffi.Pointer)>(); ffi.Pointer RNG_Uniform( RNG rng, @@ -16196,11 +14581,10 @@ class CvNative { } late final _RNG_UniformPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - RNG, ffi.Int, ffi.Int, ffi.Pointer)>>('RNG_Uniform'); - late final _RNG_Uniform = _RNG_UniformPtr.asFunction< - ffi.Pointer Function(RNG, int, int, ffi.Pointer)>(); + ffi.NativeFunction Function(RNG, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'RNG_Uniform'); + late final _RNG_Uniform = + _RNG_UniformPtr.asFunction Function(RNG, int, int, ffi.Pointer)>(); ffi.Pointer RNG_UniformDouble( RNG rng, @@ -16218,11 +14602,10 @@ class CvNative { late final _RNG_UniformDoublePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(RNG, ffi.Double, ffi.Double, - ffi.Pointer)>>('RNG_UniformDouble'); + ffi.Pointer Function( + RNG, ffi.Double, ffi.Double, ffi.Pointer)>>('RNG_UniformDouble'); late final _RNG_UniformDouble = _RNG_UniformDoublePtr.asFunction< - ffi.Pointer Function( - RNG, double, double, ffi.Pointer)>(); + ffi.Pointer Function(RNG, double, double, ffi.Pointer)>(); ffi.Pointer RandN( Mat mat, @@ -16236,11 +14619,9 @@ class CvNative { ); } - late final _RandNPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Scalar, Scalar)>>('RandN'); - late final _RandN = _RandNPtr.asFunction< - ffi.Pointer Function(Mat, Scalar, Scalar)>(); + late final _RandNPtr = + _lookup Function(Mat, Scalar, Scalar)>>('RandN'); + late final _RandN = _RandNPtr.asFunction Function(Mat, Scalar, Scalar)>(); ffi.Pointer RandShuffle( Mat mat, @@ -16251,10 +14632,8 @@ class CvNative { } late final _RandShufflePtr = - _lookup Function(Mat)>>( - 'RandShuffle'); - late final _RandShuffle = - _RandShufflePtr.asFunction Function(Mat)>(); + _lookup Function(Mat)>>('RandShuffle'); + late final _RandShuffle = _RandShufflePtr.asFunction Function(Mat)>(); ffi.Pointer RandShuffleWithParams( Mat mat, @@ -16268,12 +14647,11 @@ class CvNative { ); } - late final _RandShuffleWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Double, RNG)>>('RandShuffleWithParams'); - late final _RandShuffleWithParams = _RandShuffleWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, double, RNG)>(); + late final _RandShuffleWithParamsPtr = + _lookup Function(Mat, ffi.Double, RNG)>>( + 'RandShuffleWithParams'); + late final _RandShuffleWithParams = + _RandShuffleWithParamsPtr.asFunction Function(Mat, double, RNG)>(); ffi.Pointer RandU( Mat mat, @@ -16287,11 +14665,9 @@ class CvNative { ); } - late final _RandUPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Scalar, Scalar)>>('RandU'); - late final _RandU = _RandUPtr.asFunction< - ffi.Pointer Function(Mat, Scalar, Scalar)>(); + late final _RandUPtr = + _lookup Function(Mat, Scalar, Scalar)>>('RandU'); + late final _RandU = _RandUPtr.asFunction Function(Mat, Scalar, Scalar)>(); ffi.Pointer Rectangle( Mat img, @@ -16307,12 +14683,9 @@ class CvNative { ); } - late final _RectanglePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Rect, Scalar, ffi.Int)>>('Rectangle'); - late final _Rectangle = _RectanglePtr.asFunction< - ffi.Pointer Function(Mat, Rect, Scalar, int)>(); + late final _RectanglePtr = + _lookup Function(Mat, Rect, Scalar, ffi.Int)>>('Rectangle'); + late final _Rectangle = _RectanglePtr.asFunction Function(Mat, Rect, Scalar, int)>(); ffi.Pointer RectangleWithParams( Mat img, @@ -16333,11 +14706,10 @@ class CvNative { } late final _RectangleWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Rect, Scalar, ffi.Int, ffi.Int, - ffi.Int)>>('RectangleWithParams'); - late final _RectangleWithParams = _RectangleWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Rect, Scalar, int, int, int)>(); + ffi.NativeFunction Function(Mat, Rect, Scalar, ffi.Int, ffi.Int, ffi.Int)>>( + 'RectangleWithParams'); + late final _RectangleWithParams = + _RectangleWithParamsPtr.asFunction Function(Mat, Rect, Scalar, int, int, int)>(); ffi.Pointer Remap( Mat src, @@ -16360,11 +14732,10 @@ class CvNative { } late final _RemapPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, ffi.Int, ffi.Int, Scalar)>>('Remap'); - late final _Remap = _RemapPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, int, int, Scalar)>(); + ffi + .NativeFunction Function(Mat, Mat, Mat, Mat, ffi.Int, ffi.Int, Scalar)>>('Remap'); + late final _Remap = + _RemapPtr.asFunction Function(Mat, Mat, Mat, Mat, int, int, Scalar)>(); ffi.Pointer Resize( Mat src, @@ -16386,10 +14757,9 @@ class CvNative { late final _ResizePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Size, ffi.Double, ffi.Double, ffi.Int)>>('Resize'); - late final _Resize = _ResizePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Size, double, double, int)>(); + ffi.Pointer Function(Mat, Mat, Size, ffi.Double, ffi.Double, ffi.Int)>>('Resize'); + late final _Resize = + _ResizePtr.asFunction Function(Mat, Mat, Size, double, double, int)>(); void Rng_Close( RNGPtr rng, @@ -16399,8 +14769,7 @@ class CvNative { ); } - late final _Rng_ClosePtr = - _lookup>('Rng_Close'); + late final _Rng_ClosePtr = _lookup>('Rng_Close'); late final _Rng_Close = _Rng_ClosePtr.asFunction(); ffi.Pointer Rng_New( @@ -16411,11 +14780,9 @@ class CvNative { ); } - late final _Rng_NewPtr = _lookup< - ffi.NativeFunction Function(ffi.Pointer)>>( - 'Rng_New'); - late final _Rng_New = _Rng_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _Rng_NewPtr = + _lookup Function(ffi.Pointer)>>('Rng_New'); + late final _Rng_New = _Rng_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer Rng_NewWithState( int state, @@ -16427,12 +14794,11 @@ class CvNative { ); } - late final _Rng_NewWithStatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Uint64, ffi.Pointer)>>('Rng_NewWithState'); - late final _Rng_NewWithState = _Rng_NewWithStatePtr.asFunction< - ffi.Pointer Function(int, ffi.Pointer)>(); + late final _Rng_NewWithStatePtr = + _lookup Function(ffi.Uint64, ffi.Pointer)>>( + 'Rng_NewWithState'); + late final _Rng_NewWithState = + _Rng_NewWithStatePtr.asFunction Function(int, ffi.Pointer)>(); ffi.Pointer Rotate( Mat src, @@ -16446,11 +14812,9 @@ class CvNative { ); } - late final _RotatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Rotate'); - late final _Rotate = - _RotatePtr.asFunction Function(Mat, Mat, int)>(); + late final _RotatePtr = + _lookup Function(Mat, Mat, ffi.Int)>>('Rotate'); + late final _Rotate = _RotatePtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer RotatedRect_BoundingRect( RotatedRect rect, @@ -16462,13 +14826,11 @@ class CvNative { ); } - late final _RotatedRect_BoundingRectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - RotatedRect, ffi.Pointer)>>('RotatedRect_BoundingRect'); - late final _RotatedRect_BoundingRect = - _RotatedRect_BoundingRectPtr.asFunction< - ffi.Pointer Function(RotatedRect, ffi.Pointer)>(); + late final _RotatedRect_BoundingRectPtr = + _lookup Function(RotatedRect, ffi.Pointer)>>( + 'RotatedRect_BoundingRect'); + late final _RotatedRect_BoundingRect = _RotatedRect_BoundingRectPtr.asFunction< + ffi.Pointer Function(RotatedRect, ffi.Pointer)>(); ffi.Pointer RotatedRect_BoundingRect2f( RotatedRect rect, @@ -16480,13 +14842,11 @@ class CvNative { ); } - late final _RotatedRect_BoundingRect2fPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - RotatedRect, ffi.Pointer)>>('RotatedRect_BoundingRect2f'); - late final _RotatedRect_BoundingRect2f = - _RotatedRect_BoundingRect2fPtr.asFunction< - ffi.Pointer Function(RotatedRect, ffi.Pointer)>(); + late final _RotatedRect_BoundingRect2fPtr = + _lookup Function(RotatedRect, ffi.Pointer)>>( + 'RotatedRect_BoundingRect2f'); + late final _RotatedRect_BoundingRect2f = _RotatedRect_BoundingRect2fPtr.asFunction< + ffi.Pointer Function(RotatedRect, ffi.Pointer)>(); ffi.Pointer RotatedRect_Points( RotatedRect rect, @@ -16498,10 +14858,9 @@ class CvNative { ); } - late final _RotatedRect_PointsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - RotatedRect, ffi.Pointer)>>('RotatedRect_Points'); + late final _RotatedRect_PointsPtr = + _lookup Function(RotatedRect, ffi.Pointer)>>( + 'RotatedRect_Points'); late final _RotatedRect_Points = _RotatedRect_PointsPtr.asFunction< ffi.Pointer Function(RotatedRect, ffi.Pointer)>(); @@ -16513,8 +14872,7 @@ class CvNative { ); } - late final _SIFT_ClosePtr = - _lookup>('SIFT_Close'); + late final _SIFT_ClosePtr = _lookup>('SIFT_Close'); late final _SIFT_Close = _SIFT_ClosePtr.asFunction(); ffi.Pointer SIFT_Create( @@ -16525,11 +14883,9 @@ class CvNative { ); } - late final _SIFT_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('SIFT_Create'); - late final _SIFT_Create = _SIFT_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _SIFT_CreatePtr = + _lookup Function(ffi.Pointer)>>('SIFT_Create'); + late final _SIFT_Create = _SIFT_CreatePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer SIFT_Detect( SIFT f, @@ -16543,12 +14899,11 @@ class CvNative { ); } - late final _SIFT_DetectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - SIFT, Mat, ffi.Pointer)>>('SIFT_Detect'); - late final _SIFT_Detect = _SIFT_DetectPtr.asFunction< - ffi.Pointer Function(SIFT, Mat, ffi.Pointer)>(); + late final _SIFT_DetectPtr = + _lookup Function(SIFT, Mat, ffi.Pointer)>>( + 'SIFT_Detect'); + late final _SIFT_Detect = + _SIFT_DetectPtr.asFunction Function(SIFT, Mat, ffi.Pointer)>(); ffi.Pointer SIFT_DetectAndCompute( SIFT f, @@ -16567,12 +14922,10 @@ class CvNative { } late final _SIFT_DetectAndComputePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(SIFT, Mat, Mat, Mat, - ffi.Pointer)>>('SIFT_DetectAndCompute'); + ffi.NativeFunction Function(SIFT, Mat, Mat, Mat, ffi.Pointer)>>( + 'SIFT_DetectAndCompute'); late final _SIFT_DetectAndCompute = _SIFT_DetectAndComputePtr.asFunction< - ffi.Pointer Function( - SIFT, Mat, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function(SIFT, Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer SVD_Compute( Mat src, @@ -16592,11 +14945,10 @@ class CvNative { late final _SVD_ComputePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer, - ffi.Pointer, ffi.Pointer, ffi.Int)>>('SVD_Compute'); + ffi.Pointer Function( + Mat, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int)>>('SVD_Compute'); late final _SVD_Compute = _SVD_ComputePtr.asFunction< - ffi.Pointer Function( - Mat, ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function(Mat, ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); ffi.Pointer SVD_Compute_Async( Mat src, @@ -16610,12 +14962,11 @@ class CvNative { ); } - late final _SVD_Compute_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, CvCallback_3)>>('SVD_Compute_Async'); - late final _SVD_Compute_Async = _SVD_Compute_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, int, CvCallback_3)>(); + late final _SVD_Compute_AsyncPtr = + _lookup Function(Mat, ffi.Int, CvCallback_3)>>( + 'SVD_Compute_Async'); + late final _SVD_Compute_Async = + _SVD_Compute_AsyncPtr.asFunction Function(Mat, int, CvCallback_3)>(); ffi.Pointer SVD_backSubst( Mat w, @@ -16633,12 +14984,11 @@ class CvNative { ); } - late final _SVD_backSubstPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, ffi.Pointer)>>('SVD_backSubst'); - late final _SVD_backSubst = _SVD_backSubstPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, ffi.Pointer)>(); + late final _SVD_backSubstPtr = + _lookup Function(Mat, Mat, Mat, Mat, ffi.Pointer)>>( + 'SVD_backSubst'); + late final _SVD_backSubst = + _SVD_backSubstPtr.asFunction Function(Mat, Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer SVD_backSubst_Async( Mat w, @@ -16656,12 +15006,11 @@ class CvNative { ); } - late final _SVD_backSubst_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, CvCallback_1)>>('SVD_backSubst_Async'); - late final _SVD_backSubst_Async = _SVD_backSubst_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, CvCallback_1)>(); + late final _SVD_backSubst_AsyncPtr = + _lookup Function(Mat, Mat, Mat, Mat, CvCallback_1)>>( + 'SVD_backSubst_Async'); + late final _SVD_backSubst_Async = + _SVD_backSubst_AsyncPtr.asFunction Function(Mat, Mat, Mat, Mat, CvCallback_1)>(); ffi.Pointer Scharr( Mat src, @@ -16687,11 +15036,10 @@ class CvNative { late final _ScharrPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Double, ffi.Double, ffi.Int)>>('Scharr'); - late final _Scharr = _ScharrPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, int, int, int, double, double, int)>(); + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Double, ffi.Double, ffi.Int)>>('Scharr'); + late final _Scharr = + _ScharrPtr.asFunction Function(Mat, Mat, int, int, int, double, double, int)>(); ffi.Pointer SeamlessClone( Mat src, @@ -16711,12 +15059,11 @@ class CvNative { ); } - late final _SeamlessClonePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Point, Mat, ffi.Int)>>('SeamlessClone'); - late final _SeamlessClone = _SeamlessClonePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Point, Mat, int)>(); + late final _SeamlessClonePtr = + _lookup Function(Mat, Mat, Mat, Point, Mat, ffi.Int)>>( + 'SeamlessClone'); + late final _SeamlessClone = + _SeamlessClonePtr.asFunction Function(Mat, Mat, Mat, Point, Mat, int)>(); ffi.Pointer SepFilter2D( Mat src, @@ -16742,11 +15089,10 @@ class CvNative { late final _SepFilter2DPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, Mat, Mat, Point, - ffi.Double, ffi.Int)>>('SepFilter2D'); + ffi.Pointer Function( + Mat, Mat, ffi.Int, Mat, Mat, Point, ffi.Double, ffi.Int)>>('SepFilter2D'); late final _SepFilter2D = _SepFilter2DPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, int, Mat, Mat, Point, double, int)>(); + ffi.Pointer Function(Mat, Mat, int, Mat, Mat, Point, double, int)>(); ffi.Pointer SetNumThreads( int n, @@ -16757,10 +15103,8 @@ class CvNative { } late final _SetNumThreadsPtr = - _lookup Function(ffi.Int)>>( - 'SetNumThreads'); - late final _SetNumThreads = - _SetNumThreadsPtr.asFunction Function(int)>(); + _lookup Function(ffi.Int)>>('SetNumThreads'); + late final _SetNumThreads = _SetNumThreadsPtr.asFunction Function(int)>(); ffi.Pointer SetRNGSeed( int seed, @@ -16771,10 +15115,8 @@ class CvNative { } late final _SetRNGSeedPtr = - _lookup Function(ffi.Int)>>( - 'SetRNGSeed'); - late final _SetRNGSeed = - _SetRNGSeedPtr.asFunction Function(int)>(); + _lookup Function(ffi.Int)>>('SetRNGSeed'); + late final _SetRNGSeed = _SetRNGSeedPtr.asFunction Function(int)>(); ffi.Pointer SimpleBlobDetectorParams_Create( ffi.Pointer rval, @@ -16784,15 +15126,11 @@ class CvNative { ); } - late final _SimpleBlobDetectorParams_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>( - 'SimpleBlobDetectorParams_Create'); - late final _SimpleBlobDetectorParams_Create = - _SimpleBlobDetectorParams_CreatePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer)>(); + late final _SimpleBlobDetectorParams_CreatePtr = + _lookup Function(ffi.Pointer)>>( + 'SimpleBlobDetectorParams_Create'); + late final _SimpleBlobDetectorParams_Create = _SimpleBlobDetectorParams_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); void SimpleBlobDetector_Close( SimpleBlobDetectorPtr b, @@ -16803,10 +15141,9 @@ class CvNative { } late final _SimpleBlobDetector_ClosePtr = - _lookup>( - 'SimpleBlobDetector_Close'); - late final _SimpleBlobDetector_Close = _SimpleBlobDetector_ClosePtr - .asFunction(); + _lookup>('SimpleBlobDetector_Close'); + late final _SimpleBlobDetector_Close = + _SimpleBlobDetector_ClosePtr.asFunction(); ffi.Pointer SimpleBlobDetector_Create( ffi.Pointer rval, @@ -16816,13 +15153,11 @@ class CvNative { ); } - late final _SimpleBlobDetector_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('SimpleBlobDetector_Create'); - late final _SimpleBlobDetector_Create = - _SimpleBlobDetector_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _SimpleBlobDetector_CreatePtr = + _lookup Function(ffi.Pointer)>>( + 'SimpleBlobDetector_Create'); + late final _SimpleBlobDetector_Create = _SimpleBlobDetector_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer SimpleBlobDetector_Create_WithParams( SimpleBlobDetectorParams params, @@ -16835,14 +15170,11 @@ class CvNative { } late final _SimpleBlobDetector_Create_WithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - SimpleBlobDetectorParams, ffi.Pointer)>>( - 'SimpleBlobDetector_Create_WithParams'); - late final _SimpleBlobDetector_Create_WithParams = - _SimpleBlobDetector_Create_WithParamsPtr.asFunction< - ffi.Pointer Function( - SimpleBlobDetectorParams, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(SimpleBlobDetectorParams, + ffi.Pointer)>>('SimpleBlobDetector_Create_WithParams'); + late final _SimpleBlobDetector_Create_WithParams = _SimpleBlobDetector_Create_WithParamsPtr.asFunction< + ffi.Pointer Function(SimpleBlobDetectorParams, ffi.Pointer)>(); ffi.Pointer SimpleBlobDetector_Detect( SimpleBlobDetector b, @@ -16857,13 +15189,11 @@ class CvNative { } late final _SimpleBlobDetector_DetectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(SimpleBlobDetector, Mat, - ffi.Pointer)>>('SimpleBlobDetector_Detect'); - late final _SimpleBlobDetector_Detect = - _SimpleBlobDetector_DetectPtr.asFunction< - ffi.Pointer Function( - SimpleBlobDetector, Mat, ffi.Pointer)>(); + ffi + .NativeFunction Function(SimpleBlobDetector, Mat, ffi.Pointer)>>( + 'SimpleBlobDetector_Detect'); + late final _SimpleBlobDetector_Detect = _SimpleBlobDetector_DetectPtr.asFunction< + ffi.Pointer Function(SimpleBlobDetector, Mat, ffi.Pointer)>(); ffi.Pointer Sobel( Mat src, @@ -16891,11 +15221,10 @@ class CvNative { late final _SobelPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Int, ffi.Double, ffi.Double, ffi.Int)>>('Sobel'); + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Double, ffi.Double, ffi.Int)>>('Sobel'); late final _Sobel = _SobelPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, int, int, int, int, double, double, int)>(); + ffi.Pointer Function(Mat, Mat, int, int, int, int, double, double, int)>(); ffi.Pointer SpatialGradient( Mat src, @@ -16913,12 +15242,11 @@ class CvNative { ); } - late final _SpatialGradientPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Int, ffi.Int)>>('SpatialGradient'); - late final _SpatialGradient = _SpatialGradientPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, int, int)>(); + late final _SpatialGradientPtr = + _lookup Function(Mat, Mat, Mat, ffi.Int, ffi.Int)>>( + 'SpatialGradient'); + late final _SpatialGradient = + _SpatialGradientPtr.asFunction Function(Mat, Mat, Mat, int, int)>(); ffi.Pointer SqBoxFilter( Mat src, @@ -16934,12 +15262,9 @@ class CvNative { ); } - late final _SqBoxFilterPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, Size)>>('SqBoxFilter'); - late final _SqBoxFilter = _SqBoxFilterPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, Size)>(); + late final _SqBoxFilterPtr = + _lookup Function(Mat, Mat, ffi.Int, Size)>>('SqBoxFilter'); + late final _SqBoxFilter = _SqBoxFilterPtr.asFunction Function(Mat, Mat, int, Size)>(); void Stitcher_Close( PtrStitcherPtr stitcher, @@ -16950,10 +15275,8 @@ class CvNative { } late final _Stitcher_ClosePtr = - _lookup>( - 'Stitcher_Close'); - late final _Stitcher_Close = - _Stitcher_ClosePtr.asFunction(); + _lookup>('Stitcher_Close'); + late final _Stitcher_Close = _Stitcher_ClosePtr.asFunction(); ffi.Pointer Stitcher_Component( Stitcher self, @@ -16965,12 +15288,11 @@ class CvNative { ); } - late final _Stitcher_ComponentPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Stitcher, ffi.Pointer)>>('Stitcher_Component'); - late final _Stitcher_Component = _Stitcher_ComponentPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_ComponentPtr = + _lookup Function(Stitcher, ffi.Pointer)>>( + 'Stitcher_Component'); + late final _Stitcher_Component = + _Stitcher_ComponentPtr.asFunction Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_ComposePanorama( Stitcher self, @@ -16984,14 +15306,11 @@ class CvNative { ); } - late final _Stitcher_ComposePanoramaPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Stitcher, Mat, - ffi.Pointer)>>('Stitcher_ComposePanorama'); - late final _Stitcher_ComposePanorama = - _Stitcher_ComposePanoramaPtr.asFunction< - ffi.Pointer Function( - Stitcher, Mat, ffi.Pointer)>(); + late final _Stitcher_ComposePanoramaPtr = + _lookup Function(Stitcher, Mat, ffi.Pointer)>>( + 'Stitcher_ComposePanorama'); + late final _Stitcher_ComposePanorama = _Stitcher_ComposePanoramaPtr.asFunction< + ffi.Pointer Function(Stitcher, Mat, ffi.Pointer)>(); ffi.Pointer Stitcher_ComposePanorama_1( Stitcher self, @@ -17008,13 +15327,10 @@ class CvNative { } late final _Stitcher_ComposePanorama_1Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Stitcher, VecMat, Mat, - ffi.Pointer)>>('Stitcher_ComposePanorama_1'); - late final _Stitcher_ComposePanorama_1 = - _Stitcher_ComposePanorama_1Ptr.asFunction< - ffi.Pointer Function( - Stitcher, VecMat, Mat, ffi.Pointer)>(); + ffi.NativeFunction Function(Stitcher, VecMat, Mat, ffi.Pointer)>>( + 'Stitcher_ComposePanorama_1'); + late final _Stitcher_ComposePanorama_1 = _Stitcher_ComposePanorama_1Ptr.asFunction< + ffi.Pointer Function(Stitcher, VecMat, Mat, ffi.Pointer)>(); ffi.Pointer Stitcher_Create( int mode, @@ -17026,12 +15342,11 @@ class CvNative { ); } - late final _Stitcher_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, ffi.Pointer)>>('Stitcher_Create'); - late final _Stitcher_Create = _Stitcher_CreatePtr.asFunction< - ffi.Pointer Function(int, ffi.Pointer)>(); + late final _Stitcher_CreatePtr = + _lookup Function(ffi.Int, ffi.Pointer)>>( + 'Stitcher_Create'); + late final _Stitcher_Create = + _Stitcher_CreatePtr.asFunction Function(int, ffi.Pointer)>(); ffi.Pointer Stitcher_EstimateTransform( Stitcher self, @@ -17048,13 +15363,10 @@ class CvNative { } late final _Stitcher_EstimateTransformPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Stitcher, VecMat, VecMat, - ffi.Pointer)>>('Stitcher_EstimateTransform'); - late final _Stitcher_EstimateTransform = - _Stitcher_EstimateTransformPtr.asFunction< - ffi.Pointer Function( - Stitcher, VecMat, VecMat, ffi.Pointer)>(); + ffi.NativeFunction Function(Stitcher, VecMat, VecMat, ffi.Pointer)>>( + 'Stitcher_EstimateTransform'); + late final _Stitcher_EstimateTransform = _Stitcher_EstimateTransformPtr.asFunction< + ffi.Pointer Function(Stitcher, VecMat, VecMat, ffi.Pointer)>(); ffi.Pointer Stitcher_Get( PtrStitcher self, @@ -17066,12 +15378,11 @@ class CvNative { ); } - late final _Stitcher_GetPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - PtrStitcher, ffi.Pointer)>>('Stitcher_Get'); - late final _Stitcher_Get = _Stitcher_GetPtr.asFunction< - ffi.Pointer Function(PtrStitcher, ffi.Pointer)>(); + late final _Stitcher_GetPtr = + _lookup Function(PtrStitcher, ffi.Pointer)>>( + 'Stitcher_Get'); + late final _Stitcher_Get = + _Stitcher_GetPtr.asFunction Function(PtrStitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetCompositingResol( Stitcher self, @@ -17083,13 +15394,11 @@ class CvNative { ); } - late final _Stitcher_GetCompositingResolPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Stitcher, - ffi.Pointer)>>('Stitcher_GetCompositingResol'); - late final _Stitcher_GetCompositingResol = - _Stitcher_GetCompositingResolPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetCompositingResolPtr = + _lookup Function(Stitcher, ffi.Pointer)>>( + 'Stitcher_GetCompositingResol'); + late final _Stitcher_GetCompositingResol = _Stitcher_GetCompositingResolPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetInterpolationFlags( Stitcher self, @@ -17101,13 +15410,11 @@ class CvNative { ); } - late final _Stitcher_GetInterpolationFlagsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Stitcher, - ffi.Pointer)>>('Stitcher_GetInterpolationFlags'); - late final _Stitcher_GetInterpolationFlags = - _Stitcher_GetInterpolationFlagsPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetInterpolationFlagsPtr = + _lookup Function(Stitcher, ffi.Pointer)>>( + 'Stitcher_GetInterpolationFlags'); + late final _Stitcher_GetInterpolationFlags = _Stitcher_GetInterpolationFlagsPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetPanoConfidenceThresh( Stitcher self, @@ -17119,13 +15426,11 @@ class CvNative { ); } - late final _Stitcher_GetPanoConfidenceThreshPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Stitcher, - ffi.Pointer)>>('Stitcher_GetPanoConfidenceThresh'); - late final _Stitcher_GetPanoConfidenceThresh = - _Stitcher_GetPanoConfidenceThreshPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetPanoConfidenceThreshPtr = + _lookup Function(Stitcher, ffi.Pointer)>>( + 'Stitcher_GetPanoConfidenceThresh'); + late final _Stitcher_GetPanoConfidenceThresh = _Stitcher_GetPanoConfidenceThreshPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetRegistrationResol( Stitcher self, @@ -17137,13 +15442,11 @@ class CvNative { ); } - late final _Stitcher_GetRegistrationResolPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Stitcher, - ffi.Pointer)>>('Stitcher_GetRegistrationResol'); - late final _Stitcher_GetRegistrationResol = - _Stitcher_GetRegistrationResolPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetRegistrationResolPtr = + _lookup Function(Stitcher, ffi.Pointer)>>( + 'Stitcher_GetRegistrationResol'); + late final _Stitcher_GetRegistrationResol = _Stitcher_GetRegistrationResolPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetSeamEstimationResol( Stitcher self, @@ -17155,13 +15458,11 @@ class CvNative { ); } - late final _Stitcher_GetSeamEstimationResolPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Stitcher, - ffi.Pointer)>>('Stitcher_GetSeamEstimationResol'); - late final _Stitcher_GetSeamEstimationResol = - _Stitcher_GetSeamEstimationResolPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetSeamEstimationResolPtr = + _lookup Function(Stitcher, ffi.Pointer)>>( + 'Stitcher_GetSeamEstimationResol'); + late final _Stitcher_GetSeamEstimationResol = _Stitcher_GetSeamEstimationResolPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetWaveCorrectKind( Stitcher self, @@ -17173,13 +15474,11 @@ class CvNative { ); } - late final _Stitcher_GetWaveCorrectKindPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Stitcher, ffi.Pointer)>>('Stitcher_GetWaveCorrectKind'); - late final _Stitcher_GetWaveCorrectKind = - _Stitcher_GetWaveCorrectKindPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetWaveCorrectKindPtr = + _lookup Function(Stitcher, ffi.Pointer)>>( + 'Stitcher_GetWaveCorrectKind'); + late final _Stitcher_GetWaveCorrectKind = _Stitcher_GetWaveCorrectKindPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetWaveCorrection( Stitcher self, @@ -17191,13 +15490,11 @@ class CvNative { ); } - late final _Stitcher_GetWaveCorrectionPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Stitcher, ffi.Pointer)>>('Stitcher_GetWaveCorrection'); - late final _Stitcher_GetWaveCorrection = - _Stitcher_GetWaveCorrectionPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetWaveCorrectionPtr = + _lookup Function(Stitcher, ffi.Pointer)>>( + 'Stitcher_GetWaveCorrection'); + late final _Stitcher_GetWaveCorrection = _Stitcher_GetWaveCorrectionPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_SetCompositingResol( Stitcher self, @@ -17209,12 +15506,11 @@ class CvNative { ); } - late final _Stitcher_SetCompositingResolPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Stitcher, ffi.Double)>>('Stitcher_SetCompositingResol'); - late final _Stitcher_SetCompositingResol = _Stitcher_SetCompositingResolPtr - .asFunction Function(Stitcher, double)>(); + late final _Stitcher_SetCompositingResolPtr = + _lookup Function(Stitcher, ffi.Double)>>( + 'Stitcher_SetCompositingResol'); + late final _Stitcher_SetCompositingResol = + _Stitcher_SetCompositingResolPtr.asFunction Function(Stitcher, double)>(); ffi.Pointer Stitcher_SetInterpolationFlags( Stitcher self, @@ -17226,13 +15522,11 @@ class CvNative { ); } - late final _Stitcher_SetInterpolationFlagsPtr = _lookup< - ffi - .NativeFunction Function(Stitcher, ffi.Int)>>( - 'Stitcher_SetInterpolationFlags'); + late final _Stitcher_SetInterpolationFlagsPtr = + _lookup Function(Stitcher, ffi.Int)>>( + 'Stitcher_SetInterpolationFlags'); late final _Stitcher_SetInterpolationFlags = - _Stitcher_SetInterpolationFlagsPtr.asFunction< - ffi.Pointer Function(Stitcher, int)>(); + _Stitcher_SetInterpolationFlagsPtr.asFunction Function(Stitcher, int)>(); ffi.Pointer Stitcher_SetPanoConfidenceThresh( Stitcher self, @@ -17244,13 +15538,11 @@ class CvNative { ); } - late final _Stitcher_SetPanoConfidenceThreshPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Stitcher, ffi.Double)>>('Stitcher_SetPanoConfidenceThresh'); + late final _Stitcher_SetPanoConfidenceThreshPtr = + _lookup Function(Stitcher, ffi.Double)>>( + 'Stitcher_SetPanoConfidenceThresh'); late final _Stitcher_SetPanoConfidenceThresh = - _Stitcher_SetPanoConfidenceThreshPtr.asFunction< - ffi.Pointer Function(Stitcher, double)>(); + _Stitcher_SetPanoConfidenceThreshPtr.asFunction Function(Stitcher, double)>(); ffi.Pointer Stitcher_SetRegistrationResol( Stitcher self, @@ -17262,12 +15554,11 @@ class CvNative { ); } - late final _Stitcher_SetRegistrationResolPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Stitcher, ffi.Double)>>('Stitcher_SetRegistrationResol'); - late final _Stitcher_SetRegistrationResol = _Stitcher_SetRegistrationResolPtr - .asFunction Function(Stitcher, double)>(); + late final _Stitcher_SetRegistrationResolPtr = + _lookup Function(Stitcher, ffi.Double)>>( + 'Stitcher_SetRegistrationResol'); + late final _Stitcher_SetRegistrationResol = + _Stitcher_SetRegistrationResolPtr.asFunction Function(Stitcher, double)>(); ffi.Pointer Stitcher_SetSeamEstimationResol( Stitcher self, @@ -17279,13 +15570,11 @@ class CvNative { ); } - late final _Stitcher_SetSeamEstimationResolPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Stitcher, ffi.Double)>>('Stitcher_SetSeamEstimationResol'); + late final _Stitcher_SetSeamEstimationResolPtr = + _lookup Function(Stitcher, ffi.Double)>>( + 'Stitcher_SetSeamEstimationResol'); late final _Stitcher_SetSeamEstimationResol = - _Stitcher_SetSeamEstimationResolPtr.asFunction< - ffi.Pointer Function(Stitcher, double)>(); + _Stitcher_SetSeamEstimationResolPtr.asFunction Function(Stitcher, double)>(); ffi.Pointer Stitcher_SetWaveCorrectKind( Stitcher self, @@ -17297,12 +15586,11 @@ class CvNative { ); } - late final _Stitcher_SetWaveCorrectKindPtr = _lookup< - ffi - .NativeFunction Function(Stitcher, ffi.Int)>>( - 'Stitcher_SetWaveCorrectKind'); - late final _Stitcher_SetWaveCorrectKind = _Stitcher_SetWaveCorrectKindPtr - .asFunction Function(Stitcher, int)>(); + late final _Stitcher_SetWaveCorrectKindPtr = + _lookup Function(Stitcher, ffi.Int)>>( + 'Stitcher_SetWaveCorrectKind'); + late final _Stitcher_SetWaveCorrectKind = + _Stitcher_SetWaveCorrectKindPtr.asFunction Function(Stitcher, int)>(); ffi.Pointer Stitcher_SetWaveCorrection( Stitcher self, @@ -17314,12 +15602,11 @@ class CvNative { ); } - late final _Stitcher_SetWaveCorrectionPtr = _lookup< - ffi - .NativeFunction Function(Stitcher, ffi.Bool)>>( - 'Stitcher_SetWaveCorrection'); - late final _Stitcher_SetWaveCorrection = _Stitcher_SetWaveCorrectionPtr - .asFunction Function(Stitcher, bool)>(); + late final _Stitcher_SetWaveCorrectionPtr = + _lookup Function(Stitcher, ffi.Bool)>>( + 'Stitcher_SetWaveCorrection'); + late final _Stitcher_SetWaveCorrection = + _Stitcher_SetWaveCorrectionPtr.asFunction Function(Stitcher, bool)>(); ffi.Pointer Stitcher_Stitch( Stitcher self, @@ -17336,12 +15623,10 @@ class CvNative { } late final _Stitcher_StitchPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Stitcher, VecMat, Mat, ffi.Pointer)>>('Stitcher_Stitch'); + ffi.NativeFunction Function(Stitcher, VecMat, Mat, ffi.Pointer)>>( + 'Stitcher_Stitch'); late final _Stitcher_Stitch = _Stitcher_StitchPtr.asFunction< - ffi.Pointer Function( - Stitcher, VecMat, Mat, ffi.Pointer)>(); + ffi.Pointer Function(Stitcher, VecMat, Mat, ffi.Pointer)>(); ffi.Pointer Stitcher_Stitch_1( Stitcher self, @@ -17361,11 +15646,10 @@ class CvNative { late final _Stitcher_Stitch_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Stitcher, VecMat, VecMat, Mat, - ffi.Pointer)>>('Stitcher_Stitch_1'); + ffi.Pointer Function( + Stitcher, VecMat, VecMat, Mat, ffi.Pointer)>>('Stitcher_Stitch_1'); late final _Stitcher_Stitch_1 = _Stitcher_Stitch_1Ptr.asFunction< - ffi.Pointer Function( - Stitcher, VecMat, VecMat, Mat, ffi.Pointer)>(); + ffi.Pointer Function(Stitcher, VecMat, VecMat, Mat, ffi.Pointer)>(); ffi.Pointer Stylization( Mat src, @@ -17381,12 +15665,11 @@ class CvNative { ); } - late final _StylizationPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Float, ffi.Float)>>('Stylization'); - late final _Stylization = _StylizationPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, double)>(); + late final _StylizationPtr = + _lookup Function(Mat, Mat, ffi.Float, ffi.Float)>>( + 'Stylization'); + late final _Stylization = + _StylizationPtr.asFunction Function(Mat, Mat, double, double)>(); void Subdiv2D_Close( Subdiv2DPtr self, @@ -17397,10 +15680,8 @@ class CvNative { } late final _Subdiv2D_ClosePtr = - _lookup>( - 'Subdiv2D_Close'); - late final _Subdiv2D_Close = - _Subdiv2D_ClosePtr.asFunction(); + _lookup>('Subdiv2D_Close'); + late final _Subdiv2D_Close = _Subdiv2D_ClosePtr.asFunction(); ffi.Pointer Subdiv2D_EdgeDst( Subdiv2D self, @@ -17418,11 +15699,10 @@ class CvNative { late final _Subdiv2D_EdgeDstPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Subdiv2D, ffi.Int, - ffi.Pointer, ffi.Pointer)>>('Subdiv2D_EdgeDst'); + ffi.Pointer Function( + Subdiv2D, ffi.Int, ffi.Pointer, ffi.Pointer)>>('Subdiv2D_EdgeDst'); late final _Subdiv2D_EdgeDst = _Subdiv2D_EdgeDstPtr.asFunction< - ffi.Pointer Function( - Subdiv2D, int, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(Subdiv2D, int, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Subdiv2D_EdgeOrg( Subdiv2D self, @@ -17440,11 +15720,10 @@ class CvNative { late final _Subdiv2D_EdgeOrgPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Subdiv2D, ffi.Int, - ffi.Pointer, ffi.Pointer)>>('Subdiv2D_EdgeOrg'); + ffi.Pointer Function( + Subdiv2D, ffi.Int, ffi.Pointer, ffi.Pointer)>>('Subdiv2D_EdgeOrg'); late final _Subdiv2D_EdgeOrg = _Subdiv2D_EdgeOrgPtr.asFunction< - ffi.Pointer Function( - Subdiv2D, int, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(Subdiv2D, int, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Subdiv2D_FindNearest( Subdiv2D self, @@ -17463,13 +15742,9 @@ class CvNative { late final _Subdiv2D_FindNearestPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - Subdiv2D, - Point2f, - ffi.Pointer, - ffi.Pointer)>>('Subdiv2D_FindNearest'); + Subdiv2D, Point2f, ffi.Pointer, ffi.Pointer)>>('Subdiv2D_FindNearest'); late final _Subdiv2D_FindNearest = _Subdiv2D_FindNearestPtr.asFunction< - ffi.Pointer Function( - Subdiv2D, Point2f, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(Subdiv2D, Point2f, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Subdiv2D_GetEdge( Subdiv2D self, @@ -17486,12 +15761,11 @@ class CvNative { } late final _Subdiv2D_GetEdgePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Subdiv2D, ffi.Int, ffi.Int, - ffi.Pointer)>>('Subdiv2D_GetEdge'); + ffi + .NativeFunction Function(Subdiv2D, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Subdiv2D_GetEdge'); late final _Subdiv2D_GetEdge = _Subdiv2D_GetEdgePtr.asFunction< - ffi.Pointer Function( - Subdiv2D, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Subdiv2D, int, int, ffi.Pointer)>(); ffi.Pointer Subdiv2D_GetEdgeList( Subdiv2D self, @@ -17508,12 +15782,9 @@ class CvNative { late final _Subdiv2D_GetEdgeListPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - Subdiv2D, - ffi.Pointer>, - ffi.Pointer)>>('Subdiv2D_GetEdgeList'); + Subdiv2D, ffi.Pointer>, ffi.Pointer)>>('Subdiv2D_GetEdgeList'); late final _Subdiv2D_GetEdgeList = _Subdiv2D_GetEdgeListPtr.asFunction< - ffi.Pointer Function( - Subdiv2D, ffi.Pointer>, ffi.Pointer)>(); + ffi.Pointer Function(Subdiv2D, ffi.Pointer>, ffi.Pointer)>(); ffi.Pointer Subdiv2D_GetLeadingEdgeList( Subdiv2D self, @@ -17525,13 +15796,11 @@ class CvNative { ); } - late final _Subdiv2D_GetLeadingEdgeListPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Subdiv2D, ffi.Pointer)>>('Subdiv2D_GetLeadingEdgeList'); - late final _Subdiv2D_GetLeadingEdgeList = - _Subdiv2D_GetLeadingEdgeListPtr.asFunction< - ffi.Pointer Function(Subdiv2D, ffi.Pointer)>(); + late final _Subdiv2D_GetLeadingEdgeListPtr = + _lookup Function(Subdiv2D, ffi.Pointer)>>( + 'Subdiv2D_GetLeadingEdgeList'); + late final _Subdiv2D_GetLeadingEdgeList = _Subdiv2D_GetLeadingEdgeListPtr.asFunction< + ffi.Pointer Function(Subdiv2D, ffi.Pointer)>(); ffi.Pointer Subdiv2D_GetTriangleList( Subdiv2D self, @@ -17548,13 +15817,9 @@ class CvNative { late final _Subdiv2D_GetTriangleListPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - Subdiv2D, - ffi.Pointer>, - ffi.Pointer)>>('Subdiv2D_GetTriangleList'); - late final _Subdiv2D_GetTriangleList = - _Subdiv2D_GetTriangleListPtr.asFunction< - ffi.Pointer Function(Subdiv2D, - ffi.Pointer>, ffi.Pointer)>(); + Subdiv2D, ffi.Pointer>, ffi.Pointer)>>('Subdiv2D_GetTriangleList'); + late final _Subdiv2D_GetTriangleList = _Subdiv2D_GetTriangleListPtr.asFunction< + ffi.Pointer Function(Subdiv2D, ffi.Pointer>, ffi.Pointer)>(); ffi.Pointer Subdiv2D_GetVertex( Subdiv2D self, @@ -17573,13 +15838,9 @@ class CvNative { late final _Subdiv2D_GetVertexPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - Subdiv2D, - ffi.Int, - ffi.Pointer, - ffi.Pointer)>>('Subdiv2D_GetVertex'); + Subdiv2D, ffi.Int, ffi.Pointer, ffi.Pointer)>>('Subdiv2D_GetVertex'); late final _Subdiv2D_GetVertex = _Subdiv2D_GetVertexPtr.asFunction< - ffi.Pointer Function( - Subdiv2D, int, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(Subdiv2D, int, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Subdiv2D_GetVoronoiFacetList( Subdiv2D self, @@ -17597,15 +15858,11 @@ class CvNative { late final _Subdiv2D_GetVoronoiFacetListPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Subdiv2D, - VecInt, - ffi.Pointer, + ffi.Pointer Function(Subdiv2D, VecInt, ffi.Pointer, ffi.Pointer)>>('Subdiv2D_GetVoronoiFacetList'); - late final _Subdiv2D_GetVoronoiFacetList = - _Subdiv2D_GetVoronoiFacetListPtr.asFunction< - ffi.Pointer Function(Subdiv2D, VecInt, - ffi.Pointer, ffi.Pointer)>(); + late final _Subdiv2D_GetVoronoiFacetList = _Subdiv2D_GetVoronoiFacetListPtr.asFunction< + ffi.Pointer Function( + Subdiv2D, VecInt, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Subdiv2D_InitDelaunay( Subdiv2D self, @@ -17617,11 +15874,10 @@ class CvNative { ); } - late final _Subdiv2D_InitDelaunayPtr = _lookup< - ffi.NativeFunction Function(Subdiv2D, Rect)>>( - 'Subdiv2D_InitDelaunay'); - late final _Subdiv2D_InitDelaunay = _Subdiv2D_InitDelaunayPtr.asFunction< - ffi.Pointer Function(Subdiv2D, Rect)>(); + late final _Subdiv2D_InitDelaunayPtr = + _lookup Function(Subdiv2D, Rect)>>('Subdiv2D_InitDelaunay'); + late final _Subdiv2D_InitDelaunay = + _Subdiv2D_InitDelaunayPtr.asFunction Function(Subdiv2D, Rect)>(); ffi.Pointer Subdiv2D_Insert( Subdiv2D self, @@ -17635,13 +15891,11 @@ class CvNative { ); } - late final _Subdiv2D_InsertPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Subdiv2D, Point2f, ffi.Pointer)>>('Subdiv2D_Insert'); + late final _Subdiv2D_InsertPtr = + _lookup Function(Subdiv2D, Point2f, ffi.Pointer)>>( + 'Subdiv2D_Insert'); late final _Subdiv2D_Insert = _Subdiv2D_InsertPtr.asFunction< - ffi.Pointer Function( - Subdiv2D, Point2f, ffi.Pointer)>(); + ffi.Pointer Function(Subdiv2D, Point2f, ffi.Pointer)>(); ffi.Pointer Subdiv2D_InsertVec( Subdiv2D self, @@ -17653,12 +15907,10 @@ class CvNative { ); } - late final _Subdiv2D_InsertVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Subdiv2D, VecPoint2f)>>('Subdiv2D_InsertVec'); - late final _Subdiv2D_InsertVec = _Subdiv2D_InsertVecPtr.asFunction< - ffi.Pointer Function(Subdiv2D, VecPoint2f)>(); + late final _Subdiv2D_InsertVecPtr = + _lookup Function(Subdiv2D, VecPoint2f)>>('Subdiv2D_InsertVec'); + late final _Subdiv2D_InsertVec = + _Subdiv2D_InsertVecPtr.asFunction Function(Subdiv2D, VecPoint2f)>(); ffi.Pointer Subdiv2D_Locate( Subdiv2D self, @@ -17678,15 +15930,11 @@ class CvNative { late final _Subdiv2D_LocatePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Subdiv2D, - Point2f, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer Function(Subdiv2D, Point2f, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('Subdiv2D_Locate'); late final _Subdiv2D_Locate = _Subdiv2D_LocatePtr.asFunction< - ffi.Pointer Function(Subdiv2D, Point2f, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Subdiv2D, Point2f, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Subdiv2D_NewEmpty( ffi.Pointer rval, @@ -17696,12 +15944,10 @@ class CvNative { ); } - late final _Subdiv2D_NewEmptyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('Subdiv2D_NewEmpty'); - late final _Subdiv2D_NewEmpty = _Subdiv2D_NewEmptyPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _Subdiv2D_NewEmptyPtr = + _lookup Function(ffi.Pointer)>>('Subdiv2D_NewEmpty'); + late final _Subdiv2D_NewEmpty = + _Subdiv2D_NewEmptyPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer Subdiv2D_NewWithRect( Rect rect, @@ -17713,12 +15959,11 @@ class CvNative { ); } - late final _Subdiv2D_NewWithRectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Rect, ffi.Pointer)>>('Subdiv2D_NewWithRect'); - late final _Subdiv2D_NewWithRect = _Subdiv2D_NewWithRectPtr.asFunction< - ffi.Pointer Function(Rect, ffi.Pointer)>(); + late final _Subdiv2D_NewWithRectPtr = + _lookup Function(Rect, ffi.Pointer)>>( + 'Subdiv2D_NewWithRect'); + late final _Subdiv2D_NewWithRect = + _Subdiv2D_NewWithRectPtr.asFunction Function(Rect, ffi.Pointer)>(); ffi.Pointer Subdiv2D_NextEdge( Subdiv2D self, @@ -17732,12 +15977,11 @@ class CvNative { ); } - late final _Subdiv2D_NextEdgePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Subdiv2D, ffi.Int, ffi.Pointer)>>('Subdiv2D_NextEdge'); - late final _Subdiv2D_NextEdge = _Subdiv2D_NextEdgePtr.asFunction< - ffi.Pointer Function(Subdiv2D, int, ffi.Pointer)>(); + late final _Subdiv2D_NextEdgePtr = + _lookup Function(Subdiv2D, ffi.Int, ffi.Pointer)>>( + 'Subdiv2D_NextEdge'); + late final _Subdiv2D_NextEdge = + _Subdiv2D_NextEdgePtr.asFunction Function(Subdiv2D, int, ffi.Pointer)>(); ffi.Pointer Subdiv2D_RotateEdge( Subdiv2D self, @@ -17754,12 +15998,11 @@ class CvNative { } late final _Subdiv2D_RotateEdgePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Subdiv2D, ffi.Int, ffi.Int, - ffi.Pointer)>>('Subdiv2D_RotateEdge'); + ffi + .NativeFunction Function(Subdiv2D, ffi.Int, ffi.Int, ffi.Pointer)>>( + 'Subdiv2D_RotateEdge'); late final _Subdiv2D_RotateEdge = _Subdiv2D_RotateEdgePtr.asFunction< - ffi.Pointer Function( - Subdiv2D, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Subdiv2D, int, int, ffi.Pointer)>(); ffi.Pointer Subdiv2D_SymEdge( Subdiv2D self, @@ -17773,12 +16016,11 @@ class CvNative { ); } - late final _Subdiv2D_SymEdgePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Subdiv2D, ffi.Int, ffi.Pointer)>>('Subdiv2D_SymEdge'); - late final _Subdiv2D_SymEdge = _Subdiv2D_SymEdgePtr.asFunction< - ffi.Pointer Function(Subdiv2D, int, ffi.Pointer)>(); + late final _Subdiv2D_SymEdgePtr = + _lookup Function(Subdiv2D, ffi.Int, ffi.Pointer)>>( + 'Subdiv2D_SymEdge'); + late final _Subdiv2D_SymEdge = + _Subdiv2D_SymEdgePtr.asFunction Function(Subdiv2D, int, ffi.Pointer)>(); ffi.Pointer TextureFlattening( Mat src, @@ -17799,11 +16041,10 @@ class CvNative { } late final _TextureFlatteningPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, ffi.Float, ffi.Float, - ffi.Int)>>('TextureFlattening'); - late final _TextureFlattening = _TextureFlatteningPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, double, double, int)>(); + ffi.NativeFunction Function(Mat, Mat, Mat, ffi.Float, ffi.Float, ffi.Int)>>( + 'TextureFlattening'); + late final _TextureFlattening = + _TextureFlatteningPtr.asFunction Function(Mat, Mat, Mat, double, double, int)>(); ffi.Pointer TheRNG( ffi.Pointer rval, @@ -17813,11 +16054,9 @@ class CvNative { ); } - late final _TheRNGPtr = _lookup< - ffi.NativeFunction Function(ffi.Pointer)>>( - 'TheRNG'); - late final _TheRNG = - _TheRNGPtr.asFunction Function(ffi.Pointer)>(); + late final _TheRNGPtr = + _lookup Function(ffi.Pointer)>>('TheRNG'); + late final _TheRNG = _TheRNGPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer Threshold( Mat src, @@ -17839,11 +16078,10 @@ class CvNative { late final _ThresholdPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Double, ffi.Double, - ffi.Int, ffi.Pointer)>>('Threshold'); + ffi.Pointer Function( + Mat, Mat, ffi.Double, ffi.Double, ffi.Int, ffi.Pointer)>>('Threshold'); late final _Threshold = _ThresholdPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, double, double, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, Mat, double, double, int, ffi.Pointer)>(); ffi.Pointer Trackbar_Create( ffi.Pointer winname, @@ -17859,11 +16097,10 @@ class CvNative { late final _Trackbar_CreatePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int)>>('Trackbar_Create'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, ffi.Int)>>('Trackbar_Create'); late final _Trackbar_Create = _Trackbar_CreatePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int)>(); ffi.Pointer Trackbar_CreateWithValue( ffi.Pointer winname, @@ -17881,15 +16118,11 @@ class CvNative { late final _Trackbar_CreateWithValuePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int)>>('Trackbar_CreateWithValue'); - late final _Trackbar_CreateWithValue = - _Trackbar_CreateWithValuePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); + late final _Trackbar_CreateWithValue = _Trackbar_CreateWithValuePtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); ffi.Pointer Trackbar_GetPos( ffi.Pointer winname, @@ -17905,11 +16138,10 @@ class CvNative { late final _Trackbar_GetPosPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('Trackbar_GetPos'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('Trackbar_GetPos'); late final _Trackbar_GetPos = _Trackbar_GetPosPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Trackbar_SetMax( ffi.Pointer winname, @@ -17925,11 +16157,10 @@ class CvNative { late final _Trackbar_SetMaxPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int)>>('Trackbar_SetMax'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, ffi.Int)>>('Trackbar_SetMax'); late final _Trackbar_SetMax = _Trackbar_SetMaxPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int)>(); ffi.Pointer Trackbar_SetMin( ffi.Pointer winname, @@ -17945,11 +16176,10 @@ class CvNative { late final _Trackbar_SetMinPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int)>>('Trackbar_SetMin'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, ffi.Int)>>('Trackbar_SetMin'); late final _Trackbar_SetMin = _Trackbar_SetMinPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int)>(); ffi.Pointer Trackbar_SetPos( ffi.Pointer winname, @@ -17965,11 +16195,10 @@ class CvNative { late final _Trackbar_SetPosPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int)>>('Trackbar_SetPos'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, ffi.Int)>>('Trackbar_SetPos'); late final _Trackbar_SetPos = _Trackbar_SetPosPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int)>(); void TrackerMIL_Close( TrackerMILPtr self, @@ -17980,10 +16209,8 @@ class CvNative { } late final _TrackerMIL_ClosePtr = - _lookup>( - 'TrackerMIL_Close'); - late final _TrackerMIL_Close = - _TrackerMIL_ClosePtr.asFunction(); + _lookup>('TrackerMIL_Close'); + late final _TrackerMIL_Close = _TrackerMIL_ClosePtr.asFunction(); ffi.Pointer TrackerMIL_Create( ffi.Pointer rval, @@ -17993,12 +16220,11 @@ class CvNative { ); } - late final _TrackerMIL_CreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('TrackerMIL_Create'); - late final _TrackerMIL_Create = _TrackerMIL_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _TrackerMIL_CreatePtr = + _lookup Function(ffi.Pointer)>>( + 'TrackerMIL_Create'); + late final _TrackerMIL_Create = + _TrackerMIL_CreatePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer TrackerMIL_Init( TrackerMIL self, @@ -18012,12 +16238,10 @@ class CvNative { ); } - late final _TrackerMIL_InitPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - TrackerMIL, Mat, Rect)>>('TrackerMIL_Init'); - late final _TrackerMIL_Init = _TrackerMIL_InitPtr.asFunction< - ffi.Pointer Function(TrackerMIL, Mat, Rect)>(); + late final _TrackerMIL_InitPtr = + _lookup Function(TrackerMIL, Mat, Rect)>>('TrackerMIL_Init'); + late final _TrackerMIL_Init = + _TrackerMIL_InitPtr.asFunction Function(TrackerMIL, Mat, Rect)>(); ffi.Pointer TrackerMIL_Update( TrackerMIL self, @@ -18035,11 +16259,10 @@ class CvNative { late final _TrackerMIL_UpdatePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(TrackerMIL, Mat, ffi.Pointer, - ffi.Pointer)>>('TrackerMIL_Update'); + ffi.Pointer Function( + TrackerMIL, Mat, ffi.Pointer, ffi.Pointer)>>('TrackerMIL_Update'); late final _TrackerMIL_Update = _TrackerMIL_UpdatePtr.asFunction< - ffi.Pointer Function( - TrackerMIL, Mat, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(TrackerMIL, Mat, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Undistort( Mat src, @@ -18057,12 +16280,9 @@ class CvNative { ); } - late final _UndistortPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, Mat)>>('Undistort'); - late final _Undistort = _UndistortPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat)>(); + late final _UndistortPtr = + _lookup Function(Mat, Mat, Mat, Mat, Mat)>>('Undistort'); + late final _Undistort = _UndistortPtr.asFunction Function(Mat, Mat, Mat, Mat, Mat)>(); ffi.Pointer UndistortPoints( Mat distorted, @@ -18084,13 +16304,11 @@ class CvNative { ); } - late final _UndistortPointsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, Mat, Mat, TermCriteria)>>('UndistortPoints'); + late final _UndistortPointsPtr = + _lookup Function(Mat, Mat, Mat, Mat, Mat, Mat, TermCriteria)>>( + 'UndistortPoints'); late final _UndistortPoints = _UndistortPointsPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, Mat, Mat, TermCriteria)>(); + ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, Mat, TermCriteria)>(); ffi.Pointer VecChar_Append( VecChar vec, @@ -18102,11 +16320,9 @@ class CvNative { ); } - late final _VecChar_AppendPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecChar, ffi.Char)>>('VecChar_Append'); - late final _VecChar_Append = _VecChar_AppendPtr.asFunction< - ffi.Pointer Function(VecChar, int)>(); + late final _VecChar_AppendPtr = + _lookup Function(VecChar, ffi.Char)>>('VecChar_Append'); + late final _VecChar_Append = _VecChar_AppendPtr.asFunction Function(VecChar, int)>(); ffi.Pointer VecChar_At( VecChar vec, @@ -18120,12 +16336,11 @@ class CvNative { ); } - late final _VecChar_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecChar, ffi.Int, ffi.Pointer)>>('VecChar_At'); - late final _VecChar_At = _VecChar_AtPtr.asFunction< - ffi.Pointer Function(VecChar, int, ffi.Pointer)>(); + late final _VecChar_AtPtr = + _lookup Function(VecChar, ffi.Int, ffi.Pointer)>>( + 'VecChar_At'); + late final _VecChar_At = + _VecChar_AtPtr.asFunction Function(VecChar, int, ffi.Pointer)>(); void VecChar_Close( VecCharPtr vec, @@ -18135,11 +16350,8 @@ class CvNative { ); } - late final _VecChar_ClosePtr = - _lookup>( - 'VecChar_Close'); - late final _VecChar_Close = - _VecChar_ClosePtr.asFunction(); + late final _VecChar_ClosePtr = _lookup>('VecChar_Close'); + late final _VecChar_Close = _VecChar_ClosePtr.asFunction(); ffi.Pointer VecChar_Data( VecChar vec, @@ -18152,12 +16364,10 @@ class CvNative { } late final _VecChar_DataPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecChar, ffi.Pointer>)>>('VecChar_Data'); + ffi.NativeFunction Function(VecChar, ffi.Pointer>)>>( + 'VecChar_Data'); late final _VecChar_Data = _VecChar_DataPtr.asFunction< - ffi.Pointer Function( - VecChar, ffi.Pointer>)>(); + ffi.Pointer Function(VecChar, ffi.Pointer>)>(); ffi.Pointer VecChar_New( ffi.Pointer rval, @@ -18167,11 +16377,10 @@ class CvNative { ); } - late final _VecChar_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('VecChar_New'); - late final _VecChar_New = _VecChar_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecChar_NewPtr = + _lookup Function(ffi.Pointer)>>('VecChar_New'); + late final _VecChar_New = + _VecChar_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecChar_NewFromPointer( ffi.Pointer p, @@ -18187,11 +16396,10 @@ class CvNative { late final _VecChar_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecChar_NewFromPointer'); + ffi.Pointer Function( + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecChar_NewFromPointer'); late final _VecChar_NewFromPointer = _VecChar_NewFromPointerPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecChar_NewFromVec( VecChar vec, @@ -18203,12 +16411,11 @@ class CvNative { ); } - late final _VecChar_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecChar, ffi.Pointer)>>('VecChar_NewFromVec'); - late final _VecChar_NewFromVec = _VecChar_NewFromVecPtr.asFunction< - ffi.Pointer Function(VecChar, ffi.Pointer)>(); + late final _VecChar_NewFromVecPtr = + _lookup Function(VecChar, ffi.Pointer)>>( + 'VecChar_NewFromVec'); + late final _VecChar_NewFromVec = + _VecChar_NewFromVecPtr.asFunction Function(VecChar, ffi.Pointer)>(); ffi.Pointer VecChar_Size( VecChar vec, @@ -18220,12 +16427,11 @@ class CvNative { ); } - late final _VecChar_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecChar, ffi.Pointer)>>('VecChar_Size'); - late final _VecChar_Size = _VecChar_SizePtr.asFunction< - ffi.Pointer Function(VecChar, ffi.Pointer)>(); + late final _VecChar_SizePtr = + _lookup Function(VecChar, ffi.Pointer)>>( + 'VecChar_Size'); + late final _VecChar_Size = + _VecChar_SizePtr.asFunction Function(VecChar, ffi.Pointer)>(); ffi.Pointer VecChar_ToString( VecChar vec, @@ -18242,12 +16448,9 @@ class CvNative { late final _VecChar_ToStringPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - VecChar, - ffi.Pointer>, - ffi.Pointer)>>('VecChar_ToString'); + VecChar, ffi.Pointer>, ffi.Pointer)>>('VecChar_ToString'); late final _VecChar_ToString = _VecChar_ToStringPtr.asFunction< - ffi.Pointer Function( - VecChar, ffi.Pointer>, ffi.Pointer)>(); + ffi.Pointer Function(VecChar, ffi.Pointer>, ffi.Pointer)>(); ffi.Pointer VecDMatch_Append( VecDMatch vec, @@ -18259,12 +16462,10 @@ class CvNative { ); } - late final _VecDMatch_AppendPtr = _lookup< - ffi - .NativeFunction Function(VecDMatch, DMatch)>>( - 'VecDMatch_Append'); - late final _VecDMatch_Append = _VecDMatch_AppendPtr.asFunction< - ffi.Pointer Function(VecDMatch, DMatch)>(); + late final _VecDMatch_AppendPtr = + _lookup Function(VecDMatch, DMatch)>>('VecDMatch_Append'); + late final _VecDMatch_Append = + _VecDMatch_AppendPtr.asFunction Function(VecDMatch, DMatch)>(); ffi.Pointer VecDMatch_At( VecDMatch vec, @@ -18278,12 +16479,11 @@ class CvNative { ); } - late final _VecDMatch_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecDMatch, ffi.Int, ffi.Pointer)>>('VecDMatch_At'); - late final _VecDMatch_At = _VecDMatch_AtPtr.asFunction< - ffi.Pointer Function(VecDMatch, int, ffi.Pointer)>(); + late final _VecDMatch_AtPtr = + _lookup Function(VecDMatch, ffi.Int, ffi.Pointer)>>( + 'VecDMatch_At'); + late final _VecDMatch_At = + _VecDMatch_AtPtr.asFunction Function(VecDMatch, int, ffi.Pointer)>(); void VecDMatch_Close( VecDMatchPtr vec, @@ -18294,10 +16494,8 @@ class CvNative { } late final _VecDMatch_ClosePtr = - _lookup>( - 'VecDMatch_Close'); - late final _VecDMatch_Close = - _VecDMatch_ClosePtr.asFunction(); + _lookup>('VecDMatch_Close'); + late final _VecDMatch_Close = _VecDMatch_ClosePtr.asFunction(); ffi.Pointer VecDMatch_New( ffi.Pointer rval, @@ -18307,12 +16505,10 @@ class CvNative { ); } - late final _VecDMatch_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecDMatch_New'); - late final _VecDMatch_New = _VecDMatch_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecDMatch_NewPtr = + _lookup Function(ffi.Pointer)>>('VecDMatch_New'); + late final _VecDMatch_New = + _VecDMatch_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecDMatch_NewFromPointer( ffi.Pointer matches, @@ -18328,12 +16524,10 @@ class CvNative { late final _VecDMatch_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecDMatch_NewFromPointer'); - late final _VecDMatch_NewFromPointer = - _VecDMatch_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecDMatch_NewFromPointer'); + late final _VecDMatch_NewFromPointer = _VecDMatch_NewFromPointerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecDMatch_NewFromVec( VecDMatch vec, @@ -18345,10 +16539,9 @@ class CvNative { ); } - late final _VecDMatch_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecDMatch, ffi.Pointer)>>('VecDMatch_NewFromVec'); + late final _VecDMatch_NewFromVecPtr = + _lookup Function(VecDMatch, ffi.Pointer)>>( + 'VecDMatch_NewFromVec'); late final _VecDMatch_NewFromVec = _VecDMatch_NewFromVecPtr.asFunction< ffi.Pointer Function(VecDMatch, ffi.Pointer)>(); @@ -18362,12 +16555,11 @@ class CvNative { ); } - late final _VecDMatch_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecDMatch, ffi.Pointer)>>('VecDMatch_Size'); - late final _VecDMatch_Size = _VecDMatch_SizePtr.asFunction< - ffi.Pointer Function(VecDMatch, ffi.Pointer)>(); + late final _VecDMatch_SizePtr = + _lookup Function(VecDMatch, ffi.Pointer)>>( + 'VecDMatch_Size'); + late final _VecDMatch_Size = + _VecDMatch_SizePtr.asFunction Function(VecDMatch, ffi.Pointer)>(); ffi.Pointer VecDouble_Append( VecDouble vec, @@ -18379,12 +16571,10 @@ class CvNative { ); } - late final _VecDouble_AppendPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecDouble, ffi.Double)>>('VecDouble_Append'); - late final _VecDouble_Append = _VecDouble_AppendPtr.asFunction< - ffi.Pointer Function(VecDouble, double)>(); + late final _VecDouble_AppendPtr = + _lookup Function(VecDouble, ffi.Double)>>('VecDouble_Append'); + late final _VecDouble_Append = + _VecDouble_AppendPtr.asFunction Function(VecDouble, double)>(); ffi.Pointer VecDouble_At( VecDouble vec, @@ -18399,12 +16589,10 @@ class CvNative { } late final _VecDouble_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecDouble, ffi.Int, ffi.Pointer)>>('VecDouble_At'); - late final _VecDouble_At = _VecDouble_AtPtr.asFunction< - ffi.Pointer Function( - VecDouble, int, ffi.Pointer)>(); + ffi.NativeFunction Function(VecDouble, ffi.Int, ffi.Pointer)>>( + 'VecDouble_At'); + late final _VecDouble_At = + _VecDouble_AtPtr.asFunction Function(VecDouble, int, ffi.Pointer)>(); void VecDouble_Close( VecDoublePtr vec, @@ -18415,10 +16603,8 @@ class CvNative { } late final _VecDouble_ClosePtr = - _lookup>( - 'VecDouble_Close'); - late final _VecDouble_Close = - _VecDouble_ClosePtr.asFunction(); + _lookup>('VecDouble_Close'); + late final _VecDouble_Close = _VecDouble_ClosePtr.asFunction(); ffi.Pointer VecDouble_Data( VecDouble vec, @@ -18432,11 +16618,9 @@ class CvNative { late final _VecDouble_DataPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecDouble, - ffi.Pointer>)>>('VecDouble_Data'); + ffi.Pointer Function(VecDouble, ffi.Pointer>)>>('VecDouble_Data'); late final _VecDouble_Data = _VecDouble_DataPtr.asFunction< - ffi.Pointer Function( - VecDouble, ffi.Pointer>)>(); + ffi.Pointer Function(VecDouble, ffi.Pointer>)>(); ffi.Pointer VecDouble_New( ffi.Pointer rval, @@ -18446,12 +16630,10 @@ class CvNative { ); } - late final _VecDouble_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecDouble_New'); - late final _VecDouble_New = _VecDouble_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecDouble_NewPtr = + _lookup Function(ffi.Pointer)>>('VecDouble_New'); + late final _VecDouble_New = + _VecDouble_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecDouble_NewFromPointer( ffi.Pointer p, @@ -18467,12 +16649,10 @@ class CvNative { late final _VecDouble_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecDouble_NewFromPointer'); - late final _VecDouble_NewFromPointer = - _VecDouble_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecDouble_NewFromPointer'); + late final _VecDouble_NewFromPointer = _VecDouble_NewFromPointerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecDouble_NewFromVec( VecDouble vec, @@ -18484,10 +16664,9 @@ class CvNative { ); } - late final _VecDouble_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecDouble, ffi.Pointer)>>('VecDouble_NewFromVec'); + late final _VecDouble_NewFromVecPtr = + _lookup Function(VecDouble, ffi.Pointer)>>( + 'VecDouble_NewFromVec'); late final _VecDouble_NewFromVec = _VecDouble_NewFromVecPtr.asFunction< ffi.Pointer Function(VecDouble, ffi.Pointer)>(); @@ -18501,12 +16680,11 @@ class CvNative { ); } - late final _VecDouble_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecDouble, ffi.Pointer)>>('VecDouble_Size'); - late final _VecDouble_Size = _VecDouble_SizePtr.asFunction< - ffi.Pointer Function(VecDouble, ffi.Pointer)>(); + late final _VecDouble_SizePtr = + _lookup Function(VecDouble, ffi.Pointer)>>( + 'VecDouble_Size'); + late final _VecDouble_Size = + _VecDouble_SizePtr.asFunction Function(VecDouble, ffi.Pointer)>(); ffi.Pointer VecFloat_Append( VecFloat vec, @@ -18518,12 +16696,10 @@ class CvNative { ); } - late final _VecFloat_AppendPtr = _lookup< - ffi - .NativeFunction Function(VecFloat, ffi.Float)>>( - 'VecFloat_Append'); - late final _VecFloat_Append = _VecFloat_AppendPtr.asFunction< - ffi.Pointer Function(VecFloat, double)>(); + late final _VecFloat_AppendPtr = + _lookup Function(VecFloat, ffi.Float)>>('VecFloat_Append'); + late final _VecFloat_Append = + _VecFloat_AppendPtr.asFunction Function(VecFloat, double)>(); ffi.Pointer VecFloat_At( VecFloat vec, @@ -18537,12 +16713,11 @@ class CvNative { ); } - late final _VecFloat_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecFloat, ffi.Int, ffi.Pointer)>>('VecFloat_At'); - late final _VecFloat_At = _VecFloat_AtPtr.asFunction< - ffi.Pointer Function(VecFloat, int, ffi.Pointer)>(); + late final _VecFloat_AtPtr = + _lookup Function(VecFloat, ffi.Int, ffi.Pointer)>>( + 'VecFloat_At'); + late final _VecFloat_At = + _VecFloat_AtPtr.asFunction Function(VecFloat, int, ffi.Pointer)>(); void VecFloat_Close( VecFloatPtr vec, @@ -18553,10 +16728,8 @@ class CvNative { } late final _VecFloat_ClosePtr = - _lookup>( - 'VecFloat_Close'); - late final _VecFloat_Close = - _VecFloat_ClosePtr.asFunction(); + _lookup>('VecFloat_Close'); + late final _VecFloat_Close = _VecFloat_ClosePtr.asFunction(); ffi.Pointer VecFloat_Data( VecFloat vec, @@ -18569,12 +16742,10 @@ class CvNative { } late final _VecFloat_DataPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecFloat, ffi.Pointer>)>>('VecFloat_Data'); + ffi.NativeFunction Function(VecFloat, ffi.Pointer>)>>( + 'VecFloat_Data'); late final _VecFloat_Data = _VecFloat_DataPtr.asFunction< - ffi.Pointer Function( - VecFloat, ffi.Pointer>)>(); + ffi.Pointer Function(VecFloat, ffi.Pointer>)>(); ffi.Pointer VecFloat_New( ffi.Pointer rval, @@ -18584,12 +16755,10 @@ class CvNative { ); } - late final _VecFloat_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecFloat_New'); - late final _VecFloat_New = _VecFloat_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecFloat_NewPtr = + _lookup Function(ffi.Pointer)>>('VecFloat_New'); + late final _VecFloat_New = + _VecFloat_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecFloat_NewFromPointer( ffi.Pointer p, @@ -18605,11 +16774,10 @@ class CvNative { late final _VecFloat_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecFloat_NewFromPointer'); + ffi.Pointer Function( + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecFloat_NewFromPointer'); late final _VecFloat_NewFromPointer = _VecFloat_NewFromPointerPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecFloat_NewFromVec( VecFloat vec, @@ -18621,12 +16789,11 @@ class CvNative { ); } - late final _VecFloat_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecFloat, ffi.Pointer)>>('VecFloat_NewFromVec'); - late final _VecFloat_NewFromVec = _VecFloat_NewFromVecPtr.asFunction< - ffi.Pointer Function(VecFloat, ffi.Pointer)>(); + late final _VecFloat_NewFromVecPtr = + _lookup Function(VecFloat, ffi.Pointer)>>( + 'VecFloat_NewFromVec'); + late final _VecFloat_NewFromVec = + _VecFloat_NewFromVecPtr.asFunction Function(VecFloat, ffi.Pointer)>(); ffi.Pointer VecFloat_Size( VecFloat vec, @@ -18638,12 +16805,11 @@ class CvNative { ); } - late final _VecFloat_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecFloat, ffi.Pointer)>>('VecFloat_Size'); - late final _VecFloat_Size = _VecFloat_SizePtr.asFunction< - ffi.Pointer Function(VecFloat, ffi.Pointer)>(); + late final _VecFloat_SizePtr = + _lookup Function(VecFloat, ffi.Pointer)>>( + 'VecFloat_Size'); + late final _VecFloat_Size = + _VecFloat_SizePtr.asFunction Function(VecFloat, ffi.Pointer)>(); ffi.Pointer VecInt_Append( VecInt vec, @@ -18655,11 +16821,9 @@ class CvNative { ); } - late final _VecInt_AppendPtr = _lookup< - ffi.NativeFunction Function(VecInt, ffi.Int)>>( - 'VecInt_Append'); - late final _VecInt_Append = _VecInt_AppendPtr.asFunction< - ffi.Pointer Function(VecInt, int)>(); + late final _VecInt_AppendPtr = + _lookup Function(VecInt, ffi.Int)>>('VecInt_Append'); + late final _VecInt_Append = _VecInt_AppendPtr.asFunction Function(VecInt, int)>(); ffi.Pointer VecInt_At( VecInt vec, @@ -18673,12 +16837,11 @@ class CvNative { ); } - late final _VecInt_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecInt, ffi.Int, ffi.Pointer)>>('VecInt_At'); - late final _VecInt_At = _VecInt_AtPtr.asFunction< - ffi.Pointer Function(VecInt, int, ffi.Pointer)>(); + late final _VecInt_AtPtr = + _lookup Function(VecInt, ffi.Int, ffi.Pointer)>>( + 'VecInt_At'); + late final _VecInt_At = + _VecInt_AtPtr.asFunction Function(VecInt, int, ffi.Pointer)>(); ffi.Pointer VecInt_AtNoBoundCheck( VecInt vec, @@ -18692,10 +16855,9 @@ class CvNative { ); } - late final _VecInt_AtNoBoundCheckPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecInt, ffi.Int, ffi.Pointer)>>('VecInt_AtNoBoundCheck'); + late final _VecInt_AtNoBoundCheckPtr = + _lookup Function(VecInt, ffi.Int, ffi.Pointer)>>( + 'VecInt_AtNoBoundCheck'); late final _VecInt_AtNoBoundCheck = _VecInt_AtNoBoundCheckPtr.asFunction< ffi.Pointer Function(VecInt, int, ffi.Pointer)>(); @@ -18707,10 +16869,8 @@ class CvNative { ); } - late final _VecInt_ClosePtr = - _lookup>('VecInt_Close'); - late final _VecInt_Close = - _VecInt_ClosePtr.asFunction(); + late final _VecInt_ClosePtr = _lookup>('VecInt_Close'); + late final _VecInt_Close = _VecInt_ClosePtr.asFunction(); ffi.Pointer VecInt_Data( VecInt vec, @@ -18722,13 +16882,11 @@ class CvNative { ); } - late final _VecInt_DataPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecInt, ffi.Pointer>)>>('VecInt_Data'); - late final _VecInt_Data = _VecInt_DataPtr.asFunction< - ffi.Pointer Function( - VecInt, ffi.Pointer>)>(); + late final _VecInt_DataPtr = + _lookup Function(VecInt, ffi.Pointer>)>>( + 'VecInt_Data'); + late final _VecInt_Data = + _VecInt_DataPtr.asFunction Function(VecInt, ffi.Pointer>)>(); ffi.Pointer VecInt_New( ffi.Pointer rval, @@ -18738,11 +16896,9 @@ class CvNative { ); } - late final _VecInt_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('VecInt_New'); - late final _VecInt_New = _VecInt_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecInt_NewPtr = + _lookup Function(ffi.Pointer)>>('VecInt_New'); + late final _VecInt_New = _VecInt_NewPtr.asFunction Function(ffi.Pointer)>(); /// Copy from a pointer ffi.Pointer VecInt_NewFromPointer( @@ -18759,11 +16915,10 @@ class CvNative { late final _VecInt_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecInt_NewFromPointer'); + ffi.Pointer Function( + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecInt_NewFromPointer'); late final _VecInt_NewFromPointer = _VecInt_NewFromPointerPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecInt_NewFromVec( VecInt vec, @@ -18775,12 +16930,11 @@ class CvNative { ); } - late final _VecInt_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecInt, ffi.Pointer)>>('VecInt_NewFromVec'); - late final _VecInt_NewFromVec = _VecInt_NewFromVecPtr.asFunction< - ffi.Pointer Function(VecInt, ffi.Pointer)>(); + late final _VecInt_NewFromVecPtr = + _lookup Function(VecInt, ffi.Pointer)>>( + 'VecInt_NewFromVec'); + late final _VecInt_NewFromVec = + _VecInt_NewFromVecPtr.asFunction Function(VecInt, ffi.Pointer)>(); ffi.Pointer VecInt_Size( VecInt vec, @@ -18792,12 +16946,11 @@ class CvNative { ); } - late final _VecInt_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecInt, ffi.Pointer)>>('VecInt_Size'); - late final _VecInt_Size = _VecInt_SizePtr.asFunction< - ffi.Pointer Function(VecInt, ffi.Pointer)>(); + late final _VecInt_SizePtr = + _lookup Function(VecInt, ffi.Pointer)>>( + 'VecInt_Size'); + late final _VecInt_Size = + _VecInt_SizePtr.asFunction Function(VecInt, ffi.Pointer)>(); ffi.Pointer VecKeyPoint_Append( VecKeyPoint vec, @@ -18809,12 +16962,11 @@ class CvNative { ); } - late final _VecKeyPoint_AppendPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecKeyPoint, KeyPoint)>>('VecKeyPoint_Append'); - late final _VecKeyPoint_Append = _VecKeyPoint_AppendPtr.asFunction< - ffi.Pointer Function(VecKeyPoint, KeyPoint)>(); + late final _VecKeyPoint_AppendPtr = + _lookup Function(VecKeyPoint, KeyPoint)>>( + 'VecKeyPoint_Append'); + late final _VecKeyPoint_Append = + _VecKeyPoint_AppendPtr.asFunction Function(VecKeyPoint, KeyPoint)>(); ffi.Pointer VecKeyPoint_At( VecKeyPoint vec, @@ -18829,12 +16981,10 @@ class CvNative { } late final _VecKeyPoint_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecKeyPoint, ffi.Int, ffi.Pointer)>>('VecKeyPoint_At'); + ffi.NativeFunction Function(VecKeyPoint, ffi.Int, ffi.Pointer)>>( + 'VecKeyPoint_At'); late final _VecKeyPoint_At = _VecKeyPoint_AtPtr.asFunction< - ffi.Pointer Function( - VecKeyPoint, int, ffi.Pointer)>(); + ffi.Pointer Function(VecKeyPoint, int, ffi.Pointer)>(); void VecKeyPoint_Close( VecKeyPointPtr vec, @@ -18845,10 +16995,8 @@ class CvNative { } late final _VecKeyPoint_ClosePtr = - _lookup>( - 'VecKeyPoint_Close'); - late final _VecKeyPoint_Close = - _VecKeyPoint_ClosePtr.asFunction(); + _lookup>('VecKeyPoint_Close'); + late final _VecKeyPoint_Close = _VecKeyPoint_ClosePtr.asFunction(); ffi.Pointer VecKeyPoint_New( ffi.Pointer rval, @@ -18858,12 +17006,11 @@ class CvNative { ); } - late final _VecKeyPoint_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecKeyPoint_New'); - late final _VecKeyPoint_New = _VecKeyPoint_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecKeyPoint_NewPtr = + _lookup Function(ffi.Pointer)>>( + 'VecKeyPoint_New'); + late final _VecKeyPoint_New = + _VecKeyPoint_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecKeyPoint_NewFromPointer( ffi.Pointer keypoints, @@ -18879,12 +17026,10 @@ class CvNative { late final _VecKeyPoint_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecKeyPoint_NewFromPointer'); - late final _VecKeyPoint_NewFromPointer = - _VecKeyPoint_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecKeyPoint_NewFromPointer'); + late final _VecKeyPoint_NewFromPointer = _VecKeyPoint_NewFromPointerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecKeyPoint_NewFromVec( VecKeyPoint vec, @@ -18896,10 +17041,9 @@ class CvNative { ); } - late final _VecKeyPoint_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecKeyPoint, - ffi.Pointer)>>('VecKeyPoint_NewFromVec'); + late final _VecKeyPoint_NewFromVecPtr = + _lookup Function(VecKeyPoint, ffi.Pointer)>>( + 'VecKeyPoint_NewFromVec'); late final _VecKeyPoint_NewFromVec = _VecKeyPoint_NewFromVecPtr.asFunction< ffi.Pointer Function(VecKeyPoint, ffi.Pointer)>(); @@ -18913,12 +17057,11 @@ class CvNative { ); } - late final _VecKeyPoint_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecKeyPoint, ffi.Pointer)>>('VecKeyPoint_Size'); - late final _VecKeyPoint_Size = _VecKeyPoint_SizePtr.asFunction< - ffi.Pointer Function(VecKeyPoint, ffi.Pointer)>(); + late final _VecKeyPoint_SizePtr = + _lookup Function(VecKeyPoint, ffi.Pointer)>>( + 'VecKeyPoint_Size'); + late final _VecKeyPoint_Size = + _VecKeyPoint_SizePtr.asFunction Function(VecKeyPoint, ffi.Pointer)>(); ffi.Pointer VecMat_Append( VecMat vec, @@ -18931,10 +17074,8 @@ class CvNative { } late final _VecMat_AppendPtr = - _lookup Function(VecMat, Mat)>>( - 'VecMat_Append'); - late final _VecMat_Append = _VecMat_AppendPtr.asFunction< - ffi.Pointer Function(VecMat, Mat)>(); + _lookup Function(VecMat, Mat)>>('VecMat_Append'); + late final _VecMat_Append = _VecMat_AppendPtr.asFunction Function(VecMat, Mat)>(); ffi.Pointer VecMat_At( VecMat vec, @@ -18948,12 +17089,11 @@ class CvNative { ); } - late final _VecMat_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecMat, ffi.Int, ffi.Pointer)>>('VecMat_At'); - late final _VecMat_At = _VecMat_AtPtr.asFunction< - ffi.Pointer Function(VecMat, int, ffi.Pointer)>(); + late final _VecMat_AtPtr = + _lookup Function(VecMat, ffi.Int, ffi.Pointer)>>( + 'VecMat_At'); + late final _VecMat_At = + _VecMat_AtPtr.asFunction Function(VecMat, int, ffi.Pointer)>(); void VecMat_Close( VecMatPtr vec, @@ -18963,10 +17103,8 @@ class CvNative { ); } - late final _VecMat_ClosePtr = - _lookup>('VecMat_Close'); - late final _VecMat_Close = - _VecMat_ClosePtr.asFunction(); + late final _VecMat_ClosePtr = _lookup>('VecMat_Close'); + late final _VecMat_Close = _VecMat_ClosePtr.asFunction(); ffi.Pointer VecMat_New( ffi.Pointer rval, @@ -18976,11 +17114,9 @@ class CvNative { ); } - late final _VecMat_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('VecMat_New'); - late final _VecMat_New = _VecMat_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecMat_NewPtr = + _lookup Function(ffi.Pointer)>>('VecMat_New'); + late final _VecMat_New = _VecMat_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecMat_NewFromPointer( ffi.Pointer mats, @@ -18995,12 +17131,10 @@ class CvNative { } late final _VecMat_NewFromPointerPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecMat_NewFromPointer'); + ffi.NativeFunction Function(ffi.Pointer, ffi.Int, ffi.Pointer)>>( + 'VecMat_NewFromPointer'); late final _VecMat_NewFromPointer = _VecMat_NewFromPointerPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecMat_NewFromVec( VecMat vec, @@ -19012,12 +17146,11 @@ class CvNative { ); } - late final _VecMat_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecMat, ffi.Pointer)>>('VecMat_NewFromVec'); - late final _VecMat_NewFromVec = _VecMat_NewFromVecPtr.asFunction< - ffi.Pointer Function(VecMat, ffi.Pointer)>(); + late final _VecMat_NewFromVecPtr = + _lookup Function(VecMat, ffi.Pointer)>>( + 'VecMat_NewFromVec'); + late final _VecMat_NewFromVec = + _VecMat_NewFromVecPtr.asFunction Function(VecMat, ffi.Pointer)>(); ffi.Pointer VecMat_Size( VecMat vec, @@ -19029,12 +17162,11 @@ class CvNative { ); } - late final _VecMat_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecMat, ffi.Pointer)>>('VecMat_Size'); - late final _VecMat_Size = _VecMat_SizePtr.asFunction< - ffi.Pointer Function(VecMat, ffi.Pointer)>(); + late final _VecMat_SizePtr = + _lookup Function(VecMat, ffi.Pointer)>>( + 'VecMat_Size'); + late final _VecMat_Size = + _VecMat_SizePtr.asFunction Function(VecMat, ffi.Pointer)>(); ffi.Pointer VecPoint2f_Append( VecPoint2f vec, @@ -19046,12 +17178,10 @@ class CvNative { ); } - late final _VecPoint2f_AppendPtr = _lookup< - ffi - .NativeFunction Function(VecPoint2f, Point2f)>>( - 'VecPoint2f_Append'); - late final _VecPoint2f_Append = _VecPoint2f_AppendPtr.asFunction< - ffi.Pointer Function(VecPoint2f, Point2f)>(); + late final _VecPoint2f_AppendPtr = + _lookup Function(VecPoint2f, Point2f)>>('VecPoint2f_Append'); + late final _VecPoint2f_Append = + _VecPoint2f_AppendPtr.asFunction Function(VecPoint2f, Point2f)>(); ffi.Pointer VecPoint2f_At( VecPoint2f vec, @@ -19065,12 +17195,11 @@ class CvNative { ); } - late final _VecPoint2f_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint2f, ffi.Int, ffi.Pointer)>>('VecPoint2f_At'); - late final _VecPoint2f_At = _VecPoint2f_AtPtr.asFunction< - ffi.Pointer Function(VecPoint2f, int, ffi.Pointer)>(); + late final _VecPoint2f_AtPtr = + _lookup Function(VecPoint2f, ffi.Int, ffi.Pointer)>>( + 'VecPoint2f_At'); + late final _VecPoint2f_At = + _VecPoint2f_AtPtr.asFunction Function(VecPoint2f, int, ffi.Pointer)>(); void VecPoint2f_Close( VecPoint2fPtr vec, @@ -19081,10 +17210,8 @@ class CvNative { } late final _VecPoint2f_ClosePtr = - _lookup>( - 'VecPoint2f_Close'); - late final _VecPoint2f_Close = - _VecPoint2f_ClosePtr.asFunction(); + _lookup>('VecPoint2f_Close'); + late final _VecPoint2f_Close = _VecPoint2f_ClosePtr.asFunction(); ffi.Pointer VecPoint2f_New( ffi.Pointer rval, @@ -19094,12 +17221,10 @@ class CvNative { ); } - late final _VecPoint2f_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecPoint2f_New'); - late final _VecPoint2f_New = _VecPoint2f_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecPoint2f_NewPtr = + _lookup Function(ffi.Pointer)>>('VecPoint2f_New'); + late final _VecPoint2f_New = + _VecPoint2f_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecPoint2f_NewFromMat( Mat mat, @@ -19111,12 +17236,11 @@ class CvNative { ); } - late final _VecPoint2f_NewFromMatPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('VecPoint2f_NewFromMat'); - late final _VecPoint2f_NewFromMat = _VecPoint2f_NewFromMatPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _VecPoint2f_NewFromMatPtr = + _lookup Function(Mat, ffi.Pointer)>>( + 'VecPoint2f_NewFromMat'); + late final _VecPoint2f_NewFromMat = + _VecPoint2f_NewFromMatPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer VecPoint2f_NewFromPointer( ffi.Pointer pts, @@ -19132,12 +17256,10 @@ class CvNative { late final _VecPoint2f_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecPoint2f_NewFromPointer'); - late final _VecPoint2f_NewFromPointer = - _VecPoint2f_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecPoint2f_NewFromPointer'); + late final _VecPoint2f_NewFromPointer = _VecPoint2f_NewFromPointerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecPoint2f_NewFromVec( VecPoint2f vec, @@ -19149,10 +17271,9 @@ class CvNative { ); } - late final _VecPoint2f_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint2f, ffi.Pointer)>>('VecPoint2f_NewFromVec'); + late final _VecPoint2f_NewFromVecPtr = + _lookup Function(VecPoint2f, ffi.Pointer)>>( + 'VecPoint2f_NewFromVec'); late final _VecPoint2f_NewFromVec = _VecPoint2f_NewFromVecPtr.asFunction< ffi.Pointer Function(VecPoint2f, ffi.Pointer)>(); @@ -19166,12 +17287,11 @@ class CvNative { ); } - late final _VecPoint2f_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint2f, ffi.Pointer)>>('VecPoint2f_Size'); - late final _VecPoint2f_Size = _VecPoint2f_SizePtr.asFunction< - ffi.Pointer Function(VecPoint2f, ffi.Pointer)>(); + late final _VecPoint2f_SizePtr = + _lookup Function(VecPoint2f, ffi.Pointer)>>( + 'VecPoint2f_Size'); + late final _VecPoint2f_Size = + _VecPoint2f_SizePtr.asFunction Function(VecPoint2f, ffi.Pointer)>(); ffi.Pointer VecPoint3f_Append( VecPoint3f vec, @@ -19183,12 +17303,10 @@ class CvNative { ); } - late final _VecPoint3f_AppendPtr = _lookup< - ffi - .NativeFunction Function(VecPoint3f, Point3f)>>( - 'VecPoint3f_Append'); - late final _VecPoint3f_Append = _VecPoint3f_AppendPtr.asFunction< - ffi.Pointer Function(VecPoint3f, Point3f)>(); + late final _VecPoint3f_AppendPtr = + _lookup Function(VecPoint3f, Point3f)>>('VecPoint3f_Append'); + late final _VecPoint3f_Append = + _VecPoint3f_AppendPtr.asFunction Function(VecPoint3f, Point3f)>(); ffi.Pointer VecPoint3f_At( VecPoint3f vec, @@ -19202,12 +17320,11 @@ class CvNative { ); } - late final _VecPoint3f_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint3f, ffi.Int, ffi.Pointer)>>('VecPoint3f_At'); - late final _VecPoint3f_At = _VecPoint3f_AtPtr.asFunction< - ffi.Pointer Function(VecPoint3f, int, ffi.Pointer)>(); + late final _VecPoint3f_AtPtr = + _lookup Function(VecPoint3f, ffi.Int, ffi.Pointer)>>( + 'VecPoint3f_At'); + late final _VecPoint3f_At = + _VecPoint3f_AtPtr.asFunction Function(VecPoint3f, int, ffi.Pointer)>(); void VecPoint3f_Close( VecPoint3fPtr vec, @@ -19218,10 +17335,8 @@ class CvNative { } late final _VecPoint3f_ClosePtr = - _lookup>( - 'VecPoint3f_Close'); - late final _VecPoint3f_Close = - _VecPoint3f_ClosePtr.asFunction(); + _lookup>('VecPoint3f_Close'); + late final _VecPoint3f_Close = _VecPoint3f_ClosePtr.asFunction(); ffi.Pointer VecPoint3f_New( ffi.Pointer rval, @@ -19231,12 +17346,10 @@ class CvNative { ); } - late final _VecPoint3f_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecPoint3f_New'); - late final _VecPoint3f_New = _VecPoint3f_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecPoint3f_NewPtr = + _lookup Function(ffi.Pointer)>>('VecPoint3f_New'); + late final _VecPoint3f_New = + _VecPoint3f_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecPoint3f_NewFromMat( Mat mat, @@ -19248,12 +17361,11 @@ class CvNative { ); } - late final _VecPoint3f_NewFromMatPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('VecPoint3f_NewFromMat'); - late final _VecPoint3f_NewFromMat = _VecPoint3f_NewFromMatPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _VecPoint3f_NewFromMatPtr = + _lookup Function(Mat, ffi.Pointer)>>( + 'VecPoint3f_NewFromMat'); + late final _VecPoint3f_NewFromMat = + _VecPoint3f_NewFromMatPtr.asFunction Function(Mat, ffi.Pointer)>(); ffi.Pointer VecPoint3f_NewFromPointer( ffi.Pointer points, @@ -19269,12 +17381,10 @@ class CvNative { late final _VecPoint3f_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecPoint3f_NewFromPointer'); - late final _VecPoint3f_NewFromPointer = - _VecPoint3f_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecPoint3f_NewFromPointer'); + late final _VecPoint3f_NewFromPointer = _VecPoint3f_NewFromPointerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecPoint3f_NewFromVec( VecPoint3f vec, @@ -19286,10 +17396,9 @@ class CvNative { ); } - late final _VecPoint3f_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint3f, ffi.Pointer)>>('VecPoint3f_NewFromVec'); + late final _VecPoint3f_NewFromVecPtr = + _lookup Function(VecPoint3f, ffi.Pointer)>>( + 'VecPoint3f_NewFromVec'); late final _VecPoint3f_NewFromVec = _VecPoint3f_NewFromVecPtr.asFunction< ffi.Pointer Function(VecPoint3f, ffi.Pointer)>(); @@ -19303,12 +17412,11 @@ class CvNative { ); } - late final _VecPoint3f_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint3f, ffi.Pointer)>>('VecPoint3f_Size'); - late final _VecPoint3f_Size = _VecPoint3f_SizePtr.asFunction< - ffi.Pointer Function(VecPoint3f, ffi.Pointer)>(); + late final _VecPoint3f_SizePtr = + _lookup Function(VecPoint3f, ffi.Pointer)>>( + 'VecPoint3f_Size'); + late final _VecPoint3f_Size = + _VecPoint3f_SizePtr.asFunction Function(VecPoint3f, ffi.Pointer)>(); ffi.Pointer VecPoint_Append( VecPoint vec, @@ -19320,11 +17428,10 @@ class CvNative { ); } - late final _VecPoint_AppendPtr = _lookup< - ffi.NativeFunction Function(VecPoint, Point)>>( - 'VecPoint_Append'); - late final _VecPoint_Append = _VecPoint_AppendPtr.asFunction< - ffi.Pointer Function(VecPoint, Point)>(); + late final _VecPoint_AppendPtr = + _lookup Function(VecPoint, Point)>>('VecPoint_Append'); + late final _VecPoint_Append = + _VecPoint_AppendPtr.asFunction Function(VecPoint, Point)>(); ffi.Pointer VecPoint_At( VecPoint vec, @@ -19338,12 +17445,11 @@ class CvNative { ); } - late final _VecPoint_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Int, ffi.Pointer)>>('VecPoint_At'); - late final _VecPoint_At = _VecPoint_AtPtr.asFunction< - ffi.Pointer Function(VecPoint, int, ffi.Pointer)>(); + late final _VecPoint_AtPtr = + _lookup Function(VecPoint, ffi.Int, ffi.Pointer)>>( + 'VecPoint_At'); + late final _VecPoint_At = + _VecPoint_AtPtr.asFunction Function(VecPoint, int, ffi.Pointer)>(); void VecPoint_Close( VecPointPtr vec, @@ -19354,10 +17460,8 @@ class CvNative { } late final _VecPoint_ClosePtr = - _lookup>( - 'VecPoint_Close'); - late final _VecPoint_Close = - _VecPoint_ClosePtr.asFunction(); + _lookup>('VecPoint_Close'); + late final _VecPoint_Close = _VecPoint_ClosePtr.asFunction(); ffi.Pointer VecPoint_New( ffi.Pointer rval, @@ -19367,12 +17471,10 @@ class CvNative { ); } - late final _VecPoint_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecPoint_New'); - late final _VecPoint_New = _VecPoint_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecPoint_NewPtr = + _lookup Function(ffi.Pointer)>>('VecPoint_New'); + late final _VecPoint_New = + _VecPoint_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecPoint_NewFromMat( Mat mat, @@ -19384,12 +17486,11 @@ class CvNative { ); } - late final _VecPoint_NewFromMatPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('VecPoint_NewFromMat'); - late final _VecPoint_NewFromMat = _VecPoint_NewFromMatPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer)>(); + late final _VecPoint_NewFromMatPtr = + _lookup Function(Mat, ffi.Pointer)>>( + 'VecPoint_NewFromMat'); + late final _VecPoint_NewFromMat = + _VecPoint_NewFromMatPtr.asFunction Function(Mat, ffi.Pointer)>(); /// Copy from a pointer ffi.Pointer VecPoint_NewFromPointer( @@ -19406,11 +17507,10 @@ class CvNative { late final _VecPoint_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecPoint_NewFromPointer'); + ffi.Pointer Function( + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecPoint_NewFromPointer'); late final _VecPoint_NewFromPointer = _VecPoint_NewFromPointerPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecPoint_NewFromVec( VecPoint vec, @@ -19422,12 +17522,11 @@ class CvNative { ); } - late final _VecPoint_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('VecPoint_NewFromVec'); - late final _VecPoint_NewFromVec = _VecPoint_NewFromVecPtr.asFunction< - ffi.Pointer Function(VecPoint, ffi.Pointer)>(); + late final _VecPoint_NewFromVecPtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'VecPoint_NewFromVec'); + late final _VecPoint_NewFromVec = + _VecPoint_NewFromVecPtr.asFunction Function(VecPoint, ffi.Pointer)>(); ffi.Pointer VecPoint_Size( VecPoint vec, @@ -19439,12 +17538,11 @@ class CvNative { ); } - late final _VecPoint_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer)>>('VecPoint_Size'); - late final _VecPoint_Size = _VecPoint_SizePtr.asFunction< - ffi.Pointer Function(VecPoint, ffi.Pointer)>(); + late final _VecPoint_SizePtr = + _lookup Function(VecPoint, ffi.Pointer)>>( + 'VecPoint_Size'); + late final _VecPoint_Size = + _VecPoint_SizePtr.asFunction Function(VecPoint, ffi.Pointer)>(); ffi.Pointer VecPrim_Append( VecPrim vec, @@ -19456,11 +17554,9 @@ class CvNative { ); } - late final _VecPrim_AppendPtr = _lookup< - ffi.NativeFunction Function(VecPrim, Prim)>>( - 'VecPrim_Append'); - late final _VecPrim_Append = _VecPrim_AppendPtr.asFunction< - ffi.Pointer Function(VecPrim, Prim)>(); + late final _VecPrim_AppendPtr = + _lookup Function(VecPrim, Prim)>>('VecPrim_Append'); + late final _VecPrim_Append = _VecPrim_AppendPtr.asFunction Function(VecPrim, Prim)>(); ffi.Pointer VecPrim_At( VecPrim vec, @@ -19474,12 +17570,11 @@ class CvNative { ); } - late final _VecPrim_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPrim, ffi.Int, ffi.Pointer)>>('VecPrim_At'); - late final _VecPrim_At = _VecPrim_AtPtr.asFunction< - ffi.Pointer Function(VecPrim, int, ffi.Pointer)>(); + late final _VecPrim_AtPtr = + _lookup Function(VecPrim, ffi.Int, ffi.Pointer)>>( + 'VecPrim_At'); + late final _VecPrim_At = + _VecPrim_AtPtr.asFunction Function(VecPrim, int, ffi.Pointer)>(); void VecPrim_Close( VecPrimPtr vec, @@ -19489,11 +17584,8 @@ class CvNative { ); } - late final _VecPrim_ClosePtr = - _lookup>( - 'VecPrim_Close'); - late final _VecPrim_Close = - _VecPrim_ClosePtr.asFunction(); + late final _VecPrim_ClosePtr = _lookup>('VecPrim_Close'); + late final _VecPrim_Close = _VecPrim_ClosePtr.asFunction(); ffi.Pointer VecPrim_New( ffi.Pointer rval, @@ -19503,11 +17595,10 @@ class CvNative { ); } - late final _VecPrim_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('VecPrim_New'); - late final _VecPrim_New = _VecPrim_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecPrim_NewPtr = + _lookup Function(ffi.Pointer)>>('VecPrim_New'); + late final _VecPrim_New = + _VecPrim_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecPrim_NewFromPointer( ffi.Pointer points, @@ -19522,12 +17613,11 @@ class CvNative { } late final _VecPrim_NewFromPointerPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecPrim_NewFromPointer'); + ffi + .NativeFunction Function(ffi.Pointer, ffi.Int, ffi.Pointer)>>( + 'VecPrim_NewFromPointer'); late final _VecPrim_NewFromPointer = _VecPrim_NewFromPointerPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecPrim_NewFromVec( VecPrim vec, @@ -19539,12 +17629,11 @@ class CvNative { ); } - late final _VecPrim_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPrim, ffi.Pointer)>>('VecPrim_NewFromVec'); - late final _VecPrim_NewFromVec = _VecPrim_NewFromVecPtr.asFunction< - ffi.Pointer Function(VecPrim, ffi.Pointer)>(); + late final _VecPrim_NewFromVecPtr = + _lookup Function(VecPrim, ffi.Pointer)>>( + 'VecPrim_NewFromVec'); + late final _VecPrim_NewFromVec = + _VecPrim_NewFromVecPtr.asFunction Function(VecPrim, ffi.Pointer)>(); ffi.Pointer VecPrim_Size( VecPrim vec, @@ -19556,12 +17645,11 @@ class CvNative { ); } - late final _VecPrim_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPrim, ffi.Pointer)>>('VecPrim_Size'); - late final _VecPrim_Size = _VecPrim_SizePtr.asFunction< - ffi.Pointer Function(VecPrim, ffi.Pointer)>(); + late final _VecPrim_SizePtr = + _lookup Function(VecPrim, ffi.Pointer)>>( + 'VecPrim_Size'); + late final _VecPrim_Size = + _VecPrim_SizePtr.asFunction Function(VecPrim, ffi.Pointer)>(); ffi.Pointer VecRect_Append( VecRect vec, @@ -19573,11 +17661,9 @@ class CvNative { ); } - late final _VecRect_AppendPtr = _lookup< - ffi.NativeFunction Function(VecRect, Rect)>>( - 'VecRect_Append'); - late final _VecRect_Append = _VecRect_AppendPtr.asFunction< - ffi.Pointer Function(VecRect, Rect)>(); + late final _VecRect_AppendPtr = + _lookup Function(VecRect, Rect)>>('VecRect_Append'); + late final _VecRect_Append = _VecRect_AppendPtr.asFunction Function(VecRect, Rect)>(); ffi.Pointer VecRect_At( VecRect vec, @@ -19591,12 +17677,11 @@ class CvNative { ); } - late final _VecRect_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecRect, ffi.Int, ffi.Pointer)>>('VecRect_At'); - late final _VecRect_At = _VecRect_AtPtr.asFunction< - ffi.Pointer Function(VecRect, int, ffi.Pointer)>(); + late final _VecRect_AtPtr = + _lookup Function(VecRect, ffi.Int, ffi.Pointer)>>( + 'VecRect_At'); + late final _VecRect_At = + _VecRect_AtPtr.asFunction Function(VecRect, int, ffi.Pointer)>(); void VecRect_Close( VecRectPtr vec, @@ -19606,11 +17691,8 @@ class CvNative { ); } - late final _VecRect_ClosePtr = - _lookup>( - 'VecRect_Close'); - late final _VecRect_Close = - _VecRect_ClosePtr.asFunction(); + late final _VecRect_ClosePtr = _lookup>('VecRect_Close'); + late final _VecRect_Close = _VecRect_ClosePtr.asFunction(); ffi.Pointer VecRect_New( ffi.Pointer rval, @@ -19620,11 +17702,10 @@ class CvNative { ); } - late final _VecRect_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>('VecRect_New'); - late final _VecRect_New = _VecRect_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecRect_NewPtr = + _lookup Function(ffi.Pointer)>>('VecRect_New'); + late final _VecRect_New = + _VecRect_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecRect_NewFromPointer( ffi.Pointer rects, @@ -19639,12 +17720,11 @@ class CvNative { } late final _VecRect_NewFromPointerPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecRect_NewFromPointer'); + ffi + .NativeFunction Function(ffi.Pointer, ffi.Int, ffi.Pointer)>>( + 'VecRect_NewFromPointer'); late final _VecRect_NewFromPointer = _VecRect_NewFromPointerPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecRect_NewFromVec( VecRect vec, @@ -19656,12 +17736,11 @@ class CvNative { ); } - late final _VecRect_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecRect, ffi.Pointer)>>('VecRect_NewFromVec'); - late final _VecRect_NewFromVec = _VecRect_NewFromVecPtr.asFunction< - ffi.Pointer Function(VecRect, ffi.Pointer)>(); + late final _VecRect_NewFromVecPtr = + _lookup Function(VecRect, ffi.Pointer)>>( + 'VecRect_NewFromVec'); + late final _VecRect_NewFromVec = + _VecRect_NewFromVecPtr.asFunction Function(VecRect, ffi.Pointer)>(); ffi.Pointer VecRect_Size( VecRect vec, @@ -19673,12 +17752,11 @@ class CvNative { ); } - late final _VecRect_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecRect, ffi.Pointer)>>('VecRect_Size'); - late final _VecRect_Size = _VecRect_SizePtr.asFunction< - ffi.Pointer Function(VecRect, ffi.Pointer)>(); + late final _VecRect_SizePtr = + _lookup Function(VecRect, ffi.Pointer)>>( + 'VecRect_Size'); + late final _VecRect_Size = + _VecRect_SizePtr.asFunction Function(VecRect, ffi.Pointer)>(); ffi.Pointer VecUChar_Append( VecUChar vec, @@ -19690,11 +17768,10 @@ class CvNative { ); } - late final _VecUChar_AppendPtr = _lookup< - ffi.NativeFunction Function(VecUChar, uchar)>>( - 'VecUChar_Append'); - late final _VecUChar_Append = _VecUChar_AppendPtr.asFunction< - ffi.Pointer Function(VecUChar, int)>(); + late final _VecUChar_AppendPtr = + _lookup Function(VecUChar, uchar)>>('VecUChar_Append'); + late final _VecUChar_Append = + _VecUChar_AppendPtr.asFunction Function(VecUChar, int)>(); ffi.Pointer VecUChar_At( VecUChar vec, @@ -19708,12 +17785,11 @@ class CvNative { ); } - late final _VecUChar_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecUChar, ffi.Int, ffi.Pointer)>>('VecUChar_At'); - late final _VecUChar_At = _VecUChar_AtPtr.asFunction< - ffi.Pointer Function(VecUChar, int, ffi.Pointer)>(); + late final _VecUChar_AtPtr = + _lookup Function(VecUChar, ffi.Int, ffi.Pointer)>>( + 'VecUChar_At'); + late final _VecUChar_At = + _VecUChar_AtPtr.asFunction Function(VecUChar, int, ffi.Pointer)>(); ffi.Pointer VecUChar_AtNoBoundCheck( VecUChar vec, @@ -19727,10 +17803,9 @@ class CvNative { ); } - late final _VecUChar_AtNoBoundCheckPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecUChar, ffi.Int, - ffi.Pointer)>>('VecUChar_AtNoBoundCheck'); + late final _VecUChar_AtNoBoundCheckPtr = + _lookup Function(VecUChar, ffi.Int, ffi.Pointer)>>( + 'VecUChar_AtNoBoundCheck'); late final _VecUChar_AtNoBoundCheck = _VecUChar_AtNoBoundCheckPtr.asFunction< ffi.Pointer Function(VecUChar, int, ffi.Pointer)>(); @@ -19743,10 +17818,8 @@ class CvNative { } late final _VecUChar_ClosePtr = - _lookup>( - 'VecUChar_Close'); - late final _VecUChar_Close = - _VecUChar_ClosePtr.asFunction(); + _lookup>('VecUChar_Close'); + late final _VecUChar_Close = _VecUChar_ClosePtr.asFunction(); ffi.Pointer VecUChar_Data( VecUChar vec, @@ -19758,13 +17831,11 @@ class CvNative { ); } - late final _VecUChar_DataPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecUChar, ffi.Pointer>)>>('VecUChar_Data'); + late final _VecUChar_DataPtr = + _lookup Function(VecUChar, ffi.Pointer>)>>( + 'VecUChar_Data'); late final _VecUChar_Data = _VecUChar_DataPtr.asFunction< - ffi.Pointer Function( - VecUChar, ffi.Pointer>)>(); + ffi.Pointer Function(VecUChar, ffi.Pointer>)>(); ffi.Pointer VecUChar_New( ffi.Pointer rval, @@ -19774,12 +17845,10 @@ class CvNative { ); } - late final _VecUChar_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecUChar_New'); - late final _VecUChar_New = _VecUChar_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecUChar_NewPtr = + _lookup Function(ffi.Pointer)>>('VecUChar_New'); + late final _VecUChar_New = + _VecUChar_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecUChar_NewFromPointer( ffi.Pointer p, @@ -19795,11 +17864,10 @@ class CvNative { late final _VecUChar_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecUChar_NewFromPointer'); + ffi.Pointer Function( + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecUChar_NewFromPointer'); late final _VecUChar_NewFromPointer = _VecUChar_NewFromPointerPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecUChar_NewFromVec( VecUChar vec, @@ -19811,12 +17879,11 @@ class CvNative { ); } - late final _VecUChar_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecUChar, ffi.Pointer)>>('VecUChar_NewFromVec'); - late final _VecUChar_NewFromVec = _VecUChar_NewFromVecPtr.asFunction< - ffi.Pointer Function(VecUChar, ffi.Pointer)>(); + late final _VecUChar_NewFromVecPtr = + _lookup Function(VecUChar, ffi.Pointer)>>( + 'VecUChar_NewFromVec'); + late final _VecUChar_NewFromVec = + _VecUChar_NewFromVecPtr.asFunction Function(VecUChar, ffi.Pointer)>(); ffi.Pointer VecUChar_Size( VecUChar vec, @@ -19828,12 +17895,11 @@ class CvNative { ); } - late final _VecUChar_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecUChar, ffi.Pointer)>>('VecUChar_Size'); - late final _VecUChar_Size = _VecUChar_SizePtr.asFunction< - ffi.Pointer Function(VecUChar, ffi.Pointer)>(); + late final _VecUChar_SizePtr = + _lookup Function(VecUChar, ffi.Pointer)>>( + 'VecUChar_Size'); + late final _VecUChar_Size = + _VecUChar_SizePtr.asFunction Function(VecUChar, ffi.Pointer)>(); ffi.Pointer VecVec4i_Append( VecVec4i vec, @@ -19845,11 +17911,10 @@ class CvNative { ); } - late final _VecVec4i_AppendPtr = _lookup< - ffi.NativeFunction Function(VecVec4i, Vec4i)>>( - 'VecVec4i_Append'); - late final _VecVec4i_Append = _VecVec4i_AppendPtr.asFunction< - ffi.Pointer Function(VecVec4i, Vec4i)>(); + late final _VecVec4i_AppendPtr = + _lookup Function(VecVec4i, Vec4i)>>('VecVec4i_Append'); + late final _VecVec4i_Append = + _VecVec4i_AppendPtr.asFunction Function(VecVec4i, Vec4i)>(); ffi.Pointer VecVec4i_At( VecVec4i vec, @@ -19863,12 +17928,11 @@ class CvNative { ); } - late final _VecVec4i_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVec4i, ffi.Int, ffi.Pointer)>>('VecVec4i_At'); - late final _VecVec4i_At = _VecVec4i_AtPtr.asFunction< - ffi.Pointer Function(VecVec4i, int, ffi.Pointer)>(); + late final _VecVec4i_AtPtr = + _lookup Function(VecVec4i, ffi.Int, ffi.Pointer)>>( + 'VecVec4i_At'); + late final _VecVec4i_At = + _VecVec4i_AtPtr.asFunction Function(VecVec4i, int, ffi.Pointer)>(); void VecVec4i_Close( VecVec4iPtr vec, @@ -19879,10 +17943,8 @@ class CvNative { } late final _VecVec4i_ClosePtr = - _lookup>( - 'VecVec4i_Close'); - late final _VecVec4i_Close = - _VecVec4i_ClosePtr.asFunction(); + _lookup>('VecVec4i_Close'); + late final _VecVec4i_Close = _VecVec4i_ClosePtr.asFunction(); ffi.Pointer VecVec4i_New( ffi.Pointer rval, @@ -19892,12 +17954,10 @@ class CvNative { ); } - late final _VecVec4i_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecVec4i_New'); - late final _VecVec4i_New = _VecVec4i_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecVec4i_NewPtr = + _lookup Function(ffi.Pointer)>>('VecVec4i_New'); + late final _VecVec4i_New = + _VecVec4i_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecVec4i_NewFromPointer( ffi.Pointer data, @@ -19913,11 +17973,10 @@ class CvNative { late final _VecVec4i_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecVec4i_NewFromPointer'); + ffi.Pointer Function( + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecVec4i_NewFromPointer'); late final _VecVec4i_NewFromPointer = _VecVec4i_NewFromPointerPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecVec4i_Size( VecVec4i vec, @@ -19929,12 +17988,11 @@ class CvNative { ); } - late final _VecVec4i_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVec4i, ffi.Pointer)>>('VecVec4i_Size'); - late final _VecVec4i_Size = _VecVec4i_SizePtr.asFunction< - ffi.Pointer Function(VecVec4i, ffi.Pointer)>(); + late final _VecVec4i_SizePtr = + _lookup Function(VecVec4i, ffi.Pointer)>>( + 'VecVec4i_Size'); + late final _VecVec4i_Size = + _VecVec4i_SizePtr.asFunction Function(VecVec4i, ffi.Pointer)>(); ffi.Pointer VecVecChar_Append( VecVecChar vec, @@ -19946,12 +18004,10 @@ class CvNative { ); } - late final _VecVecChar_AppendPtr = _lookup< - ffi - .NativeFunction Function(VecVecChar, VecChar)>>( - 'VecVecChar_Append'); - late final _VecVecChar_Append = _VecVecChar_AppendPtr.asFunction< - ffi.Pointer Function(VecVecChar, VecChar)>(); + late final _VecVecChar_AppendPtr = + _lookup Function(VecVecChar, VecChar)>>('VecVecChar_Append'); + late final _VecVecChar_Append = + _VecVecChar_AppendPtr.asFunction Function(VecVecChar, VecChar)>(); ffi.Pointer VecVecChar_Append_Str( VecVecChar vec, @@ -19963,10 +18019,9 @@ class CvNative { ); } - late final _VecVecChar_Append_StrPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVecChar, ffi.Pointer)>>('VecVecChar_Append_Str'); + late final _VecVecChar_Append_StrPtr = + _lookup Function(VecVecChar, ffi.Pointer)>>( + 'VecVecChar_Append_Str'); late final _VecVecChar_Append_Str = _VecVecChar_Append_StrPtr.asFunction< ffi.Pointer Function(VecVecChar, ffi.Pointer)>(); @@ -19982,12 +18037,11 @@ class CvNative { ); } - late final _VecVecChar_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVecChar, ffi.Int, ffi.Pointer)>>('VecVecChar_At'); - late final _VecVecChar_At = _VecVecChar_AtPtr.asFunction< - ffi.Pointer Function(VecVecChar, int, ffi.Pointer)>(); + late final _VecVecChar_AtPtr = + _lookup Function(VecVecChar, ffi.Int, ffi.Pointer)>>( + 'VecVecChar_At'); + late final _VecVecChar_At = + _VecVecChar_AtPtr.asFunction Function(VecVecChar, int, ffi.Pointer)>(); ffi.Pointer VecVecChar_At_Str( VecVecChar vec, @@ -20005,14 +18059,11 @@ class CvNative { late final _VecVecChar_At_StrPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecVecChar, - ffi.Int, - ffi.Pointer>, + ffi.Pointer Function(VecVecChar, ffi.Int, ffi.Pointer>, ffi.Pointer)>>('VecVecChar_At_Str'); late final _VecVecChar_At_Str = _VecVecChar_At_StrPtr.asFunction< - ffi.Pointer Function(VecVecChar, int, - ffi.Pointer>, ffi.Pointer)>(); + ffi.Pointer Function( + VecVecChar, int, ffi.Pointer>, ffi.Pointer)>(); void VecVecChar_Close( VecVecCharPtr vec, @@ -20023,10 +18074,8 @@ class CvNative { } late final _VecVecChar_ClosePtr = - _lookup>( - 'VecVecChar_Close'); - late final _VecVecChar_Close = - _VecVecChar_ClosePtr.asFunction(); + _lookup>('VecVecChar_Close'); + late final _VecVecChar_Close = _VecVecChar_ClosePtr.asFunction(); ffi.Pointer VecVecChar_New( ffi.Pointer rval, @@ -20036,12 +18085,10 @@ class CvNative { ); } - late final _VecVecChar_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecVecChar_New'); - late final _VecVecChar_New = _VecVecChar_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecVecChar_NewPtr = + _lookup Function(ffi.Pointer)>>('VecVecChar_New'); + late final _VecVecChar_New = + _VecVecChar_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecVecChar_NewFromVec( VecVecChar vec, @@ -20053,10 +18100,9 @@ class CvNative { ); } - late final _VecVecChar_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVecChar, ffi.Pointer)>>('VecVecChar_NewFromVec'); + late final _VecVecChar_NewFromVecPtr = + _lookup Function(VecVecChar, ffi.Pointer)>>( + 'VecVecChar_NewFromVec'); late final _VecVecChar_NewFromVec = _VecVecChar_NewFromVecPtr.asFunction< ffi.Pointer Function(VecVecChar, ffi.Pointer)>(); @@ -20070,12 +18116,11 @@ class CvNative { ); } - late final _VecVecChar_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVecChar, ffi.Pointer)>>('VecVecChar_Size'); - late final _VecVecChar_Size = _VecVecChar_SizePtr.asFunction< - ffi.Pointer Function(VecVecChar, ffi.Pointer)>(); + late final _VecVecChar_SizePtr = + _lookup Function(VecVecChar, ffi.Pointer)>>( + 'VecVecChar_Size'); + late final _VecVecChar_Size = + _VecVecChar_SizePtr.asFunction Function(VecVecChar, ffi.Pointer)>(); ffi.Pointer VecVecDMatch_Append( VecVecDMatch vec, @@ -20087,12 +18132,11 @@ class CvNative { ); } - late final _VecVecDMatch_AppendPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVecDMatch, VecDMatch)>>('VecVecDMatch_Append'); - late final _VecVecDMatch_Append = _VecVecDMatch_AppendPtr.asFunction< - ffi.Pointer Function(VecVecDMatch, VecDMatch)>(); + late final _VecVecDMatch_AppendPtr = + _lookup Function(VecVecDMatch, VecDMatch)>>( + 'VecVecDMatch_Append'); + late final _VecVecDMatch_Append = + _VecVecDMatch_AppendPtr.asFunction Function(VecVecDMatch, VecDMatch)>(); ffi.Pointer VecVecDMatch_At( VecVecDMatch vec, @@ -20107,12 +18151,10 @@ class CvNative { } late final _VecVecDMatch_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecVecDMatch, ffi.Int, - ffi.Pointer)>>('VecVecDMatch_At'); + ffi.NativeFunction Function(VecVecDMatch, ffi.Int, ffi.Pointer)>>( + 'VecVecDMatch_At'); late final _VecVecDMatch_At = _VecVecDMatch_AtPtr.asFunction< - ffi.Pointer Function( - VecVecDMatch, int, ffi.Pointer)>(); + ffi.Pointer Function(VecVecDMatch, int, ffi.Pointer)>(); void VecVecDMatch_Close( VecVecDMatchPtr vec, @@ -20123,10 +18165,8 @@ class CvNative { } late final _VecVecDMatch_ClosePtr = - _lookup>( - 'VecVecDMatch_Close'); - late final _VecVecDMatch_Close = - _VecVecDMatch_ClosePtr.asFunction(); + _lookup>('VecVecDMatch_Close'); + late final _VecVecDMatch_Close = _VecVecDMatch_ClosePtr.asFunction(); ffi.Pointer VecVecDMatch_Data( VecVecDMatch vec, @@ -20139,12 +18179,11 @@ class CvNative { } late final _VecVecDMatch_DataPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecVecDMatch, - ffi.Pointer>)>>('VecVecDMatch_Data'); + ffi + .NativeFunction Function(VecVecDMatch, ffi.Pointer>)>>( + 'VecVecDMatch_Data'); late final _VecVecDMatch_Data = _VecVecDMatch_DataPtr.asFunction< - ffi.Pointer Function( - VecVecDMatch, ffi.Pointer>)>(); + ffi.Pointer Function(VecVecDMatch, ffi.Pointer>)>(); ffi.Pointer VecVecDMatch_New( ffi.Pointer rval, @@ -20154,12 +18193,11 @@ class CvNative { ); } - late final _VecVecDMatch_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecVecDMatch_New'); - late final _VecVecDMatch_New = _VecVecDMatch_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecVecDMatch_NewPtr = + _lookup Function(ffi.Pointer)>>( + 'VecVecDMatch_New'); + late final _VecVecDMatch_New = + _VecVecDMatch_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecVecDMatch_NewFromPointer( ffi.Pointer matches, @@ -20175,12 +18213,10 @@ class CvNative { late final _VecVecDMatch_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecVecDMatch_NewFromPointer'); - late final _VecVecDMatch_NewFromPointer = - _VecVecDMatch_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecVecDMatch_NewFromPointer'); + late final _VecVecDMatch_NewFromPointer = _VecVecDMatch_NewFromPointerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecVecDMatch_NewFromVec( VecVecDMatch vec, @@ -20192,13 +18228,11 @@ class CvNative { ); } - late final _VecVecDMatch_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecVecDMatch, - ffi.Pointer)>>('VecVecDMatch_NewFromVec'); + late final _VecVecDMatch_NewFromVecPtr = + _lookup Function(VecVecDMatch, ffi.Pointer)>>( + 'VecVecDMatch_NewFromVec'); late final _VecVecDMatch_NewFromVec = _VecVecDMatch_NewFromVecPtr.asFunction< - ffi.Pointer Function( - VecVecDMatch, ffi.Pointer)>(); + ffi.Pointer Function(VecVecDMatch, ffi.Pointer)>(); ffi.Pointer VecVecDMatch_Size( VecVecDMatch vec, @@ -20210,12 +18244,11 @@ class CvNative { ); } - late final _VecVecDMatch_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVecDMatch, ffi.Pointer)>>('VecVecDMatch_Size'); - late final _VecVecDMatch_Size = _VecVecDMatch_SizePtr.asFunction< - ffi.Pointer Function(VecVecDMatch, ffi.Pointer)>(); + late final _VecVecDMatch_SizePtr = + _lookup Function(VecVecDMatch, ffi.Pointer)>>( + 'VecVecDMatch_Size'); + late final _VecVecDMatch_Size = + _VecVecDMatch_SizePtr.asFunction Function(VecVecDMatch, ffi.Pointer)>(); ffi.Pointer VecVecPoint2f_Append( VecVecPoint2f vec, @@ -20227,12 +18260,11 @@ class CvNative { ); } - late final _VecVecPoint2f_AppendPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVecPoint2f, VecPoint2f)>>('VecVecPoint2f_Append'); - late final _VecVecPoint2f_Append = _VecVecPoint2f_AppendPtr.asFunction< - ffi.Pointer Function(VecVecPoint2f, VecPoint2f)>(); + late final _VecVecPoint2f_AppendPtr = + _lookup Function(VecVecPoint2f, VecPoint2f)>>( + 'VecVecPoint2f_Append'); + late final _VecVecPoint2f_Append = + _VecVecPoint2f_AppendPtr.asFunction Function(VecVecPoint2f, VecPoint2f)>(); ffi.Pointer VecVecPoint2f_At( VecVecPoint2f vec, @@ -20247,12 +18279,11 @@ class CvNative { } late final _VecVecPoint2f_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecVecPoint2f, ffi.Int, - ffi.Pointer)>>('VecVecPoint2f_At'); + ffi + .NativeFunction Function(VecVecPoint2f, ffi.Int, ffi.Pointer)>>( + 'VecVecPoint2f_At'); late final _VecVecPoint2f_At = _VecVecPoint2f_AtPtr.asFunction< - ffi.Pointer Function( - VecVecPoint2f, int, ffi.Pointer)>(); + ffi.Pointer Function(VecVecPoint2f, int, ffi.Pointer)>(); void VecVecPoint2f_Close( VecVecPoint2fPtr vec, @@ -20263,10 +18294,8 @@ class CvNative { } late final _VecVecPoint2f_ClosePtr = - _lookup>( - 'VecVecPoint2f_Close'); - late final _VecVecPoint2f_Close = - _VecVecPoint2f_ClosePtr.asFunction(); + _lookup>('VecVecPoint2f_Close'); + late final _VecVecPoint2f_Close = _VecVecPoint2f_ClosePtr.asFunction(); ffi.Pointer VecVecPoint2f_New( ffi.Pointer rval, @@ -20276,12 +18305,11 @@ class CvNative { ); } - late final _VecVecPoint2f_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecVecPoint2f_New'); - late final _VecVecPoint2f_New = _VecVecPoint2f_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecVecPoint2f_NewPtr = + _lookup Function(ffi.Pointer)>>( + 'VecVecPoint2f_New'); + late final _VecVecPoint2f_New = + _VecVecPoint2f_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecVecPoint2f_NewFromPointer( ffi.Pointer points, @@ -20297,12 +18325,10 @@ class CvNative { late final _VecVecPoint2f_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecVecPoint2f_NewFromPointer'); - late final _VecVecPoint2f_NewFromPointer = - _VecVecPoint2f_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecVecPoint2f_NewFromPointer'); + late final _VecVecPoint2f_NewFromPointer = _VecVecPoint2f_NewFromPointerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecVecPoint2f_NewFromVec( VecVecPoint2f vec, @@ -20314,14 +18340,11 @@ class CvNative { ); } - late final _VecVecPoint2f_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecVecPoint2f, - ffi.Pointer)>>('VecVecPoint2f_NewFromVec'); - late final _VecVecPoint2f_NewFromVec = - _VecVecPoint2f_NewFromVecPtr.asFunction< - ffi.Pointer Function( - VecVecPoint2f, ffi.Pointer)>(); + late final _VecVecPoint2f_NewFromVecPtr = + _lookup Function(VecVecPoint2f, ffi.Pointer)>>( + 'VecVecPoint2f_NewFromVec'); + late final _VecVecPoint2f_NewFromVec = _VecVecPoint2f_NewFromVecPtr.asFunction< + ffi.Pointer Function(VecVecPoint2f, ffi.Pointer)>(); ffi.Pointer VecVecPoint2f_Size( VecVecPoint2f vec, @@ -20333,10 +18356,9 @@ class CvNative { ); } - late final _VecVecPoint2f_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVecPoint2f, ffi.Pointer)>>('VecVecPoint2f_Size'); + late final _VecVecPoint2f_SizePtr = + _lookup Function(VecVecPoint2f, ffi.Pointer)>>( + 'VecVecPoint2f_Size'); late final _VecVecPoint2f_Size = _VecVecPoint2f_SizePtr.asFunction< ffi.Pointer Function(VecVecPoint2f, ffi.Pointer)>(); @@ -20350,12 +18372,11 @@ class CvNative { ); } - late final _VecVecPoint3f_AppendPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVecPoint3f, VecPoint3f)>>('VecVecPoint3f_Append'); - late final _VecVecPoint3f_Append = _VecVecPoint3f_AppendPtr.asFunction< - ffi.Pointer Function(VecVecPoint3f, VecPoint3f)>(); + late final _VecVecPoint3f_AppendPtr = + _lookup Function(VecVecPoint3f, VecPoint3f)>>( + 'VecVecPoint3f_Append'); + late final _VecVecPoint3f_Append = + _VecVecPoint3f_AppendPtr.asFunction Function(VecVecPoint3f, VecPoint3f)>(); ffi.Pointer VecVecPoint3f_At( VecVecPoint3f vec, @@ -20370,12 +18391,11 @@ class CvNative { } late final _VecVecPoint3f_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecVecPoint3f, ffi.Int, - ffi.Pointer)>>('VecVecPoint3f_At'); + ffi + .NativeFunction Function(VecVecPoint3f, ffi.Int, ffi.Pointer)>>( + 'VecVecPoint3f_At'); late final _VecVecPoint3f_At = _VecVecPoint3f_AtPtr.asFunction< - ffi.Pointer Function( - VecVecPoint3f, int, ffi.Pointer)>(); + ffi.Pointer Function(VecVecPoint3f, int, ffi.Pointer)>(); void VecVecPoint3f_Close( VecVecPoint3fPtr vec, @@ -20386,10 +18406,8 @@ class CvNative { } late final _VecVecPoint3f_ClosePtr = - _lookup>( - 'VecVecPoint3f_Close'); - late final _VecVecPoint3f_Close = - _VecVecPoint3f_ClosePtr.asFunction(); + _lookup>('VecVecPoint3f_Close'); + late final _VecVecPoint3f_Close = _VecVecPoint3f_ClosePtr.asFunction(); ffi.Pointer VecVecPoint3f_New( ffi.Pointer rval, @@ -20399,12 +18417,11 @@ class CvNative { ); } - late final _VecVecPoint3f_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecVecPoint3f_New'); - late final _VecVecPoint3f_New = _VecVecPoint3f_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecVecPoint3f_NewPtr = + _lookup Function(ffi.Pointer)>>( + 'VecVecPoint3f_New'); + late final _VecVecPoint3f_New = + _VecVecPoint3f_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecVecPoint3f_NewFromPointer( ffi.Pointer points, @@ -20420,12 +18437,10 @@ class CvNative { late final _VecVecPoint3f_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecVecPoint3f_NewFromPointer'); - late final _VecVecPoint3f_NewFromPointer = - _VecVecPoint3f_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecVecPoint3f_NewFromPointer'); + late final _VecVecPoint3f_NewFromPointer = _VecVecPoint3f_NewFromPointerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecVecPoint3f_NewFromVec( VecVecPoint3f vec, @@ -20437,14 +18452,11 @@ class CvNative { ); } - late final _VecVecPoint3f_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecVecPoint3f, - ffi.Pointer)>>('VecVecPoint3f_NewFromVec'); - late final _VecVecPoint3f_NewFromVec = - _VecVecPoint3f_NewFromVecPtr.asFunction< - ffi.Pointer Function( - VecVecPoint3f, ffi.Pointer)>(); + late final _VecVecPoint3f_NewFromVecPtr = + _lookup Function(VecVecPoint3f, ffi.Pointer)>>( + 'VecVecPoint3f_NewFromVec'); + late final _VecVecPoint3f_NewFromVec = _VecVecPoint3f_NewFromVecPtr.asFunction< + ffi.Pointer Function(VecVecPoint3f, ffi.Pointer)>(); ffi.Pointer VecVecPoint3f_Size( VecVecPoint3f vec, @@ -20456,10 +18468,9 @@ class CvNative { ); } - late final _VecVecPoint3f_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVecPoint3f, ffi.Pointer)>>('VecVecPoint3f_Size'); + late final _VecVecPoint3f_SizePtr = + _lookup Function(VecVecPoint3f, ffi.Pointer)>>( + 'VecVecPoint3f_Size'); late final _VecVecPoint3f_Size = _VecVecPoint3f_SizePtr.asFunction< ffi.Pointer Function(VecVecPoint3f, ffi.Pointer)>(); @@ -20473,12 +18484,11 @@ class CvNative { ); } - late final _VecVecPoint_AppendPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVecPoint, VecPoint)>>('VecVecPoint_Append'); - late final _VecVecPoint_Append = _VecVecPoint_AppendPtr.asFunction< - ffi.Pointer Function(VecVecPoint, VecPoint)>(); + late final _VecVecPoint_AppendPtr = + _lookup Function(VecVecPoint, VecPoint)>>( + 'VecVecPoint_Append'); + late final _VecVecPoint_Append = + _VecVecPoint_AppendPtr.asFunction Function(VecVecPoint, VecPoint)>(); ffi.Pointer VecVecPoint_At( VecVecPoint vec, @@ -20493,12 +18503,10 @@ class CvNative { } late final _VecVecPoint_AtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVecPoint, ffi.Int, ffi.Pointer)>>('VecVecPoint_At'); + ffi.NativeFunction Function(VecVecPoint, ffi.Int, ffi.Pointer)>>( + 'VecVecPoint_At'); late final _VecVecPoint_At = _VecVecPoint_AtPtr.asFunction< - ffi.Pointer Function( - VecVecPoint, int, ffi.Pointer)>(); + ffi.Pointer Function(VecVecPoint, int, ffi.Pointer)>(); void VecVecPoint_Close( VecVecPointPtr vec, @@ -20509,10 +18517,8 @@ class CvNative { } late final _VecVecPoint_ClosePtr = - _lookup>( - 'VecVecPoint_Close'); - late final _VecVecPoint_Close = - _VecVecPoint_ClosePtr.asFunction(); + _lookup>('VecVecPoint_Close'); + late final _VecVecPoint_Close = _VecVecPoint_ClosePtr.asFunction(); ffi.Pointer VecVecPoint_New( ffi.Pointer rval, @@ -20522,12 +18528,11 @@ class CvNative { ); } - late final _VecVecPoint_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VecVecPoint_New'); - late final _VecVecPoint_New = _VecVecPoint_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VecVecPoint_NewPtr = + _lookup Function(ffi.Pointer)>>( + 'VecVecPoint_New'); + late final _VecVecPoint_New = + _VecVecPoint_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VecVecPoint_NewFromPointer( ffi.Pointer points, @@ -20543,12 +18548,10 @@ class CvNative { late final _VecVecPoint_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VecVecPoint_NewFromPointer'); - late final _VecVecPoint_NewFromPointer = - _VecVecPoint_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecVecPoint_NewFromPointer'); + late final _VecVecPoint_NewFromPointer = _VecVecPoint_NewFromPointerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecVecPoint_NewFromVec( VecVecPoint vec, @@ -20560,10 +18563,9 @@ class CvNative { ); } - late final _VecVecPoint_NewFromVecPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecVecPoint, - ffi.Pointer)>>('VecVecPoint_NewFromVec'); + late final _VecVecPoint_NewFromVecPtr = + _lookup Function(VecVecPoint, ffi.Pointer)>>( + 'VecVecPoint_NewFromVec'); late final _VecVecPoint_NewFromVec = _VecVecPoint_NewFromVecPtr.asFunction< ffi.Pointer Function(VecVecPoint, ffi.Pointer)>(); @@ -20577,12 +18579,11 @@ class CvNative { ); } - late final _VecVecPoint_SizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecVecPoint, ffi.Pointer)>>('VecVecPoint_Size'); - late final _VecVecPoint_Size = _VecVecPoint_SizePtr.asFunction< - ffi.Pointer Function(VecVecPoint, ffi.Pointer)>(); + late final _VecVecPoint_SizePtr = + _lookup Function(VecVecPoint, ffi.Pointer)>>( + 'VecVecPoint_Size'); + late final _VecVecPoint_Size = + _VecVecPoint_SizePtr.asFunction Function(VecVecPoint, ffi.Pointer)>(); void VideoCapture_Close( VideoCapturePtr self, @@ -20593,10 +18594,8 @@ class CvNative { } late final _VideoCapture_ClosePtr = - _lookup>( - 'VideoCapture_Close'); - late final _VideoCapture_Close = - _VideoCapture_ClosePtr.asFunction(); + _lookup>('VideoCapture_Close'); + late final _VideoCapture_Close = _VideoCapture_ClosePtr.asFunction(); ffi.Pointer VideoCapture_Get( VideoCapture self, @@ -20611,12 +18610,10 @@ class CvNative { } late final _VideoCapture_GetPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VideoCapture, ffi.Int, - ffi.Pointer)>>('VideoCapture_Get'); + ffi.NativeFunction Function(VideoCapture, ffi.Int, ffi.Pointer)>>( + 'VideoCapture_Get'); late final _VideoCapture_Get = _VideoCapture_GetPtr.asFunction< - ffi.Pointer Function( - VideoCapture, int, ffi.Pointer)>(); + ffi.Pointer Function(VideoCapture, int, ffi.Pointer)>(); ffi.Pointer VideoCapture_Grab( VideoCapture self, @@ -20628,12 +18625,10 @@ class CvNative { ); } - late final _VideoCapture_GrabPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VideoCapture, ffi.Int)>>('VideoCapture_Grab'); - late final _VideoCapture_Grab = _VideoCapture_GrabPtr.asFunction< - ffi.Pointer Function(VideoCapture, int)>(); + late final _VideoCapture_GrabPtr = + _lookup Function(VideoCapture, ffi.Int)>>('VideoCapture_Grab'); + late final _VideoCapture_Grab = + _VideoCapture_GrabPtr.asFunction Function(VideoCapture, int)>(); ffi.Pointer VideoCapture_IsOpened( VideoCapture self, @@ -20645,10 +18640,9 @@ class CvNative { ); } - late final _VideoCapture_IsOpenedPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VideoCapture, ffi.Pointer)>>('VideoCapture_IsOpened'); + late final _VideoCapture_IsOpenedPtr = + _lookup Function(VideoCapture, ffi.Pointer)>>( + 'VideoCapture_IsOpened'); late final _VideoCapture_IsOpened = _VideoCapture_IsOpenedPtr.asFunction< ffi.Pointer Function(VideoCapture, ffi.Pointer)>(); @@ -20660,12 +18654,11 @@ class CvNative { ); } - late final _VideoCapture_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VideoCapture_New'); - late final _VideoCapture_New = _VideoCapture_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VideoCapture_NewPtr = + _lookup Function(ffi.Pointer)>>( + 'VideoCapture_New'); + late final _VideoCapture_New = + _VideoCapture_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VideoCapture_NewFromFile( ffi.Pointer filename, @@ -20681,12 +18674,10 @@ class CvNative { late final _VideoCapture_NewFromFilePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VideoCapture_NewFromFile'); - late final _VideoCapture_NewFromFile = - _VideoCapture_NewFromFilePtr.asFunction< ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, ffi.Int, ffi.Pointer)>>('VideoCapture_NewFromFile'); + late final _VideoCapture_NewFromFile = _VideoCapture_NewFromFilePtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VideoCapture_NewFromIndex( int index, @@ -20701,13 +18692,10 @@ class CvNative { } late final _VideoCapture_NewFromIndexPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Int, - ffi.Pointer)>>('VideoCapture_NewFromIndex'); - late final _VideoCapture_NewFromIndex = - _VideoCapture_NewFromIndexPtr.asFunction< - ffi.Pointer Function( - int, int, ffi.Pointer)>(); + ffi.NativeFunction Function(ffi.Int, ffi.Int, ffi.Pointer)>>( + 'VideoCapture_NewFromIndex'); + late final _VideoCapture_NewFromIndex = _VideoCapture_NewFromIndexPtr.asFunction< + ffi.Pointer Function(int, int, ffi.Pointer)>(); ffi.Pointer VideoCapture_Open( VideoCapture self, @@ -20723,11 +18711,10 @@ class CvNative { late final _VideoCapture_OpenPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VideoCapture, ffi.Pointer, - ffi.Pointer)>>('VideoCapture_Open'); + ffi.Pointer Function( + VideoCapture, ffi.Pointer, ffi.Pointer)>>('VideoCapture_Open'); late final _VideoCapture_Open = _VideoCapture_OpenPtr.asFunction< - ffi.Pointer Function( - VideoCapture, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(VideoCapture, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer VideoCapture_OpenDevice( VideoCapture self, @@ -20742,12 +18729,10 @@ class CvNative { } late final _VideoCapture_OpenDevicePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VideoCapture, ffi.Int, - ffi.Pointer)>>('VideoCapture_OpenDevice'); + ffi.NativeFunction Function(VideoCapture, ffi.Int, ffi.Pointer)>>( + 'VideoCapture_OpenDevice'); late final _VideoCapture_OpenDevice = _VideoCapture_OpenDevicePtr.asFunction< - ffi.Pointer Function( - VideoCapture, int, ffi.Pointer)>(); + ffi.Pointer Function(VideoCapture, int, ffi.Pointer)>(); ffi.Pointer VideoCapture_OpenDeviceWithAPI( VideoCapture self, @@ -20765,12 +18750,10 @@ class CvNative { late final _VideoCapture_OpenDeviceWithAPIPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VideoCapture, ffi.Int, ffi.Int, - ffi.Pointer)>>('VideoCapture_OpenDeviceWithAPI'); - late final _VideoCapture_OpenDeviceWithAPI = - _VideoCapture_OpenDeviceWithAPIPtr.asFunction< ffi.Pointer Function( - VideoCapture, int, int, ffi.Pointer)>(); + VideoCapture, ffi.Int, ffi.Int, ffi.Pointer)>>('VideoCapture_OpenDeviceWithAPI'); + late final _VideoCapture_OpenDeviceWithAPI = _VideoCapture_OpenDeviceWithAPIPtr.asFunction< + ffi.Pointer Function(VideoCapture, int, int, ffi.Pointer)>(); ffi.Pointer VideoCapture_OpenWithAPI( VideoCapture self, @@ -20788,12 +18771,10 @@ class CvNative { late final _VideoCapture_OpenWithAPIPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VideoCapture, ffi.Pointer, - ffi.Int, ffi.Pointer)>>('VideoCapture_OpenWithAPI'); - late final _VideoCapture_OpenWithAPI = - _VideoCapture_OpenWithAPIPtr.asFunction< - ffi.Pointer Function(VideoCapture, ffi.Pointer, - int, ffi.Pointer)>(); + ffi.Pointer Function(VideoCapture, ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VideoCapture_OpenWithAPI'); + late final _VideoCapture_OpenWithAPI = _VideoCapture_OpenWithAPIPtr.asFunction< + ffi.Pointer Function(VideoCapture, ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VideoCapture_Read( VideoCapture self, @@ -20807,13 +18788,11 @@ class CvNative { ); } - late final _VideoCapture_ReadPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VideoCapture, Mat, ffi.Pointer)>>('VideoCapture_Read'); + late final _VideoCapture_ReadPtr = + _lookup Function(VideoCapture, Mat, ffi.Pointer)>>( + 'VideoCapture_Read'); late final _VideoCapture_Read = _VideoCapture_ReadPtr.asFunction< - ffi.Pointer Function( - VideoCapture, Mat, ffi.Pointer)>(); + ffi.Pointer Function(VideoCapture, Mat, ffi.Pointer)>(); ffi.Pointer VideoCapture_Release( VideoCapture self, @@ -20824,10 +18803,9 @@ class CvNative { } late final _VideoCapture_ReleasePtr = - _lookup Function(VideoCapture)>>( - 'VideoCapture_Release'); - late final _VideoCapture_Release = _VideoCapture_ReleasePtr.asFunction< - ffi.Pointer Function(VideoCapture)>(); + _lookup Function(VideoCapture)>>('VideoCapture_Release'); + late final _VideoCapture_Release = + _VideoCapture_ReleasePtr.asFunction Function(VideoCapture)>(); ffi.Pointer VideoCapture_Set( VideoCapture self, @@ -20841,12 +18819,11 @@ class CvNative { ); } - late final _VideoCapture_SetPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VideoCapture, ffi.Int, ffi.Double)>>('VideoCapture_Set'); - late final _VideoCapture_Set = _VideoCapture_SetPtr.asFunction< - ffi.Pointer Function(VideoCapture, int, double)>(); + late final _VideoCapture_SetPtr = + _lookup Function(VideoCapture, ffi.Int, ffi.Double)>>( + 'VideoCapture_Set'); + late final _VideoCapture_Set = + _VideoCapture_SetPtr.asFunction Function(VideoCapture, int, double)>(); void VideoWriter_Close( VideoWriterPtr self, @@ -20857,10 +18834,8 @@ class CvNative { } late final _VideoWriter_ClosePtr = - _lookup>( - 'VideoWriter_Close'); - late final _VideoWriter_Close = - _VideoWriter_ClosePtr.asFunction(); + _lookup>('VideoWriter_Close'); + late final _VideoWriter_Close = _VideoWriter_ClosePtr.asFunction(); ffi.Pointer VideoWriter_Fourcc( int c1, @@ -20880,11 +18855,10 @@ class CvNative { late final _VideoWriter_FourccPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Char, ffi.Char, ffi.Char, ffi.Char, - ffi.Pointer)>>('VideoWriter_Fourcc'); + ffi.Pointer Function( + ffi.Char, ffi.Char, ffi.Char, ffi.Char, ffi.Pointer)>>('VideoWriter_Fourcc'); late final _VideoWriter_Fourcc = _VideoWriter_FourccPtr.asFunction< - ffi.Pointer Function( - int, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(int, int, int, int, ffi.Pointer)>(); ffi.Pointer VideoWriter_IsOpened( VideoWriter self, @@ -20896,10 +18870,9 @@ class CvNative { ); } - late final _VideoWriter_IsOpenedPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VideoWriter, ffi.Pointer)>>('VideoWriter_IsOpened'); + late final _VideoWriter_IsOpenedPtr = + _lookup Function(VideoWriter, ffi.Pointer)>>( + 'VideoWriter_IsOpened'); late final _VideoWriter_IsOpened = _VideoWriter_IsOpenedPtr.asFunction< ffi.Pointer Function(VideoWriter, ffi.Pointer)>(); @@ -20911,12 +18884,11 @@ class CvNative { ); } - late final _VideoWriter_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('VideoWriter_New'); - late final _VideoWriter_New = _VideoWriter_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _VideoWriter_NewPtr = + _lookup Function(ffi.Pointer)>>( + 'VideoWriter_New'); + late final _VideoWriter_New = + _VideoWriter_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer VideoWriter_Open( VideoWriter self, @@ -20940,17 +18912,11 @@ class CvNative { late final _VideoWriter_OpenPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VideoWriter, - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Int, - ffi.Int, - ffi.Bool)>>('VideoWriter_Open'); + ffi.Pointer Function(VideoWriter, ffi.Pointer, ffi.Pointer, + ffi.Double, ffi.Int, ffi.Int, ffi.Bool)>>('VideoWriter_Open'); late final _VideoWriter_Open = _VideoWriter_OpenPtr.asFunction< - ffi.Pointer Function(VideoWriter, ffi.Pointer, - ffi.Pointer, double, int, int, bool)>(); + ffi.Pointer Function( + VideoWriter, ffi.Pointer, ffi.Pointer, double, int, int, bool)>(); ffi.Pointer VideoWriter_Release( VideoWriter self, @@ -20961,10 +18927,9 @@ class CvNative { } late final _VideoWriter_ReleasePtr = - _lookup Function(VideoWriter)>>( - 'VideoWriter_Release'); - late final _VideoWriter_Release = _VideoWriter_ReleasePtr.asFunction< - ffi.Pointer Function(VideoWriter)>(); + _lookup Function(VideoWriter)>>('VideoWriter_Release'); + late final _VideoWriter_Release = + _VideoWriter_ReleasePtr.asFunction Function(VideoWriter)>(); ffi.Pointer VideoWriter_Write( VideoWriter self, @@ -20976,11 +18941,10 @@ class CvNative { ); } - late final _VideoWriter_WritePtr = _lookup< - ffi.NativeFunction Function(VideoWriter, Mat)>>( - 'VideoWriter_Write'); - late final _VideoWriter_Write = _VideoWriter_WritePtr.asFunction< - ffi.Pointer Function(VideoWriter, Mat)>(); + late final _VideoWriter_WritePtr = + _lookup Function(VideoWriter, Mat)>>('VideoWriter_Write'); + late final _VideoWriter_Write = + _VideoWriter_WritePtr.asFunction Function(VideoWriter, Mat)>(); ffi.Pointer WarpAffine( Mat src, @@ -20996,11 +18960,9 @@ class CvNative { ); } - late final _WarpAffinePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Size)>>('WarpAffine'); - late final _WarpAffine = _WarpAffinePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Size)>(); + late final _WarpAffinePtr = + _lookup Function(Mat, Mat, Mat, Size)>>('WarpAffine'); + late final _WarpAffine = _WarpAffinePtr.asFunction Function(Mat, Mat, Mat, Size)>(); ffi.Pointer WarpAffineWithParams( Mat src, @@ -21023,9 +18985,8 @@ class CvNative { } late final _WarpAffineWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Size, ffi.Int, ffi.Int, - Scalar)>>('WarpAffineWithParams'); + ffi.NativeFunction Function(Mat, Mat, Mat, Size, ffi.Int, ffi.Int, Scalar)>>( + 'WarpAffineWithParams'); late final _WarpAffineWithParams = _WarpAffineWithParamsPtr.asFunction< ffi.Pointer Function(Mat, Mat, Mat, Size, int, int, Scalar)>(); @@ -21043,12 +19004,10 @@ class CvNative { ); } - late final _WarpPerspectivePtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, Mat, Size)>>( - 'WarpPerspective'); - late final _WarpPerspective = _WarpPerspectivePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Size)>(); + late final _WarpPerspectivePtr = + _lookup Function(Mat, Mat, Mat, Size)>>('WarpPerspective'); + late final _WarpPerspective = + _WarpPerspectivePtr.asFunction Function(Mat, Mat, Mat, Size)>(); ffi.Pointer WarpPerspectiveWithParams( Mat src, @@ -21071,13 +19030,10 @@ class CvNative { } late final _WarpPerspectiveWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Size, ffi.Int, ffi.Int, - Scalar)>>('WarpPerspectiveWithParams'); - late final _WarpPerspectiveWithParams = - _WarpPerspectiveWithParamsPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Size, int, int, Scalar)>(); + ffi.NativeFunction Function(Mat, Mat, Mat, Size, ffi.Int, ffi.Int, Scalar)>>( + 'WarpPerspectiveWithParams'); + late final _WarpPerspectiveWithParams = _WarpPerspectiveWithParamsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Size, int, int, Scalar)>(); ffi.Pointer Watershed( Mat image, @@ -21090,10 +19046,8 @@ class CvNative { } late final _WatershedPtr = - _lookup Function(Mat, Mat)>>( - 'Watershed'); - late final _Watershed = - _WatershedPtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('Watershed'); + late final _Watershed = _WatershedPtr.asFunction Function(Mat, Mat)>(); void WeChatQRCode_Close( WeChatQRCodePtr self, @@ -21104,10 +19058,8 @@ class CvNative { } late final _WeChatQRCode_ClosePtr = - _lookup>( - 'WeChatQRCode_Close'); - late final _WeChatQRCode_Close = - _WeChatQRCode_ClosePtr.asFunction(); + _lookup>('WeChatQRCode_Close'); + late final _WeChatQRCode_Close = _WeChatQRCode_ClosePtr.asFunction(); ffi.Pointer WeChatQRCode_DetectAndDecode( ffi.Pointer self, @@ -21125,15 +19077,11 @@ class CvNative { late final _WeChatQRCode_DetectAndDecodePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - Mat, - ffi.Pointer, + ffi.Pointer Function(ffi.Pointer, Mat, ffi.Pointer, ffi.Pointer)>>('WeChatQRCode_DetectAndDecode'); - late final _WeChatQRCode_DetectAndDecode = - _WeChatQRCode_DetectAndDecodePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, Mat, - ffi.Pointer, ffi.Pointer)>(); + late final _WeChatQRCode_DetectAndDecode = _WeChatQRCode_DetectAndDecodePtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, Mat, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer WeChatQRCode_GetScaleFactor( ffi.Pointer self, @@ -21146,13 +19094,11 @@ class CvNative { } late final _WeChatQRCode_GetScaleFactorPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer)>>('WeChatQRCode_GetScaleFactor'); - late final _WeChatQRCode_GetScaleFactor = - _WeChatQRCode_GetScaleFactorPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi + .NativeFunction Function(ffi.Pointer, ffi.Pointer)>>( + 'WeChatQRCode_GetScaleFactor'); + late final _WeChatQRCode_GetScaleFactor = _WeChatQRCode_GetScaleFactorPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); ffi.Pointer WeChatQRCode_New( ffi.Pointer qrcode, @@ -21162,12 +19108,11 @@ class CvNative { ); } - late final _WeChatQRCode_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('WeChatQRCode_New'); - late final _WeChatQRCode_New = _WeChatQRCode_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _WeChatQRCode_NewPtr = + _lookup Function(ffi.Pointer)>>( + 'WeChatQRCode_New'); + late final _WeChatQRCode_New = + _WeChatQRCode_NewPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer WeChatQRCode_NewWithParams( ffi.Pointer detector_prototxt_path, @@ -21187,20 +19132,11 @@ class CvNative { late final _WeChatQRCode_NewWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('WeChatQRCode_NewWithParams'); - late final _WeChatQRCode_NewWithParams = - _WeChatQRCode_NewWithParamsPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('WeChatQRCode_NewWithParams'); + late final _WeChatQRCode_NewWithParams = _WeChatQRCode_NewWithParamsPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer WeChatQRCode_SetScaleFactor( ffi.Pointer self, @@ -21212,13 +19148,11 @@ class CvNative { ); } - late final _WeChatQRCode_SetScaleFactorPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Float)>>('WeChatQRCode_SetScaleFactor'); - late final _WeChatQRCode_SetScaleFactor = - _WeChatQRCode_SetScaleFactorPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, double)>(); + late final _WeChatQRCode_SetScaleFactorPtr = + _lookup Function(ffi.Pointer, ffi.Float)>>( + 'WeChatQRCode_SetScaleFactor'); + late final _WeChatQRCode_SetScaleFactor = _WeChatQRCode_SetScaleFactorPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, double)>(); void Window_Close( ffi.Pointer winname, @@ -21229,10 +19163,8 @@ class CvNative { } late final _Window_ClosePtr = - _lookup)>>( - 'Window_Close'); - late final _Window_Close = - _Window_ClosePtr.asFunction)>(); + _lookup)>>('Window_Close'); + late final _Window_Close = _Window_ClosePtr.asFunction)>(); ffi.Pointer Window_GetProperty( ffi.Pointer winname, @@ -21248,11 +19180,10 @@ class CvNative { late final _Window_GetPropertyPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Pointer)>>('Window_GetProperty'); + ffi.Pointer Function( + ffi.Pointer, ffi.Int, ffi.Pointer)>>('Window_GetProperty'); late final _Window_GetProperty = _Window_GetPropertyPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer Window_IMShow( ffi.Pointer winname, @@ -21264,12 +19195,11 @@ class CvNative { ); } - late final _Window_IMShowPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, Mat)>>('Window_IMShow'); - late final _Window_IMShow = _Window_IMShowPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, Mat)>(); + late final _Window_IMShowPtr = + _lookup Function(ffi.Pointer, Mat)>>( + 'Window_IMShow'); + late final _Window_IMShow = + _Window_IMShowPtr.asFunction Function(ffi.Pointer, Mat)>(); ffi.Pointer Window_Move( ffi.Pointer winname, @@ -21283,12 +19213,11 @@ class CvNative { ); } - late final _Window_MovePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Int)>>('Window_Move'); - late final _Window_Move = _Window_MovePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, int)>(); + late final _Window_MovePtr = + _lookup Function(ffi.Pointer, ffi.Int, ffi.Int)>>( + 'Window_Move'); + late final _Window_Move = + _Window_MovePtr.asFunction Function(ffi.Pointer, int, int)>(); ffi.Pointer Window_New( ffi.Pointer winname, @@ -21300,12 +19229,11 @@ class CvNative { ); } - late final _Window_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int)>>('Window_New'); - late final _Window_New = _Window_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int)>(); + late final _Window_NewPtr = + _lookup Function(ffi.Pointer, ffi.Int)>>( + 'Window_New'); + late final _Window_New = + _Window_NewPtr.asFunction Function(ffi.Pointer, int)>(); ffi.Pointer Window_Resize( ffi.Pointer winname, @@ -21319,12 +19247,11 @@ class CvNative { ); } - late final _Window_ResizePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Int)>>('Window_Resize'); - late final _Window_Resize = _Window_ResizePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, int)>(); + late final _Window_ResizePtr = + _lookup Function(ffi.Pointer, ffi.Int, ffi.Int)>>( + 'Window_Resize'); + late final _Window_Resize = + _Window_ResizePtr.asFunction Function(ffi.Pointer, int, int)>(); ffi.Pointer Window_SelectROI( ffi.Pointer winname, @@ -21339,12 +19266,10 @@ class CvNative { } late final _Window_SelectROIPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, Mat, - ffi.Pointer)>>('Window_SelectROI'); + ffi.NativeFunction Function(ffi.Pointer, Mat, ffi.Pointer)>>( + 'Window_SelectROI'); late final _Window_SelectROI = _Window_SelectROIPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, Mat, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, Mat, ffi.Pointer)>(); ffi.Pointer Window_SelectROIs( ffi.Pointer winname, @@ -21359,12 +19284,11 @@ class CvNative { } late final _Window_SelectROIsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, Mat, - ffi.Pointer)>>('Window_SelectROIs'); + ffi + .NativeFunction Function(ffi.Pointer, Mat, ffi.Pointer)>>( + 'Window_SelectROIs'); late final _Window_SelectROIs = _Window_SelectROIsPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, Mat, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, Mat, ffi.Pointer)>(); ffi.Pointer Window_SetProperty( ffi.Pointer winname, @@ -21378,12 +19302,11 @@ class CvNative { ); } - late final _Window_SetPropertyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, - ffi.Double)>>('Window_SetProperty'); - late final _Window_SetProperty = _Window_SetPropertyPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, double)>(); + late final _Window_SetPropertyPtr = + _lookup Function(ffi.Pointer, ffi.Int, ffi.Double)>>( + 'Window_SetProperty'); + late final _Window_SetProperty = + _Window_SetPropertyPtr.asFunction Function(ffi.Pointer, int, double)>(); ffi.Pointer Window_SetTitle( ffi.Pointer winname, @@ -21396,12 +19319,10 @@ class CvNative { } late final _Window_SetTitlePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer)>>('Window_SetTitle'); + ffi.NativeFunction Function(ffi.Pointer, ffi.Pointer)>>( + 'Window_SetTitle'); late final _Window_SetTitle = _Window_SetTitlePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Window_WaitKey( int delay, @@ -21413,12 +19334,11 @@ class CvNative { ); } - late final _Window_WaitKeyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, ffi.Pointer)>>('Window_WaitKey'); - late final _Window_WaitKey = _Window_WaitKeyPtr.asFunction< - ffi.Pointer Function(int, ffi.Pointer)>(); + late final _Window_WaitKeyPtr = + _lookup Function(ffi.Int, ffi.Pointer)>>( + 'Window_WaitKey'); + late final _Window_WaitKey = + _Window_WaitKeyPtr.asFunction Function(int, ffi.Pointer)>(); ffi.Pointer Zeros( int rows, @@ -21435,11 +19355,9 @@ class CvNative { } late final _ZerosPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Zeros'); - late final _Zeros = _ZerosPtr.asFunction< - ffi.Pointer Function(int, int, int, ffi.Pointer)>(); + ffi + .NativeFunction Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Zeros'); + late final _Zeros = _ZerosPtr.asFunction Function(int, int, int, ffi.Pointer)>(); ffi.Pointer averageHashCompare( Mat a, @@ -21453,12 +19371,11 @@ class CvNative { ); } - late final _averageHashComparePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Pointer)>>('averageHashCompare'); - late final _averageHashCompare = _averageHashComparePtr.asFunction< - ffi.Pointer Function(Mat, Mat, ffi.Pointer)>(); + late final _averageHashComparePtr = + _lookup Function(Mat, Mat, ffi.Pointer)>>( + 'averageHashCompare'); + late final _averageHashCompare = + _averageHashComparePtr.asFunction Function(Mat, Mat, ffi.Pointer)>(); ffi.Pointer averageHashCompute( Mat inputArr, @@ -21471,10 +19388,9 @@ class CvNative { } late final _averageHashComputePtr = - _lookup Function(Mat, Mat)>>( - 'averageHashCompute'); - late final _averageHashCompute = _averageHashComputePtr - .asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('averageHashCompute'); + late final _averageHashCompute = + _averageHashComputePtr.asFunction Function(Mat, Mat)>(); ffi.Pointer blockMeanHashCompare( Mat a, @@ -21490,12 +19406,11 @@ class CvNative { ); } - late final _blockMeanHashComparePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, - ffi.Pointer)>>('blockMeanHashCompare'); - late final _blockMeanHashCompare = _blockMeanHashComparePtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, ffi.Pointer)>(); + late final _blockMeanHashComparePtr = + _lookup Function(Mat, Mat, ffi.Int, ffi.Pointer)>>( + 'blockMeanHashCompare'); + late final _blockMeanHashCompare = _blockMeanHashComparePtr + .asFunction Function(Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer blockMeanHashCompute( Mat inputArr, @@ -21509,12 +19424,10 @@ class CvNative { ); } - late final _blockMeanHashComputePtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, ffi.Int)>>( - 'blockMeanHashCompute'); - late final _blockMeanHashCompute = _blockMeanHashComputePtr - .asFunction Function(Mat, Mat, int)>(); + late final _blockMeanHashComputePtr = + _lookup Function(Mat, Mat, ffi.Int)>>('blockMeanHashCompute'); + late final _blockMeanHashCompute = + _blockMeanHashComputePtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer calibrateCamera_Async( VecVecPoint3f objectPoints, @@ -21540,18 +19453,11 @@ class CvNative { late final _calibrateCamera_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecVecPoint3f, - VecVecPoint2f, - Size, - Mat, - Mat, - ffi.Int, - TermCriteria, + ffi.Pointer Function(VecVecPoint3f, VecVecPoint2f, Size, Mat, Mat, ffi.Int, TermCriteria, CvCallback_5)>>('calibrateCamera_Async'); late final _calibrateCamera_Async = _calibrateCamera_AsyncPtr.asFunction< - ffi.Pointer Function(VecVecPoint3f, VecVecPoint2f, Size, Mat, - Mat, int, TermCriteria, CvCallback_5)>(); + ffi.Pointer Function( + VecVecPoint3f, VecVecPoint2f, Size, Mat, Mat, int, TermCriteria, CvCallback_5)>(); ffi.Pointer colorMomentHashCompare( Mat a, @@ -21565,12 +19471,11 @@ class CvNative { ); } - late final _colorMomentHashComparePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Pointer)>>('colorMomentHashCompare'); - late final _colorMomentHashCompare = _colorMomentHashComparePtr.asFunction< - ffi.Pointer Function(Mat, Mat, ffi.Pointer)>(); + late final _colorMomentHashComparePtr = + _lookup Function(Mat, Mat, ffi.Pointer)>>( + 'colorMomentHashCompare'); + late final _colorMomentHashCompare = _colorMomentHashComparePtr + .asFunction Function(Mat, Mat, ffi.Pointer)>(); ffi.Pointer colorMomentHashCompute( Mat inputArr, @@ -21583,20 +19488,17 @@ class CvNative { } late final _colorMomentHashComputePtr = - _lookup Function(Mat, Mat)>>( - 'colorMomentHashCompute'); - late final _colorMomentHashCompute = _colorMomentHashComputePtr - .asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('colorMomentHashCompute'); + late final _colorMomentHashCompute = + _colorMomentHashComputePtr.asFunction Function(Mat, Mat)>(); ffi.Pointer destroyAllWindows() { return _destroyAllWindows(); } late final _destroyAllWindowsPtr = - _lookup Function()>>( - 'destroyAllWindows'); - late final _destroyAllWindows = - _destroyAllWindowsPtr.asFunction Function()>(); + _lookup Function()>>('destroyAllWindows'); + late final _destroyAllWindows = _destroyAllWindowsPtr.asFunction Function()>(); ffi.Pointer drawChessboardCorners_Async( Mat image, @@ -21612,13 +19514,11 @@ class CvNative { ); } - late final _drawChessboardCorners_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Size, ffi.Bool, - CvCallback_0)>>('drawChessboardCorners_Async'); - late final _drawChessboardCorners_Async = - _drawChessboardCorners_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, Size, bool, CvCallback_0)>(); + late final _drawChessboardCorners_AsyncPtr = + _lookup Function(Mat, Size, ffi.Bool, CvCallback_0)>>( + 'drawChessboardCorners_Async'); + late final _drawChessboardCorners_Async = _drawChessboardCorners_AsyncPtr + .asFunction Function(Mat, Size, bool, CvCallback_0)>(); ffi.Pointer estimateAffine2DWithParams_Async( VecPoint2f from, @@ -21644,19 +19544,10 @@ class CvNative { late final _estimateAffine2DWithParams_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecPoint2f, - VecPoint2f, - ffi.Int, - ffi.Double, - ffi.Size, - ffi.Double, - ffi.Size, - CvCallback_2)>>('estimateAffine2DWithParams_Async'); - late final _estimateAffine2DWithParams_Async = - _estimateAffine2DWithParams_AsyncPtr.asFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, int, double, - int, double, int, CvCallback_2)>(); + ffi.Pointer Function(VecPoint2f, VecPoint2f, ffi.Int, ffi.Double, ffi.Size, ffi.Double, + ffi.Size, CvCallback_2)>>('estimateAffine2DWithParams_Async'); + late final _estimateAffine2DWithParams_Async = _estimateAffine2DWithParams_AsyncPtr.asFunction< + ffi.Pointer Function(VecPoint2f, VecPoint2f, int, double, int, double, int, CvCallback_2)>(); ffi.Pointer estimateAffine2D_Async( VecPoint2f from, @@ -21670,12 +19561,11 @@ class CvNative { ); } - late final _estimateAffine2D_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - VecPoint2f, VecPoint2f, CvCallback_1)>>('estimateAffine2D_Async'); - late final _estimateAffine2D_Async = _estimateAffine2D_AsyncPtr.asFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, CvCallback_1)>(); + late final _estimateAffine2D_AsyncPtr = + _lookup Function(VecPoint2f, VecPoint2f, CvCallback_1)>>( + 'estimateAffine2D_Async'); + late final _estimateAffine2D_Async = _estimateAffine2D_AsyncPtr + .asFunction Function(VecPoint2f, VecPoint2f, CvCallback_1)>(); ffi.Pointer estimateAffinePartial2DWithParams_Async( VecPoint2f from, @@ -21701,19 +19591,12 @@ class CvNative { late final _estimateAffinePartial2DWithParams_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecPoint2f, - VecPoint2f, - ffi.Int, - ffi.Double, - ffi.Size, - ffi.Double, - ffi.Size, - CvCallback_2)>>('estimateAffinePartial2DWithParams_Async'); + ffi.Pointer Function(VecPoint2f, VecPoint2f, ffi.Int, ffi.Double, ffi.Size, ffi.Double, + ffi.Size, CvCallback_2)>>('estimateAffinePartial2DWithParams_Async'); late final _estimateAffinePartial2DWithParams_Async = _estimateAffinePartial2DWithParams_AsyncPtr.asFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, int, double, - int, double, int, CvCallback_2)>(); + ffi.Pointer Function( + VecPoint2f, VecPoint2f, int, double, int, double, int, CvCallback_2)>(); ffi.Pointer estimateAffinePartial2D_Async( VecPoint2f from, @@ -21727,14 +19610,11 @@ class CvNative { ); } - late final _estimateAffinePartial2D_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, - CvCallback_1)>>('estimateAffinePartial2D_Async'); - late final _estimateAffinePartial2D_Async = - _estimateAffinePartial2D_AsyncPtr.asFunction< - ffi.Pointer Function( - VecPoint2f, VecPoint2f, CvCallback_1)>(); + late final _estimateAffinePartial2D_AsyncPtr = + _lookup Function(VecPoint2f, VecPoint2f, CvCallback_1)>>( + 'estimateAffinePartial2D_Async'); + late final _estimateAffinePartial2D_Async = _estimateAffinePartial2D_AsyncPtr + .asFunction Function(VecPoint2f, VecPoint2f, CvCallback_1)>(); ffi.Pointer findChessboardCornersSBWithMeta_Async( Mat image, @@ -21750,13 +19630,11 @@ class CvNative { ); } - late final _findChessboardCornersSBWithMeta_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Size, ffi.Int, - CvCallback_3)>>('findChessboardCornersSBWithMeta_Async'); - late final _findChessboardCornersSBWithMeta_Async = - _findChessboardCornersSBWithMeta_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, Size, int, CvCallback_3)>(); + late final _findChessboardCornersSBWithMeta_AsyncPtr = + _lookup Function(Mat, Size, ffi.Int, CvCallback_3)>>( + 'findChessboardCornersSBWithMeta_Async'); + late final _findChessboardCornersSBWithMeta_Async = _findChessboardCornersSBWithMeta_AsyncPtr + .asFunction Function(Mat, Size, int, CvCallback_3)>(); ffi.Pointer findChessboardCornersSB_Async( Mat image, @@ -21772,13 +19650,11 @@ class CvNative { ); } - late final _findChessboardCornersSB_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Size, ffi.Int, - CvCallback_2)>>('findChessboardCornersSB_Async'); - late final _findChessboardCornersSB_Async = - _findChessboardCornersSB_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, Size, int, CvCallback_2)>(); + late final _findChessboardCornersSB_AsyncPtr = + _lookup Function(Mat, Size, ffi.Int, CvCallback_2)>>( + 'findChessboardCornersSB_Async'); + late final _findChessboardCornersSB_Async = _findChessboardCornersSB_AsyncPtr + .asFunction Function(Mat, Size, int, CvCallback_2)>(); ffi.Pointer findChessboardCorners_Async( Mat image, @@ -21794,16 +19670,13 @@ class CvNative { ); } - late final _findChessboardCorners_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Size, ffi.Int, - CvCallback_2)>>('findChessboardCorners_Async'); - late final _findChessboardCorners_Async = - _findChessboardCorners_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, Size, int, CvCallback_2)>(); + late final _findChessboardCorners_AsyncPtr = + _lookup Function(Mat, Size, ffi.Int, CvCallback_2)>>( + 'findChessboardCorners_Async'); + late final _findChessboardCorners_Async = _findChessboardCorners_AsyncPtr + .asFunction Function(Mat, Size, int, CvCallback_2)>(); - ffi.Pointer - fisheye_estimateNewCameraMatrixForUndistortRectify_Async( + ffi.Pointer fisheye_estimateNewCameraMatrixForUndistortRectify_Async( Mat k, Mat d, Size imgSize, @@ -21825,16 +19698,13 @@ class CvNative { ); } - late final _fisheye_estimateNewCameraMatrixForUndistortRectify_AsyncPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Size, Mat, - ffi.Double, Size, ffi.Double, CvCallback_1)>>( - 'fisheye_estimateNewCameraMatrixForUndistortRectify_Async'); + late final _fisheye_estimateNewCameraMatrixForUndistortRectify_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Size, Mat, ffi.Double, Size, ffi.Double, + CvCallback_1)>>('fisheye_estimateNewCameraMatrixForUndistortRectify_Async'); late final _fisheye_estimateNewCameraMatrixForUndistortRectify_Async = _fisheye_estimateNewCameraMatrixForUndistortRectify_AsyncPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Size, Mat, double, Size, double, CvCallback_1)>(); + ffi.Pointer Function(Mat, Mat, Size, Mat, double, Size, double, CvCallback_1)>(); ffi.Pointer fisheye_undistortImageWithParams_Async( Mat distorted, @@ -21854,14 +19724,11 @@ class CvNative { ); } - late final _fisheye_undistortImageWithParams_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, Size, - CvCallback_1)>>('fisheye_undistortImageWithParams_Async'); - late final _fisheye_undistortImageWithParams_Async = - _fisheye_undistortImageWithParams_AsyncPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, Size, CvCallback_1)>(); + late final _fisheye_undistortImageWithParams_AsyncPtr = + _lookup Function(Mat, Mat, Mat, Mat, Size, CvCallback_1)>>( + 'fisheye_undistortImageWithParams_Async'); + late final _fisheye_undistortImageWithParams_Async = _fisheye_undistortImageWithParams_AsyncPtr + .asFunction Function(Mat, Mat, Mat, Mat, Size, CvCallback_1)>(); ffi.Pointer fisheye_undistortImage_Async( Mat distorted, @@ -21877,13 +19744,11 @@ class CvNative { ); } - late final _fisheye_undistortImage_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, CvCallback_1)>>('fisheye_undistortImage_Async'); - late final _fisheye_undistortImage_Async = - _fisheye_undistortImage_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, CvCallback_1)>(); + late final _fisheye_undistortImage_AsyncPtr = + _lookup Function(Mat, Mat, Mat, CvCallback_1)>>( + 'fisheye_undistortImage_Async'); + late final _fisheye_undistortImage_Async = _fisheye_undistortImage_AsyncPtr + .asFunction Function(Mat, Mat, Mat, CvCallback_1)>(); ffi.Pointer fisheye_undistortPoints_Async( Mat distorted, @@ -21903,14 +19768,11 @@ class CvNative { ); } - late final _fisheye_undistortPoints_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, - CvCallback_1)>>('fisheye_undistortPoints_Async'); - late final _fisheye_undistortPoints_Async = - _fisheye_undistortPoints_AsyncPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, Mat, CvCallback_1)>(); + late final _fisheye_undistortPoints_AsyncPtr = + _lookup Function(Mat, Mat, Mat, Mat, Mat, CvCallback_1)>>( + 'fisheye_undistortPoints_Async'); + late final _fisheye_undistortPoints_Async = _fisheye_undistortPoints_AsyncPtr + .asFunction Function(Mat, Mat, Mat, Mat, Mat, CvCallback_1)>(); ffi.Pointer gapi_BGR2Gray( GMat src, @@ -21922,12 +19784,10 @@ class CvNative { ); } - late final _gapi_BGR2GrayPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_BGR2Gray'); - late final _gapi_BGR2Gray = _gapi_BGR2GrayPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_BGR2GrayPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_BGR2Gray'); + late final _gapi_BGR2Gray = + _gapi_BGR2GrayPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_BGR2I420( GMat src, @@ -21939,12 +19799,10 @@ class CvNative { ); } - late final _gapi_BGR2I420Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_BGR2I420'); - late final _gapi_BGR2I420 = _gapi_BGR2I420Ptr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_BGR2I420Ptr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_BGR2I420'); + late final _gapi_BGR2I420 = + _gapi_BGR2I420Ptr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_BGR2LUV( GMat src, @@ -21956,12 +19814,10 @@ class CvNative { ); } - late final _gapi_BGR2LUVPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_BGR2LUV'); - late final _gapi_BGR2LUV = _gapi_BGR2LUVPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_BGR2LUVPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_BGR2LUV'); + late final _gapi_BGR2LUV = + _gapi_BGR2LUVPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_BGR2RGB( GMat src, @@ -21973,12 +19829,10 @@ class CvNative { ); } - late final _gapi_BGR2RGBPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_BGR2RGB'); - late final _gapi_BGR2RGB = _gapi_BGR2RGBPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_BGR2RGBPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_BGR2RGB'); + late final _gapi_BGR2RGB = + _gapi_BGR2RGBPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_BGR2YUV( GMat src, @@ -21990,12 +19844,10 @@ class CvNative { ); } - late final _gapi_BGR2YUVPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_BGR2YUV'); - late final _gapi_BGR2YUV = _gapi_BGR2YUVPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_BGR2YUVPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_BGR2YUV'); + late final _gapi_BGR2YUV = + _gapi_BGR2YUVPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_BayerGR2RGB( GMat src_gr, @@ -22007,12 +19859,11 @@ class CvNative { ); } - late final _gapi_BayerGR2RGBPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_BayerGR2RGB'); - late final _gapi_BayerGR2RGB = _gapi_BayerGR2RGBPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_BayerGR2RGBPtr = + _lookup Function(GMat, ffi.Pointer)>>( + 'gapi_BayerGR2RGB'); + late final _gapi_BayerGR2RGB = + _gapi_BayerGR2RGBPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_Canny( GMat image, @@ -22034,11 +19885,10 @@ class CvNative { late final _gapi_CannyPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Double, ffi.Double, ffi.Int, - ffi.Bool, ffi.Pointer)>>('gapi_Canny'); - late final _gapi_Canny = _gapi_CannyPtr.asFunction< - ffi.Pointer Function( - GMat, double, double, int, bool, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, ffi.Double, ffi.Double, ffi.Int, ffi.Bool, ffi.Pointer)>>('gapi_Canny'); + late final _gapi_Canny = _gapi_CannyPtr + .asFunction Function(GMat, double, double, int, bool, ffi.Pointer)>(); void gapi_GComputation_Close( GComputationPtr self, @@ -22049,8 +19899,7 @@ class CvNative { } late final _gapi_GComputation_ClosePtr = - _lookup>( - 'gapi_GComputation_Close'); + _lookup>('gapi_GComputation_Close'); late final _gapi_GComputation_Close = _gapi_GComputation_ClosePtr.asFunction(); @@ -22066,12 +19915,11 @@ class CvNative { ); } - late final _gapi_GComputation_NewPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Pointer)>>('gapi_GComputation_New'); - late final _gapi_GComputation_New = _gapi_GComputation_NewPtr.asFunction< - ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_GComputation_NewPtr = + _lookup Function(GMat, GMat, ffi.Pointer)>>( + 'gapi_GComputation_New'); + late final _gapi_GComputation_New = _gapi_GComputation_NewPtr + .asFunction Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_GComputation_New_1( GMat in1, @@ -22085,13 +19933,11 @@ class CvNative { ); } - late final _gapi_GComputation_New_1Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(GMat, GScalar, - ffi.Pointer)>>('gapi_GComputation_New_1'); - late final _gapi_GComputation_New_1 = _gapi_GComputation_New_1Ptr.asFunction< - ffi.Pointer Function( - GMat, GScalar, ffi.Pointer)>(); + late final _gapi_GComputation_New_1Ptr = + _lookup Function(GMat, GScalar, ffi.Pointer)>>( + 'gapi_GComputation_New_1'); + late final _gapi_GComputation_New_1 = _gapi_GComputation_New_1Ptr + .asFunction Function(GMat, GScalar, ffi.Pointer)>(); ffi.Pointer gapi_GComputation_New_2( GMat in1, @@ -22108,12 +19954,10 @@ class CvNative { } late final _gapi_GComputation_New_2Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(GMat, GMat, GMat, - ffi.Pointer)>>('gapi_GComputation_New_2'); - late final _gapi_GComputation_New_2 = _gapi_GComputation_New_2Ptr.asFunction< - ffi.Pointer Function( - GMat, GMat, GMat, ffi.Pointer)>(); + ffi.NativeFunction Function(GMat, GMat, GMat, ffi.Pointer)>>( + 'gapi_GComputation_New_2'); + late final _gapi_GComputation_New_2 = _gapi_GComputation_New_2Ptr + .asFunction Function(GMat, GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_GComputation_New_3( GMat in1, @@ -22130,12 +19974,10 @@ class CvNative { } late final _gapi_GComputation_New_3Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(GMat, GMat, GScalar, - ffi.Pointer)>>('gapi_GComputation_New_3'); - late final _gapi_GComputation_New_3 = _gapi_GComputation_New_3Ptr.asFunction< - ffi.Pointer Function( - GMat, GMat, GScalar, ffi.Pointer)>(); + ffi.NativeFunction Function(GMat, GMat, GScalar, ffi.Pointer)>>( + 'gapi_GComputation_New_3'); + late final _gapi_GComputation_New_3 = _gapi_GComputation_New_3Ptr + .asFunction Function(GMat, GMat, GScalar, ffi.Pointer)>(); ffi.Pointer gapi_GComputation_apply( GComputation self, @@ -22149,12 +19991,11 @@ class CvNative { ); } - late final _gapi_GComputation_applyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GComputation, Mat, CvCallback_1)>>('gapi_GComputation_apply'); - late final _gapi_GComputation_apply = _gapi_GComputation_applyPtr.asFunction< - ffi.Pointer Function(GComputation, Mat, CvCallback_1)>(); + late final _gapi_GComputation_applyPtr = + _lookup Function(GComputation, Mat, CvCallback_1)>>( + 'gapi_GComputation_apply'); + late final _gapi_GComputation_apply = _gapi_GComputation_applyPtr + .asFunction Function(GComputation, Mat, CvCallback_1)>(); ffi.Pointer gapi_GComputation_apply_1( GComputation self, @@ -22168,14 +20009,11 @@ class CvNative { ); } - late final _gapi_GComputation_apply_1Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(GComputation, Mat, - ffi.Pointer)>>('gapi_GComputation_apply_1'); - late final _gapi_GComputation_apply_1 = - _gapi_GComputation_apply_1Ptr.asFunction< - ffi.Pointer Function( - GComputation, Mat, ffi.Pointer)>(); + late final _gapi_GComputation_apply_1Ptr = + _lookup Function(GComputation, Mat, ffi.Pointer)>>( + 'gapi_GComputation_apply_1'); + late final _gapi_GComputation_apply_1 = _gapi_GComputation_apply_1Ptr + .asFunction Function(GComputation, Mat, ffi.Pointer)>(); ffi.Pointer gapi_GComputation_apply_2( GComputation self, @@ -22191,14 +20029,11 @@ class CvNative { ); } - late final _gapi_GComputation_apply_2Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(GComputation, Mat, Mat, - ffi.Pointer)>>('gapi_GComputation_apply_2'); - late final _gapi_GComputation_apply_2 = - _gapi_GComputation_apply_2Ptr.asFunction< - ffi.Pointer Function( - GComputation, Mat, Mat, ffi.Pointer)>(); + late final _gapi_GComputation_apply_2Ptr = + _lookup Function(GComputation, Mat, Mat, ffi.Pointer)>>( + 'gapi_GComputation_apply_2'); + late final _gapi_GComputation_apply_2 = _gapi_GComputation_apply_2Ptr + .asFunction Function(GComputation, Mat, Mat, ffi.Pointer)>(); ffi.Pointer gapi_GComputation_apply_3( GComputation self, @@ -22215,13 +20050,10 @@ class CvNative { } late final _gapi_GComputation_apply_3Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(GComputation, Mat, Mat, - ffi.Pointer)>>('gapi_GComputation_apply_3'); - late final _gapi_GComputation_apply_3 = - _gapi_GComputation_apply_3Ptr.asFunction< - ffi.Pointer Function( - GComputation, Mat, Mat, ffi.Pointer)>(); + ffi.NativeFunction Function(GComputation, Mat, Mat, ffi.Pointer)>>( + 'gapi_GComputation_apply_3'); + late final _gapi_GComputation_apply_3 = _gapi_GComputation_apply_3Ptr + .asFunction Function(GComputation, Mat, Mat, ffi.Pointer)>(); void gapi_GMat_Close( GMatPtr mat, @@ -22231,11 +20063,8 @@ class CvNative { ); } - late final _gapi_GMat_ClosePtr = - _lookup>( - 'gapi_GMat_Close'); - late final _gapi_GMat_Close = - _gapi_GMat_ClosePtr.asFunction(); + late final _gapi_GMat_ClosePtr = _lookup>('gapi_GMat_Close'); + late final _gapi_GMat_Close = _gapi_GMat_ClosePtr.asFunction(); ffi.Pointer gapi_GMat_New_Empty( ffi.Pointer rval, @@ -22245,12 +20074,10 @@ class CvNative { ); } - late final _gapi_GMat_New_EmptyPtr = _lookup< - ffi - .NativeFunction Function(ffi.Pointer)>>( - 'gapi_GMat_New_Empty'); - late final _gapi_GMat_New_Empty = _gapi_GMat_New_EmptyPtr - .asFunction Function(ffi.Pointer)>(); + late final _gapi_GMat_New_EmptyPtr = + _lookup Function(ffi.Pointer)>>('gapi_GMat_New_Empty'); + late final _gapi_GMat_New_Empty = + _gapi_GMat_New_EmptyPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer gapi_GMat_New_FromMat( Mat mat, @@ -22262,12 +20089,11 @@ class CvNative { ); } - late final _gapi_GMat_New_FromMatPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer)>>('gapi_GMat_New_FromMat'); - late final _gapi_GMat_New_FromMat = _gapi_GMat_New_FromMatPtr - .asFunction Function(Mat, ffi.Pointer)>(); + late final _gapi_GMat_New_FromMatPtr = + _lookup Function(Mat, ffi.Pointer)>>( + 'gapi_GMat_New_FromMat'); + late final _gapi_GMat_New_FromMat = + _gapi_GMat_New_FromMatPtr.asFunction Function(Mat, ffi.Pointer)>(); void gapi_GScalar_Close( GScalarPtr scalar, @@ -22278,10 +20104,8 @@ class CvNative { } late final _gapi_GScalar_ClosePtr = - _lookup>( - 'gapi_GScalar_Close'); - late final _gapi_GScalar_Close = - _gapi_GScalar_ClosePtr.asFunction(); + _lookup>('gapi_GScalar_Close'); + late final _gapi_GScalar_Close = _gapi_GScalar_ClosePtr.asFunction(); ffi.Pointer gapi_GScalar_New_Empty( ffi.Pointer rval, @@ -22291,12 +20115,11 @@ class CvNative { ); } - late final _gapi_GScalar_New_EmptyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('gapi_GScalar_New_Empty'); - late final _gapi_GScalar_New_Empty = _gapi_GScalar_New_EmptyPtr - .asFunction Function(ffi.Pointer)>(); + late final _gapi_GScalar_New_EmptyPtr = + _lookup Function(ffi.Pointer)>>( + 'gapi_GScalar_New_Empty'); + late final _gapi_GScalar_New_Empty = + _gapi_GScalar_New_EmptyPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer gapi_GScalar_New_FromDouble( double v0, @@ -22308,13 +20131,11 @@ class CvNative { ); } - late final _gapi_GScalar_New_FromDoublePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Double, - ffi.Pointer)>>('gapi_GScalar_New_FromDouble'); - late final _gapi_GScalar_New_FromDouble = - _gapi_GScalar_New_FromDoublePtr.asFunction< - ffi.Pointer Function(double, ffi.Pointer)>(); + late final _gapi_GScalar_New_FromDoublePtr = + _lookup Function(ffi.Double, ffi.Pointer)>>( + 'gapi_GScalar_New_FromDouble'); + late final _gapi_GScalar_New_FromDouble = _gapi_GScalar_New_FromDoublePtr + .asFunction Function(double, ffi.Pointer)>(); ffi.Pointer gapi_GScalar_New_FromScalar( Scalar scalar, @@ -22326,13 +20147,11 @@ class CvNative { ); } - late final _gapi_GScalar_New_FromScalarPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Scalar, ffi.Pointer)>>('gapi_GScalar_New_FromScalar'); - late final _gapi_GScalar_New_FromScalar = - _gapi_GScalar_New_FromScalarPtr.asFunction< - ffi.Pointer Function(Scalar, ffi.Pointer)>(); + late final _gapi_GScalar_New_FromScalarPtr = + _lookup Function(Scalar, ffi.Pointer)>>( + 'gapi_GScalar_New_FromScalar'); + late final _gapi_GScalar_New_FromScalar = _gapi_GScalar_New_FromScalarPtr + .asFunction Function(Scalar, ffi.Pointer)>(); ffi.Pointer gapi_I4202BGR( GMat src, @@ -22344,12 +20163,10 @@ class CvNative { ); } - late final _gapi_I4202BGRPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_I4202BGR'); - late final _gapi_I4202BGR = _gapi_I4202BGRPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_I4202BGRPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_I4202BGR'); + late final _gapi_I4202BGR = + _gapi_I4202BGRPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_I4202RGB( GMat src, @@ -22361,12 +20178,10 @@ class CvNative { ); } - late final _gapi_I4202RGBPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_I4202RGB'); - late final _gapi_I4202RGB = _gapi_I4202RGBPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_I4202RGBPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_I4202RGB'); + late final _gapi_I4202RGB = + _gapi_I4202RGBPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_LUT( GMat src, @@ -22380,12 +20195,10 @@ class CvNative { ); } - late final _gapi_LUTPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, Mat, ffi.Pointer)>>('gapi_LUT'); - late final _gapi_LUT = _gapi_LUTPtr.asFunction< - ffi.Pointer Function(GMat, Mat, ffi.Pointer)>(); + late final _gapi_LUTPtr = + _lookup Function(GMat, Mat, ffi.Pointer)>>('gapi_LUT'); + late final _gapi_LUT = + _gapi_LUTPtr.asFunction Function(GMat, Mat, ffi.Pointer)>(); ffi.Pointer gapi_LUV2BGR( GMat src, @@ -22397,12 +20210,10 @@ class CvNative { ); } - late final _gapi_LUV2BGRPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_LUV2BGR'); - late final _gapi_LUV2BGR = _gapi_LUV2BGRPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_LUV2BGRPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_LUV2BGR'); + late final _gapi_LUV2BGR = + _gapi_LUV2BGRPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_Laplacian( GMat src, @@ -22426,11 +20237,10 @@ class CvNative { late final _gapi_LaplacianPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Int, ffi.Double, - ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_Laplacian'); - late final _gapi_Laplacian = _gapi_LaplacianPtr.asFunction< - ffi.Pointer Function( - GMat, int, int, double, double, int, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, ffi.Int, ffi.Int, ffi.Double, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_Laplacian'); + late final _gapi_Laplacian = _gapi_LaplacianPtr + .asFunction Function(GMat, int, int, double, double, int, ffi.Pointer)>(); ffi.Pointer gapi_NV12toBGR( GMat src_y, @@ -22444,12 +20254,11 @@ class CvNative { ); } - late final _gapi_NV12toBGRPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Pointer)>>('gapi_NV12toBGR'); - late final _gapi_NV12toBGR = _gapi_NV12toBGRPtr.asFunction< - ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_NV12toBGRPtr = + _lookup Function(GMat, GMat, ffi.Pointer)>>( + 'gapi_NV12toBGR'); + late final _gapi_NV12toBGR = + _gapi_NV12toBGRPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_NV12toBGRp( GMat src_y, @@ -22463,12 +20272,11 @@ class CvNative { ); } - late final _gapi_NV12toBGRpPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Pointer)>>('gapi_NV12toBGRp'); - late final _gapi_NV12toBGRp = _gapi_NV12toBGRpPtr.asFunction< - ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_NV12toBGRpPtr = + _lookup Function(GMat, GMat, ffi.Pointer)>>( + 'gapi_NV12toBGRp'); + late final _gapi_NV12toBGRp = + _gapi_NV12toBGRpPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_NV12toGray( GMat src_y, @@ -22482,12 +20290,11 @@ class CvNative { ); } - late final _gapi_NV12toGrayPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Pointer)>>('gapi_NV12toGray'); - late final _gapi_NV12toGray = _gapi_NV12toGrayPtr.asFunction< - ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_NV12toGrayPtr = + _lookup Function(GMat, GMat, ffi.Pointer)>>( + 'gapi_NV12toGray'); + late final _gapi_NV12toGray = + _gapi_NV12toGrayPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_NV12toRGB( GMat src_y, @@ -22501,12 +20308,11 @@ class CvNative { ); } - late final _gapi_NV12toRGBPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Pointer)>>('gapi_NV12toRGB'); - late final _gapi_NV12toRGB = _gapi_NV12toRGBPtr.asFunction< - ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_NV12toRGBPtr = + _lookup Function(GMat, GMat, ffi.Pointer)>>( + 'gapi_NV12toRGB'); + late final _gapi_NV12toRGB = + _gapi_NV12toRGBPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_NV12toRGBp( GMat src_y, @@ -22520,12 +20326,11 @@ class CvNative { ); } - late final _gapi_NV12toRGBpPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Pointer)>>('gapi_NV12toRGBp'); - late final _gapi_NV12toRGBp = _gapi_NV12toRGBpPtr.asFunction< - ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_NV12toRGBpPtr = + _lookup Function(GMat, GMat, ffi.Pointer)>>( + 'gapi_NV12toRGBp'); + late final _gapi_NV12toRGBp = + _gapi_NV12toRGBpPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_RGB2Gray( GMat src, @@ -22537,12 +20342,10 @@ class CvNative { ); } - late final _gapi_RGB2GrayPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_RGB2Gray'); - late final _gapi_RGB2Gray = _gapi_RGB2GrayPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_RGB2GrayPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_RGB2Gray'); + late final _gapi_RGB2Gray = + _gapi_RGB2GrayPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_RGB2Gray_1( GMat src, @@ -22562,11 +20365,10 @@ class CvNative { late final _gapi_RGB2Gray_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Float, ffi.Float, ffi.Float, - ffi.Pointer)>>('gapi_RGB2Gray_1'); - late final _gapi_RGB2Gray_1 = _gapi_RGB2Gray_1Ptr.asFunction< - ffi.Pointer Function( - GMat, double, double, double, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, ffi.Float, ffi.Float, ffi.Float, ffi.Pointer)>>('gapi_RGB2Gray_1'); + late final _gapi_RGB2Gray_1 = _gapi_RGB2Gray_1Ptr + .asFunction Function(GMat, double, double, double, ffi.Pointer)>(); ffi.Pointer gapi_RGB2HSV( GMat src, @@ -22578,12 +20380,10 @@ class CvNative { ); } - late final _gapi_RGB2HSVPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_RGB2HSV'); - late final _gapi_RGB2HSV = _gapi_RGB2HSVPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_RGB2HSVPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_RGB2HSV'); + late final _gapi_RGB2HSV = + _gapi_RGB2HSVPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_RGB2I420( GMat src, @@ -22595,12 +20395,10 @@ class CvNative { ); } - late final _gapi_RGB2I420Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_RGB2I420'); - late final _gapi_RGB2I420 = _gapi_RGB2I420Ptr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_RGB2I420Ptr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_RGB2I420'); + late final _gapi_RGB2I420 = + _gapi_RGB2I420Ptr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_RGB2Lab( GMat src, @@ -22612,12 +20410,10 @@ class CvNative { ); } - late final _gapi_RGB2LabPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_RGB2Lab'); - late final _gapi_RGB2Lab = _gapi_RGB2LabPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_RGB2LabPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_RGB2Lab'); + late final _gapi_RGB2Lab = + _gapi_RGB2LabPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_RGB2YUV( GMat src, @@ -22629,12 +20425,10 @@ class CvNative { ); } - late final _gapi_RGB2YUVPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_RGB2YUV'); - late final _gapi_RGB2YUV = _gapi_RGB2YUVPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_RGB2YUVPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_RGB2YUV'); + late final _gapi_RGB2YUV = + _gapi_RGB2YUVPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_RGB2YUV422( GMat src, @@ -22646,12 +20440,10 @@ class CvNative { ); } - late final _gapi_RGB2YUV422Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_RGB2YUV422'); - late final _gapi_RGB2YUV422 = _gapi_RGB2YUV422Ptr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_RGB2YUV422Ptr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_RGB2YUV422'); + late final _gapi_RGB2YUV422 = + _gapi_RGB2YUV422Ptr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_Sobel( GMat src, @@ -22681,20 +20473,11 @@ class CvNative { late final _gapi_SobelPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, - ffi.Int, - ffi.Int, - ffi.Int, - ffi.Int, - ffi.Double, - ffi.Double, - ffi.Int, - Scalar, - ffi.Pointer)>>('gapi_Sobel'); + ffi.Pointer Function(GMat, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Double, ffi.Double, + ffi.Int, Scalar, ffi.Pointer)>>('gapi_Sobel'); late final _gapi_Sobel = _gapi_SobelPtr.asFunction< - ffi.Pointer Function(GMat, int, int, int, int, double, double, - int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, int, int, int, int, double, double, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_SobelXY( GMat src, @@ -22724,20 +20507,11 @@ class CvNative { late final _gapi_SobelXYPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, - ffi.Int, - ffi.Int, - ffi.Int, - ffi.Double, - ffi.Double, - ffi.Int, - Scalar, - ffi.Pointer, - ffi.Pointer)>>('gapi_SobelXY'); + ffi.Pointer Function(GMat, ffi.Int, ffi.Int, ffi.Int, ffi.Double, ffi.Double, ffi.Int, + Scalar, ffi.Pointer, ffi.Pointer)>>('gapi_SobelXY'); late final _gapi_SobelXY = _gapi_SobelXYPtr.asFunction< - ffi.Pointer Function(GMat, int, int, int, double, double, int, - Scalar, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, int, int, int, double, double, int, Scalar, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer gapi_YUV2BGR( GMat src, @@ -22749,12 +20523,10 @@ class CvNative { ); } - late final _gapi_YUV2BGRPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_YUV2BGR'); - late final _gapi_YUV2BGR = _gapi_YUV2BGRPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_YUV2BGRPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_YUV2BGR'); + late final _gapi_YUV2BGR = + _gapi_YUV2BGRPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_YUV2RGB( GMat src, @@ -22766,12 +20538,10 @@ class CvNative { ); } - late final _gapi_YUV2RGBPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_YUV2RGB'); - late final _gapi_YUV2RGB = _gapi_YUV2RGBPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_YUV2RGBPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_YUV2RGB'); + late final _gapi_YUV2RGB = + _gapi_YUV2RGBPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_add( GMat src1, @@ -22787,12 +20557,11 @@ class CvNative { ); } - late final _gapi_addPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Int, ffi.Pointer)>>('gapi_add'); - late final _gapi_add = _gapi_addPtr.asFunction< - ffi.Pointer Function(GMat, GMat, int, ffi.Pointer)>(); + late final _gapi_addPtr = + _lookup Function(GMat, GMat, ffi.Int, ffi.Pointer)>>( + 'gapi_add'); + late final _gapi_add = + _gapi_addPtr.asFunction Function(GMat, GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_addC( GMat src, @@ -22808,12 +20577,11 @@ class CvNative { ); } - late final _gapi_addCPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GScalar, ffi.Int, ffi.Pointer)>>('gapi_addC'); - late final _gapi_addC = _gapi_addCPtr.asFunction< - ffi.Pointer Function(GMat, GScalar, int, ffi.Pointer)>(); + late final _gapi_addCPtr = + _lookup Function(GMat, GScalar, ffi.Int, ffi.Pointer)>>( + 'gapi_addC'); + late final _gapi_addC = + _gapi_addCPtr.asFunction Function(GMat, GScalar, int, ffi.Pointer)>(); ffi.Pointer gapi_addC_1( GScalar c, @@ -22829,12 +20597,11 @@ class CvNative { ); } - late final _gapi_addC_1Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GScalar, GMat, ffi.Int, ffi.Pointer)>>('gapi_addC_1'); - late final _gapi_addC_1 = _gapi_addC_1Ptr.asFunction< - ffi.Pointer Function(GScalar, GMat, int, ffi.Pointer)>(); + late final _gapi_addC_1Ptr = + _lookup Function(GScalar, GMat, ffi.Int, ffi.Pointer)>>( + 'gapi_addC_1'); + late final _gapi_addC_1 = + _gapi_addC_1Ptr.asFunction Function(GScalar, GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_bilateralFilter( GMat src, @@ -22856,11 +20623,10 @@ class CvNative { late final _gapi_bilateralFilterPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, - ffi.Int, ffi.Pointer)>>('gapi_bilateralFilter'); - late final _gapi_bilateralFilter = _gapi_bilateralFilterPtr.asFunction< - ffi.Pointer Function( - GMat, int, double, double, int, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, ffi.Int, ffi.Double, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_bilateralFilter'); + late final _gapi_bilateralFilter = _gapi_bilateralFilterPtr + .asFunction Function(GMat, int, double, double, int, ffi.Pointer)>(); ffi.Pointer gapi_blur( GMat src, @@ -22882,11 +20648,10 @@ class CvNative { late final _gapi_blurPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, Size, Point, ffi.Int, Scalar, - ffi.Pointer)>>('gapi_blur'); - late final _gapi_blur = _gapi_blurPtr.asFunction< - ffi.Pointer Function( - GMat, Size, Point, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, Size, Point, ffi.Int, Scalar, ffi.Pointer)>>('gapi_blur'); + late final _gapi_blur = _gapi_blurPtr + .asFunction Function(GMat, Size, Point, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_boundingRect( GArrayPoint2f src, @@ -22898,13 +20663,11 @@ class CvNative { ); } - late final _gapi_boundingRectPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GArrayPoint2f, ffi.Pointer)>>('gapi_boundingRect'); - late final _gapi_boundingRect = _gapi_boundingRectPtr.asFunction< - ffi.Pointer Function( - GArrayPoint2f, ffi.Pointer)>(); + late final _gapi_boundingRectPtr = + _lookup Function(GArrayPoint2f, ffi.Pointer)>>( + 'gapi_boundingRect'); + late final _gapi_boundingRect = _gapi_boundingRectPtr + .asFunction Function(GArrayPoint2f, ffi.Pointer)>(); ffi.Pointer gapi_boundingRect_1( GArrayPoint2i src, @@ -22916,13 +20679,11 @@ class CvNative { ); } - late final _gapi_boundingRect_1Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GArrayPoint2i, ffi.Pointer)>>('gapi_boundingRect_1'); - late final _gapi_boundingRect_1 = _gapi_boundingRect_1Ptr.asFunction< - ffi.Pointer Function( - GArrayPoint2i, ffi.Pointer)>(); + late final _gapi_boundingRect_1Ptr = + _lookup Function(GArrayPoint2i, ffi.Pointer)>>( + 'gapi_boundingRect_1'); + late final _gapi_boundingRect_1 = _gapi_boundingRect_1Ptr + .asFunction Function(GArrayPoint2i, ffi.Pointer)>(); ffi.Pointer gapi_boundingRect_2( GMat src, @@ -22934,12 +20695,11 @@ class CvNative { ); } - late final _gapi_boundingRect_2Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_boundingRect_2'); - late final _gapi_boundingRect_2 = _gapi_boundingRect_2Ptr.asFunction< - ffi.Pointer Function(GMat, ffi.Pointer)>(); + late final _gapi_boundingRect_2Ptr = + _lookup Function(GMat, ffi.Pointer)>>( + 'gapi_boundingRect_2'); + late final _gapi_boundingRect_2 = + _gapi_boundingRect_2Ptr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_boxFilter( GMat src, @@ -22965,11 +20725,10 @@ class CvNative { late final _gapi_boxFilterPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, Size, Point, ffi.Bool, - ffi.Int, Scalar, ffi.Pointer)>>('gapi_boxFilter'); + ffi.Pointer Function( + GMat, ffi.Int, Size, Point, ffi.Bool, ffi.Int, Scalar, ffi.Pointer)>>('gapi_boxFilter'); late final _gapi_boxFilter = _gapi_boxFilterPtr.asFunction< - ffi.Pointer Function( - GMat, int, Size, Point, bool, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function(GMat, int, Size, Point, bool, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_cartToPolar( GMat x, @@ -22989,11 +20748,10 @@ class CvNative { late final _gapi_cartToPolarPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, GMat, ffi.Bool, - ffi.Pointer, ffi.Pointer)>>('gapi_cartToPolar'); - late final _gapi_cartToPolar = _gapi_cartToPolarPtr.asFunction< - ffi.Pointer Function( - GMat, GMat, bool, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, GMat, ffi.Bool, ffi.Pointer, ffi.Pointer)>>('gapi_cartToPolar'); + late final _gapi_cartToPolar = _gapi_cartToPolarPtr + .asFunction Function(GMat, GMat, bool, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer gapi_concatHor( GMat src1, @@ -23007,12 +20765,11 @@ class CvNative { ); } - late final _gapi_concatHorPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Pointer)>>('gapi_concatHor'); - late final _gapi_concatHor = _gapi_concatHorPtr.asFunction< - ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_concatHorPtr = + _lookup Function(GMat, GMat, ffi.Pointer)>>( + 'gapi_concatHor'); + late final _gapi_concatHor = + _gapi_concatHorPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_concatVert( GMat src1, @@ -23026,12 +20783,11 @@ class CvNative { ); } - late final _gapi_concatVertPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Pointer)>>('gapi_concatVert'); - late final _gapi_concatVert = _gapi_concatVertPtr.asFunction< - ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_concatVertPtr = + _lookup Function(GMat, GMat, ffi.Pointer)>>( + 'gapi_concatVert'); + late final _gapi_concatVert = + _gapi_concatVertPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_convertTo( GMat src, @@ -23051,11 +20807,10 @@ class CvNative { late final _gapi_convertToPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, - ffi.Pointer)>>('gapi_convertTo'); - late final _gapi_convertTo = _gapi_convertToPtr.asFunction< - ffi.Pointer Function( - GMat, int, double, double, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, ffi.Int, ffi.Double, ffi.Double, ffi.Pointer)>>('gapi_convertTo'); + late final _gapi_convertTo = _gapi_convertToPtr + .asFunction Function(GMat, int, double, double, ffi.Pointer)>(); ffi.Pointer gapi_copy_1( GMat in1, @@ -23067,12 +20822,10 @@ class CvNative { ); } - late final _gapi_copy_1Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_copy_1'); - late final _gapi_copy_1 = _gapi_copy_1Ptr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_copy_1Ptr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_copy_1'); + late final _gapi_copy_1 = + _gapi_copy_1Ptr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_crop( GMat src, @@ -23086,12 +20839,10 @@ class CvNative { ); } - late final _gapi_cropPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, Rect, ffi.Pointer)>>('gapi_crop'); - late final _gapi_crop = _gapi_cropPtr.asFunction< - ffi.Pointer Function(GMat, Rect, ffi.Pointer)>(); + late final _gapi_cropPtr = + _lookup Function(GMat, Rect, ffi.Pointer)>>('gapi_crop'); + late final _gapi_crop = + _gapi_cropPtr.asFunction Function(GMat, Rect, ffi.Pointer)>(); ffi.Pointer gapi_dilate( GMat src, @@ -23115,11 +20866,10 @@ class CvNative { late final _gapi_dilatePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, Mat, Point, ffi.Int, ffi.Int, - Scalar, ffi.Pointer)>>('gapi_dilate'); - late final _gapi_dilate = _gapi_dilatePtr.asFunction< - ffi.Pointer Function( - GMat, Mat, Point, int, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, Mat, Point, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>('gapi_dilate'); + late final _gapi_dilate = _gapi_dilatePtr + .asFunction Function(GMat, Mat, Point, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_dilate3x3( GMat src, @@ -23138,12 +20888,11 @@ class CvNative { } late final _gapi_dilate3x3Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Int, Scalar, - ffi.Pointer)>>('gapi_dilate3x3'); - late final _gapi_dilate3x3 = _gapi_dilate3x3Ptr.asFunction< - ffi.Pointer Function( - GMat, int, int, Scalar, ffi.Pointer)>(); + ffi + .NativeFunction Function(GMat, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>( + 'gapi_dilate3x3'); + late final _gapi_dilate3x3 = _gapi_dilate3x3Ptr + .asFunction Function(GMat, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_div( GMat src1, @@ -23163,11 +20912,9 @@ class CvNative { late final _gapi_divPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_div'); - late final _gapi_div = _gapi_divPtr.asFunction< - ffi.Pointer Function( - GMat, GMat, double, int, ffi.Pointer)>(); + ffi.Pointer Function(GMat, GMat, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_div'); + late final _gapi_div = + _gapi_divPtr.asFunction Function(GMat, GMat, double, int, ffi.Pointer)>(); ffi.Pointer gapi_divC( GMat src, @@ -23187,11 +20934,10 @@ class CvNative { late final _gapi_divCPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, GScalar, ffi.Double, ffi.Int, - ffi.Pointer)>>('gapi_divC'); - late final _gapi_divC = _gapi_divCPtr.asFunction< - ffi.Pointer Function( - GMat, GScalar, double, int, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, GScalar, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_divC'); + late final _gapi_divC = _gapi_divCPtr + .asFunction Function(GMat, GScalar, double, int, ffi.Pointer)>(); ffi.Pointer gapi_divRC( GScalar divident, @@ -23211,11 +20957,10 @@ class CvNative { late final _gapi_divRCPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GScalar, GMat, ffi.Double, ffi.Int, - ffi.Pointer)>>('gapi_divRC'); - late final _gapi_divRC = _gapi_divRCPtr.asFunction< - ffi.Pointer Function( - GScalar, GMat, double, int, ffi.Pointer)>(); + ffi.Pointer Function( + GScalar, GMat, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_divRC'); + late final _gapi_divRC = _gapi_divRCPtr + .asFunction Function(GScalar, GMat, double, int, ffi.Pointer)>(); ffi.Pointer gapi_erode( GMat src, @@ -23239,11 +20984,10 @@ class CvNative { late final _gapi_erodePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, Mat, Point, ffi.Int, ffi.Int, - Scalar, ffi.Pointer)>>('gapi_erode'); - late final _gapi_erode = _gapi_erodePtr.asFunction< - ffi.Pointer Function( - GMat, Mat, Point, int, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, Mat, Point, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>('gapi_erode'); + late final _gapi_erode = _gapi_erodePtr + .asFunction Function(GMat, Mat, Point, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_erode3x3( GMat src, @@ -23262,12 +21006,11 @@ class CvNative { } late final _gapi_erode3x3Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Int, Scalar, - ffi.Pointer)>>('gapi_erode3x3'); - late final _gapi_erode3x3 = _gapi_erode3x3Ptr.asFunction< - ffi.Pointer Function( - GMat, int, int, Scalar, ffi.Pointer)>(); + ffi + .NativeFunction Function(GMat, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>( + 'gapi_erode3x3'); + late final _gapi_erode3x3 = _gapi_erode3x3Ptr + .asFunction Function(GMat, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_filter2D( GMat src, @@ -23293,11 +21036,10 @@ class CvNative { late final _gapi_filter2DPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, Mat, Point, Scalar, - ffi.Int, Scalar, ffi.Pointer)>>('gapi_filter2D'); + ffi.Pointer Function( + GMat, ffi.Int, Mat, Point, Scalar, ffi.Int, Scalar, ffi.Pointer)>>('gapi_filter2D'); late final _gapi_filter2D = _gapi_filter2DPtr.asFunction< - ffi.Pointer Function( - GMat, int, Mat, Point, Scalar, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function(GMat, int, Mat, Point, Scalar, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_findContours( GMat src, @@ -23315,11 +21057,10 @@ class CvNative { late final _gapi_findContoursPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Int, - ffi.Pointer)>>('gapi_findContours'); - late final _gapi_findContours = _gapi_findContoursPtr.asFunction< - ffi.Pointer Function( - GMat, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, ffi.Int, ffi.Int, ffi.Pointer)>>('gapi_findContours'); + late final _gapi_findContours = _gapi_findContoursPtr + .asFunction Function(GMat, int, int, ffi.Pointer)>(); ffi.Pointer gapi_findContoursH( GMat src, @@ -23339,15 +21080,11 @@ class CvNative { late final _gapi_findContoursHPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, - ffi.Int, - ffi.Int, - ffi.Pointer, + ffi.Pointer Function(GMat, ffi.Int, ffi.Int, ffi.Pointer, ffi.Pointer)>>('gapi_findContoursH'); late final _gapi_findContoursH = _gapi_findContoursHPtr.asFunction< - ffi.Pointer Function(GMat, int, int, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, int, int, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer gapi_findContoursH_1( GMat src, @@ -23369,16 +21106,11 @@ class CvNative { late final _gapi_findContoursH_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, - ffi.Int, - ffi.Int, - GOpaquePoint, - ffi.Pointer, + ffi.Pointer Function(GMat, ffi.Int, ffi.Int, GOpaquePoint, ffi.Pointer, ffi.Pointer)>>('gapi_findContoursH_1'); late final _gapi_findContoursH_1 = _gapi_findContoursH_1Ptr.asFunction< - ffi.Pointer Function(GMat, int, int, GOpaquePoint, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, int, int, GOpaquePoint, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer gapi_findContours_1( GMat src, @@ -23398,11 +21130,10 @@ class CvNative { late final _gapi_findContours_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Int, GOpaquePoint, - ffi.Pointer)>>('gapi_findContours_1'); + ffi.Pointer Function( + GMat, ffi.Int, ffi.Int, GOpaquePoint, ffi.Pointer)>>('gapi_findContours_1'); late final _gapi_findContours_1 = _gapi_findContours_1Ptr.asFunction< - ffi.Pointer Function( - GMat, int, int, GOpaquePoint, ffi.Pointer)>(); + ffi.Pointer Function(GMat, int, int, GOpaquePoint, ffi.Pointer)>(); ffi.Pointer gapi_fitLine2D( GArrayPoint2d src, @@ -23424,16 +21155,11 @@ class CvNative { late final _gapi_fitLine2DPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GArrayPoint2d, - ffi.Int, - ffi.Double, - ffi.Double, - ffi.Double, + ffi.Pointer Function(GArrayPoint2d, ffi.Int, ffi.Double, ffi.Double, ffi.Double, ffi.Pointer)>>('gapi_fitLine2D'); late final _gapi_fitLine2D = _gapi_fitLine2DPtr.asFunction< - ffi.Pointer Function(GArrayPoint2d, int, double, double, double, - ffi.Pointer)>(); + ffi.Pointer Function( + GArrayPoint2d, int, double, double, double, ffi.Pointer)>(); ffi.Pointer gapi_fitLine2D_1( GArrayPoint2f src, @@ -23455,16 +21181,11 @@ class CvNative { late final _gapi_fitLine2D_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GArrayPoint2f, - ffi.Int, - ffi.Double, - ffi.Double, - ffi.Double, + ffi.Pointer Function(GArrayPoint2f, ffi.Int, ffi.Double, ffi.Double, ffi.Double, ffi.Pointer)>>('gapi_fitLine2D_1'); late final _gapi_fitLine2D_1 = _gapi_fitLine2D_1Ptr.asFunction< - ffi.Pointer Function(GArrayPoint2f, int, double, double, double, - ffi.Pointer)>(); + ffi.Pointer Function( + GArrayPoint2f, int, double, double, double, ffi.Pointer)>(); ffi.Pointer gapi_fitLine2D_2( GArrayPoint2i src, @@ -23486,16 +21207,11 @@ class CvNative { late final _gapi_fitLine2D_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GArrayPoint2i, - ffi.Int, - ffi.Double, - ffi.Double, - ffi.Double, + ffi.Pointer Function(GArrayPoint2i, ffi.Int, ffi.Double, ffi.Double, ffi.Double, ffi.Pointer)>>('gapi_fitLine2D_2'); late final _gapi_fitLine2D_2 = _gapi_fitLine2D_2Ptr.asFunction< - ffi.Pointer Function(GArrayPoint2i, int, double, double, double, - ffi.Pointer)>(); + ffi.Pointer Function( + GArrayPoint2i, int, double, double, double, ffi.Pointer)>(); ffi.Pointer gapi_fitLine2D_3( GMat src, @@ -23517,11 +21233,10 @@ class CvNative { late final _gapi_fitLine2D_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, - ffi.Double, ffi.Pointer)>>('gapi_fitLine2D_3'); + ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, ffi.Double, + ffi.Pointer)>>('gapi_fitLine2D_3'); late final _gapi_fitLine2D_3 = _gapi_fitLine2D_3Ptr.asFunction< - ffi.Pointer Function( - GMat, int, double, double, double, ffi.Pointer)>(); + ffi.Pointer Function(GMat, int, double, double, double, ffi.Pointer)>(); ffi.Pointer gapi_fitLine3D_1( GArrayPoint3d src, @@ -23543,16 +21258,11 @@ class CvNative { late final _gapi_fitLine3D_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GArrayPoint3d, - ffi.Int, - ffi.Double, - ffi.Double, - ffi.Double, + ffi.Pointer Function(GArrayPoint3d, ffi.Int, ffi.Double, ffi.Double, ffi.Double, ffi.Pointer)>>('gapi_fitLine3D_1'); late final _gapi_fitLine3D_1 = _gapi_fitLine3D_1Ptr.asFunction< - ffi.Pointer Function(GArrayPoint3d, int, double, double, double, - ffi.Pointer)>(); + ffi.Pointer Function( + GArrayPoint3d, int, double, double, double, ffi.Pointer)>(); ffi.Pointer gapi_fitLine3D_2( GArrayPoint3f src, @@ -23574,16 +21284,11 @@ class CvNative { late final _gapi_fitLine3D_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GArrayPoint3f, - ffi.Int, - ffi.Double, - ffi.Double, - ffi.Double, + ffi.Pointer Function(GArrayPoint3f, ffi.Int, ffi.Double, ffi.Double, ffi.Double, ffi.Pointer)>>('gapi_fitLine3D_2'); late final _gapi_fitLine3D_2 = _gapi_fitLine3D_2Ptr.asFunction< - ffi.Pointer Function(GArrayPoint3f, int, double, double, double, - ffi.Pointer)>(); + ffi.Pointer Function( + GArrayPoint3f, int, double, double, double, ffi.Pointer)>(); ffi.Pointer gapi_fitLine3D_3( GArrayPoint3i src, @@ -23605,16 +21310,11 @@ class CvNative { late final _gapi_fitLine3D_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GArrayPoint3i, - ffi.Int, - ffi.Double, - ffi.Double, - ffi.Double, + ffi.Pointer Function(GArrayPoint3i, ffi.Int, ffi.Double, ffi.Double, ffi.Double, ffi.Pointer)>>('gapi_fitLine3D_3'); late final _gapi_fitLine3D_3 = _gapi_fitLine3D_3Ptr.asFunction< - ffi.Pointer Function(GArrayPoint3i, int, double, double, double, - ffi.Pointer)>(); + ffi.Pointer Function( + GArrayPoint3i, int, double, double, double, ffi.Pointer)>(); ffi.Pointer gapi_fitLine3D_4( GMat src, @@ -23636,11 +21336,10 @@ class CvNative { late final _gapi_fitLine3D_4Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, - ffi.Double, ffi.Pointer)>>('gapi_fitLine3D_4'); + ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, ffi.Double, + ffi.Pointer)>>('gapi_fitLine3D_4'); late final _gapi_fitLine3D_4 = _gapi_fitLine3D_4Ptr.asFunction< - ffi.Pointer Function( - GMat, int, double, double, double, ffi.Pointer)>(); + ffi.Pointer Function(GMat, int, double, double, double, ffi.Pointer)>(); ffi.Pointer gapi_flip( GMat src, @@ -23654,12 +21353,11 @@ class CvNative { ); } - late final _gapi_flipPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Int, ffi.Pointer)>>('gapi_flip'); - late final _gapi_flip = _gapi_flipPtr.asFunction< - ffi.Pointer Function(GMat, int, ffi.Pointer)>(); + late final _gapi_flipPtr = + _lookup Function(GMat, ffi.Int, ffi.Pointer)>>( + 'gapi_flip'); + late final _gapi_flip = + _gapi_flipPtr.asFunction Function(GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_gaussianBlur( GMat src, @@ -23683,11 +21381,10 @@ class CvNative { late final _gapi_gaussianBlurPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, Size, ffi.Double, ffi.Double, - ffi.Int, Scalar, ffi.Pointer)>>('gapi_gaussianBlur'); + ffi.Pointer Function( + GMat, Size, ffi.Double, ffi.Double, ffi.Int, Scalar, ffi.Pointer)>>('gapi_gaussianBlur'); late final _gapi_gaussianBlur = _gapi_gaussianBlurPtr.asFunction< - ffi.Pointer Function( - GMat, Size, double, double, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function(GMat, Size, double, double, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_goodFeaturesToTrack( GMat image, @@ -23713,12 +21410,10 @@ class CvNative { late final _gapi_goodFeaturesToTrackPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, - Mat, ffi.Int, ffi.Bool, ffi.Double)>>('gapi_goodFeaturesToTrack'); - late final _gapi_goodFeaturesToTrack = - _gapi_goodFeaturesToTrackPtr.asFunction< - ffi.Pointer Function( - GMat, int, double, double, Mat, int, bool, double)>(); + ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, Mat, ffi.Int, ffi.Bool, + ffi.Double)>>('gapi_goodFeaturesToTrack'); + late final _gapi_goodFeaturesToTrack = _gapi_goodFeaturesToTrackPtr + .asFunction Function(GMat, int, double, double, Mat, int, bool, double)>(); ffi.Pointer gapi_mask( GMat src, @@ -23732,12 +21427,10 @@ class CvNative { ); } - late final _gapi_maskPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Pointer)>>('gapi_mask'); - late final _gapi_mask = _gapi_maskPtr.asFunction< - ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_maskPtr = + _lookup Function(GMat, GMat, ffi.Pointer)>>('gapi_mask'); + late final _gapi_mask = + _gapi_maskPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_mean( GMat src, @@ -23749,12 +21442,10 @@ class CvNative { ); } - late final _gapi_meanPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_mean'); - late final _gapi_mean = _gapi_meanPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_meanPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_mean'); + late final _gapi_mean = + _gapi_meanPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_medianBlur( GMat src, @@ -23768,12 +21459,11 @@ class CvNative { ); } - late final _gapi_medianBlurPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Int, ffi.Pointer)>>('gapi_medianBlur'); - late final _gapi_medianBlur = _gapi_medianBlurPtr.asFunction< - ffi.Pointer Function(GMat, int, ffi.Pointer)>(); + late final _gapi_medianBlurPtr = + _lookup Function(GMat, ffi.Int, ffi.Pointer)>>( + 'gapi_medianBlur'); + late final _gapi_medianBlur = + _gapi_medianBlurPtr.asFunction Function(GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_merge3( GMat src1, @@ -23789,12 +21479,11 @@ class CvNative { ); } - late final _gapi_merge3Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, GMat, ffi.Pointer)>>('gapi_merge3'); - late final _gapi_merge3 = _gapi_merge3Ptr.asFunction< - ffi.Pointer Function(GMat, GMat, GMat, ffi.Pointer)>(); + late final _gapi_merge3Ptr = + _lookup Function(GMat, GMat, GMat, ffi.Pointer)>>( + 'gapi_merge3'); + late final _gapi_merge3 = + _gapi_merge3Ptr.asFunction Function(GMat, GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_merge4( GMat src1, @@ -23812,13 +21501,11 @@ class CvNative { ); } - late final _gapi_merge4Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, GMat, GMat, ffi.Pointer)>>('gapi_merge4'); - late final _gapi_merge4 = _gapi_merge4Ptr.asFunction< - ffi.Pointer Function( - GMat, GMat, GMat, GMat, ffi.Pointer)>(); + late final _gapi_merge4Ptr = + _lookup Function(GMat, GMat, GMat, GMat, ffi.Pointer)>>( + 'gapi_merge4'); + late final _gapi_merge4 = + _gapi_merge4Ptr.asFunction Function(GMat, GMat, GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_morphologyEx( GMat src, @@ -23844,11 +21531,10 @@ class CvNative { late final _gapi_morphologyExPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, Mat, Point, ffi.Int, - ffi.Int, Scalar, ffi.Pointer)>>('gapi_morphologyEx'); + ffi.Pointer Function( + GMat, ffi.Int, Mat, Point, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>('gapi_morphologyEx'); late final _gapi_morphologyEx = _gapi_morphologyExPtr.asFunction< - ffi.Pointer Function( - GMat, int, Mat, Point, int, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function(GMat, int, Mat, Point, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_mul( GMat src1, @@ -23868,11 +21554,9 @@ class CvNative { late final _gapi_mulPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_mul'); - late final _gapi_mul = _gapi_mulPtr.asFunction< - ffi.Pointer Function( - GMat, GMat, double, int, ffi.Pointer)>(); + ffi.Pointer Function(GMat, GMat, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_mul'); + late final _gapi_mul = + _gapi_mulPtr.asFunction Function(GMat, GMat, double, int, ffi.Pointer)>(); ffi.Pointer gapi_mulC( GMat src, @@ -23888,12 +21572,11 @@ class CvNative { ); } - late final _gapi_mulCPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GScalar, ffi.Int, ffi.Pointer)>>('gapi_mulC'); - late final _gapi_mulC = _gapi_mulCPtr.asFunction< - ffi.Pointer Function(GMat, GScalar, int, ffi.Pointer)>(); + late final _gapi_mulCPtr = + _lookup Function(GMat, GScalar, ffi.Int, ffi.Pointer)>>( + 'gapi_mulC'); + late final _gapi_mulC = + _gapi_mulCPtr.asFunction Function(GMat, GScalar, int, ffi.Pointer)>(); ffi.Pointer gapi_mulC_1( GMat src, @@ -23910,11 +21593,10 @@ class CvNative { } late final _gapi_mulC_1Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_mulC_1'); - late final _gapi_mulC_1 = _gapi_mulC_1Ptr.asFunction< - ffi.Pointer Function(GMat, double, int, ffi.Pointer)>(); + ffi.NativeFunction Function(GMat, ffi.Double, ffi.Int, ffi.Pointer)>>( + 'gapi_mulC_1'); + late final _gapi_mulC_1 = + _gapi_mulC_1Ptr.asFunction Function(GMat, double, int, ffi.Pointer)>(); ffi.Pointer gapi_mulC_2( GScalar multiplier, @@ -23930,12 +21612,11 @@ class CvNative { ); } - late final _gapi_mulC_2Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GScalar, GMat, ffi.Int, ffi.Pointer)>>('gapi_mulC_2'); - late final _gapi_mulC_2 = _gapi_mulC_2Ptr.asFunction< - ffi.Pointer Function(GScalar, GMat, int, ffi.Pointer)>(); + late final _gapi_mulC_2Ptr = + _lookup Function(GScalar, GMat, ffi.Int, ffi.Pointer)>>( + 'gapi_mulC_2'); + late final _gapi_mulC_2 = + _gapi_mulC_2Ptr.asFunction Function(GScalar, GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_normalize( GMat src, @@ -23957,11 +21638,10 @@ class CvNative { late final _gapi_normalizePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Double, ffi.Double, ffi.Int, - ffi.Int, ffi.Pointer)>>('gapi_normalize'); - late final _gapi_normalize = _gapi_normalizePtr.asFunction< - ffi.Pointer Function( - GMat, double, double, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, ffi.Double, ffi.Double, ffi.Int, ffi.Int, ffi.Pointer)>>('gapi_normalize'); + late final _gapi_normalize = _gapi_normalizePtr + .asFunction Function(GMat, double, double, int, int, ffi.Pointer)>(); ffi.Pointer gapi_phase( GMat x, @@ -23977,12 +21657,11 @@ class CvNative { ); } - late final _gapi_phasePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Bool, ffi.Pointer)>>('gapi_phase'); - late final _gapi_phase = _gapi_phasePtr.asFunction< - ffi.Pointer Function(GMat, GMat, bool, ffi.Pointer)>(); + late final _gapi_phasePtr = + _lookup Function(GMat, GMat, ffi.Bool, ffi.Pointer)>>( + 'gapi_phase'); + late final _gapi_phase = + _gapi_phasePtr.asFunction Function(GMat, GMat, bool, ffi.Pointer)>(); ffi.Pointer gapi_polarToCart( GMat magnitude, @@ -23998,12 +21677,11 @@ class CvNative { ); } - late final _gapi_polarToCartPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Bool, ffi.Pointer)>>('gapi_polarToCart'); - late final _gapi_polarToCart = _gapi_polarToCartPtr.asFunction< - ffi.Pointer Function(GMat, GMat, bool, ffi.Pointer)>(); + late final _gapi_polarToCartPtr = + _lookup Function(GMat, GMat, ffi.Bool, ffi.Pointer)>>( + 'gapi_polarToCart'); + late final _gapi_polarToCart = + _gapi_polarToCartPtr.asFunction Function(GMat, GMat, bool, ffi.Pointer)>(); ffi.Pointer gapi_remap( GMat src, @@ -24027,11 +21705,10 @@ class CvNative { late final _gapi_remapPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, Mat, Mat, ffi.Int, ffi.Int, - Scalar, ffi.Pointer)>>('gapi_remap'); - late final _gapi_remap = _gapi_remapPtr.asFunction< - ffi.Pointer Function( - GMat, Mat, Mat, int, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, Mat, Mat, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>('gapi_remap'); + late final _gapi_remap = _gapi_remapPtr + .asFunction Function(GMat, Mat, Mat, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_resize( GMat src, @@ -24053,11 +21730,10 @@ class CvNative { late final _gapi_resizePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, Size, ffi.Double, ffi.Double, - ffi.Int, ffi.Pointer)>>('gapi_resize'); - late final _gapi_resize = _gapi_resizePtr.asFunction< - ffi.Pointer Function( - GMat, Size, double, double, int, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, Size, ffi.Double, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_resize'); + late final _gapi_resize = _gapi_resizePtr + .asFunction Function(GMat, Size, double, double, int, ffi.Pointer)>(); ffi.Pointer gapi_resizeP( GMat src, @@ -24073,12 +21749,11 @@ class CvNative { ); } - late final _gapi_resizePPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, Size, ffi.Int, ffi.Pointer)>>('gapi_resizeP'); - late final _gapi_resizeP = _gapi_resizePPtr.asFunction< - ffi.Pointer Function(GMat, Size, int, ffi.Pointer)>(); + late final _gapi_resizePPtr = + _lookup Function(GMat, Size, ffi.Int, ffi.Pointer)>>( + 'gapi_resizeP'); + late final _gapi_resizeP = + _gapi_resizePPtr.asFunction Function(GMat, Size, int, ffi.Pointer)>(); ffi.Pointer gapi_sepFilter( GMat src, @@ -24106,11 +21781,10 @@ class CvNative { late final _gapi_sepFilterPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, Mat, Mat, Point, Scalar, - ffi.Int, Scalar, ffi.Pointer)>>('gapi_sepFilter'); + ffi.Pointer Function( + GMat, ffi.Int, Mat, Mat, Point, Scalar, ffi.Int, Scalar, ffi.Pointer)>>('gapi_sepFilter'); late final _gapi_sepFilter = _gapi_sepFilterPtr.asFunction< - ffi.Pointer Function(GMat, int, Mat, Mat, Point, Scalar, int, - Scalar, ffi.Pointer)>(); + ffi.Pointer Function(GMat, int, Mat, Mat, Point, Scalar, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_split3( GMat src, @@ -24128,11 +21802,10 @@ class CvNative { late final _gapi_split3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('gapi_split3'); + ffi.Pointer Function( + GMat, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('gapi_split3'); late final _gapi_split3 = _gapi_split3Ptr.asFunction< - ffi.Pointer Function( - GMat, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(GMat, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer gapi_split4( GMat src, @@ -24152,15 +21825,11 @@ class CvNative { late final _gapi_split4Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer Function(GMat, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('gapi_split4'); late final _gapi_split4 = _gapi_split4Ptr.asFunction< - ffi.Pointer Function(GMat, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer gapi_sqrt( GMat src, @@ -24172,12 +21841,9 @@ class CvNative { ); } - late final _gapi_sqrtPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer)>>('gapi_sqrt'); - late final _gapi_sqrt = _gapi_sqrtPtr - .asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_sqrtPtr = + _lookup Function(GMat, ffi.Pointer)>>('gapi_sqrt'); + late final _gapi_sqrt = _gapi_sqrtPtr.asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_sub( GMat src1, @@ -24193,12 +21859,11 @@ class CvNative { ); } - late final _gapi_subPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Int, ffi.Pointer)>>('gapi_sub'); - late final _gapi_sub = _gapi_subPtr.asFunction< - ffi.Pointer Function(GMat, GMat, int, ffi.Pointer)>(); + late final _gapi_subPtr = + _lookup Function(GMat, GMat, ffi.Int, ffi.Pointer)>>( + 'gapi_sub'); + late final _gapi_sub = + _gapi_subPtr.asFunction Function(GMat, GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_subC( GMat src, @@ -24214,12 +21879,11 @@ class CvNative { ); } - late final _gapi_subCPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GMat, GScalar, ffi.Int, ffi.Pointer)>>('gapi_subC'); - late final _gapi_subC = _gapi_subCPtr.asFunction< - ffi.Pointer Function(GMat, GScalar, int, ffi.Pointer)>(); + late final _gapi_subCPtr = + _lookup Function(GMat, GScalar, ffi.Int, ffi.Pointer)>>( + 'gapi_subC'); + late final _gapi_subC = + _gapi_subCPtr.asFunction Function(GMat, GScalar, int, ffi.Pointer)>(); ffi.Pointer gapi_subRC( GScalar c, @@ -24235,12 +21899,11 @@ class CvNative { ); } - late final _gapi_subRCPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GScalar, GMat, ffi.Int, ffi.Pointer)>>('gapi_subRC'); - late final _gapi_subRC = _gapi_subRCPtr.asFunction< - ffi.Pointer Function(GScalar, GMat, int, ffi.Pointer)>(); + late final _gapi_subRCPtr = + _lookup Function(GScalar, GMat, ffi.Int, ffi.Pointer)>>( + 'gapi_subRC'); + late final _gapi_subRC = + _gapi_subRCPtr.asFunction Function(GScalar, GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_warpAffine( GMat src, @@ -24264,11 +21927,10 @@ class CvNative { late final _gapi_warpAffinePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, Mat, Size, ffi.Int, ffi.Int, - Scalar, ffi.Pointer)>>('gapi_warpAffine'); - late final _gapi_warpAffine = _gapi_warpAffinePtr.asFunction< - ffi.Pointer Function( - GMat, Mat, Size, int, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, Mat, Size, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>('gapi_warpAffine'); + late final _gapi_warpAffine = _gapi_warpAffinePtr + .asFunction Function(GMat, Mat, Size, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_warpPerspective( GMat src, @@ -24292,11 +21954,10 @@ class CvNative { late final _gapi_warpPerspectivePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, Mat, Size, ffi.Int, ffi.Int, - Scalar, ffi.Pointer)>>('gapi_warpPerspective'); - late final _gapi_warpPerspective = _gapi_warpPerspectivePtr.asFunction< - ffi.Pointer Function( - GMat, Mat, Size, int, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, Mat, Size, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>('gapi_warpPerspective'); + late final _gapi_warpPerspective = _gapi_warpPerspectivePtr + .asFunction Function(GMat, Mat, Size, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer getBuildInfo( ffi.Pointer> rval, @@ -24306,12 +21967,11 @@ class CvNative { ); } - late final _getBuildInfoPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer>)>>('getBuildInfo'); - late final _getBuildInfo = _getBuildInfoPtr.asFunction< - ffi.Pointer Function(ffi.Pointer>)>(); + late final _getBuildInfoPtr = + _lookup Function(ffi.Pointer>)>>( + 'getBuildInfo'); + late final _getBuildInfo = + _getBuildInfoPtr.asFunction Function(ffi.Pointer>)>(); ffi.Pointer getOptimalNewCameraMatrix_Async( Mat cameraMatrix, @@ -24335,12 +21995,10 @@ class CvNative { late final _getOptimalNewCameraMatrix_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Size, ffi.Double, Size, - ffi.Bool, CvCallback_2)>>('getOptimalNewCameraMatrix_Async'); - late final _getOptimalNewCameraMatrix_Async = - _getOptimalNewCameraMatrix_AsyncPtr.asFunction< ffi.Pointer Function( - Mat, Mat, Size, double, Size, bool, CvCallback_2)>(); + Mat, Mat, Size, ffi.Double, Size, ffi.Bool, CvCallback_2)>>('getOptimalNewCameraMatrix_Async'); + late final _getOptimalNewCameraMatrix_Async = _getOptimalNewCameraMatrix_AsyncPtr + .asFunction Function(Mat, Mat, Size, double, Size, bool, CvCallback_2)>(); ffi.Pointer getPredefinedDictionary( int dictionaryId, @@ -24352,12 +22010,11 @@ class CvNative { ); } - late final _getPredefinedDictionaryPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, - ffi.Pointer)>>('getPredefinedDictionary'); - late final _getPredefinedDictionary = _getPredefinedDictionaryPtr.asFunction< - ffi.Pointer Function(int, ffi.Pointer)>(); + late final _getPredefinedDictionaryPtr = + _lookup Function(ffi.Int, ffi.Pointer)>>( + 'getPredefinedDictionary'); + late final _getPredefinedDictionary = _getPredefinedDictionaryPtr + .asFunction Function(int, ffi.Pointer)>(); ffi.Pointer initUndistortRectifyMap_Async( Mat cameraMatrix, @@ -24380,13 +22037,11 @@ class CvNative { } late final _initUndistortRectifyMap_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, Size, ffi.Int, - CvCallback_2)>>('initUndistortRectifyMap_Async'); - late final _initUndistortRectifyMap_Async = - _initUndistortRectifyMap_AsyncPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, Size, int, CvCallback_2)>(); + ffi + .NativeFunction Function(Mat, Mat, Mat, Mat, Size, ffi.Int, CvCallback_2)>>( + 'initUndistortRectifyMap_Async'); + late final _initUndistortRectifyMap_Async = _initUndistortRectifyMap_AsyncPtr + .asFunction Function(Mat, Mat, Mat, Mat, Size, int, CvCallback_2)>(); ffi.Pointer marrHildrethHashCompare( Mat a, @@ -24406,11 +22061,10 @@ class CvNative { late final _marrHildrethHashComparePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Float, ffi.Float, - ffi.Pointer)>>('marrHildrethHashCompare'); - late final _marrHildrethHashCompare = _marrHildrethHashComparePtr.asFunction< - ffi.Pointer Function( - Mat, Mat, double, double, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, Mat, ffi.Float, ffi.Float, ffi.Pointer)>>('marrHildrethHashCompare'); + late final _marrHildrethHashCompare = _marrHildrethHashComparePtr + .asFunction Function(Mat, Mat, double, double, ffi.Pointer)>(); ffi.Pointer marrHildrethHashCompute( Mat inputArr, @@ -24426,12 +22080,11 @@ class CvNative { ); } - late final _marrHildrethHashComputePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Float, ffi.Float)>>('marrHildrethHashCompute'); - late final _marrHildrethHashCompute = _marrHildrethHashComputePtr - .asFunction Function(Mat, Mat, double, double)>(); + late final _marrHildrethHashComputePtr = + _lookup Function(Mat, Mat, ffi.Float, ffi.Float)>>( + 'marrHildrethHashCompute'); + late final _marrHildrethHashCompute = + _marrHildrethHashComputePtr.asFunction Function(Mat, Mat, double, double)>(); ffi.Pointer openCVVersion( ffi.Pointer> rval, @@ -24441,12 +22094,11 @@ class CvNative { ); } - late final _openCVVersionPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer>)>>('openCVVersion'); - late final _openCVVersion = _openCVVersionPtr.asFunction< - ffi.Pointer Function(ffi.Pointer>)>(); + late final _openCVVersionPtr = + _lookup Function(ffi.Pointer>)>>( + 'openCVVersion'); + late final _openCVVersion = + _openCVVersionPtr.asFunction Function(ffi.Pointer>)>(); ffi.Pointer pHashCompare( Mat a, @@ -24460,12 +22112,11 @@ class CvNative { ); } - late final _pHashComparePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Pointer)>>('pHashCompare'); - late final _pHashCompare = _pHashComparePtr.asFunction< - ffi.Pointer Function(Mat, Mat, ffi.Pointer)>(); + late final _pHashComparePtr = + _lookup Function(Mat, Mat, ffi.Pointer)>>( + 'pHashCompare'); + late final _pHashCompare = + _pHashComparePtr.asFunction Function(Mat, Mat, ffi.Pointer)>(); ffi.Pointer pHashCompute( Mat inputArr, @@ -24478,10 +22129,8 @@ class CvNative { } late final _pHashComputePtr = - _lookup Function(Mat, Mat)>>( - 'pHashCompute'); - late final _pHashCompute = - _pHashComputePtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>('pHashCompute'); + late final _pHashCompute = _pHashComputePtr.asFunction Function(Mat, Mat)>(); ffi.Pointer radialVarianceHashCompare( Mat a, @@ -24501,12 +22150,10 @@ class CvNative { late final _radialVarianceHashComparePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Double, ffi.Int, - ffi.Pointer)>>('radialVarianceHashCompare'); - late final _radialVarianceHashCompare = - _radialVarianceHashComparePtr.asFunction< ffi.Pointer Function( - Mat, Mat, double, int, ffi.Pointer)>(); + Mat, Mat, ffi.Double, ffi.Int, ffi.Pointer)>>('radialVarianceHashCompare'); + late final _radialVarianceHashCompare = _radialVarianceHashComparePtr + .asFunction Function(Mat, Mat, double, int, ffi.Pointer)>(); ffi.Pointer radialVarianceHashCompute( Mat inputArr, @@ -24522,12 +22169,11 @@ class CvNative { ); } - late final _radialVarianceHashComputePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Double, ffi.Int)>>('radialVarianceHashCompute'); - late final _radialVarianceHashCompute = _radialVarianceHashComputePtr - .asFunction Function(Mat, Mat, double, int)>(); + late final _radialVarianceHashComputePtr = + _lookup Function(Mat, Mat, ffi.Double, ffi.Int)>>( + 'radialVarianceHashCompute'); + late final _radialVarianceHashCompute = + _radialVarianceHashComputePtr.asFunction Function(Mat, Mat, double, int)>(); void registerErrorCallback( ErrorCallback callback, @@ -24538,10 +22184,8 @@ class CvNative { } late final _registerErrorCallbackPtr = - _lookup>( - 'registerErrorCallback'); - late final _registerErrorCallback = - _registerErrorCallbackPtr.asFunction(); + _lookup>('registerErrorCallback'); + late final _registerErrorCallback = _registerErrorCallbackPtr.asFunction(); ffi.Pointer undistortPoints_Async( Mat distorted, @@ -24565,11 +22209,10 @@ class CvNative { late final _undistortPoints_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, TermCriteria, - CvCallback_1)>>('undistortPoints_Async'); - late final _undistortPoints_Async = _undistortPoints_AsyncPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, Mat, TermCriteria, CvCallback_1)>(); + ffi.Pointer Function( + Mat, Mat, Mat, Mat, Mat, TermCriteria, CvCallback_1)>>('undistortPoints_Async'); + late final _undistortPoints_Async = _undistortPoints_AsyncPtr + .asFunction Function(Mat, Mat, Mat, Mat, Mat, TermCriteria, CvCallback_1)>(); ffi.Pointer undistort_Async( Mat src, @@ -24587,12 +22230,11 @@ class CvNative { ); } - late final _undistort_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, CvCallback_1)>>('undistort_Async'); - late final _undistort_Async = _undistort_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, CvCallback_1)>(); + late final _undistort_AsyncPtr = + _lookup Function(Mat, Mat, Mat, Mat, CvCallback_1)>>( + 'undistort_Async'); + late final _undistort_Async = + _undistort_AsyncPtr.asFunction Function(Mat, Mat, Mat, Mat, CvCallback_1)>(); late final addresses = _SymbolAddresses(this); } @@ -24600,140 +22242,123 @@ class CvNative { class _SymbolAddresses { final CvNative _library; _SymbolAddresses(this._library); - ffi.Pointer> - get AKAZE_Close => _library._AKAZE_ClosePtr; + ffi.Pointer> get AKAZE_Close => _library._AKAZE_ClosePtr; ffi.Pointer> get AgastFeatureDetector_Close => _library._AgastFeatureDetector_ClosePtr; - ffi.Pointer> - get AlignMTB_Close => _library._AlignMTB_ClosePtr; + ffi.Pointer> get AlignMTB_Close => + _library._AlignMTB_ClosePtr; ffi.Pointer> - get ArucoDetectorParameters_Close => - _library._ArucoDetectorParameters_ClosePtr; - ffi.Pointer> - get ArucoDetector_Close => _library._ArucoDetector_ClosePtr; - ffi.Pointer> - get ArucoDictionary_Close => _library._ArucoDictionary_ClosePtr; - ffi.Pointer> - get AsyncArray_Close => _library._AsyncArray_ClosePtr; - ffi.Pointer> - get BFMatcher_Close => _library._BFMatcher_ClosePtr; - ffi.Pointer> - get BRISK_Close => _library._BRISK_ClosePtr; + get ArucoDetectorParameters_Close => _library._ArucoDetectorParameters_ClosePtr; + ffi.Pointer> get ArucoDetector_Close => + _library._ArucoDetector_ClosePtr; + ffi.Pointer> get ArucoDictionary_Close => + _library._ArucoDictionary_ClosePtr; + ffi.Pointer> get AsyncArray_Close => + _library._AsyncArray_ClosePtr; + ffi.Pointer> get BFMatcher_Close => + _library._BFMatcher_ClosePtr; + ffi.Pointer> get BRISK_Close => _library._BRISK_ClosePtr; ffi.Pointer> - get BackgroundSubtractorKNN_Close => - _library._BackgroundSubtractorKNN_ClosePtr; - ffi.Pointer< - ffi.NativeFunction> - get BackgroundSubtractorMOG2_Close => - _library._BackgroundSubtractorMOG2_ClosePtr; - ffi.Pointer> - get BlockMeanHash_Close => _library._BlockMeanHash_ClosePtr; - ffi.Pointer> - get CLAHE_Close => _library._CLAHE_ClosePtr; - ffi.Pointer> - get CascadeClassifier_Close => _library._CascadeClassifier_ClosePtr; - ffi.Pointer)>> - get CvStatus_Close => _library._CvStatus_ClosePtr; - ffi.Pointer> - get FaceDetectorYN_Close => _library._FaceDetectorYN_ClosePtr; - ffi.Pointer> - get FaceRecognizerSF_Close => _library._FaceRecognizerSF_ClosePtr; - ffi.Pointer> - get FastFeatureDetector_Close => _library._FastFeatureDetector_ClosePtr; - ffi.Pointer> - get FlannBasedMatcher_Close => _library._FlannBasedMatcher_ClosePtr; - ffi.Pointer> - get GFTTDetector_Close => _library._GFTTDetector_ClosePtr; - ffi.Pointer> - get HOGDescriptor_Close => _library._HOGDescriptor_ClosePtr; - ffi.Pointer> get KAZE_Close => - _library._KAZE_ClosePtr; - ffi.Pointer> - get KalmanFilter_Close => _library._KalmanFilter_ClosePtr; - ffi.Pointer> - get Layer_Close => _library._Layer_ClosePtr; - ffi.Pointer> - get Layer_Close_Async => _library._Layer_Close_AsyncPtr; - ffi.Pointer> get MSER_Close => - _library._MSER_ClosePtr; - ffi.Pointer> get Mat_Close => - _library._Mat_ClosePtr; - ffi.Pointer)>> - get Mat_CloseVoid => _library._Mat_CloseVoidPtr; - ffi.Pointer> - get MergeMertens_Close => _library._MergeMertens_ClosePtr; - ffi.Pointer> get Net_Close => - _library._Net_ClosePtr; - ffi.Pointer> - get Net_Close_Async => _library._Net_Close_AsyncPtr; - ffi.Pointer> get ORB_Close => - _library._ORB_ClosePtr; - ffi.Pointer> - get QRCodeDetector_Close => _library._QRCodeDetector_ClosePtr; - ffi.Pointer> get Rng_Close => - _library._Rng_ClosePtr; - ffi.Pointer> get SIFT_Close => - _library._SIFT_ClosePtr; - ffi.Pointer> - get SimpleBlobDetector_Close => _library._SimpleBlobDetector_ClosePtr; - ffi.Pointer> - get Stitcher_Close => _library._Stitcher_ClosePtr; - ffi.Pointer> - get Subdiv2D_Close => _library._Subdiv2D_ClosePtr; - ffi.Pointer> - get TrackerMIL_Close => _library._TrackerMIL_ClosePtr; - ffi.Pointer> - get VecChar_Close => _library._VecChar_ClosePtr; - ffi.Pointer> - get VecDMatch_Close => _library._VecDMatch_ClosePtr; - ffi.Pointer> - get VecDouble_Close => _library._VecDouble_ClosePtr; - ffi.Pointer> - get VecFloat_Close => _library._VecFloat_ClosePtr; - ffi.Pointer> - get VecInt_Close => _library._VecInt_ClosePtr; - ffi.Pointer> - get VecKeyPoint_Close => _library._VecKeyPoint_ClosePtr; - ffi.Pointer> - get VecMat_Close => _library._VecMat_ClosePtr; - ffi.Pointer> - get VecPoint2f_Close => _library._VecPoint2f_ClosePtr; - ffi.Pointer> - get VecPoint3f_Close => _library._VecPoint3f_ClosePtr; - ffi.Pointer> - get VecPoint_Close => _library._VecPoint_ClosePtr; - ffi.Pointer> - get VecPrim_Close => _library._VecPrim_ClosePtr; - ffi.Pointer> - get VecRect_Close => _library._VecRect_ClosePtr; - ffi.Pointer> - get VecUChar_Close => _library._VecUChar_ClosePtr; - ffi.Pointer> - get VecVec4i_Close => _library._VecVec4i_ClosePtr; - ffi.Pointer> - get VecVecChar_Close => _library._VecVecChar_ClosePtr; - ffi.Pointer> - get VecVecDMatch_Close => _library._VecVecDMatch_ClosePtr; - ffi.Pointer> - get VecVecPoint2f_Close => _library._VecVecPoint2f_ClosePtr; - ffi.Pointer> - get VecVecPoint3f_Close => _library._VecVecPoint3f_ClosePtr; - ffi.Pointer> - get VecVecPoint_Close => _library._VecVecPoint_ClosePtr; - ffi.Pointer> - get VideoCapture_Close => _library._VideoCapture_ClosePtr; - ffi.Pointer> - get VideoWriter_Close => _library._VideoWriter_ClosePtr; - ffi.Pointer> - get WeChatQRCode_Close => _library._WeChatQRCode_ClosePtr; - ffi.Pointer)>> - get Window_Close => _library._Window_ClosePtr; - ffi.Pointer> - get gapi_GComputation_Close => _library._gapi_GComputation_ClosePtr; - ffi.Pointer> - get gapi_GMat_Close => _library._gapi_GMat_ClosePtr; - ffi.Pointer> - get gapi_GScalar_Close => _library._gapi_GScalar_ClosePtr; + get BackgroundSubtractorKNN_Close => _library._BackgroundSubtractorKNN_ClosePtr; + ffi.Pointer> + get BackgroundSubtractorMOG2_Close => _library._BackgroundSubtractorMOG2_ClosePtr; + ffi.Pointer> get BlockMeanHash_Close => + _library._BlockMeanHash_ClosePtr; + ffi.Pointer> get CLAHE_Close => _library._CLAHE_ClosePtr; + ffi.Pointer> get CascadeClassifier_Close => + _library._CascadeClassifier_ClosePtr; + ffi.Pointer)>> get CvStatus_Close => + _library._CvStatus_ClosePtr; + ffi.Pointer> get FaceDetectorYN_Close => + _library._FaceDetectorYN_ClosePtr; + ffi.Pointer> get FaceRecognizerSF_Close => + _library._FaceRecognizerSF_ClosePtr; + ffi.Pointer> get FastFeatureDetector_Close => + _library._FastFeatureDetector_ClosePtr; + ffi.Pointer> get FlannBasedMatcher_Close => + _library._FlannBasedMatcher_ClosePtr; + ffi.Pointer> get GFTTDetector_Close => + _library._GFTTDetector_ClosePtr; + ffi.Pointer> get HOGDescriptor_Close => + _library._HOGDescriptor_ClosePtr; + ffi.Pointer> get KAZE_Close => _library._KAZE_ClosePtr; + ffi.Pointer> get KalmanFilter_Close => + _library._KalmanFilter_ClosePtr; + ffi.Pointer> get Layer_Close => _library._Layer_ClosePtr; + ffi.Pointer> get Layer_Close_Async => + _library._Layer_Close_AsyncPtr; + ffi.Pointer> get MSER_Close => _library._MSER_ClosePtr; + ffi.Pointer> get Mat_Close => _library._Mat_ClosePtr; + ffi.Pointer)>> get Mat_CloseVoid => + _library._Mat_CloseVoidPtr; + ffi.Pointer> get MergeMertens_Close => + _library._MergeMertens_ClosePtr; + ffi.Pointer> get Net_Close => _library._Net_ClosePtr; + ffi.Pointer> get Net_Close_Async => + _library._Net_Close_AsyncPtr; + ffi.Pointer> get ORB_Close => _library._ORB_ClosePtr; + ffi.Pointer> get QRCodeDetector_Close => + _library._QRCodeDetector_ClosePtr; + ffi.Pointer> get Rng_Close => _library._Rng_ClosePtr; + ffi.Pointer> get SIFT_Close => _library._SIFT_ClosePtr; + ffi.Pointer> get SimpleBlobDetector_Close => + _library._SimpleBlobDetector_ClosePtr; + ffi.Pointer> get Stitcher_Close => + _library._Stitcher_ClosePtr; + ffi.Pointer> get Subdiv2D_Close => + _library._Subdiv2D_ClosePtr; + ffi.Pointer> get TrackerMIL_Close => + _library._TrackerMIL_ClosePtr; + ffi.Pointer> get VecChar_Close => + _library._VecChar_ClosePtr; + ffi.Pointer> get VecDMatch_Close => + _library._VecDMatch_ClosePtr; + ffi.Pointer> get VecDouble_Close => + _library._VecDouble_ClosePtr; + ffi.Pointer> get VecFloat_Close => + _library._VecFloat_ClosePtr; + ffi.Pointer> get VecInt_Close => _library._VecInt_ClosePtr; + ffi.Pointer> get VecKeyPoint_Close => + _library._VecKeyPoint_ClosePtr; + ffi.Pointer> get VecMat_Close => _library._VecMat_ClosePtr; + ffi.Pointer> get VecPoint2f_Close => + _library._VecPoint2f_ClosePtr; + ffi.Pointer> get VecPoint3f_Close => + _library._VecPoint3f_ClosePtr; + ffi.Pointer> get VecPoint_Close => + _library._VecPoint_ClosePtr; + ffi.Pointer> get VecPrim_Close => + _library._VecPrim_ClosePtr; + ffi.Pointer> get VecRect_Close => + _library._VecRect_ClosePtr; + ffi.Pointer> get VecUChar_Close => + _library._VecUChar_ClosePtr; + ffi.Pointer> get VecVec4i_Close => + _library._VecVec4i_ClosePtr; + ffi.Pointer> get VecVecChar_Close => + _library._VecVecChar_ClosePtr; + ffi.Pointer> get VecVecDMatch_Close => + _library._VecVecDMatch_ClosePtr; + ffi.Pointer> get VecVecPoint2f_Close => + _library._VecVecPoint2f_ClosePtr; + ffi.Pointer> get VecVecPoint3f_Close => + _library._VecVecPoint3f_ClosePtr; + ffi.Pointer> get VecVecPoint_Close => + _library._VecVecPoint_ClosePtr; + ffi.Pointer> get VideoCapture_Close => + _library._VideoCapture_ClosePtr; + ffi.Pointer> get VideoWriter_Close => + _library._VideoWriter_ClosePtr; + ffi.Pointer> get WeChatQRCode_Close => + _library._WeChatQRCode_ClosePtr; + ffi.Pointer)>> get Window_Close => + _library._Window_ClosePtr; + ffi.Pointer> get gapi_GComputation_Close => + _library._gapi_GComputation_ClosePtr; + ffi.Pointer> get gapi_GMat_Close => + _library._gapi_GMat_ClosePtr; + ffi.Pointer> get gapi_GScalar_Close => + _library._gapi_GScalar_ClosePtr; } final class AKAZE extends ffi.Struct { @@ -24829,33 +22454,23 @@ typedef CvCallback_1 = ffi.Pointer>; typedef CvCallback_1Function = ffi.Void Function(ffi.Pointer); typedef DartCvCallback_1Function = void Function(ffi.Pointer); typedef CvCallback_2 = ffi.Pointer>; -typedef CvCallback_2Function = ffi.Void Function( - ffi.Pointer, ffi.Pointer); -typedef DartCvCallback_2Function = void Function( - ffi.Pointer, ffi.Pointer); +typedef CvCallback_2Function = ffi.Void Function(ffi.Pointer, ffi.Pointer); +typedef DartCvCallback_2Function = void Function(ffi.Pointer, ffi.Pointer); typedef CvCallback_3 = ffi.Pointer>; typedef CvCallback_3Function = ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer); typedef DartCvCallback_3Function = void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer); typedef CvCallback_4 = ffi.Pointer>; -typedef CvCallback_4Function = ffi.Void Function(ffi.Pointer, +typedef CvCallback_4Function = ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer); +typedef DartCvCallback_4Function = void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer); +typedef CvCallback_5 = ffi.Pointer>; +typedef CvCallback_5Function = ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer); -typedef DartCvCallback_4Function = void Function(ffi.Pointer, +typedef DartCvCallback_5Function = void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer); -typedef CvCallback_5 = ffi.Pointer>; -typedef CvCallback_5Function = ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer); -typedef DartCvCallback_5Function = void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer); final class CvStatus extends ffi.Struct { @ffi.Int() @@ -24895,13 +22510,8 @@ typedef ErrorCallbackFunction = ffi.Void Function( ffi.Pointer file_name, ffi.Int line, ffi.Pointer userdata); -typedef DartErrorCallbackFunction = void Function( - int status, - ffi.Pointer func_name, - ffi.Pointer err_msg, - ffi.Pointer file_name, - int line, - ffi.Pointer userdata); +typedef DartErrorCallbackFunction = void Function(int status, ffi.Pointer func_name, + ffi.Pointer err_msg, ffi.Pointer file_name, int line, ffi.Pointer userdata); final class FaceDetectorYN extends ffi.Struct { external ffi.Pointer> ptr; From a392358e4a962a0d9de1afad2538795ed96bbdc9 Mon Sep 17 00:00:00 2001 From: Abdelaziz Mahdy Date: Thu, 27 Jun 2024 13:56:10 +0300 Subject: [PATCH 13/21] async constructors --- lib/src/objdetect/objdetect.dart | 25 +++ lib/src/objdetect/objdetect_async.dart | 243 ++++++++----------------- 2 files changed, 97 insertions(+), 171 deletions(-) diff --git a/lib/src/objdetect/objdetect.dart b/lib/src/objdetect/objdetect.dart index b6630284..532cd4fb 100644 --- a/lib/src/objdetect/objdetect.dart +++ b/lib/src/objdetect/objdetect.dart @@ -21,6 +21,11 @@ class CascadeClassifier extends CvStruct { finalizer.attach(this, ptr.cast(), detach: this); } } + factory CascadeClassifier.fromPointer( + cvg.CascadeClassifierPtr ptr, [ + bool attach = true, + ]) => + CascadeClassifier._(ptr, attach); factory CascadeClassifier.empty() { final p = calloc(); @@ -194,6 +199,11 @@ class HOGDescriptor extends CvStruct { finalizer.attach(this, ptr.cast(), detach: this); } } + factory HOGDescriptor.fromPointer( + cvg.HOGDescriptorPtr ptr, [ + bool attach = true, + ]) => + HOGDescriptor._(ptr, attach); factory HOGDescriptor.empty() { final p = calloc(); @@ -454,6 +464,11 @@ class QRCodeDetector extends CvStruct { finalizer.attach(this, ptr.cast(), detach: this); } } + factory QRCodeDetector.fromPointer( + cvg.QRCodeDetectorPtr ptr, [ + bool attach = true, + ]) => + QRCodeDetector._(ptr, attach); factory QRCodeDetector.empty() { final p = calloc(); @@ -619,6 +634,11 @@ class FaceDetectorYN extends CvStruct { finalizer.attach(this, ptr.cast(), detach: this); } } + factory FaceDetectorYN.fromPointer( + cvg.FaceDetectorYNPtr ptr, [ + bool attach = true, + ]) => + FaceDetectorYN._(ptr, attach); /// Creates an instance of face detector class with given parameters. /// @@ -843,6 +863,11 @@ class FaceRecognizerSF extends CvStruct { finalizer.attach(this, ptr.cast(), detach: this); } } + factory FaceRecognizerSF.fromPointer( + cvg.FaceRecognizerSFPtr ptr, [ + bool attach = true, + ]) => + FaceRecognizerSF._(ptr, attach); @Deprecated("Use FaceRecognizerSF.fromFile instead, will be removed in 1.1.0") factory FaceRecognizerSF.newRecognizer( diff --git a/lib/src/objdetect/objdetect_async.dart b/lib/src/objdetect/objdetect_async.dart index beddaba8..45626340 100644 --- a/lib/src/objdetect/objdetect_async.dart +++ b/lib/src/objdetect/objdetect_async.dart @@ -2,7 +2,9 @@ library cv; import 'dart:ffi' as ffi; import 'dart:typed_data'; + import 'package:ffi/ffi.dart'; + import '../core/base.dart'; import '../core/mat.dart'; import '../core/point.dart'; @@ -10,26 +12,21 @@ import '../core/rect.dart'; import '../core/size.dart'; import '../core/vec.dart'; import '../opencv.g.dart' as cvg; +import './objdetect.dart'; -class CascadeClassifier extends CvStruct { - CascadeClassifier._(cvg.CascadeClassifierPtr ptr, [bool attach = true]) : super.fromPointer(ptr) { - if (attach) { - finalizer.attach(this, ptr.cast(), detach: this); - } - } - - factory CascadeClassifier.empty() { - final p = calloc(); - cvRun(() => CFFI.CascadeClassifier_New(p)); - return CascadeClassifier._(p); - } +extension CascadeClassifierAsync on CascadeClassifier { + static Future emptyNewAsync() async => cvRunAsync( + (callback) => CFFI.CascadeClassifier_New_Async(callback), + (c, p) => c.complete(CascadeClassifier.fromPointer(p.cast()))); - factory CascadeClassifier.fromFile(String filename) { - final p = calloc(); + static Future fromFileAsync(String filename) async { final cp = filename.toNativeUtf8().cast(); - cvRun(() => CFFI.CascadeClassifier_NewFromFile(cp, p)); + final rval = await cvRunAsync( + (callback) => CFFI.CascadeClassifier_NewFromFile_Async(cp, callback), (c, p) { + return c.complete(CascadeClassifier.fromPointer(p.cast())); + }); calloc.free(cp); - return CascadeClassifier._(p); + return rval; } Future loadAsync(String name) async { @@ -166,41 +163,21 @@ class CascadeClassifier extends CvStruct { }); return rval; } - - @override - cvg.CascadeClassifier get ref => ptr.ref; - static final finalizer = OcvFinalizer( - CFFI.addresses.CascadeClassifier_Close, - ); - - void dispose() { - finalizer.detach(this); - CFFI.CascadeClassifier_Close(ptr); - } - - @override - List get props => [ptr.address]; } -class HOGDescriptor extends CvStruct { - HOGDescriptor._(cvg.HOGDescriptorPtr ptr, [bool attach = true]) : super.fromPointer(ptr) { - if (attach) { - finalizer.attach(this, ptr.cast(), detach: this); - } - } +extension HOGDescriptorAsync on HOGDescriptor { + static Future emptyNewAsync() async => cvRunAsync( + (callback) => CFFI.HOGDescriptor_New_Async(callback), + (c, p) => c.complete(HOGDescriptor.fromPointer(p.cast()))); - factory HOGDescriptor.empty() { - final p = calloc(); - cvRun(() => CFFI.HOGDescriptor_New(p)); - return HOGDescriptor._(p); - } - - factory HOGDescriptor.fromFile(String filename) { - final p = calloc(); + static Future fromFileAsync(String filename) async { final cp = filename.toNativeUtf8().cast(); - cvRun(() => CFFI.HOGDescriptor_NewFromFile(cp, p)); + final rval = await cvRunAsync( + (callback) => CFFI.HOGDescriptor_NewFromFile_Async(cp, callback), (c, p) { + return c.complete(HOGDescriptor.fromPointer(p.cast())); + }); calloc.free(cp); - return HOGDescriptor._(p); + return rval; } Future loadAsync(String name) async { @@ -398,18 +375,6 @@ class HOGDescriptor extends CvStruct { return c.complete(); }); } - - @override - cvg.HOGDescriptor get ref => ptr.ref; - static final finalizer = OcvFinalizer(CFFI.addresses.HOGDescriptor_Close); - - void dispose() { - finalizer.detach(this); - CFFI.HOGDescriptor_Close(ptr); - } - - @override - List get props => [ptr.address]; } Future groupRectanglesAsync( @@ -424,18 +389,10 @@ Future groupRectanglesAsync( return rval; } -class QRCodeDetector extends CvStruct { - QRCodeDetector._(cvg.QRCodeDetectorPtr ptr, [bool attach = true]) : super.fromPointer(ptr) { - if (attach) { - finalizer.attach(this, ptr.cast(), detach: this); - } - } - - factory QRCodeDetector.empty() { - final p = calloc(); - cvRun(() => CFFI.QRCodeDetector_New(p)); - return QRCodeDetector._(p); - } +extension QRCodeDetectorAsync on QRCodeDetector { + static Future emptyNewAsync() async => cvRunAsync( + (callback) => CFFI.QRCodeDetector_New_Async(callback), + (c, p) => c.complete(QRCodeDetector.fromPointer(p.cast()))); Future<(String rval, Mat straightQRcode)> decodeCurvedAsync( InputArray img, @@ -588,28 +545,14 @@ class QRCodeDetector extends CvStruct { return c.complete(); }); } - - @override - cvg.QRCodeDetector get ref => ptr.ref; - static final finalizer = OcvFinalizer(CFFI.addresses.QRCodeDetector_Close); - - void dispose() { - finalizer.detach(this); - CFFI.QRCodeDetector_Close(ptr); - } - - @override - List get props => [ptr.address]; } -class FaceDetectorYN extends CvStruct { - FaceDetectorYN._(cvg.FaceDetectorYNPtr ptr, [bool attach = true]) : super.fromPointer(ptr) { - if (attach) { - finalizer.attach(this, ptr.cast(), detach: this); - } - } +extension FaceDetectorYNAsync on FaceDetectorYN { + static Future emptyNewAsync() async => cvRunAsync( + (callback) => CFFI.CascadeClassifier_New_Async(callback), + (c, p) => c.complete(CascadeClassifier.fromPointer(p.cast()))); - factory FaceDetectorYN.fromFile( + static Future fromFileAsync( String model, String config, (int, int) inputSize, { @@ -618,29 +561,20 @@ class FaceDetectorYN extends CvStruct { int topK = 5000, int backendId = 0, int targetId = 0, - }) { - final p = calloc(); + }) async { final cModel = model.toNativeUtf8().cast(); final cConfig = config.toNativeUtf8().cast(); - cvRun( - () => CFFI.FaceDetectorYN_New( - cModel, - cConfig, - inputSize.cvd.ref, - scoreThreshold, - nmsThreshold, - topK, - backendId, - targetId, - p, - ), - ); + final rval = await cvRunAsync( + (callback) => CFFI.FaceDetectorYN_New_Async(cModel, cConfig, inputSize.cvd.ref, scoreThreshold, + nmsThreshold, topK, backendId, targetId, callback), (c, p) { + return c.complete(FaceDetectorYN.fromPointer(p.cast())); + }); calloc.free(cModel); calloc.free(cConfig); - return FaceDetectorYN._(p); + return rval; } - factory FaceDetectorYN.fromBuffer( + static Future fromBufferAsync( String framework, Uint8List bufferModel, Uint8List bufferConfig, @@ -650,25 +584,26 @@ class FaceDetectorYN extends CvStruct { int topK = 5000, int backendId = 0, int targetId = 0, - }) { - final p = calloc(); + }) async { final cFramework = framework.toNativeUtf8().cast(); - cvRun( - () => CFFI.FaceDetectorYN_NewFromBuffer( - cFramework, - VecUChar.fromList(bufferModel).ref, - VecUChar.fromList(bufferConfig).ref, - inputSize.cvd.ref, - scoreThreshold, - nmsThreshold, - topK, - backendId, - targetId, - p, - ), - ); + + final rval = await cvRunAsync( + (callback) => CFFI.FaceDetectorYN_NewFromBuffer_Async( + cFramework, + VecUChar.fromList(bufferModel).ref, + VecUChar.fromList(bufferConfig).ref, + inputSize.cvd.ref, + scoreThreshold, + nmsThreshold, + topK, + backendId, + targetId, + callback), (c, p) { + return c.complete(FaceDetectorYN.fromPointer(p.cast())); + }); calloc.free(cFramework); - return FaceDetectorYN._(p); + + return rval; } Future<(int, int)> getInputSizeAsync() async { @@ -756,42 +691,30 @@ class FaceDetectorYN extends CvStruct { return c.complete(); }); } - - @override - cvg.FaceDetectorYN get ref => ptr.ref; - static final finalizer = OcvFinalizer(CFFI.addresses.FaceDetectorYN_Close); - - void dispose() { - finalizer.detach(this); - CFFI.FaceDetectorYN_Close(ptr); - } - - @override - List get props => [ptr.address]; } -class FaceRecognizerSF extends CvStruct { - FaceRecognizerSF._(cvg.FaceRecognizerSFPtr ptr, [bool attach = true]) : super.fromPointer(ptr) { - if (attach) { - finalizer.attach(this, ptr.cast(), detach: this); - } - } - - factory FaceRecognizerSF.fromFile( +extension FaceRecognizerSFAsync on FaceRecognizerSF { + static Future fromFileAsync( String model, String config, { int backendId = 0, int targetId = 0, - }) { - final p = calloc(); + }) async { final cModel = model.toNativeUtf8().cast(); final cConfig = config.toNativeUtf8().cast(); - cvRun( - () => CFFI.FaceRecognizerSF_New(cModel, cConfig, backendId, targetId, p), - ); + final rval = await cvRunAsync( + (callback) => CFFI.FaceRecognizerSF_New_Async( + cModel, + cConfig, + backendId, + targetId, + callback, + ), (c, p) { + return c.complete(FaceRecognizerSF.fromPointer(p.cast())); + }); calloc.free(cModel); calloc.free(cConfig); - return FaceRecognizerSF._(p); + return rval; } Future alignCropAsync(Mat srcImg, Mat faceBox) async { @@ -839,26 +762,4 @@ class FaceRecognizerSF extends CvStruct { }); return rval; } - - @override - cvg.FaceRecognizerSF get ref => ptr.ref; - static final finalizer = OcvFinalizer( - CFFI.addresses.FaceRecognizerSF_Close, - ); - - void dispose() { - finalizer.detach(this); - CFFI.FaceRecognizerSF_Close(ptr); - } - - @override - List get props => [ptr.address]; - - @Deprecated("Use [FR_COSINE] instead.") - static const int DIS_TYPR_FR_COSINE = 0; - @Deprecated("Use [FR_NORM_L2] instead.") - static const int DIS_TYPE_FR_NORM_L2 = 1; - - static const int FR_COSINE = 0; - static const int FR_NORM_L2 = 1; } From 57d925a13befd43b3b1f03f7e7e32b3899242395 Mon Sep 17 00:00:00 2001 From: Abdelaziz Mahdy Date: Thu, 27 Jun 2024 14:33:54 +0300 Subject: [PATCH 14/21] async dnn and constructors --- lib/src/dnn/dnn.dart | 5 + lib/src/dnn/dnn_async.dart | 194 +++++++++++++------------ lib/src/objdetect/objdetect_async.dart | 27 +--- 3 files changed, 111 insertions(+), 115 deletions(-) diff --git a/lib/src/dnn/dnn.dart b/lib/src/dnn/dnn.dart index c6c8bf0b..110abc27 100644 --- a/lib/src/dnn/dnn.dart +++ b/lib/src/dnn/dnn.dart @@ -95,6 +95,11 @@ class Net extends CvStruct { finalizer.attach(this, ptr.cast(), detach: this); } } + factory Net.fromPointer( + cvg.NetPtr ptr, [ + bool attach = true, + ]) => + Net._(ptr, attach); factory Net.empty() { final p = calloc(); diff --git a/lib/src/dnn/dnn_async.dart b/lib/src/dnn/dnn_async.dart index 8a04f90c..2c0063bf 100644 --- a/lib/src/dnn/dnn_async.dart +++ b/lib/src/dnn/dnn_async.dart @@ -3,6 +3,7 @@ library cv; import 'dart:ffi' as ffi; import 'dart:typed_data'; import 'package:ffi/ffi.dart'; +import './dnn.dart'; import '../core/base.dart'; import '../core/mat.dart'; @@ -13,22 +14,7 @@ import '../core/size.dart'; import '../core/vec.dart'; import '../opencv.g.dart' as cvg; -class Layer extends CvStruct { - Layer._(cvg.LayerPtr ptr, [bool attach = true]) : super.fromPointer(ptr) { - if (attach) { - finalizer.attach(this, ptr.cast(), detach: this); - } - } - - factory Layer.fromPointer(cvg.LayerPtr ptr, [bool attach = true]) => Layer._(ptr, attach); - - static final finalizer = OcvFinalizer(CFFI.addresses.Layer_Close); - - void dispose() { - finalizer.detach(this); - CFFI.Layer_Close(ptr); - } - +extension LayerAsync on Layer { Future getNameAsync() async { final p = calloc>(); final rval = cvRunAsync( @@ -83,125 +69,141 @@ class Layer extends CvStruct { calloc.free(cName); return rval; } - - @override - List get props => [ptr.address]; - @override - cvg.Layer get ref => ptr.ref; } -class Net extends CvStruct { - Net._(cvg.NetPtr ptr, [bool attach = true]) : super.fromPointer(ptr) { - if (attach) { - finalizer.attach(this, ptr.cast(), detach: this); - } - } +extension NetAsync on Net { + static Future emptyAsync() async { + final rval = await cvRunAsync((callback) => CFFI.Net_Create_Async(callback), (c, p) { + return c.complete(Net.fromPointer(p.cast())); + }); - factory Net.empty() { - final p = calloc(); - cvRun(() => CFFI.Net_Create(p)); - return Net._(p); + return rval; } - factory Net.fromFile(String path, {String config = "", String framework = ""}) { - return using((arena) { - final cPath = path.toNativeUtf8(allocator: arena).cast(); - final cConfig = config.toNativeUtf8(allocator: arena).cast(); - final cFramework = framework.toNativeUtf8(allocator: arena).cast(); - final p = calloc(); - cvRun(() => CFFI.Net_ReadNet(cPath, cConfig, cFramework, p)); - return Net._(p); + static Future fromFileAsync(String path, {String config = "", String framework = ""}) async { + final cPath = path.toNativeUtf8().cast(); + final cConfig = config.toNativeUtf8().cast(); + final cFramework = framework.toNativeUtf8().cast(); + final rval = await cvRunAsync( + (callback) => CFFI.Net_ReadNet_Async(cPath, cConfig, cFramework, callback), (c, p) { + return c.complete(Net.fromPointer(p.cast())); }); + calloc.free(cPath); + calloc.free(cConfig); + calloc.free(cFramework); + + return rval; } - factory Net.fromBytes(String framework, Uint8List bufferModel, {Uint8List? bufferConfig}) { - return using((arena) { - bufferConfig ??= Uint8List(0); - final cFramework = framework.toNativeUtf8(allocator: arena).cast(); - final bufM = VecUChar.fromList(bufferModel); - final bufC = VecUChar.fromList(bufferConfig!); - final p = calloc(); - cvRun(() => CFFI.Net_ReadNetBytes(cFramework, bufM.ref, bufC.ref, p)); - return Net._(p); + static Future fromBytesAsync(String framework, Uint8List bufferModel, + {Uint8List? bufferConfig}) async { + bufferConfig ??= Uint8List(0); + final cFramework = framework.toNativeUtf8().cast(); + final bufM = VecUChar.fromList(bufferModel); + final bufC = VecUChar.fromList(bufferConfig); + final rval = await cvRunAsync( + (callback) => CFFI.Net_ReadNetBytes_Async(cFramework, bufM.ref, bufC.ref, callback), (c, p) { + return c.complete(Net.fromPointer(p.cast())); }); + + calloc.free(cFramework); + + return rval; } - factory Net.fromCaffe(String prototxt, String caffeModel) { - return using((arena) { - final cProto = prototxt.toNativeUtf8(allocator: arena).cast(); - final cCaffe = caffeModel.toNativeUtf8(allocator: arena).cast(); - final p = calloc(); - cvRun(() => CFFI.Net_ReadNetFromCaffe(cProto, cCaffe, p)); - return Net._(p); + static Future fromCaffeAsync(String prototxt, String caffeModel) async { + final cProto = prototxt.toNativeUtf8().cast(); + final cCaffe = caffeModel.toNativeUtf8().cast(); + final rval = await cvRunAsync( + (callback) => CFFI.Net_ReadNetFromCaffe_Async(cProto, cCaffe, callback), (c, p) { + return c.complete(Net.fromPointer(p.cast())); }); + calloc.free(cProto); + calloc.free(cCaffe); + + return rval; } - factory Net.fromCaffeBytes(Uint8List bufferProto, Uint8List bufferModel) { - final p = calloc(); + static Future fromCaffeBytesAsync(Uint8List bufferProto, Uint8List bufferModel) async { final bufP = VecUChar.fromList(bufferProto); final bufM = VecUChar.fromList(bufferModel); - cvRun(() => CFFI.Net_ReadNetFromCaffeBytes(bufP.ref, bufM.ref, p)); - return Net._(p); + final rval = await cvRunAsync( + (callback) => CFFI.Net_ReadNetFromCaffeBytes_Async(bufP.ref, bufM.ref, callback), (c, p) { + return c.complete(Net.fromPointer(p.cast())); + }); + return rval; } - factory Net.fromOnnx(String path) { - return using((arena) { - final p = calloc(); - final cpath = path.toNativeUtf8(allocator: arena).cast(); - cvRun(() => CFFI.Net_ReadNetFromONNX(cpath, p)); - return Net._(p); + static Future fromOnnxAsync(String path) async { + final cpath = path.toNativeUtf8().cast(); + final rval = await cvRunAsync((callback) => CFFI.Net_ReadNetFromONNX_Async(cpath, callback), (c, p) { + return c.complete(Net.fromPointer(p.cast())); }); + calloc.free(cpath); + + return rval; } - factory Net.fromOnnxBytes(Uint8List bufferModel) { - final p = calloc(); + static Future fromOnnxBytesAsync(Uint8List bufferModel) async { final bufM = VecUChar.fromList(bufferModel); - cvRun(() => CFFI.Net_ReadNetFromONNXBytes(bufM.ref, p)); - return Net._(p); + final rval = + await cvRunAsync((callback) => CFFI.Net_ReadNetFromONNXBytes_Async(bufM.ref, callback), (c, p) { + return c.complete(Net.fromPointer(p.cast())); + }); + return rval; } - factory Net.fromTensorflow(String path, {String config = ""}) { - return using((arena) { - final p = calloc(); - final cpath = path.toNativeUtf8(allocator: arena).cast(); - final cconf = config.toNativeUtf8(allocator: arena).cast(); - cvRun(() => CFFI.Net_ReadNetFromTensorflow(cpath, cconf, p)); - return Net._(p); + static Future fromTensorflowAsync(String path, {String config = ""}) async { + final cpath = path.toNativeUtf8().cast(); + final cconf = config.toNativeUtf8().cast(); + final rval = await cvRunAsync( + (callback) => CFFI.Net_ReadNetFromTensorflow_Async(cpath, cconf, callback), (c, p) { + return c.complete(Net.fromPointer(p.cast())); }); + calloc.free(cpath); + calloc.free(cconf); + + return rval; } - factory Net.fromTensorflowBytes(Uint8List bufferModel, {Uint8List? bufferConfig}) { + static Future fromTensorflowBytesAsync(Uint8List bufferModel, {Uint8List? bufferConfig}) async { bufferConfig ??= Uint8List(0); final bufM = VecUChar.fromList(bufferModel); final bufC = VecUChar.fromList(bufferConfig); - final p = calloc(); - cvRun(() => CFFI.Net_ReadNetFromTensorflowBytes(bufM.ref, bufC.ref, p)); - return Net._(p); + final rval = await cvRunAsync( + (callback) => CFFI.Net_ReadNetFromTensorflowBytes_Async(bufM.ref, bufC.ref, callback), (c, p) { + return c.complete(Net.fromPointer(p.cast())); + }); + return rval; } - factory Net.fromTFLite(String path) { - return using((arena) { - final p = calloc(); - final cpath = path.toNativeUtf8(allocator: arena).cast(); - cvRun(() => CFFI.Net_ReadNetFromTFLite(cpath, p)); - return Net._(p); + static Future fromTFLiteAsync(String path) async { + final cpath = path.toNativeUtf8().cast(); + final rval = + await cvRunAsync((callback) => CFFI.Net_ReadNetFromTFLite_Async(cpath, callback), (c, p) { + return c.complete(Net.fromPointer(p.cast())); }); + calloc.free(cpath); + return rval; } - factory Net.fromTFLiteBytes(Uint8List bufferModel) { + static Future fromTFLiteBytesAsync(Uint8List bufferModel) async { final bufM = VecUChar.fromList(bufferModel); - final p = calloc(); - cvRun(() => CFFI.Net_ReadNetFromTFLiteBytes(bufM.ref, p)); - return Net._(p); + final rval = await cvRunAsync( + (callback) => CFFI.Net_ReadNetFromTFLiteBytes_Async(bufM.ref, callback), (c, p) { + return c.complete(Net.fromPointer(p.cast())); + }); + return rval; } - factory Net.fromTorch(String path, {bool isBinary = true, bool evaluate = true}) { - return using((arena) { - final p = calloc(); - final cpath = path.toNativeUtf8(allocator: arena).cast(); - cvRun(() => CFFI.Net_ReadNetFromTorch(cpath, isBinary, evaluate, p)); - return Net._(p); + static Future fromTorchAsync(String path, {bool isBinary = true, bool evaluate = true}) async { + final cpath = path.toNativeUtf8().cast(); + final rval = await cvRunAsync( + (callback) => CFFI.Net_ReadNetFromTorch_Async(cpath, isBinary, evaluate, callback), (c, p) { + return c.complete(Net.fromPointer(p.cast())); }); + calloc.free(cpath); + return rval; } Future isEmptyAsync() async { diff --git a/lib/src/objdetect/objdetect_async.dart b/lib/src/objdetect/objdetect_async.dart index 45626340..39445b23 100644 --- a/lib/src/objdetect/objdetect_async.dart +++ b/lib/src/objdetect/objdetect_async.dart @@ -396,9 +396,8 @@ extension QRCodeDetectorAsync on QRCodeDetector { Future<(String rval, Mat straightQRcode)> decodeCurvedAsync( InputArray img, - VecPoint points, { - OutputArray? straightQRcode, - }) async { + VecPoint points, + ) async { final rval = cvRunAsync2<(String, Mat)>( (callback) => CFFI.QRCodeDetector_decodeCurved_Async( ref, @@ -414,10 +413,7 @@ extension QRCodeDetectorAsync on QRCodeDetector { } Future<(String rval, VecPoint points, Mat straightQRcode)> detectAndDecodeCurvedAsync( - InputArray img, { - VecPoint? points, - Mat? straightQRcode, - }) async { + InputArray img) async { final rval = cvRunAsync3<(String, VecPoint, Mat)>( (callback) => CFFI.QRCodeDetector_detectAndDecodeCurved_Async( ref, @@ -435,11 +431,7 @@ extension QRCodeDetectorAsync on QRCodeDetector { return rval; } - Future<(String ret, VecPoint points, Mat straightCode)> detectAndDecodeAsync( - InputArray img, { - VecPoint? points, - OutputArray? straightCode, - }) async { + Future<(String ret, VecPoint points, Mat straightCode)> detectAndDecodeAsync(InputArray img) async { final rval = cvRunAsync3<(String, VecPoint, Mat)>( (callback) => CFFI.QRCodeDetector_DetectAndDecode_Async(ref, img.ref, callback), (c, ret, points, straightCode) { @@ -470,10 +462,8 @@ extension QRCodeDetectorAsync on QRCodeDetector { } Future<(String ret, VecPoint? points, Mat? straightCode)> decodeAsync( - InputArray img, { - VecPoint? points, - Mat? straightCode, - }) async { + InputArray img, + ) async { final rval = cvRunAsync3<(String, VecPoint, Mat)>( (callback) => CFFI.QRCodeDetector_Decode_Async(ref, img.ref, callback), (c, ret, points, straightCode) { @@ -489,9 +479,8 @@ extension QRCodeDetectorAsync on QRCodeDetector { } Future<(bool ret, VecPoint points)> detectMultiAsync( - InputArray img, { - VecPoint? points, - }) async { + InputArray img, + ) async { final rval = cvRunAsync2<(bool, VecPoint)>( (callback) => CFFI.QRCodeDetector_DetectMulti_Async(ref, img.ref, callback), (c, ret, points) { final retValue = ret.cast().value; From 5f18ffc1a0364ecd8ee28fb3f6e2fcf1e2dc26c4 Mon Sep 17 00:00:00 2001 From: rainy liu Date: Fri, 28 Jun 2024 11:55:49 +0800 Subject: [PATCH 15/21] finish objdetect test --- lib/opencv_dart.dart | 1 + lib/src/objdetect/objdetect_async.dart | 33 ++- test/objdetect/objdetect_async_test.dart | 318 +++++++++++++++++++++++ test/{ => objdetect}/objdetect_test.dart | 0 4 files changed, 342 insertions(+), 10 deletions(-) create mode 100644 test/objdetect/objdetect_async_test.dart rename test/{ => objdetect}/objdetect_test.dart (100%) diff --git a/lib/opencv_dart.dart b/lib/opencv_dart.dart index 7c7c1478..42164d30 100644 --- a/lib/opencv_dart.dart +++ b/lib/opencv_dart.dart @@ -36,6 +36,7 @@ export 'src/imgproc/clahe.dart'; export 'src/imgproc/imgproc.dart'; export 'src/imgproc/subdiv2d.dart'; export 'src/objdetect/objdetect.dart'; +export 'src/objdetect/objdetect_async.dart'; export 'src/photo/photo.dart'; export 'src/stitching/stitching.dart'; export 'src/svd/svd.dart'; diff --git a/lib/src/objdetect/objdetect_async.dart b/lib/src/objdetect/objdetect_async.dart index 39445b23..203e7ff8 100644 --- a/lib/src/objdetect/objdetect_async.dart +++ b/lib/src/objdetect/objdetect_async.dart @@ -404,25 +404,32 @@ extension QRCodeDetectorAsync on QRCodeDetector { img.ref, points.ref, callback, - ), (c, rval, straightQRcode) { + ), (c, prval, pstraightQRcode) { + // prval is a char ** pointer + final rval = prval.cast>().value.toDartString(); + calloc.free(prval); return c.complete( - (rval.cast().toDartString(), Mat.fromPointer(straightQRcode.cast())), + (rval, Mat.fromPointer(pstraightQRcode.cast())), ); }); return rval; } Future<(String rval, VecPoint points, Mat straightQRcode)> detectAndDecodeCurvedAsync( - InputArray img) async { + InputArray img, + ) async { final rval = cvRunAsync3<(String, VecPoint, Mat)>( (callback) => CFFI.QRCodeDetector_detectAndDecodeCurved_Async( ref, img.ref, callback, - ), (c, rval, points, straightQRcode) { + ), (c, prval, points, straightQRcode) { + // prval is a char ** pointer + final rval = prval.cast>().value.toDartString(); + calloc.free(prval); return c.complete( ( - rval.cast().toDartString(), + rval, VecPoint.fromPointer(points.cast()), Mat.fromPointer(straightQRcode.cast()), ), @@ -434,10 +441,13 @@ extension QRCodeDetectorAsync on QRCodeDetector { Future<(String ret, VecPoint points, Mat straightCode)> detectAndDecodeAsync(InputArray img) async { final rval = cvRunAsync3<(String, VecPoint, Mat)>( (callback) => CFFI.QRCodeDetector_DetectAndDecode_Async(ref, img.ref, callback), - (c, ret, points, straightCode) { + (c, prval, points, straightCode) { + // prval is a char ** pointer + final rval = prval.cast>().value.toDartString(); + calloc.free(prval); return c.complete( ( - ret.cast().toDartString(), + rval, VecPoint.fromPointer(points.cast()), Mat.fromPointer(straightCode.cast()), ), @@ -466,10 +476,13 @@ extension QRCodeDetectorAsync on QRCodeDetector { ) async { final rval = cvRunAsync3<(String, VecPoint, Mat)>( (callback) => CFFI.QRCodeDetector_Decode_Async(ref, img.ref, callback), - (c, ret, points, straightCode) { + (c, prval, points, straightCode) { + // prval is a char ** pointer + final rval = prval.cast>().value.toDartString(); + calloc.free(prval); return c.complete( ( - ret.cast().toDartString(), + rval, VecPoint.fromPointer(points.cast()), Mat.fromPointer(straightCode.cast()), ), @@ -498,7 +511,7 @@ extension QRCodeDetectorAsync on QRCodeDetector { ref, img.ref, callback, - ), (c, info, points, codes, rval) { + ), (c, rval, info, points, codes) { final rvalValue = rval.cast().value; calloc.free(rval); final ret = ( diff --git a/test/objdetect/objdetect_async_test.dart b/test/objdetect/objdetect_async_test.dart new file mode 100644 index 00000000..560f3730 --- /dev/null +++ b/test/objdetect/objdetect_async_test.dart @@ -0,0 +1,318 @@ +import 'dart:io'; +import 'dart:typed_data'; + +import 'package:opencv_dart/opencv_dart.dart' as cv; +import 'package:opencv_dart/src/core/mat_type.dart'; +import 'package:test/test.dart'; + +cv.Mat visualizeFaceDetect(cv.Mat img, cv.Mat faces) { + expect(faces.rows, greaterThanOrEqualTo(1)); + for (int row = 0; row < faces.rows; row++) { + final rect = cv.Rect( + faces.at(row, 0).toInt(), + faces.at(row, 1).toInt(), + faces.at(row, 2).toInt(), + faces.at(row, 3).toInt(), + ); + final points = [ + cv.Point(faces.at(row, 4).toInt(), faces.at(row, 5).toInt()), + cv.Point(faces.at(row, 6).toInt(), faces.at(row, 7).toInt()), + cv.Point(faces.at(row, 8).toInt(), faces.at(row, 9).toInt()), + cv.Point(faces.at(row, 10).toInt(), faces.at(row, 11).toInt()), + cv.Point(faces.at(row, 12).toInt(), faces.at(row, 13).toInt()), + ]; + cv.rectangle(img, rect, cv.Scalar.green, thickness: 2); + for (final p in points) { + cv.circle(img, p, 2, cv.Scalar.blue, thickness: 2); + } + } + return img; +} + +void main() async { + test('cv.CascadeClassifierAsync', () async { + final img = await cv.imreadAsync("test/images/face.jpg", flags: cv.IMREAD_COLOR); + expect(img.isEmpty, false); + + final classifier = await cv.CascadeClassifierAsync.emptyNewAsync(); + await classifier.loadAsync("test/data/haarcascade_frontalface_default.xml"); + final rects = await classifier.detectMultiScaleAsync(img); + expect(rects.length, 1); + + classifier.dispose(); + + final cls = + await cv.CascadeClassifierAsync.fromFileAsync("test/data/haarcascade_frontalface_default.xml"); + expect(cls.empty(), false); + + { + final (objects, nums) = await cls.detectMultiScale2Async(img); + expect(objects.length, 1); + expect(nums.length, 1); + } + + { + final (objects, nums, weights) = await cls.detectMultiScale3Async(img, outputRejectLevels: true); + expect(objects.length, 1); + expect(nums.length, 1); + expect(weights.length, 1); + } + + expect(await cls.getFeatureTypeAsync(), 0); + expect(await cls.getOriginalWindowSizeAsync(), (24, 24)); + expect(await cls.isOldFormatCascadeAsync(), false); + }); + + test('cv.HOGDescriptorAsync', () async { + final img = await cv.imreadAsync("test/images/face.jpg", flags: cv.IMREAD_COLOR); + expect(img.isEmpty, false); + { + final hog = await cv.HOGDescriptorAsync.emptyNewAsync(); + await hog.setSVMDetectorAsync(await cv.HOGDescriptorAsync.getDefaultPeopleDetectorAsync()); + final rects = await hog.detectMultiScaleAsync(img); + expect(rects.length, 1); + hog.dispose(); + } + { + final hog = await cv.HOGDescriptorAsync.emptyNewAsync(); + expect(await hog.getDescriptorSizeAsync(), 3780); + expect(await hog.getWinSigmaAsync(), closeTo(4.0, 1e-6)); + final d = await cv.HOGDescriptorAsync.getDaimlerPeopleDetectorAsync(); + expect(d.length, 1981); + final success = await hog.loadAsync("test/data/hog.xml"); + expect(success, true); + // hog.setSVMDetector(d); + final rects = await hog.detectMultiScaleAsync(img); + expect(rects.length, greaterThanOrEqualTo(0)); + } + + final hog1 = await cv.HOGDescriptorAsync.fromFileAsync("test/data/hog.xml"); + final (descriptors, locations) = await hog1.computeAsync(img); + expect(descriptors.length, greaterThanOrEqualTo(0)); + expect(locations.length, greaterThanOrEqualTo(0)); + + final grad = cv.Mat.empty(); + final angle = cv.Mat.empty(); + await hog1.computeGradientAsync(img, grad, angle); + expect(grad.isEmpty, false); + expect(angle.isEmpty, false); + + { + final (locs, slocs) = await hog1.detectAsync(img); + expect(locs.length, greaterThanOrEqualTo(0)); + expect(slocs.length, greaterThanOrEqualTo(0)); + } + + { + final (locs, weights, slocs) = await hog1.detect2Async(img); + expect(locs.length, greaterThanOrEqualTo(0)); + expect(weights.length, greaterThanOrEqualTo(0)); + expect(slocs.length, greaterThanOrEqualTo(0)); + } + + { + final rects = await hog1.detectMultiScaleAsync(img); + expect(rects.length, greaterThanOrEqualTo(0)); + } + }); + + test('cv.groupRectanglesAsync', () async { + final rects = [ + cv.Rect(10, 10, 30, 30), + cv.Rect(10, 10, 30, 30), + cv.Rect(10, 10, 30, 30), + cv.Rect(10, 10, 30, 30), + cv.Rect(10, 10, 30, 30), + cv.Rect(10, 10, 30, 30), + cv.Rect(10, 10, 30, 30), + cv.Rect(10, 10, 30, 30), + cv.Rect(10, 10, 30, 30), + cv.Rect(10, 10, 30, 30), + cv.Rect(10, 10, 35, 35), + cv.Rect(10, 10, 35, 35), + cv.Rect(10, 10, 35, 35), + cv.Rect(10, 10, 35, 35), + cv.Rect(10, 10, 35, 35), + cv.Rect(10, 10, 35, 35), + cv.Rect(10, 10, 35, 35), + cv.Rect(10, 10, 35, 35), + cv.Rect(10, 10, 35, 35), + cv.Rect(10, 10, 35, 35), + ]; + + final res = await cv.groupRectanglesAsync(rects.cvd, 1, 0.2); + expect(res.length, 1); + expect(res.first, cv.Rect(10, 10, 32, 32)); + + { + final hog = await cv.HOGDescriptorAsync.emptyNewAsync(); + final w = List.generate(rects.length, (index) => 0.1); + final (res, weights) = await hog.groupRectanglesAsync(rects.cvd, w.f64, 1, 0.1); + expect(res.length, greaterThan(0)); + expect(weights.length, greaterThan(0)); + } + }); + + test('cv.QRCodeDetectorAsync', () async { + final img = await cv.imreadAsync("test/images/qrcode.png", flags: cv.IMREAD_COLOR); + expect(img.isEmpty, false); + + final detector = await cv.QRCodeDetectorAsync.emptyNewAsync(); + final (res, bbox) = await detector.detectAsync(img); + expect(res, true); + expect(bbox, isNotNull); + + { + final (success, pts) = await detector.detectAsync(img); + expect(success, true); + expect(pts.length, greaterThan(0)); + + final (rval, code) = await detector.decodeCurvedAsync(img, pts); + expect(rval, "Hello World!"); + expect(code.isEmpty, false); + } + + { + final (rval, pts, code) = await detector.detectAndDecodeCurvedAsync(img); + expect(rval, "Hello World!"); + expect(pts.length, greaterThan(0)); + expect(code.isEmpty, false); + } + + final (res2, bbox2, codes2) = await detector.decodeAsync(img); + final (res2_1, bbox2_1, codes2_1) = await detector.decodeAsync(img); + expect(res2_1, equals(res2)); + expect(bbox2_1, bbox2); + expect(codes2?.shape, codes2_1?.shape); + final (res3, bbox3, codes3) = await detector.detectAndDecodeAsync(img); + final (res3_1, bbox3_1, codes3_1) = await detector.detectAndDecodeAsync(img); + expect(bbox3_1, bbox3); + expect(codes3.shape, codes3_1.shape); + expect(res2, equals(res3)); + expect(res3_1, equals(res3)); + + final img2 = await cv.imreadAsync("test/images/multi_qrcodes.png", flags: cv.IMREAD_COLOR); + expect(img2.isEmpty, false); + + final (res4, multiBox) = await detector.detectMultiAsync(img2); + expect(res4, true); + expect(multiBox, isNotNull); + expect(multiBox.length, greaterThan(0)); + + final (success, strs, pts, mats) = await detector.detectAndDecodeMultiAsync(img); + expect(success, true); + expect(strs, ["Hello World!"]); + expect(pts.length, greaterThan(0)); + expect(mats.length, greaterThan(0)); + + await detector.setEpsXAsync(0.1); + await detector.setEpsYAsync(0.1); + await detector.setUseAlignmentMarkersAsync(false); + + detector.dispose(); + }); + + // https://docs.opencv.org/4.x/d0/dd4/tutorial_dnn_face.html + test('cv.FaceDetectorYNAsync', tags: ["no-local-files"], () async { + { + // Test loading from file + const modelPath = "test/models/face_detection_yunet_2023mar.onnx"; + final detector = await cv.FaceDetectorYNAsync.fromFileAsync(modelPath, "", (320, 320)); + + // Test loading image and setting input size + final img = await cv.imreadAsync("test/images/lenna.png"); + expect(img.isEmpty, false); + await detector.setInputSizeAsync((img.width, img.height)); + + // Test detection + final face = await detector.detectAsync(img); + expect(face.rows, greaterThanOrEqualTo(1)); + visualizeFaceDetect(img, face); + + // Test setting parameters + await detector.setScoreThresholdAsync(0.8); + await detector.setNMSThresholdAsync(0.4); + await detector.setTopKAsync(3000); + + // Test getters and compare values + expect(await detector.getScoreThresholdAsync(), closeTo(0.8, 1e-6)); + expect(await detector.getNmsThresholdAsync(), closeTo(0.4, 1e-6)); + expect(await detector.getTopKAsync(), equals(3000)); + expect(await detector.getInputSizeAsync(), equals((img.width, img.height))); + + // Dispose the detector + detector.dispose(); + } + + { + // Test loading from buffer + const modelPath = "test/models/face_detection_yunet_2023mar.onnx"; + final buf = await File(modelPath).readAsBytes(); + final detector = await cv.FaceDetectorYNAsync.fromBufferAsync("onnx", buf, Uint8List(0), (320, 320)); + + // Test loading image and setting input size + final img = await cv.imreadAsync("test/images/lenna.png"); + expect(img.isEmpty, false); + await detector.setInputSizeAsync((img.width, img.height)); + + // Test detection + final face = await detector.detectAsync(img); + expect(face.rows, greaterThanOrEqualTo(1)); + visualizeFaceDetect(img, face); + // cv.imwrite("AAA.png", img); + + // Dispose the detector + detector.dispose(); + } + }); + + // Test for cv.FaceRecognizerSF + test('cv.FaceRecognizerSFAsync', tags: ["no-local-files"], () async { + const modelPath = "test/models/face_recognition_sface_2021dec.onnx"; + final recognizer = await cv.FaceRecognizerSFAsync.fromFileAsync(modelPath, ""); + + // Test loading image + final img = await cv.imreadAsync("test/images/face.jpg"); + expect(img.isEmpty, false); + + // Assume face detection already done and we have faceBox (a Mat object) + final faceBox = cv.Mat.zeros(1, 4, MatType.CV_32SC1); + faceBox.set(0, 0, 50); // x + faceBox.set(0, 1, 50); // y + faceBox.set(0, 2, 100); // width + faceBox.set(0, 3, 100); // height + + // Test alignCrop + final alignedFace = await recognizer.alignCropAsync(img, faceBox); + expect(alignedFace.isEmpty, false); + + // Test feature extraction + final faceFeature = await recognizer.featureAsync(alignedFace); + expect(faceFeature.isEmpty, false); + + // Test loading another image for matching + final img2 = await cv.imreadAsync("test/images/lenna.png"); + expect(img2.isEmpty, false); + + // Test alignCrop and feature extraction for the second image + final alignedFace2 = await recognizer.alignCropAsync(img2, faceBox); + final faceFeature2 = await recognizer.featureAsync(alignedFace2); + + // Test matching features using L2 distance + final matchScoreL2 = + await recognizer.matchAsync(faceFeature, faceFeature2, disType: cv.FaceRecognizerSF.FR_NORM_L2); + expect(matchScoreL2, greaterThanOrEqualTo(0)); + + // Test matching features using Cosine distance + final matchScoreCosine = + await recognizer.matchAsync(faceFeature, faceFeature2, disType: cv.FaceRecognizerSF.FR_COSINE); + expect(matchScoreCosine, greaterThanOrEqualTo(0)); + + // Clean up + recognizer.dispose(); + alignedFace.dispose(); + faceFeature.dispose(); + alignedFace2.dispose(); + faceFeature2.dispose(); + }); +} diff --git a/test/objdetect_test.dart b/test/objdetect/objdetect_test.dart similarity index 100% rename from test/objdetect_test.dart rename to test/objdetect/objdetect_test.dart From aae3d1ee36b901fa376f8b01206a430ad6d1023d Mon Sep 17 00:00:00 2001 From: rainy liu Date: Fri, 28 Jun 2024 11:56:46 +0800 Subject: [PATCH 16/21] add formatter --- .github/workflows/formatter.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/formatter.yaml diff --git a/.github/workflows/formatter.yaml b/.github/workflows/formatter.yaml new file mode 100644 index 00000000..be590a48 --- /dev/null +++ b/.github/workflows/formatter.yaml @@ -0,0 +1,24 @@ +on: + push: + pull_request: + +name: Format Code + +jobs: + build: + name: format code + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Set up Flutter + uses: subosito/flutter-action@v1 + - name: Format code + run: | + dart format --line-length 110 \ + $(find lib test -name '*.dart' -not -name '*.g.dart' -and -not -name '*.freezed.dart') + - name: Commit changes + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "dart format ✅" + branch: ${{ github.head_ref }} From 323539c7c7fd8bd506864099e22c6523d0dec31e Mon Sep 17 00:00:00 2001 From: rainy liu Date: Fri, 28 Jun 2024 12:00:43 +0800 Subject: [PATCH 17/21] fix re-definition --- lib/src/opencv.g.dart | 11876 ++++++++++++++++++------------ src/dnn/dnn_async.h | 11 +- src/objdetect/objdetect_async.h | 19 +- 3 files changed, 7135 insertions(+), 4771 deletions(-) diff --git a/lib/src/opencv.g.dart b/lib/src/opencv.g.dart index 98ae9d21..c4450e2d 100644 --- a/lib/src/opencv.g.dart +++ b/lib/src/opencv.g.dart @@ -16,13 +16,16 @@ import 'dart:ffi' as ffi; /// class CvNative { /// Holds the symbol lookup function. - final ffi.Pointer Function(String symbolName) _lookup; + final ffi.Pointer Function(String symbolName) + _lookup; /// The symbols are looked up in [dynamicLibrary]. CvNative(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; /// The symbols are looked up with [lookup]. - CvNative.fromLookup(ffi.Pointer Function(String symbolName) lookup) + CvNative.fromLookup( + ffi.Pointer Function(String symbolName) + lookup) : _lookup = lookup; void AKAZE_Close( @@ -33,8 +36,10 @@ class CvNative { ); } - late final _AKAZE_ClosePtr = _lookup>('AKAZE_Close'); - late final _AKAZE_Close = _AKAZE_ClosePtr.asFunction(); + late final _AKAZE_ClosePtr = + _lookup>('AKAZE_Close'); + late final _AKAZE_Close = + _AKAZE_ClosePtr.asFunction(); ffi.Pointer AKAZE_Create( ffi.Pointer rval, @@ -44,10 +49,11 @@ class CvNative { ); } - late final _AKAZE_CreatePtr = - _lookup Function(ffi.Pointer)>>('AKAZE_Create'); - late final _AKAZE_Create = - _AKAZE_CreatePtr.asFunction Function(ffi.Pointer)>(); + late final _AKAZE_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('AKAZE_Create'); + late final _AKAZE_Create = _AKAZE_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer AKAZE_Detect( AKAZE a, @@ -61,11 +67,12 @@ class CvNative { ); } - late final _AKAZE_DetectPtr = - _lookup Function(AKAZE, Mat, ffi.Pointer)>>( - 'AKAZE_Detect'); - late final _AKAZE_Detect = - _AKAZE_DetectPtr.asFunction Function(AKAZE, Mat, ffi.Pointer)>(); + late final _AKAZE_DetectPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + AKAZE, Mat, ffi.Pointer)>>('AKAZE_Detect'); + late final _AKAZE_Detect = _AKAZE_DetectPtr.asFunction< + ffi.Pointer Function(AKAZE, Mat, ffi.Pointer)>(); ffi.Pointer AKAZE_DetectAndCompute( AKAZE a, @@ -84,10 +91,12 @@ class CvNative { } late final _AKAZE_DetectAndComputePtr = _lookup< - ffi.NativeFunction Function(AKAZE, Mat, Mat, Mat, ffi.Pointer)>>( - 'AKAZE_DetectAndCompute'); + ffi.NativeFunction< + ffi.Pointer Function(AKAZE, Mat, Mat, Mat, + ffi.Pointer)>>('AKAZE_DetectAndCompute'); late final _AKAZE_DetectAndCompute = _AKAZE_DetectAndComputePtr.asFunction< - ffi.Pointer Function(AKAZE, Mat, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + AKAZE, Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer AdaptiveThreshold( Mat src, @@ -111,10 +120,11 @@ class CvNative { late final _AdaptiveThresholdPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Double, ffi.Int, ffi.Int, ffi.Int, ffi.Double)>>('AdaptiveThreshold'); + ffi.Pointer Function(Mat, Mat, ffi.Double, ffi.Int, ffi.Int, + ffi.Int, ffi.Double)>>('AdaptiveThreshold'); late final _AdaptiveThreshold = _AdaptiveThresholdPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, int, int, int, double)>(); + ffi.Pointer Function( + Mat, Mat, double, int, int, int, double)>(); void AgastFeatureDetector_Close( AgastFeatureDetectorPtr a, @@ -125,9 +135,10 @@ class CvNative { } late final _AgastFeatureDetector_ClosePtr = - _lookup>('AgastFeatureDetector_Close'); - late final _AgastFeatureDetector_Close = - _AgastFeatureDetector_ClosePtr.asFunction(); + _lookup>( + 'AgastFeatureDetector_Close'); + late final _AgastFeatureDetector_Close = _AgastFeatureDetector_ClosePtr + .asFunction(); ffi.Pointer AgastFeatureDetector_Create( ffi.Pointer rval, @@ -137,11 +148,14 @@ class CvNative { ); } - late final _AgastFeatureDetector_CreatePtr = - _lookup Function(ffi.Pointer)>>( - 'AgastFeatureDetector_Create'); - late final _AgastFeatureDetector_Create = _AgastFeatureDetector_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _AgastFeatureDetector_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>( + 'AgastFeatureDetector_Create'); + late final _AgastFeatureDetector_Create = + _AgastFeatureDetector_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer AgastFeatureDetector_Detect( AgastFeatureDetector a, @@ -157,10 +171,12 @@ class CvNative { late final _AgastFeatureDetector_DetectPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(AgastFeatureDetector, Mat, + ffi.Pointer)>>('AgastFeatureDetector_Detect'); + late final _AgastFeatureDetector_Detect = + _AgastFeatureDetector_DetectPtr.asFunction< ffi.Pointer Function( - AgastFeatureDetector, Mat, ffi.Pointer)>>('AgastFeatureDetector_Detect'); - late final _AgastFeatureDetector_Detect = _AgastFeatureDetector_DetectPtr.asFunction< - ffi.Pointer Function(AgastFeatureDetector, Mat, ffi.Pointer)>(); + AgastFeatureDetector, Mat, ffi.Pointer)>(); void AlignMTB_Close( AlignMTBPtr b, @@ -171,8 +187,10 @@ class CvNative { } late final _AlignMTB_ClosePtr = - _lookup>('AlignMTB_Close'); - late final _AlignMTB_Close = _AlignMTB_ClosePtr.asFunction(); + _lookup>( + 'AlignMTB_Close'); + late final _AlignMTB_Close = + _AlignMTB_ClosePtr.asFunction(); ffi.Pointer AlignMTB_Create( ffi.Pointer rval, @@ -182,10 +200,12 @@ class CvNative { ); } - late final _AlignMTB_CreatePtr = - _lookup Function(ffi.Pointer)>>('AlignMTB_Create'); - late final _AlignMTB_Create = - _AlignMTB_CreatePtr.asFunction Function(ffi.Pointer)>(); + late final _AlignMTB_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('AlignMTB_Create'); + late final _AlignMTB_Create = _AlignMTB_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer AlignMTB_CreateWithParams( int max_bits, @@ -202,11 +222,13 @@ class CvNative { } late final _AlignMTB_CreateWithParamsPtr = _lookup< - ffi - .NativeFunction Function(ffi.Int, ffi.Int, ffi.Bool, ffi.Pointer)>>( - 'AlignMTB_CreateWithParams'); - late final _AlignMTB_CreateWithParams = _AlignMTB_CreateWithParamsPtr.asFunction< - ffi.Pointer Function(int, int, bool, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Int, ffi.Bool, + ffi.Pointer)>>('AlignMTB_CreateWithParams'); + late final _AlignMTB_CreateWithParams = + _AlignMTB_CreateWithParamsPtr.asFunction< + ffi.Pointer Function( + int, int, bool, ffi.Pointer)>(); ffi.Pointer AlignMTB_Process( AlignMTB b, @@ -220,9 +242,10 @@ class CvNative { ); } - late final _AlignMTB_ProcessPtr = - _lookup Function(AlignMTB, VecMat, ffi.Pointer)>>( - 'AlignMTB_Process'); + late final _AlignMTB_ProcessPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + AlignMTB, VecMat, ffi.Pointer)>>('AlignMTB_Process'); late final _AlignMTB_Process = _AlignMTB_ProcessPtr.asFunction< ffi.Pointer Function(AlignMTB, VecMat, ffi.Pointer)>(); @@ -238,9 +261,11 @@ class CvNative { ); } - late final _ApplyColorMapPtr = - _lookup Function(Mat, Mat, ffi.Int)>>('ApplyColorMap'); - late final _ApplyColorMap = _ApplyColorMapPtr.asFunction Function(Mat, Mat, int)>(); + late final _ApplyColorMapPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int)>>('ApplyColorMap'); + late final _ApplyColorMap = _ApplyColorMapPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int)>(); ffi.Pointer ApplyCustomColorMap( Mat src, @@ -254,10 +279,11 @@ class CvNative { ); } - late final _ApplyCustomColorMapPtr = - _lookup Function(Mat, Mat, Mat)>>('ApplyCustomColorMap'); - late final _ApplyCustomColorMap = - _ApplyCustomColorMapPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _ApplyCustomColorMapPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'ApplyCustomColorMap'); + late final _ApplyCustomColorMap = _ApplyCustomColorMapPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer ApproxPolyDP( VecPoint curve, @@ -275,10 +301,11 @@ class CvNative { late final _ApproxPolyDPPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Double, ffi.Bool, ffi.Pointer)>>('ApproxPolyDP'); + ffi.Pointer Function(VecPoint, ffi.Double, ffi.Bool, + ffi.Pointer)>>('ApproxPolyDP'); late final _ApproxPolyDP = _ApproxPolyDPPtr.asFunction< - ffi.Pointer Function(VecPoint, double, bool, ffi.Pointer)>(); + ffi.Pointer Function( + VecPoint, double, bool, ffi.Pointer)>(); ffi.Pointer ArcLength( VecPoint curve, @@ -293,10 +320,12 @@ class CvNative { } late final _ArcLengthPtr = _lookup< - ffi.NativeFunction Function(VecPoint, ffi.Bool, ffi.Pointer)>>( - 'ArcLength'); - late final _ArcLength = - _ArcLengthPtr.asFunction Function(VecPoint, bool, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Bool, ffi.Pointer)>>('ArcLength'); + late final _ArcLength = _ArcLengthPtr.asFunction< + ffi.Pointer Function( + VecPoint, bool, ffi.Pointer)>(); ffi.Pointer ArrowedLine( Mat img, @@ -322,10 +351,11 @@ class CvNative { late final _ArrowedLinePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Point, Point, Scalar, ffi.Int, ffi.Int, ffi.Int, ffi.Double)>>('ArrowedLine'); + ffi.Pointer Function(Mat, Point, Point, Scalar, ffi.Int, + ffi.Int, ffi.Int, ffi.Double)>>('ArrowedLine'); late final _ArrowedLine = _ArrowedLinePtr.asFunction< - ffi.Pointer Function(Mat, Point, Point, Scalar, int, int, int, double)>(); + ffi.Pointer Function( + Mat, Point, Point, Scalar, int, int, int, double)>(); void ArucoDetectorParameters_Close( ArucoDetectorParametersPtr ap, @@ -335,11 +365,11 @@ class CvNative { ); } - late final _ArucoDetectorParameters_ClosePtr = - _lookup>( - 'ArucoDetectorParameters_Close'); - late final _ArucoDetectorParameters_Close = - _ArucoDetectorParameters_ClosePtr.asFunction(); + late final _ArucoDetectorParameters_ClosePtr = _lookup< + ffi.NativeFunction>( + 'ArucoDetectorParameters_Close'); + late final _ArucoDetectorParameters_Close = _ArucoDetectorParameters_ClosePtr + .asFunction(); ffi.Pointer ArucoDetectorParameters_Create( ffi.Pointer rval, @@ -349,11 +379,15 @@ class CvNative { ); } - late final _ArucoDetectorParameters_CreatePtr = - _lookup Function(ffi.Pointer)>>( - 'ArucoDetectorParameters_Create'); - late final _ArucoDetectorParameters_Create = _ArucoDetectorParameters_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _ArucoDetectorParameters_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>( + 'ArucoDetectorParameters_Create'); + late final _ArucoDetectorParameters_Create = + _ArucoDetectorParameters_CreatePtr.asFunction< + ffi.Pointer Function( + ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAdaptiveThreshConstant( ArucoDetectorParameters ap, @@ -366,12 +400,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetAdaptiveThreshConstantPtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAdaptiveThreshConstant'); late final _ArucoDetectorParameters_GetAdaptiveThreshConstant = _ArucoDetectorParameters_GetAdaptiveThreshConstantPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAdaptiveThreshWinSizeMax( ArucoDetectorParameters ap, @@ -384,11 +420,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetAdaptiveThreshWinSizeMaxPtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAdaptiveThreshWinSizeMax'); late final _ArucoDetectorParameters_GetAdaptiveThreshWinSizeMax = _ArucoDetectorParameters_GetAdaptiveThreshWinSizeMaxPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAdaptiveThreshWinSizeMin( ArucoDetectorParameters ap, @@ -401,11 +440,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetAdaptiveThreshWinSizeMinPtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAdaptiveThreshWinSizeMin'); late final _ArucoDetectorParameters_GetAdaptiveThreshWinSizeMin = _ArucoDetectorParameters_GetAdaptiveThreshWinSizeMinPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAdaptiveThreshWinSizeStep( ArucoDetectorParameters ap, @@ -418,11 +460,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetAdaptiveThreshWinSizeStepPtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAdaptiveThreshWinSizeStep'); late final _ArucoDetectorParameters_GetAdaptiveThreshWinSizeStep = _ArucoDetectorParameters_GetAdaptiveThreshWinSizeStepPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagCriticalRad( ArucoDetectorParameters ap, @@ -435,12 +480,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagCriticalRadPtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagCriticalRad'); late final _ArucoDetectorParameters_GetAprilTagCriticalRad = _ArucoDetectorParameters_GetAprilTagCriticalRadPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagDeglitch( ArucoDetectorParameters ap, @@ -453,10 +500,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagDeglitchPtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagDeglitch'); - late final _ArucoDetectorParameters_GetAprilTagDeglitch = _ArucoDetectorParameters_GetAprilTagDeglitchPtr - .asFunction Function(ArucoDetectorParameters, ffi.Pointer)>(); + late final _ArucoDetectorParameters_GetAprilTagDeglitch = + _ArucoDetectorParameters_GetAprilTagDeglitchPtr.asFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagMaxLineFitMse( ArucoDetectorParameters ap, @@ -469,12 +520,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagMaxLineFitMsePtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagMaxLineFitMse'); late final _ArucoDetectorParameters_GetAprilTagMaxLineFitMse = _ArucoDetectorParameters_GetAprilTagMaxLineFitMsePtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagMaxNmaxima( ArucoDetectorParameters ap, @@ -487,11 +540,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagMaxNmaximaPtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagMaxNmaxima'); late final _ArucoDetectorParameters_GetAprilTagMaxNmaxima = _ArucoDetectorParameters_GetAprilTagMaxNmaximaPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagMinClusterPixels( ArucoDetectorParameters ap, @@ -504,11 +560,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagMinClusterPixelsPtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagMinClusterPixels'); late final _ArucoDetectorParameters_GetAprilTagMinClusterPixels = _ArucoDetectorParameters_GetAprilTagMinClusterPixelsPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagMinWhiteBlackDiff( ArucoDetectorParameters ap, @@ -521,11 +580,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagMinWhiteBlackDiffPtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagMinWhiteBlackDiff'); late final _ArucoDetectorParameters_GetAprilTagMinWhiteBlackDiff = _ArucoDetectorParameters_GetAprilTagMinWhiteBlackDiffPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagQuadDecimate( ArucoDetectorParameters ap, @@ -538,12 +600,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagQuadDecimatePtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagQuadDecimate'); late final _ArucoDetectorParameters_GetAprilTagQuadDecimate = _ArucoDetectorParameters_GetAprilTagQuadDecimatePtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetAprilTagQuadSigma( ArucoDetectorParameters ap, @@ -556,13 +620,17 @@ class CvNative { } late final _ArucoDetectorParameters_GetAprilTagQuadSigmaPtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetAprilTagQuadSigma'); - late final _ArucoDetectorParameters_GetAprilTagQuadSigma = _ArucoDetectorParameters_GetAprilTagQuadSigmaPtr - .asFunction Function(ArucoDetectorParameters, ffi.Pointer)>(); + late final _ArucoDetectorParameters_GetAprilTagQuadSigma = + _ArucoDetectorParameters_GetAprilTagQuadSigmaPtr.asFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); - ffi.Pointer ArucoDetectorParameters_GetCornerRefinementMaxIterations( + ffi.Pointer + ArucoDetectorParameters_GetCornerRefinementMaxIterations( ArucoDetectorParameters ap, ffi.Pointer rval, ) { @@ -572,12 +640,16 @@ class CvNative { ); } - late final _ArucoDetectorParameters_GetCornerRefinementMaxIterationsPtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( - 'ArucoDetectorParameters_GetCornerRefinementMaxIterations'); + late final _ArucoDetectorParameters_GetCornerRefinementMaxIterationsPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( + 'ArucoDetectorParameters_GetCornerRefinementMaxIterations'); late final _ArucoDetectorParameters_GetCornerRefinementMaxIterations = _ArucoDetectorParameters_GetCornerRefinementMaxIterationsPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetCornerRefinementMethod( ArucoDetectorParameters ap, @@ -590,11 +662,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetCornerRefinementMethodPtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetCornerRefinementMethod'); late final _ArucoDetectorParameters_GetCornerRefinementMethod = _ArucoDetectorParameters_GetCornerRefinementMethodPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetCornerRefinementMinAccuracy( ArucoDetectorParameters ap, @@ -606,13 +681,16 @@ class CvNative { ); } - late final _ArucoDetectorParameters_GetCornerRefinementMinAccuracyPtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( - 'ArucoDetectorParameters_GetCornerRefinementMinAccuracy'); + late final _ArucoDetectorParameters_GetCornerRefinementMinAccuracyPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( + 'ArucoDetectorParameters_GetCornerRefinementMinAccuracy'); late final _ArucoDetectorParameters_GetCornerRefinementMinAccuracy = _ArucoDetectorParameters_GetCornerRefinementMinAccuracyPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetCornerRefinementWinSize( ArucoDetectorParameters ap, @@ -625,11 +703,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetCornerRefinementWinSizePtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetCornerRefinementWinSize'); late final _ArucoDetectorParameters_GetCornerRefinementWinSize = _ArucoDetectorParameters_GetCornerRefinementWinSizePtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetDetectInvertedMarker( ArucoDetectorParameters ap, @@ -642,11 +723,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetDetectInvertedMarkerPtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetDetectInvertedMarker'); late final _ArucoDetectorParameters_GetDetectInvertedMarker = _ArucoDetectorParameters_GetDetectInvertedMarkerPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetErrorCorrectionRate( ArucoDetectorParameters ap, @@ -659,12 +743,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetErrorCorrectionRatePtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetErrorCorrectionRate'); late final _ArucoDetectorParameters_GetErrorCorrectionRate = _ArucoDetectorParameters_GetErrorCorrectionRatePtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMarkerBorderBits( ArucoDetectorParameters ap, @@ -677,10 +763,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetMarkerBorderBitsPtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMarkerBorderBits'); - late final _ArucoDetectorParameters_GetMarkerBorderBits = _ArucoDetectorParameters_GetMarkerBorderBitsPtr - .asFunction Function(ArucoDetectorParameters, ffi.Pointer)>(); + late final _ArucoDetectorParameters_GetMarkerBorderBits = + _ArucoDetectorParameters_GetMarkerBorderBitsPtr.asFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMaxErroneousBitsInBorderRate( ArucoDetectorParameters ap, @@ -692,13 +782,16 @@ class CvNative { ); } - late final _ArucoDetectorParameters_GetMaxErroneousBitsInBorderRatePtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( - 'ArucoDetectorParameters_GetMaxErroneousBitsInBorderRate'); + late final _ArucoDetectorParameters_GetMaxErroneousBitsInBorderRatePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( + 'ArucoDetectorParameters_GetMaxErroneousBitsInBorderRate'); late final _ArucoDetectorParameters_GetMaxErroneousBitsInBorderRate = _ArucoDetectorParameters_GetMaxErroneousBitsInBorderRatePtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMaxMarkerPerimeterRate( ArucoDetectorParameters ap, @@ -711,12 +804,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetMaxMarkerPerimeterRatePtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMaxMarkerPerimeterRate'); late final _ArucoDetectorParameters_GetMaxMarkerPerimeterRate = _ArucoDetectorParameters_GetMaxMarkerPerimeterRatePtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMinCornerDistanceRate( ArucoDetectorParameters ap, @@ -729,12 +824,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetMinCornerDistanceRatePtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMinCornerDistanceRate'); late final _ArucoDetectorParameters_GetMinCornerDistanceRate = _ArucoDetectorParameters_GetMinCornerDistanceRatePtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMinDistanceToBorder( ArucoDetectorParameters ap, @@ -747,11 +844,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetMinDistanceToBorderPtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMinDistanceToBorder'); late final _ArucoDetectorParameters_GetMinDistanceToBorder = _ArucoDetectorParameters_GetMinDistanceToBorderPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMinMarkerDistanceRate( ArucoDetectorParameters ap, @@ -764,12 +864,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetMinMarkerDistanceRatePtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMinMarkerDistanceRate'); late final _ArucoDetectorParameters_GetMinMarkerDistanceRate = _ArucoDetectorParameters_GetMinMarkerDistanceRatePtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMinMarkerPerimeterRate( ArucoDetectorParameters ap, @@ -782,12 +884,14 @@ class CvNative { } late final _ArucoDetectorParameters_GetMinMarkerPerimeterRatePtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMinMarkerPerimeterRate'); late final _ArucoDetectorParameters_GetMinMarkerPerimeterRate = _ArucoDetectorParameters_GetMinMarkerPerimeterRatePtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetMinOtsuStdDev( ArucoDetectorParameters ap, @@ -800,13 +904,17 @@ class CvNative { } late final _ArucoDetectorParameters_GetMinOtsuStdDevPtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( 'ArucoDetectorParameters_GetMinOtsuStdDev'); - late final _ArucoDetectorParameters_GetMinOtsuStdDev = _ArucoDetectorParameters_GetMinOtsuStdDevPtr - .asFunction Function(ArucoDetectorParameters, ffi.Pointer)>(); + late final _ArucoDetectorParameters_GetMinOtsuStdDev = + _ArucoDetectorParameters_GetMinOtsuStdDevPtr.asFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); - ffi.Pointer ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCell( + ffi.Pointer + ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCell( ArucoDetectorParameters ap, ffi.Pointer rval, ) { @@ -816,15 +924,20 @@ class CvNative { ); } - late final _ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCellPtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( - 'ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCell'); + late final _ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCellPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( + 'ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCell'); late final _ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCell = - _ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCellPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + _ArucoDetectorParameters_GetPerspectiveRemoveIgnoredMarginPerCellPtr + .asFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); - ffi.Pointer ArucoDetectorParameters_GetPerspectiveRemovePixelPerCell( + ffi.Pointer + ArucoDetectorParameters_GetPerspectiveRemovePixelPerCell( ArucoDetectorParameters ap, ffi.Pointer rval, ) { @@ -834,12 +947,16 @@ class CvNative { ); } - late final _ArucoDetectorParameters_GetPerspectiveRemovePixelPerCellPtr = _lookup< - ffi.NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( - 'ArucoDetectorParameters_GetPerspectiveRemovePixelPerCell'); + late final _ArucoDetectorParameters_GetPerspectiveRemovePixelPerCellPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( + 'ArucoDetectorParameters_GetPerspectiveRemovePixelPerCell'); late final _ArucoDetectorParameters_GetPerspectiveRemovePixelPerCell = _ArucoDetectorParameters_GetPerspectiveRemovePixelPerCellPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_GetPolygonalApproxAccuracyRate( ArucoDetectorParameters ap, @@ -851,13 +968,16 @@ class CvNative { ); } - late final _ArucoDetectorParameters_GetPolygonalApproxAccuracyRatePtr = _lookup< - ffi - .NativeFunction Function(ArucoDetectorParameters, ffi.Pointer)>>( - 'ArucoDetectorParameters_GetPolygonalApproxAccuracyRate'); + late final _ArucoDetectorParameters_GetPolygonalApproxAccuracyRatePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>>( + 'ArucoDetectorParameters_GetPolygonalApproxAccuracyRate'); late final _ArucoDetectorParameters_GetPolygonalApproxAccuracyRate = _ArucoDetectorParameters_GetPolygonalApproxAccuracyRatePtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, ffi.Pointer)>(); + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Pointer)>(); ffi.Pointer ArucoDetectorParameters_SetAdaptiveThreshConstant( ArucoDetectorParameters ap, @@ -869,9 +989,11 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAdaptiveThreshConstantPtr = - _lookup Function(ArucoDetectorParameters, ffi.Double)>>( - 'ArucoDetectorParameters_SetAdaptiveThreshConstant'); + late final _ArucoDetectorParameters_SetAdaptiveThreshConstantPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Double)>>( + 'ArucoDetectorParameters_SetAdaptiveThreshConstant'); late final _ArucoDetectorParameters_SetAdaptiveThreshConstant = _ArucoDetectorParameters_SetAdaptiveThreshConstantPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -886,9 +1008,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMaxPtr = - _lookup Function(ArucoDetectorParameters, ffi.Int)>>( - 'ArucoDetectorParameters_SetAdaptiveThreshWinSizeMax'); + late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMaxPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Int)>>('ArucoDetectorParameters_SetAdaptiveThreshWinSizeMax'); late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMax = _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMaxPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -903,9 +1026,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMinPtr = - _lookup Function(ArucoDetectorParameters, ffi.Int)>>( - 'ArucoDetectorParameters_SetAdaptiveThreshWinSizeMin'); + late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMinPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Int)>>('ArucoDetectorParameters_SetAdaptiveThreshWinSizeMin'); late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMin = _ArucoDetectorParameters_SetAdaptiveThreshWinSizeMinPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -920,9 +1044,11 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeStepPtr = - _lookup Function(ArucoDetectorParameters, ffi.Int)>>( - 'ArucoDetectorParameters_SetAdaptiveThreshWinSizeStep'); + late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeStepPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Int)>>( + 'ArucoDetectorParameters_SetAdaptiveThreshWinSizeStep'); late final _ArucoDetectorParameters_SetAdaptiveThreshWinSizeStep = _ArucoDetectorParameters_SetAdaptiveThreshWinSizeStepPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -937,9 +1063,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagCriticalRadPtr = - _lookup Function(ArucoDetectorParameters, ffi.Float)>>( - 'ArucoDetectorParameters_SetAprilTagCriticalRad'); + late final _ArucoDetectorParameters_SetAprilTagCriticalRadPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Float)>>('ArucoDetectorParameters_SetAprilTagCriticalRad'); late final _ArucoDetectorParameters_SetAprilTagCriticalRad = _ArucoDetectorParameters_SetAprilTagCriticalRadPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -954,11 +1081,13 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagDeglitchPtr = - _lookup Function(ArucoDetectorParameters, ffi.Int)>>( - 'ArucoDetectorParameters_SetAprilTagDeglitch'); - late final _ArucoDetectorParameters_SetAprilTagDeglitch = _ArucoDetectorParameters_SetAprilTagDeglitchPtr - .asFunction Function(ArucoDetectorParameters, int)>(); + late final _ArucoDetectorParameters_SetAprilTagDeglitchPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Int)>>('ArucoDetectorParameters_SetAprilTagDeglitch'); + late final _ArucoDetectorParameters_SetAprilTagDeglitch = + _ArucoDetectorParameters_SetAprilTagDeglitchPtr.asFunction< + ffi.Pointer Function(ArucoDetectorParameters, int)>(); ffi.Pointer ArucoDetectorParameters_SetAprilTagMaxLineFitMse( ArucoDetectorParameters ap, @@ -970,9 +1099,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagMaxLineFitMsePtr = - _lookup Function(ArucoDetectorParameters, ffi.Float)>>( - 'ArucoDetectorParameters_SetAprilTagMaxLineFitMse'); + late final _ArucoDetectorParameters_SetAprilTagMaxLineFitMsePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Float)>>('ArucoDetectorParameters_SetAprilTagMaxLineFitMse'); late final _ArucoDetectorParameters_SetAprilTagMaxLineFitMse = _ArucoDetectorParameters_SetAprilTagMaxLineFitMsePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -987,9 +1117,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagMaxNmaximaPtr = - _lookup Function(ArucoDetectorParameters, ffi.Int)>>( - 'ArucoDetectorParameters_SetAprilTagMaxNmaxima'); + late final _ArucoDetectorParameters_SetAprilTagMaxNmaximaPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Int)>>('ArucoDetectorParameters_SetAprilTagMaxNmaxima'); late final _ArucoDetectorParameters_SetAprilTagMaxNmaxima = _ArucoDetectorParameters_SetAprilTagMaxNmaximaPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1004,9 +1135,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagMinClusterPixelsPtr = - _lookup Function(ArucoDetectorParameters, ffi.Int)>>( - 'ArucoDetectorParameters_SetAprilTagMinClusterPixels'); + late final _ArucoDetectorParameters_SetAprilTagMinClusterPixelsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Int)>>('ArucoDetectorParameters_SetAprilTagMinClusterPixels'); late final _ArucoDetectorParameters_SetAprilTagMinClusterPixels = _ArucoDetectorParameters_SetAprilTagMinClusterPixelsPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1021,9 +1153,11 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagMinWhiteBlackDiffPtr = - _lookup Function(ArucoDetectorParameters, ffi.Int)>>( - 'ArucoDetectorParameters_SetAprilTagMinWhiteBlackDiff'); + late final _ArucoDetectorParameters_SetAprilTagMinWhiteBlackDiffPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Int)>>( + 'ArucoDetectorParameters_SetAprilTagMinWhiteBlackDiff'); late final _ArucoDetectorParameters_SetAprilTagMinWhiteBlackDiff = _ArucoDetectorParameters_SetAprilTagMinWhiteBlackDiffPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1038,9 +1172,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagQuadDecimatePtr = - _lookup Function(ArucoDetectorParameters, ffi.Float)>>( - 'ArucoDetectorParameters_SetAprilTagQuadDecimate'); + late final _ArucoDetectorParameters_SetAprilTagQuadDecimatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Float)>>('ArucoDetectorParameters_SetAprilTagQuadDecimate'); late final _ArucoDetectorParameters_SetAprilTagQuadDecimate = _ArucoDetectorParameters_SetAprilTagQuadDecimatePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1055,13 +1190,16 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetAprilTagQuadSigmaPtr = - _lookup Function(ArucoDetectorParameters, ffi.Float)>>( - 'ArucoDetectorParameters_SetAprilTagQuadSigma'); - late final _ArucoDetectorParameters_SetAprilTagQuadSigma = _ArucoDetectorParameters_SetAprilTagQuadSigmaPtr - .asFunction Function(ArucoDetectorParameters, double)>(); + late final _ArucoDetectorParameters_SetAprilTagQuadSigmaPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Float)>>('ArucoDetectorParameters_SetAprilTagQuadSigma'); + late final _ArucoDetectorParameters_SetAprilTagQuadSigma = + _ArucoDetectorParameters_SetAprilTagQuadSigmaPtr.asFunction< + ffi.Pointer Function(ArucoDetectorParameters, double)>(); - ffi.Pointer ArucoDetectorParameters_SetCornerRefinementMaxIterations( + ffi.Pointer + ArucoDetectorParameters_SetCornerRefinementMaxIterations( ArucoDetectorParameters ap, int cornerRefinementMaxIterations, ) { @@ -1072,7 +1210,10 @@ class CvNative { } late final _ArucoDetectorParameters_SetCornerRefinementMaxIterationsPtr = - _lookup Function(ArucoDetectorParameters, ffi.Int)>>( + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Int)>>( 'ArucoDetectorParameters_SetCornerRefinementMaxIterations'); late final _ArucoDetectorParameters_SetCornerRefinementMaxIterations = _ArucoDetectorParameters_SetCornerRefinementMaxIterationsPtr.asFunction< @@ -1088,9 +1229,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetCornerRefinementMethodPtr = - _lookup Function(ArucoDetectorParameters, ffi.Int)>>( - 'ArucoDetectorParameters_SetCornerRefinementMethod'); + late final _ArucoDetectorParameters_SetCornerRefinementMethodPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Int)>>('ArucoDetectorParameters_SetCornerRefinementMethod'); late final _ArucoDetectorParameters_SetCornerRefinementMethod = _ArucoDetectorParameters_SetCornerRefinementMethodPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1106,7 +1248,10 @@ class CvNative { } late final _ArucoDetectorParameters_SetCornerRefinementMinAccuracyPtr = - _lookup Function(ArucoDetectorParameters, ffi.Double)>>( + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Double)>>( 'ArucoDetectorParameters_SetCornerRefinementMinAccuracy'); late final _ArucoDetectorParameters_SetCornerRefinementMinAccuracy = _ArucoDetectorParameters_SetCornerRefinementMinAccuracyPtr.asFunction< @@ -1122,9 +1267,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetCornerRefinementWinSizePtr = - _lookup Function(ArucoDetectorParameters, ffi.Int)>>( - 'ArucoDetectorParameters_SetCornerRefinementWinSize'); + late final _ArucoDetectorParameters_SetCornerRefinementWinSizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Int)>>('ArucoDetectorParameters_SetCornerRefinementWinSize'); late final _ArucoDetectorParameters_SetCornerRefinementWinSize = _ArucoDetectorParameters_SetCornerRefinementWinSizePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1139,9 +1285,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetDetectInvertedMarkerPtr = - _lookup Function(ArucoDetectorParameters, ffi.Bool)>>( - 'ArucoDetectorParameters_SetDetectInvertedMarker'); + late final _ArucoDetectorParameters_SetDetectInvertedMarkerPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Bool)>>('ArucoDetectorParameters_SetDetectInvertedMarker'); late final _ArucoDetectorParameters_SetDetectInvertedMarker = _ArucoDetectorParameters_SetDetectInvertedMarkerPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, bool)>(); @@ -1156,9 +1303,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetErrorCorrectionRatePtr = - _lookup Function(ArucoDetectorParameters, ffi.Double)>>( - 'ArucoDetectorParameters_SetErrorCorrectionRate'); + late final _ArucoDetectorParameters_SetErrorCorrectionRatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Double)>>('ArucoDetectorParameters_SetErrorCorrectionRate'); late final _ArucoDetectorParameters_SetErrorCorrectionRate = _ArucoDetectorParameters_SetErrorCorrectionRatePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1173,11 +1321,13 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMarkerBorderBitsPtr = - _lookup Function(ArucoDetectorParameters, ffi.Int)>>( - 'ArucoDetectorParameters_SetMarkerBorderBits'); - late final _ArucoDetectorParameters_SetMarkerBorderBits = _ArucoDetectorParameters_SetMarkerBorderBitsPtr - .asFunction Function(ArucoDetectorParameters, int)>(); + late final _ArucoDetectorParameters_SetMarkerBorderBitsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Int)>>('ArucoDetectorParameters_SetMarkerBorderBits'); + late final _ArucoDetectorParameters_SetMarkerBorderBits = + _ArucoDetectorParameters_SetMarkerBorderBitsPtr.asFunction< + ffi.Pointer Function(ArucoDetectorParameters, int)>(); ffi.Pointer ArucoDetectorParameters_SetMaxErroneousBitsInBorderRate( ArucoDetectorParameters ap, @@ -1190,7 +1340,10 @@ class CvNative { } late final _ArucoDetectorParameters_SetMaxErroneousBitsInBorderRatePtr = - _lookup Function(ArucoDetectorParameters, ffi.Double)>>( + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Double)>>( 'ArucoDetectorParameters_SetMaxErroneousBitsInBorderRate'); late final _ArucoDetectorParameters_SetMaxErroneousBitsInBorderRate = _ArucoDetectorParameters_SetMaxErroneousBitsInBorderRatePtr.asFunction< @@ -1206,9 +1359,11 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMaxMarkerPerimeterRatePtr = - _lookup Function(ArucoDetectorParameters, ffi.Double)>>( - 'ArucoDetectorParameters_SetMaxMarkerPerimeterRate'); + late final _ArucoDetectorParameters_SetMaxMarkerPerimeterRatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Double)>>( + 'ArucoDetectorParameters_SetMaxMarkerPerimeterRate'); late final _ArucoDetectorParameters_SetMaxMarkerPerimeterRate = _ArucoDetectorParameters_SetMaxMarkerPerimeterRatePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1223,9 +1378,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMinCornerDistanceRatePtr = - _lookup Function(ArucoDetectorParameters, ffi.Double)>>( - 'ArucoDetectorParameters_SetMinCornerDistanceRate'); + late final _ArucoDetectorParameters_SetMinCornerDistanceRatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Double)>>('ArucoDetectorParameters_SetMinCornerDistanceRate'); late final _ArucoDetectorParameters_SetMinCornerDistanceRate = _ArucoDetectorParameters_SetMinCornerDistanceRatePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1240,9 +1396,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMinDistanceToBorderPtr = - _lookup Function(ArucoDetectorParameters, ffi.Int)>>( - 'ArucoDetectorParameters_SetMinDistanceToBorder'); + late final _ArucoDetectorParameters_SetMinDistanceToBorderPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Int)>>('ArucoDetectorParameters_SetMinDistanceToBorder'); late final _ArucoDetectorParameters_SetMinDistanceToBorder = _ArucoDetectorParameters_SetMinDistanceToBorderPtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, int)>(); @@ -1257,9 +1414,10 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMinMarkerDistanceRatePtr = - _lookup Function(ArucoDetectorParameters, ffi.Double)>>( - 'ArucoDetectorParameters_SetMinMarkerDistanceRate'); + late final _ArucoDetectorParameters_SetMinMarkerDistanceRatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Double)>>('ArucoDetectorParameters_SetMinMarkerDistanceRate'); late final _ArucoDetectorParameters_SetMinMarkerDistanceRate = _ArucoDetectorParameters_SetMinMarkerDistanceRatePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1274,9 +1432,11 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMinMarkerPerimeterRatePtr = - _lookup Function(ArucoDetectorParameters, ffi.Double)>>( - 'ArucoDetectorParameters_SetMinMarkerPerimeterRate'); + late final _ArucoDetectorParameters_SetMinMarkerPerimeterRatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Double)>>( + 'ArucoDetectorParameters_SetMinMarkerPerimeterRate'); late final _ArucoDetectorParameters_SetMinMarkerPerimeterRate = _ArucoDetectorParameters_SetMinMarkerPerimeterRatePtr.asFunction< ffi.Pointer Function(ArucoDetectorParameters, double)>(); @@ -1291,13 +1451,16 @@ class CvNative { ); } - late final _ArucoDetectorParameters_SetMinOtsuStdDevPtr = - _lookup Function(ArucoDetectorParameters, ffi.Double)>>( - 'ArucoDetectorParameters_SetMinOtsuStdDev'); - late final _ArucoDetectorParameters_SetMinOtsuStdDev = _ArucoDetectorParameters_SetMinOtsuStdDevPtr - .asFunction Function(ArucoDetectorParameters, double)>(); + late final _ArucoDetectorParameters_SetMinOtsuStdDevPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ArucoDetectorParameters, + ffi.Double)>>('ArucoDetectorParameters_SetMinOtsuStdDev'); + late final _ArucoDetectorParameters_SetMinOtsuStdDev = + _ArucoDetectorParameters_SetMinOtsuStdDevPtr.asFunction< + ffi.Pointer Function(ArucoDetectorParameters, double)>(); - ffi.Pointer ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCell( + ffi.Pointer + ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCell( ArucoDetectorParameters ap, double perspectiveRemoveIgnoredMarginPerCell, ) { @@ -1308,13 +1471,19 @@ class CvNative { } late final _ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCellPtr = - _lookup Function(ArucoDetectorParameters, ffi.Double)>>( + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Double)>>( 'ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCell'); late final _ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCell = - _ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCellPtr.asFunction< - ffi.Pointer Function(ArucoDetectorParameters, double)>(); + _ArucoDetectorParameters_SetPerspectiveRemoveIgnoredMarginPerCellPtr + .asFunction< + ffi.Pointer Function( + ArucoDetectorParameters, double)>(); - ffi.Pointer ArucoDetectorParameters_SetPerspectiveRemovePixelPerCell( + ffi.Pointer + ArucoDetectorParameters_SetPerspectiveRemovePixelPerCell( ArucoDetectorParameters ap, int perspectiveRemovePixelPerCell, ) { @@ -1325,7 +1494,10 @@ class CvNative { } late final _ArucoDetectorParameters_SetPerspectiveRemovePixelPerCellPtr = - _lookup Function(ArucoDetectorParameters, ffi.Int)>>( + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Int)>>( 'ArucoDetectorParameters_SetPerspectiveRemovePixelPerCell'); late final _ArucoDetectorParameters_SetPerspectiveRemovePixelPerCell = _ArucoDetectorParameters_SetPerspectiveRemovePixelPerCellPtr.asFunction< @@ -1342,7 +1514,10 @@ class CvNative { } late final _ArucoDetectorParameters_SetPolygonalApproxAccuracyRatePtr = - _lookup Function(ArucoDetectorParameters, ffi.Double)>>( + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ArucoDetectorParameters, ffi.Double)>>( 'ArucoDetectorParameters_SetPolygonalApproxAccuracyRate'); late final _ArucoDetectorParameters_SetPolygonalApproxAccuracyRate = _ArucoDetectorParameters_SetPolygonalApproxAccuracyRatePtr.asFunction< @@ -1357,8 +1532,10 @@ class CvNative { } late final _ArucoDetector_ClosePtr = - _lookup>('ArucoDetector_Close'); - late final _ArucoDetector_Close = _ArucoDetector_ClosePtr.asFunction(); + _lookup>( + 'ArucoDetector_Close'); + late final _ArucoDetector_Close = + _ArucoDetector_ClosePtr.asFunction(); ffi.Pointer ArucoDetector_DetectMarkers( ArucoDetector ad, @@ -1378,11 +1555,20 @@ class CvNative { late final _ArucoDetector_DetectMarkersPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ArucoDetector, Mat, ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ArucoDetector, + Mat, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('ArucoDetector_DetectMarkers'); - late final _ArucoDetector_DetectMarkers = _ArucoDetector_DetectMarkersPtr.asFunction< - ffi.Pointer Function( - ArucoDetector, Mat, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + late final _ArucoDetector_DetectMarkers = + _ArucoDetector_DetectMarkersPtr.asFunction< + ffi.Pointer Function( + ArucoDetector, + Mat, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); ffi.Pointer ArucoDetector_New( ffi.Pointer rval, @@ -1392,11 +1578,12 @@ class CvNative { ); } - late final _ArucoDetector_NewPtr = - _lookup Function(ffi.Pointer)>>( - 'ArucoDetector_New'); - late final _ArucoDetector_New = - _ArucoDetector_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _ArucoDetector_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('ArucoDetector_New'); + late final _ArucoDetector_New = _ArucoDetector_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer ArucoDetector_NewWithParams( ArucoDictionary dictionary, @@ -1412,10 +1599,14 @@ class CvNative { late final _ArucoDetector_NewWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ArucoDictionary, ArucoDetectorParameters, + ffi.Pointer Function( + ArucoDictionary, + ArucoDetectorParameters, ffi.Pointer)>>('ArucoDetector_NewWithParams'); - late final _ArucoDetector_NewWithParams = _ArucoDetector_NewWithParamsPtr.asFunction< - ffi.Pointer Function(ArucoDictionary, ArucoDetectorParameters, ffi.Pointer)>(); + late final _ArucoDetector_NewWithParams = + _ArucoDetector_NewWithParamsPtr.asFunction< + ffi.Pointer Function(ArucoDictionary, + ArucoDetectorParameters, ffi.Pointer)>(); void ArucoDictionary_Close( ArucoDictionaryPtr self, @@ -1426,7 +1617,8 @@ class CvNative { } late final _ArucoDictionary_ClosePtr = - _lookup>('ArucoDictionary_Close'); + _lookup>( + 'ArucoDictionary_Close'); late final _ArucoDictionary_Close = _ArucoDictionary_ClosePtr.asFunction(); @@ -1444,11 +1636,13 @@ class CvNative { ); } - late final _ArucoDrawDetectedMarkersPtr = - _lookup Function(Mat, VecVecPoint2f, VecInt, Scalar)>>( - 'ArucoDrawDetectedMarkers'); - late final _ArucoDrawDetectedMarkers = _ArucoDrawDetectedMarkersPtr.asFunction< - ffi.Pointer Function(Mat, VecVecPoint2f, VecInt, Scalar)>(); + late final _ArucoDrawDetectedMarkersPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, VecVecPoint2f, VecInt, Scalar)>>('ArucoDrawDetectedMarkers'); + late final _ArucoDrawDetectedMarkers = + _ArucoDrawDetectedMarkersPtr.asFunction< + ffi.Pointer Function(Mat, VecVecPoint2f, VecInt, Scalar)>(); ffi.Pointer ArucoGenerateImageMarker( int dictionaryId, @@ -1466,11 +1660,12 @@ class CvNative { ); } - late final _ArucoGenerateImageMarkerPtr = - _lookup Function(ffi.Int, ffi.Int, ffi.Int, Mat, ffi.Int)>>( - 'ArucoGenerateImageMarker'); - late final _ArucoGenerateImageMarker = - _ArucoGenerateImageMarkerPtr.asFunction Function(int, int, int, Mat, int)>(); + late final _ArucoGenerateImageMarkerPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Int, ffi.Int, Mat, + ffi.Int)>>('ArucoGenerateImageMarker'); + late final _ArucoGenerateImageMarker = _ArucoGenerateImageMarkerPtr + .asFunction Function(int, int, int, Mat, int)>(); void AsyncArray_Close( AsyncArrayPtr a, @@ -1481,8 +1676,10 @@ class CvNative { } late final _AsyncArray_ClosePtr = - _lookup>('AsyncArray_Close'); - late final _AsyncArray_Close = _AsyncArray_ClosePtr.asFunction(); + _lookup>( + 'AsyncArray_Close'); + late final _AsyncArray_Close = + _AsyncArray_ClosePtr.asFunction(); ffi.Pointer AsyncArray_Get( AsyncArray async_out, @@ -1494,10 +1691,11 @@ class CvNative { ); } - late final _AsyncArray_GetPtr = - _lookup Function(AsyncArray, Mat)>>('AsyncArray_Get'); - late final _AsyncArray_Get = - _AsyncArray_GetPtr.asFunction Function(AsyncArray, Mat)>(); + late final _AsyncArray_GetPtr = _lookup< + ffi.NativeFunction Function(AsyncArray, Mat)>>( + 'AsyncArray_Get'); + late final _AsyncArray_Get = _AsyncArray_GetPtr.asFunction< + ffi.Pointer Function(AsyncArray, Mat)>(); ffi.Pointer AsyncArray_New( ffi.Pointer rval, @@ -1507,10 +1705,12 @@ class CvNative { ); } - late final _AsyncArray_NewPtr = - _lookup Function(ffi.Pointer)>>('AsyncArray_New'); - late final _AsyncArray_New = - _AsyncArray_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _AsyncArray_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('AsyncArray_New'); + late final _AsyncArray_New = _AsyncArray_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); void BFMatcher_Close( BFMatcherPtr b, @@ -1521,8 +1721,10 @@ class CvNative { } late final _BFMatcher_ClosePtr = - _lookup>('BFMatcher_Close'); - late final _BFMatcher_Close = _BFMatcher_ClosePtr.asFunction(); + _lookup>( + 'BFMatcher_Close'); + late final _BFMatcher_Close = + _BFMatcher_ClosePtr.asFunction(); ffi.Pointer BFMatcher_Create( ffi.Pointer rval, @@ -1532,10 +1734,12 @@ class CvNative { ); } - late final _BFMatcher_CreatePtr = - _lookup Function(ffi.Pointer)>>('BFMatcher_Create'); - late final _BFMatcher_Create = - _BFMatcher_CreatePtr.asFunction Function(ffi.Pointer)>(); + late final _BFMatcher_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('BFMatcher_Create'); + late final _BFMatcher_Create = _BFMatcher_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer BFMatcher_CreateWithParams( int normType, @@ -1549,11 +1753,13 @@ class CvNative { ); } - late final _BFMatcher_CreateWithParamsPtr = - _lookup Function(ffi.Int, ffi.Bool, ffi.Pointer)>>( - 'BFMatcher_CreateWithParams'); - late final _BFMatcher_CreateWithParams = _BFMatcher_CreateWithParamsPtr.asFunction< - ffi.Pointer Function(int, bool, ffi.Pointer)>(); + late final _BFMatcher_CreateWithParamsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Bool, + ffi.Pointer)>>('BFMatcher_CreateWithParams'); + late final _BFMatcher_CreateWithParams = + _BFMatcher_CreateWithParamsPtr.asFunction< + ffi.Pointer Function(int, bool, ffi.Pointer)>(); ffi.Pointer BFMatcher_KnnMatch( BFMatcher b, @@ -1573,10 +1779,11 @@ class CvNative { late final _BFMatcher_KnnMatchPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - BFMatcher, Mat, Mat, ffi.Int, ffi.Pointer)>>('BFMatcher_KnnMatch'); + ffi.Pointer Function(BFMatcher, Mat, Mat, ffi.Int, + ffi.Pointer)>>('BFMatcher_KnnMatch'); late final _BFMatcher_KnnMatch = _BFMatcher_KnnMatchPtr.asFunction< - ffi.Pointer Function(BFMatcher, Mat, Mat, int, ffi.Pointer)>(); + ffi.Pointer Function( + BFMatcher, Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer BFMatcher_Match( BFMatcher b, @@ -1593,10 +1800,12 @@ class CvNative { } late final _BFMatcher_MatchPtr = _lookup< - ffi.NativeFunction Function(BFMatcher, Mat, Mat, ffi.Pointer)>>( - 'BFMatcher_Match'); + ffi.NativeFunction< + ffi.Pointer Function( + BFMatcher, Mat, Mat, ffi.Pointer)>>('BFMatcher_Match'); late final _BFMatcher_Match = _BFMatcher_MatchPtr.asFunction< - ffi.Pointer Function(BFMatcher, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + BFMatcher, Mat, Mat, ffi.Pointer)>(); void BRISK_Close( BRISKPtr b, @@ -1606,8 +1815,10 @@ class CvNative { ); } - late final _BRISK_ClosePtr = _lookup>('BRISK_Close'); - late final _BRISK_Close = _BRISK_ClosePtr.asFunction(); + late final _BRISK_ClosePtr = + _lookup>('BRISK_Close'); + late final _BRISK_Close = + _BRISK_ClosePtr.asFunction(); ffi.Pointer BRISK_Create( ffi.Pointer rval, @@ -1617,10 +1828,11 @@ class CvNative { ); } - late final _BRISK_CreatePtr = - _lookup Function(ffi.Pointer)>>('BRISK_Create'); - late final _BRISK_Create = - _BRISK_CreatePtr.asFunction Function(ffi.Pointer)>(); + late final _BRISK_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('BRISK_Create'); + late final _BRISK_Create = _BRISK_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer BRISK_Detect( BRISK b, @@ -1634,11 +1846,12 @@ class CvNative { ); } - late final _BRISK_DetectPtr = - _lookup Function(BRISK, Mat, ffi.Pointer)>>( - 'BRISK_Detect'); - late final _BRISK_Detect = - _BRISK_DetectPtr.asFunction Function(BRISK, Mat, ffi.Pointer)>(); + late final _BRISK_DetectPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + BRISK, Mat, ffi.Pointer)>>('BRISK_Detect'); + late final _BRISK_Detect = _BRISK_DetectPtr.asFunction< + ffi.Pointer Function(BRISK, Mat, ffi.Pointer)>(); ffi.Pointer BRISK_DetectAndCompute( BRISK b, @@ -1657,10 +1870,12 @@ class CvNative { } late final _BRISK_DetectAndComputePtr = _lookup< - ffi.NativeFunction Function(BRISK, Mat, Mat, Mat, ffi.Pointer)>>( - 'BRISK_DetectAndCompute'); + ffi.NativeFunction< + ffi.Pointer Function(BRISK, Mat, Mat, Mat, + ffi.Pointer)>>('BRISK_DetectAndCompute'); late final _BRISK_DetectAndCompute = _BRISK_DetectAndComputePtr.asFunction< - ffi.Pointer Function(BRISK, Mat, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + BRISK, Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer BackgroundSubtractorKNN_Apply( BackgroundSubtractorKNN self, @@ -1674,11 +1889,13 @@ class CvNative { ); } - late final _BackgroundSubtractorKNN_ApplyPtr = - _lookup Function(BackgroundSubtractorKNN, Mat, Mat)>>( - 'BackgroundSubtractorKNN_Apply'); - late final _BackgroundSubtractorKNN_Apply = _BackgroundSubtractorKNN_ApplyPtr.asFunction< - ffi.Pointer Function(BackgroundSubtractorKNN, Mat, Mat)>(); + late final _BackgroundSubtractorKNN_ApplyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(BackgroundSubtractorKNN, Mat, + Mat)>>('BackgroundSubtractorKNN_Apply'); + late final _BackgroundSubtractorKNN_Apply = + _BackgroundSubtractorKNN_ApplyPtr.asFunction< + ffi.Pointer Function(BackgroundSubtractorKNN, Mat, Mat)>(); void BackgroundSubtractorKNN_Close( BackgroundSubtractorKNNPtr self, @@ -1688,11 +1905,11 @@ class CvNative { ); } - late final _BackgroundSubtractorKNN_ClosePtr = - _lookup>( - 'BackgroundSubtractorKNN_Close'); - late final _BackgroundSubtractorKNN_Close = - _BackgroundSubtractorKNN_ClosePtr.asFunction(); + late final _BackgroundSubtractorKNN_ClosePtr = _lookup< + ffi.NativeFunction>( + 'BackgroundSubtractorKNN_Close'); + late final _BackgroundSubtractorKNN_Close = _BackgroundSubtractorKNN_ClosePtr + .asFunction(); ffi.Pointer BackgroundSubtractorKNN_Create( ffi.Pointer rval, @@ -1702,11 +1919,15 @@ class CvNative { ); } - late final _BackgroundSubtractorKNN_CreatePtr = - _lookup Function(ffi.Pointer)>>( - 'BackgroundSubtractorKNN_Create'); - late final _BackgroundSubtractorKNN_Create = _BackgroundSubtractorKNN_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _BackgroundSubtractorKNN_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>( + 'BackgroundSubtractorKNN_Create'); + late final _BackgroundSubtractorKNN_Create = + _BackgroundSubtractorKNN_CreatePtr.asFunction< + ffi.Pointer Function( + ffi.Pointer)>(); ffi.Pointer BackgroundSubtractorKNN_CreateWithParams( int history, @@ -1723,11 +1944,14 @@ class CvNative { } late final _BackgroundSubtractorKNN_CreateWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Double, ffi.Bool, - ffi.Pointer)>>('BackgroundSubtractorKNN_CreateWithParams'); - late final _BackgroundSubtractorKNN_CreateWithParams = _BackgroundSubtractorKNN_CreateWithParamsPtr - .asFunction Function(int, double, bool, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Double, ffi.Bool, + ffi.Pointer)>>( + 'BackgroundSubtractorKNN_CreateWithParams'); + late final _BackgroundSubtractorKNN_CreateWithParams = + _BackgroundSubtractorKNN_CreateWithParamsPtr.asFunction< + ffi.Pointer Function( + int, double, bool, ffi.Pointer)>(); ffi.Pointer BackgroundSubtractorMOG2_Apply( BackgroundSubtractorMOG2 self, @@ -1741,11 +1965,13 @@ class CvNative { ); } - late final _BackgroundSubtractorMOG2_ApplyPtr = - _lookup Function(BackgroundSubtractorMOG2, Mat, Mat)>>( - 'BackgroundSubtractorMOG2_Apply'); - late final _BackgroundSubtractorMOG2_Apply = _BackgroundSubtractorMOG2_ApplyPtr.asFunction< - ffi.Pointer Function(BackgroundSubtractorMOG2, Mat, Mat)>(); + late final _BackgroundSubtractorMOG2_ApplyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(BackgroundSubtractorMOG2, Mat, + Mat)>>('BackgroundSubtractorMOG2_Apply'); + late final _BackgroundSubtractorMOG2_Apply = + _BackgroundSubtractorMOG2_ApplyPtr.asFunction< + ffi.Pointer Function(BackgroundSubtractorMOG2, Mat, Mat)>(); void BackgroundSubtractorMOG2_Close( BackgroundSubtractorMOG2Ptr self, @@ -1755,11 +1981,12 @@ class CvNative { ); } - late final _BackgroundSubtractorMOG2_ClosePtr = - _lookup>( - 'BackgroundSubtractorMOG2_Close'); + late final _BackgroundSubtractorMOG2_ClosePtr = _lookup< + ffi.NativeFunction>( + 'BackgroundSubtractorMOG2_Close'); late final _BackgroundSubtractorMOG2_Close = - _BackgroundSubtractorMOG2_ClosePtr.asFunction(); + _BackgroundSubtractorMOG2_ClosePtr.asFunction< + void Function(BackgroundSubtractorMOG2Ptr)>(); ffi.Pointer BackgroundSubtractorMOG2_Create( ffi.Pointer rval, @@ -1769,11 +1996,15 @@ class CvNative { ); } - late final _BackgroundSubtractorMOG2_CreatePtr = - _lookup Function(ffi.Pointer)>>( - 'BackgroundSubtractorMOG2_Create'); - late final _BackgroundSubtractorMOG2_Create = _BackgroundSubtractorMOG2_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _BackgroundSubtractorMOG2_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>( + 'BackgroundSubtractorMOG2_Create'); + late final _BackgroundSubtractorMOG2_Create = + _BackgroundSubtractorMOG2_CreatePtr.asFunction< + ffi.Pointer Function( + ffi.Pointer)>(); ffi.Pointer BackgroundSubtractorMOG2_CreateWithParams( int history, @@ -1790,11 +2021,14 @@ class CvNative { } late final _BackgroundSubtractorMOG2_CreateWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Double, ffi.Bool, - ffi.Pointer)>>('BackgroundSubtractorMOG2_CreateWithParams'); - late final _BackgroundSubtractorMOG2_CreateWithParams = _BackgroundSubtractorMOG2_CreateWithParamsPtr - .asFunction Function(int, double, bool, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Double, ffi.Bool, + ffi.Pointer)>>( + 'BackgroundSubtractorMOG2_CreateWithParams'); + late final _BackgroundSubtractorMOG2_CreateWithParams = + _BackgroundSubtractorMOG2_CreateWithParamsPtr.asFunction< + ffi.Pointer Function( + int, double, bool, ffi.Pointer)>(); ffi.Pointer BilateralFilter( Mat src, @@ -1812,11 +2046,12 @@ class CvNative { ); } - late final _BilateralFilterPtr = - _lookup Function(Mat, Mat, ffi.Int, ffi.Double, ffi.Double)>>( - 'BilateralFilter'); - late final _BilateralFilter = - _BilateralFilterPtr.asFunction Function(Mat, Mat, int, double, double)>(); + late final _BilateralFilterPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Double, ffi.Double)>>('BilateralFilter'); + late final _BilateralFilter = _BilateralFilterPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, double, double)>(); void BlockMeanHash_Close( BlockMeanHashPtr self, @@ -1827,8 +2062,10 @@ class CvNative { } late final _BlockMeanHash_ClosePtr = - _lookup>('BlockMeanHash_Close'); - late final _BlockMeanHash_Close = _BlockMeanHash_ClosePtr.asFunction(); + _lookup>( + 'BlockMeanHash_Close'); + late final _BlockMeanHash_Close = + _BlockMeanHash_ClosePtr.asFunction(); ffi.Pointer BlockMeanHash_Compare( BlockMeanHash self, @@ -1845,11 +2082,12 @@ class CvNative { } late final _BlockMeanHash_ComparePtr = _lookup< - ffi - .NativeFunction Function(BlockMeanHash, Mat, Mat, ffi.Pointer)>>( - 'BlockMeanHash_Compare'); + ffi.NativeFunction< + ffi.Pointer Function(BlockMeanHash, Mat, Mat, + ffi.Pointer)>>('BlockMeanHash_Compare'); late final _BlockMeanHash_Compare = _BlockMeanHash_ComparePtr.asFunction< - ffi.Pointer Function(BlockMeanHash, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + BlockMeanHash, Mat, Mat, ffi.Pointer)>(); ffi.Pointer BlockMeanHash_Compute( BlockMeanHash self, @@ -1863,11 +2101,12 @@ class CvNative { ); } - late final _BlockMeanHash_ComputePtr = - _lookup Function(BlockMeanHash, Mat, Mat)>>( - 'BlockMeanHash_Compute'); - late final _BlockMeanHash_Compute = - _BlockMeanHash_ComputePtr.asFunction Function(BlockMeanHash, Mat, Mat)>(); + late final _BlockMeanHash_ComputePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + BlockMeanHash, Mat, Mat)>>('BlockMeanHash_Compute'); + late final _BlockMeanHash_Compute = _BlockMeanHash_ComputePtr.asFunction< + ffi.Pointer Function(BlockMeanHash, Mat, Mat)>(); ffi.Pointer BlockMeanHash_Create( int mode, @@ -1879,11 +2118,12 @@ class CvNative { ); } - late final _BlockMeanHash_CreatePtr = - _lookup Function(ffi.Int, ffi.Pointer)>>( - 'BlockMeanHash_Create'); - late final _BlockMeanHash_Create = - _BlockMeanHash_CreatePtr.asFunction Function(int, ffi.Pointer)>(); + late final _BlockMeanHash_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int, ffi.Pointer)>>('BlockMeanHash_Create'); + late final _BlockMeanHash_Create = _BlockMeanHash_CreatePtr.asFunction< + ffi.Pointer Function(int, ffi.Pointer)>(); ffi.Pointer BlockMeanHash_GetMean( BlockMeanHash self, @@ -1899,11 +2139,13 @@ class CvNative { late final _BlockMeanHash_GetMeanPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(BlockMeanHash, ffi.Pointer>, + ffi.Pointer Function( + BlockMeanHash, + ffi.Pointer>, ffi.Pointer)>>('BlockMeanHash_GetMean'); late final _BlockMeanHash_GetMean = _BlockMeanHash_GetMeanPtr.asFunction< - ffi.Pointer Function( - BlockMeanHash, ffi.Pointer>, ffi.Pointer)>(); + ffi.Pointer Function(BlockMeanHash, + ffi.Pointer>, ffi.Pointer)>(); ffi.Pointer BlockMeanHash_SetMode( BlockMeanHash self, @@ -1915,11 +2157,12 @@ class CvNative { ); } - late final _BlockMeanHash_SetModePtr = - _lookup Function(BlockMeanHash, ffi.Int)>>( - 'BlockMeanHash_SetMode'); - late final _BlockMeanHash_SetMode = - _BlockMeanHash_SetModePtr.asFunction Function(BlockMeanHash, int)>(); + late final _BlockMeanHash_SetModePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + BlockMeanHash, ffi.Int)>>('BlockMeanHash_SetMode'); + late final _BlockMeanHash_SetMode = _BlockMeanHash_SetModePtr.asFunction< + ffi.Pointer Function(BlockMeanHash, int)>(); ffi.Pointer Blur( Mat src, @@ -1933,8 +2176,11 @@ class CvNative { ); } - late final _BlurPtr = _lookup Function(Mat, Mat, Size)>>('Blur'); - late final _Blur = _BlurPtr.asFunction Function(Mat, Mat, Size)>(); + late final _BlurPtr = _lookup< + ffi + .NativeFunction Function(Mat, Mat, Size)>>('Blur'); + late final _Blur = + _BlurPtr.asFunction Function(Mat, Mat, Size)>(); ffi.Pointer BoundingRect( VecPoint pts, @@ -1946,11 +2192,12 @@ class CvNative { ); } - late final _BoundingRectPtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'BoundingRect'); - late final _BoundingRect = - _BoundingRectPtr.asFunction Function(VecPoint, ffi.Pointer)>(); + late final _BoundingRectPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('BoundingRect'); + late final _BoundingRect = _BoundingRectPtr.asFunction< + ffi.Pointer Function(VecPoint, ffi.Pointer)>(); ffi.Pointer BoxFilter( Mat src, @@ -1966,9 +2213,12 @@ class CvNative { ); } - late final _BoxFilterPtr = - _lookup Function(Mat, Mat, ffi.Int, Size)>>('BoxFilter'); - late final _BoxFilter = _BoxFilterPtr.asFunction Function(Mat, Mat, int, Size)>(); + late final _BoxFilterPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Int, Size)>>('BoxFilter'); + late final _BoxFilter = _BoxFilterPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, Size)>(); ffi.Pointer BoxPoints( RotatedRect rect, @@ -1980,11 +2230,12 @@ class CvNative { ); } - late final _BoxPointsPtr = - _lookup Function(RotatedRect, ffi.Pointer)>>( - 'BoxPoints'); - late final _BoxPoints = - _BoxPointsPtr.asFunction Function(RotatedRect, ffi.Pointer)>(); + late final _BoxPointsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + RotatedRect, ffi.Pointer)>>('BoxPoints'); + late final _BoxPoints = _BoxPointsPtr.asFunction< + ffi.Pointer Function(RotatedRect, ffi.Pointer)>(); ffi.Pointer CLAHE_Apply( CLAHE c, @@ -1998,9 +2249,11 @@ class CvNative { ); } - late final _CLAHE_ApplyPtr = - _lookup Function(CLAHE, Mat, Mat)>>('CLAHE_Apply'); - late final _CLAHE_Apply = _CLAHE_ApplyPtr.asFunction Function(CLAHE, Mat, Mat)>(); + late final _CLAHE_ApplyPtr = _lookup< + ffi.NativeFunction Function(CLAHE, Mat, Mat)>>( + 'CLAHE_Apply'); + late final _CLAHE_Apply = _CLAHE_ApplyPtr.asFunction< + ffi.Pointer Function(CLAHE, Mat, Mat)>(); void CLAHE_Close( CLAHEPtr c, @@ -2010,8 +2263,10 @@ class CvNative { ); } - late final _CLAHE_ClosePtr = _lookup>('CLAHE_Close'); - late final _CLAHE_Close = _CLAHE_ClosePtr.asFunction(); + late final _CLAHE_ClosePtr = + _lookup>('CLAHE_Close'); + late final _CLAHE_Close = + _CLAHE_ClosePtr.asFunction(); ffi.Pointer CLAHE_CollectGarbage( CLAHE c, @@ -2022,9 +2277,10 @@ class CvNative { } late final _CLAHE_CollectGarbagePtr = - _lookup Function(CLAHE)>>('CLAHE_CollectGarbage'); - late final _CLAHE_CollectGarbage = - _CLAHE_CollectGarbagePtr.asFunction Function(CLAHE)>(); + _lookup Function(CLAHE)>>( + 'CLAHE_CollectGarbage'); + late final _CLAHE_CollectGarbage = _CLAHE_CollectGarbagePtr.asFunction< + ffi.Pointer Function(CLAHE)>(); ffi.Pointer CLAHE_Create( ffi.Pointer rval, @@ -2034,10 +2290,11 @@ class CvNative { ); } - late final _CLAHE_CreatePtr = - _lookup Function(ffi.Pointer)>>('CLAHE_Create'); - late final _CLAHE_Create = - _CLAHE_CreatePtr.asFunction Function(ffi.Pointer)>(); + late final _CLAHE_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('CLAHE_Create'); + late final _CLAHE_Create = _CLAHE_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer CLAHE_CreateWithParams( double clipLimit, @@ -2051,9 +2308,10 @@ class CvNative { ); } - late final _CLAHE_CreateWithParamsPtr = - _lookup Function(ffi.Double, Size, ffi.Pointer)>>( - 'CLAHE_CreateWithParams'); + late final _CLAHE_CreateWithParamsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Double, Size, ffi.Pointer)>>('CLAHE_CreateWithParams'); late final _CLAHE_CreateWithParams = _CLAHE_CreateWithParamsPtr.asFunction< ffi.Pointer Function(double, Size, ffi.Pointer)>(); @@ -2067,11 +2325,12 @@ class CvNative { ); } - late final _CLAHE_GetClipLimitPtr = - _lookup Function(CLAHE, ffi.Pointer)>>( - 'CLAHE_GetClipLimit'); - late final _CLAHE_GetClipLimit = - _CLAHE_GetClipLimitPtr.asFunction Function(CLAHE, ffi.Pointer)>(); + late final _CLAHE_GetClipLimitPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + CLAHE, ffi.Pointer)>>('CLAHE_GetClipLimit'); + late final _CLAHE_GetClipLimit = _CLAHE_GetClipLimitPtr.asFunction< + ffi.Pointer Function(CLAHE, ffi.Pointer)>(); ffi.Pointer CLAHE_GetTilesGridSize( CLAHE c, @@ -2083,11 +2342,12 @@ class CvNative { ); } - late final _CLAHE_GetTilesGridSizePtr = - _lookup Function(CLAHE, ffi.Pointer)>>( - 'CLAHE_GetTilesGridSize'); - late final _CLAHE_GetTilesGridSize = - _CLAHE_GetTilesGridSizePtr.asFunction Function(CLAHE, ffi.Pointer)>(); + late final _CLAHE_GetTilesGridSizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + CLAHE, ffi.Pointer)>>('CLAHE_GetTilesGridSize'); + late final _CLAHE_GetTilesGridSize = _CLAHE_GetTilesGridSizePtr.asFunction< + ffi.Pointer Function(CLAHE, ffi.Pointer)>(); ffi.Pointer CLAHE_SetClipLimit( CLAHE c, @@ -2099,10 +2359,12 @@ class CvNative { ); } - late final _CLAHE_SetClipLimitPtr = - _lookup Function(CLAHE, ffi.Double)>>('CLAHE_SetClipLimit'); - late final _CLAHE_SetClipLimit = - _CLAHE_SetClipLimitPtr.asFunction Function(CLAHE, double)>(); + late final _CLAHE_SetClipLimitPtr = _lookup< + ffi + .NativeFunction Function(CLAHE, ffi.Double)>>( + 'CLAHE_SetClipLimit'); + late final _CLAHE_SetClipLimit = _CLAHE_SetClipLimitPtr.asFunction< + ffi.Pointer Function(CLAHE, double)>(); ffi.Pointer CLAHE_SetTilesGridSize( CLAHE c, @@ -2115,9 +2377,10 @@ class CvNative { } late final _CLAHE_SetTilesGridSizePtr = - _lookup Function(CLAHE, Size)>>('CLAHE_SetTilesGridSize'); - late final _CLAHE_SetTilesGridSize = - _CLAHE_SetTilesGridSizePtr.asFunction Function(CLAHE, Size)>(); + _lookup Function(CLAHE, Size)>>( + 'CLAHE_SetTilesGridSize'); + late final _CLAHE_SetTilesGridSize = _CLAHE_SetTilesGridSizePtr.asFunction< + ffi.Pointer Function(CLAHE, Size)>(); ffi.Pointer CalcBackProject( VecMat mats, @@ -2138,10 +2401,12 @@ class CvNative { } late final _CalcBackProjectPtr = _lookup< - ffi.NativeFunction Function(VecMat, VecInt, Mat, Mat, VecFloat, ffi.Bool)>>( - 'CalcBackProject'); + ffi.NativeFunction< + ffi.Pointer Function(VecMat, VecInt, Mat, Mat, VecFloat, + ffi.Bool)>>('CalcBackProject'); late final _CalcBackProject = _CalcBackProjectPtr.asFunction< - ffi.Pointer Function(VecMat, VecInt, Mat, Mat, VecFloat, bool)>(); + ffi.Pointer Function( + VecMat, VecInt, Mat, Mat, VecFloat, bool)>(); ffi.Pointer CalcHist( VecMat mats, @@ -2165,9 +2430,11 @@ class CvNative { late final _CalcHistPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecMat, VecInt, Mat, Mat, VecInt, VecFloat, ffi.Bool)>>('CalcHist'); + ffi.Pointer Function(VecMat, VecInt, Mat, Mat, VecInt, + VecFloat, ffi.Bool)>>('CalcHist'); late final _CalcHist = _CalcHistPtr.asFunction< - ffi.Pointer Function(VecMat, VecInt, Mat, Mat, VecInt, VecFloat, bool)>(); + ffi.Pointer Function( + VecMat, VecInt, Mat, Mat, VecInt, VecFloat, bool)>(); ffi.Pointer CalcOpticalFlowFarneback( Mat prevImg, @@ -2197,10 +2464,21 @@ class CvNative { late final _CalcOpticalFlowFarnebackPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, ffi.Double, ffi.Int, ffi.Int, ffi.Int, ffi.Int, - ffi.Double, ffi.Int)>>('CalcOpticalFlowFarneback'); - late final _CalcOpticalFlowFarneback = _CalcOpticalFlowFarnebackPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, double, int, int, int, int, double, int)>(); + ffi.Pointer Function( + Mat, + Mat, + Mat, + ffi.Double, + ffi.Int, + ffi.Int, + ffi.Int, + ffi.Int, + ffi.Double, + ffi.Int)>>('CalcOpticalFlowFarneback'); + late final _CalcOpticalFlowFarneback = + _CalcOpticalFlowFarnebackPtr.asFunction< + ffi.Pointer Function( + Mat, Mat, Mat, double, int, int, int, int, double, int)>(); ffi.Pointer CalcOpticalFlowPyrLK( Mat prevImg, @@ -2222,10 +2500,11 @@ class CvNative { late final _CalcOpticalFlowPyrLKPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, VecPoint2f, VecPoint2f, VecUChar, VecFloat)>>('CalcOpticalFlowPyrLK'); + ffi.Pointer Function(Mat, Mat, VecPoint2f, VecPoint2f, + VecUChar, VecFloat)>>('CalcOpticalFlowPyrLK'); late final _CalcOpticalFlowPyrLK = _CalcOpticalFlowPyrLKPtr.asFunction< - ffi.Pointer Function(Mat, Mat, VecPoint2f, VecPoint2f, VecUChar, VecFloat)>(); + ffi.Pointer Function( + Mat, Mat, VecPoint2f, VecPoint2f, VecUChar, VecFloat)>(); ffi.Pointer CalcOpticalFlowPyrLKWithParams( Mat prevImg, @@ -2269,9 +2548,20 @@ class CvNative { TermCriteria, ffi.Int, ffi.Double)>>('CalcOpticalFlowPyrLKWithParams'); - late final _CalcOpticalFlowPyrLKWithParams = _CalcOpticalFlowPyrLKWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, VecPoint2f, VecPoint2f, ffi.Pointer, - ffi.Pointer, Size, int, TermCriteria, int, double)>(); + late final _CalcOpticalFlowPyrLKWithParams = + _CalcOpticalFlowPyrLKWithParamsPtr.asFunction< + ffi.Pointer Function( + Mat, + Mat, + VecPoint2f, + VecPoint2f, + ffi.Pointer, + ffi.Pointer, + Size, + int, + TermCriteria, + int, + double)>(); ffi.Pointer CalibrateCamera( VecVecPoint3f objectPoints, @@ -2301,11 +2591,20 @@ class CvNative { late final _CalibrateCameraPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecVecPoint3f, VecVecPoint2f, Size, Mat, Mat, Mat, Mat, ffi.Int, - TermCriteria, ffi.Pointer)>>('CalibrateCamera'); + ffi.Pointer Function( + VecVecPoint3f, + VecVecPoint2f, + Size, + Mat, + Mat, + Mat, + Mat, + ffi.Int, + TermCriteria, + ffi.Pointer)>>('CalibrateCamera'); late final _CalibrateCamera = _CalibrateCameraPtr.asFunction< - ffi.Pointer Function(VecVecPoint3f, VecVecPoint2f, Size, Mat, Mat, Mat, Mat, int, - TermCriteria, ffi.Pointer)>(); + ffi.Pointer Function(VecVecPoint3f, VecVecPoint2f, Size, Mat, + Mat, Mat, Mat, int, TermCriteria, ffi.Pointer)>(); ffi.Pointer Canny( Mat src, @@ -2327,9 +2626,10 @@ class CvNative { late final _CannyPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Double, ffi.Double, ffi.Int, ffi.Bool)>>('Canny'); - late final _Canny = - _CannyPtr.asFunction Function(Mat, Mat, double, double, int, bool)>(); + ffi.Pointer Function( + Mat, Mat, ffi.Double, ffi.Double, ffi.Int, ffi.Bool)>>('Canny'); + late final _Canny = _CannyPtr.asFunction< + ffi.Pointer Function(Mat, Mat, double, double, int, bool)>(); void CascadeClassifier_Close( CascadeClassifierPtr self, @@ -2340,9 +2640,10 @@ class CvNative { } late final _CascadeClassifier_ClosePtr = - _lookup>('CascadeClassifier_Close'); - late final _CascadeClassifier_Close = - _CascadeClassifier_ClosePtr.asFunction(); + _lookup>( + 'CascadeClassifier_Close'); + late final _CascadeClassifier_Close = _CascadeClassifier_ClosePtr.asFunction< + void Function(CascadeClassifierPtr)>(); ffi.Pointer CascadeClassifier_DetectMultiScale( CascadeClassifier self, @@ -2357,10 +2658,13 @@ class CvNative { } late final _CascadeClassifier_DetectMultiScalePtr = _lookup< - ffi.NativeFunction Function(CascadeClassifier, Mat, ffi.Pointer)>>( - 'CascadeClassifier_DetectMultiScale'); - late final _CascadeClassifier_DetectMultiScale = _CascadeClassifier_DetectMultiScalePtr.asFunction< - ffi.Pointer Function(CascadeClassifier, Mat, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, Mat, + ffi.Pointer)>>('CascadeClassifier_DetectMultiScale'); + late final _CascadeClassifier_DetectMultiScale = + _CascadeClassifier_DetectMultiScalePtr.asFunction< + ffi.Pointer Function( + CascadeClassifier, Mat, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_DetectMultiScale2( CascadeClassifier self, @@ -2388,11 +2692,28 @@ class CvNative { late final _CascadeClassifier_DetectMultiScale2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, Mat, ffi.Pointer, ffi.Pointer, - ffi.Double, ffi.Int, ffi.Int, Size, Size)>>('CascadeClassifier_DetectMultiScale2'); - late final _CascadeClassifier_DetectMultiScale2 = _CascadeClassifier_DetectMultiScale2Ptr.asFunction< - ffi.Pointer Function( - CascadeClassifier, Mat, ffi.Pointer, ffi.Pointer, double, int, int, Size, Size)>(); + ffi.Pointer Function( + CascadeClassifier, + Mat, + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Int, + ffi.Int, + Size, + Size)>>('CascadeClassifier_DetectMultiScale2'); + late final _CascadeClassifier_DetectMultiScale2 = + _CascadeClassifier_DetectMultiScale2Ptr.asFunction< + ffi.Pointer Function( + CascadeClassifier, + Mat, + ffi.Pointer, + ffi.Pointer, + double, + int, + int, + Size, + Size)>(); ffi.Pointer CascadeClassifier_DetectMultiScale2_Async( CascadeClassifier self, @@ -2418,12 +2739,19 @@ class CvNative { late final _CascadeClassifier_DetectMultiScale2_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, Mat, ffi.Double, ffi.Int, ffi.Int, Size, Size, + ffi.Pointer Function( + CascadeClassifier, + Mat, + ffi.Double, + ffi.Int, + ffi.Int, + Size, + Size, CvCallback_2)>>('CascadeClassifier_DetectMultiScale2_Async'); late final _CascadeClassifier_DetectMultiScale2_Async = _CascadeClassifier_DetectMultiScale2_AsyncPtr.asFunction< - ffi.Pointer Function( - CascadeClassifier, Mat, double, int, int, Size, Size, CvCallback_2)>(); + ffi.Pointer Function(CascadeClassifier, Mat, double, int, + int, Size, Size, CvCallback_2)>(); ffi.Pointer CascadeClassifier_DetectMultiScale3( CascadeClassifier self, @@ -2467,9 +2795,20 @@ class CvNative { Size, Size, ffi.Bool)>>('CascadeClassifier_DetectMultiScale3'); - late final _CascadeClassifier_DetectMultiScale3 = _CascadeClassifier_DetectMultiScale3Ptr.asFunction< - ffi.Pointer Function(CascadeClassifier, Mat, ffi.Pointer, ffi.Pointer, - ffi.Pointer, double, int, int, Size, Size, bool)>(); + late final _CascadeClassifier_DetectMultiScale3 = + _CascadeClassifier_DetectMultiScale3Ptr.asFunction< + ffi.Pointer Function( + CascadeClassifier, + Mat, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + double, + int, + int, + Size, + Size, + bool)>(); ffi.Pointer CascadeClassifier_DetectMultiScale3_Async( CascadeClassifier self, @@ -2497,12 +2836,20 @@ class CvNative { late final _CascadeClassifier_DetectMultiScale3_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, Mat, ffi.Double, ffi.Int, ffi.Int, Size, Size, - ffi.Bool, CvCallback_3)>>('CascadeClassifier_DetectMultiScale3_Async'); + ffi.Pointer Function( + CascadeClassifier, + Mat, + ffi.Double, + ffi.Int, + ffi.Int, + Size, + Size, + ffi.Bool, + CvCallback_3)>>('CascadeClassifier_DetectMultiScale3_Async'); late final _CascadeClassifier_DetectMultiScale3_Async = _CascadeClassifier_DetectMultiScale3_AsyncPtr.asFunction< - ffi.Pointer Function( - CascadeClassifier, Mat, double, int, int, Size, Size, bool, CvCallback_3)>(); + ffi.Pointer Function(CascadeClassifier, Mat, double, int, + int, Size, Size, bool, CvCallback_3)>(); ffi.Pointer CascadeClassifier_DetectMultiScaleWithParams( CascadeClassifier self, @@ -2528,12 +2875,19 @@ class CvNative { late final _CascadeClassifier_DetectMultiScaleWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, Mat, ffi.Pointer, ffi.Double, ffi.Int, - ffi.Int, Size, Size)>>('CascadeClassifier_DetectMultiScaleWithParams'); + ffi.Pointer Function( + CascadeClassifier, + Mat, + ffi.Pointer, + ffi.Double, + ffi.Int, + ffi.Int, + Size, + Size)>>('CascadeClassifier_DetectMultiScaleWithParams'); late final _CascadeClassifier_DetectMultiScaleWithParams = _CascadeClassifier_DetectMultiScaleWithParamsPtr.asFunction< - ffi.Pointer Function( - CascadeClassifier, Mat, ffi.Pointer, double, int, int, Size, Size)>(); + ffi.Pointer Function(CascadeClassifier, Mat, + ffi.Pointer, double, int, int, Size, Size)>(); ffi.Pointer CascadeClassifier_DetectMultiScaleWithParams_Async( CascadeClassifier self, @@ -2558,13 +2912,14 @@ class CvNative { } late final _CascadeClassifier_DetectMultiScaleWithParams_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CascadeClassifier, Mat, ffi.Double, ffi.Int, ffi.Int, Size, Size, - CvCallback_1)>>('CascadeClassifier_DetectMultiScaleWithParams_Async'); + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, Mat, ffi.Double, + ffi.Int, ffi.Int, Size, Size, CvCallback_1)>>( + 'CascadeClassifier_DetectMultiScaleWithParams_Async'); late final _CascadeClassifier_DetectMultiScaleWithParams_Async = _CascadeClassifier_DetectMultiScaleWithParams_AsyncPtr.asFunction< - ffi.Pointer Function( - CascadeClassifier, Mat, double, int, int, Size, Size, CvCallback_1)>(); + ffi.Pointer Function(CascadeClassifier, Mat, double, int, + int, Size, Size, CvCallback_1)>(); ffi.Pointer CascadeClassifier_DetectMultiScale_Async( CascadeClassifier self, @@ -2578,11 +2933,14 @@ class CvNative { ); } - late final _CascadeClassifier_DetectMultiScale_AsyncPtr = - _lookup Function(CascadeClassifier, Mat, CvCallback_1)>>( - 'CascadeClassifier_DetectMultiScale_Async'); - late final _CascadeClassifier_DetectMultiScale_Async = _CascadeClassifier_DetectMultiScale_AsyncPtr - .asFunction Function(CascadeClassifier, Mat, CvCallback_1)>(); + late final _CascadeClassifier_DetectMultiScale_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, Mat, + CvCallback_1)>>('CascadeClassifier_DetectMultiScale_Async'); + late final _CascadeClassifier_DetectMultiScale_Async = + _CascadeClassifier_DetectMultiScale_AsyncPtr.asFunction< + ffi.Pointer Function( + CascadeClassifier, Mat, CvCallback_1)>(); ffi.Pointer CascadeClassifier_Empty( CascadeClassifier self, @@ -2594,11 +2952,13 @@ class CvNative { ); } - late final _CascadeClassifier_EmptyPtr = - _lookup Function(CascadeClassifier, ffi.Pointer)>>( - 'CascadeClassifier_Empty'); + late final _CascadeClassifier_EmptyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, + ffi.Pointer)>>('CascadeClassifier_Empty'); late final _CascadeClassifier_Empty = _CascadeClassifier_EmptyPtr.asFunction< - ffi.Pointer Function(CascadeClassifier, ffi.Pointer)>(); + ffi.Pointer Function( + CascadeClassifier, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_Empty_Async( CascadeClassifier self, @@ -2610,11 +2970,13 @@ class CvNative { ); } - late final _CascadeClassifier_Empty_AsyncPtr = - _lookup Function(CascadeClassifier, CvCallback_1)>>( - 'CascadeClassifier_Empty_Async'); - late final _CascadeClassifier_Empty_Async = _CascadeClassifier_Empty_AsyncPtr.asFunction< - ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); + late final _CascadeClassifier_Empty_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, + CvCallback_1)>>('CascadeClassifier_Empty_Async'); + late final _CascadeClassifier_Empty_Async = + _CascadeClassifier_Empty_AsyncPtr.asFunction< + ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); ffi.Pointer CascadeClassifier_Load( CascadeClassifier self, @@ -2631,9 +2993,12 @@ class CvNative { late final _CascadeClassifier_LoadPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - CascadeClassifier, ffi.Pointer, ffi.Pointer)>>('CascadeClassifier_Load'); + CascadeClassifier, + ffi.Pointer, + ffi.Pointer)>>('CascadeClassifier_Load'); late final _CascadeClassifier_Load = _CascadeClassifier_LoadPtr.asFunction< - ffi.Pointer Function(CascadeClassifier, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + CascadeClassifier, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_Load_Async( CascadeClassifier self, @@ -2650,9 +3015,13 @@ class CvNative { late final _CascadeClassifier_Load_AsyncPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - CascadeClassifier, ffi.Pointer, CvCallback_1)>>('CascadeClassifier_Load_Async'); - late final _CascadeClassifier_Load_Async = _CascadeClassifier_Load_AsyncPtr.asFunction< - ffi.Pointer Function(CascadeClassifier, ffi.Pointer, CvCallback_1)>(); + CascadeClassifier, + ffi.Pointer, + CvCallback_1)>>('CascadeClassifier_Load_Async'); + late final _CascadeClassifier_Load_Async = + _CascadeClassifier_Load_AsyncPtr.asFunction< + ffi.Pointer Function( + CascadeClassifier, ffi.Pointer, CvCallback_1)>(); ffi.Pointer CascadeClassifier_New( ffi.Pointer rval, @@ -2662,12 +3031,13 @@ class CvNative { ); } - late final _CascadeClassifier_NewPtr = - _lookup Function(ffi.Pointer)>>( - 'CascadeClassifier_New'); - late final _CascadeClassifier_New = - _CascadeClassifier_NewPtr.asFunction Function(ffi.Pointer)>(); - + late final _CascadeClassifier_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('CascadeClassifier_New'); + late final _CascadeClassifier_New = _CascadeClassifier_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); + ffi.Pointer CascadeClassifier_NewFromFile( ffi.Pointer filename, ffi.Pointer rval, @@ -2679,11 +3049,14 @@ class CvNative { } late final _CascadeClassifier_NewFromFilePtr = _lookup< - ffi.NativeFunction< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>( + 'CascadeClassifier_NewFromFile'); + late final _CascadeClassifier_NewFromFile = + _CascadeClassifier_NewFromFilePtr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('CascadeClassifier_NewFromFile'); - late final _CascadeClassifier_NewFromFile = _CascadeClassifier_NewFromFilePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_NewFromFile_Async( ffi.Pointer filename, @@ -2695,11 +3068,14 @@ class CvNative { ); } - late final _CascadeClassifier_NewFromFile_AsyncPtr = - _lookup Function(ffi.Pointer, CvCallback_1)>>( - 'CascadeClassifier_NewFromFile_Async'); - late final _CascadeClassifier_NewFromFile_Async = _CascadeClassifier_NewFromFile_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, CvCallback_1)>(); + late final _CascadeClassifier_NewFromFile_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + CvCallback_1)>>('CascadeClassifier_NewFromFile_Async'); + late final _CascadeClassifier_NewFromFile_Async = + _CascadeClassifier_NewFromFile_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, CvCallback_1)>(); ffi.Pointer CascadeClassifier_New_Async( CvCallback_1 callback, @@ -2712,8 +3088,8 @@ class CvNative { late final _CascadeClassifier_New_AsyncPtr = _lookup Function(CvCallback_1)>>( 'CascadeClassifier_New_Async'); - late final _CascadeClassifier_New_Async = - _CascadeClassifier_New_AsyncPtr.asFunction Function(CvCallback_1)>(); + late final _CascadeClassifier_New_Async = _CascadeClassifier_New_AsyncPtr + .asFunction Function(CvCallback_1)>(); ffi.Pointer CascadeClassifier_getFeatureType( CascadeClassifier self, @@ -2725,11 +3101,14 @@ class CvNative { ); } - late final _CascadeClassifier_getFeatureTypePtr = - _lookup Function(CascadeClassifier, ffi.Pointer)>>( - 'CascadeClassifier_getFeatureType'); - late final _CascadeClassifier_getFeatureType = _CascadeClassifier_getFeatureTypePtr.asFunction< - ffi.Pointer Function(CascadeClassifier, ffi.Pointer)>(); + late final _CascadeClassifier_getFeatureTypePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, + ffi.Pointer)>>('CascadeClassifier_getFeatureType'); + late final _CascadeClassifier_getFeatureType = + _CascadeClassifier_getFeatureTypePtr.asFunction< + ffi.Pointer Function( + CascadeClassifier, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_getFeatureType_Async( CascadeClassifier self, @@ -2741,11 +3120,13 @@ class CvNative { ); } - late final _CascadeClassifier_getFeatureType_AsyncPtr = - _lookup Function(CascadeClassifier, CvCallback_1)>>( - 'CascadeClassifier_getFeatureType_Async'); - late final _CascadeClassifier_getFeatureType_Async = _CascadeClassifier_getFeatureType_AsyncPtr.asFunction< - ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); + late final _CascadeClassifier_getFeatureType_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, + CvCallback_1)>>('CascadeClassifier_getFeatureType_Async'); + late final _CascadeClassifier_getFeatureType_Async = + _CascadeClassifier_getFeatureType_AsyncPtr.asFunction< + ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); ffi.Pointer CascadeClassifier_getOriginalWindowSize( CascadeClassifier self, @@ -2757,11 +3138,14 @@ class CvNative { ); } - late final _CascadeClassifier_getOriginalWindowSizePtr = - _lookup Function(CascadeClassifier, ffi.Pointer)>>( - 'CascadeClassifier_getOriginalWindowSize'); - late final _CascadeClassifier_getOriginalWindowSize = _CascadeClassifier_getOriginalWindowSizePtr - .asFunction Function(CascadeClassifier, ffi.Pointer)>(); + late final _CascadeClassifier_getOriginalWindowSizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, + ffi.Pointer)>>('CascadeClassifier_getOriginalWindowSize'); + late final _CascadeClassifier_getOriginalWindowSize = + _CascadeClassifier_getOriginalWindowSizePtr.asFunction< + ffi.Pointer Function( + CascadeClassifier, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_getOriginalWindowSize_Async( CascadeClassifier self, @@ -2773,9 +3157,10 @@ class CvNative { ); } - late final _CascadeClassifier_getOriginalWindowSize_AsyncPtr = - _lookup Function(CascadeClassifier, CvCallback_1)>>( - 'CascadeClassifier_getOriginalWindowSize_Async'); + late final _CascadeClassifier_getOriginalWindowSize_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, + CvCallback_1)>>('CascadeClassifier_getOriginalWindowSize_Async'); late final _CascadeClassifier_getOriginalWindowSize_Async = _CascadeClassifier_getOriginalWindowSize_AsyncPtr.asFunction< ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); @@ -2790,11 +3175,14 @@ class CvNative { ); } - late final _CascadeClassifier_isOldFormatCascadePtr = - _lookup Function(CascadeClassifier, ffi.Pointer)>>( - 'CascadeClassifier_isOldFormatCascade'); - late final _CascadeClassifier_isOldFormatCascade = _CascadeClassifier_isOldFormatCascadePtr.asFunction< - ffi.Pointer Function(CascadeClassifier, ffi.Pointer)>(); + late final _CascadeClassifier_isOldFormatCascadePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, + ffi.Pointer)>>('CascadeClassifier_isOldFormatCascade'); + late final _CascadeClassifier_isOldFormatCascade = + _CascadeClassifier_isOldFormatCascadePtr.asFunction< + ffi.Pointer Function( + CascadeClassifier, ffi.Pointer)>(); ffi.Pointer CascadeClassifier_isOldFormatCascade_Async( CascadeClassifier self, @@ -2806,11 +3194,13 @@ class CvNative { ); } - late final _CascadeClassifier_isOldFormatCascade_AsyncPtr = - _lookup Function(CascadeClassifier, CvCallback_1)>>( - 'CascadeClassifier_isOldFormatCascade_Async'); - late final _CascadeClassifier_isOldFormatCascade_Async = _CascadeClassifier_isOldFormatCascade_AsyncPtr - .asFunction Function(CascadeClassifier, CvCallback_1)>(); + late final _CascadeClassifier_isOldFormatCascade_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CascadeClassifier, + CvCallback_1)>>('CascadeClassifier_isOldFormatCascade_Async'); + late final _CascadeClassifier_isOldFormatCascade_Async = + _CascadeClassifier_isOldFormatCascade_AsyncPtr.asFunction< + ffi.Pointer Function(CascadeClassifier, CvCallback_1)>(); ffi.Pointer Circle( Mat img, @@ -2828,10 +3218,12 @@ class CvNative { ); } - late final _CirclePtr = - _lookup Function(Mat, Point, ffi.Int, Scalar, ffi.Int)>>( - 'Circle'); - late final _Circle = _CirclePtr.asFunction Function(Mat, Point, int, Scalar, int)>(); + late final _CirclePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Point, ffi.Int, Scalar, ffi.Int)>>('Circle'); + late final _Circle = _CirclePtr.asFunction< + ffi.Pointer Function(Mat, Point, int, Scalar, int)>(); ffi.Pointer CircleWithParams( Mat img, @@ -2855,8 +3247,8 @@ class CvNative { late final _CircleWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Point, ffi.Int, Scalar, ffi.Int, ffi.Int, ffi.Int)>>('CircleWithParams'); + ffi.Pointer Function(Mat, Point, ffi.Int, Scalar, ffi.Int, + ffi.Int, ffi.Int)>>('CircleWithParams'); late final _CircleWithParams = _CircleWithParamsPtr.asFunction< ffi.Pointer Function(Mat, Point, int, Scalar, int, int, int)>(); @@ -2874,11 +3266,13 @@ class CvNative { ); } - late final _ClipLinePtr = - _lookup Function(Rect, Point, Point, ffi.Pointer)>>( - 'ClipLine'); - late final _ClipLine = - _ClipLinePtr.asFunction Function(Rect, Point, Point, ffi.Pointer)>(); + late final _ClipLinePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Rect, Point, Point, ffi.Pointer)>>('ClipLine'); + late final _ClipLine = _ClipLinePtr.asFunction< + ffi.Pointer Function( + Rect, Point, Point, ffi.Pointer)>(); ffi.Pointer ColorChange( Mat src, @@ -2899,10 +3293,11 @@ class CvNative { } late final _ColorChangePtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat, ffi.Float, ffi.Float, ffi.Float)>>( - 'ColorChange'); - late final _ColorChange = - _ColorChangePtr.asFunction Function(Mat, Mat, Mat, double, double, double)>(); + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Float, ffi.Float, ffi.Float)>>('ColorChange'); + late final _ColorChange = _ColorChangePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, double, double, double)>(); ffi.Pointer CompareHist( Mat hist1, @@ -2918,11 +3313,12 @@ class CvNative { ); } - late final _CompareHistPtr = - _lookup Function(Mat, Mat, ffi.Int, ffi.Pointer)>>( - 'CompareHist'); - late final _CompareHist = - _CompareHistPtr.asFunction Function(Mat, Mat, int, ffi.Pointer)>(); + late final _CompareHistPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Pointer)>>('CompareHist'); + late final _CompareHist = _CompareHistPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer ConnectedComponents( Mat src, @@ -2944,10 +3340,11 @@ class CvNative { late final _ConnectedComponentsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('ConnectedComponents'); + ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer)>>('ConnectedComponents'); late final _ConnectedComponents = _ConnectedComponentsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer ConnectedComponentsWithStats( Mat src, @@ -2973,10 +3370,12 @@ class CvNative { late final _ConnectedComponentsWithStatsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, ffi.Int, ffi.Int, ffi.Int, - ffi.Pointer)>>('ConnectedComponentsWithStats'); - late final _ConnectedComponentsWithStats = _ConnectedComponentsWithStatsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, Mat, Mat, Mat, ffi.Int, ffi.Int, + ffi.Int, ffi.Pointer)>>('ConnectedComponentsWithStats'); + late final _ConnectedComponentsWithStats = + _ConnectedComponentsWithStatsPtr.asFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer ContourArea( VecPoint pts, @@ -2988,11 +3387,12 @@ class CvNative { ); } - late final _ContourAreaPtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'ContourArea'); - late final _ContourArea = - _ContourAreaPtr.asFunction Function(VecPoint, ffi.Pointer)>(); + late final _ContourAreaPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('ContourArea'); + late final _ContourArea = _ContourAreaPtr.asFunction< + ffi.Pointer Function(VecPoint, ffi.Pointer)>(); ffi.Pointer ConvexHull( VecPoint points, @@ -3008,11 +3408,12 @@ class CvNative { ); } - late final _ConvexHullPtr = - _lookup Function(VecPoint, Mat, ffi.Bool, ffi.Bool)>>( - 'ConvexHull'); - late final _ConvexHull = - _ConvexHullPtr.asFunction Function(VecPoint, Mat, bool, bool)>(); + late final _ConvexHullPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, Mat, ffi.Bool, ffi.Bool)>>('ConvexHull'); + late final _ConvexHull = _ConvexHullPtr.asFunction< + ffi.Pointer Function(VecPoint, Mat, bool, bool)>(); ffi.Pointer ConvexityDefects( VecPoint points, @@ -3026,10 +3427,12 @@ class CvNative { ); } - late final _ConvexityDefectsPtr = - _lookup Function(VecPoint, Mat, Mat)>>('ConvexityDefects'); - late final _ConvexityDefects = - _ConvexityDefectsPtr.asFunction Function(VecPoint, Mat, Mat)>(); + late final _ConvexityDefectsPtr = _lookup< + ffi + .NativeFunction Function(VecPoint, Mat, Mat)>>( + 'ConvexityDefects'); + late final _ConvexityDefects = _ConvexityDefectsPtr.asFunction< + ffi.Pointer Function(VecPoint, Mat, Mat)>(); ffi.Pointer CornerSubPix( Mat img, @@ -3047,11 +3450,13 @@ class CvNative { ); } - late final _CornerSubPixPtr = - _lookup Function(Mat, VecPoint2f, Size, Size, TermCriteria)>>( - 'CornerSubPix'); + late final _CornerSubPixPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, VecPoint2f, Size, Size, TermCriteria)>>('CornerSubPix'); late final _CornerSubPix = _CornerSubPixPtr.asFunction< - ffi.Pointer Function(Mat, VecPoint2f, Size, Size, TermCriteria)>(); + ffi.Pointer Function( + Mat, VecPoint2f, Size, Size, TermCriteria)>(); void CvStatus_Close( ffi.Pointer self, @@ -3062,8 +3467,10 @@ class CvNative { } late final _CvStatus_ClosePtr = - _lookup)>>('CvStatus_Close'); - late final _CvStatus_Close = _CvStatus_ClosePtr.asFunction)>(); + _lookup)>>( + 'CvStatus_Close'); + late final _CvStatus_Close = + _CvStatus_ClosePtr.asFunction)>(); ffi.Pointer CvtColor( Mat src, @@ -3077,9 +3484,11 @@ class CvNative { ); } - late final _CvtColorPtr = - _lookup Function(Mat, Mat, ffi.Int)>>('CvtColor'); - late final _CvtColor = _CvtColorPtr.asFunction Function(Mat, Mat, int)>(); + late final _CvtColorPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int)>>('CvtColor'); + late final _CvtColor = + _CvtColorPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer CvtColor_Async( Mat src, @@ -3093,11 +3502,12 @@ class CvNative { ); } - late final _CvtColor_AsyncPtr = - _lookup Function(Mat, ffi.Int, CvCallback_1)>>( - 'CvtColor_Async'); - late final _CvtColor_Async = - _CvtColor_AsyncPtr.asFunction Function(Mat, int, CvCallback_1)>(); + late final _CvtColor_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, CvCallback_1)>>('CvtColor_Async'); + late final _CvtColor_Async = _CvtColor_AsyncPtr.asFunction< + ffi.Pointer Function(Mat, int, CvCallback_1)>(); ffi.Pointer DetailEnhance( Mat src, @@ -3113,11 +3523,12 @@ class CvNative { ); } - late final _DetailEnhancePtr = - _lookup Function(Mat, Mat, ffi.Float, ffi.Float)>>( - 'DetailEnhance'); - late final _DetailEnhance = - _DetailEnhancePtr.asFunction Function(Mat, Mat, double, double)>(); + late final _DetailEnhancePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Float, ffi.Float)>>('DetailEnhance'); + late final _DetailEnhance = _DetailEnhancePtr.asFunction< + ffi.Pointer Function(Mat, Mat, double, double)>(); ffi.Pointer Dilate( Mat src, @@ -3131,9 +3542,11 @@ class CvNative { ); } - late final _DilatePtr = - _lookup Function(Mat, Mat, Mat)>>('Dilate'); - late final _Dilate = _DilatePtr.asFunction Function(Mat, Mat, Mat)>(); + late final _DilatePtr = _lookup< + ffi + .NativeFunction Function(Mat, Mat, Mat)>>('Dilate'); + late final _Dilate = + _DilatePtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer DilateWithParams( Mat src, @@ -3156,8 +3569,9 @@ class CvNative { } late final _DilateWithParamsPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat, Point, ffi.Int, ffi.Int, Scalar)>>( - 'DilateWithParams'); + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Mat, Point, ffi.Int, ffi.Int, + Scalar)>>('DilateWithParams'); late final _DilateWithParams = _DilateWithParamsPtr.asFunction< ffi.Pointer Function(Mat, Mat, Mat, Point, int, int, Scalar)>(); @@ -3179,11 +3593,12 @@ class CvNative { ); } - late final _DistanceTransformPtr = - _lookup Function(Mat, Mat, Mat, ffi.Int, ffi.Int, ffi.Int)>>( - 'DistanceTransform'); - late final _DistanceTransform = - _DistanceTransformPtr.asFunction Function(Mat, Mat, Mat, int, int, int)>(); + late final _DistanceTransformPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Int, ffi.Int, ffi.Int)>>('DistanceTransform'); + late final _DistanceTransform = _DistanceTransformPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, int, int, int)>(); ffi.Pointer DrawChessboardCorners( Mat image, @@ -3199,11 +3614,12 @@ class CvNative { ); } - late final _DrawChessboardCornersPtr = - _lookup Function(Mat, Size, Mat, ffi.Bool)>>( - 'DrawChessboardCorners'); - late final _DrawChessboardCorners = - _DrawChessboardCornersPtr.asFunction Function(Mat, Size, Mat, bool)>(); + late final _DrawChessboardCornersPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Size, Mat, ffi.Bool)>>('DrawChessboardCorners'); + late final _DrawChessboardCorners = _DrawChessboardCornersPtr.asFunction< + ffi.Pointer Function(Mat, Size, Mat, bool)>(); ffi.Pointer DrawContours( Mat src, @@ -3221,11 +3637,12 @@ class CvNative { ); } - late final _DrawContoursPtr = - _lookup Function(Mat, VecVecPoint, ffi.Int, Scalar, ffi.Int)>>( - 'DrawContours'); - late final _DrawContours = - _DrawContoursPtr.asFunction Function(Mat, VecVecPoint, int, Scalar, int)>(); + late final _DrawContoursPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, VecVecPoint, ffi.Int, Scalar, ffi.Int)>>('DrawContours'); + late final _DrawContours = _DrawContoursPtr.asFunction< + ffi.Pointer Function(Mat, VecVecPoint, int, Scalar, int)>(); ffi.Pointer DrawContoursWithParams( Mat src, @@ -3253,10 +3670,19 @@ class CvNative { late final _DrawContoursWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, VecVecPoint, ffi.Int, Scalar, ffi.Int, ffi.Int, Mat, ffi.Int, + ffi.Pointer Function( + Mat, + VecVecPoint, + ffi.Int, + Scalar, + ffi.Int, + ffi.Int, + Mat, + ffi.Int, Point)>>('DrawContoursWithParams'); late final _DrawContoursWithParams = _DrawContoursWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, VecVecPoint, int, Scalar, int, int, Mat, int, Point)>(); + ffi.Pointer Function( + Mat, VecVecPoint, int, Scalar, int, int, Mat, int, Point)>(); ffi.Pointer DrawKeyPoints( Mat src, @@ -3274,11 +3700,12 @@ class CvNative { ); } - late final _DrawKeyPointsPtr = - _lookup Function(Mat, VecKeyPoint, Mat, Scalar, ffi.Int)>>( - 'DrawKeyPoints'); - late final _DrawKeyPoints = - _DrawKeyPointsPtr.asFunction Function(Mat, VecKeyPoint, Mat, Scalar, int)>(); + late final _DrawKeyPointsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, VecKeyPoint, Mat, Scalar, ffi.Int)>>('DrawKeyPoints'); + late final _DrawKeyPoints = _DrawKeyPointsPtr.asFunction< + ffi.Pointer Function(Mat, VecKeyPoint, Mat, Scalar, int)>(); ffi.Pointer DrawMatches( Mat img1, @@ -3308,11 +3735,20 @@ class CvNative { late final _DrawMatchesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, VecKeyPoint, Mat, VecKeyPoint, VecDMatch, Mat, Scalar, Scalar, - VecChar, ffi.Int)>>('DrawMatches'); + ffi.Pointer Function( + Mat, + VecKeyPoint, + Mat, + VecKeyPoint, + VecDMatch, + Mat, + Scalar, + Scalar, + VecChar, + ffi.Int)>>('DrawMatches'); late final _DrawMatches = _DrawMatchesPtr.asFunction< - ffi.Pointer Function( - Mat, VecKeyPoint, Mat, VecKeyPoint, VecDMatch, Mat, Scalar, Scalar, VecChar, int)>(); + ffi.Pointer Function(Mat, VecKeyPoint, Mat, VecKeyPoint, + VecDMatch, Mat, Scalar, Scalar, VecChar, int)>(); ffi.Pointer EdgePreservingFilter( Mat src, @@ -3330,11 +3766,12 @@ class CvNative { ); } - late final _EdgePreservingFilterPtr = - _lookup Function(Mat, Mat, ffi.Int, ffi.Float, ffi.Float)>>( - 'EdgePreservingFilter'); - late final _EdgePreservingFilter = - _EdgePreservingFilterPtr.asFunction Function(Mat, Mat, int, double, double)>(); + late final _EdgePreservingFilterPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Float, + ffi.Float)>>('EdgePreservingFilter'); + late final _EdgePreservingFilter = _EdgePreservingFilterPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, double, double)>(); ffi.Pointer Ellipse( Mat img, @@ -3360,10 +3797,11 @@ class CvNative { late final _EllipsePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Point, Point, ffi.Double, ffi.Double, ffi.Double, Scalar, ffi.Int)>>('Ellipse'); + ffi.Pointer Function(Mat, Point, Point, ffi.Double, + ffi.Double, ffi.Double, Scalar, ffi.Int)>>('Ellipse'); late final _Ellipse = _EllipsePtr.asFunction< - ffi.Pointer Function(Mat, Point, Point, double, double, double, Scalar, int)>(); + ffi.Pointer Function( + Mat, Point, Point, double, double, double, Scalar, int)>(); ffi.Pointer EllipseWithParams( Mat img, @@ -3393,10 +3831,20 @@ class CvNative { late final _EllipseWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Point, Point, ffi.Double, ffi.Double, ffi.Double, Scalar, - ffi.Int, ffi.Int, ffi.Int)>>('EllipseWithParams'); + ffi.Pointer Function( + Mat, + Point, + Point, + ffi.Double, + ffi.Double, + ffi.Double, + Scalar, + ffi.Int, + ffi.Int, + ffi.Int)>>('EllipseWithParams'); late final _EllipseWithParams = _EllipseWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Point, Point, double, double, double, Scalar, int, int, int)>(); + ffi.Pointer Function( + Mat, Point, Point, double, double, double, Scalar, int, int, int)>(); ffi.Pointer EqualizeHist( Mat src, @@ -3409,8 +3857,10 @@ class CvNative { } late final _EqualizeHistPtr = - _lookup Function(Mat, Mat)>>('EqualizeHist'); - late final _EqualizeHist = _EqualizeHistPtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'EqualizeHist'); + late final _EqualizeHist = + _EqualizeHistPtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Erode( Mat src, @@ -3424,8 +3874,11 @@ class CvNative { ); } - late final _ErodePtr = _lookup Function(Mat, Mat, Mat)>>('Erode'); - late final _Erode = _ErodePtr.asFunction Function(Mat, Mat, Mat)>(); + late final _ErodePtr = _lookup< + ffi + .NativeFunction Function(Mat, Mat, Mat)>>('Erode'); + late final _Erode = + _ErodePtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer ErodeWithParams( Mat src, @@ -3448,8 +3901,9 @@ class CvNative { } late final _ErodeWithParamsPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat, Point, ffi.Int, ffi.Int, Scalar)>>( - 'ErodeWithParams'); + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Mat, Point, ffi.Int, ffi.Int, + Scalar)>>('ErodeWithParams'); late final _ErodeWithParams = _ErodeWithParamsPtr.asFunction< ffi.Pointer Function(Mat, Mat, Mat, Point, int, int, Scalar)>(); @@ -3465,11 +3919,13 @@ class CvNative { ); } - late final _EstimateAffine2DPtr = - _lookup Function(VecPoint2f, VecPoint2f, ffi.Pointer)>>( - 'EstimateAffine2D'); + late final _EstimateAffine2DPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint2f, VecPoint2f, ffi.Pointer)>>('EstimateAffine2D'); late final _EstimateAffine2D = _EstimateAffine2DPtr.asFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, ffi.Pointer)>(); + ffi.Pointer Function( + VecPoint2f, VecPoint2f, ffi.Pointer)>(); ffi.Pointer EstimateAffine2DWithParams( VecPoint2f from, @@ -3497,11 +3953,20 @@ class CvNative { late final _EstimateAffine2DWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, Mat, ffi.Int, ffi.Double, ffi.Size, - ffi.Double, ffi.Size, ffi.Pointer)>>('EstimateAffine2DWithParams'); - late final _EstimateAffine2DWithParams = _EstimateAffine2DWithParamsPtr.asFunction< - ffi.Pointer Function( - VecPoint2f, VecPoint2f, Mat, int, double, int, double, int, ffi.Pointer)>(); + ffi.Pointer Function( + VecPoint2f, + VecPoint2f, + Mat, + ffi.Int, + ffi.Double, + ffi.Size, + ffi.Double, + ffi.Size, + ffi.Pointer)>>('EstimateAffine2DWithParams'); + late final _EstimateAffine2DWithParams = + _EstimateAffine2DWithParamsPtr.asFunction< + ffi.Pointer Function(VecPoint2f, VecPoint2f, Mat, int, + double, int, double, int, ffi.Pointer)>(); ffi.Pointer EstimateAffinePartial2D( VecPoint2f from, @@ -3515,11 +3980,13 @@ class CvNative { ); } - late final _EstimateAffinePartial2DPtr = - _lookup Function(VecPoint2f, VecPoint2f, ffi.Pointer)>>( - 'EstimateAffinePartial2D'); + late final _EstimateAffinePartial2DPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecPoint2f, VecPoint2f, + ffi.Pointer)>>('EstimateAffinePartial2D'); late final _EstimateAffinePartial2D = _EstimateAffinePartial2DPtr.asFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, ffi.Pointer)>(); + ffi.Pointer Function( + VecPoint2f, VecPoint2f, ffi.Pointer)>(); ffi.Pointer EstimateAffinePartial2DWithParams( VecPoint2f from, @@ -3547,11 +4014,20 @@ class CvNative { late final _EstimateAffinePartial2DWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, Mat, ffi.Int, ffi.Double, ffi.Size, - ffi.Double, ffi.Size, ffi.Pointer)>>('EstimateAffinePartial2DWithParams'); - late final _EstimateAffinePartial2DWithParams = _EstimateAffinePartial2DWithParamsPtr.asFunction< - ffi.Pointer Function( - VecPoint2f, VecPoint2f, Mat, int, double, int, double, int, ffi.Pointer)>(); + ffi.Pointer Function( + VecPoint2f, + VecPoint2f, + Mat, + ffi.Int, + ffi.Double, + ffi.Size, + ffi.Double, + ffi.Size, + ffi.Pointer)>>('EstimateAffinePartial2DWithParams'); + late final _EstimateAffinePartial2DWithParams = + _EstimateAffinePartial2DWithParamsPtr.asFunction< + ffi.Pointer Function(VecPoint2f, VecPoint2f, Mat, int, + double, int, double, int, ffi.Pointer)>(); ffi.Pointer Eye( int rows, @@ -3568,8 +4044,11 @@ class CvNative { } late final _EyePtr = _lookup< - ffi.NativeFunction Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Eye'); - late final _Eye = _EyePtr.asFunction Function(int, int, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Eye'); + late final _Eye = _EyePtr.asFunction< + ffi.Pointer Function(int, int, int, ffi.Pointer)>(); void FaceDetectorYN_Close( FaceDetectorYNPtr self, @@ -3580,8 +4059,10 @@ class CvNative { } late final _FaceDetectorYN_ClosePtr = - _lookup>('FaceDetectorYN_Close'); - late final _FaceDetectorYN_Close = _FaceDetectorYN_ClosePtr.asFunction(); + _lookup>( + 'FaceDetectorYN_Close'); + late final _FaceDetectorYN_Close = + _FaceDetectorYN_ClosePtr.asFunction(); ffi.Pointer FaceDetectorYN_Detect( FaceDetectorYN self, @@ -3595,9 +4076,10 @@ class CvNative { ); } - late final _FaceDetectorYN_DetectPtr = - _lookup Function(FaceDetectorYN, Mat, ffi.Pointer)>>( - 'FaceDetectorYN_Detect'); + late final _FaceDetectorYN_DetectPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + FaceDetectorYN, Mat, ffi.Pointer)>>('FaceDetectorYN_Detect'); late final _FaceDetectorYN_Detect = _FaceDetectorYN_DetectPtr.asFunction< ffi.Pointer Function(FaceDetectorYN, Mat, ffi.Pointer)>(); @@ -3613,11 +4095,13 @@ class CvNative { ); } - late final _FaceDetectorYN_Detect_AsyncPtr = - _lookup Function(FaceDetectorYN, Mat, CvCallback_1)>>( - 'FaceDetectorYN_Detect_Async'); - late final _FaceDetectorYN_Detect_Async = _FaceDetectorYN_Detect_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, Mat, CvCallback_1)>(); + late final _FaceDetectorYN_Detect_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, Mat, + CvCallback_1)>>('FaceDetectorYN_Detect_Async'); + late final _FaceDetectorYN_Detect_Async = + _FaceDetectorYN_Detect_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, Mat, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_GetInputSize( FaceDetectorYN self, @@ -3629,11 +4113,13 @@ class CvNative { ); } - late final _FaceDetectorYN_GetInputSizePtr = - _lookup Function(FaceDetectorYN, ffi.Pointer)>>( - 'FaceDetectorYN_GetInputSize'); - late final _FaceDetectorYN_GetInputSize = _FaceDetectorYN_GetInputSizePtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, ffi.Pointer)>(); + late final _FaceDetectorYN_GetInputSizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, + ffi.Pointer)>>('FaceDetectorYN_GetInputSize'); + late final _FaceDetectorYN_GetInputSize = + _FaceDetectorYN_GetInputSizePtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, ffi.Pointer)>(); ffi.Pointer FaceDetectorYN_GetInputSize_Async( FaceDetectorYN self, @@ -3645,11 +4131,13 @@ class CvNative { ); } - late final _FaceDetectorYN_GetInputSize_AsyncPtr = - _lookup Function(FaceDetectorYN, CvCallback_1)>>( - 'FaceDetectorYN_GetInputSize_Async'); - late final _FaceDetectorYN_GetInputSize_Async = _FaceDetectorYN_GetInputSize_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); + late final _FaceDetectorYN_GetInputSize_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, + CvCallback_1)>>('FaceDetectorYN_GetInputSize_Async'); + late final _FaceDetectorYN_GetInputSize_Async = + _FaceDetectorYN_GetInputSize_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_GetNMSThreshold( FaceDetectorYN self, @@ -3661,11 +4149,14 @@ class CvNative { ); } - late final _FaceDetectorYN_GetNMSThresholdPtr = - _lookup Function(FaceDetectorYN, ffi.Pointer)>>( - 'FaceDetectorYN_GetNMSThreshold'); - late final _FaceDetectorYN_GetNMSThreshold = _FaceDetectorYN_GetNMSThresholdPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, ffi.Pointer)>(); + late final _FaceDetectorYN_GetNMSThresholdPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, + ffi.Pointer)>>('FaceDetectorYN_GetNMSThreshold'); + late final _FaceDetectorYN_GetNMSThreshold = + _FaceDetectorYN_GetNMSThresholdPtr.asFunction< + ffi.Pointer Function( + FaceDetectorYN, ffi.Pointer)>(); ffi.Pointer FaceDetectorYN_GetNMSThreshold_Async( FaceDetectorYN self, @@ -3677,11 +4168,13 @@ class CvNative { ); } - late final _FaceDetectorYN_GetNMSThreshold_AsyncPtr = - _lookup Function(FaceDetectorYN, CvCallback_1)>>( - 'FaceDetectorYN_GetNMSThreshold_Async'); - late final _FaceDetectorYN_GetNMSThreshold_Async = _FaceDetectorYN_GetNMSThreshold_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); + late final _FaceDetectorYN_GetNMSThreshold_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, + CvCallback_1)>>('FaceDetectorYN_GetNMSThreshold_Async'); + late final _FaceDetectorYN_GetNMSThreshold_Async = + _FaceDetectorYN_GetNMSThreshold_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_GetScoreThreshold( FaceDetectorYN self, @@ -3693,11 +4186,14 @@ class CvNative { ); } - late final _FaceDetectorYN_GetScoreThresholdPtr = - _lookup Function(FaceDetectorYN, ffi.Pointer)>>( - 'FaceDetectorYN_GetScoreThreshold'); - late final _FaceDetectorYN_GetScoreThreshold = _FaceDetectorYN_GetScoreThresholdPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, ffi.Pointer)>(); + late final _FaceDetectorYN_GetScoreThresholdPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, + ffi.Pointer)>>('FaceDetectorYN_GetScoreThreshold'); + late final _FaceDetectorYN_GetScoreThreshold = + _FaceDetectorYN_GetScoreThresholdPtr.asFunction< + ffi.Pointer Function( + FaceDetectorYN, ffi.Pointer)>(); ffi.Pointer FaceDetectorYN_GetScoreThreshold_Async( FaceDetectorYN self, @@ -3709,11 +4205,13 @@ class CvNative { ); } - late final _FaceDetectorYN_GetScoreThreshold_AsyncPtr = - _lookup Function(FaceDetectorYN, CvCallback_1)>>( - 'FaceDetectorYN_GetScoreThreshold_Async'); - late final _FaceDetectorYN_GetScoreThreshold_Async = _FaceDetectorYN_GetScoreThreshold_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); + late final _FaceDetectorYN_GetScoreThreshold_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, + CvCallback_1)>>('FaceDetectorYN_GetScoreThreshold_Async'); + late final _FaceDetectorYN_GetScoreThreshold_Async = + _FaceDetectorYN_GetScoreThreshold_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_GetTopK( FaceDetectorYN self, @@ -3725,9 +4223,10 @@ class CvNative { ); } - late final _FaceDetectorYN_GetTopKPtr = - _lookup Function(FaceDetectorYN, ffi.Pointer)>>( - 'FaceDetectorYN_GetTopK'); + late final _FaceDetectorYN_GetTopKPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + FaceDetectorYN, ffi.Pointer)>>('FaceDetectorYN_GetTopK'); late final _FaceDetectorYN_GetTopK = _FaceDetectorYN_GetTopKPtr.asFunction< ffi.Pointer Function(FaceDetectorYN, ffi.Pointer)>(); @@ -3741,11 +4240,13 @@ class CvNative { ); } - late final _FaceDetectorYN_GetTopK_AsyncPtr = - _lookup Function(FaceDetectorYN, CvCallback_1)>>( - 'FaceDetectorYN_GetTopK_Async'); - late final _FaceDetectorYN_GetTopK_Async = _FaceDetectorYN_GetTopK_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); + late final _FaceDetectorYN_GetTopK_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + FaceDetectorYN, CvCallback_1)>>('FaceDetectorYN_GetTopK_Async'); + late final _FaceDetectorYN_GetTopK_Async = + _FaceDetectorYN_GetTopK_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_New( ffi.Pointer model, @@ -3773,11 +4274,27 @@ class CvNative { late final _FaceDetectorYN_NewPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, Size, ffi.Float, - ffi.Float, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('FaceDetectorYN_New'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + Size, + ffi.Float, + ffi.Float, + ffi.Int, + ffi.Int, + ffi.Int, + ffi.Pointer)>>('FaceDetectorYN_New'); late final _FaceDetectorYN_New = _FaceDetectorYN_NewPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, Size, double, double, int, - int, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + Size, + double, + double, + int, + int, + int, + ffi.Pointer)>(); ffi.Pointer FaceDetectorYN_NewFromBuffer( ffi.Pointer framework, @@ -3818,9 +4335,19 @@ class CvNative { ffi.Int, ffi.Int, ffi.Pointer)>>('FaceDetectorYN_NewFromBuffer'); - late final _FaceDetectorYN_NewFromBuffer = _FaceDetectorYN_NewFromBufferPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, VecUChar, VecUChar, Size, double, double, int, - int, int, ffi.Pointer)>(); + late final _FaceDetectorYN_NewFromBuffer = + _FaceDetectorYN_NewFromBufferPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + VecUChar, + VecUChar, + Size, + double, + double, + int, + int, + int, + ffi.Pointer)>(); ffi.Pointer FaceDetectorYN_NewFromBuffer_Async( ffi.Pointer framework, @@ -3850,11 +4377,21 @@ class CvNative { late final _FaceDetectorYN_NewFromBuffer_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, VecUChar, VecUChar, Size, ffi.Float, - ffi.Float, ffi.Int, ffi.Int, ffi.Int, CvCallback_1)>>('FaceDetectorYN_NewFromBuffer_Async'); - late final _FaceDetectorYN_NewFromBuffer_Async = _FaceDetectorYN_NewFromBuffer_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, VecUChar, VecUChar, Size, double, double, int, int, int, CvCallback_1)>(); + ffi.Pointer Function( + ffi.Pointer, + VecUChar, + VecUChar, + Size, + ffi.Float, + ffi.Float, + ffi.Int, + ffi.Int, + ffi.Int, + CvCallback_1)>>('FaceDetectorYN_NewFromBuffer_Async'); + late final _FaceDetectorYN_NewFromBuffer_Async = + _FaceDetectorYN_NewFromBuffer_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, VecUChar, + VecUChar, Size, double, double, int, int, int, CvCallback_1)>(); ffi.Pointer FaceDetectorYN_New_Async( ffi.Pointer model, @@ -3882,11 +4419,28 @@ class CvNative { late final _FaceDetectorYN_New_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, Size, ffi.Float, - ffi.Float, ffi.Int, ffi.Int, ffi.Int, CvCallback_1)>>('FaceDetectorYN_New_Async'); - late final _FaceDetectorYN_New_Async = _FaceDetectorYN_New_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, Size, double, double, int, int, int, CvCallback_1)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + Size, + ffi.Float, + ffi.Float, + ffi.Int, + ffi.Int, + ffi.Int, + CvCallback_1)>>('FaceDetectorYN_New_Async'); + late final _FaceDetectorYN_New_Async = + _FaceDetectorYN_New_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + Size, + double, + double, + int, + int, + int, + CvCallback_1)>(); ffi.Pointer FaceDetectorYN_SetInputSize( FaceDetectorYN self, @@ -3898,11 +4452,12 @@ class CvNative { ); } - late final _FaceDetectorYN_SetInputSizePtr = - _lookup Function(FaceDetectorYN, Size)>>( - 'FaceDetectorYN_SetInputSize'); - late final _FaceDetectorYN_SetInputSize = - _FaceDetectorYN_SetInputSizePtr.asFunction Function(FaceDetectorYN, Size)>(); + late final _FaceDetectorYN_SetInputSizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + FaceDetectorYN, Size)>>('FaceDetectorYN_SetInputSize'); + late final _FaceDetectorYN_SetInputSize = _FaceDetectorYN_SetInputSizePtr + .asFunction Function(FaceDetectorYN, Size)>(); ffi.Pointer FaceDetectorYN_SetInputSize_Async( FaceDetectorYN self, @@ -3916,11 +4471,13 @@ class CvNative { ); } - late final _FaceDetectorYN_SetInputSize_AsyncPtr = - _lookup Function(FaceDetectorYN, Size, CvCallback_0)>>( - 'FaceDetectorYN_SetInputSize_Async'); - late final _FaceDetectorYN_SetInputSize_Async = _FaceDetectorYN_SetInputSize_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, Size, CvCallback_0)>(); + late final _FaceDetectorYN_SetInputSize_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, Size, + CvCallback_0)>>('FaceDetectorYN_SetInputSize_Async'); + late final _FaceDetectorYN_SetInputSize_Async = + _FaceDetectorYN_SetInputSize_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, Size, CvCallback_0)>(); ffi.Pointer FaceDetectorYN_SetNMSThreshold( FaceDetectorYN self, @@ -3932,11 +4489,13 @@ class CvNative { ); } - late final _FaceDetectorYN_SetNMSThresholdPtr = - _lookup Function(FaceDetectorYN, ffi.Float)>>( - 'FaceDetectorYN_SetNMSThreshold'); + late final _FaceDetectorYN_SetNMSThresholdPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + FaceDetectorYN, ffi.Float)>>('FaceDetectorYN_SetNMSThreshold'); late final _FaceDetectorYN_SetNMSThreshold = - _FaceDetectorYN_SetNMSThresholdPtr.asFunction Function(FaceDetectorYN, double)>(); + _FaceDetectorYN_SetNMSThresholdPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, double)>(); ffi.Pointer FaceDetectorYN_SetNMSThreshold_Async( FaceDetectorYN self, @@ -3950,11 +4509,14 @@ class CvNative { ); } - late final _FaceDetectorYN_SetNMSThreshold_AsyncPtr = - _lookup Function(FaceDetectorYN, ffi.Float, CvCallback_0)>>( - 'FaceDetectorYN_SetNMSThreshold_Async'); - late final _FaceDetectorYN_SetNMSThreshold_Async = _FaceDetectorYN_SetNMSThreshold_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, double, CvCallback_0)>(); + late final _FaceDetectorYN_SetNMSThreshold_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, ffi.Float, + CvCallback_0)>>('FaceDetectorYN_SetNMSThreshold_Async'); + late final _FaceDetectorYN_SetNMSThreshold_Async = + _FaceDetectorYN_SetNMSThreshold_AsyncPtr.asFunction< + ffi.Pointer Function( + FaceDetectorYN, double, CvCallback_0)>(); ffi.Pointer FaceDetectorYN_SetScoreThreshold( FaceDetectorYN self, @@ -3966,11 +4528,13 @@ class CvNative { ); } - late final _FaceDetectorYN_SetScoreThresholdPtr = - _lookup Function(FaceDetectorYN, ffi.Float)>>( - 'FaceDetectorYN_SetScoreThreshold'); - late final _FaceDetectorYN_SetScoreThreshold = _FaceDetectorYN_SetScoreThresholdPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, double)>(); + late final _FaceDetectorYN_SetScoreThresholdPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + FaceDetectorYN, ffi.Float)>>('FaceDetectorYN_SetScoreThreshold'); + late final _FaceDetectorYN_SetScoreThreshold = + _FaceDetectorYN_SetScoreThresholdPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, double)>(); ffi.Pointer FaceDetectorYN_SetScoreThreshold_Async( FaceDetectorYN self, @@ -3984,11 +4548,14 @@ class CvNative { ); } - late final _FaceDetectorYN_SetScoreThreshold_AsyncPtr = - _lookup Function(FaceDetectorYN, ffi.Float, CvCallback_0)>>( - 'FaceDetectorYN_SetScoreThreshold_Async'); - late final _FaceDetectorYN_SetScoreThreshold_Async = _FaceDetectorYN_SetScoreThreshold_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, double, CvCallback_0)>(); + late final _FaceDetectorYN_SetScoreThreshold_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, ffi.Float, + CvCallback_0)>>('FaceDetectorYN_SetScoreThreshold_Async'); + late final _FaceDetectorYN_SetScoreThreshold_Async = + _FaceDetectorYN_SetScoreThreshold_AsyncPtr.asFunction< + ffi.Pointer Function( + FaceDetectorYN, double, CvCallback_0)>(); ffi.Pointer FaceDetectorYN_SetTopK( FaceDetectorYN self, @@ -4000,11 +4567,12 @@ class CvNative { ); } - late final _FaceDetectorYN_SetTopKPtr = - _lookup Function(FaceDetectorYN, ffi.Int)>>( - 'FaceDetectorYN_SetTopK'); - late final _FaceDetectorYN_SetTopK = - _FaceDetectorYN_SetTopKPtr.asFunction Function(FaceDetectorYN, int)>(); + late final _FaceDetectorYN_SetTopKPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + FaceDetectorYN, ffi.Int)>>('FaceDetectorYN_SetTopK'); + late final _FaceDetectorYN_SetTopK = _FaceDetectorYN_SetTopKPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, int)>(); ffi.Pointer FaceDetectorYN_SetTopK_Async( FaceDetectorYN self, @@ -4018,11 +4586,13 @@ class CvNative { ); } - late final _FaceDetectorYN_SetTopK_AsyncPtr = - _lookup Function(FaceDetectorYN, ffi.Int, CvCallback_0)>>( - 'FaceDetectorYN_SetTopK_Async'); - late final _FaceDetectorYN_SetTopK_Async = _FaceDetectorYN_SetTopK_AsyncPtr.asFunction< - ffi.Pointer Function(FaceDetectorYN, int, CvCallback_0)>(); + late final _FaceDetectorYN_SetTopK_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceDetectorYN, ffi.Int, + CvCallback_0)>>('FaceDetectorYN_SetTopK_Async'); + late final _FaceDetectorYN_SetTopK_Async = + _FaceDetectorYN_SetTopK_AsyncPtr.asFunction< + ffi.Pointer Function(FaceDetectorYN, int, CvCallback_0)>(); ffi.Pointer FaceRecognizerSF_AlignCrop( FaceRecognizerSF self, @@ -4039,10 +4609,13 @@ class CvNative { } late final _FaceRecognizerSF_AlignCropPtr = _lookup< - ffi.NativeFunction Function(FaceRecognizerSF, Mat, Mat, ffi.Pointer)>>( - 'FaceRecognizerSF_AlignCrop'); - late final _FaceRecognizerSF_AlignCrop = _FaceRecognizerSF_AlignCropPtr.asFunction< - ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, + ffi.Pointer)>>('FaceRecognizerSF_AlignCrop'); + late final _FaceRecognizerSF_AlignCrop = + _FaceRecognizerSF_AlignCropPtr.asFunction< + ffi.Pointer Function( + FaceRecognizerSF, Mat, Mat, ffi.Pointer)>(); ffi.Pointer FaceRecognizerSF_AlignCrop_Async( FaceRecognizerSF self, @@ -4058,11 +4631,14 @@ class CvNative { ); } - late final _FaceRecognizerSF_AlignCrop_AsyncPtr = - _lookup Function(FaceRecognizerSF, Mat, Mat, CvCallback_1)>>( - 'FaceRecognizerSF_AlignCrop_Async'); - late final _FaceRecognizerSF_AlignCrop_Async = _FaceRecognizerSF_AlignCrop_AsyncPtr.asFunction< - ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, CvCallback_1)>(); + late final _FaceRecognizerSF_AlignCrop_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, + CvCallback_1)>>('FaceRecognizerSF_AlignCrop_Async'); + late final _FaceRecognizerSF_AlignCrop_Async = + _FaceRecognizerSF_AlignCrop_AsyncPtr.asFunction< + ffi.Pointer Function( + FaceRecognizerSF, Mat, Mat, CvCallback_1)>(); void FaceRecognizerSF_Close( FaceRecognizerSFPtr self, @@ -4073,9 +4649,10 @@ class CvNative { } late final _FaceRecognizerSF_ClosePtr = - _lookup>('FaceRecognizerSF_Close'); - late final _FaceRecognizerSF_Close = - _FaceRecognizerSF_ClosePtr.asFunction(); + _lookup>( + 'FaceRecognizerSF_Close'); + late final _FaceRecognizerSF_Close = _FaceRecognizerSF_ClosePtr.asFunction< + void Function(FaceRecognizerSFPtr)>(); ffi.Pointer FaceRecognizerSF_Feature( FaceRecognizerSF self, @@ -4092,11 +4669,13 @@ class CvNative { } late final _FaceRecognizerSF_FeaturePtr = _lookup< - ffi - .NativeFunction Function(FaceRecognizerSF, Mat, ffi.Bool, ffi.Pointer)>>( - 'FaceRecognizerSF_Feature'); - late final _FaceRecognizerSF_Feature = _FaceRecognizerSF_FeaturePtr.asFunction< - ffi.Pointer Function(FaceRecognizerSF, Mat, bool, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(FaceRecognizerSF, Mat, ffi.Bool, + ffi.Pointer)>>('FaceRecognizerSF_Feature'); + late final _FaceRecognizerSF_Feature = + _FaceRecognizerSF_FeaturePtr.asFunction< + ffi.Pointer Function( + FaceRecognizerSF, Mat, bool, ffi.Pointer)>(); ffi.Pointer FaceRecognizerSF_Feature_Async( FaceRecognizerSF self, @@ -4113,10 +4692,13 @@ class CvNative { } late final _FaceRecognizerSF_Feature_AsyncPtr = _lookup< - ffi.NativeFunction Function(FaceRecognizerSF, Mat, ffi.Bool, CvCallback_1)>>( - 'FaceRecognizerSF_Feature_Async'); - late final _FaceRecognizerSF_Feature_Async = _FaceRecognizerSF_Feature_AsyncPtr.asFunction< - ffi.Pointer Function(FaceRecognizerSF, Mat, bool, CvCallback_1)>(); + ffi.NativeFunction< + ffi.Pointer Function(FaceRecognizerSF, Mat, ffi.Bool, + CvCallback_1)>>('FaceRecognizerSF_Feature_Async'); + late final _FaceRecognizerSF_Feature_Async = + _FaceRecognizerSF_Feature_AsyncPtr.asFunction< + ffi.Pointer Function( + FaceRecognizerSF, Mat, bool, CvCallback_1)>(); ffi.Pointer FaceRecognizerSF_Match( FaceRecognizerSF self, @@ -4136,10 +4718,11 @@ class CvNative { late final _FaceRecognizerSF_MatchPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - FaceRecognizerSF, Mat, Mat, ffi.Int, ffi.Pointer)>>('FaceRecognizerSF_Match'); + ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, ffi.Int, + ffi.Pointer)>>('FaceRecognizerSF_Match'); late final _FaceRecognizerSF_Match = _FaceRecognizerSF_MatchPtr.asFunction< - ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, int, ffi.Pointer)>(); + ffi.Pointer Function( + FaceRecognizerSF, Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer FaceRecognizerSF_Match_Async( FaceRecognizerSF self, @@ -4158,11 +4741,13 @@ class CvNative { } late final _FaceRecognizerSF_Match_AsyncPtr = _lookup< - ffi - .NativeFunction Function(FaceRecognizerSF, Mat, Mat, ffi.Int, CvCallback_1)>>( - 'FaceRecognizerSF_Match_Async'); - late final _FaceRecognizerSF_Match_Async = _FaceRecognizerSF_Match_AsyncPtr.asFunction< - ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, int, CvCallback_1)>(); + ffi.NativeFunction< + ffi.Pointer Function(FaceRecognizerSF, Mat, Mat, ffi.Int, + CvCallback_1)>>('FaceRecognizerSF_Match_Async'); + late final _FaceRecognizerSF_Match_Async = + _FaceRecognizerSF_Match_AsyncPtr.asFunction< + ffi.Pointer Function( + FaceRecognizerSF, Mat, Mat, int, CvCallback_1)>(); ffi.Pointer FaceRecognizerSF_New( ffi.Pointer model, @@ -4182,11 +4767,15 @@ class CvNative { late final _FaceRecognizerSF_NewPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Int, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Int, ffi.Pointer)>>('FaceRecognizerSF_New'); late final _FaceRecognizerSF_New = _FaceRecognizerSF_NewPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, int, ffi.Pointer)>(); ffi.Pointer FaceRecognizerSF_New_Async( ffi.Pointer model, @@ -4206,10 +4795,16 @@ class CvNative { late final _FaceRecognizerSF_New_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Int, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Int, CvCallback_1)>>('FaceRecognizerSF_New_Async'); - late final _FaceRecognizerSF_New_Async = _FaceRecognizerSF_New_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, int, CvCallback_1)>(); + late final _FaceRecognizerSF_New_Async = + _FaceRecognizerSF_New_AsyncPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, int, CvCallback_1)>(); void FastFeatureDetector_Close( FastFeatureDetectorPtr f, @@ -4220,9 +4815,10 @@ class CvNative { } late final _FastFeatureDetector_ClosePtr = - _lookup>('FastFeatureDetector_Close'); - late final _FastFeatureDetector_Close = - _FastFeatureDetector_ClosePtr.asFunction(); + _lookup>( + 'FastFeatureDetector_Close'); + late final _FastFeatureDetector_Close = _FastFeatureDetector_ClosePtr + .asFunction(); ffi.Pointer FastFeatureDetector_Create( ffi.Pointer rval, @@ -4232,11 +4828,13 @@ class CvNative { ); } - late final _FastFeatureDetector_CreatePtr = - _lookup Function(ffi.Pointer)>>( - 'FastFeatureDetector_Create'); - late final _FastFeatureDetector_Create = _FastFeatureDetector_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _FastFeatureDetector_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('FastFeatureDetector_Create'); + late final _FastFeatureDetector_Create = + _FastFeatureDetector_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer FastFeatureDetector_CreateWithParams( int threshold, @@ -4253,11 +4851,14 @@ class CvNative { } late final _FastFeatureDetector_CreateWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Bool, ffi.Int, - ffi.Pointer)>>('FastFeatureDetector_CreateWithParams'); - late final _FastFeatureDetector_CreateWithParams = _FastFeatureDetector_CreateWithParamsPtr.asFunction< - ffi.Pointer Function(int, bool, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Bool, ffi.Int, + ffi.Pointer)>>( + 'FastFeatureDetector_CreateWithParams'); + late final _FastFeatureDetector_CreateWithParams = + _FastFeatureDetector_CreateWithParamsPtr.asFunction< + ffi.Pointer Function( + int, bool, int, ffi.Pointer)>(); ffi.Pointer FastFeatureDetector_Detect( FastFeatureDetector f, @@ -4273,10 +4874,12 @@ class CvNative { late final _FastFeatureDetector_DetectPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(FastFeatureDetector, Mat, + ffi.Pointer)>>('FastFeatureDetector_Detect'); + late final _FastFeatureDetector_Detect = + _FastFeatureDetector_DetectPtr.asFunction< ffi.Pointer Function( - FastFeatureDetector, Mat, ffi.Pointer)>>('FastFeatureDetector_Detect'); - late final _FastFeatureDetector_Detect = _FastFeatureDetector_DetectPtr.asFunction< - ffi.Pointer Function(FastFeatureDetector, Mat, ffi.Pointer)>(); + FastFeatureDetector, Mat, ffi.Pointer)>(); ffi.Pointer FastNlMeansDenoising( Mat src, @@ -4289,9 +4892,10 @@ class CvNative { } late final _FastNlMeansDenoisingPtr = - _lookup Function(Mat, Mat)>>('FastNlMeansDenoising'); - late final _FastNlMeansDenoising = - _FastNlMeansDenoisingPtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'FastNlMeansDenoising'); + late final _FastNlMeansDenoising = _FastNlMeansDenoisingPtr.asFunction< + ffi.Pointer Function(Mat, Mat)>(); ffi.Pointer FastNlMeansDenoisingColored( Mat src, @@ -4304,9 +4908,10 @@ class CvNative { } late final _FastNlMeansDenoisingColoredPtr = - _lookup Function(Mat, Mat)>>('FastNlMeansDenoisingColored'); - late final _FastNlMeansDenoisingColored = - _FastNlMeansDenoisingColoredPtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'FastNlMeansDenoisingColored'); + late final _FastNlMeansDenoisingColored = _FastNlMeansDenoisingColoredPtr + .asFunction Function(Mat, Mat)>(); ffi.Pointer FastNlMeansDenoisingColoredMulti( VecMat src, @@ -4322,11 +4927,13 @@ class CvNative { ); } - late final _FastNlMeansDenoisingColoredMultiPtr = - _lookup Function(VecMat, Mat, ffi.Int, ffi.Int)>>( - 'FastNlMeansDenoisingColoredMulti'); - late final _FastNlMeansDenoisingColoredMulti = _FastNlMeansDenoisingColoredMultiPtr.asFunction< - ffi.Pointer Function(VecMat, Mat, int, int)>(); + late final _FastNlMeansDenoisingColoredMultiPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecMat, Mat, ffi.Int, + ffi.Int)>>('FastNlMeansDenoisingColoredMulti'); + late final _FastNlMeansDenoisingColoredMulti = + _FastNlMeansDenoisingColoredMultiPtr.asFunction< + ffi.Pointer Function(VecMat, Mat, int, int)>(); ffi.Pointer FastNlMeansDenoisingColoredMultiWithParams( VecMat src, @@ -4352,10 +4959,19 @@ class CvNative { late final _FastNlMeansDenoisingColoredMultiWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecMat, Mat, ffi.Int, ffi.Int, ffi.Float, ffi.Float, ffi.Int, + ffi.Pointer Function( + VecMat, + Mat, + ffi.Int, + ffi.Int, + ffi.Float, + ffi.Float, + ffi.Int, ffi.Int)>>('FastNlMeansDenoisingColoredMultiWithParams'); - late final _FastNlMeansDenoisingColoredMultiWithParams = _FastNlMeansDenoisingColoredMultiWithParamsPtr - .asFunction Function(VecMat, Mat, int, int, double, double, int, int)>(); + late final _FastNlMeansDenoisingColoredMultiWithParams = + _FastNlMeansDenoisingColoredMultiWithParamsPtr.asFunction< + ffi.Pointer Function( + VecMat, Mat, int, int, double, double, int, int)>(); ffi.Pointer FastNlMeansDenoisingColoredWithParams( Mat src, @@ -4376,11 +4992,12 @@ class CvNative { } late final _FastNlMeansDenoisingColoredWithParamsPtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, ffi.Float, ffi.Float, ffi.Int, ffi.Int)>>( - 'FastNlMeansDenoisingColoredWithParams'); - late final _FastNlMeansDenoisingColoredWithParams = _FastNlMeansDenoisingColoredWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, double, int, int)>(); + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Float, ffi.Float, + ffi.Int, ffi.Int)>>('FastNlMeansDenoisingColoredWithParams'); + late final _FastNlMeansDenoisingColoredWithParams = + _FastNlMeansDenoisingColoredWithParamsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, double, double, int, int)>(); ffi.Pointer FastNlMeansDenoisingWithParams( Mat src, @@ -4398,11 +5015,13 @@ class CvNative { ); } - late final _FastNlMeansDenoisingWithParamsPtr = - _lookup Function(Mat, Mat, ffi.Float, ffi.Int, ffi.Int)>>( - 'FastNlMeansDenoisingWithParams'); - late final _FastNlMeansDenoisingWithParams = _FastNlMeansDenoisingWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, int, int)>(); + late final _FastNlMeansDenoisingWithParamsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Float, ffi.Int, + ffi.Int)>>('FastNlMeansDenoisingWithParams'); + late final _FastNlMeansDenoisingWithParams = + _FastNlMeansDenoisingWithParamsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, double, int, int)>(); ffi.Pointer FillPoly( Mat img, @@ -4416,9 +5035,12 @@ class CvNative { ); } - late final _FillPolyPtr = - _lookup Function(Mat, VecVecPoint, Scalar)>>('FillPoly'); - late final _FillPoly = _FillPolyPtr.asFunction Function(Mat, VecVecPoint, Scalar)>(); + late final _FillPolyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, VecVecPoint, Scalar)>>('FillPoly'); + late final _FillPoly = _FillPolyPtr.asFunction< + ffi.Pointer Function(Mat, VecVecPoint, Scalar)>(); ffi.Pointer FillPolyWithParams( Mat img, @@ -4439,11 +5061,12 @@ class CvNative { } late final _FillPolyWithParamsPtr = _lookup< - ffi - .NativeFunction Function(Mat, VecVecPoint, Scalar, ffi.Int, ffi.Int, Point)>>( - 'FillPolyWithParams'); + ffi.NativeFunction< + ffi.Pointer Function(Mat, VecVecPoint, Scalar, ffi.Int, + ffi.Int, Point)>>('FillPolyWithParams'); late final _FillPolyWithParams = _FillPolyWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, VecVecPoint, Scalar, int, int, Point)>(); + ffi.Pointer Function( + Mat, VecVecPoint, Scalar, int, int, Point)>(); ffi.Pointer Filter2D( Mat src, @@ -4467,9 +5090,10 @@ class CvNative { late final _Filter2DPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, Mat, Point, ffi.Double, ffi.Int)>>('Filter2D'); - late final _Filter2D = - _Filter2DPtr.asFunction Function(Mat, Mat, int, Mat, Point, double, int)>(); + ffi.Pointer Function( + Mat, Mat, ffi.Int, Mat, Point, ffi.Double, ffi.Int)>>('Filter2D'); + late final _Filter2D = _Filter2DPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, Mat, Point, double, int)>(); ffi.Pointer FindChessboardCorners( Mat image, @@ -4488,10 +5112,12 @@ class CvNative { } late final _FindChessboardCornersPtr = _lookup< - ffi.NativeFunction Function(Mat, Size, Mat, ffi.Int, ffi.Pointer)>>( - 'FindChessboardCorners'); + ffi.NativeFunction< + ffi.Pointer Function(Mat, Size, Mat, ffi.Int, + ffi.Pointer)>>('FindChessboardCorners'); late final _FindChessboardCorners = _FindChessboardCornersPtr.asFunction< - ffi.Pointer Function(Mat, Size, Mat, int, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, Size, Mat, int, ffi.Pointer)>(); ffi.Pointer FindChessboardCornersSB( Mat image, @@ -4510,10 +5136,12 @@ class CvNative { } late final _FindChessboardCornersSBPtr = _lookup< - ffi.NativeFunction Function(Mat, Size, Mat, ffi.Int, ffi.Pointer)>>( - 'FindChessboardCornersSB'); + ffi.NativeFunction< + ffi.Pointer Function(Mat, Size, Mat, ffi.Int, + ffi.Pointer)>>('FindChessboardCornersSB'); late final _FindChessboardCornersSB = _FindChessboardCornersSBPtr.asFunction< - ffi.Pointer Function(Mat, Size, Mat, int, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, Size, Mat, int, ffi.Pointer)>(); ffi.Pointer FindChessboardCornersSBWithMeta( Mat image, @@ -4535,10 +5163,12 @@ class CvNative { late final _FindChessboardCornersSBWithMetaPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(Mat, Size, Mat, ffi.Int, Mat, + ffi.Pointer)>>('FindChessboardCornersSBWithMeta'); + late final _FindChessboardCornersSBWithMeta = + _FindChessboardCornersSBWithMetaPtr.asFunction< ffi.Pointer Function( - Mat, Size, Mat, ffi.Int, Mat, ffi.Pointer)>>('FindChessboardCornersSBWithMeta'); - late final _FindChessboardCornersSBWithMeta = _FindChessboardCornersSBWithMetaPtr.asFunction< - ffi.Pointer Function(Mat, Size, Mat, int, Mat, ffi.Pointer)>(); + Mat, Size, Mat, int, Mat, ffi.Pointer)>(); ffi.Pointer FindContours( Mat src, @@ -4558,10 +5188,11 @@ class CvNative { late final _FindContoursPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('FindContours'); + ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, + ffi.Pointer)>>('FindContours'); late final _FindContours = _FindContoursPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, Mat, int, int, ffi.Pointer)>(); ffi.Pointer FindHomography( Mat src, @@ -4587,10 +5218,11 @@ class CvNative { late final _FindHomographyPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Double, Mat, ffi.Int, ffi.Double, ffi.Pointer)>>('FindHomography'); + ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Double, Mat, + ffi.Int, ffi.Double, ffi.Pointer)>>('FindHomography'); late final _FindHomography = _FindHomographyPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, double, Mat, int, double, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, Mat, int, double, Mat, int, double, ffi.Pointer)>(); ffi.Pointer FindTransformECC( Mat templateImage, @@ -4616,10 +5248,11 @@ class CvNative { late final _FindTransformECCPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Mat, ffi.Int, TermCriteria, Mat, ffi.Int, - ffi.Pointer)>>('FindTransformECC'); + ffi.Pointer Function(Mat, Mat, Mat, ffi.Int, TermCriteria, + Mat, ffi.Int, ffi.Pointer)>>('FindTransformECC'); late final _FindTransformECC = _FindTransformECCPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, int, TermCriteria, Mat, int, ffi.Pointer)>(); + ffi.Pointer Function(Mat, Mat, Mat, int, TermCriteria, Mat, int, + ffi.Pointer)>(); ffi.Pointer Fisheye_EstimateNewCameraMatrixForUndistortRectify( Mat k, @@ -4644,12 +5277,14 @@ class CvNative { } late final _Fisheye_EstimateNewCameraMatrixForUndistortRectifyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Size, Mat, Mat, ffi.Double, Size, - ffi.Double)>>('Fisheye_EstimateNewCameraMatrixForUndistortRectify'); + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Size, Mat, Mat, ffi.Double, Size, ffi.Double)>>( + 'Fisheye_EstimateNewCameraMatrixForUndistortRectify'); late final _Fisheye_EstimateNewCameraMatrixForUndistortRectify = _Fisheye_EstimateNewCameraMatrixForUndistortRectifyPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Size, Mat, Mat, double, Size, double)>(); + ffi.Pointer Function( + Mat, Mat, Size, Mat, Mat, double, Size, double)>(); ffi.Pointer Fisheye_UndistortImage( Mat distorted, @@ -4665,11 +5300,12 @@ class CvNative { ); } - late final _Fisheye_UndistortImagePtr = - _lookup Function(Mat, Mat, Mat, Mat)>>( - 'Fisheye_UndistortImage'); - late final _Fisheye_UndistortImage = - _Fisheye_UndistortImagePtr.asFunction Function(Mat, Mat, Mat, Mat)>(); + late final _Fisheye_UndistortImagePtr = _lookup< + ffi + .NativeFunction Function(Mat, Mat, Mat, Mat)>>( + 'Fisheye_UndistortImage'); + late final _Fisheye_UndistortImage = _Fisheye_UndistortImagePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat)>(); ffi.Pointer Fisheye_UndistortImageWithParams( Mat distorted, @@ -4689,11 +5325,13 @@ class CvNative { ); } - late final _Fisheye_UndistortImageWithParamsPtr = - _lookup Function(Mat, Mat, Mat, Mat, Mat, Size)>>( - 'Fisheye_UndistortImageWithParams'); - late final _Fisheye_UndistortImageWithParams = _Fisheye_UndistortImageWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, Size)>(); + late final _Fisheye_UndistortImageWithParamsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, + Size)>>('Fisheye_UndistortImageWithParams'); + late final _Fisheye_UndistortImageWithParams = + _Fisheye_UndistortImageWithParamsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, Size)>(); ffi.Pointer Fisheye_UndistortPoints( Mat distorted, @@ -4713,11 +5351,12 @@ class CvNative { ); } - late final _Fisheye_UndistortPointsPtr = - _lookup Function(Mat, Mat, Mat, Mat, Mat, Mat)>>( - 'Fisheye_UndistortPoints'); - late final _Fisheye_UndistortPoints = - _Fisheye_UndistortPointsPtr.asFunction Function(Mat, Mat, Mat, Mat, Mat, Mat)>(); + late final _Fisheye_UndistortPointsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, Mat, Mat)>>('Fisheye_UndistortPoints'); + late final _Fisheye_UndistortPoints = _Fisheye_UndistortPointsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, Mat)>(); ffi.Pointer FitEllipse( VecPoint pts, @@ -4729,11 +5368,12 @@ class CvNative { ); } - late final _FitEllipsePtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'FitEllipse'); - late final _FitEllipse = - _FitEllipsePtr.asFunction Function(VecPoint, ffi.Pointer)>(); + late final _FitEllipsePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('FitEllipse'); + late final _FitEllipse = _FitEllipsePtr.asFunction< + ffi.Pointer Function(VecPoint, ffi.Pointer)>(); ffi.Pointer FitLine( VecPoint pts, @@ -4755,10 +5395,11 @@ class CvNative { late final _FitLinePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, Mat, ffi.Int, ffi.Double, ffi.Double, ffi.Double)>>('FitLine'); - late final _FitLine = - _FitLinePtr.asFunction Function(VecPoint, Mat, int, double, double, double)>(); + ffi.Pointer Function(VecPoint, Mat, ffi.Int, ffi.Double, + ffi.Double, ffi.Double)>>('FitLine'); + late final _FitLine = _FitLinePtr.asFunction< + ffi.Pointer Function( + VecPoint, Mat, int, double, double, double)>(); void FlannBasedMatcher_Close( FlannBasedMatcherPtr f, @@ -4769,9 +5410,10 @@ class CvNative { } late final _FlannBasedMatcher_ClosePtr = - _lookup>('FlannBasedMatcher_Close'); - late final _FlannBasedMatcher_Close = - _FlannBasedMatcher_ClosePtr.asFunction(); + _lookup>( + 'FlannBasedMatcher_Close'); + late final _FlannBasedMatcher_Close = _FlannBasedMatcher_ClosePtr.asFunction< + void Function(FlannBasedMatcherPtr)>(); ffi.Pointer FlannBasedMatcher_Create( ffi.Pointer rval, @@ -4781,11 +5423,13 @@ class CvNative { ); } - late final _FlannBasedMatcher_CreatePtr = - _lookup Function(ffi.Pointer)>>( - 'FlannBasedMatcher_Create'); - late final _FlannBasedMatcher_Create = _FlannBasedMatcher_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _FlannBasedMatcher_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('FlannBasedMatcher_Create'); + late final _FlannBasedMatcher_Create = + _FlannBasedMatcher_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer FlannBasedMatcher_KnnMatch( FlannBasedMatcher f, @@ -4807,8 +5451,10 @@ class CvNative { ffi.NativeFunction< ffi.Pointer Function(FlannBasedMatcher, Mat, Mat, ffi.Int, ffi.Pointer)>>('FlannBasedMatcher_KnnMatch'); - late final _FlannBasedMatcher_KnnMatch = _FlannBasedMatcher_KnnMatchPtr.asFunction< - ffi.Pointer Function(FlannBasedMatcher, Mat, Mat, int, ffi.Pointer)>(); + late final _FlannBasedMatcher_KnnMatch = + _FlannBasedMatcher_KnnMatchPtr.asFunction< + ffi.Pointer Function( + FlannBasedMatcher, Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer GArrayGArrayPoint_FromVec( VecVecPoint points, @@ -4821,10 +5467,13 @@ class CvNative { } late final _GArrayGArrayPoint_FromVecPtr = _lookup< - ffi.NativeFunction Function(VecVecPoint, ffi.Pointer)>>( - 'GArrayGArrayPoint_FromVec'); - late final _GArrayGArrayPoint_FromVec = _GArrayGArrayPoint_FromVecPtr.asFunction< - ffi.Pointer Function(VecVecPoint, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(VecVecPoint, + ffi.Pointer)>>('GArrayGArrayPoint_FromVec'); + late final _GArrayGArrayPoint_FromVec = + _GArrayGArrayPoint_FromVecPtr.asFunction< + ffi.Pointer Function( + VecVecPoint, ffi.Pointer)>(); ffi.Pointer GArrayPoint2d_FromVec( VecPoint v, @@ -4836,9 +5485,10 @@ class CvNative { ); } - late final _GArrayPoint2d_FromVecPtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'GArrayPoint2d_FromVec'); + late final _GArrayPoint2d_FromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('GArrayPoint2d_FromVec'); late final _GArrayPoint2d_FromVec = _GArrayPoint2d_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -4852,9 +5502,10 @@ class CvNative { ); } - late final _GArrayPoint2f_FromVecPtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'GArrayPoint2f_FromVec'); + late final _GArrayPoint2f_FromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('GArrayPoint2f_FromVec'); late final _GArrayPoint2f_FromVec = _GArrayPoint2f_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -4868,9 +5519,10 @@ class CvNative { ); } - late final _GArrayPoint2i_FromVecPtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'GArrayPoint2i_FromVec'); + late final _GArrayPoint2i_FromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('GArrayPoint2i_FromVec'); late final _GArrayPoint2i_FromVec = _GArrayPoint2i_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -4884,9 +5536,10 @@ class CvNative { ); } - late final _GArrayPoint3d_FromVecPtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'GArrayPoint3d_FromVec'); + late final _GArrayPoint3d_FromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('GArrayPoint3d_FromVec'); late final _GArrayPoint3d_FromVec = _GArrayPoint3d_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -4900,9 +5553,10 @@ class CvNative { ); } - late final _GArrayPoint3f_FromVecPtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'GArrayPoint3f_FromVec'); + late final _GArrayPoint3f_FromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('GArrayPoint3f_FromVec'); late final _GArrayPoint3f_FromVec = _GArrayPoint3f_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -4916,9 +5570,10 @@ class CvNative { ); } - late final _GArrayPoint3i_FromVecPtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'GArrayPoint3i_FromVec'); + late final _GArrayPoint3i_FromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('GArrayPoint3i_FromVec'); late final _GArrayPoint3i_FromVec = _GArrayPoint3i_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -4932,9 +5587,10 @@ class CvNative { ); } - late final _GArrayPoint_FromVecPtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'GArrayPoint_FromVec'); + late final _GArrayPoint_FromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('GArrayPoint_FromVec'); late final _GArrayPoint_FromVec = _GArrayPoint_FromVecPtr.asFunction< ffi.Pointer Function(VecPoint, ffi.Pointer)>(); @@ -4948,11 +5604,12 @@ class CvNative { ); } - late final _GArrayPrim_FromVecPtr = - _lookup Function(VecPrim, ffi.Pointer)>>( - 'GArrayPrim_FromVec'); - late final _GArrayPrim_FromVec = - _GArrayPrim_FromVecPtr.asFunction Function(VecPrim, ffi.Pointer)>(); + late final _GArrayPrim_FromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPrim, ffi.Pointer)>>('GArrayPrim_FromVec'); + late final _GArrayPrim_FromVec = _GArrayPrim_FromVecPtr.asFunction< + ffi.Pointer Function(VecPrim, ffi.Pointer)>(); ffi.Pointer GArrayVec4i_FromVec( VecVec4i v, @@ -4964,9 +5621,10 @@ class CvNative { ); } - late final _GArrayVec4i_FromVecPtr = - _lookup Function(VecVec4i, ffi.Pointer)>>( - 'GArrayVec4i_FromVec'); + late final _GArrayVec4i_FromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVec4i, ffi.Pointer)>>('GArrayVec4i_FromVec'); late final _GArrayVec4i_FromVec = _GArrayVec4i_FromVecPtr.asFunction< ffi.Pointer Function(VecVec4i, ffi.Pointer)>(); @@ -4979,8 +5637,10 @@ class CvNative { } late final _GFTTDetector_ClosePtr = - _lookup>('GFTTDetector_Close'); - late final _GFTTDetector_Close = _GFTTDetector_ClosePtr.asFunction(); + _lookup>( + 'GFTTDetector_Close'); + late final _GFTTDetector_Close = + _GFTTDetector_ClosePtr.asFunction(); ffi.Pointer GFTTDetector_Create( ffi.Pointer rval, @@ -4990,11 +5650,12 @@ class CvNative { ); } - late final _GFTTDetector_CreatePtr = - _lookup Function(ffi.Pointer)>>( - 'GFTTDetector_Create'); - late final _GFTTDetector_Create = - _GFTTDetector_CreatePtr.asFunction Function(ffi.Pointer)>(); + late final _GFTTDetector_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('GFTTDetector_Create'); + late final _GFTTDetector_Create = _GFTTDetector_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer GFTTDetector_Detect( GFTTDetector a, @@ -5009,10 +5670,12 @@ class CvNative { } late final _GFTTDetector_DetectPtr = _lookup< - ffi.NativeFunction Function(GFTTDetector, Mat, ffi.Pointer)>>( - 'GFTTDetector_Detect'); + ffi.NativeFunction< + ffi.Pointer Function(GFTTDetector, Mat, + ffi.Pointer)>>('GFTTDetector_Detect'); late final _GFTTDetector_Detect = _GFTTDetector_DetectPtr.asFunction< - ffi.Pointer Function(GFTTDetector, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + GFTTDetector, Mat, ffi.Pointer)>(); ffi.Pointer GaussianBlur( Mat src, @@ -5034,9 +5697,10 @@ class CvNative { late final _GaussianBlurPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Size, ffi.Double, ffi.Double, ffi.Int)>>('GaussianBlur'); - late final _GaussianBlur = - _GaussianBlurPtr.asFunction Function(Mat, Mat, Size, double, double, int)>(); + ffi.Pointer Function(Mat, Mat, Size, ffi.Double, ffi.Double, + ffi.Int)>>('GaussianBlur'); + late final _GaussianBlur = _GaussianBlurPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Size, double, double, int)>(); ffi.Pointer GaussianBlur_Async( Mat src, @@ -5058,10 +5722,11 @@ class CvNative { late final _GaussianBlur_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Size, ffi.Double, ffi.Double, ffi.Int, CvCallback_1)>>('GaussianBlur_Async'); + ffi.Pointer Function(Mat, Size, ffi.Double, ffi.Double, + ffi.Int, CvCallback_1)>>('GaussianBlur_Async'); late final _GaussianBlur_Async = _GaussianBlur_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, Size, double, double, int, CvCallback_1)>(); + ffi.Pointer Function( + Mat, Size, double, double, int, CvCallback_1)>(); ffi.Pointer GetAffineTransform( VecPoint src, @@ -5075,9 +5740,10 @@ class CvNative { ); } - late final _GetAffineTransformPtr = - _lookup Function(VecPoint, VecPoint, ffi.Pointer)>>( - 'GetAffineTransform'); + late final _GetAffineTransformPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, VecPoint, ffi.Pointer)>>('GetAffineTransform'); late final _GetAffineTransform = _GetAffineTransformPtr.asFunction< ffi.Pointer Function(VecPoint, VecPoint, ffi.Pointer)>(); @@ -5093,11 +5759,13 @@ class CvNative { ); } - late final _GetAffineTransform2fPtr = - _lookup Function(VecPoint2f, VecPoint2f, ffi.Pointer)>>( - 'GetAffineTransform2f'); + late final _GetAffineTransform2fPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecPoint2f, VecPoint2f, + ffi.Pointer)>>('GetAffineTransform2f'); late final _GetAffineTransform2f = _GetAffineTransform2fPtr.asFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, ffi.Pointer)>(); + ffi.Pointer Function( + VecPoint2f, VecPoint2f, ffi.Pointer)>(); ffi.Pointer GetCVTickCount( ffi.Pointer rval, @@ -5107,10 +5775,12 @@ class CvNative { ); } - late final _GetCVTickCountPtr = - _lookup Function(ffi.Pointer)>>('GetCVTickCount'); - late final _GetCVTickCount = - _GetCVTickCountPtr.asFunction Function(ffi.Pointer)>(); + late final _GetCVTickCountPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('GetCVTickCount'); + late final _GetCVTickCount = _GetCVTickCountPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer GetGaussianKernel( int ksize, @@ -5127,10 +5797,11 @@ class CvNative { } late final _GetGaussianKernelPtr = _lookup< - ffi.NativeFunction Function(ffi.Int, ffi.Double, ffi.Int, ffi.Pointer)>>( - 'GetGaussianKernel'); - late final _GetGaussianKernel = - _GetGaussianKernelPtr.asFunction Function(int, double, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Double, ffi.Int, + ffi.Pointer)>>('GetGaussianKernel'); + late final _GetGaussianKernel = _GetGaussianKernelPtr.asFunction< + ffi.Pointer Function(int, double, int, ffi.Pointer)>(); ffi.Pointer GetNumThreads( ffi.Pointer rval, @@ -5140,10 +5811,12 @@ class CvNative { ); } - late final _GetNumThreadsPtr = - _lookup Function(ffi.Pointer)>>('GetNumThreads'); - late final _GetNumThreads = - _GetNumThreadsPtr.asFunction Function(ffi.Pointer)>(); + late final _GetNumThreadsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('GetNumThreads'); + late final _GetNumThreads = _GetNumThreadsPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer GetOptimalNewCameraMatrixWithParams( Mat cameraMatrix, @@ -5169,11 +5842,19 @@ class CvNative { late final _GetOptimalNewCameraMatrixWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Size, ffi.Double, Size, ffi.Pointer, ffi.Bool, + ffi.Pointer Function( + Mat, + Mat, + Size, + ffi.Double, + Size, + ffi.Pointer, + ffi.Bool, ffi.Pointer)>>('GetOptimalNewCameraMatrixWithParams'); - late final _GetOptimalNewCameraMatrixWithParams = _GetOptimalNewCameraMatrixWithParamsPtr.asFunction< - ffi.Pointer Function( - Mat, Mat, Size, double, Size, ffi.Pointer, bool, ffi.Pointer)>(); + late final _GetOptimalNewCameraMatrixWithParams = + _GetOptimalNewCameraMatrixWithParamsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Size, double, Size, + ffi.Pointer, bool, ffi.Pointer)>(); ffi.Pointer GetPerspectiveTransform( VecPoint src, @@ -5190,10 +5871,12 @@ class CvNative { } late final _GetPerspectiveTransformPtr = _lookup< - ffi.NativeFunction Function(VecPoint, VecPoint, ffi.Pointer, ffi.Int)>>( - 'GetPerspectiveTransform'); + ffi.NativeFunction< + ffi.Pointer Function(VecPoint, VecPoint, ffi.Pointer, + ffi.Int)>>('GetPerspectiveTransform'); late final _GetPerspectiveTransform = _GetPerspectiveTransformPtr.asFunction< - ffi.Pointer Function(VecPoint, VecPoint, ffi.Pointer, int)>(); + ffi.Pointer Function( + VecPoint, VecPoint, ffi.Pointer, int)>(); ffi.Pointer GetPerspectiveTransform2f( VecPoint2f src, @@ -5210,11 +5893,13 @@ class CvNative { } late final _GetPerspectiveTransform2fPtr = _lookup< - ffi - .NativeFunction Function(VecPoint2f, VecPoint2f, ffi.Pointer, ffi.Int)>>( - 'GetPerspectiveTransform2f'); - late final _GetPerspectiveTransform2f = _GetPerspectiveTransform2fPtr.asFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, ffi.Pointer, int)>(); + ffi.NativeFunction< + ffi.Pointer Function(VecPoint2f, VecPoint2f, + ffi.Pointer, ffi.Int)>>('GetPerspectiveTransform2f'); + late final _GetPerspectiveTransform2f = + _GetPerspectiveTransform2fPtr.asFunction< + ffi.Pointer Function( + VecPoint2f, VecPoint2f, ffi.Pointer, int)>(); ffi.Pointer GetRectSubPix( Mat src, @@ -5230,10 +5915,12 @@ class CvNative { ); } - late final _GetRectSubPixPtr = - _lookup Function(Mat, Size, Point2f, Mat)>>('GetRectSubPix'); - late final _GetRectSubPix = - _GetRectSubPixPtr.asFunction Function(Mat, Size, Point2f, Mat)>(); + late final _GetRectSubPixPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Size, Point2f, Mat)>>('GetRectSubPix'); + late final _GetRectSubPix = _GetRectSubPixPtr.asFunction< + ffi.Pointer Function(Mat, Size, Point2f, Mat)>(); ffi.Pointer GetRotationMatrix2D( Point2f center, @@ -5250,11 +5937,12 @@ class CvNative { } late final _GetRotationMatrix2DPtr = _lookup< - ffi - .NativeFunction Function(Point2f, ffi.Double, ffi.Double, ffi.Pointer)>>( - 'GetRotationMatrix2D'); + ffi.NativeFunction< + ffi.Pointer Function(Point2f, ffi.Double, ffi.Double, + ffi.Pointer)>>('GetRotationMatrix2D'); late final _GetRotationMatrix2D = _GetRotationMatrix2DPtr.asFunction< - ffi.Pointer Function(Point2f, double, double, ffi.Pointer)>(); + ffi.Pointer Function( + Point2f, double, double, ffi.Pointer)>(); ffi.Pointer GetStructuringElement( int shape, @@ -5268,11 +5956,12 @@ class CvNative { ); } - late final _GetStructuringElementPtr = - _lookup Function(ffi.Int, Size, ffi.Pointer)>>( - 'GetStructuringElement'); - late final _GetStructuringElement = - _GetStructuringElementPtr.asFunction Function(int, Size, ffi.Pointer)>(); + late final _GetStructuringElementPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int, Size, ffi.Pointer)>>('GetStructuringElement'); + late final _GetStructuringElement = _GetStructuringElementPtr.asFunction< + ffi.Pointer Function(int, Size, ffi.Pointer)>(); ffi.Pointer GetTextSizeWithBaseline( ffi.Pointer text, @@ -5294,11 +5983,16 @@ class CvNative { late final _GetTextSizeWithBaselinePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, ffi.Double, ffi.Int, - ffi.Pointer, ffi.Pointer)>>('GetTextSizeWithBaseline'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Double, + ffi.Int, + ffi.Pointer, + ffi.Pointer)>>('GetTextSizeWithBaseline'); late final _GetTextSizeWithBaseline = _GetTextSizeWithBaselinePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, int, double, int, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, int, double, int, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer GetTickFrequency( ffi.Pointer rval, @@ -5308,11 +6002,12 @@ class CvNative { ); } - late final _GetTickFrequencyPtr = - _lookup Function(ffi.Pointer)>>( - 'GetTickFrequency'); - late final _GetTickFrequency = - _GetTickFrequencyPtr.asFunction Function(ffi.Pointer)>(); + late final _GetTickFrequencyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('GetTickFrequency'); + late final _GetTickFrequency = _GetTickFrequencyPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer GoodFeaturesToTrack( Mat img, @@ -5340,11 +6035,19 @@ class CvNative { late final _GoodFeaturesToTrackPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer, ffi.Int, ffi.Double, ffi.Double, Mat, - ffi.Int, ffi.Bool, ffi.Double)>>('GoodFeaturesToTrack'); + ffi.Pointer Function( + Mat, + ffi.Pointer, + ffi.Int, + ffi.Double, + ffi.Double, + Mat, + ffi.Int, + ffi.Bool, + ffi.Double)>>('GoodFeaturesToTrack'); late final _GoodFeaturesToTrack = _GoodFeaturesToTrackPtr.asFunction< - ffi.Pointer Function( - Mat, ffi.Pointer, int, double, double, Mat, int, bool, double)>(); + ffi.Pointer Function(Mat, ffi.Pointer, int, double, + double, Mat, int, bool, double)>(); ffi.Pointer GoodFeaturesToTrackWithGradient( Mat img, @@ -5374,11 +6077,21 @@ class CvNative { late final _GoodFeaturesToTrackWithGradientPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer, ffi.Int, ffi.Double, ffi.Double, Mat, - ffi.Int, ffi.Int, ffi.Bool, ffi.Double)>>('GoodFeaturesToTrackWithGradient'); - late final _GoodFeaturesToTrackWithGradient = _GoodFeaturesToTrackWithGradientPtr.asFunction< - ffi.Pointer Function( - Mat, ffi.Pointer, int, double, double, Mat, int, int, bool, double)>(); + ffi.Pointer Function( + Mat, + ffi.Pointer, + ffi.Int, + ffi.Double, + ffi.Double, + Mat, + ffi.Int, + ffi.Int, + ffi.Bool, + ffi.Double)>>('GoodFeaturesToTrackWithGradient'); + late final _GoodFeaturesToTrackWithGradient = + _GoodFeaturesToTrackWithGradientPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer, int, + double, double, Mat, int, int, bool, double)>(); ffi.Pointer GrabCut( Mat img, @@ -5400,11 +6113,12 @@ class CvNative { ); } - late final _GrabCutPtr = - _lookup Function(Mat, Mat, Rect, Mat, Mat, ffi.Int, ffi.Int)>>( - 'GrabCut'); - late final _GrabCut = - _GrabCutPtr.asFunction Function(Mat, Mat, Rect, Mat, Mat, int, int)>(); + late final _GrabCutPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Rect, Mat, Mat, ffi.Int, ffi.Int)>>('GrabCut'); + late final _GrabCut = _GrabCutPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Rect, Mat, Mat, int, int)>(); ffi.Pointer GroupRectangles( VecRect rects, @@ -5418,11 +6132,12 @@ class CvNative { ); } - late final _GroupRectanglesPtr = - _lookup Function(VecRect, ffi.Int, ffi.Double)>>( - 'GroupRectangles'); - late final _GroupRectangles = - _GroupRectanglesPtr.asFunction Function(VecRect, int, double)>(); + late final _GroupRectanglesPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecRect, ffi.Int, ffi.Double)>>('GroupRectangles'); + late final _GroupRectangles = _GroupRectanglesPtr.asFunction< + ffi.Pointer Function(VecRect, int, double)>(); ffi.Pointer GroupRectangles_Async( VecRect rects, @@ -5438,9 +6153,10 @@ class CvNative { ); } - late final _GroupRectangles_AsyncPtr = - _lookup Function(VecRect, ffi.Int, ffi.Double, CvCallback_0)>>( - 'GroupRectangles_Async'); + late final _GroupRectangles_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecRect, ffi.Int, ffi.Double, + CvCallback_0)>>('GroupRectangles_Async'); late final _GroupRectangles_Async = _GroupRectangles_AsyncPtr.asFunction< ffi.Pointer Function(VecRect, int, double, CvCallback_0)>(); @@ -5453,8 +6169,10 @@ class CvNative { } late final _HOGDescriptor_ClosePtr = - _lookup>('HOGDescriptor_Close'); - late final _HOGDescriptor_Close = _HOGDescriptor_ClosePtr.asFunction(); + _lookup>( + 'HOGDescriptor_Close'); + late final _HOGDescriptor_Close = + _HOGDescriptor_ClosePtr.asFunction(); ffi.Pointer HOGDescriptor_Compute( HOGDescriptor self, @@ -5476,11 +6194,16 @@ class CvNative { late final _HOGDescriptor_ComputePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, Size, Size, + ffi.Pointer Function( + HOGDescriptor, + Mat, + ffi.Pointer, + Size, + Size, ffi.Pointer)>>('HOGDescriptor_Compute'); late final _HOGDescriptor_Compute = _HOGDescriptor_ComputePtr.asFunction< - ffi.Pointer Function( - HOGDescriptor, Mat, ffi.Pointer, Size, Size, ffi.Pointer)>(); + ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, + Size, Size, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_Compute_Async( HOGDescriptor self, @@ -5499,10 +6222,13 @@ class CvNative { } late final _HOGDescriptor_Compute_AsyncPtr = _lookup< - ffi.NativeFunction Function(HOGDescriptor, Mat, Size, Size, CvCallback_2)>>( - 'HOGDescriptor_Compute_Async'); - late final _HOGDescriptor_Compute_Async = _HOGDescriptor_Compute_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, Size, Size, CvCallback_2)>(); + ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, Mat, Size, Size, + CvCallback_2)>>('HOGDescriptor_Compute_Async'); + late final _HOGDescriptor_Compute_Async = + _HOGDescriptor_Compute_AsyncPtr.asFunction< + ffi.Pointer Function( + HOGDescriptor, Mat, Size, Size, CvCallback_2)>(); ffi.Pointer HOGDescriptor_Detect( HOGDescriptor self, @@ -5528,11 +6254,18 @@ class CvNative { late final _HOGDescriptor_DetectPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, ffi.Pointer, - ffi.Double, Size, Size, ffi.Pointer)>>('HOGDescriptor_Detect'); + ffi.Pointer Function( + HOGDescriptor, + Mat, + ffi.Pointer, + ffi.Pointer, + ffi.Double, + Size, + Size, + ffi.Pointer)>>('HOGDescriptor_Detect'); late final _HOGDescriptor_Detect = _HOGDescriptor_DetectPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, ffi.Pointer, - double, Size, Size, ffi.Pointer)>(); + ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, + ffi.Pointer, double, Size, Size, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_Detect2( HOGDescriptor self, @@ -5556,11 +6289,17 @@ class CvNative { late final _HOGDescriptor_Detect2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, ffi.Double, Size, Size, + ffi.Pointer Function( + HOGDescriptor, + Mat, + ffi.Pointer, + ffi.Double, + Size, + Size, ffi.Pointer)>>('HOGDescriptor_Detect2'); late final _HOGDescriptor_Detect2 = _HOGDescriptor_Detect2Ptr.asFunction< - ffi.Pointer Function( - HOGDescriptor, Mat, ffi.Pointer, double, Size, Size, ffi.Pointer)>(); + ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer, + double, Size, Size, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_Detect2_Async( HOGDescriptor self, @@ -5582,10 +6321,12 @@ class CvNative { late final _HOGDescriptor_Detect2_AsyncPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, Mat, ffi.Double, Size, + Size, CvCallback_2)>>('HOGDescriptor_Detect2_Async'); + late final _HOGDescriptor_Detect2_Async = + _HOGDescriptor_Detect2_AsyncPtr.asFunction< ffi.Pointer Function( - HOGDescriptor, Mat, ffi.Double, Size, Size, CvCallback_2)>>('HOGDescriptor_Detect2_Async'); - late final _HOGDescriptor_Detect2_Async = _HOGDescriptor_Detect2_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, double, Size, Size, CvCallback_2)>(); + HOGDescriptor, Mat, double, Size, Size, CvCallback_2)>(); ffi.Pointer HOGDescriptor_DetectMultiScale( HOGDescriptor self, @@ -5599,11 +6340,14 @@ class CvNative { ); } - late final _HOGDescriptor_DetectMultiScalePtr = - _lookup Function(HOGDescriptor, Mat, ffi.Pointer)>>( - 'HOGDescriptor_DetectMultiScale'); - late final _HOGDescriptor_DetectMultiScale = _HOGDescriptor_DetectMultiScalePtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, ffi.Pointer)>(); + late final _HOGDescriptor_DetectMultiScalePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, Mat, + ffi.Pointer)>>('HOGDescriptor_DetectMultiScale'); + late final _HOGDescriptor_DetectMultiScale = + _HOGDescriptor_DetectMultiScalePtr.asFunction< + ffi.Pointer Function( + HOGDescriptor, Mat, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_DetectMultiScaleWithParams( HOGDescriptor self, @@ -5630,13 +6374,22 @@ class CvNative { } late final _HOGDescriptor_DetectMultiScaleWithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, Mat, ffi.Double, Size, Size, ffi.Double, ffi.Double, - ffi.Bool, ffi.Pointer)>>('HOGDescriptor_DetectMultiScaleWithParams'); + ffi.NativeFunction< + ffi.Pointer Function( + HOGDescriptor, + Mat, + ffi.Double, + Size, + Size, + ffi.Double, + ffi.Double, + ffi.Bool, + ffi.Pointer)>>( + 'HOGDescriptor_DetectMultiScaleWithParams'); late final _HOGDescriptor_DetectMultiScaleWithParams = _HOGDescriptor_DetectMultiScaleWithParamsPtr.asFunction< - ffi.Pointer Function( - HOGDescriptor, Mat, double, Size, Size, double, double, bool, ffi.Pointer)>(); + ffi.Pointer Function(HOGDescriptor, Mat, double, Size, Size, + double, double, bool, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_DetectMultiScaleWithParams_Async( HOGDescriptor self, @@ -5664,12 +6417,20 @@ class CvNative { late final _HOGDescriptor_DetectMultiScaleWithParams_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, Mat, ffi.Double, Size, Size, ffi.Double, ffi.Double, - ffi.Bool, CvCallback_1)>>('HOGDescriptor_DetectMultiScaleWithParams_Async'); + ffi.Pointer Function( + HOGDescriptor, + Mat, + ffi.Double, + Size, + Size, + ffi.Double, + ffi.Double, + ffi.Bool, + CvCallback_1)>>('HOGDescriptor_DetectMultiScaleWithParams_Async'); late final _HOGDescriptor_DetectMultiScaleWithParams_Async = _HOGDescriptor_DetectMultiScaleWithParams_AsyncPtr.asFunction< - ffi.Pointer Function( - HOGDescriptor, Mat, double, Size, Size, double, double, bool, CvCallback_1)>(); + ffi.Pointer Function(HOGDescriptor, Mat, double, Size, Size, + double, double, bool, CvCallback_1)>(); ffi.Pointer HOGDescriptor_DetectMultiScale_Async( HOGDescriptor self, @@ -5683,11 +6444,13 @@ class CvNative { ); } - late final _HOGDescriptor_DetectMultiScale_AsyncPtr = - _lookup Function(HOGDescriptor, Mat, CvCallback_1)>>( - 'HOGDescriptor_DetectMultiScale_Async'); - late final _HOGDescriptor_DetectMultiScale_Async = _HOGDescriptor_DetectMultiScale_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, CvCallback_1)>(); + late final _HOGDescriptor_DetectMultiScale_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, Mat, + CvCallback_1)>>('HOGDescriptor_DetectMultiScale_Async'); + late final _HOGDescriptor_DetectMultiScale_Async = + _HOGDescriptor_DetectMultiScale_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, Mat, CvCallback_1)>(); ffi.Pointer HOGDescriptor_Detect_Async( HOGDescriptor self, @@ -5709,10 +6472,12 @@ class CvNative { late final _HOGDescriptor_Detect_AsyncPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, Mat, ffi.Double, Size, + Size, CvCallback_3)>>('HOGDescriptor_Detect_Async'); + late final _HOGDescriptor_Detect_Async = + _HOGDescriptor_Detect_AsyncPtr.asFunction< ffi.Pointer Function( - HOGDescriptor, Mat, ffi.Double, Size, Size, CvCallback_3)>>('HOGDescriptor_Detect_Async'); - late final _HOGDescriptor_Detect_Async = _HOGDescriptor_Detect_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, double, Size, Size, CvCallback_3)>(); + HOGDescriptor, Mat, double, Size, Size, CvCallback_3)>(); ffi.Pointer HOGDescriptor_Load( HOGDescriptor self, @@ -5728,10 +6493,11 @@ class CvNative { late final _HOGDescriptor_LoadPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - HOGDescriptor, ffi.Pointer, ffi.Pointer)>>('HOGDescriptor_Load'); + ffi.Pointer Function(HOGDescriptor, ffi.Pointer, + ffi.Pointer)>>('HOGDescriptor_Load'); late final _HOGDescriptor_Load = _HOGDescriptor_LoadPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + HOGDescriptor, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_Load_Async( HOGDescriptor self, @@ -5747,10 +6513,12 @@ class CvNative { late final _HOGDescriptor_Load_AsyncPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, ffi.Pointer, + CvCallback_1)>>('HOGDescriptor_Load_Async'); + late final _HOGDescriptor_Load_Async = + _HOGDescriptor_Load_AsyncPtr.asFunction< ffi.Pointer Function( - HOGDescriptor, ffi.Pointer, CvCallback_1)>>('HOGDescriptor_Load_Async'); - late final _HOGDescriptor_Load_Async = _HOGDescriptor_Load_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, ffi.Pointer, CvCallback_1)>(); + HOGDescriptor, ffi.Pointer, CvCallback_1)>(); ffi.Pointer HOGDescriptor_New( ffi.Pointer rval, @@ -5760,11 +6528,12 @@ class CvNative { ); } - late final _HOGDescriptor_NewPtr = - _lookup Function(ffi.Pointer)>>( - 'HOGDescriptor_New'); - late final _HOGDescriptor_New = - _HOGDescriptor_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _HOGDescriptor_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('HOGDescriptor_New'); + late final _HOGDescriptor_New = _HOGDescriptor_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer HOGDescriptor_NewFromFile( ffi.Pointer filename, @@ -5777,11 +6546,13 @@ class CvNative { } late final _HOGDescriptor_NewFromFilePtr = _lookup< - ffi - .NativeFunction Function(ffi.Pointer, ffi.Pointer)>>( - 'HOGDescriptor_NewFromFile'); - late final _HOGDescriptor_NewFromFile = _HOGDescriptor_NewFromFilePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer)>>('HOGDescriptor_NewFromFile'); + late final _HOGDescriptor_NewFromFile = + _HOGDescriptor_NewFromFilePtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_NewFromFile_Async( ffi.Pointer filename, @@ -5793,11 +6564,14 @@ class CvNative { ); } - late final _HOGDescriptor_NewFromFile_AsyncPtr = - _lookup Function(ffi.Pointer, CvCallback_1)>>( - 'HOGDescriptor_NewFromFile_Async'); - late final _HOGDescriptor_NewFromFile_Async = _HOGDescriptor_NewFromFile_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, CvCallback_1)>(); + late final _HOGDescriptor_NewFromFile_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + CvCallback_1)>>('HOGDescriptor_NewFromFile_Async'); + late final _HOGDescriptor_NewFromFile_Async = + _HOGDescriptor_NewFromFile_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, CvCallback_1)>(); ffi.Pointer HOGDescriptor_New_Async( CvCallback_1 callback, @@ -5808,9 +6582,10 @@ class CvNative { } late final _HOGDescriptor_New_AsyncPtr = - _lookup Function(CvCallback_1)>>('HOGDescriptor_New_Async'); - late final _HOGDescriptor_New_Async = - _HOGDescriptor_New_AsyncPtr.asFunction Function(CvCallback_1)>(); + _lookup Function(CvCallback_1)>>( + 'HOGDescriptor_New_Async'); + late final _HOGDescriptor_New_Async = _HOGDescriptor_New_AsyncPtr.asFunction< + ffi.Pointer Function(CvCallback_1)>(); ffi.Pointer HOGDescriptor_SetSVMDetector( HOGDescriptor self, @@ -5822,11 +6597,12 @@ class CvNative { ); } - late final _HOGDescriptor_SetSVMDetectorPtr = - _lookup Function(HOGDescriptor, VecFloat)>>( - 'HOGDescriptor_SetSVMDetector'); - late final _HOGDescriptor_SetSVMDetector = - _HOGDescriptor_SetSVMDetectorPtr.asFunction Function(HOGDescriptor, VecFloat)>(); + late final _HOGDescriptor_SetSVMDetectorPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + HOGDescriptor, VecFloat)>>('HOGDescriptor_SetSVMDetector'); + late final _HOGDescriptor_SetSVMDetector = _HOGDescriptor_SetSVMDetectorPtr + .asFunction Function(HOGDescriptor, VecFloat)>(); ffi.Pointer HOGDescriptor_SetSVMDetector_Async( HOGDescriptor self, @@ -5840,11 +6616,14 @@ class CvNative { ); } - late final _HOGDescriptor_SetSVMDetector_AsyncPtr = - _lookup Function(HOGDescriptor, VecFloat, CvCallback_0)>>( - 'HOGDescriptor_SetSVMDetector_Async'); - late final _HOGDescriptor_SetSVMDetector_Async = _HOGDescriptor_SetSVMDetector_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, VecFloat, CvCallback_0)>(); + late final _HOGDescriptor_SetSVMDetector_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, VecFloat, + CvCallback_0)>>('HOGDescriptor_SetSVMDetector_Async'); + late final _HOGDescriptor_SetSVMDetector_Async = + _HOGDescriptor_SetSVMDetector_AsyncPtr.asFunction< + ffi.Pointer Function( + HOGDescriptor, VecFloat, CvCallback_0)>(); ffi.Pointer HOGDescriptor_computeGradient( HOGDescriptor self, @@ -5864,11 +6643,14 @@ class CvNative { ); } - late final _HOGDescriptor_computeGradientPtr = - _lookup Function(HOGDescriptor, Mat, Mat, Mat, Size, Size)>>( - 'HOGDescriptor_computeGradient'); - late final _HOGDescriptor_computeGradient = _HOGDescriptor_computeGradientPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, Mat, Mat, Size, Size)>(); + late final _HOGDescriptor_computeGradientPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, Mat, Mat, Mat, Size, + Size)>>('HOGDescriptor_computeGradient'); + late final _HOGDescriptor_computeGradient = + _HOGDescriptor_computeGradientPtr.asFunction< + ffi.Pointer Function( + HOGDescriptor, Mat, Mat, Mat, Size, Size)>(); ffi.Pointer HOGDescriptor_computeGradient_Async( HOGDescriptor self, @@ -5892,10 +6674,12 @@ class CvNative { late final _HOGDescriptor_computeGradient_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, Mat, Mat, Mat, Size, Size, - CvCallback_0)>>('HOGDescriptor_computeGradient_Async'); - late final _HOGDescriptor_computeGradient_Async = _HOGDescriptor_computeGradient_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, Mat, Mat, Mat, Size, Size, CvCallback_0)>(); + ffi.Pointer Function(HOGDescriptor, Mat, Mat, Mat, Size, + Size, CvCallback_0)>>('HOGDescriptor_computeGradient_Async'); + late final _HOGDescriptor_computeGradient_Async = + _HOGDescriptor_computeGradient_AsyncPtr.asFunction< + ffi.Pointer Function( + HOGDescriptor, Mat, Mat, Mat, Size, Size, CvCallback_0)>(); ffi.Pointer HOGDescriptor_getDaimlerPeopleDetector( ffi.Pointer rval, @@ -5905,11 +6689,13 @@ class CvNative { ); } - late final _HOGDescriptor_getDaimlerPeopleDetectorPtr = - _lookup Function(ffi.Pointer)>>( - 'HOGDescriptor_getDaimlerPeopleDetector'); - late final _HOGDescriptor_getDaimlerPeopleDetector = _HOGDescriptor_getDaimlerPeopleDetectorPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _HOGDescriptor_getDaimlerPeopleDetectorPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>( + 'HOGDescriptor_getDaimlerPeopleDetector'); + late final _HOGDescriptor_getDaimlerPeopleDetector = + _HOGDescriptor_getDaimlerPeopleDetectorPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer HOGDescriptor_getDaimlerPeopleDetector_Async( CvCallback_1 callback, @@ -5922,8 +6708,9 @@ class CvNative { late final _HOGDescriptor_getDaimlerPeopleDetector_AsyncPtr = _lookup Function(CvCallback_1)>>( 'HOGDescriptor_getDaimlerPeopleDetector_Async'); - late final _HOGDescriptor_getDaimlerPeopleDetector_Async = _HOGDescriptor_getDaimlerPeopleDetector_AsyncPtr - .asFunction Function(CvCallback_1)>(); + late final _HOGDescriptor_getDaimlerPeopleDetector_Async = + _HOGDescriptor_getDaimlerPeopleDetector_AsyncPtr.asFunction< + ffi.Pointer Function(CvCallback_1)>(); ffi.Pointer HOGDescriptor_getDescriptorSize( HOGDescriptor self, @@ -5935,11 +6722,14 @@ class CvNative { ); } - late final _HOGDescriptor_getDescriptorSizePtr = - _lookup Function(HOGDescriptor, ffi.Pointer)>>( - 'HOGDescriptor_getDescriptorSize'); - late final _HOGDescriptor_getDescriptorSize = _HOGDescriptor_getDescriptorSizePtr.asFunction< - ffi.Pointer Function(HOGDescriptor, ffi.Pointer)>(); + late final _HOGDescriptor_getDescriptorSizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, + ffi.Pointer)>>('HOGDescriptor_getDescriptorSize'); + late final _HOGDescriptor_getDescriptorSize = + _HOGDescriptor_getDescriptorSizePtr.asFunction< + ffi.Pointer Function( + HOGDescriptor, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_getDescriptorSize_Async( HOGDescriptor self, @@ -5951,11 +6741,13 @@ class CvNative { ); } - late final _HOGDescriptor_getDescriptorSize_AsyncPtr = - _lookup Function(HOGDescriptor, CvCallback_1)>>( - 'HOGDescriptor_getDescriptorSize_Async'); - late final _HOGDescriptor_getDescriptorSize_Async = _HOGDescriptor_getDescriptorSize_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, CvCallback_1)>(); + late final _HOGDescriptor_getDescriptorSize_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, + CvCallback_1)>>('HOGDescriptor_getDescriptorSize_Async'); + late final _HOGDescriptor_getDescriptorSize_Async = + _HOGDescriptor_getDescriptorSize_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, CvCallback_1)>(); ffi.Pointer HOGDescriptor_getWinSigma( HOGDescriptor self, @@ -5967,11 +6759,14 @@ class CvNative { ); } - late final _HOGDescriptor_getWinSigmaPtr = - _lookup Function(HOGDescriptor, ffi.Pointer)>>( - 'HOGDescriptor_getWinSigma'); - late final _HOGDescriptor_getWinSigma = _HOGDescriptor_getWinSigmaPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, ffi.Pointer)>(); + late final _HOGDescriptor_getWinSigmaPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, + ffi.Pointer)>>('HOGDescriptor_getWinSigma'); + late final _HOGDescriptor_getWinSigma = + _HOGDescriptor_getWinSigmaPtr.asFunction< + ffi.Pointer Function( + HOGDescriptor, ffi.Pointer)>(); ffi.Pointer HOGDescriptor_getWinSigma_Async( HOGDescriptor self, @@ -5983,11 +6778,13 @@ class CvNative { ); } - late final _HOGDescriptor_getWinSigma_AsyncPtr = - _lookup Function(HOGDescriptor, CvCallback_1)>>( - 'HOGDescriptor_getWinSigma_Async'); - late final _HOGDescriptor_getWinSigma_Async = _HOGDescriptor_getWinSigma_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, CvCallback_1)>(); + late final _HOGDescriptor_getWinSigma_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + HOGDescriptor, CvCallback_1)>>('HOGDescriptor_getWinSigma_Async'); + late final _HOGDescriptor_getWinSigma_Async = + _HOGDescriptor_getWinSigma_AsyncPtr.asFunction< + ffi.Pointer Function(HOGDescriptor, CvCallback_1)>(); ffi.Pointer HOGDescriptor_groupRectangles( HOGDescriptor self, @@ -6007,10 +6804,12 @@ class CvNative { late final _HOGDescriptor_groupRectanglesPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(HOGDescriptor, VecRect, VecDouble, + ffi.Int, ffi.Double)>>('HOGDescriptor_groupRectangles'); + late final _HOGDescriptor_groupRectangles = + _HOGDescriptor_groupRectanglesPtr.asFunction< ffi.Pointer Function( - HOGDescriptor, VecRect, VecDouble, ffi.Int, ffi.Double)>>('HOGDescriptor_groupRectangles'); - late final _HOGDescriptor_groupRectangles = _HOGDescriptor_groupRectanglesPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, VecRect, VecDouble, int, double)>(); + HOGDescriptor, VecRect, VecDouble, int, double)>(); ffi.Pointer HOGDescriptor_groupRectangles_Async( HOGDescriptor self, @@ -6032,10 +6831,17 @@ class CvNative { late final _HOGDescriptor_groupRectangles_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(HOGDescriptor, VecRect, VecDouble, ffi.Int, ffi.Double, + ffi.Pointer Function( + HOGDescriptor, + VecRect, + VecDouble, + ffi.Int, + ffi.Double, CvCallback_0)>>('HOGDescriptor_groupRectangles_Async'); - late final _HOGDescriptor_groupRectangles_Async = _HOGDescriptor_groupRectangles_AsyncPtr.asFunction< - ffi.Pointer Function(HOGDescriptor, VecRect, VecDouble, int, double, CvCallback_0)>(); + late final _HOGDescriptor_groupRectangles_Async = + _HOGDescriptor_groupRectangles_AsyncPtr.asFunction< + ffi.Pointer Function( + HOGDescriptor, VecRect, VecDouble, int, double, CvCallback_0)>(); ffi.Pointer HOG_GetDefaultPeopleDetector( ffi.Pointer rval, @@ -6045,11 +6851,12 @@ class CvNative { ); } - late final _HOG_GetDefaultPeopleDetectorPtr = - _lookup Function(ffi.Pointer)>>( - 'HOG_GetDefaultPeopleDetector'); - late final _HOG_GetDefaultPeopleDetector = - _HOG_GetDefaultPeopleDetectorPtr.asFunction Function(ffi.Pointer)>(); + late final _HOG_GetDefaultPeopleDetectorPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('HOG_GetDefaultPeopleDetector'); + late final _HOG_GetDefaultPeopleDetector = _HOG_GetDefaultPeopleDetectorPtr + .asFunction Function(ffi.Pointer)>(); ffi.Pointer HOG_GetDefaultPeopleDetector_Async( CvCallback_1 callback, @@ -6063,7 +6870,8 @@ class CvNative { _lookup Function(CvCallback_1)>>( 'HOG_GetDefaultPeopleDetector_Async'); late final _HOG_GetDefaultPeopleDetector_Async = - _HOG_GetDefaultPeopleDetector_AsyncPtr.asFunction Function(CvCallback_1)>(); + _HOG_GetDefaultPeopleDetector_AsyncPtr.asFunction< + ffi.Pointer Function(CvCallback_1)>(); ffi.Pointer HoughCircles( Mat src, @@ -6081,11 +6889,12 @@ class CvNative { ); } - late final _HoughCirclesPtr = - _lookup Function(Mat, Mat, ffi.Int, ffi.Double, ffi.Double)>>( - 'HoughCircles'); - late final _HoughCircles = - _HoughCirclesPtr.asFunction Function(Mat, Mat, int, double, double)>(); + late final _HoughCirclesPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Double, ffi.Double)>>('HoughCircles'); + late final _HoughCircles = _HoughCirclesPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, double, double)>(); ffi.Pointer HoughCirclesWithParams( Mat src, @@ -6113,10 +6922,19 @@ class CvNative { late final _HoughCirclesWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Double, ffi.Double, ffi.Double, ffi.Double, - ffi.Int, ffi.Int)>>('HoughCirclesWithParams'); + ffi.Pointer Function( + Mat, + Mat, + ffi.Int, + ffi.Double, + ffi.Double, + ffi.Double, + ffi.Double, + ffi.Int, + ffi.Int)>>('HoughCirclesWithParams'); late final _HoughCirclesWithParams = _HoughCirclesWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, double, double, double, double, int, int)>(); + ffi.Pointer Function( + Mat, Mat, int, double, double, double, double, int, int)>(); ffi.Pointer HoughLines( Mat src, @@ -6144,10 +6962,19 @@ class CvNative { late final _HoughLinesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Double, ffi.Double, ffi.Int, ffi.Double, ffi.Double, - ffi.Double, ffi.Double)>>('HoughLines'); + ffi.Pointer Function( + Mat, + Mat, + ffi.Double, + ffi.Double, + ffi.Int, + ffi.Double, + ffi.Double, + ffi.Double, + ffi.Double)>>('HoughLines'); late final _HoughLines = _HoughLinesPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, double, int, double, double, double, double)>(); + ffi.Pointer Function( + Mat, Mat, double, double, int, double, double, double, double)>(); ffi.Pointer HoughLinesP( Mat src, @@ -6165,11 +6992,12 @@ class CvNative { ); } - late final _HoughLinesPPtr = - _lookup Function(Mat, Mat, ffi.Double, ffi.Double, ffi.Int)>>( - 'HoughLinesP'); - late final _HoughLinesP = - _HoughLinesPPtr.asFunction Function(Mat, Mat, double, double, int)>(); + late final _HoughLinesPPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Double, ffi.Double, ffi.Int)>>('HoughLinesP'); + late final _HoughLinesP = _HoughLinesPPtr.asFunction< + ffi.Pointer Function(Mat, Mat, double, double, int)>(); ffi.Pointer HoughLinesPWithParams( Mat src, @@ -6193,10 +7021,11 @@ class CvNative { late final _HoughLinesPWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Double, ffi.Double, ffi.Int, ffi.Double, ffi.Double)>>('HoughLinesPWithParams'); + ffi.Pointer Function(Mat, Mat, ffi.Double, ffi.Double, + ffi.Int, ffi.Double, ffi.Double)>>('HoughLinesPWithParams'); late final _HoughLinesPWithParams = _HoughLinesPWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, double, int, double, double)>(); + ffi.Pointer Function( + Mat, Mat, double, double, int, double, double)>(); ffi.Pointer HoughLinesPointSet( Mat points, @@ -6226,10 +7055,20 @@ class CvNative { late final _HoughLinesPointSetPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Double, ffi.Double, ffi.Double, - ffi.Double, ffi.Double, ffi.Double)>>('HoughLinesPointSet'); + ffi.Pointer Function( + Mat, + Mat, + ffi.Int, + ffi.Int, + ffi.Double, + ffi.Double, + ffi.Double, + ffi.Double, + ffi.Double, + ffi.Double)>>('HoughLinesPointSet'); late final _HoughLinesPointSet = _HoughLinesPointSetPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, int, double, double, double, double, double, double)>(); + ffi.Pointer Function(Mat, Mat, int, int, double, double, double, + double, double, double)>(); ffi.Pointer IlluminationChange( Mat src, @@ -6247,11 +7086,12 @@ class CvNative { ); } - late final _IlluminationChangePtr = - _lookup Function(Mat, Mat, Mat, ffi.Float, ffi.Float)>>( - 'IlluminationChange'); - late final _IlluminationChange = - _IlluminationChangePtr.asFunction Function(Mat, Mat, Mat, double, double)>(); + late final _IlluminationChangePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Float, ffi.Float)>>('IlluminationChange'); + late final _IlluminationChange = _IlluminationChangePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, double, double)>(); ffi.Pointer Image_IMDecode( VecUChar buf, @@ -6265,11 +7105,12 @@ class CvNative { ); } - late final _Image_IMDecodePtr = - _lookup Function(VecUChar, ffi.Int, ffi.Pointer)>>( - 'Image_IMDecode'); - late final _Image_IMDecode = - _Image_IMDecodePtr.asFunction Function(VecUChar, int, ffi.Pointer)>(); + late final _Image_IMDecodePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecUChar, ffi.Int, ffi.Pointer)>>('Image_IMDecode'); + late final _Image_IMDecode = _Image_IMDecodePtr.asFunction< + ffi.Pointer Function(VecUChar, int, ffi.Pointer)>(); ffi.Pointer Image_IMDecode_Async( VecUChar buf, @@ -6283,11 +7124,12 @@ class CvNative { ); } - late final _Image_IMDecode_AsyncPtr = - _lookup Function(VecUChar, ffi.Int, CvCallback_1)>>( - 'Image_IMDecode_Async'); - late final _Image_IMDecode_Async = - _Image_IMDecode_AsyncPtr.asFunction Function(VecUChar, int, CvCallback_1)>(); + late final _Image_IMDecode_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecUChar, ffi.Int, CvCallback_1)>>('Image_IMDecode_Async'); + late final _Image_IMDecode_Async = _Image_IMDecode_AsyncPtr.asFunction< + ffi.Pointer Function(VecUChar, int, CvCallback_1)>(); ffi.Pointer Image_IMEncode( ffi.Pointer fileExt, @@ -6305,11 +7147,11 @@ class CvNative { late final _Image_IMEncodePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, Mat, ffi.Pointer, ffi.Pointer)>>('Image_IMEncode'); + ffi.Pointer Function(ffi.Pointer, Mat, + ffi.Pointer, ffi.Pointer)>>('Image_IMEncode'); late final _Image_IMEncode = _Image_IMEncodePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, Mat, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, Mat, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Image_IMEncode_Async( ffi.Pointer fileExt, @@ -6323,11 +7165,13 @@ class CvNative { ); } - late final _Image_IMEncode_AsyncPtr = - _lookup Function(ffi.Pointer, Mat, CvCallback_2)>>( - 'Image_IMEncode_Async'); + late final _Image_IMEncode_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, Mat, + CvCallback_2)>>('Image_IMEncode_Async'); late final _Image_IMEncode_Async = _Image_IMEncode_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, Mat, CvCallback_2)>(); + ffi.Pointer Function( + ffi.Pointer, Mat, CvCallback_2)>(); ffi.Pointer Image_IMEncode_WithParams( ffi.Pointer fileExt, @@ -6347,11 +7191,16 @@ class CvNative { late final _Image_IMEncode_WithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, Mat, VecInt, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + Mat, + VecInt, + ffi.Pointer, ffi.Pointer)>>('Image_IMEncode_WithParams'); - late final _Image_IMEncode_WithParams = _Image_IMEncode_WithParamsPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, Mat, VecInt, ffi.Pointer, ffi.Pointer)>(); + late final _Image_IMEncode_WithParams = + _Image_IMEncode_WithParamsPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, Mat, VecInt, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Image_IMEncode_WithParams_Async( ffi.Pointer fileExt, @@ -6368,11 +7217,13 @@ class CvNative { } late final _Image_IMEncode_WithParams_AsyncPtr = _lookup< - ffi - .NativeFunction Function(ffi.Pointer, Mat, VecInt, CvCallback_2)>>( - 'Image_IMEncode_WithParams_Async'); - late final _Image_IMEncode_WithParams_Async = _Image_IMEncode_WithParams_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, Mat, VecInt, CvCallback_2)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, Mat, VecInt, + CvCallback_2)>>('Image_IMEncode_WithParams_Async'); + late final _Image_IMEncode_WithParams_Async = + _Image_IMEncode_WithParams_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, Mat, VecInt, CvCallback_2)>(); ffi.Pointer Image_IMRead( ffi.Pointer filename, @@ -6388,9 +7239,11 @@ class CvNative { late final _Image_IMReadPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int, ffi.Pointer)>>('Image_IMRead'); + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('Image_IMRead'); late final _Image_IMRead = _Image_IMReadPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer Image_IMRead_Async( ffi.Pointer filename, @@ -6405,10 +7258,12 @@ class CvNative { } late final _Image_IMRead_AsyncPtr = _lookup< - ffi.NativeFunction Function(ffi.Pointer, ffi.Int, CvCallback_1)>>( - 'Image_IMRead_Async'); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + CvCallback_1)>>('Image_IMRead_Async'); late final _Image_IMRead_Async = _Image_IMRead_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, CvCallback_1)>(); + ffi.Pointer Function( + ffi.Pointer, int, CvCallback_1)>(); ffi.Pointer Image_IMWrite( ffi.Pointer filename, @@ -6423,11 +7278,12 @@ class CvNative { } late final _Image_IMWritePtr = _lookup< - ffi - .NativeFunction Function(ffi.Pointer, Mat, ffi.Pointer)>>( - 'Image_IMWrite'); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, Mat, + ffi.Pointer)>>('Image_IMWrite'); late final _Image_IMWrite = _Image_IMWritePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, Mat, ffi.Pointer)>(); ffi.Pointer Image_IMWrite_Async( ffi.Pointer filename, @@ -6441,11 +7297,13 @@ class CvNative { ); } - late final _Image_IMWrite_AsyncPtr = - _lookup Function(ffi.Pointer, Mat, CvCallback_1)>>( - 'Image_IMWrite_Async'); + late final _Image_IMWrite_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, Mat, + CvCallback_1)>>('Image_IMWrite_Async'); late final _Image_IMWrite_Async = _Image_IMWrite_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, Mat, CvCallback_1)>(); + ffi.Pointer Function( + ffi.Pointer, Mat, CvCallback_1)>(); ffi.Pointer Image_IMWrite_WithParams( ffi.Pointer filename, @@ -6463,10 +7321,12 @@ class CvNative { late final _Image_IMWrite_WithParamsPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, Mat, VecInt, + ffi.Pointer)>>('Image_IMWrite_WithParams'); + late final _Image_IMWrite_WithParams = + _Image_IMWrite_WithParamsPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, Mat, VecInt, ffi.Pointer)>>('Image_IMWrite_WithParams'); - late final _Image_IMWrite_WithParams = _Image_IMWrite_WithParamsPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, Mat, VecInt, ffi.Pointer)>(); + ffi.Pointer, Mat, VecInt, ffi.Pointer)>(); ffi.Pointer Image_IMWrite_WithParams_Async( ffi.Pointer filename, @@ -6483,11 +7343,13 @@ class CvNative { } late final _Image_IMWrite_WithParams_AsyncPtr = _lookup< - ffi - .NativeFunction Function(ffi.Pointer, Mat, VecInt, CvCallback_1)>>( - 'Image_IMWrite_WithParams_Async'); - late final _Image_IMWrite_WithParams_Async = _Image_IMWrite_WithParams_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, Mat, VecInt, CvCallback_1)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, Mat, VecInt, + CvCallback_1)>>('Image_IMWrite_WithParams_Async'); + late final _Image_IMWrite_WithParams_Async = + _Image_IMWrite_WithParams_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, Mat, VecInt, CvCallback_1)>(); ffi.Pointer InitUndistortRectifyMap( Mat cameraMatrix, @@ -6512,10 +7374,12 @@ class CvNative { } late final _InitUndistortRectifyMapPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat, Mat, Size, ffi.Int, Mat, Mat)>>( - 'InitUndistortRectifyMap'); + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, Size, ffi.Int, Mat, + Mat)>>('InitUndistortRectifyMap'); late final _InitUndistortRectifyMap = _InitUndistortRectifyMapPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, Size, int, Mat, Mat)>(); + ffi.Pointer Function( + Mat, Mat, Mat, Mat, Size, int, Mat, Mat)>(); ffi.Pointer Integral( Mat src, @@ -6535,11 +7399,12 @@ class CvNative { ); } - late final _IntegralPtr = - _lookup Function(Mat, Mat, Mat, Mat, ffi.Int, ffi.Int)>>( - 'Integral'); - late final _Integral = - _IntegralPtr.asFunction Function(Mat, Mat, Mat, Mat, int, int)>(); + late final _IntegralPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, ffi.Int, ffi.Int)>>('Integral'); + late final _Integral = _IntegralPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, int, int)>(); ffi.Pointer InvertAffineTransform( Mat src, @@ -6552,9 +7417,10 @@ class CvNative { } late final _InvertAffineTransformPtr = - _lookup Function(Mat, Mat)>>('InvertAffineTransform'); - late final _InvertAffineTransform = - _InvertAffineTransformPtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'InvertAffineTransform'); + late final _InvertAffineTransform = _InvertAffineTransformPtr.asFunction< + ffi.Pointer Function(Mat, Mat)>(); void KAZE_Close( KAZEPtr a, @@ -6564,7 +7430,8 @@ class CvNative { ); } - late final _KAZE_ClosePtr = _lookup>('KAZE_Close'); + late final _KAZE_ClosePtr = + _lookup>('KAZE_Close'); late final _KAZE_Close = _KAZE_ClosePtr.asFunction(); ffi.Pointer KAZE_Create( @@ -6575,9 +7442,11 @@ class CvNative { ); } - late final _KAZE_CreatePtr = - _lookup Function(ffi.Pointer)>>('KAZE_Create'); - late final _KAZE_Create = _KAZE_CreatePtr.asFunction Function(ffi.Pointer)>(); + late final _KAZE_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('KAZE_Create'); + late final _KAZE_Create = _KAZE_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer KAZE_Detect( KAZE a, @@ -6591,11 +7460,12 @@ class CvNative { ); } - late final _KAZE_DetectPtr = - _lookup Function(KAZE, Mat, ffi.Pointer)>>( - 'KAZE_Detect'); - late final _KAZE_Detect = - _KAZE_DetectPtr.asFunction Function(KAZE, Mat, ffi.Pointer)>(); + late final _KAZE_DetectPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KAZE, Mat, ffi.Pointer)>>('KAZE_Detect'); + late final _KAZE_Detect = _KAZE_DetectPtr.asFunction< + ffi.Pointer Function(KAZE, Mat, ffi.Pointer)>(); ffi.Pointer KAZE_DetectAndCompute( KAZE a, @@ -6614,10 +7484,12 @@ class CvNative { } late final _KAZE_DetectAndComputePtr = _lookup< - ffi.NativeFunction Function(KAZE, Mat, Mat, Mat, ffi.Pointer)>>( - 'KAZE_DetectAndCompute'); + ffi.NativeFunction< + ffi.Pointer Function(KAZE, Mat, Mat, Mat, + ffi.Pointer)>>('KAZE_DetectAndCompute'); late final _KAZE_DetectAndCompute = _KAZE_DetectAndComputePtr.asFunction< - ffi.Pointer Function(KAZE, Mat, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + KAZE, Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer KMeans( Mat data, @@ -6643,10 +7515,11 @@ class CvNative { late final _KMeansPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, Mat, TermCriteria, ffi.Int, ffi.Int, Mat, ffi.Pointer)>>('KMeans'); + ffi.Pointer Function(Mat, ffi.Int, Mat, TermCriteria, + ffi.Int, ffi.Int, Mat, ffi.Pointer)>>('KMeans'); late final _KMeans = _KMeansPtr.asFunction< - ffi.Pointer Function(Mat, int, Mat, TermCriteria, int, int, Mat, ffi.Pointer)>(); + ffi.Pointer Function(Mat, int, Mat, TermCriteria, int, int, Mat, + ffi.Pointer)>(); ffi.Pointer KMeansPoints( VecPoint2f pts, @@ -6672,11 +7545,11 @@ class CvNative { late final _KMeansPointsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecPoint2f, ffi.Int, Mat, TermCriteria, ffi.Int, ffi.Int, Mat, - ffi.Pointer)>>('KMeansPoints'); + ffi.Pointer Function(VecPoint2f, ffi.Int, Mat, TermCriteria, + ffi.Int, ffi.Int, Mat, ffi.Pointer)>>('KMeansPoints'); late final _KMeansPoints = _KMeansPointsPtr.asFunction< - ffi.Pointer Function( - VecPoint2f, int, Mat, TermCriteria, int, int, Mat, ffi.Pointer)>(); + ffi.Pointer Function(VecPoint2f, int, Mat, TermCriteria, int, + int, Mat, ffi.Pointer)>(); void KalmanFilter_Close( KalmanFilterPtr self, @@ -6687,8 +7560,10 @@ class CvNative { } late final _KalmanFilter_ClosePtr = - _lookup>('KalmanFilter_Close'); - late final _KalmanFilter_Close = _KalmanFilter_ClosePtr.asFunction(); + _lookup>( + 'KalmanFilter_Close'); + late final _KalmanFilter_Close = + _KalmanFilter_ClosePtr.asFunction(); ffi.Pointer KalmanFilter_Correct( KalmanFilter self, @@ -6702,9 +7577,10 @@ class CvNative { ); } - late final _KalmanFilter_CorrectPtr = - _lookup Function(KalmanFilter, Mat, ffi.Pointer)>>( - 'KalmanFilter_Correct'); + late final _KalmanFilter_CorrectPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KalmanFilter, Mat, ffi.Pointer)>>('KalmanFilter_Correct'); late final _KalmanFilter_Correct = _KalmanFilter_CorrectPtr.asFunction< ffi.Pointer Function(KalmanFilter, Mat, ffi.Pointer)>(); @@ -6718,11 +7594,13 @@ class CvNative { ); } - late final _KalmanFilter_GetControlMatrixPtr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetControlMatrix'); - late final _KalmanFilter_GetControlMatrix = _KalmanFilter_GetControlMatrixPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetControlMatrixPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(KalmanFilter, + ffi.Pointer)>>('KalmanFilter_GetControlMatrix'); + late final _KalmanFilter_GetControlMatrix = + _KalmanFilter_GetControlMatrixPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetErrorCovPost( KalmanFilter self, @@ -6734,11 +7612,13 @@ class CvNative { ); } - late final _KalmanFilter_GetErrorCovPostPtr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetErrorCovPost'); - late final _KalmanFilter_GetErrorCovPost = _KalmanFilter_GetErrorCovPostPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetErrorCovPostPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetErrorCovPost'); + late final _KalmanFilter_GetErrorCovPost = + _KalmanFilter_GetErrorCovPostPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetErrorCovPre( KalmanFilter self, @@ -6750,11 +7630,13 @@ class CvNative { ); } - late final _KalmanFilter_GetErrorCovPrePtr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetErrorCovPre'); - late final _KalmanFilter_GetErrorCovPre = _KalmanFilter_GetErrorCovPrePtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetErrorCovPrePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetErrorCovPre'); + late final _KalmanFilter_GetErrorCovPre = + _KalmanFilter_GetErrorCovPrePtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetGain( KalmanFilter self, @@ -6766,11 +7648,12 @@ class CvNative { ); } - late final _KalmanFilter_GetGainPtr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetGain'); - late final _KalmanFilter_GetGain = - _KalmanFilter_GetGainPtr.asFunction Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetGainPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetGain'); + late final _KalmanFilter_GetGain = _KalmanFilter_GetGainPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetMeasurementMatrix( KalmanFilter self, @@ -6782,11 +7665,13 @@ class CvNative { ); } - late final _KalmanFilter_GetMeasurementMatrixPtr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetMeasurementMatrix'); - late final _KalmanFilter_GetMeasurementMatrix = _KalmanFilter_GetMeasurementMatrixPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetMeasurementMatrixPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(KalmanFilter, + ffi.Pointer)>>('KalmanFilter_GetMeasurementMatrix'); + late final _KalmanFilter_GetMeasurementMatrix = + _KalmanFilter_GetMeasurementMatrixPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetMeasurementNoiseCov( KalmanFilter self, @@ -6798,11 +7683,13 @@ class CvNative { ); } - late final _KalmanFilter_GetMeasurementNoiseCovPtr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetMeasurementNoiseCov'); - late final _KalmanFilter_GetMeasurementNoiseCov = _KalmanFilter_GetMeasurementNoiseCovPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetMeasurementNoiseCovPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(KalmanFilter, + ffi.Pointer)>>('KalmanFilter_GetMeasurementNoiseCov'); + late final _KalmanFilter_GetMeasurementNoiseCov = + _KalmanFilter_GetMeasurementNoiseCovPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetProcessNoiseCov( KalmanFilter self, @@ -6814,11 +7701,13 @@ class CvNative { ); } - late final _KalmanFilter_GetProcessNoiseCovPtr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetProcessNoiseCov'); - late final _KalmanFilter_GetProcessNoiseCov = _KalmanFilter_GetProcessNoiseCovPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetProcessNoiseCovPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(KalmanFilter, + ffi.Pointer)>>('KalmanFilter_GetProcessNoiseCov'); + late final _KalmanFilter_GetProcessNoiseCov = + _KalmanFilter_GetProcessNoiseCovPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetStatePost( KalmanFilter self, @@ -6830,11 +7719,13 @@ class CvNative { ); } - late final _KalmanFilter_GetStatePostPtr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetStatePost'); - late final _KalmanFilter_GetStatePost = _KalmanFilter_GetStatePostPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetStatePostPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetStatePost'); + late final _KalmanFilter_GetStatePost = + _KalmanFilter_GetStatePostPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetStatePre( KalmanFilter self, @@ -6846,11 +7737,13 @@ class CvNative { ); } - late final _KalmanFilter_GetStatePrePtr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetStatePre'); - late final _KalmanFilter_GetStatePre = _KalmanFilter_GetStatePrePtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetStatePrePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetStatePre'); + late final _KalmanFilter_GetStatePre = + _KalmanFilter_GetStatePrePtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetTemp1( KalmanFilter self, @@ -6862,11 +7755,12 @@ class CvNative { ); } - late final _KalmanFilter_GetTemp1Ptr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetTemp1'); - late final _KalmanFilter_GetTemp1 = - _KalmanFilter_GetTemp1Ptr.asFunction Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetTemp1Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetTemp1'); + late final _KalmanFilter_GetTemp1 = _KalmanFilter_GetTemp1Ptr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetTemp2( KalmanFilter self, @@ -6878,11 +7772,12 @@ class CvNative { ); } - late final _KalmanFilter_GetTemp2Ptr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetTemp2'); - late final _KalmanFilter_GetTemp2 = - _KalmanFilter_GetTemp2Ptr.asFunction Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetTemp2Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetTemp2'); + late final _KalmanFilter_GetTemp2 = _KalmanFilter_GetTemp2Ptr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetTemp3( KalmanFilter self, @@ -6894,11 +7789,12 @@ class CvNative { ); } - late final _KalmanFilter_GetTemp3Ptr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetTemp3'); - late final _KalmanFilter_GetTemp3 = - _KalmanFilter_GetTemp3Ptr.asFunction Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetTemp3Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetTemp3'); + late final _KalmanFilter_GetTemp3 = _KalmanFilter_GetTemp3Ptr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetTemp4( KalmanFilter self, @@ -6910,11 +7806,12 @@ class CvNative { ); } - late final _KalmanFilter_GetTemp4Ptr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetTemp4'); - late final _KalmanFilter_GetTemp4 = - _KalmanFilter_GetTemp4Ptr.asFunction Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetTemp4Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetTemp4'); + late final _KalmanFilter_GetTemp4 = _KalmanFilter_GetTemp4Ptr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetTemp5( KalmanFilter self, @@ -6926,11 +7823,12 @@ class CvNative { ); } - late final _KalmanFilter_GetTemp5Ptr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetTemp5'); - late final _KalmanFilter_GetTemp5 = - _KalmanFilter_GetTemp5Ptr.asFunction Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetTemp5Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KalmanFilter, ffi.Pointer)>>('KalmanFilter_GetTemp5'); + late final _KalmanFilter_GetTemp5 = _KalmanFilter_GetTemp5Ptr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_GetTransitionMatrix( KalmanFilter self, @@ -6942,11 +7840,13 @@ class CvNative { ); } - late final _KalmanFilter_GetTransitionMatrixPtr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_GetTransitionMatrix'); - late final _KalmanFilter_GetTransitionMatrix = _KalmanFilter_GetTransitionMatrixPtr.asFunction< - ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_GetTransitionMatrixPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(KalmanFilter, + ffi.Pointer)>>('KalmanFilter_GetTransitionMatrix'); + late final _KalmanFilter_GetTransitionMatrix = + _KalmanFilter_GetTransitionMatrixPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_Init( KalmanFilter self, @@ -6960,11 +7860,12 @@ class CvNative { ); } - late final _KalmanFilter_InitPtr = - _lookup Function(KalmanFilter, ffi.Int, ffi.Int)>>( - 'KalmanFilter_Init'); - late final _KalmanFilter_Init = - _KalmanFilter_InitPtr.asFunction Function(KalmanFilter, int, int)>(); + late final _KalmanFilter_InitPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KalmanFilter, ffi.Int, ffi.Int)>>('KalmanFilter_Init'); + late final _KalmanFilter_Init = _KalmanFilter_InitPtr.asFunction< + ffi.Pointer Function(KalmanFilter, int, int)>(); ffi.Pointer KalmanFilter_InitWithParams( KalmanFilter self, @@ -6983,11 +7884,12 @@ class CvNative { } late final _KalmanFilter_InitWithParamsPtr = _lookup< - ffi - .NativeFunction Function(KalmanFilter, ffi.Int, ffi.Int, ffi.Int, ffi.Int)>>( - 'KalmanFilter_InitWithParams'); - late final _KalmanFilter_InitWithParams = _KalmanFilter_InitWithParamsPtr.asFunction< - ffi.Pointer Function(KalmanFilter, int, int, int, int)>(); + ffi.NativeFunction< + ffi.Pointer Function(KalmanFilter, ffi.Int, ffi.Int, + ffi.Int, ffi.Int)>>('KalmanFilter_InitWithParams'); + late final _KalmanFilter_InitWithParams = + _KalmanFilter_InitWithParamsPtr.asFunction< + ffi.Pointer Function(KalmanFilter, int, int, int, int)>(); ffi.Pointer KalmanFilter_New( int dynamParams, @@ -7007,10 +7909,11 @@ class CvNative { late final _KalmanFilter_NewPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('KalmanFilter_New'); + ffi.Pointer Function(ffi.Int, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer)>>('KalmanFilter_New'); late final _KalmanFilter_New = _KalmanFilter_NewPtr.asFunction< - ffi.Pointer Function(int, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + int, int, int, int, ffi.Pointer)>(); ffi.Pointer KalmanFilter_Predict( KalmanFilter self, @@ -7022,11 +7925,12 @@ class CvNative { ); } - late final _KalmanFilter_PredictPtr = - _lookup Function(KalmanFilter, ffi.Pointer)>>( - 'KalmanFilter_Predict'); - late final _KalmanFilter_Predict = - _KalmanFilter_PredictPtr.asFunction Function(KalmanFilter, ffi.Pointer)>(); + late final _KalmanFilter_PredictPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + KalmanFilter, ffi.Pointer)>>('KalmanFilter_Predict'); + late final _KalmanFilter_Predict = _KalmanFilter_PredictPtr.asFunction< + ffi.Pointer Function(KalmanFilter, ffi.Pointer)>(); ffi.Pointer KalmanFilter_PredictWithParams( KalmanFilter self, @@ -7040,11 +7944,14 @@ class CvNative { ); } - late final _KalmanFilter_PredictWithParamsPtr = - _lookup Function(KalmanFilter, Mat, ffi.Pointer)>>( - 'KalmanFilter_PredictWithParams'); - late final _KalmanFilter_PredictWithParams = _KalmanFilter_PredictWithParamsPtr.asFunction< - ffi.Pointer Function(KalmanFilter, Mat, ffi.Pointer)>(); + late final _KalmanFilter_PredictWithParamsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(KalmanFilter, Mat, + ffi.Pointer)>>('KalmanFilter_PredictWithParams'); + late final _KalmanFilter_PredictWithParams = + _KalmanFilter_PredictWithParamsPtr.asFunction< + ffi.Pointer Function( + KalmanFilter, Mat, ffi.Pointer)>(); ffi.Pointer KalmanFilter_SetControlMatrix( KalmanFilter self, @@ -7056,11 +7963,12 @@ class CvNative { ); } - late final _KalmanFilter_SetControlMatrixPtr = - _lookup Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetControlMatrix'); - late final _KalmanFilter_SetControlMatrix = - _KalmanFilter_SetControlMatrixPtr.asFunction Function(KalmanFilter, Mat)>(); + late final _KalmanFilter_SetControlMatrixPtr = _lookup< + ffi + .NativeFunction Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetControlMatrix'); + late final _KalmanFilter_SetControlMatrix = _KalmanFilter_SetControlMatrixPtr + .asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetErrorCovPost( KalmanFilter self, @@ -7072,11 +7980,12 @@ class CvNative { ); } - late final _KalmanFilter_SetErrorCovPostPtr = - _lookup Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetErrorCovPost'); - late final _KalmanFilter_SetErrorCovPost = - _KalmanFilter_SetErrorCovPostPtr.asFunction Function(KalmanFilter, Mat)>(); + late final _KalmanFilter_SetErrorCovPostPtr = _lookup< + ffi + .NativeFunction Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetErrorCovPost'); + late final _KalmanFilter_SetErrorCovPost = _KalmanFilter_SetErrorCovPostPtr + .asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetErrorCovPre( KalmanFilter self, @@ -7088,11 +7997,12 @@ class CvNative { ); } - late final _KalmanFilter_SetErrorCovPrePtr = - _lookup Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetErrorCovPre'); - late final _KalmanFilter_SetErrorCovPre = - _KalmanFilter_SetErrorCovPrePtr.asFunction Function(KalmanFilter, Mat)>(); + late final _KalmanFilter_SetErrorCovPrePtr = _lookup< + ffi + .NativeFunction Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetErrorCovPre'); + late final _KalmanFilter_SetErrorCovPre = _KalmanFilter_SetErrorCovPrePtr + .asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetGain( KalmanFilter self, @@ -7104,10 +8014,12 @@ class CvNative { ); } - late final _KalmanFilter_SetGainPtr = - _lookup Function(KalmanFilter, Mat)>>('KalmanFilter_SetGain'); - late final _KalmanFilter_SetGain = - _KalmanFilter_SetGainPtr.asFunction Function(KalmanFilter, Mat)>(); + late final _KalmanFilter_SetGainPtr = _lookup< + ffi + .NativeFunction Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetGain'); + late final _KalmanFilter_SetGain = _KalmanFilter_SetGainPtr.asFunction< + ffi.Pointer Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetMeasurementMatrix( KalmanFilter self, @@ -7119,11 +8031,13 @@ class CvNative { ); } - late final _KalmanFilter_SetMeasurementMatrixPtr = - _lookup Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetMeasurementMatrix'); + late final _KalmanFilter_SetMeasurementMatrixPtr = _lookup< + ffi + .NativeFunction Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetMeasurementMatrix'); late final _KalmanFilter_SetMeasurementMatrix = - _KalmanFilter_SetMeasurementMatrixPtr.asFunction Function(KalmanFilter, Mat)>(); + _KalmanFilter_SetMeasurementMatrixPtr.asFunction< + ffi.Pointer Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetMeasurementNoiseCov( KalmanFilter self, @@ -7135,11 +8049,13 @@ class CvNative { ); } - late final _KalmanFilter_SetMeasurementNoiseCovPtr = - _lookup Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetMeasurementNoiseCov'); + late final _KalmanFilter_SetMeasurementNoiseCovPtr = _lookup< + ffi + .NativeFunction Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetMeasurementNoiseCov'); late final _KalmanFilter_SetMeasurementNoiseCov = - _KalmanFilter_SetMeasurementNoiseCovPtr.asFunction Function(KalmanFilter, Mat)>(); + _KalmanFilter_SetMeasurementNoiseCovPtr.asFunction< + ffi.Pointer Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetProcessNoiseCov( KalmanFilter self, @@ -7151,11 +8067,13 @@ class CvNative { ); } - late final _KalmanFilter_SetProcessNoiseCovPtr = - _lookup Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetProcessNoiseCov'); + late final _KalmanFilter_SetProcessNoiseCovPtr = _lookup< + ffi + .NativeFunction Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetProcessNoiseCov'); late final _KalmanFilter_SetProcessNoiseCov = - _KalmanFilter_SetProcessNoiseCovPtr.asFunction Function(KalmanFilter, Mat)>(); + _KalmanFilter_SetProcessNoiseCovPtr.asFunction< + ffi.Pointer Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetStatePost( KalmanFilter self, @@ -7167,11 +8085,12 @@ class CvNative { ); } - late final _KalmanFilter_SetStatePostPtr = - _lookup Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetStatePost'); - late final _KalmanFilter_SetStatePost = - _KalmanFilter_SetStatePostPtr.asFunction Function(KalmanFilter, Mat)>(); + late final _KalmanFilter_SetStatePostPtr = _lookup< + ffi + .NativeFunction Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetStatePost'); + late final _KalmanFilter_SetStatePost = _KalmanFilter_SetStatePostPtr + .asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetStatePre( KalmanFilter self, @@ -7183,11 +8102,12 @@ class CvNative { ); } - late final _KalmanFilter_SetStatePrePtr = - _lookup Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetStatePre'); - late final _KalmanFilter_SetStatePre = - _KalmanFilter_SetStatePrePtr.asFunction Function(KalmanFilter, Mat)>(); + late final _KalmanFilter_SetStatePrePtr = _lookup< + ffi + .NativeFunction Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetStatePre'); + late final _KalmanFilter_SetStatePre = _KalmanFilter_SetStatePrePtr + .asFunction Function(KalmanFilter, Mat)>(); ffi.Pointer KalmanFilter_SetTransitionMatrix( KalmanFilter self, @@ -7199,11 +8119,13 @@ class CvNative { ); } - late final _KalmanFilter_SetTransitionMatrixPtr = - _lookup Function(KalmanFilter, Mat)>>( - 'KalmanFilter_SetTransitionMatrix'); + late final _KalmanFilter_SetTransitionMatrixPtr = _lookup< + ffi + .NativeFunction Function(KalmanFilter, Mat)>>( + 'KalmanFilter_SetTransitionMatrix'); late final _KalmanFilter_SetTransitionMatrix = - _KalmanFilter_SetTransitionMatrixPtr.asFunction Function(KalmanFilter, Mat)>(); + _KalmanFilter_SetTransitionMatrixPtr.asFunction< + ffi.Pointer Function(KalmanFilter, Mat)>(); ffi.Pointer LUT( Mat src, @@ -7217,8 +8139,10 @@ class CvNative { ); } - late final _LUTPtr = _lookup Function(Mat, Mat, Mat)>>('LUT'); - late final _LUT = _LUTPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _LUTPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>('LUT'); + late final _LUT = + _LUTPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Laplacian( Mat src, @@ -7242,21 +8166,24 @@ class CvNative { late final _LaplacianPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Int, ffi.Double, ffi.Double, ffi.Int)>>('Laplacian'); - late final _Laplacian = - _LaplacianPtr.asFunction Function(Mat, Mat, int, int, double, double, int)>(); + ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Double, + ffi.Double, ffi.Int)>>('Laplacian'); + late final _Laplacian = _LaplacianPtr.asFunction< + ffi.Pointer Function( + Mat, Mat, int, int, double, double, int)>(); void Layer_Close( - LayerPtr1 layer, + LayerPtr layer, ) { return _Layer_Close( layer, ); } - late final _Layer_ClosePtr = _lookup>('Layer_Close'); - late final _Layer_Close = _Layer_ClosePtr.asFunction(); + late final _Layer_ClosePtr = + _lookup>('Layer_Close'); + late final _Layer_Close = + _Layer_ClosePtr.asFunction(); void Layer_Close_Async( LayerPtr layer, @@ -7269,8 +8196,10 @@ class CvNative { } late final _Layer_Close_AsyncPtr = - _lookup>('Layer_Close_Async'); - late final _Layer_Close_Async = _Layer_Close_AsyncPtr.asFunction(); + _lookup>( + 'Layer_Close_Async'); + late final _Layer_Close_Async = + _Layer_Close_AsyncPtr.asFunction(); ffi.Pointer Layer_GetName( Layer layer, @@ -7282,11 +8211,13 @@ class CvNative { ); } - late final _Layer_GetNamePtr = - _lookup Function(Layer, ffi.Pointer>)>>( - 'Layer_GetName'); + late final _Layer_GetNamePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Layer, ffi.Pointer>)>>('Layer_GetName'); late final _Layer_GetName = _Layer_GetNamePtr.asFunction< - ffi.Pointer Function(Layer, ffi.Pointer>)>(); + ffi.Pointer Function( + Layer, ffi.Pointer>)>(); ffi.Pointer Layer_GetName_Async( Layer layer, @@ -7298,10 +8229,12 @@ class CvNative { ); } - late final _Layer_GetName_AsyncPtr = - _lookup Function(Layer, CvCallback_1)>>('Layer_GetName_Async'); - late final _Layer_GetName_Async = - _Layer_GetName_AsyncPtr.asFunction Function(Layer, CvCallback_1)>(); + late final _Layer_GetName_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Layer, CvCallback_1)>>( + 'Layer_GetName_Async'); + late final _Layer_GetName_Async = _Layer_GetName_AsyncPtr.asFunction< + ffi.Pointer Function(Layer, CvCallback_1)>(); ffi.Pointer Layer_GetType( Layer layer, @@ -7313,11 +8246,13 @@ class CvNative { ); } - late final _Layer_GetTypePtr = - _lookup Function(Layer, ffi.Pointer>)>>( - 'Layer_GetType'); + late final _Layer_GetTypePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Layer, ffi.Pointer>)>>('Layer_GetType'); late final _Layer_GetType = _Layer_GetTypePtr.asFunction< - ffi.Pointer Function(Layer, ffi.Pointer>)>(); + ffi.Pointer Function( + Layer, ffi.Pointer>)>(); ffi.Pointer Layer_GetType_Async( Layer layer, @@ -7329,10 +8264,12 @@ class CvNative { ); } - late final _Layer_GetType_AsyncPtr = - _lookup Function(Layer, CvCallback_1)>>('Layer_GetType_Async'); - late final _Layer_GetType_Async = - _Layer_GetType_AsyncPtr.asFunction Function(Layer, CvCallback_1)>(); + late final _Layer_GetType_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Layer, CvCallback_1)>>( + 'Layer_GetType_Async'); + late final _Layer_GetType_Async = _Layer_GetType_AsyncPtr.asFunction< + ffi.Pointer Function(Layer, CvCallback_1)>(); ffi.Pointer Layer_InputNameToIndex( Layer layer, @@ -7348,10 +8285,11 @@ class CvNative { late final _Layer_InputNameToIndexPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Layer, ffi.Pointer, ffi.Pointer)>>('Layer_InputNameToIndex'); + ffi.Pointer Function(Layer, ffi.Pointer, + ffi.Pointer)>>('Layer_InputNameToIndex'); late final _Layer_InputNameToIndex = _Layer_InputNameToIndexPtr.asFunction< - ffi.Pointer Function(Layer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Layer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Layer_InputNameToIndex_Async( Layer layer, @@ -7365,11 +8303,14 @@ class CvNative { ); } - late final _Layer_InputNameToIndex_AsyncPtr = - _lookup Function(Layer, ffi.Pointer, CvCallback_1)>>( - 'Layer_InputNameToIndex_Async'); - late final _Layer_InputNameToIndex_Async = _Layer_InputNameToIndex_AsyncPtr.asFunction< - ffi.Pointer Function(Layer, ffi.Pointer, CvCallback_1)>(); + late final _Layer_InputNameToIndex_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Layer, ffi.Pointer, + CvCallback_1)>>('Layer_InputNameToIndex_Async'); + late final _Layer_InputNameToIndex_Async = + _Layer_InputNameToIndex_AsyncPtr.asFunction< + ffi.Pointer Function( + Layer, ffi.Pointer, CvCallback_1)>(); ffi.Pointer Layer_OutputNameToIndex( Layer layer, @@ -7385,10 +8326,11 @@ class CvNative { late final _Layer_OutputNameToIndexPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Layer, ffi.Pointer, ffi.Pointer)>>('Layer_OutputNameToIndex'); + ffi.Pointer Function(Layer, ffi.Pointer, + ffi.Pointer)>>('Layer_OutputNameToIndex'); late final _Layer_OutputNameToIndex = _Layer_OutputNameToIndexPtr.asFunction< - ffi.Pointer Function(Layer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Layer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Layer_OutputNameToIndex_Async( Layer layer, @@ -7402,11 +8344,14 @@ class CvNative { ); } - late final _Layer_OutputNameToIndex_AsyncPtr = - _lookup Function(Layer, ffi.Pointer, CvCallback_1)>>( - 'Layer_OutputNameToIndex_Async'); - late final _Layer_OutputNameToIndex_Async = _Layer_OutputNameToIndex_AsyncPtr.asFunction< - ffi.Pointer Function(Layer, ffi.Pointer, CvCallback_1)>(); + late final _Layer_OutputNameToIndex_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Layer, ffi.Pointer, + CvCallback_1)>>('Layer_OutputNameToIndex_Async'); + late final _Layer_OutputNameToIndex_Async = + _Layer_OutputNameToIndex_AsyncPtr.asFunction< + ffi.Pointer Function( + Layer, ffi.Pointer, CvCallback_1)>(); ffi.Pointer Line( Mat img, @@ -7430,9 +8375,11 @@ class CvNative { late final _LinePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Point, Point, Scalar, ffi.Int, ffi.Int, ffi.Int)>>('Line'); - late final _Line = - _LinePtr.asFunction Function(Mat, Point, Point, Scalar, int, int, int)>(); + ffi.Pointer Function( + Mat, Point, Point, Scalar, ffi.Int, ffi.Int, ffi.Int)>>('Line'); + late final _Line = _LinePtr.asFunction< + ffi.Pointer Function( + Mat, Point, Point, Scalar, int, int, int)>(); ffi.Pointer LinearPolar( Mat src, @@ -7450,11 +8397,12 @@ class CvNative { ); } - late final _LinearPolarPtr = - _lookup Function(Mat, Mat, Point2f, ffi.Double, ffi.Int)>>( - 'LinearPolar'); - late final _LinearPolar = - _LinearPolarPtr.asFunction Function(Mat, Mat, Point2f, double, int)>(); + late final _LinearPolarPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Point2f, ffi.Double, ffi.Int)>>('LinearPolar'); + late final _LinearPolar = _LinearPolarPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Point2f, double, int)>(); ffi.Pointer LogPolar( Mat src, @@ -7472,11 +8420,12 @@ class CvNative { ); } - late final _LogPolarPtr = - _lookup Function(Mat, Mat, Point2f, ffi.Double, ffi.Int)>>( - 'LogPolar'); - late final _LogPolar = - _LogPolarPtr.asFunction Function(Mat, Mat, Point2f, double, int)>(); + late final _LogPolarPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Point2f, ffi.Double, ffi.Int)>>('LogPolar'); + late final _LogPolar = _LogPolarPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Point2f, double, int)>(); void MSER_Close( MSERPtr a, @@ -7486,7 +8435,8 @@ class CvNative { ); } - late final _MSER_ClosePtr = _lookup>('MSER_Close'); + late final _MSER_ClosePtr = + _lookup>('MSER_Close'); late final _MSER_Close = _MSER_ClosePtr.asFunction(); ffi.Pointer MSER_Create( @@ -7497,9 +8447,11 @@ class CvNative { ); } - late final _MSER_CreatePtr = - _lookup Function(ffi.Pointer)>>('MSER_Create'); - late final _MSER_Create = _MSER_CreatePtr.asFunction Function(ffi.Pointer)>(); + late final _MSER_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('MSER_Create'); + late final _MSER_Create = _MSER_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer MSER_Detect( MSER a, @@ -7513,11 +8465,12 @@ class CvNative { ); } - late final _MSER_DetectPtr = - _lookup Function(MSER, Mat, ffi.Pointer)>>( - 'MSER_Detect'); - late final _MSER_Detect = - _MSER_DetectPtr.asFunction Function(MSER, Mat, ffi.Pointer)>(); + late final _MSER_DetectPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + MSER, Mat, ffi.Pointer)>>('MSER_Detect'); + late final _MSER_Detect = _MSER_DetectPtr.asFunction< + ffi.Pointer Function(MSER, Mat, ffi.Pointer)>(); ffi.Pointer Mat_AbsDiff( Mat src1, @@ -7531,9 +8484,11 @@ class CvNative { ); } - late final _Mat_AbsDiffPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_AbsDiff'); - late final _Mat_AbsDiff = _Mat_AbsDiffPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_AbsDiffPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_AbsDiff'); + late final _Mat_AbsDiff = _Mat_AbsDiffPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_Accumulate( Mat src, @@ -7546,8 +8501,10 @@ class CvNative { } late final _Mat_AccumulatePtr = - _lookup Function(Mat, Mat)>>('Mat_Accumulate'); - late final _Mat_Accumulate = _Mat_AccumulatePtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'Mat_Accumulate'); + late final _Mat_Accumulate = + _Mat_AccumulatePtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_AccumulateProduct( Mat src1, @@ -7561,10 +8518,11 @@ class CvNative { ); } - late final _Mat_AccumulateProductPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_AccumulateProduct'); - late final _Mat_AccumulateProduct = - _Mat_AccumulateProductPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_AccumulateProductPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_AccumulateProduct'); + late final _Mat_AccumulateProduct = _Mat_AccumulateProductPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_AccumulateProductWithMask( Mat src1, @@ -7580,11 +8538,12 @@ class CvNative { ); } - late final _Mat_AccumulateProductWithMaskPtr = - _lookup Function(Mat, Mat, Mat, Mat)>>( - 'Mat_AccumulateProductWithMask'); - late final _Mat_AccumulateProductWithMask = - _Mat_AccumulateProductWithMaskPtr.asFunction Function(Mat, Mat, Mat, Mat)>(); + late final _Mat_AccumulateProductWithMaskPtr = _lookup< + ffi + .NativeFunction Function(Mat, Mat, Mat, Mat)>>( + 'Mat_AccumulateProductWithMask'); + late final _Mat_AccumulateProductWithMask = _Mat_AccumulateProductWithMaskPtr + .asFunction Function(Mat, Mat, Mat, Mat)>(); ffi.Pointer Mat_AccumulateSquare( Mat src, @@ -7597,9 +8556,10 @@ class CvNative { } late final _Mat_AccumulateSquarePtr = - _lookup Function(Mat, Mat)>>('Mat_AccumulateSquare'); - late final _Mat_AccumulateSquare = - _Mat_AccumulateSquarePtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'Mat_AccumulateSquare'); + late final _Mat_AccumulateSquare = _Mat_AccumulateSquarePtr.asFunction< + ffi.Pointer Function(Mat, Mat)>(); ffi.Pointer Mat_AccumulateSquareWithMask( Mat src, @@ -7613,11 +8573,11 @@ class CvNative { ); } - late final _Mat_AccumulateSquareWithMaskPtr = - _lookup Function(Mat, Mat, Mat)>>( - 'Mat_AccumulateSquareWithMask'); - late final _Mat_AccumulateSquareWithMask = - _Mat_AccumulateSquareWithMaskPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_AccumulateSquareWithMaskPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_AccumulateSquareWithMask'); + late final _Mat_AccumulateSquareWithMask = _Mat_AccumulateSquareWithMaskPtr + .asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_AccumulateWithMask( Mat src, @@ -7631,10 +8591,11 @@ class CvNative { ); } - late final _Mat_AccumulateWithMaskPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_AccumulateWithMask'); - late final _Mat_AccumulateWithMask = - _Mat_AccumulateWithMaskPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_AccumulateWithMaskPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_AccumulateWithMask'); + late final _Mat_AccumulateWithMask = _Mat_AccumulateWithMaskPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_AccumulatedWeighted( Mat src, @@ -7648,11 +8609,12 @@ class CvNative { ); } - late final _Mat_AccumulatedWeightedPtr = - _lookup Function(Mat, Mat, ffi.Double)>>( - 'Mat_AccumulatedWeighted'); - late final _Mat_AccumulatedWeighted = - _Mat_AccumulatedWeightedPtr.asFunction Function(Mat, Mat, double)>(); + late final _Mat_AccumulatedWeightedPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Double)>>('Mat_AccumulatedWeighted'); + late final _Mat_AccumulatedWeighted = _Mat_AccumulatedWeightedPtr.asFunction< + ffi.Pointer Function(Mat, Mat, double)>(); ffi.Pointer Mat_AccumulatedWeightedWithMask( Mat src, @@ -7668,11 +8630,13 @@ class CvNative { ); } - late final _Mat_AccumulatedWeightedWithMaskPtr = - _lookup Function(Mat, Mat, ffi.Double, Mat)>>( - 'Mat_AccumulatedWeightedWithMask'); + late final _Mat_AccumulatedWeightedWithMaskPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Double, Mat)>>('Mat_AccumulatedWeightedWithMask'); late final _Mat_AccumulatedWeightedWithMask = - _Mat_AccumulatedWeightedWithMaskPtr.asFunction Function(Mat, Mat, double, Mat)>(); + _Mat_AccumulatedWeightedWithMaskPtr.asFunction< + ffi.Pointer Function(Mat, Mat, double, Mat)>(); ffi.Pointer Mat_Add( Mat src1, @@ -7686,9 +8650,11 @@ class CvNative { ); } - late final _Mat_AddPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_Add'); - late final _Mat_Add = _Mat_AddPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_AddPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_Add'); + late final _Mat_Add = + _Mat_AddPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_AddF64( Mat m, @@ -7700,9 +8666,11 @@ class CvNative { ); } - late final _Mat_AddF64Ptr = - _lookup Function(Mat, double_t)>>('Mat_AddF64'); - late final _Mat_AddF64 = _Mat_AddF64Ptr.asFunction Function(Mat, double)>(); + late final _Mat_AddF64Ptr = _lookup< + ffi.NativeFunction Function(Mat, double_t)>>( + 'Mat_AddF64'); + late final _Mat_AddF64 = + _Mat_AddF64Ptr.asFunction Function(Mat, double)>(); ffi.Pointer Mat_AddFloat( Mat m, @@ -7715,8 +8683,10 @@ class CvNative { } late final _Mat_AddFloatPtr = - _lookup Function(Mat, float_t)>>('Mat_AddFloat'); - late final _Mat_AddFloat = _Mat_AddFloatPtr.asFunction Function(Mat, double)>(); + _lookup Function(Mat, float_t)>>( + 'Mat_AddFloat'); + late final _Mat_AddFloat = _Mat_AddFloatPtr.asFunction< + ffi.Pointer Function(Mat, double)>(); ffi.Pointer Mat_AddI32( Mat m, @@ -7728,9 +8698,11 @@ class CvNative { ); } - late final _Mat_AddI32Ptr = - _lookup Function(Mat, ffi.Int32)>>('Mat_AddI32'); - late final _Mat_AddI32 = _Mat_AddI32Ptr.asFunction Function(Mat, int)>(); + late final _Mat_AddI32Ptr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Int32)>>( + 'Mat_AddI32'); + late final _Mat_AddI32 = + _Mat_AddI32Ptr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_AddSChar( Mat m, @@ -7742,9 +8714,11 @@ class CvNative { ); } - late final _Mat_AddSCharPtr = - _lookup Function(Mat, ffi.Int8)>>('Mat_AddSChar'); - late final _Mat_AddSChar = _Mat_AddSCharPtr.asFunction Function(Mat, int)>(); + late final _Mat_AddSCharPtr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Int8)>>( + 'Mat_AddSChar'); + late final _Mat_AddSChar = + _Mat_AddSCharPtr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_AddUChar( Mat m, @@ -7756,9 +8730,11 @@ class CvNative { ); } - late final _Mat_AddUCharPtr = - _lookup Function(Mat, ffi.Uint8)>>('Mat_AddUChar'); - late final _Mat_AddUChar = _Mat_AddUCharPtr.asFunction Function(Mat, int)>(); + late final _Mat_AddUCharPtr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Uint8)>>( + 'Mat_AddUChar'); + late final _Mat_AddUChar = + _Mat_AddUCharPtr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_AddWeighted( Mat src1, @@ -7779,11 +8755,11 @@ class CvNative { } late final _Mat_AddWeightedPtr = _lookup< - ffi - .NativeFunction Function(Mat, ffi.Double, Mat, ffi.Double, ffi.Double, Mat)>>( - 'Mat_AddWeighted'); - late final _Mat_AddWeighted = - _Mat_AddWeightedPtr.asFunction Function(Mat, double, Mat, double, double, Mat)>(); + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Double, Mat, ffi.Double, + ffi.Double, Mat)>>('Mat_AddWeighted'); + late final _Mat_AddWeighted = _Mat_AddWeightedPtr.asFunction< + ffi.Pointer Function(Mat, double, Mat, double, double, Mat)>(); ffi.Pointer Mat_BatchDistance( Mat src1, @@ -7813,10 +8789,11 @@ class CvNative { late final _Mat_BatchDistancePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Int, Mat, ffi.Int, ffi.Int, Mat, ffi.Int, ffi.Bool)>>('Mat_BatchDistance'); + ffi.Pointer Function(Mat, Mat, Mat, ffi.Int, Mat, ffi.Int, + ffi.Int, Mat, ffi.Int, ffi.Bool)>>('Mat_BatchDistance'); late final _Mat_BatchDistance = _Mat_BatchDistancePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, int, Mat, int, int, Mat, int, bool)>(); + ffi.Pointer Function( + Mat, Mat, Mat, int, Mat, int, int, Mat, int, bool)>(); ffi.Pointer Mat_BitwiseAnd( Mat src1, @@ -7830,9 +8807,11 @@ class CvNative { ); } - late final _Mat_BitwiseAndPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_BitwiseAnd'); - late final _Mat_BitwiseAnd = _Mat_BitwiseAndPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_BitwiseAndPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_BitwiseAnd'); + late final _Mat_BitwiseAnd = _Mat_BitwiseAndPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_BitwiseAndWithMask( Mat src1, @@ -7848,11 +8827,12 @@ class CvNative { ); } - late final _Mat_BitwiseAndWithMaskPtr = - _lookup Function(Mat, Mat, Mat, Mat)>>( - 'Mat_BitwiseAndWithMask'); - late final _Mat_BitwiseAndWithMask = - _Mat_BitwiseAndWithMaskPtr.asFunction Function(Mat, Mat, Mat, Mat)>(); + late final _Mat_BitwiseAndWithMaskPtr = _lookup< + ffi + .NativeFunction Function(Mat, Mat, Mat, Mat)>>( + 'Mat_BitwiseAndWithMask'); + late final _Mat_BitwiseAndWithMask = _Mat_BitwiseAndWithMaskPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat)>(); ffi.Pointer Mat_BitwiseNot( Mat src1, @@ -7865,8 +8845,10 @@ class CvNative { } late final _Mat_BitwiseNotPtr = - _lookup Function(Mat, Mat)>>('Mat_BitwiseNot'); - late final _Mat_BitwiseNot = _Mat_BitwiseNotPtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'Mat_BitwiseNot'); + late final _Mat_BitwiseNot = + _Mat_BitwiseNotPtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_BitwiseNotWithMask( Mat src1, @@ -7880,10 +8862,11 @@ class CvNative { ); } - late final _Mat_BitwiseNotWithMaskPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_BitwiseNotWithMask'); - late final _Mat_BitwiseNotWithMask = - _Mat_BitwiseNotWithMaskPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_BitwiseNotWithMaskPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_BitwiseNotWithMask'); + late final _Mat_BitwiseNotWithMask = _Mat_BitwiseNotWithMaskPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_BitwiseOr( Mat src1, @@ -7897,9 +8880,11 @@ class CvNative { ); } - late final _Mat_BitwiseOrPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_BitwiseOr'); - late final _Mat_BitwiseOr = _Mat_BitwiseOrPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_BitwiseOrPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_BitwiseOr'); + late final _Mat_BitwiseOr = _Mat_BitwiseOrPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_BitwiseOrWithMask( Mat src1, @@ -7915,11 +8900,12 @@ class CvNative { ); } - late final _Mat_BitwiseOrWithMaskPtr = - _lookup Function(Mat, Mat, Mat, Mat)>>( - 'Mat_BitwiseOrWithMask'); - late final _Mat_BitwiseOrWithMask = - _Mat_BitwiseOrWithMaskPtr.asFunction Function(Mat, Mat, Mat, Mat)>(); + late final _Mat_BitwiseOrWithMaskPtr = _lookup< + ffi + .NativeFunction Function(Mat, Mat, Mat, Mat)>>( + 'Mat_BitwiseOrWithMask'); + late final _Mat_BitwiseOrWithMask = _Mat_BitwiseOrWithMaskPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat)>(); ffi.Pointer Mat_BitwiseXor( Mat src1, @@ -7933,9 +8919,11 @@ class CvNative { ); } - late final _Mat_BitwiseXorPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_BitwiseXor'); - late final _Mat_BitwiseXor = _Mat_BitwiseXorPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_BitwiseXorPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_BitwiseXor'); + late final _Mat_BitwiseXor = _Mat_BitwiseXorPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_BitwiseXorWithMask( Mat src1, @@ -7951,11 +8939,12 @@ class CvNative { ); } - late final _Mat_BitwiseXorWithMaskPtr = - _lookup Function(Mat, Mat, Mat, Mat)>>( - 'Mat_BitwiseXorWithMask'); - late final _Mat_BitwiseXorWithMask = - _Mat_BitwiseXorWithMaskPtr.asFunction Function(Mat, Mat, Mat, Mat)>(); + late final _Mat_BitwiseXorWithMaskPtr = _lookup< + ffi + .NativeFunction Function(Mat, Mat, Mat, Mat)>>( + 'Mat_BitwiseXorWithMask'); + late final _Mat_BitwiseXorWithMask = _Mat_BitwiseXorWithMaskPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat)>(); ffi.Pointer Mat_BorderInterpolate( int p, @@ -7972,9 +8961,9 @@ class CvNative { } late final _Mat_BorderInterpolatePtr = _lookup< - ffi - .NativeFunction Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_BorderInterpolate'); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer)>>('Mat_BorderInterpolate'); late final _Mat_BorderInterpolate = _Mat_BorderInterpolatePtr.asFunction< ffi.Pointer Function(int, int, int, ffi.Pointer)>(); @@ -7994,11 +8983,12 @@ class CvNative { ); } - late final _Mat_CalcCovarMatrixPtr = - _lookup Function(Mat, Mat, Mat, ffi.Int, ffi.Int)>>( - 'Mat_CalcCovarMatrix'); - late final _Mat_CalcCovarMatrix = - _Mat_CalcCovarMatrixPtr.asFunction Function(Mat, Mat, Mat, int, int)>(); + late final _Mat_CalcCovarMatrixPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Int, ffi.Int)>>('Mat_CalcCovarMatrix'); + late final _Mat_CalcCovarMatrix = _Mat_CalcCovarMatrixPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, int, int)>(); ffi.Pointer Mat_CartToPolar( Mat x, @@ -8016,11 +9006,12 @@ class CvNative { ); } - late final _Mat_CartToPolarPtr = - _lookup Function(Mat, Mat, Mat, Mat, ffi.Bool)>>( - 'Mat_CartToPolar'); - late final _Mat_CartToPolar = - _Mat_CartToPolarPtr.asFunction Function(Mat, Mat, Mat, Mat, bool)>(); + late final _Mat_CartToPolarPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, ffi.Bool)>>('Mat_CartToPolar'); + late final _Mat_CartToPolar = _Mat_CartToPolarPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, bool)>(); ffi.Pointer Mat_Channels( Mat m, @@ -8032,10 +9023,12 @@ class CvNative { ); } - late final _Mat_ChannelsPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Channels'); - late final _Mat_Channels = - _Mat_ChannelsPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_ChannelsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_Channels'); + late final _Mat_Channels = _Mat_ChannelsPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_CheckRange( Mat m, @@ -8057,10 +9050,16 @@ class CvNative { late final _Mat_CheckRangePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Bool, ffi.Pointer, ffi.Double, ffi.Double, + ffi.Pointer Function( + Mat, + ffi.Bool, + ffi.Pointer, + ffi.Double, + ffi.Double, ffi.Pointer)>>('Mat_CheckRange'); late final _Mat_CheckRange = _Mat_CheckRangePtr.asFunction< - ffi.Pointer Function(Mat, bool, ffi.Pointer, double, double, ffi.Pointer)>(); + ffi.Pointer Function(Mat, bool, ffi.Pointer, double, + double, ffi.Pointer)>(); ffi.Pointer Mat_Clone( Mat m, @@ -8072,9 +9071,11 @@ class CvNative { ); } - late final _Mat_ClonePtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Clone'); - late final _Mat_Clone = _Mat_ClonePtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_ClonePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>>('Mat_Clone'); + late final _Mat_Clone = _Mat_ClonePtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); void Mat_Close( MatPtr m, @@ -8084,7 +9085,8 @@ class CvNative { ); } - late final _Mat_ClosePtr = _lookup>('Mat_Close'); + late final _Mat_ClosePtr = + _lookup>('Mat_Close'); late final _Mat_Close = _Mat_ClosePtr.asFunction(); void Mat_CloseVoid( @@ -8096,8 +9098,10 @@ class CvNative { } late final _Mat_CloseVoidPtr = - _lookup)>>('Mat_CloseVoid'); - late final _Mat_CloseVoid = _Mat_CloseVoidPtr.asFunction)>(); + _lookup)>>( + 'Mat_CloseVoid'); + late final _Mat_CloseVoid = + _Mat_CloseVoidPtr.asFunction)>(); ffi.Pointer Mat_Cols( Mat m, @@ -8109,9 +9113,12 @@ class CvNative { ); } - late final _Mat_ColsPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Cols'); - late final _Mat_Cols = _Mat_ColsPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_ColsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_Cols'); + late final _Mat_Cols = _Mat_ColsPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Compare( Mat src1, @@ -8127,9 +9134,12 @@ class CvNative { ); } - late final _Mat_ComparePtr = - _lookup Function(Mat, Mat, Mat, ffi.Int)>>('Mat_Compare'); - late final _Mat_Compare = _Mat_ComparePtr.asFunction Function(Mat, Mat, Mat, int)>(); + late final _Mat_ComparePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Int)>>('Mat_Compare'); + late final _Mat_Compare = _Mat_ComparePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, int)>(); ffi.Pointer Mat_CompleteSymm( Mat m, @@ -8141,9 +9151,11 @@ class CvNative { ); } - late final _Mat_CompleteSymmPtr = - _lookup Function(Mat, ffi.Bool)>>('Mat_CompleteSymm'); - late final _Mat_CompleteSymm = _Mat_CompleteSymmPtr.asFunction Function(Mat, bool)>(); + late final _Mat_CompleteSymmPtr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Bool)>>( + 'Mat_CompleteSymm'); + late final _Mat_CompleteSymm = _Mat_CompleteSymmPtr.asFunction< + ffi.Pointer Function(Mat, bool)>(); ffi.Pointer Mat_ConvertFp16( Mat m, @@ -8155,10 +9167,12 @@ class CvNative { ); } - late final _Mat_ConvertFp16Ptr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_ConvertFp16'); - late final _Mat_ConvertFp16 = - _Mat_ConvertFp16Ptr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_ConvertFp16Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_ConvertFp16'); + late final _Mat_ConvertFp16 = _Mat_ConvertFp16Ptr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_ConvertScaleAbs( Mat src, @@ -8174,11 +9188,12 @@ class CvNative { ); } - late final _Mat_ConvertScaleAbsPtr = - _lookup Function(Mat, Mat, ffi.Double, ffi.Double)>>( - 'Mat_ConvertScaleAbs'); - late final _Mat_ConvertScaleAbs = - _Mat_ConvertScaleAbsPtr.asFunction Function(Mat, Mat, double, double)>(); + late final _Mat_ConvertScaleAbsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Double, ffi.Double)>>('Mat_ConvertScaleAbs'); + late final _Mat_ConvertScaleAbs = _Mat_ConvertScaleAbsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, double, double)>(); ffi.Pointer Mat_ConvertTo( Mat m, @@ -8192,9 +9207,11 @@ class CvNative { ); } - late final _Mat_ConvertToPtr = - _lookup Function(Mat, Mat, ffi.Int)>>('Mat_ConvertTo'); - late final _Mat_ConvertTo = _Mat_ConvertToPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_ConvertToPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_ConvertTo'); + late final _Mat_ConvertTo = _Mat_ConvertToPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int)>(); ffi.Pointer Mat_ConvertToWithParams( Mat m, @@ -8212,11 +9229,12 @@ class CvNative { ); } - late final _Mat_ConvertToWithParamsPtr = - _lookup Function(Mat, Mat, ffi.Int, ffi.Float, ffi.Float)>>( - 'Mat_ConvertToWithParams'); - late final _Mat_ConvertToWithParams = - _Mat_ConvertToWithParamsPtr.asFunction Function(Mat, Mat, int, double, double)>(); + late final _Mat_ConvertToWithParamsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Float, + ffi.Float)>>('Mat_ConvertToWithParams'); + late final _Mat_ConvertToWithParams = _Mat_ConvertToWithParamsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, double, double)>(); ffi.Pointer Mat_CopyMakeBorder( Mat src, @@ -8242,10 +9260,11 @@ class CvNative { late final _Mat_CopyMakeBorderPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Int, Scalar)>>('Mat_CopyMakeBorder'); + ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Int, ffi.Int, Scalar)>>('Mat_CopyMakeBorder'); late final _Mat_CopyMakeBorder = _Mat_CopyMakeBorderPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, int, int, int, int, Scalar)>(); + ffi.Pointer Function( + Mat, Mat, int, int, int, int, int, Scalar)>(); ffi.Pointer Mat_CopyTo( Mat m, @@ -8258,8 +9277,10 @@ class CvNative { } late final _Mat_CopyToPtr = - _lookup Function(Mat, Mat)>>('Mat_CopyTo'); - late final _Mat_CopyTo = _Mat_CopyToPtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'Mat_CopyTo'); + late final _Mat_CopyTo = + _Mat_CopyToPtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_CopyToWithMask( Mat m, @@ -8273,10 +9294,11 @@ class CvNative { ); } - late final _Mat_CopyToWithMaskPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_CopyToWithMask'); - late final _Mat_CopyToWithMask = - _Mat_CopyToWithMaskPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_CopyToWithMaskPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_CopyToWithMask'); + late final _Mat_CopyToWithMask = _Mat_CopyToWithMaskPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_CountNonZero( Mat src, @@ -8288,11 +9310,12 @@ class CvNative { ); } - late final _Mat_CountNonZeroPtr = - _lookup Function(Mat, ffi.Pointer)>>( - 'Mat_CountNonZero'); - late final _Mat_CountNonZero = - _Mat_CountNonZeroPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_CountNonZeroPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_CountNonZero'); + late final _Mat_CountNonZero = _Mat_CountNonZeroPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_DCT( Mat src, @@ -8306,9 +9329,11 @@ class CvNative { ); } - late final _Mat_DCTPtr = - _lookup Function(Mat, Mat, ffi.Int)>>('Mat_DCT'); - late final _Mat_DCT = _Mat_DCTPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_DCTPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_DCT'); + late final _Mat_DCT = + _Mat_DCTPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_DFT( Mat m, @@ -8322,9 +9347,11 @@ class CvNative { ); } - late final _Mat_DFTPtr = - _lookup Function(Mat, Mat, ffi.Int)>>('Mat_DFT'); - late final _Mat_DFT = _Mat_DFTPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_DFTPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_DFT'); + late final _Mat_DFT = + _Mat_DFTPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_Data( Mat m, @@ -8336,10 +9363,12 @@ class CvNative { ); } - late final _Mat_DataPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Data'); - late final _Mat_Data = - _Mat_DataPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_DataPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_Data'); + late final _Mat_Data = _Mat_DataPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_DataPtr( Mat m, @@ -8355,10 +9384,11 @@ class CvNative { late final _Mat_DataPtrPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer>, ffi.Pointer)>>('Mat_DataPtr'); + ffi.Pointer Function(Mat, ffi.Pointer>, + ffi.Pointer)>>('Mat_DataPtr'); late final _Mat_DataPtr1 = _Mat_DataPtrPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer>, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, ffi.Pointer>, ffi.Pointer)>(); ffi.Pointer Mat_Determinant( Mat m, @@ -8370,11 +9400,12 @@ class CvNative { ); } - late final _Mat_DeterminantPtr = - _lookup Function(Mat, ffi.Pointer)>>( - 'Mat_Determinant'); - late final _Mat_Determinant = - _Mat_DeterminantPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_DeterminantPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_Determinant'); + late final _Mat_Determinant = _Mat_DeterminantPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Divide( Mat src1, @@ -8388,9 +9419,11 @@ class CvNative { ); } - late final _Mat_DividePtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_Divide'); - late final _Mat_Divide = _Mat_DividePtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_DividePtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_Divide'); + late final _Mat_Divide = _Mat_DividePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_DivideF64( Mat m, @@ -8402,9 +9435,11 @@ class CvNative { ); } - late final _Mat_DivideF64Ptr = - _lookup Function(Mat, double_t)>>('Mat_DivideF64'); - late final _Mat_DivideF64 = _Mat_DivideF64Ptr.asFunction Function(Mat, double)>(); + late final _Mat_DivideF64Ptr = _lookup< + ffi.NativeFunction Function(Mat, double_t)>>( + 'Mat_DivideF64'); + late final _Mat_DivideF64 = _Mat_DivideF64Ptr.asFunction< + ffi.Pointer Function(Mat, double)>(); ffi.Pointer Mat_DivideFloat( Mat m, @@ -8417,8 +9452,10 @@ class CvNative { } late final _Mat_DivideFloatPtr = - _lookup Function(Mat, float_t)>>('Mat_DivideFloat'); - late final _Mat_DivideFloat = _Mat_DivideFloatPtr.asFunction Function(Mat, double)>(); + _lookup Function(Mat, float_t)>>( + 'Mat_DivideFloat'); + late final _Mat_DivideFloat = _Mat_DivideFloatPtr.asFunction< + ffi.Pointer Function(Mat, double)>(); ffi.Pointer Mat_DivideI32( Mat m, @@ -8430,9 +9467,11 @@ class CvNative { ); } - late final _Mat_DivideI32Ptr = - _lookup Function(Mat, ffi.Int32)>>('Mat_DivideI32'); - late final _Mat_DivideI32 = _Mat_DivideI32Ptr.asFunction Function(Mat, int)>(); + late final _Mat_DivideI32Ptr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Int32)>>( + 'Mat_DivideI32'); + late final _Mat_DivideI32 = + _Mat_DivideI32Ptr.asFunction Function(Mat, int)>(); ffi.Pointer Mat_DivideSChar( Mat m, @@ -8444,9 +9483,11 @@ class CvNative { ); } - late final _Mat_DivideSCharPtr = - _lookup Function(Mat, ffi.Int8)>>('Mat_DivideSChar'); - late final _Mat_DivideSChar = _Mat_DivideSCharPtr.asFunction Function(Mat, int)>(); + late final _Mat_DivideSCharPtr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Int8)>>( + 'Mat_DivideSChar'); + late final _Mat_DivideSChar = _Mat_DivideSCharPtr.asFunction< + ffi.Pointer Function(Mat, int)>(); ffi.Pointer Mat_DivideUChar( Mat m, @@ -8458,9 +9499,11 @@ class CvNative { ); } - late final _Mat_DivideUCharPtr = - _lookup Function(Mat, ffi.Uint8)>>('Mat_DivideUChar'); - late final _Mat_DivideUChar = _Mat_DivideUCharPtr.asFunction Function(Mat, int)>(); + late final _Mat_DivideUCharPtr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Uint8)>>( + 'Mat_DivideUChar'); + late final _Mat_DivideUChar = _Mat_DivideUCharPtr.asFunction< + ffi.Pointer Function(Mat, int)>(); ffi.Pointer Mat_Eigen( Mat src, @@ -8476,11 +9519,12 @@ class CvNative { ); } - late final _Mat_EigenPtr = - _lookup Function(Mat, Mat, Mat, ffi.Pointer)>>( - 'Mat_Eigen'); - late final _Mat_Eigen = - _Mat_EigenPtr.asFunction Function(Mat, Mat, Mat, ffi.Pointer)>(); + late final _Mat_EigenPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Pointer)>>('Mat_Eigen'); + late final _Mat_Eigen = _Mat_EigenPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer Mat_EigenNonSymmetric( Mat src, @@ -8494,10 +9538,11 @@ class CvNative { ); } - late final _Mat_EigenNonSymmetricPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_EigenNonSymmetric'); - late final _Mat_EigenNonSymmetric = - _Mat_EigenNonSymmetricPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_EigenNonSymmetricPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_EigenNonSymmetric'); + late final _Mat_EigenNonSymmetric = _Mat_EigenNonSymmetricPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_ElemSize( Mat m, @@ -8509,10 +9554,12 @@ class CvNative { ); } - late final _Mat_ElemSizePtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_ElemSize'); - late final _Mat_ElemSize = - _Mat_ElemSizePtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_ElemSizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_ElemSize'); + late final _Mat_ElemSize = _Mat_ElemSizePtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Empty( Mat m, @@ -8524,10 +9571,12 @@ class CvNative { ); } - late final _Mat_EmptyPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Empty'); - late final _Mat_Empty = - _Mat_EmptyPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_EmptyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_Empty'); + late final _Mat_Empty = _Mat_EmptyPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Exp( Mat src, @@ -8539,8 +9588,11 @@ class CvNative { ); } - late final _Mat_ExpPtr = _lookup Function(Mat, Mat)>>('Mat_Exp'); - late final _Mat_Exp = _Mat_ExpPtr.asFunction Function(Mat, Mat)>(); + late final _Mat_ExpPtr = + _lookup Function(Mat, Mat)>>( + 'Mat_Exp'); + late final _Mat_Exp = + _Mat_ExpPtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_ExtractChannel( Mat src, @@ -8554,10 +9606,12 @@ class CvNative { ); } - late final _Mat_ExtractChannelPtr = - _lookup Function(Mat, Mat, ffi.Int)>>('Mat_ExtractChannel'); - late final _Mat_ExtractChannel = - _Mat_ExtractChannelPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_ExtractChannelPtr = _lookup< + ffi + .NativeFunction Function(Mat, Mat, ffi.Int)>>( + 'Mat_ExtractChannel'); + late final _Mat_ExtractChannel = _Mat_ExtractChannelPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int)>(); ffi.Pointer Mat_FindNonZero( Mat src, @@ -8570,8 +9624,10 @@ class CvNative { } late final _Mat_FindNonZeroPtr = - _lookup Function(Mat, Mat)>>('Mat_FindNonZero'); - late final _Mat_FindNonZero = _Mat_FindNonZeroPtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'Mat_FindNonZero'); + late final _Mat_FindNonZero = _Mat_FindNonZeroPtr.asFunction< + ffi.Pointer Function(Mat, Mat)>(); ffi.Pointer Mat_Flip( Mat src, @@ -8585,9 +9641,11 @@ class CvNative { ); } - late final _Mat_FlipPtr = - _lookup Function(Mat, Mat, ffi.Int)>>('Mat_Flip'); - late final _Mat_Flip = _Mat_FlipPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_FlipPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_Flip'); + late final _Mat_Flip = + _Mat_FlipPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_FromCMat( Mat m, @@ -8599,10 +9657,12 @@ class CvNative { ); } - late final _Mat_FromCMatPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_FromCMat'); - late final _Mat_FromCMat = - _Mat_FromCMatPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_FromCMatPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_FromCMat'); + late final _Mat_FromCMat = _Mat_FromCMatPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_FromPtr( Mat m, @@ -8626,10 +9686,11 @@ class CvNative { late final _Mat_FromPtrPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_FromPtr'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_FromPtr'); late final _Mat_FromPtr = _Mat_FromPtrPtr.asFunction< - ffi.Pointer Function(Mat, int, int, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, int, int, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_Gemm( Mat src1, @@ -8653,9 +9714,11 @@ class CvNative { late final _Mat_GemmPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, ffi.Double, Mat, ffi.Double, Mat, ffi.Int)>>('Mat_Gemm'); - late final _Mat_Gemm = - _Mat_GemmPtr.asFunction Function(Mat, Mat, double, Mat, double, Mat, int)>(); + ffi.Pointer Function(Mat, Mat, ffi.Double, Mat, ffi.Double, + Mat, ffi.Int)>>('Mat_Gemm'); + late final _Mat_Gemm = _Mat_GemmPtr.asFunction< + ffi.Pointer Function( + Mat, Mat, double, Mat, double, Mat, int)>(); ffi.Pointer Mat_GetDouble( Mat m, @@ -8672,10 +9735,11 @@ class CvNative { } late final _Mat_GetDoublePtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetDouble'); - late final _Mat_GetDouble = - _Mat_GetDoublePtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, + ffi.Pointer)>>('Mat_GetDouble'); + late final _Mat_GetDouble = _Mat_GetDoublePtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetDouble3( Mat m, @@ -8695,10 +9759,11 @@ class CvNative { late final _Mat_GetDouble3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetDouble3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer)>>('Mat_GetDouble3'); late final _Mat_GetDouble3 = _Mat_GetDouble3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetFloat( Mat m, @@ -8715,10 +9780,11 @@ class CvNative { } late final _Mat_GetFloatPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetFloat'); - late final _Mat_GetFloat = - _Mat_GetFloatPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetFloat'); + late final _Mat_GetFloat = _Mat_GetFloatPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetFloat3( Mat m, @@ -8738,10 +9804,11 @@ class CvNative { late final _Mat_GetFloat3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetFloat3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer)>>('Mat_GetFloat3'); late final _Mat_GetFloat3 = _Mat_GetFloat3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetInt( Mat m, @@ -8758,10 +9825,11 @@ class CvNative { } late final _Mat_GetIntPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetInt'); - late final _Mat_GetInt = - _Mat_GetIntPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetInt'); + late final _Mat_GetInt = _Mat_GetIntPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetInt3( Mat m, @@ -8781,10 +9849,11 @@ class CvNative { late final _Mat_GetInt3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetInt3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer)>>('Mat_GetInt3'); late final _Mat_GetInt3 = _Mat_GetInt3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetOptimalDFTSize( int vecsize, @@ -8796,11 +9865,12 @@ class CvNative { ); } - late final _Mat_GetOptimalDFTSizePtr = - _lookup Function(ffi.Int, ffi.Pointer)>>( - 'Mat_GetOptimalDFTSize'); - late final _Mat_GetOptimalDFTSize = - _Mat_GetOptimalDFTSizePtr.asFunction Function(int, ffi.Pointer)>(); + late final _Mat_GetOptimalDFTSizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int, ffi.Pointer)>>('Mat_GetOptimalDFTSize'); + late final _Mat_GetOptimalDFTSize = _Mat_GetOptimalDFTSizePtr.asFunction< + ffi.Pointer Function(int, ffi.Pointer)>(); ffi.Pointer Mat_GetSChar( Mat m, @@ -8817,10 +9887,11 @@ class CvNative { } late final _Mat_GetSCharPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetSChar'); - late final _Mat_GetSChar = - _Mat_GetSCharPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetSChar'); + late final _Mat_GetSChar = _Mat_GetSCharPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetSChar3( Mat m, @@ -8840,10 +9911,11 @@ class CvNative { late final _Mat_GetSChar3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetSChar3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer)>>('Mat_GetSChar3'); late final _Mat_GetSChar3 = _Mat_GetSChar3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetShort( Mat m, @@ -8860,10 +9932,11 @@ class CvNative { } late final _Mat_GetShortPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetShort'); - late final _Mat_GetShort = - _Mat_GetShortPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetShort'); + late final _Mat_GetShort = _Mat_GetShortPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetShort3( Mat m, @@ -8883,10 +9956,11 @@ class CvNative { late final _Mat_GetShort3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetShort3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer)>>('Mat_GetShort3'); late final _Mat_GetShort3 = _Mat_GetShort3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetUChar( Mat m, @@ -8903,10 +9977,11 @@ class CvNative { } late final _Mat_GetUCharPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetUChar'); - late final _Mat_GetUChar = - _Mat_GetUCharPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetUChar'); + late final _Mat_GetUChar = _Mat_GetUCharPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetUChar3( Mat m, @@ -8926,10 +10001,11 @@ class CvNative { late final _Mat_GetUChar3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetUChar3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer)>>('Mat_GetUChar3'); late final _Mat_GetUChar3 = _Mat_GetUChar3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetUShort( Mat m, @@ -8946,10 +10022,11 @@ class CvNative { } late final _Mat_GetUShortPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetUShort'); - late final _Mat_GetUShort = - _Mat_GetUShortPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, + ffi.Pointer)>>('Mat_GetUShort'); + late final _Mat_GetUShort = _Mat_GetUShortPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetUShort3( Mat m, @@ -8969,10 +10046,11 @@ class CvNative { late final _Mat_GetUShort3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetUShort3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer)>>('Mat_GetUShort3'); late final _Mat_GetUShort3 = _Mat_GetUShort3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec2b( Mat m, @@ -8988,11 +10066,12 @@ class CvNative { ); } - late final _Mat_GetVec2bPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec2b'); - late final _Mat_GetVec2b = - _Mat_GetVec2bPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec2bPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec2b'); + late final _Mat_GetVec2b = _Mat_GetVec2bPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec2d( Mat m, @@ -9008,11 +10087,12 @@ class CvNative { ); } - late final _Mat_GetVec2dPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec2d'); - late final _Mat_GetVec2d = - _Mat_GetVec2dPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec2dPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec2d'); + late final _Mat_GetVec2d = _Mat_GetVec2dPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec2f( Mat m, @@ -9028,11 +10108,12 @@ class CvNative { ); } - late final _Mat_GetVec2fPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec2f'); - late final _Mat_GetVec2f = - _Mat_GetVec2fPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec2fPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec2f'); + late final _Mat_GetVec2f = _Mat_GetVec2fPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec2i( Mat m, @@ -9048,11 +10129,12 @@ class CvNative { ); } - late final _Mat_GetVec2iPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec2i'); - late final _Mat_GetVec2i = - _Mat_GetVec2iPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec2iPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec2i'); + late final _Mat_GetVec2i = _Mat_GetVec2iPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec2s( Mat m, @@ -9068,11 +10150,12 @@ class CvNative { ); } - late final _Mat_GetVec2sPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec2s'); - late final _Mat_GetVec2s = - _Mat_GetVec2sPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec2sPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec2s'); + late final _Mat_GetVec2s = _Mat_GetVec2sPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec2w( Mat m, @@ -9088,11 +10171,12 @@ class CvNative { ); } - late final _Mat_GetVec2wPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec2w'); - late final _Mat_GetVec2w = - _Mat_GetVec2wPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec2wPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec2w'); + late final _Mat_GetVec2w = _Mat_GetVec2wPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec3b( Mat m, @@ -9108,11 +10192,12 @@ class CvNative { ); } - late final _Mat_GetVec3bPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec3b'); - late final _Mat_GetVec3b = - _Mat_GetVec3bPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec3bPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec3b'); + late final _Mat_GetVec3b = _Mat_GetVec3bPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec3d( Mat m, @@ -9128,11 +10213,12 @@ class CvNative { ); } - late final _Mat_GetVec3dPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec3d'); - late final _Mat_GetVec3d = - _Mat_GetVec3dPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec3dPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec3d'); + late final _Mat_GetVec3d = _Mat_GetVec3dPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec3f( Mat m, @@ -9148,11 +10234,12 @@ class CvNative { ); } - late final _Mat_GetVec3fPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec3f'); - late final _Mat_GetVec3f = - _Mat_GetVec3fPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec3fPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec3f'); + late final _Mat_GetVec3f = _Mat_GetVec3fPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec3i( Mat m, @@ -9168,11 +10255,12 @@ class CvNative { ); } - late final _Mat_GetVec3iPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec3i'); - late final _Mat_GetVec3i = - _Mat_GetVec3iPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec3iPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec3i'); + late final _Mat_GetVec3i = _Mat_GetVec3iPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec3s( Mat m, @@ -9188,11 +10276,12 @@ class CvNative { ); } - late final _Mat_GetVec3sPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec3s'); - late final _Mat_GetVec3s = - _Mat_GetVec3sPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec3sPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec3s'); + late final _Mat_GetVec3s = _Mat_GetVec3sPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec3w( Mat m, @@ -9208,11 +10297,12 @@ class CvNative { ); } - late final _Mat_GetVec3wPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec3w'); - late final _Mat_GetVec3w = - _Mat_GetVec3wPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec3wPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec3w'); + late final _Mat_GetVec3w = _Mat_GetVec3wPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec4b( Mat m, @@ -9228,11 +10318,12 @@ class CvNative { ); } - late final _Mat_GetVec4bPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec4b'); - late final _Mat_GetVec4b = - _Mat_GetVec4bPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec4bPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec4b'); + late final _Mat_GetVec4b = _Mat_GetVec4bPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec4d( Mat m, @@ -9248,11 +10339,12 @@ class CvNative { ); } - late final _Mat_GetVec4dPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec4d'); - late final _Mat_GetVec4d = - _Mat_GetVec4dPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec4dPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec4d'); + late final _Mat_GetVec4d = _Mat_GetVec4dPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec4f( Mat m, @@ -9268,11 +10360,12 @@ class CvNative { ); } - late final _Mat_GetVec4fPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec4f'); - late final _Mat_GetVec4f = - _Mat_GetVec4fPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec4fPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec4f'); + late final _Mat_GetVec4f = _Mat_GetVec4fPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec4i( Mat m, @@ -9288,11 +10381,12 @@ class CvNative { ); } - late final _Mat_GetVec4iPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec4i'); - late final _Mat_GetVec4i = - _Mat_GetVec4iPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec4iPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec4i'); + late final _Mat_GetVec4i = _Mat_GetVec4iPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec4s( Mat m, @@ -9308,11 +10402,12 @@ class CvNative { ); } - late final _Mat_GetVec4sPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec4s'); - late final _Mat_GetVec4s = - _Mat_GetVec4sPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec4sPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec4s'); + late final _Mat_GetVec4s = _Mat_GetVec4sPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec4w( Mat m, @@ -9328,11 +10423,12 @@ class CvNative { ); } - late final _Mat_GetVec4wPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec4w'); - late final _Mat_GetVec4w = - _Mat_GetVec4wPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec4wPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec4w'); + late final _Mat_GetVec4w = _Mat_GetVec4wPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec6d( Mat m, @@ -9348,11 +10444,12 @@ class CvNative { ); } - late final _Mat_GetVec6dPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec6d'); - late final _Mat_GetVec6d = - _Mat_GetVec6dPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec6dPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec6d'); + late final _Mat_GetVec6d = _Mat_GetVec6dPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec6f( Mat m, @@ -9368,11 +10465,12 @@ class CvNative { ); } - late final _Mat_GetVec6fPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec6f'); - late final _Mat_GetVec6f = - _Mat_GetVec6fPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec6fPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec6f'); + late final _Mat_GetVec6f = _Mat_GetVec6fPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec6i( Mat m, @@ -9388,11 +10486,12 @@ class CvNative { ); } - late final _Mat_GetVec6iPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec6i'); - late final _Mat_GetVec6i = - _Mat_GetVec6iPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec6iPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec6i'); + late final _Mat_GetVec6i = _Mat_GetVec6iPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_GetVec8i( Mat m, @@ -9408,11 +10507,12 @@ class CvNative { ); } - late final _Mat_GetVec8iPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_GetVec8i'); - late final _Mat_GetVec8i = - _Mat_GetVec8iPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_GetVec8iPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_GetVec8i'); + late final _Mat_GetVec8i = _Mat_GetVec8iPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_Hconcat( Mat src1, @@ -9426,9 +10526,11 @@ class CvNative { ); } - late final _Mat_HconcatPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_Hconcat'); - late final _Mat_Hconcat = _Mat_HconcatPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_HconcatPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_Hconcat'); + late final _Mat_Hconcat = _Mat_HconcatPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_Idct( Mat src, @@ -9442,9 +10544,11 @@ class CvNative { ); } - late final _Mat_IdctPtr = - _lookup Function(Mat, Mat, ffi.Int)>>('Mat_Idct'); - late final _Mat_Idct = _Mat_IdctPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_IdctPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_Idct'); + late final _Mat_Idct = + _Mat_IdctPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_Idft( Mat src, @@ -9460,9 +10564,12 @@ class CvNative { ); } - late final _Mat_IdftPtr = - _lookup Function(Mat, Mat, ffi.Int, ffi.Int)>>('Mat_Idft'); - late final _Mat_Idft = _Mat_IdftPtr.asFunction Function(Mat, Mat, int, int)>(); + late final _Mat_IdftPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Int)>>('Mat_Idft'); + late final _Mat_Idft = _Mat_IdftPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, int)>(); ffi.Pointer Mat_InRange( Mat src, @@ -9478,9 +10585,11 @@ class CvNative { ); } - late final _Mat_InRangePtr = - _lookup Function(Mat, Mat, Mat, Mat)>>('Mat_InRange'); - late final _Mat_InRange = _Mat_InRangePtr.asFunction Function(Mat, Mat, Mat, Mat)>(); + late final _Mat_InRangePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat)>>('Mat_InRange'); + late final _Mat_InRange = _Mat_InRangePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat)>(); ffi.Pointer Mat_InRangeWithScalar( Mat src, @@ -9496,11 +10605,12 @@ class CvNative { ); } - late final _Mat_InRangeWithScalarPtr = - _lookup Function(Mat, Scalar, Scalar, Mat)>>( - 'Mat_InRangeWithScalar'); - late final _Mat_InRangeWithScalar = - _Mat_InRangeWithScalarPtr.asFunction Function(Mat, Scalar, Scalar, Mat)>(); + late final _Mat_InRangeWithScalarPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Scalar, Scalar, Mat)>>('Mat_InRangeWithScalar'); + late final _Mat_InRangeWithScalar = _Mat_InRangeWithScalarPtr.asFunction< + ffi.Pointer Function(Mat, Scalar, Scalar, Mat)>(); ffi.Pointer Mat_InsertChannel( Mat src, @@ -9514,10 +10624,12 @@ class CvNative { ); } - late final _Mat_InsertChannelPtr = - _lookup Function(Mat, Mat, ffi.Int)>>('Mat_InsertChannel'); - late final _Mat_InsertChannel = - _Mat_InsertChannelPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_InsertChannelPtr = _lookup< + ffi + .NativeFunction Function(Mat, Mat, ffi.Int)>>( + 'Mat_InsertChannel'); + late final _Mat_InsertChannel = _Mat_InsertChannelPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int)>(); ffi.Pointer Mat_Invert( Mat src, @@ -9533,11 +10645,12 @@ class CvNative { ); } - late final _Mat_InvertPtr = - _lookup Function(Mat, Mat, ffi.Int, ffi.Pointer)>>( - 'Mat_Invert'); - late final _Mat_Invert = - _Mat_InvertPtr.asFunction Function(Mat, Mat, int, ffi.Pointer)>(); + late final _Mat_InvertPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Pointer)>>('Mat_Invert'); + late final _Mat_Invert = _Mat_InvertPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer Mat_IsContinuous( Mat m, @@ -9549,11 +10662,12 @@ class CvNative { ); } - late final _Mat_IsContinuousPtr = - _lookup Function(Mat, ffi.Pointer)>>( - 'Mat_IsContinuous'); - late final _Mat_IsContinuous = - _Mat_IsContinuousPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_IsContinuousPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_IsContinuous'); + late final _Mat_IsContinuous = _Mat_IsContinuousPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Log( Mat src, @@ -9565,8 +10679,11 @@ class CvNative { ); } - late final _Mat_LogPtr = _lookup Function(Mat, Mat)>>('Mat_Log'); - late final _Mat_Log = _Mat_LogPtr.asFunction Function(Mat, Mat)>(); + late final _Mat_LogPtr = + _lookup Function(Mat, Mat)>>( + 'Mat_Log'); + late final _Mat_Log = + _Mat_LogPtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_Magnitude( Mat x, @@ -9580,9 +10697,11 @@ class CvNative { ); } - late final _Mat_MagnitudePtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_Magnitude'); - late final _Mat_Magnitude = _Mat_MagnitudePtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_MagnitudePtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_Magnitude'); + late final _Mat_Magnitude = _Mat_MagnitudePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_Max( Mat src1, @@ -9596,9 +10715,11 @@ class CvNative { ); } - late final _Mat_MaxPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_Max'); - late final _Mat_Max = _Mat_MaxPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_MaxPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_Max'); + late final _Mat_Max = + _Mat_MaxPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_Mean( Mat m, @@ -9610,9 +10731,12 @@ class CvNative { ); } - late final _Mat_MeanPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Mean'); - late final _Mat_Mean = _Mat_MeanPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_MeanPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_Mean'); + late final _Mat_Mean = _Mat_MeanPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_MeanStdDev( Mat src, @@ -9627,10 +10751,12 @@ class CvNative { } late final _Mat_MeanStdDevPtr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Pointer, ffi.Pointer)>>( - 'Mat_MeanStdDev'); + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Pointer, + ffi.Pointer)>>('Mat_MeanStdDev'); late final _Mat_MeanStdDev = _Mat_MeanStdDevPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Mat_MeanStdDevWithMask( Mat src, @@ -9648,10 +10774,11 @@ class CvNative { late final _Mat_MeanStdDevWithMaskPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer, ffi.Pointer, Mat)>>('Mat_MeanStdDevWithMask'); + ffi.Pointer Function(Mat, ffi.Pointer, + ffi.Pointer, Mat)>>('Mat_MeanStdDevWithMask'); late final _Mat_MeanStdDevWithMask = _Mat_MeanStdDevWithMaskPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer, ffi.Pointer, Mat)>(); + ffi.Pointer Function( + Mat, ffi.Pointer, ffi.Pointer, Mat)>(); ffi.Pointer Mat_MeanWithMask( Mat m, @@ -9665,11 +10792,12 @@ class CvNative { ); } - late final _Mat_MeanWithMaskPtr = - _lookup Function(Mat, Mat, ffi.Pointer)>>( - 'Mat_MeanWithMask'); - late final _Mat_MeanWithMask = - _Mat_MeanWithMaskPtr.asFunction Function(Mat, Mat, ffi.Pointer)>(); + late final _Mat_MeanWithMaskPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Pointer)>>('Mat_MeanWithMask'); + late final _Mat_MeanWithMask = _Mat_MeanWithMaskPtr.asFunction< + ffi.Pointer Function(Mat, Mat, ffi.Pointer)>(); ffi.Pointer Mat_Merge( VecMat mats, @@ -9682,8 +10810,10 @@ class CvNative { } late final _Mat_MergePtr = - _lookup Function(VecMat, Mat)>>('Mat_Merge'); - late final _Mat_Merge = _Mat_MergePtr.asFunction Function(VecMat, Mat)>(); + _lookup Function(VecMat, Mat)>>( + 'Mat_Merge'); + late final _Mat_Merge = + _Mat_MergePtr.asFunction Function(VecMat, Mat)>(); ffi.Pointer Mat_Min( Mat src1, @@ -9697,9 +10827,11 @@ class CvNative { ); } - late final _Mat_MinPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_Min'); - late final _Mat_Min = _Mat_MinPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_MinPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_Min'); + late final _Mat_Min = + _Mat_MinPtr.asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_MinMaxIdx( Mat m, @@ -9719,11 +10851,19 @@ class CvNative { late final _Mat_MinMaxIdxPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('Mat_MinMaxIdx'); + ffi.Pointer Function( + Mat, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('Mat_MinMaxIdx'); late final _Mat_MinMaxIdx = _Mat_MinMaxIdxPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); ffi.Pointer Mat_MinMaxLoc( Mat m, @@ -9743,11 +10883,15 @@ class CvNative { late final _Mat_MinMaxLocPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('Mat_MinMaxLoc'); + ffi.Pointer Function( + Mat, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('Mat_MinMaxLoc'); late final _Mat_MinMaxLoc = _Mat_MinMaxLocPtr.asFunction< - ffi.Pointer Function( - Mat, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(Mat, ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Mat_MixChannels( VecMat src, @@ -9761,10 +10905,12 @@ class CvNative { ); } - late final _Mat_MixChannelsPtr = - _lookup Function(VecMat, VecMat, VecInt)>>('Mat_MixChannels'); - late final _Mat_MixChannels = - _Mat_MixChannelsPtr.asFunction Function(VecMat, VecMat, VecInt)>(); + late final _Mat_MixChannelsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecMat, VecMat, VecInt)>>('Mat_MixChannels'); + late final _Mat_MixChannels = _Mat_MixChannelsPtr.asFunction< + ffi.Pointer Function(VecMat, VecMat, VecInt)>(); ffi.Pointer Mat_MulSpectrums( Mat a, @@ -9780,10 +10926,12 @@ class CvNative { ); } - late final _Mat_MulSpectrumsPtr = - _lookup Function(Mat, Mat, Mat, ffi.Int)>>('Mat_MulSpectrums'); - late final _Mat_MulSpectrums = - _Mat_MulSpectrumsPtr.asFunction Function(Mat, Mat, Mat, int)>(); + late final _Mat_MulSpectrumsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Int)>>('Mat_MulSpectrums'); + late final _Mat_MulSpectrums = _Mat_MulSpectrumsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, int)>(); ffi.Pointer Mat_Multiply( Mat src1, @@ -9797,9 +10945,11 @@ class CvNative { ); } - late final _Mat_MultiplyPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_Multiply'); - late final _Mat_Multiply = _Mat_MultiplyPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_MultiplyPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_Multiply'); + late final _Mat_Multiply = _Mat_MultiplyPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_MultiplyF64( Mat m, @@ -9811,9 +10961,11 @@ class CvNative { ); } - late final _Mat_MultiplyF64Ptr = - _lookup Function(Mat, double_t)>>('Mat_MultiplyF64'); - late final _Mat_MultiplyF64 = _Mat_MultiplyF64Ptr.asFunction Function(Mat, double)>(); + late final _Mat_MultiplyF64Ptr = _lookup< + ffi.NativeFunction Function(Mat, double_t)>>( + 'Mat_MultiplyF64'); + late final _Mat_MultiplyF64 = _Mat_MultiplyF64Ptr.asFunction< + ffi.Pointer Function(Mat, double)>(); ffi.Pointer Mat_MultiplyFloat( Mat m, @@ -9826,9 +10978,10 @@ class CvNative { } late final _Mat_MultiplyFloatPtr = - _lookup Function(Mat, float_t)>>('Mat_MultiplyFloat'); - late final _Mat_MultiplyFloat = - _Mat_MultiplyFloatPtr.asFunction Function(Mat, double)>(); + _lookup Function(Mat, float_t)>>( + 'Mat_MultiplyFloat'); + late final _Mat_MultiplyFloat = _Mat_MultiplyFloatPtr.asFunction< + ffi.Pointer Function(Mat, double)>(); ffi.Pointer Mat_MultiplyI32( Mat m, @@ -9840,9 +10993,11 @@ class CvNative { ); } - late final _Mat_MultiplyI32Ptr = - _lookup Function(Mat, ffi.Int32)>>('Mat_MultiplyI32'); - late final _Mat_MultiplyI32 = _Mat_MultiplyI32Ptr.asFunction Function(Mat, int)>(); + late final _Mat_MultiplyI32Ptr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Int32)>>( + 'Mat_MultiplyI32'); + late final _Mat_MultiplyI32 = _Mat_MultiplyI32Ptr.asFunction< + ffi.Pointer Function(Mat, int)>(); ffi.Pointer Mat_MultiplyMatrix( Mat x, @@ -9856,11 +11011,12 @@ class CvNative { ); } - late final _Mat_MultiplyMatrixPtr = - _lookup Function(Mat, Mat, ffi.Pointer)>>( - 'Mat_MultiplyMatrix'); - late final _Mat_MultiplyMatrix = - _Mat_MultiplyMatrixPtr.asFunction Function(Mat, Mat, ffi.Pointer)>(); + late final _Mat_MultiplyMatrixPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Pointer)>>('Mat_MultiplyMatrix'); + late final _Mat_MultiplyMatrix = _Mat_MultiplyMatrixPtr.asFunction< + ffi.Pointer Function(Mat, Mat, ffi.Pointer)>(); ffi.Pointer Mat_MultiplySChar( Mat m, @@ -9872,10 +11028,11 @@ class CvNative { ); } - late final _Mat_MultiplySCharPtr = - _lookup Function(Mat, ffi.Int8)>>('Mat_MultiplySChar'); - late final _Mat_MultiplySChar = - _Mat_MultiplySCharPtr.asFunction Function(Mat, int)>(); + late final _Mat_MultiplySCharPtr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Int8)>>( + 'Mat_MultiplySChar'); + late final _Mat_MultiplySChar = _Mat_MultiplySCharPtr.asFunction< + ffi.Pointer Function(Mat, int)>(); ffi.Pointer Mat_MultiplyUChar( Mat m, @@ -9887,10 +11044,11 @@ class CvNative { ); } - late final _Mat_MultiplyUCharPtr = - _lookup Function(Mat, ffi.Uint8)>>('Mat_MultiplyUChar'); - late final _Mat_MultiplyUChar = - _Mat_MultiplyUCharPtr.asFunction Function(Mat, int)>(); + late final _Mat_MultiplyUCharPtr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Uint8)>>( + 'Mat_MultiplyUChar'); + late final _Mat_MultiplyUChar = _Mat_MultiplyUCharPtr.asFunction< + ffi.Pointer Function(Mat, int)>(); ffi.Pointer Mat_MultiplyWithParams( Mat src1, @@ -9908,11 +11066,12 @@ class CvNative { ); } - late final _Mat_MultiplyWithParamsPtr = - _lookup Function(Mat, Mat, Mat, ffi.Double, ffi.Int)>>( - 'Mat_MultiplyWithParams'); - late final _Mat_MultiplyWithParams = - _Mat_MultiplyWithParamsPtr.asFunction Function(Mat, Mat, Mat, double, int)>(); + late final _Mat_MultiplyWithParamsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Double, ffi.Int)>>('Mat_MultiplyWithParams'); + late final _Mat_MultiplyWithParams = _Mat_MultiplyWithParamsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, double, int)>(); /// @brief Create empty Mat /// @@ -9933,9 +11092,11 @@ class CvNative { ); } - late final _Mat_NewPtr = - _lookup Function(ffi.Pointer)>>('Mat_New'); - late final _Mat_New = _Mat_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _Mat_NewPtr = _lookup< + ffi.NativeFunction Function(ffi.Pointer)>>( + 'Mat_New'); + late final _Mat_New = _Mat_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer Mat_NewFromBytes( int rows, @@ -9957,10 +11118,16 @@ class CvNative { late final _Mat_NewFromBytesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer, ffi.Int, + ffi.Pointer Function( + ffi.Int, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Int, ffi.Pointer)>>('Mat_NewFromBytes'); late final _Mat_NewFromBytes = _Mat_NewFromBytesPtr.asFunction< - ffi.Pointer Function(int, int, int, ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function( + int, int, int, ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer Mat_NewFromScalar( Scalar ar, @@ -9974,11 +11141,12 @@ class CvNative { ); } - late final _Mat_NewFromScalarPtr = - _lookup Function(Scalar, ffi.Int, ffi.Pointer)>>( - 'Mat_NewFromScalar'); - late final _Mat_NewFromScalar = - _Mat_NewFromScalarPtr.asFunction Function(Scalar, int, ffi.Pointer)>(); + late final _Mat_NewFromScalarPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Scalar, ffi.Int, ffi.Pointer)>>('Mat_NewFromScalar'); + late final _Mat_NewFromScalar = _Mat_NewFromScalarPtr.asFunction< + ffi.Pointer Function(Scalar, int, ffi.Pointer)>(); ffi.Pointer Mat_NewFromVecPoint( VecPoint vec, @@ -9990,11 +11158,12 @@ class CvNative { ); } - late final _Mat_NewFromVecPointPtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'Mat_NewFromVecPoint'); - late final _Mat_NewFromVecPoint = - _Mat_NewFromVecPointPtr.asFunction Function(VecPoint, ffi.Pointer)>(); + late final _Mat_NewFromVecPointPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('Mat_NewFromVecPoint'); + late final _Mat_NewFromVecPoint = _Mat_NewFromVecPointPtr.asFunction< + ffi.Pointer Function(VecPoint, ffi.Pointer)>(); ffi.Pointer Mat_NewFromVecPoint2f( VecPoint2f vec, @@ -10006,11 +11175,12 @@ class CvNative { ); } - late final _Mat_NewFromVecPoint2fPtr = - _lookup Function(VecPoint2f, ffi.Pointer)>>( - 'Mat_NewFromVecPoint2f'); - late final _Mat_NewFromVecPoint2f = - _Mat_NewFromVecPoint2fPtr.asFunction Function(VecPoint2f, ffi.Pointer)>(); + late final _Mat_NewFromVecPoint2fPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint2f, ffi.Pointer)>>('Mat_NewFromVecPoint2f'); + late final _Mat_NewFromVecPoint2f = _Mat_NewFromVecPoint2fPtr.asFunction< + ffi.Pointer Function(VecPoint2f, ffi.Pointer)>(); ffi.Pointer Mat_NewFromVecPoint3f( VecPoint3f vec, @@ -10022,11 +11192,12 @@ class CvNative { ); } - late final _Mat_NewFromVecPoint3fPtr = - _lookup Function(VecPoint3f, ffi.Pointer)>>( - 'Mat_NewFromVecPoint3f'); - late final _Mat_NewFromVecPoint3f = - _Mat_NewFromVecPoint3fPtr.asFunction Function(VecPoint3f, ffi.Pointer)>(); + late final _Mat_NewFromVecPoint3fPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint3f, ffi.Pointer)>>('Mat_NewFromVecPoint3f'); + late final _Mat_NewFromVecPoint3f = _Mat_NewFromVecPoint3fPtr.asFunction< + ffi.Pointer Function(VecPoint3f, ffi.Pointer)>(); ffi.Pointer Mat_NewWithSize( int rows, @@ -10043,10 +11214,11 @@ class CvNative { } late final _Mat_NewWithSizePtr = _lookup< - ffi.NativeFunction Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_NewWithSize'); - late final _Mat_NewWithSize = - _Mat_NewWithSizePtr.asFunction Function(int, int, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_NewWithSize'); + late final _Mat_NewWithSize = _Mat_NewWithSizePtr.asFunction< + ffi.Pointer Function(int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_NewWithSizeFromScalar( Scalar ar, @@ -10066,10 +11238,12 @@ class CvNative { late final _Mat_NewWithSizeFromScalarPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(Scalar, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer)>>('Mat_NewWithSizeFromScalar'); + late final _Mat_NewWithSizeFromScalar = + _Mat_NewWithSizeFromScalarPtr.asFunction< ffi.Pointer Function( - Scalar, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_NewWithSizeFromScalar'); - late final _Mat_NewWithSizeFromScalar = _Mat_NewWithSizeFromScalarPtr.asFunction< - ffi.Pointer Function(Scalar, int, int, int, ffi.Pointer)>(); + Scalar, int, int, int, ffi.Pointer)>(); ffi.Pointer Mat_NewWithSizes( VecInt sizes, @@ -10083,11 +11257,12 @@ class CvNative { ); } - late final _Mat_NewWithSizesPtr = - _lookup Function(VecInt, ffi.Int, ffi.Pointer)>>( - 'Mat_NewWithSizes'); - late final _Mat_NewWithSizes = - _Mat_NewWithSizesPtr.asFunction Function(VecInt, int, ffi.Pointer)>(); + late final _Mat_NewWithSizesPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecInt, ffi.Int, ffi.Pointer)>>('Mat_NewWithSizes'); + late final _Mat_NewWithSizes = _Mat_NewWithSizesPtr.asFunction< + ffi.Pointer Function(VecInt, int, ffi.Pointer)>(); ffi.Pointer Mat_NewWithSizesFromBytes( VecInt sizes, @@ -10103,11 +11278,14 @@ class CvNative { ); } - late final _Mat_NewWithSizesFromBytesPtr = - _lookup Function(VecInt, ffi.Int, VecChar, ffi.Pointer)>>( - 'Mat_NewWithSizesFromBytes'); - late final _Mat_NewWithSizesFromBytes = _Mat_NewWithSizesFromBytesPtr.asFunction< - ffi.Pointer Function(VecInt, int, VecChar, ffi.Pointer)>(); + late final _Mat_NewWithSizesFromBytesPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecInt, ffi.Int, VecChar, + ffi.Pointer)>>('Mat_NewWithSizesFromBytes'); + late final _Mat_NewWithSizesFromBytes = + _Mat_NewWithSizesFromBytesPtr.asFunction< + ffi.Pointer Function( + VecInt, int, VecChar, ffi.Pointer)>(); ffi.Pointer Mat_NewWithSizesFromScalar( VecInt sizes, @@ -10123,11 +11301,14 @@ class CvNative { ); } - late final _Mat_NewWithSizesFromScalarPtr = - _lookup Function(VecInt, ffi.Int, Scalar, ffi.Pointer)>>( - 'Mat_NewWithSizesFromScalar'); - late final _Mat_NewWithSizesFromScalar = _Mat_NewWithSizesFromScalarPtr.asFunction< - ffi.Pointer Function(VecInt, int, Scalar, ffi.Pointer)>(); + late final _Mat_NewWithSizesFromScalarPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecInt, ffi.Int, Scalar, + ffi.Pointer)>>('Mat_NewWithSizesFromScalar'); + late final _Mat_NewWithSizesFromScalar = + _Mat_NewWithSizesFromScalarPtr.asFunction< + ffi.Pointer Function( + VecInt, int, Scalar, ffi.Pointer)>(); ffi.Pointer Mat_Normalize( Mat src, @@ -10145,11 +11326,12 @@ class CvNative { ); } - late final _Mat_NormalizePtr = - _lookup Function(Mat, Mat, ffi.Double, ffi.Double, ffi.Int)>>( - 'Mat_Normalize'); - late final _Mat_Normalize = - _Mat_NormalizePtr.asFunction Function(Mat, Mat, double, double, int)>(); + late final _Mat_NormalizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Double, ffi.Double, ffi.Int)>>('Mat_Normalize'); + late final _Mat_Normalize = _Mat_NormalizePtr.asFunction< + ffi.Pointer Function(Mat, Mat, double, double, int)>(); ffi.Pointer Mat_PCACompute( Mat src, @@ -10167,11 +11349,12 @@ class CvNative { ); } - late final _Mat_PCAComputePtr = - _lookup Function(Mat, Mat, Mat, Mat, ffi.Int)>>( - 'Mat_PCACompute'); - late final _Mat_PCACompute = - _Mat_PCAComputePtr.asFunction Function(Mat, Mat, Mat, Mat, int)>(); + late final _Mat_PCAComputePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, ffi.Int)>>('Mat_PCACompute'); + late final _Mat_PCACompute = _Mat_PCAComputePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, int)>(); ffi.Pointer Mat_PatchNaNs( Mat m, @@ -10183,9 +11366,11 @@ class CvNative { ); } - late final _Mat_PatchNaNsPtr = - _lookup Function(Mat, ffi.Double)>>('Mat_PatchNaNs'); - late final _Mat_PatchNaNs = _Mat_PatchNaNsPtr.asFunction Function(Mat, double)>(); + late final _Mat_PatchNaNsPtr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Double)>>( + 'Mat_PatchNaNs'); + late final _Mat_PatchNaNs = _Mat_PatchNaNsPtr.asFunction< + ffi.Pointer Function(Mat, double)>(); ffi.Pointer Mat_PerspectiveTransform( Mat src, @@ -10199,10 +11384,11 @@ class CvNative { ); } - late final _Mat_PerspectiveTransformPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_PerspectiveTransform'); - late final _Mat_PerspectiveTransform = - _Mat_PerspectiveTransformPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_PerspectiveTransformPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_PerspectiveTransform'); + late final _Mat_PerspectiveTransform = _Mat_PerspectiveTransformPtr + .asFunction Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_Phase( Mat x, @@ -10218,9 +11404,12 @@ class CvNative { ); } - late final _Mat_PhasePtr = - _lookup Function(Mat, Mat, Mat, ffi.Bool)>>('Mat_Phase'); - late final _Mat_Phase = _Mat_PhasePtr.asFunction Function(Mat, Mat, Mat, bool)>(); + late final _Mat_PhasePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Bool)>>('Mat_Phase'); + late final _Mat_Phase = _Mat_PhasePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, bool)>(); ffi.Pointer Mat_PolarToCart( Mat magnitude, @@ -10238,11 +11427,12 @@ class CvNative { ); } - late final _Mat_PolarToCartPtr = - _lookup Function(Mat, Mat, Mat, Mat, ffi.Bool)>>( - 'Mat_PolarToCart'); - late final _Mat_PolarToCart = - _Mat_PolarToCartPtr.asFunction Function(Mat, Mat, Mat, Mat, bool)>(); + late final _Mat_PolarToCartPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, ffi.Bool)>>('Mat_PolarToCart'); + late final _Mat_PolarToCart = _Mat_PolarToCartPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, bool)>(); ffi.Pointer Mat_Pow( Mat src, @@ -10256,9 +11446,11 @@ class CvNative { ); } - late final _Mat_PowPtr = - _lookup Function(Mat, ffi.Double, Mat)>>('Mat_Pow'); - late final _Mat_Pow = _Mat_PowPtr.asFunction Function(Mat, double, Mat)>(); + late final _Mat_PowPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Double, Mat)>>('Mat_Pow'); + late final _Mat_Pow = _Mat_PowPtr.asFunction< + ffi.Pointer Function(Mat, double, Mat)>(); ffi.Pointer Mat_Ptr_f32_1( Mat m, @@ -10273,11 +11465,12 @@ class CvNative { } late final _Mat_Ptr_f32_1Ptr = _lookup< - ffi - .NativeFunction Function(Mat, ffi.Int, ffi.Pointer>)>>( - 'Mat_Ptr_f32_1'); + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_f32_1'); late final _Mat_Ptr_f32_1 = _Mat_Ptr_f32_1Ptr.asFunction< - ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_f32_2( Mat m, @@ -10295,10 +11488,11 @@ class CvNative { late final _Mat_Ptr_f32_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_f32_2'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_f32_2'); late final _Mat_Ptr_f32_2 = _Mat_Ptr_f32_2Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_f32_3( Mat m, @@ -10318,10 +11512,11 @@ class CvNative { late final _Mat_Ptr_f32_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_f32_3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_f32_3'); late final _Mat_Ptr_f32_3 = _Mat_Ptr_f32_3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_f64_1( Mat m, @@ -10337,10 +11532,11 @@ class CvNative { late final _Mat_Ptr_f64_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_f64_1'); + ffi.Pointer Function(Mat, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_f64_1'); late final _Mat_Ptr_f64_1 = _Mat_Ptr_f64_1Ptr.asFunction< - ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_f64_2( Mat m, @@ -10358,10 +11554,11 @@ class CvNative { late final _Mat_Ptr_f64_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_f64_2'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_f64_2'); late final _Mat_Ptr_f64_2 = _Mat_Ptr_f64_2Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_f64_3( Mat m, @@ -10381,10 +11578,11 @@ class CvNative { late final _Mat_Ptr_f64_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_f64_3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_f64_3'); late final _Mat_Ptr_f64_3 = _Mat_Ptr_f64_3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i16_1( Mat m, @@ -10399,11 +11597,12 @@ class CvNative { } late final _Mat_Ptr_i16_1Ptr = _lookup< - ffi - .NativeFunction Function(Mat, ffi.Int, ffi.Pointer>)>>( - 'Mat_Ptr_i16_1'); + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_i16_1'); late final _Mat_Ptr_i16_1 = _Mat_Ptr_i16_1Ptr.asFunction< - ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i16_2( Mat m, @@ -10421,10 +11620,11 @@ class CvNative { late final _Mat_Ptr_i16_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i16_2'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_i16_2'); late final _Mat_Ptr_i16_2 = _Mat_Ptr_i16_2Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i16_3( Mat m, @@ -10444,10 +11644,11 @@ class CvNative { late final _Mat_Ptr_i16_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i16_3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_i16_3'); late final _Mat_Ptr_i16_3 = _Mat_Ptr_i16_3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i32_1( Mat m, @@ -10463,9 +11664,11 @@ class CvNative { late final _Mat_Ptr_i32_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i32_1'); + ffi.Pointer Function(Mat, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_i32_1'); late final _Mat_Ptr_i32_1 = _Mat_Ptr_i32_1Ptr.asFunction< - ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i32_2( Mat m, @@ -10483,10 +11686,11 @@ class CvNative { late final _Mat_Ptr_i32_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i32_2'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_i32_2'); late final _Mat_Ptr_i32_2 = _Mat_Ptr_i32_2Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i32_3( Mat m, @@ -10506,10 +11710,11 @@ class CvNative { late final _Mat_Ptr_i32_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i32_3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_i32_3'); late final _Mat_Ptr_i32_3 = _Mat_Ptr_i32_3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i8_1( Mat m, @@ -10525,9 +11730,11 @@ class CvNative { late final _Mat_Ptr_i8_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i8_1'); + ffi.Pointer Function(Mat, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_i8_1'); late final _Mat_Ptr_i8_1 = _Mat_Ptr_i8_1Ptr.asFunction< - ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i8_2( Mat m, @@ -10545,10 +11752,11 @@ class CvNative { late final _Mat_Ptr_i8_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i8_2'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_i8_2'); late final _Mat_Ptr_i8_2 = _Mat_Ptr_i8_2Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_i8_3( Mat m, @@ -10568,10 +11776,11 @@ class CvNative { late final _Mat_Ptr_i8_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_i8_3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_i8_3'); late final _Mat_Ptr_i8_3 = _Mat_Ptr_i8_3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_u16_1( Mat m, @@ -10586,10 +11795,12 @@ class CvNative { } late final _Mat_Ptr_u16_1Ptr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int, ffi.Pointer>)>>( - 'Mat_Ptr_u16_1'); + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_u16_1'); late final _Mat_Ptr_u16_1 = _Mat_Ptr_u16_1Ptr.asFunction< - ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_u16_2( Mat m, @@ -10607,10 +11818,11 @@ class CvNative { late final _Mat_Ptr_u16_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_u16_2'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_u16_2'); late final _Mat_Ptr_u16_2 = _Mat_Ptr_u16_2Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_u16_3( Mat m, @@ -10630,10 +11842,11 @@ class CvNative { late final _Mat_Ptr_u16_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_u16_3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_u16_3'); late final _Mat_Ptr_u16_3 = _Mat_Ptr_u16_3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_u8_1( Mat m, @@ -10648,10 +11861,12 @@ class CvNative { } late final _Mat_Ptr_u8_1Ptr = _lookup< - ffi.NativeFunction Function(Mat, ffi.Int, ffi.Pointer>)>>( - 'Mat_Ptr_u8_1'); + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_u8_1'); late final _Mat_Ptr_u8_1 = _Mat_Ptr_u8_1Ptr.asFunction< - ffi.Pointer Function(Mat, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_u8_2( Mat m, @@ -10669,10 +11884,11 @@ class CvNative { late final _Mat_Ptr_u8_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_u8_2'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_u8_2'); late final _Mat_Ptr_u8_2 = _Mat_Ptr_u8_2Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Ptr_u8_3( Mat m, @@ -10692,10 +11908,11 @@ class CvNative { late final _Mat_Ptr_u8_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer>)>>('Mat_Ptr_u8_3'); + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Pointer>)>>('Mat_Ptr_u8_3'); late final _Mat_Ptr_u8_3 = _Mat_Ptr_u8_3Ptr.asFunction< - ffi.Pointer Function(Mat, int, int, int, ffi.Pointer>)>(); + ffi.Pointer Function( + Mat, int, int, int, ffi.Pointer>)>(); ffi.Pointer Mat_Reduce( Mat src, @@ -10713,11 +11930,12 @@ class CvNative { ); } - late final _Mat_ReducePtr = - _lookup Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Int)>>( - 'Mat_Reduce'); - late final _Mat_Reduce = - _Mat_ReducePtr.asFunction Function(Mat, Mat, int, int, int)>(); + late final _Mat_ReducePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Int, ffi.Int)>>('Mat_Reduce'); + late final _Mat_Reduce = _Mat_ReducePtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, int, int)>(); ffi.Pointer Mat_ReduceArgMax( Mat src, @@ -10733,11 +11951,12 @@ class CvNative { ); } - late final _Mat_ReduceArgMaxPtr = - _lookup Function(Mat, Mat, ffi.Int, ffi.Bool)>>( - 'Mat_ReduceArgMax'); - late final _Mat_ReduceArgMax = - _Mat_ReduceArgMaxPtr.asFunction Function(Mat, Mat, int, bool)>(); + late final _Mat_ReduceArgMaxPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Bool)>>('Mat_ReduceArgMax'); + late final _Mat_ReduceArgMax = _Mat_ReduceArgMaxPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, bool)>(); ffi.Pointer Mat_ReduceArgMin( Mat src, @@ -10753,11 +11972,12 @@ class CvNative { ); } - late final _Mat_ReduceArgMinPtr = - _lookup Function(Mat, Mat, ffi.Int, ffi.Bool)>>( - 'Mat_ReduceArgMin'); - late final _Mat_ReduceArgMin = - _Mat_ReduceArgMinPtr.asFunction Function(Mat, Mat, int, bool)>(); + late final _Mat_ReduceArgMinPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Bool)>>('Mat_ReduceArgMin'); + late final _Mat_ReduceArgMin = _Mat_ReduceArgMinPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, bool)>(); ffi.Pointer Mat_Region( Mat m, @@ -10771,10 +11991,12 @@ class CvNative { ); } - late final _Mat_RegionPtr = - _lookup Function(Mat, Rect, ffi.Pointer)>>('Mat_Region'); - late final _Mat_Region = - _Mat_RegionPtr.asFunction Function(Mat, Rect, ffi.Pointer)>(); + late final _Mat_RegionPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Rect, ffi.Pointer)>>('Mat_Region'); + late final _Mat_Region = _Mat_RegionPtr.asFunction< + ffi.Pointer Function(Mat, Rect, ffi.Pointer)>(); ffi.Pointer Mat_Release( ffi.Pointer m, @@ -10784,9 +12006,11 @@ class CvNative { ); } - late final _Mat_ReleasePtr = - _lookup Function(ffi.Pointer)>>('Mat_Release'); - late final _Mat_Release = _Mat_ReleasePtr.asFunction Function(ffi.Pointer)>(); + late final _Mat_ReleasePtr = _lookup< + ffi.NativeFunction Function(ffi.Pointer)>>( + 'Mat_Release'); + late final _Mat_Release = _Mat_ReleasePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer Mat_Repeat( Mat src, @@ -10802,9 +12026,12 @@ class CvNative { ); } - late final _Mat_RepeatPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Mat)>>('Mat_Repeat'); - late final _Mat_Repeat = _Mat_RepeatPtr.asFunction Function(Mat, int, int, Mat)>(); + late final _Mat_RepeatPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Mat)>>('Mat_Repeat'); + late final _Mat_Repeat = _Mat_RepeatPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Mat)>(); ffi.Pointer Mat_Reshape( Mat m, @@ -10820,11 +12047,12 @@ class CvNative { ); } - late final _Mat_ReshapePtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_Reshape'); - late final _Mat_Reshape = - _Mat_ReshapePtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_ReshapePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_Reshape'); + late final _Mat_Reshape = _Mat_ReshapePtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_Rows( Mat m, @@ -10836,9 +12064,12 @@ class CvNative { ); } - late final _Mat_RowsPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Rows'); - late final _Mat_Rows = _Mat_RowsPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_RowsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_Rows'); + late final _Mat_Rows = _Mat_RowsPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_ScaleAdd( Mat src1, @@ -10854,10 +12085,12 @@ class CvNative { ); } - late final _Mat_ScaleAddPtr = - _lookup Function(Mat, ffi.Double, Mat, Mat)>>('Mat_ScaleAdd'); - late final _Mat_ScaleAdd = - _Mat_ScaleAddPtr.asFunction Function(Mat, double, Mat, Mat)>(); + late final _Mat_ScaleAddPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Double, Mat, Mat)>>('Mat_ScaleAdd'); + late final _Mat_ScaleAdd = _Mat_ScaleAddPtr.asFunction< + ffi.Pointer Function(Mat, double, Mat, Mat)>(); ffi.Pointer Mat_SetDouble( Mat m, @@ -10873,11 +12106,12 @@ class CvNative { ); } - late final _Mat_SetDoublePtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Double)>>( - 'Mat_SetDouble'); - late final _Mat_SetDouble = - _Mat_SetDoublePtr.asFunction Function(Mat, int, int, double)>(); + late final _Mat_SetDoublePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Double)>>('Mat_SetDouble'); + late final _Mat_SetDouble = _Mat_SetDoublePtr.asFunction< + ffi.Pointer Function(Mat, int, int, double)>(); ffi.Pointer Mat_SetDouble3( Mat m, @@ -10895,11 +12129,12 @@ class CvNative { ); } - late final _Mat_SetDouble3Ptr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Double)>>( - 'Mat_SetDouble3'); - late final _Mat_SetDouble3 = - _Mat_SetDouble3Ptr.asFunction Function(Mat, int, int, int, double)>(); + late final _Mat_SetDouble3Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Double)>>('Mat_SetDouble3'); + late final _Mat_SetDouble3 = _Mat_SetDouble3Ptr.asFunction< + ffi.Pointer Function(Mat, int, int, int, double)>(); ffi.Pointer Mat_SetFloat( Mat m, @@ -10915,11 +12150,12 @@ class CvNative { ); } - late final _Mat_SetFloatPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Float)>>( - 'Mat_SetFloat'); - late final _Mat_SetFloat = - _Mat_SetFloatPtr.asFunction Function(Mat, int, int, double)>(); + late final _Mat_SetFloatPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Float)>>('Mat_SetFloat'); + late final _Mat_SetFloat = _Mat_SetFloatPtr.asFunction< + ffi.Pointer Function(Mat, int, int, double)>(); ffi.Pointer Mat_SetFloat3( Mat m, @@ -10937,11 +12173,12 @@ class CvNative { ); } - late final _Mat_SetFloat3Ptr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Float)>>( - 'Mat_SetFloat3'); - late final _Mat_SetFloat3 = - _Mat_SetFloat3Ptr.asFunction Function(Mat, int, int, int, double)>(); + late final _Mat_SetFloat3Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Float)>>('Mat_SetFloat3'); + late final _Mat_SetFloat3 = _Mat_SetFloat3Ptr.asFunction< + ffi.Pointer Function(Mat, int, int, int, double)>(); ffi.Pointer Mat_SetIdentity( Mat src, @@ -10953,9 +12190,11 @@ class CvNative { ); } - late final _Mat_SetIdentityPtr = - _lookup Function(Mat, ffi.Double)>>('Mat_SetIdentity'); - late final _Mat_SetIdentity = _Mat_SetIdentityPtr.asFunction Function(Mat, double)>(); + late final _Mat_SetIdentityPtr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Double)>>( + 'Mat_SetIdentity'); + late final _Mat_SetIdentity = _Mat_SetIdentityPtr.asFunction< + ffi.Pointer Function(Mat, double)>(); ffi.Pointer Mat_SetInt( Mat m, @@ -10971,10 +12210,12 @@ class CvNative { ); } - late final _Mat_SetIntPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int32)>>( - 'Mat_SetInt'); - late final _Mat_SetInt = _Mat_SetIntPtr.asFunction Function(Mat, int, int, int)>(); + late final _Mat_SetIntPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int32)>>('Mat_SetInt'); + late final _Mat_SetInt = _Mat_SetIntPtr.asFunction< + ffi.Pointer Function(Mat, int, int, int)>(); ffi.Pointer Mat_SetInt3( Mat m, @@ -10992,11 +12233,12 @@ class CvNative { ); } - late final _Mat_SetInt3Ptr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int32)>>( - 'Mat_SetInt3'); - late final _Mat_SetInt3 = - _Mat_SetInt3Ptr.asFunction Function(Mat, int, int, int, int)>(); + late final _Mat_SetInt3Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int32)>>('Mat_SetInt3'); + late final _Mat_SetInt3 = _Mat_SetInt3Ptr.asFunction< + ffi.Pointer Function(Mat, int, int, int, int)>(); ffi.Pointer Mat_SetSChar( Mat m, @@ -11012,11 +12254,12 @@ class CvNative { ); } - late final _Mat_SetSCharPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int8)>>( - 'Mat_SetSChar'); - late final _Mat_SetSChar = - _Mat_SetSCharPtr.asFunction Function(Mat, int, int, int)>(); + late final _Mat_SetSCharPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int8)>>('Mat_SetSChar'); + late final _Mat_SetSChar = _Mat_SetSCharPtr.asFunction< + ffi.Pointer Function(Mat, int, int, int)>(); ffi.Pointer Mat_SetSChar3( Mat m, @@ -11034,11 +12277,12 @@ class CvNative { ); } - late final _Mat_SetSChar3Ptr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int8)>>( - 'Mat_SetSChar3'); - late final _Mat_SetSChar3 = - _Mat_SetSChar3Ptr.asFunction Function(Mat, int, int, int, int)>(); + late final _Mat_SetSChar3Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int8)>>('Mat_SetSChar3'); + late final _Mat_SetSChar3 = _Mat_SetSChar3Ptr.asFunction< + ffi.Pointer Function(Mat, int, int, int, int)>(); ffi.Pointer Mat_SetShort( Mat m, @@ -11054,11 +12298,12 @@ class CvNative { ); } - late final _Mat_SetShortPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int16)>>( - 'Mat_SetShort'); - late final _Mat_SetShort = - _Mat_SetShortPtr.asFunction Function(Mat, int, int, int)>(); + late final _Mat_SetShortPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int16)>>('Mat_SetShort'); + late final _Mat_SetShort = _Mat_SetShortPtr.asFunction< + ffi.Pointer Function(Mat, int, int, int)>(); ffi.Pointer Mat_SetShort3( Mat m, @@ -11076,11 +12321,12 @@ class CvNative { ); } - late final _Mat_SetShort3Ptr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int16)>>( - 'Mat_SetShort3'); - late final _Mat_SetShort3 = - _Mat_SetShort3Ptr.asFunction Function(Mat, int, int, int, int)>(); + late final _Mat_SetShort3Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int16)>>('Mat_SetShort3'); + late final _Mat_SetShort3 = _Mat_SetShort3Ptr.asFunction< + ffi.Pointer Function(Mat, int, int, int, int)>(); ffi.Pointer Mat_SetTo( Mat m, @@ -11093,8 +12339,10 @@ class CvNative { } late final _Mat_SetToPtr = - _lookup Function(Mat, Scalar)>>('Mat_SetTo'); - late final _Mat_SetTo = _Mat_SetToPtr.asFunction Function(Mat, Scalar)>(); + _lookup Function(Mat, Scalar)>>( + 'Mat_SetTo'); + late final _Mat_SetTo = + _Mat_SetToPtr.asFunction Function(Mat, Scalar)>(); ffi.Pointer Mat_SetUChar( Mat m, @@ -11110,11 +12358,12 @@ class CvNative { ); } - late final _Mat_SetUCharPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Uint8)>>( - 'Mat_SetUChar'); - late final _Mat_SetUChar = - _Mat_SetUCharPtr.asFunction Function(Mat, int, int, int)>(); + late final _Mat_SetUCharPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Uint8)>>('Mat_SetUChar'); + late final _Mat_SetUChar = _Mat_SetUCharPtr.asFunction< + ffi.Pointer Function(Mat, int, int, int)>(); ffi.Pointer Mat_SetUChar3( Mat m, @@ -11132,11 +12381,12 @@ class CvNative { ); } - late final _Mat_SetUChar3Ptr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Uint8)>>( - 'Mat_SetUChar3'); - late final _Mat_SetUChar3 = - _Mat_SetUChar3Ptr.asFunction Function(Mat, int, int, int, int)>(); + late final _Mat_SetUChar3Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Uint8)>>('Mat_SetUChar3'); + late final _Mat_SetUChar3 = _Mat_SetUChar3Ptr.asFunction< + ffi.Pointer Function(Mat, int, int, int, int)>(); ffi.Pointer Mat_SetUShort( Mat m, @@ -11152,11 +12402,12 @@ class CvNative { ); } - late final _Mat_SetUShortPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Uint16)>>( - 'Mat_SetUShort'); - late final _Mat_SetUShort = - _Mat_SetUShortPtr.asFunction Function(Mat, int, int, int)>(); + late final _Mat_SetUShortPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Uint16)>>('Mat_SetUShort'); + late final _Mat_SetUShort = _Mat_SetUShortPtr.asFunction< + ffi.Pointer Function(Mat, int, int, int)>(); ffi.Pointer Mat_SetUShort3( Mat m, @@ -11174,11 +12425,12 @@ class CvNative { ); } - late final _Mat_SetUShort3Ptr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Uint16)>>( - 'Mat_SetUShort3'); - late final _Mat_SetUShort3 = - _Mat_SetUShort3Ptr.asFunction Function(Mat, int, int, int, int)>(); + late final _Mat_SetUShort3Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Uint16)>>('Mat_SetUShort3'); + late final _Mat_SetUShort3 = _Mat_SetUShort3Ptr.asFunction< + ffi.Pointer Function(Mat, int, int, int, int)>(); ffi.Pointer Mat_SetVec2b( Mat m, @@ -11194,11 +12446,12 @@ class CvNative { ); } - late final _Mat_SetVec2bPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec2b)>>( - 'Mat_SetVec2b'); - late final _Mat_SetVec2b = - _Mat_SetVec2bPtr.asFunction Function(Mat, int, int, Vec2b)>(); + late final _Mat_SetVec2bPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec2b)>>('Mat_SetVec2b'); + late final _Mat_SetVec2b = _Mat_SetVec2bPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec2b)>(); ffi.Pointer Mat_SetVec2d( Mat m, @@ -11214,11 +12467,12 @@ class CvNative { ); } - late final _Mat_SetVec2dPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec2d)>>( - 'Mat_SetVec2d'); - late final _Mat_SetVec2d = - _Mat_SetVec2dPtr.asFunction Function(Mat, int, int, Vec2d)>(); + late final _Mat_SetVec2dPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec2d)>>('Mat_SetVec2d'); + late final _Mat_SetVec2d = _Mat_SetVec2dPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec2d)>(); ffi.Pointer Mat_SetVec2f( Mat m, @@ -11234,11 +12488,12 @@ class CvNative { ); } - late final _Mat_SetVec2fPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec2f)>>( - 'Mat_SetVec2f'); - late final _Mat_SetVec2f = - _Mat_SetVec2fPtr.asFunction Function(Mat, int, int, Vec2f)>(); + late final _Mat_SetVec2fPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec2f)>>('Mat_SetVec2f'); + late final _Mat_SetVec2f = _Mat_SetVec2fPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec2f)>(); ffi.Pointer Mat_SetVec2i( Mat m, @@ -11254,11 +12509,12 @@ class CvNative { ); } - late final _Mat_SetVec2iPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec2i)>>( - 'Mat_SetVec2i'); - late final _Mat_SetVec2i = - _Mat_SetVec2iPtr.asFunction Function(Mat, int, int, Vec2i)>(); + late final _Mat_SetVec2iPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec2i)>>('Mat_SetVec2i'); + late final _Mat_SetVec2i = _Mat_SetVec2iPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec2i)>(); ffi.Pointer Mat_SetVec2s( Mat m, @@ -11274,11 +12530,12 @@ class CvNative { ); } - late final _Mat_SetVec2sPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec2s)>>( - 'Mat_SetVec2s'); - late final _Mat_SetVec2s = - _Mat_SetVec2sPtr.asFunction Function(Mat, int, int, Vec2s)>(); + late final _Mat_SetVec2sPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec2s)>>('Mat_SetVec2s'); + late final _Mat_SetVec2s = _Mat_SetVec2sPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec2s)>(); ffi.Pointer Mat_SetVec2w( Mat m, @@ -11294,11 +12551,12 @@ class CvNative { ); } - late final _Mat_SetVec2wPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec2w)>>( - 'Mat_SetVec2w'); - late final _Mat_SetVec2w = - _Mat_SetVec2wPtr.asFunction Function(Mat, int, int, Vec2w)>(); + late final _Mat_SetVec2wPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec2w)>>('Mat_SetVec2w'); + late final _Mat_SetVec2w = _Mat_SetVec2wPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec2w)>(); ffi.Pointer Mat_SetVec3b( Mat m, @@ -11314,11 +12572,12 @@ class CvNative { ); } - late final _Mat_SetVec3bPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec3b)>>( - 'Mat_SetVec3b'); - late final _Mat_SetVec3b = - _Mat_SetVec3bPtr.asFunction Function(Mat, int, int, Vec3b)>(); + late final _Mat_SetVec3bPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec3b)>>('Mat_SetVec3b'); + late final _Mat_SetVec3b = _Mat_SetVec3bPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec3b)>(); ffi.Pointer Mat_SetVec3d( Mat m, @@ -11334,11 +12593,12 @@ class CvNative { ); } - late final _Mat_SetVec3dPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec3d)>>( - 'Mat_SetVec3d'); - late final _Mat_SetVec3d = - _Mat_SetVec3dPtr.asFunction Function(Mat, int, int, Vec3d)>(); + late final _Mat_SetVec3dPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec3d)>>('Mat_SetVec3d'); + late final _Mat_SetVec3d = _Mat_SetVec3dPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec3d)>(); ffi.Pointer Mat_SetVec3f( Mat m, @@ -11354,11 +12614,12 @@ class CvNative { ); } - late final _Mat_SetVec3fPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec3f)>>( - 'Mat_SetVec3f'); - late final _Mat_SetVec3f = - _Mat_SetVec3fPtr.asFunction Function(Mat, int, int, Vec3f)>(); + late final _Mat_SetVec3fPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec3f)>>('Mat_SetVec3f'); + late final _Mat_SetVec3f = _Mat_SetVec3fPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec3f)>(); ffi.Pointer Mat_SetVec3i( Mat m, @@ -11374,11 +12635,12 @@ class CvNative { ); } - late final _Mat_SetVec3iPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec3i)>>( - 'Mat_SetVec3i'); - late final _Mat_SetVec3i = - _Mat_SetVec3iPtr.asFunction Function(Mat, int, int, Vec3i)>(); + late final _Mat_SetVec3iPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec3i)>>('Mat_SetVec3i'); + late final _Mat_SetVec3i = _Mat_SetVec3iPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec3i)>(); ffi.Pointer Mat_SetVec3s( Mat m, @@ -11394,11 +12656,12 @@ class CvNative { ); } - late final _Mat_SetVec3sPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec3s)>>( - 'Mat_SetVec3s'); - late final _Mat_SetVec3s = - _Mat_SetVec3sPtr.asFunction Function(Mat, int, int, Vec3s)>(); + late final _Mat_SetVec3sPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec3s)>>('Mat_SetVec3s'); + late final _Mat_SetVec3s = _Mat_SetVec3sPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec3s)>(); ffi.Pointer Mat_SetVec3w( Mat m, @@ -11414,11 +12677,12 @@ class CvNative { ); } - late final _Mat_SetVec3wPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec3w)>>( - 'Mat_SetVec3w'); - late final _Mat_SetVec3w = - _Mat_SetVec3wPtr.asFunction Function(Mat, int, int, Vec3w)>(); + late final _Mat_SetVec3wPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec3w)>>('Mat_SetVec3w'); + late final _Mat_SetVec3w = _Mat_SetVec3wPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec3w)>(); ffi.Pointer Mat_SetVec4b( Mat m, @@ -11434,11 +12698,12 @@ class CvNative { ); } - late final _Mat_SetVec4bPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec4b)>>( - 'Mat_SetVec4b'); - late final _Mat_SetVec4b = - _Mat_SetVec4bPtr.asFunction Function(Mat, int, int, Vec4b)>(); + late final _Mat_SetVec4bPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec4b)>>('Mat_SetVec4b'); + late final _Mat_SetVec4b = _Mat_SetVec4bPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec4b)>(); ffi.Pointer Mat_SetVec4d( Mat m, @@ -11454,11 +12719,12 @@ class CvNative { ); } - late final _Mat_SetVec4dPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec4d)>>( - 'Mat_SetVec4d'); - late final _Mat_SetVec4d = - _Mat_SetVec4dPtr.asFunction Function(Mat, int, int, Vec4d)>(); + late final _Mat_SetVec4dPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec4d)>>('Mat_SetVec4d'); + late final _Mat_SetVec4d = _Mat_SetVec4dPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec4d)>(); ffi.Pointer Mat_SetVec4f( Mat m, @@ -11474,11 +12740,12 @@ class CvNative { ); } - late final _Mat_SetVec4fPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec4f)>>( - 'Mat_SetVec4f'); - late final _Mat_SetVec4f = - _Mat_SetVec4fPtr.asFunction Function(Mat, int, int, Vec4f)>(); + late final _Mat_SetVec4fPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec4f)>>('Mat_SetVec4f'); + late final _Mat_SetVec4f = _Mat_SetVec4fPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec4f)>(); ffi.Pointer Mat_SetVec4i( Mat m, @@ -11494,11 +12761,12 @@ class CvNative { ); } - late final _Mat_SetVec4iPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec4i)>>( - 'Mat_SetVec4i'); - late final _Mat_SetVec4i = - _Mat_SetVec4iPtr.asFunction Function(Mat, int, int, Vec4i)>(); + late final _Mat_SetVec4iPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec4i)>>('Mat_SetVec4i'); + late final _Mat_SetVec4i = _Mat_SetVec4iPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec4i)>(); ffi.Pointer Mat_SetVec4s( Mat m, @@ -11514,11 +12782,12 @@ class CvNative { ); } - late final _Mat_SetVec4sPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec4s)>>( - 'Mat_SetVec4s'); - late final _Mat_SetVec4s = - _Mat_SetVec4sPtr.asFunction Function(Mat, int, int, Vec4s)>(); + late final _Mat_SetVec4sPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec4s)>>('Mat_SetVec4s'); + late final _Mat_SetVec4s = _Mat_SetVec4sPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec4s)>(); ffi.Pointer Mat_SetVec4w( Mat m, @@ -11534,11 +12803,12 @@ class CvNative { ); } - late final _Mat_SetVec4wPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec4w)>>( - 'Mat_SetVec4w'); - late final _Mat_SetVec4w = - _Mat_SetVec4wPtr.asFunction Function(Mat, int, int, Vec4w)>(); + late final _Mat_SetVec4wPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec4w)>>('Mat_SetVec4w'); + late final _Mat_SetVec4w = _Mat_SetVec4wPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec4w)>(); ffi.Pointer Mat_SetVec6d( Mat m, @@ -11554,11 +12824,12 @@ class CvNative { ); } - late final _Mat_SetVec6dPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec6d)>>( - 'Mat_SetVec6d'); - late final _Mat_SetVec6d = - _Mat_SetVec6dPtr.asFunction Function(Mat, int, int, Vec6d)>(); + late final _Mat_SetVec6dPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec6d)>>('Mat_SetVec6d'); + late final _Mat_SetVec6d = _Mat_SetVec6dPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec6d)>(); ffi.Pointer Mat_SetVec6f( Mat m, @@ -11574,11 +12845,12 @@ class CvNative { ); } - late final _Mat_SetVec6fPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec6f)>>( - 'Mat_SetVec6f'); - late final _Mat_SetVec6f = - _Mat_SetVec6fPtr.asFunction Function(Mat, int, int, Vec6f)>(); + late final _Mat_SetVec6fPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec6f)>>('Mat_SetVec6f'); + late final _Mat_SetVec6f = _Mat_SetVec6fPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec6f)>(); ffi.Pointer Mat_SetVec6i( Mat m, @@ -11594,11 +12866,12 @@ class CvNative { ); } - late final _Mat_SetVec6iPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec6i)>>( - 'Mat_SetVec6i'); - late final _Mat_SetVec6i = - _Mat_SetVec6iPtr.asFunction Function(Mat, int, int, Vec6i)>(); + late final _Mat_SetVec6iPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec6i)>>('Mat_SetVec6i'); + late final _Mat_SetVec6i = _Mat_SetVec6iPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec6i)>(); ffi.Pointer Mat_SetVec8i( Mat m, @@ -11614,11 +12887,12 @@ class CvNative { ); } - late final _Mat_SetVec8iPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, Vec8i)>>( - 'Mat_SetVec8i'); - late final _Mat_SetVec8i = - _Mat_SetVec8iPtr.asFunction Function(Mat, int, int, Vec8i)>(); + late final _Mat_SetVec8iPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, Vec8i)>>('Mat_SetVec8i'); + late final _Mat_SetVec8i = _Mat_SetVec8iPtr.asFunction< + ffi.Pointer Function(Mat, int, int, Vec8i)>(); ffi.Pointer Mat_Size( Mat m, @@ -11630,9 +12904,12 @@ class CvNative { ); } - late final _Mat_SizePtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Size'); - late final _Mat_Size = _Mat_SizePtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_Size'); + late final _Mat_Size = _Mat_SizePtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Solve( Mat src1, @@ -11651,10 +12928,12 @@ class CvNative { } late final _Mat_SolvePtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat, ffi.Int, ffi.Pointer)>>( - 'Mat_Solve'); - late final _Mat_Solve = - _Mat_SolvePtr.asFunction Function(Mat, Mat, Mat, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Int, ffi.Pointer)>>('Mat_Solve'); + late final _Mat_Solve = _Mat_SolvePtr.asFunction< + ffi.Pointer Function( + Mat, Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer Mat_SolveCubic( Mat coeffs, @@ -11668,11 +12947,12 @@ class CvNative { ); } - late final _Mat_SolveCubicPtr = - _lookup Function(Mat, Mat, ffi.Pointer)>>( - 'Mat_SolveCubic'); - late final _Mat_SolveCubic = - _Mat_SolveCubicPtr.asFunction Function(Mat, Mat, ffi.Pointer)>(); + late final _Mat_SolveCubicPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Pointer)>>('Mat_SolveCubic'); + late final _Mat_SolveCubic = _Mat_SolveCubicPtr.asFunction< + ffi.Pointer Function(Mat, Mat, ffi.Pointer)>(); ffi.Pointer Mat_SolvePoly( Mat coeffs, @@ -11688,11 +12968,12 @@ class CvNative { ); } - late final _Mat_SolvePolyPtr = - _lookup Function(Mat, Mat, ffi.Int, ffi.Pointer)>>( - 'Mat_SolvePoly'); - late final _Mat_SolvePoly = - _Mat_SolvePolyPtr.asFunction Function(Mat, Mat, int, ffi.Pointer)>(); + late final _Mat_SolvePolyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Pointer)>>('Mat_SolvePoly'); + late final _Mat_SolvePoly = _Mat_SolvePolyPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer Mat_Sort( Mat src, @@ -11706,9 +12987,11 @@ class CvNative { ); } - late final _Mat_SortPtr = - _lookup Function(Mat, Mat, ffi.Int)>>('Mat_Sort'); - late final _Mat_Sort = _Mat_SortPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_SortPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_Sort'); + late final _Mat_Sort = + _Mat_SortPtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer Mat_SortIdx( Mat src, @@ -11722,9 +13005,11 @@ class CvNative { ); } - late final _Mat_SortIdxPtr = - _lookup Function(Mat, Mat, ffi.Int)>>('Mat_SortIdx'); - late final _Mat_SortIdx = _Mat_SortIdxPtr.asFunction Function(Mat, Mat, int)>(); + late final _Mat_SortIdxPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Mat_SortIdx'); + late final _Mat_SortIdx = _Mat_SortIdxPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int)>(); ffi.Pointer Mat_Split( Mat src, @@ -11736,10 +13021,12 @@ class CvNative { ); } - late final _Mat_SplitPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Split'); - late final _Mat_Split = - _Mat_SplitPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_SplitPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_Split'); + late final _Mat_Split = _Mat_SplitPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Sqrt( Mat m, @@ -11751,9 +13038,11 @@ class CvNative { ); } - late final _Mat_SqrtPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Sqrt'); - late final _Mat_Sqrt = _Mat_SqrtPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_SqrtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>>('Mat_Sqrt'); + late final _Mat_Sqrt = _Mat_SqrtPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Step( Mat m, @@ -11765,9 +13054,12 @@ class CvNative { ); } - late final _Mat_StepPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Step'); - late final _Mat_Step = _Mat_StepPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_StepPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_Step'); + late final _Mat_Step = _Mat_StepPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Subtract( Mat src1, @@ -11781,9 +13073,11 @@ class CvNative { ); } - late final _Mat_SubtractPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_Subtract'); - late final _Mat_Subtract = _Mat_SubtractPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_SubtractPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_Subtract'); + late final _Mat_Subtract = _Mat_SubtractPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_SubtractF64( Mat m, @@ -11795,9 +13089,11 @@ class CvNative { ); } - late final _Mat_SubtractF64Ptr = - _lookup Function(Mat, double_t)>>('Mat_SubtractF64'); - late final _Mat_SubtractF64 = _Mat_SubtractF64Ptr.asFunction Function(Mat, double)>(); + late final _Mat_SubtractF64Ptr = _lookup< + ffi.NativeFunction Function(Mat, double_t)>>( + 'Mat_SubtractF64'); + late final _Mat_SubtractF64 = _Mat_SubtractF64Ptr.asFunction< + ffi.Pointer Function(Mat, double)>(); ffi.Pointer Mat_SubtractFloat( Mat m, @@ -11810,9 +13106,10 @@ class CvNative { } late final _Mat_SubtractFloatPtr = - _lookup Function(Mat, float_t)>>('Mat_SubtractFloat'); - late final _Mat_SubtractFloat = - _Mat_SubtractFloatPtr.asFunction Function(Mat, double)>(); + _lookup Function(Mat, float_t)>>( + 'Mat_SubtractFloat'); + late final _Mat_SubtractFloat = _Mat_SubtractFloatPtr.asFunction< + ffi.Pointer Function(Mat, double)>(); ffi.Pointer Mat_SubtractI32( Mat m, @@ -11824,9 +13121,11 @@ class CvNative { ); } - late final _Mat_SubtractI32Ptr = - _lookup Function(Mat, ffi.Int32)>>('Mat_SubtractI32'); - late final _Mat_SubtractI32 = _Mat_SubtractI32Ptr.asFunction Function(Mat, int)>(); + late final _Mat_SubtractI32Ptr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Int32)>>( + 'Mat_SubtractI32'); + late final _Mat_SubtractI32 = _Mat_SubtractI32Ptr.asFunction< + ffi.Pointer Function(Mat, int)>(); ffi.Pointer Mat_SubtractSChar( Mat m, @@ -11838,10 +13137,11 @@ class CvNative { ); } - late final _Mat_SubtractSCharPtr = - _lookup Function(Mat, ffi.Int8)>>('Mat_SubtractSChar'); - late final _Mat_SubtractSChar = - _Mat_SubtractSCharPtr.asFunction Function(Mat, int)>(); + late final _Mat_SubtractSCharPtr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Int8)>>( + 'Mat_SubtractSChar'); + late final _Mat_SubtractSChar = _Mat_SubtractSCharPtr.asFunction< + ffi.Pointer Function(Mat, int)>(); ffi.Pointer Mat_SubtractUChar( Mat m, @@ -11853,10 +13153,11 @@ class CvNative { ); } - late final _Mat_SubtractUCharPtr = - _lookup Function(Mat, ffi.Uint8)>>('Mat_SubtractUChar'); - late final _Mat_SubtractUChar = - _Mat_SubtractUCharPtr.asFunction Function(Mat, int)>(); + late final _Mat_SubtractUCharPtr = _lookup< + ffi.NativeFunction Function(Mat, ffi.Uint8)>>( + 'Mat_SubtractUChar'); + late final _Mat_SubtractUChar = _Mat_SubtractUCharPtr.asFunction< + ffi.Pointer Function(Mat, int)>(); ffi.Pointer Mat_Sum( Mat src, @@ -11868,9 +13169,11 @@ class CvNative { ); } - late final _Mat_SumPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Sum'); - late final _Mat_Sum = _Mat_SumPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_SumPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>>('Mat_Sum'); + late final _Mat_Sum = _Mat_SumPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_T( Mat x, @@ -11882,9 +13185,11 @@ class CvNative { ); } - late final _Mat_TPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_T'); - late final _Mat_T = _Mat_TPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_TPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>>('Mat_T'); + late final _Mat_T = _Mat_TPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_ToVecChar( Mat m, @@ -11896,10 +13201,12 @@ class CvNative { ); } - late final _Mat_ToVecCharPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_ToVecChar'); - late final _Mat_ToVecChar = - _Mat_ToVecCharPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_ToVecCharPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_ToVecChar'); + late final _Mat_ToVecChar = _Mat_ToVecCharPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_ToVecUChar( Mat m, @@ -11911,11 +13218,12 @@ class CvNative { ); } - late final _Mat_ToVecUCharPtr = - _lookup Function(Mat, ffi.Pointer)>>( - 'Mat_ToVecUChar'); - late final _Mat_ToVecUChar = - _Mat_ToVecUCharPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_ToVecUCharPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_ToVecUChar'); + late final _Mat_ToVecUChar = _Mat_ToVecUCharPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Total( Mat m, @@ -11927,10 +13235,12 @@ class CvNative { ); } - late final _Mat_TotalPtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Total'); - late final _Mat_Total = - _Mat_TotalPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_TotalPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_Total'); + late final _Mat_Total = _Mat_TotalPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Trace( Mat src, @@ -11942,10 +13252,12 @@ class CvNative { ); } - late final _Mat_TracePtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Trace'); - late final _Mat_Trace = - _Mat_TracePtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_TracePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_Trace'); + late final _Mat_Trace = _Mat_TracePtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Transform( Mat src, @@ -11959,9 +13271,11 @@ class CvNative { ); } - late final _Mat_TransformPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_Transform'); - late final _Mat_Transform = _Mat_TransformPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_TransformPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_Transform'); + late final _Mat_Transform = _Mat_TransformPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_Transpose( Mat src, @@ -11974,8 +13288,10 @@ class CvNative { } late final _Mat_TransposePtr = - _lookup Function(Mat, Mat)>>('Mat_Transpose'); - late final _Mat_Transpose = _Mat_TransposePtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'Mat_Transpose'); + late final _Mat_Transpose = + _Mat_TransposePtr.asFunction Function(Mat, Mat)>(); ffi.Pointer Mat_Type( Mat m, @@ -11987,9 +13303,12 @@ class CvNative { ); } - late final _Mat_TypePtr = - _lookup Function(Mat, ffi.Pointer)>>('Mat_Type'); - late final _Mat_Type = _Mat_TypePtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Mat_TypePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Mat_Type'); + late final _Mat_Type = _Mat_TypePtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Mat_Vconcat( Mat src1, @@ -12003,9 +13322,11 @@ class CvNative { ); } - late final _Mat_VconcatPtr = - _lookup Function(Mat, Mat, Mat)>>('Mat_Vconcat'); - late final _Mat_Vconcat = _Mat_VconcatPtr.asFunction Function(Mat, Mat, Mat)>(); + late final _Mat_VconcatPtr = _lookup< + ffi.NativeFunction Function(Mat, Mat, Mat)>>( + 'Mat_Vconcat'); + late final _Mat_Vconcat = _Mat_VconcatPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat)>(); ffi.Pointer Mat_colRange( Mat m, @@ -12021,11 +13342,12 @@ class CvNative { ); } - late final _Mat_colRangePtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_colRange'); - late final _Mat_colRange = - _Mat_colRangePtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_colRangePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_colRange'); + late final _Mat_colRange = _Mat_colRangePtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Mat_rowRange( Mat m, @@ -12041,11 +13363,12 @@ class CvNative { ); } - late final _Mat_rowRangePtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Mat_rowRange'); - late final _Mat_rowRange = - _Mat_rowRangePtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Mat_rowRangePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Mat_rowRange'); + late final _Mat_rowRange = _Mat_rowRangePtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer MatchShapes( VecPoint contour1, @@ -12065,10 +13388,11 @@ class CvNative { late final _MatchShapesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, VecPoint, ffi.Int, ffi.Double, ffi.Pointer)>>('MatchShapes'); + ffi.Pointer Function(VecPoint, VecPoint, ffi.Int, + ffi.Double, ffi.Pointer)>>('MatchShapes'); late final _MatchShapes = _MatchShapesPtr.asFunction< - ffi.Pointer Function(VecPoint, VecPoint, int, double, ffi.Pointer)>(); + ffi.Pointer Function( + VecPoint, VecPoint, int, double, ffi.Pointer)>(); ffi.Pointer MatchTemplate( Mat image, @@ -12086,11 +13410,12 @@ class CvNative { ); } - late final _MatchTemplatePtr = - _lookup Function(Mat, Mat, Mat, ffi.Int, Mat)>>( - 'MatchTemplate'); - late final _MatchTemplate = - _MatchTemplatePtr.asFunction Function(Mat, Mat, Mat, int, Mat)>(); + late final _MatchTemplatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Int, Mat)>>('MatchTemplate'); + late final _MatchTemplate = _MatchTemplatePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, int, Mat)>(); ffi.Pointer MedianBlur( Mat src, @@ -12104,9 +13429,11 @@ class CvNative { ); } - late final _MedianBlurPtr = - _lookup Function(Mat, Mat, ffi.Int)>>('MedianBlur'); - late final _MedianBlur = _MedianBlurPtr.asFunction Function(Mat, Mat, int)>(); + late final _MedianBlurPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int)>>('MedianBlur'); + late final _MedianBlur = _MedianBlurPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int)>(); void MergeMertens_Close( MergeMertensPtr b, @@ -12117,8 +13444,10 @@ class CvNative { } late final _MergeMertens_ClosePtr = - _lookup>('MergeMertens_Close'); - late final _MergeMertens_Close = _MergeMertens_ClosePtr.asFunction(); + _lookup>( + 'MergeMertens_Close'); + late final _MergeMertens_Close = + _MergeMertens_ClosePtr.asFunction(); ffi.Pointer MergeMertens_Create( ffi.Pointer rval, @@ -12128,11 +13457,12 @@ class CvNative { ); } - late final _MergeMertens_CreatePtr = - _lookup Function(ffi.Pointer)>>( - 'MergeMertens_Create'); - late final _MergeMertens_Create = - _MergeMertens_CreatePtr.asFunction Function(ffi.Pointer)>(); + late final _MergeMertens_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('MergeMertens_Create'); + late final _MergeMertens_Create = _MergeMertens_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer MergeMertens_CreateWithParams( double contrast_weight, @@ -12150,10 +13480,12 @@ class CvNative { late final _MergeMertens_CreateWithParamsPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(ffi.Float, ffi.Float, ffi.Float, + ffi.Pointer)>>('MergeMertens_CreateWithParams'); + late final _MergeMertens_CreateWithParams = + _MergeMertens_CreateWithParamsPtr.asFunction< ffi.Pointer Function( - ffi.Float, ffi.Float, ffi.Float, ffi.Pointer)>>('MergeMertens_CreateWithParams'); - late final _MergeMertens_CreateWithParams = _MergeMertens_CreateWithParamsPtr.asFunction< - ffi.Pointer Function(double, double, double, ffi.Pointer)>(); + double, double, double, ffi.Pointer)>(); ffi.Pointer MergeMertens_Process( MergeMertens b, @@ -12167,11 +13499,12 @@ class CvNative { ); } - late final _MergeMertens_ProcessPtr = - _lookup Function(MergeMertens, VecMat, Mat)>>( - 'MergeMertens_Process'); - late final _MergeMertens_Process = - _MergeMertens_ProcessPtr.asFunction Function(MergeMertens, VecMat, Mat)>(); + late final _MergeMertens_ProcessPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + MergeMertens, VecMat, Mat)>>('MergeMertens_Process'); + late final _MergeMertens_Process = _MergeMertens_ProcessPtr.asFunction< + ffi.Pointer Function(MergeMertens, VecMat, Mat)>(); ffi.Pointer MinAreaRect( VecPoint pts, @@ -12183,11 +13516,12 @@ class CvNative { ); } - late final _MinAreaRectPtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'MinAreaRect'); - late final _MinAreaRect = - _MinAreaRectPtr.asFunction Function(VecPoint, ffi.Pointer)>(); + late final _MinAreaRectPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('MinAreaRect'); + late final _MinAreaRect = _MinAreaRectPtr.asFunction< + ffi.Pointer Function(VecPoint, ffi.Pointer)>(); ffi.Pointer MinEnclosingCircle( VecPoint pts, @@ -12203,10 +13537,11 @@ class CvNative { late final _MinEnclosingCirclePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, ffi.Pointer, ffi.Pointer)>>('MinEnclosingCircle'); + ffi.Pointer Function(VecPoint, ffi.Pointer, + ffi.Pointer)>>('MinEnclosingCircle'); late final _MinEnclosingCircle = _MinEnclosingCirclePtr.asFunction< - ffi.Pointer Function(VecPoint, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + VecPoint, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Moments( Mat src, @@ -12220,11 +13555,12 @@ class CvNative { ); } - late final _MomentsPtr = - _lookup Function(Mat, ffi.Bool, ffi.Pointer)>>( - 'Moments'); - late final _Moments = - _MomentsPtr.asFunction Function(Mat, bool, ffi.Pointer)>(); + late final _MomentsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Bool, ffi.Pointer)>>('Moments'); + late final _Moments = _MomentsPtr.asFunction< + ffi.Pointer Function(Mat, bool, ffi.Pointer)>(); ffi.Pointer MorphologyDefaultBorderValue( ffi.Pointer rval, @@ -12234,11 +13570,12 @@ class CvNative { ); } - late final _MorphologyDefaultBorderValuePtr = - _lookup Function(ffi.Pointer)>>( - 'MorphologyDefaultBorderValue'); - late final _MorphologyDefaultBorderValue = - _MorphologyDefaultBorderValuePtr.asFunction Function(ffi.Pointer)>(); + late final _MorphologyDefaultBorderValuePtr = _lookup< + ffi + .NativeFunction Function(ffi.Pointer)>>( + 'MorphologyDefaultBorderValue'); + late final _MorphologyDefaultBorderValue = _MorphologyDefaultBorderValuePtr + .asFunction Function(ffi.Pointer)>(); ffi.Pointer MorphologyEx( Mat src, @@ -12254,10 +13591,12 @@ class CvNative { ); } - late final _MorphologyExPtr = - _lookup Function(Mat, Mat, ffi.Int, Mat)>>('MorphologyEx'); - late final _MorphologyEx = - _MorphologyExPtr.asFunction Function(Mat, Mat, int, Mat)>(); + late final _MorphologyExPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Int, Mat)>>('MorphologyEx'); + late final _MorphologyEx = _MorphologyExPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, Mat)>(); ffi.Pointer MorphologyExWithParams( Mat src, @@ -12283,10 +13622,11 @@ class CvNative { late final _MorphologyExWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, Mat, Point, ffi.Int, ffi.Int, Scalar)>>('MorphologyExWithParams'); + ffi.Pointer Function(Mat, Mat, ffi.Int, Mat, Point, ffi.Int, + ffi.Int, Scalar)>>('MorphologyExWithParams'); late final _MorphologyExWithParams = _MorphologyExWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, Mat, Point, int, int, Scalar)>(); + ffi.Pointer Function( + Mat, Mat, int, Mat, Point, int, int, Scalar)>(); ffi.Pointer NMSBoxes( VecRect bboxes, @@ -12306,10 +13646,11 @@ class CvNative { late final _NMSBoxesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecRect, VecFloat, ffi.Float, ffi.Float, ffi.Pointer)>>('NMSBoxes'); + ffi.Pointer Function(VecRect, VecFloat, ffi.Float, + ffi.Float, ffi.Pointer)>>('NMSBoxes'); late final _NMSBoxes = _NMSBoxesPtr.asFunction< - ffi.Pointer Function(VecRect, VecFloat, double, double, ffi.Pointer)>(); + ffi.Pointer Function( + VecRect, VecFloat, double, double, ffi.Pointer)>(); ffi.Pointer NMSBoxesWithParams( VecRect bboxes, @@ -12333,10 +13674,17 @@ class CvNative { late final _NMSBoxesWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecRect, VecFloat, ffi.Float, ffi.Float, ffi.Pointer, - ffi.Float, ffi.Int)>>('NMSBoxesWithParams'); + ffi.Pointer Function( + VecRect, + VecFloat, + ffi.Float, + ffi.Float, + ffi.Pointer, + ffi.Float, + ffi.Int)>>('NMSBoxesWithParams'); late final _NMSBoxesWithParams = _NMSBoxesWithParamsPtr.asFunction< - ffi.Pointer Function(VecRect, VecFloat, double, double, ffi.Pointer, double, int)>(); + ffi.Pointer Function(VecRect, VecFloat, double, double, + ffi.Pointer, double, int)>(); ffi.Pointer NMSBoxesWithParams_Async( VecRect bboxes, @@ -12360,10 +13708,18 @@ class CvNative { late final _NMSBoxesWithParams_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecRect, VecFloat, ffi.Float, ffi.Float, ffi.Float, ffi.Int, + ffi.Pointer Function( + VecRect, + VecFloat, + ffi.Float, + ffi.Float, + ffi.Float, + ffi.Int, CvCallback_1)>>('NMSBoxesWithParams_Async'); - late final _NMSBoxesWithParams_Async = _NMSBoxesWithParams_AsyncPtr.asFunction< - ffi.Pointer Function(VecRect, VecFloat, double, double, double, int, CvCallback_1)>(); + late final _NMSBoxesWithParams_Async = + _NMSBoxesWithParams_AsyncPtr.asFunction< + ffi.Pointer Function( + VecRect, VecFloat, double, double, double, int, CvCallback_1)>(); ffi.Pointer NMSBoxes_Async( VecRect bboxes, @@ -12383,10 +13739,11 @@ class CvNative { late final _NMSBoxes_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecRect, VecFloat, ffi.Float, ffi.Float, CvCallback_1)>>('NMSBoxes_Async'); + ffi.Pointer Function(VecRect, VecFloat, ffi.Float, + ffi.Float, CvCallback_1)>>('NMSBoxes_Async'); late final _NMSBoxes_Async = _NMSBoxes_AsyncPtr.asFunction< - ffi.Pointer Function(VecRect, VecFloat, double, double, CvCallback_1)>(); + ffi.Pointer Function( + VecRect, VecFloat, double, double, CvCallback_1)>(); ffi.Pointer Net_BlobFromImage( Mat image, @@ -12412,10 +13769,11 @@ class CvNative { late final _Net_BlobFromImagePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Double, Size, Scalar, ffi.Bool, ffi.Bool, ffi.Int)>>('Net_BlobFromImage'); + ffi.Pointer Function(Mat, Mat, ffi.Double, Size, Scalar, + ffi.Bool, ffi.Bool, ffi.Int)>>('Net_BlobFromImage'); late final _Net_BlobFromImage = _Net_BlobFromImagePtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, Size, Scalar, bool, bool, int)>(); + ffi.Pointer Function( + Mat, Mat, double, Size, Scalar, bool, bool, int)>(); ffi.Pointer Net_BlobFromImage_Async( Mat image, @@ -12441,10 +13799,18 @@ class CvNative { late final _Net_BlobFromImage_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Double, Size, Scalar, ffi.Bool, ffi.Bool, ffi.Int, + ffi.Pointer Function( + Mat, + ffi.Double, + Size, + Scalar, + ffi.Bool, + ffi.Bool, + ffi.Int, CvCallback_1)>>('Net_BlobFromImage_Async'); late final _Net_BlobFromImage_Async = _Net_BlobFromImage_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, double, Size, Scalar, bool, bool, int, CvCallback_1)>(); + ffi.Pointer Function( + Mat, double, Size, Scalar, bool, bool, int, CvCallback_1)>(); ffi.Pointer Net_BlobFromImages( VecMat images, @@ -12470,10 +13836,11 @@ class CvNative { late final _Net_BlobFromImagesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecMat, Mat, ffi.Double, Size, Scalar, ffi.Bool, ffi.Bool, ffi.Int)>>('Net_BlobFromImages'); + ffi.Pointer Function(VecMat, Mat, ffi.Double, Size, Scalar, + ffi.Bool, ffi.Bool, ffi.Int)>>('Net_BlobFromImages'); late final _Net_BlobFromImages = _Net_BlobFromImagesPtr.asFunction< - ffi.Pointer Function(VecMat, Mat, double, Size, Scalar, bool, bool, int)>(); + ffi.Pointer Function( + VecMat, Mat, double, Size, Scalar, bool, bool, int)>(); ffi.Pointer Net_BlobFromImages_Async( VecMat images, @@ -12499,10 +13866,19 @@ class CvNative { late final _Net_BlobFromImages_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecMat, ffi.Double, Size, Scalar, ffi.Bool, ffi.Bool, ffi.Int, + ffi.Pointer Function( + VecMat, + ffi.Double, + Size, + Scalar, + ffi.Bool, + ffi.Bool, + ffi.Int, CvCallback_1)>>('Net_BlobFromImages_Async'); - late final _Net_BlobFromImages_Async = _Net_BlobFromImages_AsyncPtr.asFunction< - ffi.Pointer Function(VecMat, double, Size, Scalar, bool, bool, int, CvCallback_1)>(); + late final _Net_BlobFromImages_Async = + _Net_BlobFromImages_AsyncPtr.asFunction< + ffi.Pointer Function( + VecMat, double, Size, Scalar, bool, bool, int, CvCallback_1)>(); void Net_Close( NetPtr net, @@ -12512,11 +13888,12 @@ class CvNative { ); } - late final _Net_ClosePtr = _lookup>('Net_Close'); + late final _Net_ClosePtr = + _lookup>('Net_Close'); late final _Net_Close = _Net_ClosePtr.asFunction(); void Net_Close_Async( - NetPtr1 net, + NetPtr net, CvCallback_0 callback, ) { return _Net_Close_Async( @@ -12526,8 +13903,10 @@ class CvNative { } late final _Net_Close_AsyncPtr = - _lookup>('Net_Close_Async'); - late final _Net_Close_Async = _Net_Close_AsyncPtr.asFunction(); + _lookup>( + 'Net_Close_Async'); + late final _Net_Close_Async = + _Net_Close_AsyncPtr.asFunction(); ffi.Pointer Net_Create( ffi.Pointer rval, @@ -12537,9 +13916,11 @@ class CvNative { ); } - late final _Net_CreatePtr = - _lookup Function(ffi.Pointer)>>('Net_Create'); - late final _Net_Create = _Net_CreatePtr.asFunction Function(ffi.Pointer)>(); + late final _Net_CreatePtr = _lookup< + ffi.NativeFunction Function(ffi.Pointer)>>( + 'Net_Create'); + late final _Net_Create = _Net_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer Net_Create_Async( CvCallback_1 callback, @@ -12550,9 +13931,10 @@ class CvNative { } late final _Net_Create_AsyncPtr = - _lookup Function(CvCallback_1)>>('Net_Create_Async'); - late final _Net_Create_Async = - _Net_Create_AsyncPtr.asFunction Function(CvCallback_1)>(); + _lookup Function(CvCallback_1)>>( + 'Net_Create_Async'); + late final _Net_Create_Async = _Net_Create_AsyncPtr.asFunction< + ffi.Pointer Function(CvCallback_1)>(); ffi.Pointer Net_Dump( Net net, @@ -12564,11 +13946,13 @@ class CvNative { ); } - late final _Net_DumpPtr = - _lookup Function(Net, ffi.Pointer>)>>( - 'Net_Dump'); - late final _Net_Dump = - _Net_DumpPtr.asFunction Function(Net, ffi.Pointer>)>(); + late final _Net_DumpPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Pointer>)>>('Net_Dump'); + late final _Net_Dump = _Net_DumpPtr.asFunction< + ffi.Pointer Function( + Net, ffi.Pointer>)>(); ffi.Pointer Net_Dump_Async( Net net, @@ -12580,10 +13964,11 @@ class CvNative { ); } - late final _Net_Dump_AsyncPtr = - _lookup Function(Net, CvCallback_1)>>('Net_Dump_Async'); - late final _Net_Dump_Async = - _Net_Dump_AsyncPtr.asFunction Function(Net, CvCallback_1)>(); + late final _Net_Dump_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Net, CvCallback_1)>>('Net_Dump_Async'); + late final _Net_Dump_Async = _Net_Dump_AsyncPtr.asFunction< + ffi.Pointer Function(Net, CvCallback_1)>(); ffi.Pointer Net_Empty( Net net, @@ -12595,10 +13980,12 @@ class CvNative { ); } - late final _Net_EmptyPtr = - _lookup Function(Net, ffi.Pointer)>>('Net_Empty'); - late final _Net_Empty = - _Net_EmptyPtr.asFunction Function(Net, ffi.Pointer)>(); + late final _Net_EmptyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Pointer)>>('Net_Empty'); + late final _Net_Empty = _Net_EmptyPtr.asFunction< + ffi.Pointer Function(Net, ffi.Pointer)>(); ffi.Pointer Net_Empty_Async( Net net, @@ -12610,10 +13997,12 @@ class CvNative { ); } - late final _Net_Empty_AsyncPtr = - _lookup Function(Net, CvCallback_1)>>('Net_Empty_Async'); - late final _Net_Empty_Async = - _Net_Empty_AsyncPtr.asFunction Function(Net, CvCallback_1)>(); + late final _Net_Empty_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Net, CvCallback_1)>>( + 'Net_Empty_Async'); + late final _Net_Empty_Async = _Net_Empty_AsyncPtr.asFunction< + ffi.Pointer Function(Net, CvCallback_1)>(); ffi.Pointer Net_Forward( Net net, @@ -12628,10 +14017,12 @@ class CvNative { } late final _Net_ForwardPtr = _lookup< - ffi.NativeFunction Function(Net, ffi.Pointer, ffi.Pointer)>>( - 'Net_Forward'); + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Pointer, ffi.Pointer)>>('Net_Forward'); late final _Net_Forward = _Net_ForwardPtr.asFunction< - ffi.Pointer Function(Net, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Net, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_ForwardLayers( Net net, @@ -12645,9 +14036,10 @@ class CvNative { ); } - late final _Net_ForwardLayersPtr = - _lookup Function(Net, ffi.Pointer, VecVecChar)>>( - 'Net_ForwardLayers'); + late final _Net_ForwardLayersPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Pointer, VecVecChar)>>('Net_ForwardLayers'); late final _Net_ForwardLayers = _Net_ForwardLayersPtr.asFunction< ffi.Pointer Function(Net, ffi.Pointer, VecVecChar)>(); @@ -12663,11 +14055,12 @@ class CvNative { ); } - late final _Net_ForwardLayers_AsyncPtr = - _lookup Function(Net, VecVecChar, CvCallback_1)>>( - 'Net_ForwardLayers_Async'); - late final _Net_ForwardLayers_Async = - _Net_ForwardLayers_AsyncPtr.asFunction Function(Net, VecVecChar, CvCallback_1)>(); + late final _Net_ForwardLayers_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, VecVecChar, CvCallback_1)>>('Net_ForwardLayers_Async'); + late final _Net_ForwardLayers_Async = _Net_ForwardLayers_AsyncPtr.asFunction< + ffi.Pointer Function(Net, VecVecChar, CvCallback_1)>(); ffi.Pointer Net_Forward_Async( Net net, @@ -12681,11 +14074,13 @@ class CvNative { ); } - late final _Net_Forward_AsyncPtr = - _lookup Function(Net, ffi.Pointer, CvCallback_1)>>( - 'Net_Forward_Async'); + late final _Net_Forward_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Pointer, CvCallback_1)>>('Net_Forward_Async'); late final _Net_Forward_Async = _Net_Forward_AsyncPtr.asFunction< - ffi.Pointer Function(Net, ffi.Pointer, CvCallback_1)>(); + ffi.Pointer Function( + Net, ffi.Pointer, CvCallback_1)>(); ffi.Pointer Net_FromNet( Net net, @@ -12697,10 +14092,12 @@ class CvNative { ); } - late final _Net_FromNetPtr = - _lookup Function(Net, ffi.Pointer)>>('Net_FromNet'); - late final _Net_FromNet = - _Net_FromNetPtr.asFunction Function(Net, ffi.Pointer)>(); + late final _Net_FromNetPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Pointer)>>('Net_FromNet'); + late final _Net_FromNet = _Net_FromNetPtr.asFunction< + ffi.Pointer Function(Net, ffi.Pointer)>(); ffi.Pointer Net_FromNet_Async( Net net, @@ -12712,10 +14109,12 @@ class CvNative { ); } - late final _Net_FromNet_AsyncPtr = - _lookup Function(Net, CvCallback_1)>>('Net_FromNet_Async'); - late final _Net_FromNet_Async = - _Net_FromNet_AsyncPtr.asFunction Function(Net, CvCallback_1)>(); + late final _Net_FromNet_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Net, CvCallback_1)>>( + 'Net_FromNet_Async'); + late final _Net_FromNet_Async = _Net_FromNet_AsyncPtr.asFunction< + ffi.Pointer Function(Net, CvCallback_1)>(); ffi.Pointer Net_GetBlobChannel( Mat blob, @@ -12731,11 +14130,12 @@ class CvNative { ); } - late final _Net_GetBlobChannelPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Net_GetBlobChannel'); - late final _Net_GetBlobChannel = - _Net_GetBlobChannelPtr.asFunction Function(Mat, int, int, ffi.Pointer)>(); + late final _Net_GetBlobChannelPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Int, ffi.Pointer)>>('Net_GetBlobChannel'); + late final _Net_GetBlobChannel = _Net_GetBlobChannelPtr.asFunction< + ffi.Pointer Function(Mat, int, int, ffi.Pointer)>(); ffi.Pointer Net_GetBlobChannel_Async( Mat blob, @@ -12751,11 +14151,13 @@ class CvNative { ); } - late final _Net_GetBlobChannel_AsyncPtr = - _lookup Function(Mat, ffi.Int, ffi.Int, CvCallback_1)>>( - 'Net_GetBlobChannel_Async'); + late final _Net_GetBlobChannel_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, ffi.Int, ffi.Int, + CvCallback_1)>>('Net_GetBlobChannel_Async'); late final _Net_GetBlobChannel_Async = - _Net_GetBlobChannel_AsyncPtr.asFunction Function(Mat, int, int, CvCallback_1)>(); + _Net_GetBlobChannel_AsyncPtr.asFunction< + ffi.Pointer Function(Mat, int, int, CvCallback_1)>(); ffi.Pointer Net_GetBlobSize( Mat blob, @@ -12767,11 +14169,12 @@ class CvNative { ); } - late final _Net_GetBlobSizePtr = - _lookup Function(Mat, ffi.Pointer)>>( - 'Net_GetBlobSize'); - late final _Net_GetBlobSize = - _Net_GetBlobSizePtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Net_GetBlobSizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Net_GetBlobSize'); + late final _Net_GetBlobSize = _Net_GetBlobSizePtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Net_GetBlobSize_Async( Mat blob, @@ -12783,10 +14186,12 @@ class CvNative { ); } - late final _Net_GetBlobSize_AsyncPtr = - _lookup Function(Mat, CvCallback_1)>>('Net_GetBlobSize_Async'); - late final _Net_GetBlobSize_Async = - _Net_GetBlobSize_AsyncPtr.asFunction Function(Mat, CvCallback_1)>(); + late final _Net_GetBlobSize_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Mat, CvCallback_1)>>( + 'Net_GetBlobSize_Async'); + late final _Net_GetBlobSize_Async = _Net_GetBlobSize_AsyncPtr.asFunction< + ffi.Pointer Function(Mat, CvCallback_1)>(); ffi.Pointer Net_GetInputDetails( Net net, @@ -12801,11 +14206,12 @@ class CvNative { } late final _Net_GetInputDetailsPtr = _lookup< - ffi - .NativeFunction Function(Net, ffi.Pointer, ffi.Pointer)>>( - 'Net_GetInputDetails'); + ffi.NativeFunction< + ffi.Pointer Function(Net, ffi.Pointer, + ffi.Pointer)>>('Net_GetInputDetails'); late final _Net_GetInputDetails = _Net_GetInputDetailsPtr.asFunction< - ffi.Pointer Function(Net, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Net, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_GetInputDetails_Async( Net net, @@ -12817,11 +14223,12 @@ class CvNative { ); } - late final _Net_GetInputDetails_AsyncPtr = - _lookup Function(Net, CvCallback_2)>>( - 'Net_GetInputDetails_Async'); - late final _Net_GetInputDetails_Async = - _Net_GetInputDetails_AsyncPtr.asFunction Function(Net, CvCallback_2)>(); + late final _Net_GetInputDetails_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Net, CvCallback_2)>>( + 'Net_GetInputDetails_Async'); + late final _Net_GetInputDetails_Async = _Net_GetInputDetails_AsyncPtr + .asFunction Function(Net, CvCallback_2)>(); ffi.Pointer Net_GetLayer( Net net, @@ -12835,11 +14242,12 @@ class CvNative { ); } - late final _Net_GetLayerPtr = - _lookup Function(Net, ffi.Int, ffi.Pointer)>>( - 'Net_GetLayer'); - late final _Net_GetLayer = - _Net_GetLayerPtr.asFunction Function(Net, int, ffi.Pointer)>(); + late final _Net_GetLayerPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Int, ffi.Pointer)>>('Net_GetLayer'); + late final _Net_GetLayer = _Net_GetLayerPtr.asFunction< + ffi.Pointer Function(Net, int, ffi.Pointer)>(); ffi.Pointer Net_GetLayerNames( Net net, @@ -12851,11 +14259,12 @@ class CvNative { ); } - late final _Net_GetLayerNamesPtr = - _lookup Function(Net, ffi.Pointer)>>( - 'Net_GetLayerNames'); - late final _Net_GetLayerNames = - _Net_GetLayerNamesPtr.asFunction Function(Net, ffi.Pointer)>(); + late final _Net_GetLayerNamesPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Pointer)>>('Net_GetLayerNames'); + late final _Net_GetLayerNames = _Net_GetLayerNamesPtr.asFunction< + ffi.Pointer Function(Net, ffi.Pointer)>(); ffi.Pointer Net_GetLayerNames_Async( Net net, @@ -12867,11 +14276,12 @@ class CvNative { ); } - late final _Net_GetLayerNames_AsyncPtr = - _lookup Function(Net, CvCallback_1)>>( - 'Net_GetLayerNames_Async'); - late final _Net_GetLayerNames_Async = - _Net_GetLayerNames_AsyncPtr.asFunction Function(Net, CvCallback_1)>(); + late final _Net_GetLayerNames_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Net, CvCallback_1)>>( + 'Net_GetLayerNames_Async'); + late final _Net_GetLayerNames_Async = _Net_GetLayerNames_AsyncPtr.asFunction< + ffi.Pointer Function(Net, CvCallback_1)>(); ffi.Pointer Net_GetLayer_Async( Net net, @@ -12885,11 +14295,12 @@ class CvNative { ); } - late final _Net_GetLayer_AsyncPtr = - _lookup Function(Net, ffi.Int, CvCallback_1)>>( - 'Net_GetLayer_Async'); - late final _Net_GetLayer_Async = - _Net_GetLayer_AsyncPtr.asFunction Function(Net, int, CvCallback_1)>(); + late final _Net_GetLayer_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Int, CvCallback_1)>>('Net_GetLayer_Async'); + late final _Net_GetLayer_Async = _Net_GetLayer_AsyncPtr.asFunction< + ffi.Pointer Function(Net, int, CvCallback_1)>(); ffi.Pointer Net_GetPerfProfile( Net net, @@ -12901,11 +14312,12 @@ class CvNative { ); } - late final _Net_GetPerfProfilePtr = - _lookup Function(Net, ffi.Pointer)>>( - 'Net_GetPerfProfile'); - late final _Net_GetPerfProfile = - _Net_GetPerfProfilePtr.asFunction Function(Net, ffi.Pointer)>(); + late final _Net_GetPerfProfilePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Pointer)>>('Net_GetPerfProfile'); + late final _Net_GetPerfProfile = _Net_GetPerfProfilePtr.asFunction< + ffi.Pointer Function(Net, ffi.Pointer)>(); ffi.Pointer Net_GetPerfProfile_Async( Net net, @@ -12917,11 +14329,12 @@ class CvNative { ); } - late final _Net_GetPerfProfile_AsyncPtr = - _lookup Function(Net, CvCallback_1)>>( - 'Net_GetPerfProfile_Async'); - late final _Net_GetPerfProfile_Async = - _Net_GetPerfProfile_AsyncPtr.asFunction Function(Net, CvCallback_1)>(); + late final _Net_GetPerfProfile_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Net, CvCallback_1)>>( + 'Net_GetPerfProfile_Async'); + late final _Net_GetPerfProfile_Async = _Net_GetPerfProfile_AsyncPtr + .asFunction Function(Net, CvCallback_1)>(); ffi.Pointer Net_GetUnconnectedOutLayers( Net net, @@ -12933,11 +14346,12 @@ class CvNative { ); } - late final _Net_GetUnconnectedOutLayersPtr = - _lookup Function(Net, ffi.Pointer)>>( - 'Net_GetUnconnectedOutLayers'); - late final _Net_GetUnconnectedOutLayers = - _Net_GetUnconnectedOutLayersPtr.asFunction Function(Net, ffi.Pointer)>(); + late final _Net_GetUnconnectedOutLayersPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Pointer)>>('Net_GetUnconnectedOutLayers'); + late final _Net_GetUnconnectedOutLayers = _Net_GetUnconnectedOutLayersPtr + .asFunction Function(Net, ffi.Pointer)>(); ffi.Pointer Net_GetUnconnectedOutLayers_Async( Net net, @@ -12949,11 +14363,13 @@ class CvNative { ); } - late final _Net_GetUnconnectedOutLayers_AsyncPtr = - _lookup Function(Net, CvCallback_1)>>( - 'Net_GetUnconnectedOutLayers_Async'); + late final _Net_GetUnconnectedOutLayers_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Net, CvCallback_1)>>( + 'Net_GetUnconnectedOutLayers_Async'); late final _Net_GetUnconnectedOutLayers_Async = - _Net_GetUnconnectedOutLayers_AsyncPtr.asFunction Function(Net, CvCallback_1)>(); + _Net_GetUnconnectedOutLayers_AsyncPtr.asFunction< + ffi.Pointer Function(Net, CvCallback_1)>(); ffi.Pointer Net_ImagesFromBlob( Mat blob, @@ -12965,11 +14381,12 @@ class CvNative { ); } - late final _Net_ImagesFromBlobPtr = - _lookup Function(Mat, ffi.Pointer)>>( - 'Net_ImagesFromBlob'); - late final _Net_ImagesFromBlob = - _Net_ImagesFromBlobPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _Net_ImagesFromBlobPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('Net_ImagesFromBlob'); + late final _Net_ImagesFromBlob = _Net_ImagesFromBlobPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer Net_ImagesFromBlob_Async( Mat blob, @@ -12981,11 +14398,12 @@ class CvNative { ); } - late final _Net_ImagesFromBlob_AsyncPtr = - _lookup Function(Mat, CvCallback_1)>>( - 'Net_ImagesFromBlob_Async'); - late final _Net_ImagesFromBlob_Async = - _Net_ImagesFromBlob_AsyncPtr.asFunction Function(Mat, CvCallback_1)>(); + late final _Net_ImagesFromBlob_AsyncPtr = _lookup< + ffi + .NativeFunction Function(Mat, CvCallback_1)>>( + 'Net_ImagesFromBlob_Async'); + late final _Net_ImagesFromBlob_Async = _Net_ImagesFromBlob_AsyncPtr + .asFunction Function(Mat, CvCallback_1)>(); ffi.Pointer Net_ReadNet( ffi.Pointer model, @@ -13003,11 +14421,14 @@ class CvNative { late final _Net_ReadNetPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('Net_ReadNet'); late final _Net_ReadNet = _Net_ReadNetPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_ReadNetBytes( ffi.Pointer framework, @@ -13025,10 +14446,11 @@ class CvNative { late final _Net_ReadNetBytesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, VecUChar, VecUChar, ffi.Pointer)>>('Net_ReadNetBytes'); + ffi.Pointer Function(ffi.Pointer, VecUChar, + VecUChar, ffi.Pointer)>>('Net_ReadNetBytes'); late final _Net_ReadNetBytes = _Net_ReadNetBytesPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, VecUChar, VecUChar, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, VecUChar, VecUChar, ffi.Pointer)>(); ffi.Pointer Net_ReadNetBytes_Async( ffi.Pointer framework, @@ -13046,10 +14468,11 @@ class CvNative { late final _Net_ReadNetBytes_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, VecUChar, VecUChar, CvCallback_1)>>('Net_ReadNetBytes_Async'); + ffi.Pointer Function(ffi.Pointer, VecUChar, + VecUChar, CvCallback_1)>>('Net_ReadNetBytes_Async'); late final _Net_ReadNetBytes_Async = _Net_ReadNetBytes_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, VecUChar, VecUChar, CvCallback_1)>(); + ffi.Pointer Function( + ffi.Pointer, VecUChar, VecUChar, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromCaffe( ffi.Pointer prototxt, @@ -13066,9 +14489,12 @@ class CvNative { late final _Net_ReadNetFromCaffePtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('Net_ReadNetFromCaffe'); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('Net_ReadNetFromCaffe'); late final _Net_ReadNetFromCaffe = _Net_ReadNetFromCaffePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromCaffeBytes( VecUChar prototxt, @@ -13082,11 +14508,14 @@ class CvNative { ); } - late final _Net_ReadNetFromCaffeBytesPtr = - _lookup Function(VecUChar, VecUChar, ffi.Pointer)>>( - 'Net_ReadNetFromCaffeBytes'); - late final _Net_ReadNetFromCaffeBytes = _Net_ReadNetFromCaffeBytesPtr.asFunction< - ffi.Pointer Function(VecUChar, VecUChar, ffi.Pointer)>(); + late final _Net_ReadNetFromCaffeBytesPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecUChar, VecUChar, + ffi.Pointer)>>('Net_ReadNetFromCaffeBytes'); + late final _Net_ReadNetFromCaffeBytes = + _Net_ReadNetFromCaffeBytesPtr.asFunction< + ffi.Pointer Function( + VecUChar, VecUChar, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromCaffeBytes_Async( VecUChar prototxt, @@ -13100,11 +14529,13 @@ class CvNative { ); } - late final _Net_ReadNetFromCaffeBytes_AsyncPtr = - _lookup Function(VecUChar, VecUChar, CvCallback_1)>>( - 'Net_ReadNetFromCaffeBytes_Async'); - late final _Net_ReadNetFromCaffeBytes_Async = _Net_ReadNetFromCaffeBytes_AsyncPtr.asFunction< - ffi.Pointer Function(VecUChar, VecUChar, CvCallback_1)>(); + late final _Net_ReadNetFromCaffeBytes_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecUChar, VecUChar, + CvCallback_1)>>('Net_ReadNetFromCaffeBytes_Async'); + late final _Net_ReadNetFromCaffeBytes_Async = + _Net_ReadNetFromCaffeBytes_AsyncPtr.asFunction< + ffi.Pointer Function(VecUChar, VecUChar, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromCaffe_Async( ffi.Pointer prototxt, @@ -13121,9 +14552,13 @@ class CvNative { late final _Net_ReadNetFromCaffe_AsyncPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, CvCallback_1)>>('Net_ReadNetFromCaffe_Async'); - late final _Net_ReadNetFromCaffe_Async = _Net_ReadNetFromCaffe_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, CvCallback_1)>(); + ffi.Pointer, + ffi.Pointer, + CvCallback_1)>>('Net_ReadNetFromCaffe_Async'); + late final _Net_ReadNetFromCaffe_Async = + _Net_ReadNetFromCaffe_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromONNX( ffi.Pointer model, @@ -13135,11 +14570,13 @@ class CvNative { ); } - late final _Net_ReadNetFromONNXPtr = - _lookup Function(ffi.Pointer, ffi.Pointer)>>( - 'Net_ReadNetFromONNX'); + late final _Net_ReadNetFromONNXPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('Net_ReadNetFromONNX'); late final _Net_ReadNetFromONNX = _Net_ReadNetFromONNXPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromONNXBytes( VecUChar model, @@ -13151,11 +14588,12 @@ class CvNative { ); } - late final _Net_ReadNetFromONNXBytesPtr = - _lookup Function(VecUChar, ffi.Pointer)>>( - 'Net_ReadNetFromONNXBytes'); - late final _Net_ReadNetFromONNXBytes = - _Net_ReadNetFromONNXBytesPtr.asFunction Function(VecUChar, ffi.Pointer)>(); + late final _Net_ReadNetFromONNXBytesPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecUChar, ffi.Pointer)>>('Net_ReadNetFromONNXBytes'); + late final _Net_ReadNetFromONNXBytes = _Net_ReadNetFromONNXBytesPtr + .asFunction Function(VecUChar, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromONNXBytes_Async( VecUChar model, @@ -13167,11 +14605,13 @@ class CvNative { ); } - late final _Net_ReadNetFromONNXBytes_AsyncPtr = - _lookup Function(VecUChar, CvCallback_1)>>( - 'Net_ReadNetFromONNXBytes_Async'); + late final _Net_ReadNetFromONNXBytes_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecUChar, CvCallback_1)>>('Net_ReadNetFromONNXBytes_Async'); late final _Net_ReadNetFromONNXBytes_Async = - _Net_ReadNetFromONNXBytes_AsyncPtr.asFunction Function(VecUChar, CvCallback_1)>(); + _Net_ReadNetFromONNXBytes_AsyncPtr.asFunction< + ffi.Pointer Function(VecUChar, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromONNX_Async( ffi.Pointer model, @@ -13183,11 +14623,14 @@ class CvNative { ); } - late final _Net_ReadNetFromONNX_AsyncPtr = - _lookup Function(ffi.Pointer, CvCallback_1)>>( - 'Net_ReadNetFromONNX_Async'); - late final _Net_ReadNetFromONNX_Async = _Net_ReadNetFromONNX_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, CvCallback_1)>(); + late final _Net_ReadNetFromONNX_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + CvCallback_1)>>('Net_ReadNetFromONNX_Async'); + late final _Net_ReadNetFromONNX_Async = + _Net_ReadNetFromONNX_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromTFLite( ffi.Pointer model, @@ -13199,11 +14642,13 @@ class CvNative { ); } - late final _Net_ReadNetFromTFLitePtr = - _lookup Function(ffi.Pointer, ffi.Pointer)>>( - 'Net_ReadNetFromTFLite'); + late final _Net_ReadNetFromTFLitePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer)>>('Net_ReadNetFromTFLite'); late final _Net_ReadNetFromTFLite = _Net_ReadNetFromTFLitePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromTFLiteBytes( VecUChar bufferModel, @@ -13215,11 +14660,12 @@ class CvNative { ); } - late final _Net_ReadNetFromTFLiteBytesPtr = - _lookup Function(VecUChar, ffi.Pointer)>>( - 'Net_ReadNetFromTFLiteBytes'); - late final _Net_ReadNetFromTFLiteBytes = - _Net_ReadNetFromTFLiteBytesPtr.asFunction Function(VecUChar, ffi.Pointer)>(); + late final _Net_ReadNetFromTFLiteBytesPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecUChar, ffi.Pointer)>>('Net_ReadNetFromTFLiteBytes'); + late final _Net_ReadNetFromTFLiteBytes = _Net_ReadNetFromTFLiteBytesPtr + .asFunction Function(VecUChar, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromTFLiteBytes_Async( VecUChar bufferModel, @@ -13231,11 +14677,13 @@ class CvNative { ); } - late final _Net_ReadNetFromTFLiteBytes_AsyncPtr = - _lookup Function(VecUChar, CvCallback_1)>>( - 'Net_ReadNetFromTFLiteBytes_Async'); - late final _Net_ReadNetFromTFLiteBytes_Async = _Net_ReadNetFromTFLiteBytes_AsyncPtr.asFunction< - ffi.Pointer Function(VecUChar, CvCallback_1)>(); + late final _Net_ReadNetFromTFLiteBytes_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecUChar, CvCallback_1)>>('Net_ReadNetFromTFLiteBytes_Async'); + late final _Net_ReadNetFromTFLiteBytes_Async = + _Net_ReadNetFromTFLiteBytes_AsyncPtr.asFunction< + ffi.Pointer Function(VecUChar, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromTFLite_Async( ffi.Pointer model, @@ -13247,11 +14695,14 @@ class CvNative { ); } - late final _Net_ReadNetFromTFLite_AsyncPtr = - _lookup Function(ffi.Pointer, CvCallback_1)>>( - 'Net_ReadNetFromTFLite_Async'); - late final _Net_ReadNetFromTFLite_Async = _Net_ReadNetFromTFLite_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, CvCallback_1)>(); + late final _Net_ReadNetFromTFLite_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + CvCallback_1)>>('Net_ReadNetFromTFLite_Async'); + late final _Net_ReadNetFromTFLite_Async = + _Net_ReadNetFromTFLite_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromTensorflow( ffi.Pointer model, @@ -13268,9 +14719,13 @@ class CvNative { late final _Net_ReadNetFromTensorflowPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('Net_ReadNetFromTensorflow'); - late final _Net_ReadNetFromTensorflow = _Net_ReadNetFromTensorflowPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('Net_ReadNetFromTensorflow'); + late final _Net_ReadNetFromTensorflow = + _Net_ReadNetFromTensorflowPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromTensorflowBytes( VecUChar model, @@ -13284,11 +14739,14 @@ class CvNative { ); } - late final _Net_ReadNetFromTensorflowBytesPtr = - _lookup Function(VecUChar, VecUChar, ffi.Pointer)>>( - 'Net_ReadNetFromTensorflowBytes'); - late final _Net_ReadNetFromTensorflowBytes = _Net_ReadNetFromTensorflowBytesPtr.asFunction< - ffi.Pointer Function(VecUChar, VecUChar, ffi.Pointer)>(); + late final _Net_ReadNetFromTensorflowBytesPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecUChar, VecUChar, + ffi.Pointer)>>('Net_ReadNetFromTensorflowBytes'); + late final _Net_ReadNetFromTensorflowBytes = + _Net_ReadNetFromTensorflowBytesPtr.asFunction< + ffi.Pointer Function( + VecUChar, VecUChar, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromTensorflowBytes_Async( VecUChar model, @@ -13302,11 +14760,13 @@ class CvNative { ); } - late final _Net_ReadNetFromTensorflowBytes_AsyncPtr = - _lookup Function(VecUChar, VecUChar, CvCallback_1)>>( - 'Net_ReadNetFromTensorflowBytes_Async'); - late final _Net_ReadNetFromTensorflowBytes_Async = _Net_ReadNetFromTensorflowBytes_AsyncPtr.asFunction< - ffi.Pointer Function(VecUChar, VecUChar, CvCallback_1)>(); + late final _Net_ReadNetFromTensorflowBytes_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecUChar, VecUChar, + CvCallback_1)>>('Net_ReadNetFromTensorflowBytes_Async'); + late final _Net_ReadNetFromTensorflowBytes_Async = + _Net_ReadNetFromTensorflowBytes_AsyncPtr.asFunction< + ffi.Pointer Function(VecUChar, VecUChar, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromTensorflow_Async( ffi.Pointer model, @@ -13322,10 +14782,14 @@ class CvNative { late final _Net_ReadNetFromTensorflow_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, CvCallback_1)>>('Net_ReadNetFromTensorflow_Async'); - late final _Net_ReadNetFromTensorflow_Async = _Net_ReadNetFromTensorflow_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, CvCallback_1)>(); + late final _Net_ReadNetFromTensorflow_Async = + _Net_ReadNetFromTensorflow_AsyncPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, CvCallback_1)>(); ffi.Pointer Net_ReadNetFromTorch( ffi.Pointer model, @@ -13343,10 +14807,11 @@ class CvNative { late final _Net_ReadNetFromTorchPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Bool, ffi.Bool, ffi.Pointer)>>('Net_ReadNetFromTorch'); + ffi.Pointer Function(ffi.Pointer, ffi.Bool, + ffi.Bool, ffi.Pointer)>>('Net_ReadNetFromTorch'); late final _Net_ReadNetFromTorch = _Net_ReadNetFromTorchPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, bool, bool, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, bool, bool, ffi.Pointer)>(); ffi.Pointer Net_ReadNetFromTorch_Async( ffi.Pointer model, @@ -13364,10 +14829,12 @@ class CvNative { late final _Net_ReadNetFromTorch_AsyncPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Bool, + ffi.Bool, CvCallback_1)>>('Net_ReadNetFromTorch_Async'); + late final _Net_ReadNetFromTorch_Async = + _Net_ReadNetFromTorch_AsyncPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Bool, ffi.Bool, CvCallback_1)>>('Net_ReadNetFromTorch_Async'); - late final _Net_ReadNetFromTorch_Async = _Net_ReadNetFromTorch_AsyncPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, bool, bool, CvCallback_1)>(); + ffi.Pointer, bool, bool, CvCallback_1)>(); ffi.Pointer Net_ReadNet_Async( ffi.Pointer model, @@ -13385,11 +14852,14 @@ class CvNative { late final _Net_ReadNet_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, CvCallback_1)>>('Net_ReadNet_Async'); late final _Net_ReadNet_Async = _Net_ReadNet_AsyncPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, CvCallback_1)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, CvCallback_1)>(); ffi.Pointer Net_SetInput( Net net, @@ -13403,11 +14873,12 @@ class CvNative { ); } - late final _Net_SetInputPtr = - _lookup Function(Net, Mat, ffi.Pointer)>>( - 'Net_SetInput'); - late final _Net_SetInput = - _Net_SetInputPtr.asFunction Function(Net, Mat, ffi.Pointer)>(); + late final _Net_SetInputPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, Mat, ffi.Pointer)>>('Net_SetInput'); + late final _Net_SetInput = _Net_SetInputPtr.asFunction< + ffi.Pointer Function(Net, Mat, ffi.Pointer)>(); ffi.Pointer Net_SetInput_Async( Net net, @@ -13424,10 +14895,12 @@ class CvNative { } late final _Net_SetInput_AsyncPtr = _lookup< - ffi.NativeFunction Function(Net, Mat, ffi.Pointer, CvCallback_0)>>( - 'Net_SetInput_Async'); + ffi.NativeFunction< + ffi.Pointer Function(Net, Mat, ffi.Pointer, + CvCallback_0)>>('Net_SetInput_Async'); late final _Net_SetInput_Async = _Net_SetInput_AsyncPtr.asFunction< - ffi.Pointer Function(Net, Mat, ffi.Pointer, CvCallback_0)>(); + ffi.Pointer Function( + Net, Mat, ffi.Pointer, CvCallback_0)>(); ffi.Pointer Net_SetPreferableBackend( Net net, @@ -13440,9 +14913,10 @@ class CvNative { } late final _Net_SetPreferableBackendPtr = - _lookup Function(Net, ffi.Int)>>('Net_SetPreferableBackend'); - late final _Net_SetPreferableBackend = - _Net_SetPreferableBackendPtr.asFunction Function(Net, int)>(); + _lookup Function(Net, ffi.Int)>>( + 'Net_SetPreferableBackend'); + late final _Net_SetPreferableBackend = _Net_SetPreferableBackendPtr + .asFunction Function(Net, int)>(); ffi.Pointer Net_SetPreferableBackend_Async( Net net, @@ -13456,11 +14930,13 @@ class CvNative { ); } - late final _Net_SetPreferableBackend_AsyncPtr = - _lookup Function(Net, ffi.Int, CvCallback_0)>>( - 'Net_SetPreferableBackend_Async'); + late final _Net_SetPreferableBackend_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Int, CvCallback_0)>>('Net_SetPreferableBackend_Async'); late final _Net_SetPreferableBackend_Async = - _Net_SetPreferableBackend_AsyncPtr.asFunction Function(Net, int, CvCallback_0)>(); + _Net_SetPreferableBackend_AsyncPtr.asFunction< + ffi.Pointer Function(Net, int, CvCallback_0)>(); ffi.Pointer Net_SetPreferableTarget( Net net, @@ -13473,9 +14949,10 @@ class CvNative { } late final _Net_SetPreferableTargetPtr = - _lookup Function(Net, ffi.Int)>>('Net_SetPreferableTarget'); - late final _Net_SetPreferableTarget = - _Net_SetPreferableTargetPtr.asFunction Function(Net, int)>(); + _lookup Function(Net, ffi.Int)>>( + 'Net_SetPreferableTarget'); + late final _Net_SetPreferableTarget = _Net_SetPreferableTargetPtr.asFunction< + ffi.Pointer Function(Net, int)>(); ffi.Pointer Net_SetPreferableTarget_Async( Net net, @@ -13489,11 +14966,12 @@ class CvNative { ); } - late final _Net_SetPreferableTarget_AsyncPtr = - _lookup Function(Net, ffi.Int, CvCallback_0)>>( - 'Net_SetPreferableTarget_Async'); - late final _Net_SetPreferableTarget_Async = - _Net_SetPreferableTarget_AsyncPtr.asFunction Function(Net, int, CvCallback_0)>(); + late final _Net_SetPreferableTarget_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Net, ffi.Int, CvCallback_0)>>('Net_SetPreferableTarget_Async'); + late final _Net_SetPreferableTarget_Async = _Net_SetPreferableTarget_AsyncPtr + .asFunction Function(Net, int, CvCallback_0)>(); ffi.Pointer Net_forwardAsync( Net net, @@ -13509,10 +14987,11 @@ class CvNative { late final _Net_forwardAsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Net, ffi.Pointer, ffi.Pointer)>>('Net_forwardAsync'); + ffi.Pointer Function(Net, ffi.Pointer, + ffi.Pointer)>>('Net_forwardAsync'); late final _Net_forwardAsync = _Net_forwardAsyncPtr.asFunction< - ffi.Pointer Function(Net, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Net, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Norm( Mat src1, @@ -13526,10 +15005,12 @@ class CvNative { ); } - late final _NormPtr = - _lookup Function(Mat, ffi.Int, ffi.Pointer)>>( - 'Norm'); - late final _Norm = _NormPtr.asFunction Function(Mat, int, ffi.Pointer)>(); + late final _NormPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, ffi.Pointer)>>('Norm'); + late final _Norm = _NormPtr.asFunction< + ffi.Pointer Function(Mat, int, ffi.Pointer)>(); ffi.Pointer NormWithMats( Mat src1, @@ -13545,11 +15026,12 @@ class CvNative { ); } - late final _NormWithMatsPtr = - _lookup Function(Mat, Mat, ffi.Int, ffi.Pointer)>>( - 'NormWithMats'); - late final _NormWithMats = - _NormWithMatsPtr.asFunction Function(Mat, Mat, int, ffi.Pointer)>(); + late final _NormWithMatsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Int, ffi.Pointer)>>('NormWithMats'); + late final _NormWithMats = _NormWithMatsPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, ffi.Pointer)>(); void ORB_Close( ORBPtr o, @@ -13559,7 +15041,8 @@ class CvNative { ); } - late final _ORB_ClosePtr = _lookup>('ORB_Close'); + late final _ORB_ClosePtr = + _lookup>('ORB_Close'); late final _ORB_Close = _ORB_ClosePtr.asFunction(); ffi.Pointer ORB_Create( @@ -13570,9 +15053,11 @@ class CvNative { ); } - late final _ORB_CreatePtr = - _lookup Function(ffi.Pointer)>>('ORB_Create'); - late final _ORB_Create = _ORB_CreatePtr.asFunction Function(ffi.Pointer)>(); + late final _ORB_CreatePtr = _lookup< + ffi.NativeFunction Function(ffi.Pointer)>>( + 'ORB_Create'); + late final _ORB_Create = _ORB_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer ORB_CreateWithParams( int nfeatures, @@ -13602,10 +15087,20 @@ class CvNative { late final _ORB_CreateWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Int, ffi.Float, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Int, - ffi.Int, ffi.Int, ffi.Pointer)>>('ORB_CreateWithParams'); + ffi.Pointer Function( + ffi.Int, + ffi.Float, + ffi.Int, + ffi.Int, + ffi.Int, + ffi.Int, + ffi.Int, + ffi.Int, + ffi.Int, + ffi.Pointer)>>('ORB_CreateWithParams'); late final _ORB_CreateWithParams = _ORB_CreateWithParamsPtr.asFunction< - ffi.Pointer Function(int, double, int, int, int, int, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + int, double, int, int, int, int, int, int, int, ffi.Pointer)>(); ffi.Pointer ORB_Detect( ORB o, @@ -13619,11 +15114,12 @@ class CvNative { ); } - late final _ORB_DetectPtr = - _lookup Function(ORB, Mat, ffi.Pointer)>>( - 'ORB_Detect'); - late final _ORB_Detect = - _ORB_DetectPtr.asFunction Function(ORB, Mat, ffi.Pointer)>(); + late final _ORB_DetectPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ORB, Mat, ffi.Pointer)>>('ORB_Detect'); + late final _ORB_Detect = _ORB_DetectPtr.asFunction< + ffi.Pointer Function(ORB, Mat, ffi.Pointer)>(); ffi.Pointer ORB_DetectAndCompute( ORB o, @@ -13642,10 +15138,12 @@ class CvNative { } late final _ORB_DetectAndComputePtr = _lookup< - ffi.NativeFunction Function(ORB, Mat, Mat, Mat, ffi.Pointer)>>( - 'ORB_DetectAndCompute'); + ffi.NativeFunction< + ffi.Pointer Function(ORB, Mat, Mat, Mat, + ffi.Pointer)>>('ORB_DetectAndCompute'); late final _ORB_DetectAndCompute = _ORB_DetectAndComputePtr.asFunction< - ffi.Pointer Function(ORB, Mat, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + ORB, Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer Ones( int rows, @@ -13662,9 +15160,11 @@ class CvNative { } late final _OnesPtr = _lookup< - ffi - .NativeFunction Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Ones'); - late final _Ones = _OnesPtr.asFunction Function(int, int, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Ones'); + late final _Ones = _OnesPtr.asFunction< + ffi.Pointer Function(int, int, int, ffi.Pointer)>(); ffi.Pointer PencilSketch( Mat src, @@ -13685,10 +15185,11 @@ class CvNative { } late final _PencilSketchPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat, ffi.Float, ffi.Float, ffi.Float)>>( - 'PencilSketch'); - late final _PencilSketch = - _PencilSketchPtr.asFunction Function(Mat, Mat, Mat, double, double, double)>(); + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Float, ffi.Float, ffi.Float)>>('PencilSketch'); + late final _PencilSketch = _PencilSketchPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, double, double, double)>(); ffi.Pointer PhaseCorrelate( Mat src1, @@ -13708,10 +15209,11 @@ class CvNative { late final _PhaseCorrelatePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, ffi.Pointer, ffi.Pointer)>>('PhaseCorrelate'); + ffi.Pointer Function(Mat, Mat, Mat, ffi.Pointer, + ffi.Pointer)>>('PhaseCorrelate'); late final _PhaseCorrelate = _PhaseCorrelatePtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer PhotoInpaint( Mat src, @@ -13729,11 +15231,12 @@ class CvNative { ); } - late final _PhotoInpaintPtr = - _lookup Function(Mat, Mat, Mat, ffi.Float, ffi.Int)>>( - 'PhotoInpaint'); - late final _PhotoInpaint = - _PhotoInpaintPtr.asFunction Function(Mat, Mat, Mat, double, int)>(); + late final _PhotoInpaintPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Float, ffi.Int)>>('PhotoInpaint'); + late final _PhotoInpaint = _PhotoInpaintPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, double, int)>(); ffi.Pointer PointPolygonTest( VecPoint pts, @@ -13751,10 +15254,11 @@ class CvNative { late final _PointPolygonTestPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, Point2f, ffi.Bool, ffi.Pointer)>>('PointPolygonTest'); + ffi.Pointer Function(VecPoint, Point2f, ffi.Bool, + ffi.Pointer)>>('PointPolygonTest'); late final _PointPolygonTest = _PointPolygonTestPtr.asFunction< - ffi.Pointer Function(VecPoint, Point2f, bool, ffi.Pointer)>(); + ffi.Pointer Function( + VecPoint, Point2f, bool, ffi.Pointer)>(); ffi.Pointer Polylines( Mat img, @@ -13773,10 +15277,11 @@ class CvNative { } late final _PolylinesPtr = _lookup< - ffi.NativeFunction Function(Mat, VecVecPoint, ffi.Bool, Scalar, ffi.Int)>>( - 'Polylines'); - late final _Polylines = - _PolylinesPtr.asFunction Function(Mat, VecVecPoint, bool, Scalar, int)>(); + ffi.NativeFunction< + ffi.Pointer Function( + Mat, VecVecPoint, ffi.Bool, Scalar, ffi.Int)>>('Polylines'); + late final _Polylines = _PolylinesPtr.asFunction< + ffi.Pointer Function(Mat, VecVecPoint, bool, Scalar, int)>(); ffi.Pointer Prim_from_Circle( Point center, @@ -13800,10 +15305,11 @@ class CvNative { late final _Prim_from_CirclePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Point, Scalar, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Prim_from_Circle'); + ffi.Pointer Function(Point, Scalar, ffi.Int, ffi.Int, + ffi.Int, ffi.Int, ffi.Pointer)>>('Prim_from_Circle'); late final _Prim_from_Circle = _Prim_from_CirclePtr.asFunction< - ffi.Pointer Function(Point, Scalar, int, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Point, Scalar, int, int, int, int, ffi.Pointer)>(); ffi.Pointer Prim_from_FText( ffi.Pointer text, @@ -13825,10 +15331,11 @@ class CvNative { late final _Prim_from_FTextPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int, Point, ffi.Int, Scalar, ffi.Pointer)>>('Prim_from_FText'); + ffi.Pointer Function(ffi.Pointer, ffi.Int, Point, + ffi.Int, Scalar, ffi.Pointer)>>('Prim_from_FText'); late final _Prim_from_FText = _Prim_from_FTextPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, Point, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, int, Point, int, Scalar, ffi.Pointer)>(); ffi.Pointer Prim_from_Image( Point org, @@ -13844,11 +15351,12 @@ class CvNative { ); } - late final _Prim_from_ImagePtr = - _lookup Function(Point, Mat, Mat, ffi.Pointer)>>( - 'Prim_from_Image'); - late final _Prim_from_Image = - _Prim_from_ImagePtr.asFunction Function(Point, Mat, Mat, ffi.Pointer)>(); + late final _Prim_from_ImagePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Point, Mat, Mat, ffi.Pointer)>>('Prim_from_Image'); + late final _Prim_from_Image = _Prim_from_ImagePtr.asFunction< + ffi.Pointer Function(Point, Mat, Mat, ffi.Pointer)>(); ffi.Pointer Prim_from_Line( Scalar color, @@ -13872,10 +15380,11 @@ class CvNative { late final _Prim_from_LinePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Scalar, ffi.Int, Point, Point, ffi.Int, ffi.Int, ffi.Pointer)>>('Prim_from_Line'); + ffi.Pointer Function(Scalar, ffi.Int, Point, Point, ffi.Int, + ffi.Int, ffi.Pointer)>>('Prim_from_Line'); late final _Prim_from_Line = _Prim_from_LinePtr.asFunction< - ffi.Pointer Function(Scalar, int, Point, Point, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Scalar, int, Point, Point, int, int, ffi.Pointer)>(); ffi.Pointer Prim_from_Mosaic( int cellSz, @@ -13891,11 +15400,12 @@ class CvNative { ); } - late final _Prim_from_MosaicPtr = - _lookup Function(ffi.Int, ffi.Int, Rect, ffi.Pointer)>>( - 'Prim_from_Mosaic'); - late final _Prim_from_Mosaic = - _Prim_from_MosaicPtr.asFunction Function(int, int, Rect, ffi.Pointer)>(); + late final _Prim_from_MosaicPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int, ffi.Int, Rect, ffi.Pointer)>>('Prim_from_Mosaic'); + late final _Prim_from_Mosaic = _Prim_from_MosaicPtr.asFunction< + ffi.Pointer Function(int, int, Rect, ffi.Pointer)>(); ffi.Pointer Prim_from_Poly( VecPoint points, @@ -13917,10 +15427,11 @@ class CvNative { late final _Prim_from_PolyPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VecPoint, Scalar, ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Prim_from_Poly'); + ffi.Pointer Function(VecPoint, Scalar, ffi.Int, ffi.Int, + ffi.Int, ffi.Pointer)>>('Prim_from_Poly'); late final _Prim_from_Poly = _Prim_from_PolyPtr.asFunction< - ffi.Pointer Function(VecPoint, Scalar, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + VecPoint, Scalar, int, int, int, ffi.Pointer)>(); ffi.Pointer Prim_from_Rect( Scalar color, @@ -13942,10 +15453,11 @@ class CvNative { late final _Prim_from_RectPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Scalar, ffi.Int, Rect, ffi.Int, ffi.Int, ffi.Pointer)>>('Prim_from_Rect'); + ffi.Pointer Function(Scalar, ffi.Int, Rect, ffi.Int, + ffi.Int, ffi.Pointer)>>('Prim_from_Rect'); late final _Prim_from_Rect = _Prim_from_RectPtr.asFunction< - ffi.Pointer Function(Scalar, int, Rect, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Scalar, int, Rect, int, int, ffi.Pointer)>(); ffi.Pointer Prim_from_Text( bool bottom_left_origin, @@ -13975,11 +15487,20 @@ class CvNative { late final _Prim_from_TextPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Bool, Scalar, ffi.Int, ffi.Double, ffi.Int, Point, - ffi.Pointer, ffi.Int, ffi.Int, ffi.Pointer)>>('Prim_from_Text'); + ffi.Pointer Function( + ffi.Bool, + Scalar, + ffi.Int, + ffi.Double, + ffi.Int, + Point, + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer)>>('Prim_from_Text'); late final _Prim_from_Text = _Prim_from_TextPtr.asFunction< - ffi.Pointer Function( - bool, Scalar, int, double, int, Point, ffi.Pointer, int, int, ffi.Pointer)>(); + ffi.Pointer Function(bool, Scalar, int, double, int, Point, + ffi.Pointer, int, int, ffi.Pointer)>(); ffi.Pointer PutText( Mat img, @@ -14003,10 +15524,11 @@ class CvNative { late final _PutTextPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer, Point, ffi.Int, ffi.Double, Scalar, ffi.Int)>>('PutText'); + ffi.Pointer Function(Mat, ffi.Pointer, Point, + ffi.Int, ffi.Double, Scalar, ffi.Int)>>('PutText'); late final _PutText = _PutTextPtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer, Point, int, double, Scalar, int)>(); + ffi.Pointer Function( + Mat, ffi.Pointer, Point, int, double, Scalar, int)>(); ffi.Pointer PutTextWithParams( Mat img, @@ -14034,11 +15556,19 @@ class CvNative { late final _PutTextWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, ffi.Pointer, Point, ffi.Int, ffi.Double, Scalar, - ffi.Int, ffi.Int, ffi.Bool)>>('PutTextWithParams'); + ffi.Pointer Function( + Mat, + ffi.Pointer, + Point, + ffi.Int, + ffi.Double, + Scalar, + ffi.Int, + ffi.Int, + ffi.Bool)>>('PutTextWithParams'); late final _PutTextWithParams = _PutTextWithParamsPtr.asFunction< - ffi.Pointer Function( - Mat, ffi.Pointer, Point, int, double, Scalar, int, int, bool)>(); + ffi.Pointer Function(Mat, ffi.Pointer, Point, int, + double, Scalar, int, int, bool)>(); ffi.Pointer PyrDown( Mat src, @@ -14054,9 +15584,11 @@ class CvNative { ); } - late final _PyrDownPtr = - _lookup Function(Mat, Mat, Size, ffi.Int)>>('PyrDown'); - late final _PyrDown = _PyrDownPtr.asFunction Function(Mat, Mat, Size, int)>(); + late final _PyrDownPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Size, ffi.Int)>>('PyrDown'); + late final _PyrDown = _PyrDownPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Size, int)>(); ffi.Pointer PyrUp( Mat src, @@ -14072,9 +15604,11 @@ class CvNative { ); } - late final _PyrUpPtr = - _lookup Function(Mat, Mat, Size, ffi.Int)>>('PyrUp'); - late final _PyrUp = _PyrUpPtr.asFunction Function(Mat, Mat, Size, int)>(); + late final _PyrUpPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Size, ffi.Int)>>('PyrUp'); + late final _PyrUp = _PyrUpPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Size, int)>(); void QRCodeDetector_Close( QRCodeDetectorPtr self, @@ -14085,8 +15619,10 @@ class CvNative { } late final _QRCodeDetector_ClosePtr = - _lookup>('QRCodeDetector_Close'); - late final _QRCodeDetector_Close = _QRCodeDetector_ClosePtr.asFunction(); + _lookup>( + 'QRCodeDetector_Close'); + late final _QRCodeDetector_Close = + _QRCodeDetector_ClosePtr.asFunction(); ffi.Pointer QRCodeDetector_Decode( QRCodeDetector self, @@ -14106,11 +15642,15 @@ class CvNative { late final _QRCodeDetector_DecodePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, Mat, + ffi.Pointer Function( + QRCodeDetector, + Mat, + ffi.Pointer, + Mat, ffi.Pointer>)>>('QRCodeDetector_Decode'); late final _QRCodeDetector_Decode = _QRCodeDetector_DecodePtr.asFunction< - ffi.Pointer Function( - QRCodeDetector, Mat, ffi.Pointer, Mat, ffi.Pointer>)>(); + ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, + Mat, ffi.Pointer>)>(); ffi.Pointer QRCodeDetector_Decode_Async( QRCodeDetector self, @@ -14124,11 +15664,13 @@ class CvNative { ); } - late final _QRCodeDetector_Decode_AsyncPtr = - _lookup Function(QRCodeDetector, Mat, CvCallback_3)>>( - 'QRCodeDetector_Decode_Async'); - late final _QRCodeDetector_Decode_Async = _QRCodeDetector_Decode_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_3)>(); + late final _QRCodeDetector_Decode_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, + CvCallback_3)>>('QRCodeDetector_Decode_Async'); + late final _QRCodeDetector_Decode_Async = + _QRCodeDetector_Decode_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_3)>(); ffi.Pointer QRCodeDetector_Detect( QRCodeDetector self, @@ -14147,9 +15689,13 @@ class CvNative { late final _QRCodeDetector_DetectPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer)>>('QRCodeDetector_Detect'); + QRCodeDetector, + Mat, + ffi.Pointer, + ffi.Pointer)>>('QRCodeDetector_Detect'); late final _QRCodeDetector_Detect = _QRCodeDetector_DetectPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer QRCodeDetector_DetectAndDecode( QRCodeDetector self, @@ -14168,12 +15714,22 @@ class CvNative { } late final _QRCodeDetector_DetectAndDecodePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('QRCodeDetector_DetectAndDecode'); - late final _QRCodeDetector_DetectAndDecode = _QRCodeDetector_DetectAndDecodePtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>(); + ffi.NativeFunction< + ffi.Pointer Function( + QRCodeDetector, + Mat, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>( + 'QRCodeDetector_DetectAndDecode'); + late final _QRCodeDetector_DetectAndDecode = + _QRCodeDetector_DetectAndDecodePtr.asFunction< + ffi.Pointer Function( + QRCodeDetector, + Mat, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); ffi.Pointer QRCodeDetector_DetectAndDecodeMulti( QRCodeDetector self, @@ -14195,11 +15751,22 @@ class CvNative { late final _QRCodeDetector_DetectAndDecodeMultiPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('QRCodeDetector_DetectAndDecodeMulti'); - late final _QRCodeDetector_DetectAndDecodeMulti = _QRCodeDetector_DetectAndDecodeMultiPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + QRCodeDetector, + Mat, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('QRCodeDetector_DetectAndDecodeMulti'); + late final _QRCodeDetector_DetectAndDecodeMulti = + _QRCodeDetector_DetectAndDecodeMultiPtr.asFunction< + ffi.Pointer Function( + QRCodeDetector, + Mat, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); ffi.Pointer QRCodeDetector_DetectAndDecodeMulti_Async( QRCodeDetector self, @@ -14213,11 +15780,13 @@ class CvNative { ); } - late final _QRCodeDetector_DetectAndDecodeMulti_AsyncPtr = - _lookup Function(QRCodeDetector, Mat, CvCallback_4)>>( - 'QRCodeDetector_DetectAndDecodeMulti_Async'); - late final _QRCodeDetector_DetectAndDecodeMulti_Async = _QRCodeDetector_DetectAndDecodeMulti_AsyncPtr - .asFunction Function(QRCodeDetector, Mat, CvCallback_4)>(); + late final _QRCodeDetector_DetectAndDecodeMulti_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, + CvCallback_4)>>('QRCodeDetector_DetectAndDecodeMulti_Async'); + late final _QRCodeDetector_DetectAndDecodeMulti_Async = + _QRCodeDetector_DetectAndDecodeMulti_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_4)>(); ffi.Pointer QRCodeDetector_DetectAndDecode_Async( QRCodeDetector self, @@ -14231,11 +15800,13 @@ class CvNative { ); } - late final _QRCodeDetector_DetectAndDecode_AsyncPtr = - _lookup Function(QRCodeDetector, Mat, CvCallback_3)>>( - 'QRCodeDetector_DetectAndDecode_Async'); - late final _QRCodeDetector_DetectAndDecode_Async = _QRCodeDetector_DetectAndDecode_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_3)>(); + late final _QRCodeDetector_DetectAndDecode_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, + CvCallback_3)>>('QRCodeDetector_DetectAndDecode_Async'); + late final _QRCodeDetector_DetectAndDecode_Async = + _QRCodeDetector_DetectAndDecode_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_3)>(); ffi.Pointer QRCodeDetector_DetectMulti( QRCodeDetector self, @@ -14253,10 +15824,15 @@ class CvNative { late final _QRCodeDetector_DetectMultiPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, + ffi.Pointer Function( + QRCodeDetector, + Mat, + ffi.Pointer, ffi.Pointer)>>('QRCodeDetector_DetectMulti'); - late final _QRCodeDetector_DetectMulti = _QRCodeDetector_DetectMultiPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer)>(); + late final _QRCodeDetector_DetectMulti = + _QRCodeDetector_DetectMultiPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer QRCodeDetector_DetectMulti_Async( QRCodeDetector self, @@ -14270,11 +15846,13 @@ class CvNative { ); } - late final _QRCodeDetector_DetectMulti_AsyncPtr = - _lookup Function(QRCodeDetector, Mat, CvCallback_2)>>( - 'QRCodeDetector_DetectMulti_Async'); - late final _QRCodeDetector_DetectMulti_Async = _QRCodeDetector_DetectMulti_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_2)>(); + late final _QRCodeDetector_DetectMulti_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, + CvCallback_2)>>('QRCodeDetector_DetectMulti_Async'); + late final _QRCodeDetector_DetectMulti_Async = + _QRCodeDetector_DetectMulti_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_2)>(); ffi.Pointer QRCodeDetector_Detect_Async( QRCodeDetector self, @@ -14288,11 +15866,13 @@ class CvNative { ); } - late final _QRCodeDetector_Detect_AsyncPtr = - _lookup Function(QRCodeDetector, Mat, CvCallback_2)>>( - 'QRCodeDetector_Detect_Async'); - late final _QRCodeDetector_Detect_Async = _QRCodeDetector_Detect_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_2)>(); + late final _QRCodeDetector_Detect_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, + CvCallback_2)>>('QRCodeDetector_Detect_Async'); + late final _QRCodeDetector_Detect_Async = + _QRCodeDetector_Detect_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_2)>(); ffi.Pointer QRCodeDetector_New( ffi.Pointer rval, @@ -14302,11 +15882,12 @@ class CvNative { ); } - late final _QRCodeDetector_NewPtr = - _lookup Function(ffi.Pointer)>>( - 'QRCodeDetector_New'); - late final _QRCodeDetector_New = - _QRCodeDetector_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _QRCodeDetector_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('QRCodeDetector_New'); + late final _QRCodeDetector_New = _QRCodeDetector_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer QRCodeDetector_New_Async( CvCallback_1 callback, @@ -14317,9 +15898,10 @@ class CvNative { } late final _QRCodeDetector_New_AsyncPtr = - _lookup Function(CvCallback_1)>>('QRCodeDetector_New_Async'); - late final _QRCodeDetector_New_Async = - _QRCodeDetector_New_AsyncPtr.asFunction Function(CvCallback_1)>(); + _lookup Function(CvCallback_1)>>( + 'QRCodeDetector_New_Async'); + late final _QRCodeDetector_New_Async = _QRCodeDetector_New_AsyncPtr + .asFunction Function(CvCallback_1)>(); ffi.Pointer QRCodeDetector_decodeCurved( QRCodeDetector self, @@ -14338,12 +15920,14 @@ class CvNative { } late final _QRCodeDetector_decodeCurvedPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, VecPoint, ffi.Pointer, - ffi.Pointer>)>>('QRCodeDetector_decodeCurved'); - late final _QRCodeDetector_decodeCurved = _QRCodeDetector_decodeCurvedPtr.asFunction< - ffi.Pointer Function( - QRCodeDetector, Mat, VecPoint, ffi.Pointer, ffi.Pointer>)>(); + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, VecPoint, + ffi.Pointer, ffi.Pointer>)>>( + 'QRCodeDetector_decodeCurved'); + late final _QRCodeDetector_decodeCurved = + _QRCodeDetector_decodeCurvedPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, VecPoint, + ffi.Pointer, ffi.Pointer>)>(); ffi.Pointer QRCodeDetector_decodeCurved_Async( QRCodeDetector self, @@ -14360,10 +15944,13 @@ class CvNative { } late final _QRCodeDetector_decodeCurved_AsyncPtr = _lookup< - ffi.NativeFunction Function(QRCodeDetector, Mat, VecPoint, CvCallback_2)>>( - 'QRCodeDetector_decodeCurved_Async'); - late final _QRCodeDetector_decodeCurved_Async = _QRCodeDetector_decodeCurved_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, VecPoint, CvCallback_2)>(); + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, VecPoint, + CvCallback_2)>>('QRCodeDetector_decodeCurved_Async'); + late final _QRCodeDetector_decodeCurved_Async = + _QRCodeDetector_decodeCurved_AsyncPtr.asFunction< + ffi.Pointer Function( + QRCodeDetector, Mat, VecPoint, CvCallback_2)>(); ffi.Pointer QRCodeDetector_detectAndDecodeCurved( QRCodeDetector self, @@ -14382,12 +15969,22 @@ class CvNative { } late final _QRCodeDetector_detectAndDecodeCurvedPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('QRCodeDetector_detectAndDecodeCurved'); - late final _QRCodeDetector_detectAndDecodeCurved = _QRCodeDetector_detectAndDecodeCurvedPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, Mat, ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>(); + ffi.NativeFunction< + ffi.Pointer Function( + QRCodeDetector, + Mat, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>( + 'QRCodeDetector_detectAndDecodeCurved'); + late final _QRCodeDetector_detectAndDecodeCurved = + _QRCodeDetector_detectAndDecodeCurvedPtr.asFunction< + ffi.Pointer Function( + QRCodeDetector, + Mat, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); ffi.Pointer QRCodeDetector_detectAndDecodeCurved_Async( QRCodeDetector self, @@ -14401,11 +15998,13 @@ class CvNative { ); } - late final _QRCodeDetector_detectAndDecodeCurved_AsyncPtr = - _lookup Function(QRCodeDetector, Mat, CvCallback_3)>>( - 'QRCodeDetector_detectAndDecodeCurved_Async'); - late final _QRCodeDetector_detectAndDecodeCurved_Async = _QRCodeDetector_detectAndDecodeCurved_AsyncPtr - .asFunction Function(QRCodeDetector, Mat, CvCallback_3)>(); + late final _QRCodeDetector_detectAndDecodeCurved_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, Mat, + CvCallback_3)>>('QRCodeDetector_detectAndDecodeCurved_Async'); + late final _QRCodeDetector_detectAndDecodeCurved_Async = + _QRCodeDetector_detectAndDecodeCurved_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, Mat, CvCallback_3)>(); ffi.Pointer QRCodeDetector_setEpsX( QRCodeDetector self, @@ -14417,11 +16016,12 @@ class CvNative { ); } - late final _QRCodeDetector_setEpsXPtr = - _lookup Function(QRCodeDetector, ffi.Double)>>( - 'QRCodeDetector_setEpsX'); - late final _QRCodeDetector_setEpsX = - _QRCodeDetector_setEpsXPtr.asFunction Function(QRCodeDetector, double)>(); + late final _QRCodeDetector_setEpsXPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + QRCodeDetector, ffi.Double)>>('QRCodeDetector_setEpsX'); + late final _QRCodeDetector_setEpsX = _QRCodeDetector_setEpsXPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, double)>(); ffi.Pointer QRCodeDetector_setEpsX_Async( QRCodeDetector self, @@ -14435,11 +16035,14 @@ class CvNative { ); } - late final _QRCodeDetector_setEpsX_AsyncPtr = - _lookup Function(QRCodeDetector, ffi.Double, CvCallback_0)>>( - 'QRCodeDetector_setEpsX_Async'); - late final _QRCodeDetector_setEpsX_Async = _QRCodeDetector_setEpsX_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, double, CvCallback_0)>(); + late final _QRCodeDetector_setEpsX_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, ffi.Double, + CvCallback_0)>>('QRCodeDetector_setEpsX_Async'); + late final _QRCodeDetector_setEpsX_Async = + _QRCodeDetector_setEpsX_AsyncPtr.asFunction< + ffi.Pointer Function( + QRCodeDetector, double, CvCallback_0)>(); ffi.Pointer QRCodeDetector_setEpsY( QRCodeDetector self, @@ -14451,11 +16054,12 @@ class CvNative { ); } - late final _QRCodeDetector_setEpsYPtr = - _lookup Function(QRCodeDetector, ffi.Double)>>( - 'QRCodeDetector_setEpsY'); - late final _QRCodeDetector_setEpsY = - _QRCodeDetector_setEpsYPtr.asFunction Function(QRCodeDetector, double)>(); + late final _QRCodeDetector_setEpsYPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + QRCodeDetector, ffi.Double)>>('QRCodeDetector_setEpsY'); + late final _QRCodeDetector_setEpsY = _QRCodeDetector_setEpsYPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, double)>(); ffi.Pointer QRCodeDetector_setEpsY_Async( QRCodeDetector self, @@ -14469,11 +16073,14 @@ class CvNative { ); } - late final _QRCodeDetector_setEpsY_AsyncPtr = - _lookup Function(QRCodeDetector, ffi.Double, CvCallback_0)>>( - 'QRCodeDetector_setEpsY_Async'); - late final _QRCodeDetector_setEpsY_Async = _QRCodeDetector_setEpsY_AsyncPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, double, CvCallback_0)>(); + late final _QRCodeDetector_setEpsY_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, ffi.Double, + CvCallback_0)>>('QRCodeDetector_setEpsY_Async'); + late final _QRCodeDetector_setEpsY_Async = + _QRCodeDetector_setEpsY_AsyncPtr.asFunction< + ffi.Pointer Function( + QRCodeDetector, double, CvCallback_0)>(); ffi.Pointer QRCodeDetector_setUseAlignmentMarkers( QRCodeDetector self, @@ -14485,11 +16092,13 @@ class CvNative { ); } - late final _QRCodeDetector_setUseAlignmentMarkersPtr = - _lookup Function(QRCodeDetector, ffi.Bool)>>( - 'QRCodeDetector_setUseAlignmentMarkers'); - late final _QRCodeDetector_setUseAlignmentMarkers = _QRCodeDetector_setUseAlignmentMarkersPtr.asFunction< - ffi.Pointer Function(QRCodeDetector, bool)>(); + late final _QRCodeDetector_setUseAlignmentMarkersPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, + ffi.Bool)>>('QRCodeDetector_setUseAlignmentMarkers'); + late final _QRCodeDetector_setUseAlignmentMarkers = + _QRCodeDetector_setUseAlignmentMarkersPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, bool)>(); ffi.Pointer QRCodeDetector_setUseAlignmentMarkers_Async( QRCodeDetector self, @@ -14503,11 +16112,13 @@ class CvNative { ); } - late final _QRCodeDetector_setUseAlignmentMarkers_AsyncPtr = - _lookup Function(QRCodeDetector, ffi.Bool, CvCallback_0)>>( - 'QRCodeDetector_setUseAlignmentMarkers_Async'); - late final _QRCodeDetector_setUseAlignmentMarkers_Async = _QRCodeDetector_setUseAlignmentMarkers_AsyncPtr - .asFunction Function(QRCodeDetector, bool, CvCallback_0)>(); + late final _QRCodeDetector_setUseAlignmentMarkers_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(QRCodeDetector, ffi.Bool, + CvCallback_0)>>('QRCodeDetector_setUseAlignmentMarkers_Async'); + late final _QRCodeDetector_setUseAlignmentMarkers_Async = + _QRCodeDetector_setUseAlignmentMarkers_AsyncPtr.asFunction< + ffi.Pointer Function(QRCodeDetector, bool, CvCallback_0)>(); ffi.Pointer RNG_Fill( RNG rng, @@ -14529,9 +16140,10 @@ class CvNative { late final _RNG_FillPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(RNG, Mat, ffi.Int, ffi.Double, ffi.Double, ffi.Bool)>>('RNG_Fill'); - late final _RNG_Fill = - _RNG_FillPtr.asFunction Function(RNG, Mat, int, double, double, bool)>(); + ffi.Pointer Function(RNG, Mat, ffi.Int, ffi.Double, + ffi.Double, ffi.Bool)>>('RNG_Fill'); + late final _RNG_Fill = _RNG_FillPtr.asFunction< + ffi.Pointer Function(RNG, Mat, int, double, double, bool)>(); ffi.Pointer RNG_Gaussian( RNG rng, @@ -14545,11 +16157,12 @@ class CvNative { ); } - late final _RNG_GaussianPtr = - _lookup Function(RNG, ffi.Double, ffi.Pointer)>>( - 'RNG_Gaussian'); - late final _RNG_Gaussian = - _RNG_GaussianPtr.asFunction Function(RNG, double, ffi.Pointer)>(); + late final _RNG_GaussianPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + RNG, ffi.Double, ffi.Pointer)>>('RNG_Gaussian'); + late final _RNG_Gaussian = _RNG_GaussianPtr.asFunction< + ffi.Pointer Function(RNG, double, ffi.Pointer)>(); ffi.Pointer RNG_Next( RNG rng, @@ -14561,10 +16174,12 @@ class CvNative { ); } - late final _RNG_NextPtr = - _lookup Function(RNG, ffi.Pointer)>>('RNG_Next'); - late final _RNG_Next = - _RNG_NextPtr.asFunction Function(RNG, ffi.Pointer)>(); + late final _RNG_NextPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + RNG, ffi.Pointer)>>('RNG_Next'); + late final _RNG_Next = _RNG_NextPtr.asFunction< + ffi.Pointer Function(RNG, ffi.Pointer)>(); ffi.Pointer RNG_Uniform( RNG rng, @@ -14581,10 +16196,11 @@ class CvNative { } late final _RNG_UniformPtr = _lookup< - ffi.NativeFunction Function(RNG, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'RNG_Uniform'); - late final _RNG_Uniform = - _RNG_UniformPtr.asFunction Function(RNG, int, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + RNG, ffi.Int, ffi.Int, ffi.Pointer)>>('RNG_Uniform'); + late final _RNG_Uniform = _RNG_UniformPtr.asFunction< + ffi.Pointer Function(RNG, int, int, ffi.Pointer)>(); ffi.Pointer RNG_UniformDouble( RNG rng, @@ -14602,10 +16218,11 @@ class CvNative { late final _RNG_UniformDoublePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - RNG, ffi.Double, ffi.Double, ffi.Pointer)>>('RNG_UniformDouble'); + ffi.Pointer Function(RNG, ffi.Double, ffi.Double, + ffi.Pointer)>>('RNG_UniformDouble'); late final _RNG_UniformDouble = _RNG_UniformDoublePtr.asFunction< - ffi.Pointer Function(RNG, double, double, ffi.Pointer)>(); + ffi.Pointer Function( + RNG, double, double, ffi.Pointer)>(); ffi.Pointer RandN( Mat mat, @@ -14619,9 +16236,11 @@ class CvNative { ); } - late final _RandNPtr = - _lookup Function(Mat, Scalar, Scalar)>>('RandN'); - late final _RandN = _RandNPtr.asFunction Function(Mat, Scalar, Scalar)>(); + late final _RandNPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Scalar, Scalar)>>('RandN'); + late final _RandN = _RandNPtr.asFunction< + ffi.Pointer Function(Mat, Scalar, Scalar)>(); ffi.Pointer RandShuffle( Mat mat, @@ -14632,8 +16251,10 @@ class CvNative { } late final _RandShufflePtr = - _lookup Function(Mat)>>('RandShuffle'); - late final _RandShuffle = _RandShufflePtr.asFunction Function(Mat)>(); + _lookup Function(Mat)>>( + 'RandShuffle'); + late final _RandShuffle = + _RandShufflePtr.asFunction Function(Mat)>(); ffi.Pointer RandShuffleWithParams( Mat mat, @@ -14647,11 +16268,12 @@ class CvNative { ); } - late final _RandShuffleWithParamsPtr = - _lookup Function(Mat, ffi.Double, RNG)>>( - 'RandShuffleWithParams'); - late final _RandShuffleWithParams = - _RandShuffleWithParamsPtr.asFunction Function(Mat, double, RNG)>(); + late final _RandShuffleWithParamsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Double, RNG)>>('RandShuffleWithParams'); + late final _RandShuffleWithParams = _RandShuffleWithParamsPtr.asFunction< + ffi.Pointer Function(Mat, double, RNG)>(); ffi.Pointer RandU( Mat mat, @@ -14665,9 +16287,11 @@ class CvNative { ); } - late final _RandUPtr = - _lookup Function(Mat, Scalar, Scalar)>>('RandU'); - late final _RandU = _RandUPtr.asFunction Function(Mat, Scalar, Scalar)>(); + late final _RandUPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Scalar, Scalar)>>('RandU'); + late final _RandU = _RandUPtr.asFunction< + ffi.Pointer Function(Mat, Scalar, Scalar)>(); ffi.Pointer Rectangle( Mat img, @@ -14683,9 +16307,12 @@ class CvNative { ); } - late final _RectanglePtr = - _lookup Function(Mat, Rect, Scalar, ffi.Int)>>('Rectangle'); - late final _Rectangle = _RectanglePtr.asFunction Function(Mat, Rect, Scalar, int)>(); + late final _RectanglePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Rect, Scalar, ffi.Int)>>('Rectangle'); + late final _Rectangle = _RectanglePtr.asFunction< + ffi.Pointer Function(Mat, Rect, Scalar, int)>(); ffi.Pointer RectangleWithParams( Mat img, @@ -14706,10 +16333,11 @@ class CvNative { } late final _RectangleWithParamsPtr = _lookup< - ffi.NativeFunction Function(Mat, Rect, Scalar, ffi.Int, ffi.Int, ffi.Int)>>( - 'RectangleWithParams'); - late final _RectangleWithParams = - _RectangleWithParamsPtr.asFunction Function(Mat, Rect, Scalar, int, int, int)>(); + ffi.NativeFunction< + ffi.Pointer Function(Mat, Rect, Scalar, ffi.Int, ffi.Int, + ffi.Int)>>('RectangleWithParams'); + late final _RectangleWithParams = _RectangleWithParamsPtr.asFunction< + ffi.Pointer Function(Mat, Rect, Scalar, int, int, int)>(); ffi.Pointer Remap( Mat src, @@ -14732,10 +16360,11 @@ class CvNative { } late final _RemapPtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, Mat, Mat, ffi.Int, ffi.Int, Scalar)>>('Remap'); - late final _Remap = - _RemapPtr.asFunction Function(Mat, Mat, Mat, Mat, int, int, Scalar)>(); + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, ffi.Int, ffi.Int, Scalar)>>('Remap'); + late final _Remap = _RemapPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, int, int, Scalar)>(); ffi.Pointer Resize( Mat src, @@ -14757,9 +16386,10 @@ class CvNative { late final _ResizePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Size, ffi.Double, ffi.Double, ffi.Int)>>('Resize'); - late final _Resize = - _ResizePtr.asFunction Function(Mat, Mat, Size, double, double, int)>(); + ffi.Pointer Function( + Mat, Mat, Size, ffi.Double, ffi.Double, ffi.Int)>>('Resize'); + late final _Resize = _ResizePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Size, double, double, int)>(); void Rng_Close( RNGPtr rng, @@ -14769,7 +16399,8 @@ class CvNative { ); } - late final _Rng_ClosePtr = _lookup>('Rng_Close'); + late final _Rng_ClosePtr = + _lookup>('Rng_Close'); late final _Rng_Close = _Rng_ClosePtr.asFunction(); ffi.Pointer Rng_New( @@ -14780,9 +16411,11 @@ class CvNative { ); } - late final _Rng_NewPtr = - _lookup Function(ffi.Pointer)>>('Rng_New'); - late final _Rng_New = _Rng_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _Rng_NewPtr = _lookup< + ffi.NativeFunction Function(ffi.Pointer)>>( + 'Rng_New'); + late final _Rng_New = _Rng_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer Rng_NewWithState( int state, @@ -14794,11 +16427,12 @@ class CvNative { ); } - late final _Rng_NewWithStatePtr = - _lookup Function(ffi.Uint64, ffi.Pointer)>>( - 'Rng_NewWithState'); - late final _Rng_NewWithState = - _Rng_NewWithStatePtr.asFunction Function(int, ffi.Pointer)>(); + late final _Rng_NewWithStatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Uint64, ffi.Pointer)>>('Rng_NewWithState'); + late final _Rng_NewWithState = _Rng_NewWithStatePtr.asFunction< + ffi.Pointer Function(int, ffi.Pointer)>(); ffi.Pointer Rotate( Mat src, @@ -14812,9 +16446,11 @@ class CvNative { ); } - late final _RotatePtr = - _lookup Function(Mat, Mat, ffi.Int)>>('Rotate'); - late final _Rotate = _RotatePtr.asFunction Function(Mat, Mat, int)>(); + late final _RotatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int)>>('Rotate'); + late final _Rotate = + _RotatePtr.asFunction Function(Mat, Mat, int)>(); ffi.Pointer RotatedRect_BoundingRect( RotatedRect rect, @@ -14826,11 +16462,13 @@ class CvNative { ); } - late final _RotatedRect_BoundingRectPtr = - _lookup Function(RotatedRect, ffi.Pointer)>>( - 'RotatedRect_BoundingRect'); - late final _RotatedRect_BoundingRect = _RotatedRect_BoundingRectPtr.asFunction< - ffi.Pointer Function(RotatedRect, ffi.Pointer)>(); + late final _RotatedRect_BoundingRectPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + RotatedRect, ffi.Pointer)>>('RotatedRect_BoundingRect'); + late final _RotatedRect_BoundingRect = + _RotatedRect_BoundingRectPtr.asFunction< + ffi.Pointer Function(RotatedRect, ffi.Pointer)>(); ffi.Pointer RotatedRect_BoundingRect2f( RotatedRect rect, @@ -14842,11 +16480,13 @@ class CvNative { ); } - late final _RotatedRect_BoundingRect2fPtr = - _lookup Function(RotatedRect, ffi.Pointer)>>( - 'RotatedRect_BoundingRect2f'); - late final _RotatedRect_BoundingRect2f = _RotatedRect_BoundingRect2fPtr.asFunction< - ffi.Pointer Function(RotatedRect, ffi.Pointer)>(); + late final _RotatedRect_BoundingRect2fPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + RotatedRect, ffi.Pointer)>>('RotatedRect_BoundingRect2f'); + late final _RotatedRect_BoundingRect2f = + _RotatedRect_BoundingRect2fPtr.asFunction< + ffi.Pointer Function(RotatedRect, ffi.Pointer)>(); ffi.Pointer RotatedRect_Points( RotatedRect rect, @@ -14858,9 +16498,10 @@ class CvNative { ); } - late final _RotatedRect_PointsPtr = - _lookup Function(RotatedRect, ffi.Pointer)>>( - 'RotatedRect_Points'); + late final _RotatedRect_PointsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + RotatedRect, ffi.Pointer)>>('RotatedRect_Points'); late final _RotatedRect_Points = _RotatedRect_PointsPtr.asFunction< ffi.Pointer Function(RotatedRect, ffi.Pointer)>(); @@ -14872,7 +16513,8 @@ class CvNative { ); } - late final _SIFT_ClosePtr = _lookup>('SIFT_Close'); + late final _SIFT_ClosePtr = + _lookup>('SIFT_Close'); late final _SIFT_Close = _SIFT_ClosePtr.asFunction(); ffi.Pointer SIFT_Create( @@ -14883,9 +16525,11 @@ class CvNative { ); } - late final _SIFT_CreatePtr = - _lookup Function(ffi.Pointer)>>('SIFT_Create'); - late final _SIFT_Create = _SIFT_CreatePtr.asFunction Function(ffi.Pointer)>(); + late final _SIFT_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('SIFT_Create'); + late final _SIFT_Create = _SIFT_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer SIFT_Detect( SIFT f, @@ -14899,11 +16543,12 @@ class CvNative { ); } - late final _SIFT_DetectPtr = - _lookup Function(SIFT, Mat, ffi.Pointer)>>( - 'SIFT_Detect'); - late final _SIFT_Detect = - _SIFT_DetectPtr.asFunction Function(SIFT, Mat, ffi.Pointer)>(); + late final _SIFT_DetectPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + SIFT, Mat, ffi.Pointer)>>('SIFT_Detect'); + late final _SIFT_Detect = _SIFT_DetectPtr.asFunction< + ffi.Pointer Function(SIFT, Mat, ffi.Pointer)>(); ffi.Pointer SIFT_DetectAndCompute( SIFT f, @@ -14922,10 +16567,12 @@ class CvNative { } late final _SIFT_DetectAndComputePtr = _lookup< - ffi.NativeFunction Function(SIFT, Mat, Mat, Mat, ffi.Pointer)>>( - 'SIFT_DetectAndCompute'); + ffi.NativeFunction< + ffi.Pointer Function(SIFT, Mat, Mat, Mat, + ffi.Pointer)>>('SIFT_DetectAndCompute'); late final _SIFT_DetectAndCompute = _SIFT_DetectAndComputePtr.asFunction< - ffi.Pointer Function(SIFT, Mat, Mat, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + SIFT, Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer SVD_Compute( Mat src, @@ -14945,10 +16592,11 @@ class CvNative { late final _SVD_ComputePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int)>>('SVD_Compute'); + ffi.Pointer Function(Mat, ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Int)>>('SVD_Compute'); late final _SVD_Compute = _SVD_ComputePtr.asFunction< - ffi.Pointer Function(Mat, ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + Mat, ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); ffi.Pointer SVD_Compute_Async( Mat src, @@ -14962,11 +16610,12 @@ class CvNative { ); } - late final _SVD_Compute_AsyncPtr = - _lookup Function(Mat, ffi.Int, CvCallback_3)>>( - 'SVD_Compute_Async'); - late final _SVD_Compute_Async = - _SVD_Compute_AsyncPtr.asFunction Function(Mat, int, CvCallback_3)>(); + late final _SVD_Compute_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Int, CvCallback_3)>>('SVD_Compute_Async'); + late final _SVD_Compute_Async = _SVD_Compute_AsyncPtr.asFunction< + ffi.Pointer Function(Mat, int, CvCallback_3)>(); ffi.Pointer SVD_backSubst( Mat w, @@ -14984,11 +16633,12 @@ class CvNative { ); } - late final _SVD_backSubstPtr = - _lookup Function(Mat, Mat, Mat, Mat, ffi.Pointer)>>( - 'SVD_backSubst'); - late final _SVD_backSubst = - _SVD_backSubstPtr.asFunction Function(Mat, Mat, Mat, Mat, ffi.Pointer)>(); + late final _SVD_backSubstPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, ffi.Pointer)>>('SVD_backSubst'); + late final _SVD_backSubst = _SVD_backSubstPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, ffi.Pointer)>(); ffi.Pointer SVD_backSubst_Async( Mat w, @@ -15006,11 +16656,12 @@ class CvNative { ); } - late final _SVD_backSubst_AsyncPtr = - _lookup Function(Mat, Mat, Mat, Mat, CvCallback_1)>>( - 'SVD_backSubst_Async'); - late final _SVD_backSubst_Async = - _SVD_backSubst_AsyncPtr.asFunction Function(Mat, Mat, Mat, Mat, CvCallback_1)>(); + late final _SVD_backSubst_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, CvCallback_1)>>('SVD_backSubst_Async'); + late final _SVD_backSubst_Async = _SVD_backSubst_AsyncPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, CvCallback_1)>(); ffi.Pointer Scharr( Mat src, @@ -15036,10 +16687,11 @@ class CvNative { late final _ScharrPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Double, ffi.Double, ffi.Int)>>('Scharr'); - late final _Scharr = - _ScharrPtr.asFunction Function(Mat, Mat, int, int, int, double, double, int)>(); + ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Double, ffi.Double, ffi.Int)>>('Scharr'); + late final _Scharr = _ScharrPtr.asFunction< + ffi.Pointer Function( + Mat, Mat, int, int, int, double, double, int)>(); ffi.Pointer SeamlessClone( Mat src, @@ -15059,11 +16711,12 @@ class CvNative { ); } - late final _SeamlessClonePtr = - _lookup Function(Mat, Mat, Mat, Point, Mat, ffi.Int)>>( - 'SeamlessClone'); - late final _SeamlessClone = - _SeamlessClonePtr.asFunction Function(Mat, Mat, Mat, Point, Mat, int)>(); + late final _SeamlessClonePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Point, Mat, ffi.Int)>>('SeamlessClone'); + late final _SeamlessClone = _SeamlessClonePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Point, Mat, int)>(); ffi.Pointer SepFilter2D( Mat src, @@ -15089,10 +16742,11 @@ class CvNative { late final _SepFilter2DPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, Mat, Mat, Point, ffi.Double, ffi.Int)>>('SepFilter2D'); + ffi.Pointer Function(Mat, Mat, ffi.Int, Mat, Mat, Point, + ffi.Double, ffi.Int)>>('SepFilter2D'); late final _SepFilter2D = _SepFilter2DPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, Mat, Mat, Point, double, int)>(); + ffi.Pointer Function( + Mat, Mat, int, Mat, Mat, Point, double, int)>(); ffi.Pointer SetNumThreads( int n, @@ -15103,8 +16757,10 @@ class CvNative { } late final _SetNumThreadsPtr = - _lookup Function(ffi.Int)>>('SetNumThreads'); - late final _SetNumThreads = _SetNumThreadsPtr.asFunction Function(int)>(); + _lookup Function(ffi.Int)>>( + 'SetNumThreads'); + late final _SetNumThreads = + _SetNumThreadsPtr.asFunction Function(int)>(); ffi.Pointer SetRNGSeed( int seed, @@ -15115,8 +16771,10 @@ class CvNative { } late final _SetRNGSeedPtr = - _lookup Function(ffi.Int)>>('SetRNGSeed'); - late final _SetRNGSeed = _SetRNGSeedPtr.asFunction Function(int)>(); + _lookup Function(ffi.Int)>>( + 'SetRNGSeed'); + late final _SetRNGSeed = + _SetRNGSeedPtr.asFunction Function(int)>(); ffi.Pointer SimpleBlobDetectorParams_Create( ffi.Pointer rval, @@ -15126,11 +16784,15 @@ class CvNative { ); } - late final _SimpleBlobDetectorParams_CreatePtr = - _lookup Function(ffi.Pointer)>>( - 'SimpleBlobDetectorParams_Create'); - late final _SimpleBlobDetectorParams_Create = _SimpleBlobDetectorParams_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _SimpleBlobDetectorParams_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>( + 'SimpleBlobDetectorParams_Create'); + late final _SimpleBlobDetectorParams_Create = + _SimpleBlobDetectorParams_CreatePtr.asFunction< + ffi.Pointer Function( + ffi.Pointer)>(); void SimpleBlobDetector_Close( SimpleBlobDetectorPtr b, @@ -15141,9 +16803,10 @@ class CvNative { } late final _SimpleBlobDetector_ClosePtr = - _lookup>('SimpleBlobDetector_Close'); - late final _SimpleBlobDetector_Close = - _SimpleBlobDetector_ClosePtr.asFunction(); + _lookup>( + 'SimpleBlobDetector_Close'); + late final _SimpleBlobDetector_Close = _SimpleBlobDetector_ClosePtr + .asFunction(); ffi.Pointer SimpleBlobDetector_Create( ffi.Pointer rval, @@ -15153,11 +16816,13 @@ class CvNative { ); } - late final _SimpleBlobDetector_CreatePtr = - _lookup Function(ffi.Pointer)>>( - 'SimpleBlobDetector_Create'); - late final _SimpleBlobDetector_Create = _SimpleBlobDetector_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + late final _SimpleBlobDetector_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('SimpleBlobDetector_Create'); + late final _SimpleBlobDetector_Create = + _SimpleBlobDetector_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer SimpleBlobDetector_Create_WithParams( SimpleBlobDetectorParams params, @@ -15170,11 +16835,14 @@ class CvNative { } late final _SimpleBlobDetector_Create_WithParamsPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(SimpleBlobDetectorParams, - ffi.Pointer)>>('SimpleBlobDetector_Create_WithParams'); - late final _SimpleBlobDetector_Create_WithParams = _SimpleBlobDetector_Create_WithParamsPtr.asFunction< - ffi.Pointer Function(SimpleBlobDetectorParams, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + SimpleBlobDetectorParams, ffi.Pointer)>>( + 'SimpleBlobDetector_Create_WithParams'); + late final _SimpleBlobDetector_Create_WithParams = + _SimpleBlobDetector_Create_WithParamsPtr.asFunction< + ffi.Pointer Function( + SimpleBlobDetectorParams, ffi.Pointer)>(); ffi.Pointer SimpleBlobDetector_Detect( SimpleBlobDetector b, @@ -15189,11 +16857,13 @@ class CvNative { } late final _SimpleBlobDetector_DetectPtr = _lookup< - ffi - .NativeFunction Function(SimpleBlobDetector, Mat, ffi.Pointer)>>( - 'SimpleBlobDetector_Detect'); - late final _SimpleBlobDetector_Detect = _SimpleBlobDetector_DetectPtr.asFunction< - ffi.Pointer Function(SimpleBlobDetector, Mat, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(SimpleBlobDetector, Mat, + ffi.Pointer)>>('SimpleBlobDetector_Detect'); + late final _SimpleBlobDetector_Detect = + _SimpleBlobDetector_DetectPtr.asFunction< + ffi.Pointer Function( + SimpleBlobDetector, Mat, ffi.Pointer)>(); ffi.Pointer Sobel( Mat src, @@ -15221,10 +16891,11 @@ class CvNative { late final _SobelPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Double, ffi.Double, ffi.Int)>>('Sobel'); + ffi.Pointer Function(Mat, Mat, ffi.Int, ffi.Int, ffi.Int, + ffi.Int, ffi.Double, ffi.Double, ffi.Int)>>('Sobel'); late final _Sobel = _SobelPtr.asFunction< - ffi.Pointer Function(Mat, Mat, int, int, int, int, double, double, int)>(); + ffi.Pointer Function( + Mat, Mat, int, int, int, int, double, double, int)>(); ffi.Pointer SpatialGradient( Mat src, @@ -15242,11 +16913,12 @@ class CvNative { ); } - late final _SpatialGradientPtr = - _lookup Function(Mat, Mat, Mat, ffi.Int, ffi.Int)>>( - 'SpatialGradient'); - late final _SpatialGradient = - _SpatialGradientPtr.asFunction Function(Mat, Mat, Mat, int, int)>(); + late final _SpatialGradientPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, ffi.Int, ffi.Int)>>('SpatialGradient'); + late final _SpatialGradient = _SpatialGradientPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, int, int)>(); ffi.Pointer SqBoxFilter( Mat src, @@ -15262,9 +16934,12 @@ class CvNative { ); } - late final _SqBoxFilterPtr = - _lookup Function(Mat, Mat, ffi.Int, Size)>>('SqBoxFilter'); - late final _SqBoxFilter = _SqBoxFilterPtr.asFunction Function(Mat, Mat, int, Size)>(); + late final _SqBoxFilterPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Int, Size)>>('SqBoxFilter'); + late final _SqBoxFilter = _SqBoxFilterPtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, Size)>(); void Stitcher_Close( PtrStitcherPtr stitcher, @@ -15275,8 +16950,10 @@ class CvNative { } late final _Stitcher_ClosePtr = - _lookup>('Stitcher_Close'); - late final _Stitcher_Close = _Stitcher_ClosePtr.asFunction(); + _lookup>( + 'Stitcher_Close'); + late final _Stitcher_Close = + _Stitcher_ClosePtr.asFunction(); ffi.Pointer Stitcher_Component( Stitcher self, @@ -15288,11 +16965,12 @@ class CvNative { ); } - late final _Stitcher_ComponentPtr = - _lookup Function(Stitcher, ffi.Pointer)>>( - 'Stitcher_Component'); - late final _Stitcher_Component = - _Stitcher_ComponentPtr.asFunction Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_ComponentPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Stitcher, ffi.Pointer)>>('Stitcher_Component'); + late final _Stitcher_Component = _Stitcher_ComponentPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_ComposePanorama( Stitcher self, @@ -15306,11 +16984,14 @@ class CvNative { ); } - late final _Stitcher_ComposePanoramaPtr = - _lookup Function(Stitcher, Mat, ffi.Pointer)>>( - 'Stitcher_ComposePanorama'); - late final _Stitcher_ComposePanorama = _Stitcher_ComposePanoramaPtr.asFunction< - ffi.Pointer Function(Stitcher, Mat, ffi.Pointer)>(); + late final _Stitcher_ComposePanoramaPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Stitcher, Mat, + ffi.Pointer)>>('Stitcher_ComposePanorama'); + late final _Stitcher_ComposePanorama = + _Stitcher_ComposePanoramaPtr.asFunction< + ffi.Pointer Function( + Stitcher, Mat, ffi.Pointer)>(); ffi.Pointer Stitcher_ComposePanorama_1( Stitcher self, @@ -15327,10 +17008,13 @@ class CvNative { } late final _Stitcher_ComposePanorama_1Ptr = _lookup< - ffi.NativeFunction Function(Stitcher, VecMat, Mat, ffi.Pointer)>>( - 'Stitcher_ComposePanorama_1'); - late final _Stitcher_ComposePanorama_1 = _Stitcher_ComposePanorama_1Ptr.asFunction< - ffi.Pointer Function(Stitcher, VecMat, Mat, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(Stitcher, VecMat, Mat, + ffi.Pointer)>>('Stitcher_ComposePanorama_1'); + late final _Stitcher_ComposePanorama_1 = + _Stitcher_ComposePanorama_1Ptr.asFunction< + ffi.Pointer Function( + Stitcher, VecMat, Mat, ffi.Pointer)>(); ffi.Pointer Stitcher_Create( int mode, @@ -15342,11 +17026,12 @@ class CvNative { ); } - late final _Stitcher_CreatePtr = - _lookup Function(ffi.Int, ffi.Pointer)>>( - 'Stitcher_Create'); - late final _Stitcher_Create = - _Stitcher_CreatePtr.asFunction Function(int, ffi.Pointer)>(); + late final _Stitcher_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int, ffi.Pointer)>>('Stitcher_Create'); + late final _Stitcher_Create = _Stitcher_CreatePtr.asFunction< + ffi.Pointer Function(int, ffi.Pointer)>(); ffi.Pointer Stitcher_EstimateTransform( Stitcher self, @@ -15363,10 +17048,13 @@ class CvNative { } late final _Stitcher_EstimateTransformPtr = _lookup< - ffi.NativeFunction Function(Stitcher, VecMat, VecMat, ffi.Pointer)>>( - 'Stitcher_EstimateTransform'); - late final _Stitcher_EstimateTransform = _Stitcher_EstimateTransformPtr.asFunction< - ffi.Pointer Function(Stitcher, VecMat, VecMat, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(Stitcher, VecMat, VecMat, + ffi.Pointer)>>('Stitcher_EstimateTransform'); + late final _Stitcher_EstimateTransform = + _Stitcher_EstimateTransformPtr.asFunction< + ffi.Pointer Function( + Stitcher, VecMat, VecMat, ffi.Pointer)>(); ffi.Pointer Stitcher_Get( PtrStitcher self, @@ -15378,11 +17066,12 @@ class CvNative { ); } - late final _Stitcher_GetPtr = - _lookup Function(PtrStitcher, ffi.Pointer)>>( - 'Stitcher_Get'); - late final _Stitcher_Get = - _Stitcher_GetPtr.asFunction Function(PtrStitcher, ffi.Pointer)>(); + late final _Stitcher_GetPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + PtrStitcher, ffi.Pointer)>>('Stitcher_Get'); + late final _Stitcher_Get = _Stitcher_GetPtr.asFunction< + ffi.Pointer Function(PtrStitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetCompositingResol( Stitcher self, @@ -15394,11 +17083,13 @@ class CvNative { ); } - late final _Stitcher_GetCompositingResolPtr = - _lookup Function(Stitcher, ffi.Pointer)>>( - 'Stitcher_GetCompositingResol'); - late final _Stitcher_GetCompositingResol = _Stitcher_GetCompositingResolPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetCompositingResolPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Stitcher, + ffi.Pointer)>>('Stitcher_GetCompositingResol'); + late final _Stitcher_GetCompositingResol = + _Stitcher_GetCompositingResolPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetInterpolationFlags( Stitcher self, @@ -15410,11 +17101,13 @@ class CvNative { ); } - late final _Stitcher_GetInterpolationFlagsPtr = - _lookup Function(Stitcher, ffi.Pointer)>>( - 'Stitcher_GetInterpolationFlags'); - late final _Stitcher_GetInterpolationFlags = _Stitcher_GetInterpolationFlagsPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetInterpolationFlagsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Stitcher, + ffi.Pointer)>>('Stitcher_GetInterpolationFlags'); + late final _Stitcher_GetInterpolationFlags = + _Stitcher_GetInterpolationFlagsPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetPanoConfidenceThresh( Stitcher self, @@ -15426,11 +17119,13 @@ class CvNative { ); } - late final _Stitcher_GetPanoConfidenceThreshPtr = - _lookup Function(Stitcher, ffi.Pointer)>>( - 'Stitcher_GetPanoConfidenceThresh'); - late final _Stitcher_GetPanoConfidenceThresh = _Stitcher_GetPanoConfidenceThreshPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetPanoConfidenceThreshPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Stitcher, + ffi.Pointer)>>('Stitcher_GetPanoConfidenceThresh'); + late final _Stitcher_GetPanoConfidenceThresh = + _Stitcher_GetPanoConfidenceThreshPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetRegistrationResol( Stitcher self, @@ -15442,11 +17137,13 @@ class CvNative { ); } - late final _Stitcher_GetRegistrationResolPtr = - _lookup Function(Stitcher, ffi.Pointer)>>( - 'Stitcher_GetRegistrationResol'); - late final _Stitcher_GetRegistrationResol = _Stitcher_GetRegistrationResolPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetRegistrationResolPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Stitcher, + ffi.Pointer)>>('Stitcher_GetRegistrationResol'); + late final _Stitcher_GetRegistrationResol = + _Stitcher_GetRegistrationResolPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetSeamEstimationResol( Stitcher self, @@ -15458,11 +17155,13 @@ class CvNative { ); } - late final _Stitcher_GetSeamEstimationResolPtr = - _lookup Function(Stitcher, ffi.Pointer)>>( - 'Stitcher_GetSeamEstimationResol'); - late final _Stitcher_GetSeamEstimationResol = _Stitcher_GetSeamEstimationResolPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetSeamEstimationResolPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Stitcher, + ffi.Pointer)>>('Stitcher_GetSeamEstimationResol'); + late final _Stitcher_GetSeamEstimationResol = + _Stitcher_GetSeamEstimationResolPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetWaveCorrectKind( Stitcher self, @@ -15474,11 +17173,13 @@ class CvNative { ); } - late final _Stitcher_GetWaveCorrectKindPtr = - _lookup Function(Stitcher, ffi.Pointer)>>( - 'Stitcher_GetWaveCorrectKind'); - late final _Stitcher_GetWaveCorrectKind = _Stitcher_GetWaveCorrectKindPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetWaveCorrectKindPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Stitcher, ffi.Pointer)>>('Stitcher_GetWaveCorrectKind'); + late final _Stitcher_GetWaveCorrectKind = + _Stitcher_GetWaveCorrectKindPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_GetWaveCorrection( Stitcher self, @@ -15490,11 +17191,13 @@ class CvNative { ); } - late final _Stitcher_GetWaveCorrectionPtr = - _lookup Function(Stitcher, ffi.Pointer)>>( - 'Stitcher_GetWaveCorrection'); - late final _Stitcher_GetWaveCorrection = _Stitcher_GetWaveCorrectionPtr.asFunction< - ffi.Pointer Function(Stitcher, ffi.Pointer)>(); + late final _Stitcher_GetWaveCorrectionPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Stitcher, ffi.Pointer)>>('Stitcher_GetWaveCorrection'); + late final _Stitcher_GetWaveCorrection = + _Stitcher_GetWaveCorrectionPtr.asFunction< + ffi.Pointer Function(Stitcher, ffi.Pointer)>(); ffi.Pointer Stitcher_SetCompositingResol( Stitcher self, @@ -15506,11 +17209,12 @@ class CvNative { ); } - late final _Stitcher_SetCompositingResolPtr = - _lookup Function(Stitcher, ffi.Double)>>( - 'Stitcher_SetCompositingResol'); - late final _Stitcher_SetCompositingResol = - _Stitcher_SetCompositingResolPtr.asFunction Function(Stitcher, double)>(); + late final _Stitcher_SetCompositingResolPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Stitcher, ffi.Double)>>('Stitcher_SetCompositingResol'); + late final _Stitcher_SetCompositingResol = _Stitcher_SetCompositingResolPtr + .asFunction Function(Stitcher, double)>(); ffi.Pointer Stitcher_SetInterpolationFlags( Stitcher self, @@ -15522,11 +17226,13 @@ class CvNative { ); } - late final _Stitcher_SetInterpolationFlagsPtr = - _lookup Function(Stitcher, ffi.Int)>>( - 'Stitcher_SetInterpolationFlags'); + late final _Stitcher_SetInterpolationFlagsPtr = _lookup< + ffi + .NativeFunction Function(Stitcher, ffi.Int)>>( + 'Stitcher_SetInterpolationFlags'); late final _Stitcher_SetInterpolationFlags = - _Stitcher_SetInterpolationFlagsPtr.asFunction Function(Stitcher, int)>(); + _Stitcher_SetInterpolationFlagsPtr.asFunction< + ffi.Pointer Function(Stitcher, int)>(); ffi.Pointer Stitcher_SetPanoConfidenceThresh( Stitcher self, @@ -15538,11 +17244,13 @@ class CvNative { ); } - late final _Stitcher_SetPanoConfidenceThreshPtr = - _lookup Function(Stitcher, ffi.Double)>>( - 'Stitcher_SetPanoConfidenceThresh'); + late final _Stitcher_SetPanoConfidenceThreshPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Stitcher, ffi.Double)>>('Stitcher_SetPanoConfidenceThresh'); late final _Stitcher_SetPanoConfidenceThresh = - _Stitcher_SetPanoConfidenceThreshPtr.asFunction Function(Stitcher, double)>(); + _Stitcher_SetPanoConfidenceThreshPtr.asFunction< + ffi.Pointer Function(Stitcher, double)>(); ffi.Pointer Stitcher_SetRegistrationResol( Stitcher self, @@ -15554,11 +17262,12 @@ class CvNative { ); } - late final _Stitcher_SetRegistrationResolPtr = - _lookup Function(Stitcher, ffi.Double)>>( - 'Stitcher_SetRegistrationResol'); - late final _Stitcher_SetRegistrationResol = - _Stitcher_SetRegistrationResolPtr.asFunction Function(Stitcher, double)>(); + late final _Stitcher_SetRegistrationResolPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Stitcher, ffi.Double)>>('Stitcher_SetRegistrationResol'); + late final _Stitcher_SetRegistrationResol = _Stitcher_SetRegistrationResolPtr + .asFunction Function(Stitcher, double)>(); ffi.Pointer Stitcher_SetSeamEstimationResol( Stitcher self, @@ -15570,11 +17279,13 @@ class CvNative { ); } - late final _Stitcher_SetSeamEstimationResolPtr = - _lookup Function(Stitcher, ffi.Double)>>( - 'Stitcher_SetSeamEstimationResol'); + late final _Stitcher_SetSeamEstimationResolPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Stitcher, ffi.Double)>>('Stitcher_SetSeamEstimationResol'); late final _Stitcher_SetSeamEstimationResol = - _Stitcher_SetSeamEstimationResolPtr.asFunction Function(Stitcher, double)>(); + _Stitcher_SetSeamEstimationResolPtr.asFunction< + ffi.Pointer Function(Stitcher, double)>(); ffi.Pointer Stitcher_SetWaveCorrectKind( Stitcher self, @@ -15586,11 +17297,12 @@ class CvNative { ); } - late final _Stitcher_SetWaveCorrectKindPtr = - _lookup Function(Stitcher, ffi.Int)>>( - 'Stitcher_SetWaveCorrectKind'); - late final _Stitcher_SetWaveCorrectKind = - _Stitcher_SetWaveCorrectKindPtr.asFunction Function(Stitcher, int)>(); + late final _Stitcher_SetWaveCorrectKindPtr = _lookup< + ffi + .NativeFunction Function(Stitcher, ffi.Int)>>( + 'Stitcher_SetWaveCorrectKind'); + late final _Stitcher_SetWaveCorrectKind = _Stitcher_SetWaveCorrectKindPtr + .asFunction Function(Stitcher, int)>(); ffi.Pointer Stitcher_SetWaveCorrection( Stitcher self, @@ -15602,11 +17314,12 @@ class CvNative { ); } - late final _Stitcher_SetWaveCorrectionPtr = - _lookup Function(Stitcher, ffi.Bool)>>( - 'Stitcher_SetWaveCorrection'); - late final _Stitcher_SetWaveCorrection = - _Stitcher_SetWaveCorrectionPtr.asFunction Function(Stitcher, bool)>(); + late final _Stitcher_SetWaveCorrectionPtr = _lookup< + ffi + .NativeFunction Function(Stitcher, ffi.Bool)>>( + 'Stitcher_SetWaveCorrection'); + late final _Stitcher_SetWaveCorrection = _Stitcher_SetWaveCorrectionPtr + .asFunction Function(Stitcher, bool)>(); ffi.Pointer Stitcher_Stitch( Stitcher self, @@ -15623,10 +17336,12 @@ class CvNative { } late final _Stitcher_StitchPtr = _lookup< - ffi.NativeFunction Function(Stitcher, VecMat, Mat, ffi.Pointer)>>( - 'Stitcher_Stitch'); + ffi.NativeFunction< + ffi.Pointer Function( + Stitcher, VecMat, Mat, ffi.Pointer)>>('Stitcher_Stitch'); late final _Stitcher_Stitch = _Stitcher_StitchPtr.asFunction< - ffi.Pointer Function(Stitcher, VecMat, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + Stitcher, VecMat, Mat, ffi.Pointer)>(); ffi.Pointer Stitcher_Stitch_1( Stitcher self, @@ -15646,10 +17361,11 @@ class CvNative { late final _Stitcher_Stitch_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Stitcher, VecMat, VecMat, Mat, ffi.Pointer)>>('Stitcher_Stitch_1'); + ffi.Pointer Function(Stitcher, VecMat, VecMat, Mat, + ffi.Pointer)>>('Stitcher_Stitch_1'); late final _Stitcher_Stitch_1 = _Stitcher_Stitch_1Ptr.asFunction< - ffi.Pointer Function(Stitcher, VecMat, VecMat, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + Stitcher, VecMat, VecMat, Mat, ffi.Pointer)>(); ffi.Pointer Stylization( Mat src, @@ -15665,11 +17381,12 @@ class CvNative { ); } - late final _StylizationPtr = - _lookup Function(Mat, Mat, ffi.Float, ffi.Float)>>( - 'Stylization'); - late final _Stylization = - _StylizationPtr.asFunction Function(Mat, Mat, double, double)>(); + late final _StylizationPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Float, ffi.Float)>>('Stylization'); + late final _Stylization = _StylizationPtr.asFunction< + ffi.Pointer Function(Mat, Mat, double, double)>(); void Subdiv2D_Close( Subdiv2DPtr self, @@ -15680,8 +17397,10 @@ class CvNative { } late final _Subdiv2D_ClosePtr = - _lookup>('Subdiv2D_Close'); - late final _Subdiv2D_Close = _Subdiv2D_ClosePtr.asFunction(); + _lookup>( + 'Subdiv2D_Close'); + late final _Subdiv2D_Close = + _Subdiv2D_ClosePtr.asFunction(); ffi.Pointer Subdiv2D_EdgeDst( Subdiv2D self, @@ -15699,10 +17418,11 @@ class CvNative { late final _Subdiv2D_EdgeDstPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Subdiv2D, ffi.Int, ffi.Pointer, ffi.Pointer)>>('Subdiv2D_EdgeDst'); + ffi.Pointer Function(Subdiv2D, ffi.Int, + ffi.Pointer, ffi.Pointer)>>('Subdiv2D_EdgeDst'); late final _Subdiv2D_EdgeDst = _Subdiv2D_EdgeDstPtr.asFunction< - ffi.Pointer Function(Subdiv2D, int, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Subdiv2D, int, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Subdiv2D_EdgeOrg( Subdiv2D self, @@ -15720,10 +17440,11 @@ class CvNative { late final _Subdiv2D_EdgeOrgPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Subdiv2D, ffi.Int, ffi.Pointer, ffi.Pointer)>>('Subdiv2D_EdgeOrg'); + ffi.Pointer Function(Subdiv2D, ffi.Int, + ffi.Pointer, ffi.Pointer)>>('Subdiv2D_EdgeOrg'); late final _Subdiv2D_EdgeOrg = _Subdiv2D_EdgeOrgPtr.asFunction< - ffi.Pointer Function(Subdiv2D, int, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Subdiv2D, int, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Subdiv2D_FindNearest( Subdiv2D self, @@ -15742,9 +17463,13 @@ class CvNative { late final _Subdiv2D_FindNearestPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - Subdiv2D, Point2f, ffi.Pointer, ffi.Pointer)>>('Subdiv2D_FindNearest'); + Subdiv2D, + Point2f, + ffi.Pointer, + ffi.Pointer)>>('Subdiv2D_FindNearest'); late final _Subdiv2D_FindNearest = _Subdiv2D_FindNearestPtr.asFunction< - ffi.Pointer Function(Subdiv2D, Point2f, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Subdiv2D, Point2f, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Subdiv2D_GetEdge( Subdiv2D self, @@ -15761,11 +17486,12 @@ class CvNative { } late final _Subdiv2D_GetEdgePtr = _lookup< - ffi - .NativeFunction Function(Subdiv2D, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Subdiv2D_GetEdge'); + ffi.NativeFunction< + ffi.Pointer Function(Subdiv2D, ffi.Int, ffi.Int, + ffi.Pointer)>>('Subdiv2D_GetEdge'); late final _Subdiv2D_GetEdge = _Subdiv2D_GetEdgePtr.asFunction< - ffi.Pointer Function(Subdiv2D, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Subdiv2D, int, int, ffi.Pointer)>(); ffi.Pointer Subdiv2D_GetEdgeList( Subdiv2D self, @@ -15782,9 +17508,12 @@ class CvNative { late final _Subdiv2D_GetEdgeListPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - Subdiv2D, ffi.Pointer>, ffi.Pointer)>>('Subdiv2D_GetEdgeList'); + Subdiv2D, + ffi.Pointer>, + ffi.Pointer)>>('Subdiv2D_GetEdgeList'); late final _Subdiv2D_GetEdgeList = _Subdiv2D_GetEdgeListPtr.asFunction< - ffi.Pointer Function(Subdiv2D, ffi.Pointer>, ffi.Pointer)>(); + ffi.Pointer Function( + Subdiv2D, ffi.Pointer>, ffi.Pointer)>(); ffi.Pointer Subdiv2D_GetLeadingEdgeList( Subdiv2D self, @@ -15796,11 +17525,13 @@ class CvNative { ); } - late final _Subdiv2D_GetLeadingEdgeListPtr = - _lookup Function(Subdiv2D, ffi.Pointer)>>( - 'Subdiv2D_GetLeadingEdgeList'); - late final _Subdiv2D_GetLeadingEdgeList = _Subdiv2D_GetLeadingEdgeListPtr.asFunction< - ffi.Pointer Function(Subdiv2D, ffi.Pointer)>(); + late final _Subdiv2D_GetLeadingEdgeListPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Subdiv2D, ffi.Pointer)>>('Subdiv2D_GetLeadingEdgeList'); + late final _Subdiv2D_GetLeadingEdgeList = + _Subdiv2D_GetLeadingEdgeListPtr.asFunction< + ffi.Pointer Function(Subdiv2D, ffi.Pointer)>(); ffi.Pointer Subdiv2D_GetTriangleList( Subdiv2D self, @@ -15817,9 +17548,13 @@ class CvNative { late final _Subdiv2D_GetTriangleListPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - Subdiv2D, ffi.Pointer>, ffi.Pointer)>>('Subdiv2D_GetTriangleList'); - late final _Subdiv2D_GetTriangleList = _Subdiv2D_GetTriangleListPtr.asFunction< - ffi.Pointer Function(Subdiv2D, ffi.Pointer>, ffi.Pointer)>(); + Subdiv2D, + ffi.Pointer>, + ffi.Pointer)>>('Subdiv2D_GetTriangleList'); + late final _Subdiv2D_GetTriangleList = + _Subdiv2D_GetTriangleListPtr.asFunction< + ffi.Pointer Function(Subdiv2D, + ffi.Pointer>, ffi.Pointer)>(); ffi.Pointer Subdiv2D_GetVertex( Subdiv2D self, @@ -15838,9 +17573,13 @@ class CvNative { late final _Subdiv2D_GetVertexPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - Subdiv2D, ffi.Int, ffi.Pointer, ffi.Pointer)>>('Subdiv2D_GetVertex'); + Subdiv2D, + ffi.Int, + ffi.Pointer, + ffi.Pointer)>>('Subdiv2D_GetVertex'); late final _Subdiv2D_GetVertex = _Subdiv2D_GetVertexPtr.asFunction< - ffi.Pointer Function(Subdiv2D, int, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + Subdiv2D, int, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Subdiv2D_GetVoronoiFacetList( Subdiv2D self, @@ -15858,11 +17597,15 @@ class CvNative { late final _Subdiv2D_GetVoronoiFacetListPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Subdiv2D, VecInt, ffi.Pointer, + ffi.Pointer Function( + Subdiv2D, + VecInt, + ffi.Pointer, ffi.Pointer)>>('Subdiv2D_GetVoronoiFacetList'); - late final _Subdiv2D_GetVoronoiFacetList = _Subdiv2D_GetVoronoiFacetListPtr.asFunction< - ffi.Pointer Function( - Subdiv2D, VecInt, ffi.Pointer, ffi.Pointer)>(); + late final _Subdiv2D_GetVoronoiFacetList = + _Subdiv2D_GetVoronoiFacetListPtr.asFunction< + ffi.Pointer Function(Subdiv2D, VecInt, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Subdiv2D_InitDelaunay( Subdiv2D self, @@ -15874,10 +17617,11 @@ class CvNative { ); } - late final _Subdiv2D_InitDelaunayPtr = - _lookup Function(Subdiv2D, Rect)>>('Subdiv2D_InitDelaunay'); - late final _Subdiv2D_InitDelaunay = - _Subdiv2D_InitDelaunayPtr.asFunction Function(Subdiv2D, Rect)>(); + late final _Subdiv2D_InitDelaunayPtr = _lookup< + ffi.NativeFunction Function(Subdiv2D, Rect)>>( + 'Subdiv2D_InitDelaunay'); + late final _Subdiv2D_InitDelaunay = _Subdiv2D_InitDelaunayPtr.asFunction< + ffi.Pointer Function(Subdiv2D, Rect)>(); ffi.Pointer Subdiv2D_Insert( Subdiv2D self, @@ -15891,11 +17635,13 @@ class CvNative { ); } - late final _Subdiv2D_InsertPtr = - _lookup Function(Subdiv2D, Point2f, ffi.Pointer)>>( - 'Subdiv2D_Insert'); + late final _Subdiv2D_InsertPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Subdiv2D, Point2f, ffi.Pointer)>>('Subdiv2D_Insert'); late final _Subdiv2D_Insert = _Subdiv2D_InsertPtr.asFunction< - ffi.Pointer Function(Subdiv2D, Point2f, ffi.Pointer)>(); + ffi.Pointer Function( + Subdiv2D, Point2f, ffi.Pointer)>(); ffi.Pointer Subdiv2D_InsertVec( Subdiv2D self, @@ -15907,10 +17653,12 @@ class CvNative { ); } - late final _Subdiv2D_InsertVecPtr = - _lookup Function(Subdiv2D, VecPoint2f)>>('Subdiv2D_InsertVec'); - late final _Subdiv2D_InsertVec = - _Subdiv2D_InsertVecPtr.asFunction Function(Subdiv2D, VecPoint2f)>(); + late final _Subdiv2D_InsertVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Subdiv2D, VecPoint2f)>>('Subdiv2D_InsertVec'); + late final _Subdiv2D_InsertVec = _Subdiv2D_InsertVecPtr.asFunction< + ffi.Pointer Function(Subdiv2D, VecPoint2f)>(); ffi.Pointer Subdiv2D_Locate( Subdiv2D self, @@ -15930,11 +17678,15 @@ class CvNative { late final _Subdiv2D_LocatePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(Subdiv2D, Point2f, ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + Subdiv2D, + Point2f, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('Subdiv2D_Locate'); late final _Subdiv2D_Locate = _Subdiv2D_LocatePtr.asFunction< - ffi.Pointer Function( - Subdiv2D, Point2f, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(Subdiv2D, Point2f, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Subdiv2D_NewEmpty( ffi.Pointer rval, @@ -15944,10 +17696,12 @@ class CvNative { ); } - late final _Subdiv2D_NewEmptyPtr = - _lookup Function(ffi.Pointer)>>('Subdiv2D_NewEmpty'); - late final _Subdiv2D_NewEmpty = - _Subdiv2D_NewEmptyPtr.asFunction Function(ffi.Pointer)>(); + late final _Subdiv2D_NewEmptyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('Subdiv2D_NewEmpty'); + late final _Subdiv2D_NewEmpty = _Subdiv2D_NewEmptyPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer Subdiv2D_NewWithRect( Rect rect, @@ -15959,11 +17713,12 @@ class CvNative { ); } - late final _Subdiv2D_NewWithRectPtr = - _lookup Function(Rect, ffi.Pointer)>>( - 'Subdiv2D_NewWithRect'); - late final _Subdiv2D_NewWithRect = - _Subdiv2D_NewWithRectPtr.asFunction Function(Rect, ffi.Pointer)>(); + late final _Subdiv2D_NewWithRectPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Rect, ffi.Pointer)>>('Subdiv2D_NewWithRect'); + late final _Subdiv2D_NewWithRect = _Subdiv2D_NewWithRectPtr.asFunction< + ffi.Pointer Function(Rect, ffi.Pointer)>(); ffi.Pointer Subdiv2D_NextEdge( Subdiv2D self, @@ -15977,11 +17732,12 @@ class CvNative { ); } - late final _Subdiv2D_NextEdgePtr = - _lookup Function(Subdiv2D, ffi.Int, ffi.Pointer)>>( - 'Subdiv2D_NextEdge'); - late final _Subdiv2D_NextEdge = - _Subdiv2D_NextEdgePtr.asFunction Function(Subdiv2D, int, ffi.Pointer)>(); + late final _Subdiv2D_NextEdgePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Subdiv2D, ffi.Int, ffi.Pointer)>>('Subdiv2D_NextEdge'); + late final _Subdiv2D_NextEdge = _Subdiv2D_NextEdgePtr.asFunction< + ffi.Pointer Function(Subdiv2D, int, ffi.Pointer)>(); ffi.Pointer Subdiv2D_RotateEdge( Subdiv2D self, @@ -15998,11 +17754,12 @@ class CvNative { } late final _Subdiv2D_RotateEdgePtr = _lookup< - ffi - .NativeFunction Function(Subdiv2D, ffi.Int, ffi.Int, ffi.Pointer)>>( - 'Subdiv2D_RotateEdge'); + ffi.NativeFunction< + ffi.Pointer Function(Subdiv2D, ffi.Int, ffi.Int, + ffi.Pointer)>>('Subdiv2D_RotateEdge'); late final _Subdiv2D_RotateEdge = _Subdiv2D_RotateEdgePtr.asFunction< - ffi.Pointer Function(Subdiv2D, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + Subdiv2D, int, int, ffi.Pointer)>(); ffi.Pointer Subdiv2D_SymEdge( Subdiv2D self, @@ -16016,11 +17773,12 @@ class CvNative { ); } - late final _Subdiv2D_SymEdgePtr = - _lookup Function(Subdiv2D, ffi.Int, ffi.Pointer)>>( - 'Subdiv2D_SymEdge'); - late final _Subdiv2D_SymEdge = - _Subdiv2D_SymEdgePtr.asFunction Function(Subdiv2D, int, ffi.Pointer)>(); + late final _Subdiv2D_SymEdgePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Subdiv2D, ffi.Int, ffi.Pointer)>>('Subdiv2D_SymEdge'); + late final _Subdiv2D_SymEdge = _Subdiv2D_SymEdgePtr.asFunction< + ffi.Pointer Function(Subdiv2D, int, ffi.Pointer)>(); ffi.Pointer TextureFlattening( Mat src, @@ -16041,10 +17799,11 @@ class CvNative { } late final _TextureFlatteningPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat, ffi.Float, ffi.Float, ffi.Int)>>( - 'TextureFlattening'); - late final _TextureFlattening = - _TextureFlatteningPtr.asFunction Function(Mat, Mat, Mat, double, double, int)>(); + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Mat, ffi.Float, ffi.Float, + ffi.Int)>>('TextureFlattening'); + late final _TextureFlattening = _TextureFlatteningPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, double, double, int)>(); ffi.Pointer TheRNG( ffi.Pointer rval, @@ -16054,9 +17813,11 @@ class CvNative { ); } - late final _TheRNGPtr = - _lookup Function(ffi.Pointer)>>('TheRNG'); - late final _TheRNG = _TheRNGPtr.asFunction Function(ffi.Pointer)>(); + late final _TheRNGPtr = _lookup< + ffi.NativeFunction Function(ffi.Pointer)>>( + 'TheRNG'); + late final _TheRNG = + _TheRNGPtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer Threshold( Mat src, @@ -16078,10 +17839,11 @@ class CvNative { late final _ThresholdPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Double, ffi.Double, ffi.Int, ffi.Pointer)>>('Threshold'); + ffi.Pointer Function(Mat, Mat, ffi.Double, ffi.Double, + ffi.Int, ffi.Pointer)>>('Threshold'); late final _Threshold = _ThresholdPtr.asFunction< - ffi.Pointer Function(Mat, Mat, double, double, int, ffi.Pointer)>(); + ffi.Pointer Function( + Mat, Mat, double, double, int, ffi.Pointer)>(); ffi.Pointer Trackbar_Create( ffi.Pointer winname, @@ -16097,10 +17859,11 @@ class CvNative { late final _Trackbar_CreatePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, ffi.Int)>>('Trackbar_Create'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int)>>('Trackbar_Create'); late final _Trackbar_Create = _Trackbar_CreatePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); ffi.Pointer Trackbar_CreateWithValue( ffi.Pointer winname, @@ -16118,11 +17881,15 @@ class CvNative { late final _Trackbar_CreateWithValuePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Int)>>('Trackbar_CreateWithValue'); - late final _Trackbar_CreateWithValue = _Trackbar_CreateWithValuePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); + late final _Trackbar_CreateWithValue = + _Trackbar_CreateWithValuePtr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); ffi.Pointer Trackbar_GetPos( ffi.Pointer winname, @@ -16138,10 +17905,11 @@ class CvNative { late final _Trackbar_GetPosPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('Trackbar_GetPos'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('Trackbar_GetPos'); late final _Trackbar_GetPos = _Trackbar_GetPosPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Trackbar_SetMax( ffi.Pointer winname, @@ -16157,10 +17925,11 @@ class CvNative { late final _Trackbar_SetMaxPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, ffi.Int)>>('Trackbar_SetMax'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int)>>('Trackbar_SetMax'); late final _Trackbar_SetMax = _Trackbar_SetMaxPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); ffi.Pointer Trackbar_SetMin( ffi.Pointer winname, @@ -16176,10 +17945,11 @@ class CvNative { late final _Trackbar_SetMinPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, ffi.Int)>>('Trackbar_SetMin'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int)>>('Trackbar_SetMin'); late final _Trackbar_SetMin = _Trackbar_SetMinPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); ffi.Pointer Trackbar_SetPos( ffi.Pointer winname, @@ -16195,10 +17965,11 @@ class CvNative { late final _Trackbar_SetPosPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, ffi.Int)>>('Trackbar_SetPos'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int)>>('Trackbar_SetPos'); late final _Trackbar_SetPos = _Trackbar_SetPosPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); void TrackerMIL_Close( TrackerMILPtr self, @@ -16209,8 +17980,10 @@ class CvNative { } late final _TrackerMIL_ClosePtr = - _lookup>('TrackerMIL_Close'); - late final _TrackerMIL_Close = _TrackerMIL_ClosePtr.asFunction(); + _lookup>( + 'TrackerMIL_Close'); + late final _TrackerMIL_Close = + _TrackerMIL_ClosePtr.asFunction(); ffi.Pointer TrackerMIL_Create( ffi.Pointer rval, @@ -16220,11 +17993,12 @@ class CvNative { ); } - late final _TrackerMIL_CreatePtr = - _lookup Function(ffi.Pointer)>>( - 'TrackerMIL_Create'); - late final _TrackerMIL_Create = - _TrackerMIL_CreatePtr.asFunction Function(ffi.Pointer)>(); + late final _TrackerMIL_CreatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('TrackerMIL_Create'); + late final _TrackerMIL_Create = _TrackerMIL_CreatePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer TrackerMIL_Init( TrackerMIL self, @@ -16238,10 +18012,12 @@ class CvNative { ); } - late final _TrackerMIL_InitPtr = - _lookup Function(TrackerMIL, Mat, Rect)>>('TrackerMIL_Init'); - late final _TrackerMIL_Init = - _TrackerMIL_InitPtr.asFunction Function(TrackerMIL, Mat, Rect)>(); + late final _TrackerMIL_InitPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + TrackerMIL, Mat, Rect)>>('TrackerMIL_Init'); + late final _TrackerMIL_Init = _TrackerMIL_InitPtr.asFunction< + ffi.Pointer Function(TrackerMIL, Mat, Rect)>(); ffi.Pointer TrackerMIL_Update( TrackerMIL self, @@ -16259,10 +18035,11 @@ class CvNative { late final _TrackerMIL_UpdatePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - TrackerMIL, Mat, ffi.Pointer, ffi.Pointer)>>('TrackerMIL_Update'); + ffi.Pointer Function(TrackerMIL, Mat, ffi.Pointer, + ffi.Pointer)>>('TrackerMIL_Update'); late final _TrackerMIL_Update = _TrackerMIL_UpdatePtr.asFunction< - ffi.Pointer Function(TrackerMIL, Mat, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + TrackerMIL, Mat, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Undistort( Mat src, @@ -16280,9 +18057,12 @@ class CvNative { ); } - late final _UndistortPtr = - _lookup Function(Mat, Mat, Mat, Mat, Mat)>>('Undistort'); - late final _Undistort = _UndistortPtr.asFunction Function(Mat, Mat, Mat, Mat, Mat)>(); + late final _UndistortPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, Mat)>>('Undistort'); + late final _Undistort = _UndistortPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat)>(); ffi.Pointer UndistortPoints( Mat distorted, @@ -16304,11 +18084,13 @@ class CvNative { ); } - late final _UndistortPointsPtr = - _lookup Function(Mat, Mat, Mat, Mat, Mat, Mat, TermCriteria)>>( - 'UndistortPoints'); + late final _UndistortPointsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, Mat, Mat, TermCriteria)>>('UndistortPoints'); late final _UndistortPoints = _UndistortPointsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, Mat, TermCriteria)>(); + ffi.Pointer Function( + Mat, Mat, Mat, Mat, Mat, Mat, TermCriteria)>(); ffi.Pointer VecChar_Append( VecChar vec, @@ -16320,9 +18102,11 @@ class CvNative { ); } - late final _VecChar_AppendPtr = - _lookup Function(VecChar, ffi.Char)>>('VecChar_Append'); - late final _VecChar_Append = _VecChar_AppendPtr.asFunction Function(VecChar, int)>(); + late final _VecChar_AppendPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecChar, ffi.Char)>>('VecChar_Append'); + late final _VecChar_Append = _VecChar_AppendPtr.asFunction< + ffi.Pointer Function(VecChar, int)>(); ffi.Pointer VecChar_At( VecChar vec, @@ -16336,11 +18120,12 @@ class CvNative { ); } - late final _VecChar_AtPtr = - _lookup Function(VecChar, ffi.Int, ffi.Pointer)>>( - 'VecChar_At'); - late final _VecChar_At = - _VecChar_AtPtr.asFunction Function(VecChar, int, ffi.Pointer)>(); + late final _VecChar_AtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecChar, ffi.Int, ffi.Pointer)>>('VecChar_At'); + late final _VecChar_At = _VecChar_AtPtr.asFunction< + ffi.Pointer Function(VecChar, int, ffi.Pointer)>(); void VecChar_Close( VecCharPtr vec, @@ -16350,8 +18135,11 @@ class CvNative { ); } - late final _VecChar_ClosePtr = _lookup>('VecChar_Close'); - late final _VecChar_Close = _VecChar_ClosePtr.asFunction(); + late final _VecChar_ClosePtr = + _lookup>( + 'VecChar_Close'); + late final _VecChar_Close = + _VecChar_ClosePtr.asFunction(); ffi.Pointer VecChar_Data( VecChar vec, @@ -16364,10 +18152,12 @@ class CvNative { } late final _VecChar_DataPtr = _lookup< - ffi.NativeFunction Function(VecChar, ffi.Pointer>)>>( - 'VecChar_Data'); + ffi.NativeFunction< + ffi.Pointer Function( + VecChar, ffi.Pointer>)>>('VecChar_Data'); late final _VecChar_Data = _VecChar_DataPtr.asFunction< - ffi.Pointer Function(VecChar, ffi.Pointer>)>(); + ffi.Pointer Function( + VecChar, ffi.Pointer>)>(); ffi.Pointer VecChar_New( ffi.Pointer rval, @@ -16377,10 +18167,11 @@ class CvNative { ); } - late final _VecChar_NewPtr = - _lookup Function(ffi.Pointer)>>('VecChar_New'); - late final _VecChar_New = - _VecChar_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecChar_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('VecChar_New'); + late final _VecChar_New = _VecChar_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecChar_NewFromPointer( ffi.Pointer p, @@ -16396,10 +18187,11 @@ class CvNative { late final _VecChar_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecChar_NewFromPointer'); + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecChar_NewFromPointer'); late final _VecChar_NewFromPointer = _VecChar_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecChar_NewFromVec( VecChar vec, @@ -16411,11 +18203,12 @@ class CvNative { ); } - late final _VecChar_NewFromVecPtr = - _lookup Function(VecChar, ffi.Pointer)>>( - 'VecChar_NewFromVec'); - late final _VecChar_NewFromVec = - _VecChar_NewFromVecPtr.asFunction Function(VecChar, ffi.Pointer)>(); + late final _VecChar_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecChar, ffi.Pointer)>>('VecChar_NewFromVec'); + late final _VecChar_NewFromVec = _VecChar_NewFromVecPtr.asFunction< + ffi.Pointer Function(VecChar, ffi.Pointer)>(); ffi.Pointer VecChar_Size( VecChar vec, @@ -16427,11 +18220,12 @@ class CvNative { ); } - late final _VecChar_SizePtr = - _lookup Function(VecChar, ffi.Pointer)>>( - 'VecChar_Size'); - late final _VecChar_Size = - _VecChar_SizePtr.asFunction Function(VecChar, ffi.Pointer)>(); + late final _VecChar_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecChar, ffi.Pointer)>>('VecChar_Size'); + late final _VecChar_Size = _VecChar_SizePtr.asFunction< + ffi.Pointer Function(VecChar, ffi.Pointer)>(); ffi.Pointer VecChar_ToString( VecChar vec, @@ -16448,9 +18242,12 @@ class CvNative { late final _VecChar_ToStringPtr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - VecChar, ffi.Pointer>, ffi.Pointer)>>('VecChar_ToString'); + VecChar, + ffi.Pointer>, + ffi.Pointer)>>('VecChar_ToString'); late final _VecChar_ToString = _VecChar_ToStringPtr.asFunction< - ffi.Pointer Function(VecChar, ffi.Pointer>, ffi.Pointer)>(); + ffi.Pointer Function( + VecChar, ffi.Pointer>, ffi.Pointer)>(); ffi.Pointer VecDMatch_Append( VecDMatch vec, @@ -16462,10 +18259,12 @@ class CvNative { ); } - late final _VecDMatch_AppendPtr = - _lookup Function(VecDMatch, DMatch)>>('VecDMatch_Append'); - late final _VecDMatch_Append = - _VecDMatch_AppendPtr.asFunction Function(VecDMatch, DMatch)>(); + late final _VecDMatch_AppendPtr = _lookup< + ffi + .NativeFunction Function(VecDMatch, DMatch)>>( + 'VecDMatch_Append'); + late final _VecDMatch_Append = _VecDMatch_AppendPtr.asFunction< + ffi.Pointer Function(VecDMatch, DMatch)>(); ffi.Pointer VecDMatch_At( VecDMatch vec, @@ -16479,11 +18278,12 @@ class CvNative { ); } - late final _VecDMatch_AtPtr = - _lookup Function(VecDMatch, ffi.Int, ffi.Pointer)>>( - 'VecDMatch_At'); - late final _VecDMatch_At = - _VecDMatch_AtPtr.asFunction Function(VecDMatch, int, ffi.Pointer)>(); + late final _VecDMatch_AtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecDMatch, ffi.Int, ffi.Pointer)>>('VecDMatch_At'); + late final _VecDMatch_At = _VecDMatch_AtPtr.asFunction< + ffi.Pointer Function(VecDMatch, int, ffi.Pointer)>(); void VecDMatch_Close( VecDMatchPtr vec, @@ -16494,8 +18294,10 @@ class CvNative { } late final _VecDMatch_ClosePtr = - _lookup>('VecDMatch_Close'); - late final _VecDMatch_Close = _VecDMatch_ClosePtr.asFunction(); + _lookup>( + 'VecDMatch_Close'); + late final _VecDMatch_Close = + _VecDMatch_ClosePtr.asFunction(); ffi.Pointer VecDMatch_New( ffi.Pointer rval, @@ -16505,10 +18307,12 @@ class CvNative { ); } - late final _VecDMatch_NewPtr = - _lookup Function(ffi.Pointer)>>('VecDMatch_New'); - late final _VecDMatch_New = - _VecDMatch_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecDMatch_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecDMatch_New'); + late final _VecDMatch_New = _VecDMatch_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecDMatch_NewFromPointer( ffi.Pointer matches, @@ -16524,10 +18328,12 @@ class CvNative { late final _VecDMatch_NewFromPointerPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecDMatch_NewFromPointer'); + late final _VecDMatch_NewFromPointer = + _VecDMatch_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecDMatch_NewFromPointer'); - late final _VecDMatch_NewFromPointer = _VecDMatch_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecDMatch_NewFromVec( VecDMatch vec, @@ -16539,9 +18345,10 @@ class CvNative { ); } - late final _VecDMatch_NewFromVecPtr = - _lookup Function(VecDMatch, ffi.Pointer)>>( - 'VecDMatch_NewFromVec'); + late final _VecDMatch_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecDMatch, ffi.Pointer)>>('VecDMatch_NewFromVec'); late final _VecDMatch_NewFromVec = _VecDMatch_NewFromVecPtr.asFunction< ffi.Pointer Function(VecDMatch, ffi.Pointer)>(); @@ -16555,11 +18362,12 @@ class CvNative { ); } - late final _VecDMatch_SizePtr = - _lookup Function(VecDMatch, ffi.Pointer)>>( - 'VecDMatch_Size'); - late final _VecDMatch_Size = - _VecDMatch_SizePtr.asFunction Function(VecDMatch, ffi.Pointer)>(); + late final _VecDMatch_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecDMatch, ffi.Pointer)>>('VecDMatch_Size'); + late final _VecDMatch_Size = _VecDMatch_SizePtr.asFunction< + ffi.Pointer Function(VecDMatch, ffi.Pointer)>(); ffi.Pointer VecDouble_Append( VecDouble vec, @@ -16571,10 +18379,12 @@ class CvNative { ); } - late final _VecDouble_AppendPtr = - _lookup Function(VecDouble, ffi.Double)>>('VecDouble_Append'); - late final _VecDouble_Append = - _VecDouble_AppendPtr.asFunction Function(VecDouble, double)>(); + late final _VecDouble_AppendPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecDouble, ffi.Double)>>('VecDouble_Append'); + late final _VecDouble_Append = _VecDouble_AppendPtr.asFunction< + ffi.Pointer Function(VecDouble, double)>(); ffi.Pointer VecDouble_At( VecDouble vec, @@ -16589,10 +18399,12 @@ class CvNative { } late final _VecDouble_AtPtr = _lookup< - ffi.NativeFunction Function(VecDouble, ffi.Int, ffi.Pointer)>>( - 'VecDouble_At'); - late final _VecDouble_At = - _VecDouble_AtPtr.asFunction Function(VecDouble, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + VecDouble, ffi.Int, ffi.Pointer)>>('VecDouble_At'); + late final _VecDouble_At = _VecDouble_AtPtr.asFunction< + ffi.Pointer Function( + VecDouble, int, ffi.Pointer)>(); void VecDouble_Close( VecDoublePtr vec, @@ -16603,8 +18415,10 @@ class CvNative { } late final _VecDouble_ClosePtr = - _lookup>('VecDouble_Close'); - late final _VecDouble_Close = _VecDouble_ClosePtr.asFunction(); + _lookup>( + 'VecDouble_Close'); + late final _VecDouble_Close = + _VecDouble_ClosePtr.asFunction(); ffi.Pointer VecDouble_Data( VecDouble vec, @@ -16618,9 +18432,11 @@ class CvNative { late final _VecDouble_DataPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecDouble, ffi.Pointer>)>>('VecDouble_Data'); + ffi.Pointer Function(VecDouble, + ffi.Pointer>)>>('VecDouble_Data'); late final _VecDouble_Data = _VecDouble_DataPtr.asFunction< - ffi.Pointer Function(VecDouble, ffi.Pointer>)>(); + ffi.Pointer Function( + VecDouble, ffi.Pointer>)>(); ffi.Pointer VecDouble_New( ffi.Pointer rval, @@ -16630,10 +18446,12 @@ class CvNative { ); } - late final _VecDouble_NewPtr = - _lookup Function(ffi.Pointer)>>('VecDouble_New'); - late final _VecDouble_New = - _VecDouble_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecDouble_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecDouble_New'); + late final _VecDouble_New = _VecDouble_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecDouble_NewFromPointer( ffi.Pointer p, @@ -16649,10 +18467,12 @@ class CvNative { late final _VecDouble_NewFromPointerPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecDouble_NewFromPointer'); + late final _VecDouble_NewFromPointer = + _VecDouble_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecDouble_NewFromPointer'); - late final _VecDouble_NewFromPointer = _VecDouble_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecDouble_NewFromVec( VecDouble vec, @@ -16664,9 +18484,10 @@ class CvNative { ); } - late final _VecDouble_NewFromVecPtr = - _lookup Function(VecDouble, ffi.Pointer)>>( - 'VecDouble_NewFromVec'); + late final _VecDouble_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecDouble, ffi.Pointer)>>('VecDouble_NewFromVec'); late final _VecDouble_NewFromVec = _VecDouble_NewFromVecPtr.asFunction< ffi.Pointer Function(VecDouble, ffi.Pointer)>(); @@ -16680,11 +18501,12 @@ class CvNative { ); } - late final _VecDouble_SizePtr = - _lookup Function(VecDouble, ffi.Pointer)>>( - 'VecDouble_Size'); - late final _VecDouble_Size = - _VecDouble_SizePtr.asFunction Function(VecDouble, ffi.Pointer)>(); + late final _VecDouble_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecDouble, ffi.Pointer)>>('VecDouble_Size'); + late final _VecDouble_Size = _VecDouble_SizePtr.asFunction< + ffi.Pointer Function(VecDouble, ffi.Pointer)>(); ffi.Pointer VecFloat_Append( VecFloat vec, @@ -16696,10 +18518,12 @@ class CvNative { ); } - late final _VecFloat_AppendPtr = - _lookup Function(VecFloat, ffi.Float)>>('VecFloat_Append'); - late final _VecFloat_Append = - _VecFloat_AppendPtr.asFunction Function(VecFloat, double)>(); + late final _VecFloat_AppendPtr = _lookup< + ffi + .NativeFunction Function(VecFloat, ffi.Float)>>( + 'VecFloat_Append'); + late final _VecFloat_Append = _VecFloat_AppendPtr.asFunction< + ffi.Pointer Function(VecFloat, double)>(); ffi.Pointer VecFloat_At( VecFloat vec, @@ -16713,11 +18537,12 @@ class CvNative { ); } - late final _VecFloat_AtPtr = - _lookup Function(VecFloat, ffi.Int, ffi.Pointer)>>( - 'VecFloat_At'); - late final _VecFloat_At = - _VecFloat_AtPtr.asFunction Function(VecFloat, int, ffi.Pointer)>(); + late final _VecFloat_AtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecFloat, ffi.Int, ffi.Pointer)>>('VecFloat_At'); + late final _VecFloat_At = _VecFloat_AtPtr.asFunction< + ffi.Pointer Function(VecFloat, int, ffi.Pointer)>(); void VecFloat_Close( VecFloatPtr vec, @@ -16728,8 +18553,10 @@ class CvNative { } late final _VecFloat_ClosePtr = - _lookup>('VecFloat_Close'); - late final _VecFloat_Close = _VecFloat_ClosePtr.asFunction(); + _lookup>( + 'VecFloat_Close'); + late final _VecFloat_Close = + _VecFloat_ClosePtr.asFunction(); ffi.Pointer VecFloat_Data( VecFloat vec, @@ -16742,10 +18569,12 @@ class CvNative { } late final _VecFloat_DataPtr = _lookup< - ffi.NativeFunction Function(VecFloat, ffi.Pointer>)>>( - 'VecFloat_Data'); + ffi.NativeFunction< + ffi.Pointer Function( + VecFloat, ffi.Pointer>)>>('VecFloat_Data'); late final _VecFloat_Data = _VecFloat_DataPtr.asFunction< - ffi.Pointer Function(VecFloat, ffi.Pointer>)>(); + ffi.Pointer Function( + VecFloat, ffi.Pointer>)>(); ffi.Pointer VecFloat_New( ffi.Pointer rval, @@ -16755,10 +18584,12 @@ class CvNative { ); } - late final _VecFloat_NewPtr = - _lookup Function(ffi.Pointer)>>('VecFloat_New'); - late final _VecFloat_New = - _VecFloat_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecFloat_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecFloat_New'); + late final _VecFloat_New = _VecFloat_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecFloat_NewFromPointer( ffi.Pointer p, @@ -16774,10 +18605,11 @@ class CvNative { late final _VecFloat_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecFloat_NewFromPointer'); + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecFloat_NewFromPointer'); late final _VecFloat_NewFromPointer = _VecFloat_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecFloat_NewFromVec( VecFloat vec, @@ -16789,11 +18621,12 @@ class CvNative { ); } - late final _VecFloat_NewFromVecPtr = - _lookup Function(VecFloat, ffi.Pointer)>>( - 'VecFloat_NewFromVec'); - late final _VecFloat_NewFromVec = - _VecFloat_NewFromVecPtr.asFunction Function(VecFloat, ffi.Pointer)>(); + late final _VecFloat_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecFloat, ffi.Pointer)>>('VecFloat_NewFromVec'); + late final _VecFloat_NewFromVec = _VecFloat_NewFromVecPtr.asFunction< + ffi.Pointer Function(VecFloat, ffi.Pointer)>(); ffi.Pointer VecFloat_Size( VecFloat vec, @@ -16805,11 +18638,12 @@ class CvNative { ); } - late final _VecFloat_SizePtr = - _lookup Function(VecFloat, ffi.Pointer)>>( - 'VecFloat_Size'); - late final _VecFloat_Size = - _VecFloat_SizePtr.asFunction Function(VecFloat, ffi.Pointer)>(); + late final _VecFloat_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecFloat, ffi.Pointer)>>('VecFloat_Size'); + late final _VecFloat_Size = _VecFloat_SizePtr.asFunction< + ffi.Pointer Function(VecFloat, ffi.Pointer)>(); ffi.Pointer VecInt_Append( VecInt vec, @@ -16821,9 +18655,11 @@ class CvNative { ); } - late final _VecInt_AppendPtr = - _lookup Function(VecInt, ffi.Int)>>('VecInt_Append'); - late final _VecInt_Append = _VecInt_AppendPtr.asFunction Function(VecInt, int)>(); + late final _VecInt_AppendPtr = _lookup< + ffi.NativeFunction Function(VecInt, ffi.Int)>>( + 'VecInt_Append'); + late final _VecInt_Append = _VecInt_AppendPtr.asFunction< + ffi.Pointer Function(VecInt, int)>(); ffi.Pointer VecInt_At( VecInt vec, @@ -16837,11 +18673,12 @@ class CvNative { ); } - late final _VecInt_AtPtr = - _lookup Function(VecInt, ffi.Int, ffi.Pointer)>>( - 'VecInt_At'); - late final _VecInt_At = - _VecInt_AtPtr.asFunction Function(VecInt, int, ffi.Pointer)>(); + late final _VecInt_AtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecInt, ffi.Int, ffi.Pointer)>>('VecInt_At'); + late final _VecInt_At = _VecInt_AtPtr.asFunction< + ffi.Pointer Function(VecInt, int, ffi.Pointer)>(); ffi.Pointer VecInt_AtNoBoundCheck( VecInt vec, @@ -16855,9 +18692,10 @@ class CvNative { ); } - late final _VecInt_AtNoBoundCheckPtr = - _lookup Function(VecInt, ffi.Int, ffi.Pointer)>>( - 'VecInt_AtNoBoundCheck'); + late final _VecInt_AtNoBoundCheckPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecInt, ffi.Int, ffi.Pointer)>>('VecInt_AtNoBoundCheck'); late final _VecInt_AtNoBoundCheck = _VecInt_AtNoBoundCheckPtr.asFunction< ffi.Pointer Function(VecInt, int, ffi.Pointer)>(); @@ -16869,8 +18707,10 @@ class CvNative { ); } - late final _VecInt_ClosePtr = _lookup>('VecInt_Close'); - late final _VecInt_Close = _VecInt_ClosePtr.asFunction(); + late final _VecInt_ClosePtr = + _lookup>('VecInt_Close'); + late final _VecInt_Close = + _VecInt_ClosePtr.asFunction(); ffi.Pointer VecInt_Data( VecInt vec, @@ -16882,11 +18722,13 @@ class CvNative { ); } - late final _VecInt_DataPtr = - _lookup Function(VecInt, ffi.Pointer>)>>( - 'VecInt_Data'); - late final _VecInt_Data = - _VecInt_DataPtr.asFunction Function(VecInt, ffi.Pointer>)>(); + late final _VecInt_DataPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecInt, ffi.Pointer>)>>('VecInt_Data'); + late final _VecInt_Data = _VecInt_DataPtr.asFunction< + ffi.Pointer Function( + VecInt, ffi.Pointer>)>(); ffi.Pointer VecInt_New( ffi.Pointer rval, @@ -16896,9 +18738,11 @@ class CvNative { ); } - late final _VecInt_NewPtr = - _lookup Function(ffi.Pointer)>>('VecInt_New'); - late final _VecInt_New = _VecInt_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecInt_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('VecInt_New'); + late final _VecInt_New = _VecInt_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Copy from a pointer ffi.Pointer VecInt_NewFromPointer( @@ -16915,10 +18759,11 @@ class CvNative { late final _VecInt_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecInt_NewFromPointer'); + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecInt_NewFromPointer'); late final _VecInt_NewFromPointer = _VecInt_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecInt_NewFromVec( VecInt vec, @@ -16930,11 +18775,12 @@ class CvNative { ); } - late final _VecInt_NewFromVecPtr = - _lookup Function(VecInt, ffi.Pointer)>>( - 'VecInt_NewFromVec'); - late final _VecInt_NewFromVec = - _VecInt_NewFromVecPtr.asFunction Function(VecInt, ffi.Pointer)>(); + late final _VecInt_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecInt, ffi.Pointer)>>('VecInt_NewFromVec'); + late final _VecInt_NewFromVec = _VecInt_NewFromVecPtr.asFunction< + ffi.Pointer Function(VecInt, ffi.Pointer)>(); ffi.Pointer VecInt_Size( VecInt vec, @@ -16946,11 +18792,12 @@ class CvNative { ); } - late final _VecInt_SizePtr = - _lookup Function(VecInt, ffi.Pointer)>>( - 'VecInt_Size'); - late final _VecInt_Size = - _VecInt_SizePtr.asFunction Function(VecInt, ffi.Pointer)>(); + late final _VecInt_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecInt, ffi.Pointer)>>('VecInt_Size'); + late final _VecInt_Size = _VecInt_SizePtr.asFunction< + ffi.Pointer Function(VecInt, ffi.Pointer)>(); ffi.Pointer VecKeyPoint_Append( VecKeyPoint vec, @@ -16962,11 +18809,12 @@ class CvNative { ); } - late final _VecKeyPoint_AppendPtr = - _lookup Function(VecKeyPoint, KeyPoint)>>( - 'VecKeyPoint_Append'); - late final _VecKeyPoint_Append = - _VecKeyPoint_AppendPtr.asFunction Function(VecKeyPoint, KeyPoint)>(); + late final _VecKeyPoint_AppendPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecKeyPoint, KeyPoint)>>('VecKeyPoint_Append'); + late final _VecKeyPoint_Append = _VecKeyPoint_AppendPtr.asFunction< + ffi.Pointer Function(VecKeyPoint, KeyPoint)>(); ffi.Pointer VecKeyPoint_At( VecKeyPoint vec, @@ -16981,10 +18829,12 @@ class CvNative { } late final _VecKeyPoint_AtPtr = _lookup< - ffi.NativeFunction Function(VecKeyPoint, ffi.Int, ffi.Pointer)>>( - 'VecKeyPoint_At'); + ffi.NativeFunction< + ffi.Pointer Function( + VecKeyPoint, ffi.Int, ffi.Pointer)>>('VecKeyPoint_At'); late final _VecKeyPoint_At = _VecKeyPoint_AtPtr.asFunction< - ffi.Pointer Function(VecKeyPoint, int, ffi.Pointer)>(); + ffi.Pointer Function( + VecKeyPoint, int, ffi.Pointer)>(); void VecKeyPoint_Close( VecKeyPointPtr vec, @@ -16995,8 +18845,10 @@ class CvNative { } late final _VecKeyPoint_ClosePtr = - _lookup>('VecKeyPoint_Close'); - late final _VecKeyPoint_Close = _VecKeyPoint_ClosePtr.asFunction(); + _lookup>( + 'VecKeyPoint_Close'); + late final _VecKeyPoint_Close = + _VecKeyPoint_ClosePtr.asFunction(); ffi.Pointer VecKeyPoint_New( ffi.Pointer rval, @@ -17006,11 +18858,12 @@ class CvNative { ); } - late final _VecKeyPoint_NewPtr = - _lookup Function(ffi.Pointer)>>( - 'VecKeyPoint_New'); - late final _VecKeyPoint_New = - _VecKeyPoint_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecKeyPoint_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecKeyPoint_New'); + late final _VecKeyPoint_New = _VecKeyPoint_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecKeyPoint_NewFromPointer( ffi.Pointer keypoints, @@ -17026,10 +18879,12 @@ class CvNative { late final _VecKeyPoint_NewFromPointerPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecKeyPoint_NewFromPointer'); + late final _VecKeyPoint_NewFromPointer = + _VecKeyPoint_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecKeyPoint_NewFromPointer'); - late final _VecKeyPoint_NewFromPointer = _VecKeyPoint_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecKeyPoint_NewFromVec( VecKeyPoint vec, @@ -17041,9 +18896,10 @@ class CvNative { ); } - late final _VecKeyPoint_NewFromVecPtr = - _lookup Function(VecKeyPoint, ffi.Pointer)>>( - 'VecKeyPoint_NewFromVec'); + late final _VecKeyPoint_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecKeyPoint, + ffi.Pointer)>>('VecKeyPoint_NewFromVec'); late final _VecKeyPoint_NewFromVec = _VecKeyPoint_NewFromVecPtr.asFunction< ffi.Pointer Function(VecKeyPoint, ffi.Pointer)>(); @@ -17057,11 +18913,12 @@ class CvNative { ); } - late final _VecKeyPoint_SizePtr = - _lookup Function(VecKeyPoint, ffi.Pointer)>>( - 'VecKeyPoint_Size'); - late final _VecKeyPoint_Size = - _VecKeyPoint_SizePtr.asFunction Function(VecKeyPoint, ffi.Pointer)>(); + late final _VecKeyPoint_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecKeyPoint, ffi.Pointer)>>('VecKeyPoint_Size'); + late final _VecKeyPoint_Size = _VecKeyPoint_SizePtr.asFunction< + ffi.Pointer Function(VecKeyPoint, ffi.Pointer)>(); ffi.Pointer VecMat_Append( VecMat vec, @@ -17074,8 +18931,10 @@ class CvNative { } late final _VecMat_AppendPtr = - _lookup Function(VecMat, Mat)>>('VecMat_Append'); - late final _VecMat_Append = _VecMat_AppendPtr.asFunction Function(VecMat, Mat)>(); + _lookup Function(VecMat, Mat)>>( + 'VecMat_Append'); + late final _VecMat_Append = _VecMat_AppendPtr.asFunction< + ffi.Pointer Function(VecMat, Mat)>(); ffi.Pointer VecMat_At( VecMat vec, @@ -17089,11 +18948,12 @@ class CvNative { ); } - late final _VecMat_AtPtr = - _lookup Function(VecMat, ffi.Int, ffi.Pointer)>>( - 'VecMat_At'); - late final _VecMat_At = - _VecMat_AtPtr.asFunction Function(VecMat, int, ffi.Pointer)>(); + late final _VecMat_AtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecMat, ffi.Int, ffi.Pointer)>>('VecMat_At'); + late final _VecMat_At = _VecMat_AtPtr.asFunction< + ffi.Pointer Function(VecMat, int, ffi.Pointer)>(); void VecMat_Close( VecMatPtr vec, @@ -17103,8 +18963,10 @@ class CvNative { ); } - late final _VecMat_ClosePtr = _lookup>('VecMat_Close'); - late final _VecMat_Close = _VecMat_ClosePtr.asFunction(); + late final _VecMat_ClosePtr = + _lookup>('VecMat_Close'); + late final _VecMat_Close = + _VecMat_ClosePtr.asFunction(); ffi.Pointer VecMat_New( ffi.Pointer rval, @@ -17114,9 +18976,11 @@ class CvNative { ); } - late final _VecMat_NewPtr = - _lookup Function(ffi.Pointer)>>('VecMat_New'); - late final _VecMat_New = _VecMat_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecMat_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('VecMat_New'); + late final _VecMat_New = _VecMat_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecMat_NewFromPointer( ffi.Pointer mats, @@ -17131,10 +18995,12 @@ class CvNative { } late final _VecMat_NewFromPointerPtr = _lookup< - ffi.NativeFunction Function(ffi.Pointer, ffi.Int, ffi.Pointer)>>( - 'VecMat_NewFromPointer'); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecMat_NewFromPointer'); late final _VecMat_NewFromPointer = _VecMat_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecMat_NewFromVec( VecMat vec, @@ -17146,11 +19012,12 @@ class CvNative { ); } - late final _VecMat_NewFromVecPtr = - _lookup Function(VecMat, ffi.Pointer)>>( - 'VecMat_NewFromVec'); - late final _VecMat_NewFromVec = - _VecMat_NewFromVecPtr.asFunction Function(VecMat, ffi.Pointer)>(); + late final _VecMat_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecMat, ffi.Pointer)>>('VecMat_NewFromVec'); + late final _VecMat_NewFromVec = _VecMat_NewFromVecPtr.asFunction< + ffi.Pointer Function(VecMat, ffi.Pointer)>(); ffi.Pointer VecMat_Size( VecMat vec, @@ -17162,11 +19029,12 @@ class CvNative { ); } - late final _VecMat_SizePtr = - _lookup Function(VecMat, ffi.Pointer)>>( - 'VecMat_Size'); - late final _VecMat_Size = - _VecMat_SizePtr.asFunction Function(VecMat, ffi.Pointer)>(); + late final _VecMat_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecMat, ffi.Pointer)>>('VecMat_Size'); + late final _VecMat_Size = _VecMat_SizePtr.asFunction< + ffi.Pointer Function(VecMat, ffi.Pointer)>(); ffi.Pointer VecPoint2f_Append( VecPoint2f vec, @@ -17178,10 +19046,12 @@ class CvNative { ); } - late final _VecPoint2f_AppendPtr = - _lookup Function(VecPoint2f, Point2f)>>('VecPoint2f_Append'); - late final _VecPoint2f_Append = - _VecPoint2f_AppendPtr.asFunction Function(VecPoint2f, Point2f)>(); + late final _VecPoint2f_AppendPtr = _lookup< + ffi + .NativeFunction Function(VecPoint2f, Point2f)>>( + 'VecPoint2f_Append'); + late final _VecPoint2f_Append = _VecPoint2f_AppendPtr.asFunction< + ffi.Pointer Function(VecPoint2f, Point2f)>(); ffi.Pointer VecPoint2f_At( VecPoint2f vec, @@ -17195,11 +19065,12 @@ class CvNative { ); } - late final _VecPoint2f_AtPtr = - _lookup Function(VecPoint2f, ffi.Int, ffi.Pointer)>>( - 'VecPoint2f_At'); - late final _VecPoint2f_At = - _VecPoint2f_AtPtr.asFunction Function(VecPoint2f, int, ffi.Pointer)>(); + late final _VecPoint2f_AtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint2f, ffi.Int, ffi.Pointer)>>('VecPoint2f_At'); + late final _VecPoint2f_At = _VecPoint2f_AtPtr.asFunction< + ffi.Pointer Function(VecPoint2f, int, ffi.Pointer)>(); void VecPoint2f_Close( VecPoint2fPtr vec, @@ -17210,8 +19081,10 @@ class CvNative { } late final _VecPoint2f_ClosePtr = - _lookup>('VecPoint2f_Close'); - late final _VecPoint2f_Close = _VecPoint2f_ClosePtr.asFunction(); + _lookup>( + 'VecPoint2f_Close'); + late final _VecPoint2f_Close = + _VecPoint2f_ClosePtr.asFunction(); ffi.Pointer VecPoint2f_New( ffi.Pointer rval, @@ -17221,10 +19094,12 @@ class CvNative { ); } - late final _VecPoint2f_NewPtr = - _lookup Function(ffi.Pointer)>>('VecPoint2f_New'); - late final _VecPoint2f_New = - _VecPoint2f_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecPoint2f_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecPoint2f_New'); + late final _VecPoint2f_New = _VecPoint2f_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecPoint2f_NewFromMat( Mat mat, @@ -17236,11 +19111,12 @@ class CvNative { ); } - late final _VecPoint2f_NewFromMatPtr = - _lookup Function(Mat, ffi.Pointer)>>( - 'VecPoint2f_NewFromMat'); - late final _VecPoint2f_NewFromMat = - _VecPoint2f_NewFromMatPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _VecPoint2f_NewFromMatPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('VecPoint2f_NewFromMat'); + late final _VecPoint2f_NewFromMat = _VecPoint2f_NewFromMatPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer VecPoint2f_NewFromPointer( ffi.Pointer pts, @@ -17256,10 +19132,12 @@ class CvNative { late final _VecPoint2f_NewFromPointerPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecPoint2f_NewFromPointer'); + late final _VecPoint2f_NewFromPointer = + _VecPoint2f_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecPoint2f_NewFromPointer'); - late final _VecPoint2f_NewFromPointer = _VecPoint2f_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecPoint2f_NewFromVec( VecPoint2f vec, @@ -17271,9 +19149,10 @@ class CvNative { ); } - late final _VecPoint2f_NewFromVecPtr = - _lookup Function(VecPoint2f, ffi.Pointer)>>( - 'VecPoint2f_NewFromVec'); + late final _VecPoint2f_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint2f, ffi.Pointer)>>('VecPoint2f_NewFromVec'); late final _VecPoint2f_NewFromVec = _VecPoint2f_NewFromVecPtr.asFunction< ffi.Pointer Function(VecPoint2f, ffi.Pointer)>(); @@ -17287,11 +19166,12 @@ class CvNative { ); } - late final _VecPoint2f_SizePtr = - _lookup Function(VecPoint2f, ffi.Pointer)>>( - 'VecPoint2f_Size'); - late final _VecPoint2f_Size = - _VecPoint2f_SizePtr.asFunction Function(VecPoint2f, ffi.Pointer)>(); + late final _VecPoint2f_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint2f, ffi.Pointer)>>('VecPoint2f_Size'); + late final _VecPoint2f_Size = _VecPoint2f_SizePtr.asFunction< + ffi.Pointer Function(VecPoint2f, ffi.Pointer)>(); ffi.Pointer VecPoint3f_Append( VecPoint3f vec, @@ -17303,10 +19183,12 @@ class CvNative { ); } - late final _VecPoint3f_AppendPtr = - _lookup Function(VecPoint3f, Point3f)>>('VecPoint3f_Append'); - late final _VecPoint3f_Append = - _VecPoint3f_AppendPtr.asFunction Function(VecPoint3f, Point3f)>(); + late final _VecPoint3f_AppendPtr = _lookup< + ffi + .NativeFunction Function(VecPoint3f, Point3f)>>( + 'VecPoint3f_Append'); + late final _VecPoint3f_Append = _VecPoint3f_AppendPtr.asFunction< + ffi.Pointer Function(VecPoint3f, Point3f)>(); ffi.Pointer VecPoint3f_At( VecPoint3f vec, @@ -17320,11 +19202,12 @@ class CvNative { ); } - late final _VecPoint3f_AtPtr = - _lookup Function(VecPoint3f, ffi.Int, ffi.Pointer)>>( - 'VecPoint3f_At'); - late final _VecPoint3f_At = - _VecPoint3f_AtPtr.asFunction Function(VecPoint3f, int, ffi.Pointer)>(); + late final _VecPoint3f_AtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint3f, ffi.Int, ffi.Pointer)>>('VecPoint3f_At'); + late final _VecPoint3f_At = _VecPoint3f_AtPtr.asFunction< + ffi.Pointer Function(VecPoint3f, int, ffi.Pointer)>(); void VecPoint3f_Close( VecPoint3fPtr vec, @@ -17335,8 +19218,10 @@ class CvNative { } late final _VecPoint3f_ClosePtr = - _lookup>('VecPoint3f_Close'); - late final _VecPoint3f_Close = _VecPoint3f_ClosePtr.asFunction(); + _lookup>( + 'VecPoint3f_Close'); + late final _VecPoint3f_Close = + _VecPoint3f_ClosePtr.asFunction(); ffi.Pointer VecPoint3f_New( ffi.Pointer rval, @@ -17346,10 +19231,12 @@ class CvNative { ); } - late final _VecPoint3f_NewPtr = - _lookup Function(ffi.Pointer)>>('VecPoint3f_New'); - late final _VecPoint3f_New = - _VecPoint3f_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecPoint3f_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecPoint3f_New'); + late final _VecPoint3f_New = _VecPoint3f_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecPoint3f_NewFromMat( Mat mat, @@ -17361,11 +19248,12 @@ class CvNative { ); } - late final _VecPoint3f_NewFromMatPtr = - _lookup Function(Mat, ffi.Pointer)>>( - 'VecPoint3f_NewFromMat'); - late final _VecPoint3f_NewFromMat = - _VecPoint3f_NewFromMatPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _VecPoint3f_NewFromMatPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('VecPoint3f_NewFromMat'); + late final _VecPoint3f_NewFromMat = _VecPoint3f_NewFromMatPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); ffi.Pointer VecPoint3f_NewFromPointer( ffi.Pointer points, @@ -17381,10 +19269,12 @@ class CvNative { late final _VecPoint3f_NewFromPointerPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecPoint3f_NewFromPointer'); + late final _VecPoint3f_NewFromPointer = + _VecPoint3f_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecPoint3f_NewFromPointer'); - late final _VecPoint3f_NewFromPointer = _VecPoint3f_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecPoint3f_NewFromVec( VecPoint3f vec, @@ -17396,9 +19286,10 @@ class CvNative { ); } - late final _VecPoint3f_NewFromVecPtr = - _lookup Function(VecPoint3f, ffi.Pointer)>>( - 'VecPoint3f_NewFromVec'); + late final _VecPoint3f_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint3f, ffi.Pointer)>>('VecPoint3f_NewFromVec'); late final _VecPoint3f_NewFromVec = _VecPoint3f_NewFromVecPtr.asFunction< ffi.Pointer Function(VecPoint3f, ffi.Pointer)>(); @@ -17412,11 +19303,12 @@ class CvNative { ); } - late final _VecPoint3f_SizePtr = - _lookup Function(VecPoint3f, ffi.Pointer)>>( - 'VecPoint3f_Size'); - late final _VecPoint3f_Size = - _VecPoint3f_SizePtr.asFunction Function(VecPoint3f, ffi.Pointer)>(); + late final _VecPoint3f_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint3f, ffi.Pointer)>>('VecPoint3f_Size'); + late final _VecPoint3f_Size = _VecPoint3f_SizePtr.asFunction< + ffi.Pointer Function(VecPoint3f, ffi.Pointer)>(); ffi.Pointer VecPoint_Append( VecPoint vec, @@ -17428,10 +19320,11 @@ class CvNative { ); } - late final _VecPoint_AppendPtr = - _lookup Function(VecPoint, Point)>>('VecPoint_Append'); - late final _VecPoint_Append = - _VecPoint_AppendPtr.asFunction Function(VecPoint, Point)>(); + late final _VecPoint_AppendPtr = _lookup< + ffi.NativeFunction Function(VecPoint, Point)>>( + 'VecPoint_Append'); + late final _VecPoint_Append = _VecPoint_AppendPtr.asFunction< + ffi.Pointer Function(VecPoint, Point)>(); ffi.Pointer VecPoint_At( VecPoint vec, @@ -17445,11 +19338,12 @@ class CvNative { ); } - late final _VecPoint_AtPtr = - _lookup Function(VecPoint, ffi.Int, ffi.Pointer)>>( - 'VecPoint_At'); - late final _VecPoint_At = - _VecPoint_AtPtr.asFunction Function(VecPoint, int, ffi.Pointer)>(); + late final _VecPoint_AtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Int, ffi.Pointer)>>('VecPoint_At'); + late final _VecPoint_At = _VecPoint_AtPtr.asFunction< + ffi.Pointer Function(VecPoint, int, ffi.Pointer)>(); void VecPoint_Close( VecPointPtr vec, @@ -17460,8 +19354,10 @@ class CvNative { } late final _VecPoint_ClosePtr = - _lookup>('VecPoint_Close'); - late final _VecPoint_Close = _VecPoint_ClosePtr.asFunction(); + _lookup>( + 'VecPoint_Close'); + late final _VecPoint_Close = + _VecPoint_ClosePtr.asFunction(); ffi.Pointer VecPoint_New( ffi.Pointer rval, @@ -17471,10 +19367,12 @@ class CvNative { ); } - late final _VecPoint_NewPtr = - _lookup Function(ffi.Pointer)>>('VecPoint_New'); - late final _VecPoint_New = - _VecPoint_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecPoint_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecPoint_New'); + late final _VecPoint_New = _VecPoint_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecPoint_NewFromMat( Mat mat, @@ -17486,11 +19384,12 @@ class CvNative { ); } - late final _VecPoint_NewFromMatPtr = - _lookup Function(Mat, ffi.Pointer)>>( - 'VecPoint_NewFromMat'); - late final _VecPoint_NewFromMat = - _VecPoint_NewFromMatPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _VecPoint_NewFromMatPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('VecPoint_NewFromMat'); + late final _VecPoint_NewFromMat = _VecPoint_NewFromMatPtr.asFunction< + ffi.Pointer Function(Mat, ffi.Pointer)>(); /// Copy from a pointer ffi.Pointer VecPoint_NewFromPointer( @@ -17507,10 +19406,11 @@ class CvNative { late final _VecPoint_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecPoint_NewFromPointer'); + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecPoint_NewFromPointer'); late final _VecPoint_NewFromPointer = _VecPoint_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecPoint_NewFromVec( VecPoint vec, @@ -17522,11 +19422,12 @@ class CvNative { ); } - late final _VecPoint_NewFromVecPtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'VecPoint_NewFromVec'); - late final _VecPoint_NewFromVec = - _VecPoint_NewFromVecPtr.asFunction Function(VecPoint, ffi.Pointer)>(); + late final _VecPoint_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('VecPoint_NewFromVec'); + late final _VecPoint_NewFromVec = _VecPoint_NewFromVecPtr.asFunction< + ffi.Pointer Function(VecPoint, ffi.Pointer)>(); ffi.Pointer VecPoint_Size( VecPoint vec, @@ -17538,11 +19439,12 @@ class CvNative { ); } - late final _VecPoint_SizePtr = - _lookup Function(VecPoint, ffi.Pointer)>>( - 'VecPoint_Size'); - late final _VecPoint_Size = - _VecPoint_SizePtr.asFunction Function(VecPoint, ffi.Pointer)>(); + late final _VecPoint_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint, ffi.Pointer)>>('VecPoint_Size'); + late final _VecPoint_Size = _VecPoint_SizePtr.asFunction< + ffi.Pointer Function(VecPoint, ffi.Pointer)>(); ffi.Pointer VecPrim_Append( VecPrim vec, @@ -17554,9 +19456,11 @@ class CvNative { ); } - late final _VecPrim_AppendPtr = - _lookup Function(VecPrim, Prim)>>('VecPrim_Append'); - late final _VecPrim_Append = _VecPrim_AppendPtr.asFunction Function(VecPrim, Prim)>(); + late final _VecPrim_AppendPtr = _lookup< + ffi.NativeFunction Function(VecPrim, Prim)>>( + 'VecPrim_Append'); + late final _VecPrim_Append = _VecPrim_AppendPtr.asFunction< + ffi.Pointer Function(VecPrim, Prim)>(); ffi.Pointer VecPrim_At( VecPrim vec, @@ -17570,11 +19474,12 @@ class CvNative { ); } - late final _VecPrim_AtPtr = - _lookup Function(VecPrim, ffi.Int, ffi.Pointer)>>( - 'VecPrim_At'); - late final _VecPrim_At = - _VecPrim_AtPtr.asFunction Function(VecPrim, int, ffi.Pointer)>(); + late final _VecPrim_AtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPrim, ffi.Int, ffi.Pointer)>>('VecPrim_At'); + late final _VecPrim_At = _VecPrim_AtPtr.asFunction< + ffi.Pointer Function(VecPrim, int, ffi.Pointer)>(); void VecPrim_Close( VecPrimPtr vec, @@ -17584,8 +19489,11 @@ class CvNative { ); } - late final _VecPrim_ClosePtr = _lookup>('VecPrim_Close'); - late final _VecPrim_Close = _VecPrim_ClosePtr.asFunction(); + late final _VecPrim_ClosePtr = + _lookup>( + 'VecPrim_Close'); + late final _VecPrim_Close = + _VecPrim_ClosePtr.asFunction(); ffi.Pointer VecPrim_New( ffi.Pointer rval, @@ -17595,10 +19503,11 @@ class CvNative { ); } - late final _VecPrim_NewPtr = - _lookup Function(ffi.Pointer)>>('VecPrim_New'); - late final _VecPrim_New = - _VecPrim_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecPrim_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('VecPrim_New'); + late final _VecPrim_New = _VecPrim_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecPrim_NewFromPointer( ffi.Pointer points, @@ -17613,11 +19522,12 @@ class CvNative { } late final _VecPrim_NewFromPointerPtr = _lookup< - ffi - .NativeFunction Function(ffi.Pointer, ffi.Int, ffi.Pointer)>>( - 'VecPrim_NewFromPointer'); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecPrim_NewFromPointer'); late final _VecPrim_NewFromPointer = _VecPrim_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecPrim_NewFromVec( VecPrim vec, @@ -17629,11 +19539,12 @@ class CvNative { ); } - late final _VecPrim_NewFromVecPtr = - _lookup Function(VecPrim, ffi.Pointer)>>( - 'VecPrim_NewFromVec'); - late final _VecPrim_NewFromVec = - _VecPrim_NewFromVecPtr.asFunction Function(VecPrim, ffi.Pointer)>(); + late final _VecPrim_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPrim, ffi.Pointer)>>('VecPrim_NewFromVec'); + late final _VecPrim_NewFromVec = _VecPrim_NewFromVecPtr.asFunction< + ffi.Pointer Function(VecPrim, ffi.Pointer)>(); ffi.Pointer VecPrim_Size( VecPrim vec, @@ -17645,11 +19556,12 @@ class CvNative { ); } - late final _VecPrim_SizePtr = - _lookup Function(VecPrim, ffi.Pointer)>>( - 'VecPrim_Size'); - late final _VecPrim_Size = - _VecPrim_SizePtr.asFunction Function(VecPrim, ffi.Pointer)>(); + late final _VecPrim_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPrim, ffi.Pointer)>>('VecPrim_Size'); + late final _VecPrim_Size = _VecPrim_SizePtr.asFunction< + ffi.Pointer Function(VecPrim, ffi.Pointer)>(); ffi.Pointer VecRect_Append( VecRect vec, @@ -17661,9 +19573,11 @@ class CvNative { ); } - late final _VecRect_AppendPtr = - _lookup Function(VecRect, Rect)>>('VecRect_Append'); - late final _VecRect_Append = _VecRect_AppendPtr.asFunction Function(VecRect, Rect)>(); + late final _VecRect_AppendPtr = _lookup< + ffi.NativeFunction Function(VecRect, Rect)>>( + 'VecRect_Append'); + late final _VecRect_Append = _VecRect_AppendPtr.asFunction< + ffi.Pointer Function(VecRect, Rect)>(); ffi.Pointer VecRect_At( VecRect vec, @@ -17677,11 +19591,12 @@ class CvNative { ); } - late final _VecRect_AtPtr = - _lookup Function(VecRect, ffi.Int, ffi.Pointer)>>( - 'VecRect_At'); - late final _VecRect_At = - _VecRect_AtPtr.asFunction Function(VecRect, int, ffi.Pointer)>(); + late final _VecRect_AtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecRect, ffi.Int, ffi.Pointer)>>('VecRect_At'); + late final _VecRect_At = _VecRect_AtPtr.asFunction< + ffi.Pointer Function(VecRect, int, ffi.Pointer)>(); void VecRect_Close( VecRectPtr vec, @@ -17691,8 +19606,11 @@ class CvNative { ); } - late final _VecRect_ClosePtr = _lookup>('VecRect_Close'); - late final _VecRect_Close = _VecRect_ClosePtr.asFunction(); + late final _VecRect_ClosePtr = + _lookup>( + 'VecRect_Close'); + late final _VecRect_Close = + _VecRect_ClosePtr.asFunction(); ffi.Pointer VecRect_New( ffi.Pointer rval, @@ -17702,10 +19620,11 @@ class CvNative { ); } - late final _VecRect_NewPtr = - _lookup Function(ffi.Pointer)>>('VecRect_New'); - late final _VecRect_New = - _VecRect_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecRect_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('VecRect_New'); + late final _VecRect_New = _VecRect_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecRect_NewFromPointer( ffi.Pointer rects, @@ -17720,11 +19639,12 @@ class CvNative { } late final _VecRect_NewFromPointerPtr = _lookup< - ffi - .NativeFunction Function(ffi.Pointer, ffi.Int, ffi.Pointer)>>( - 'VecRect_NewFromPointer'); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecRect_NewFromPointer'); late final _VecRect_NewFromPointer = _VecRect_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecRect_NewFromVec( VecRect vec, @@ -17736,11 +19656,12 @@ class CvNative { ); } - late final _VecRect_NewFromVecPtr = - _lookup Function(VecRect, ffi.Pointer)>>( - 'VecRect_NewFromVec'); - late final _VecRect_NewFromVec = - _VecRect_NewFromVecPtr.asFunction Function(VecRect, ffi.Pointer)>(); + late final _VecRect_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecRect, ffi.Pointer)>>('VecRect_NewFromVec'); + late final _VecRect_NewFromVec = _VecRect_NewFromVecPtr.asFunction< + ffi.Pointer Function(VecRect, ffi.Pointer)>(); ffi.Pointer VecRect_Size( VecRect vec, @@ -17752,11 +19673,12 @@ class CvNative { ); } - late final _VecRect_SizePtr = - _lookup Function(VecRect, ffi.Pointer)>>( - 'VecRect_Size'); - late final _VecRect_Size = - _VecRect_SizePtr.asFunction Function(VecRect, ffi.Pointer)>(); + late final _VecRect_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecRect, ffi.Pointer)>>('VecRect_Size'); + late final _VecRect_Size = _VecRect_SizePtr.asFunction< + ffi.Pointer Function(VecRect, ffi.Pointer)>(); ffi.Pointer VecUChar_Append( VecUChar vec, @@ -17768,10 +19690,11 @@ class CvNative { ); } - late final _VecUChar_AppendPtr = - _lookup Function(VecUChar, uchar)>>('VecUChar_Append'); - late final _VecUChar_Append = - _VecUChar_AppendPtr.asFunction Function(VecUChar, int)>(); + late final _VecUChar_AppendPtr = _lookup< + ffi.NativeFunction Function(VecUChar, uchar)>>( + 'VecUChar_Append'); + late final _VecUChar_Append = _VecUChar_AppendPtr.asFunction< + ffi.Pointer Function(VecUChar, int)>(); ffi.Pointer VecUChar_At( VecUChar vec, @@ -17785,11 +19708,12 @@ class CvNative { ); } - late final _VecUChar_AtPtr = - _lookup Function(VecUChar, ffi.Int, ffi.Pointer)>>( - 'VecUChar_At'); - late final _VecUChar_At = - _VecUChar_AtPtr.asFunction Function(VecUChar, int, ffi.Pointer)>(); + late final _VecUChar_AtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecUChar, ffi.Int, ffi.Pointer)>>('VecUChar_At'); + late final _VecUChar_At = _VecUChar_AtPtr.asFunction< + ffi.Pointer Function(VecUChar, int, ffi.Pointer)>(); ffi.Pointer VecUChar_AtNoBoundCheck( VecUChar vec, @@ -17803,9 +19727,10 @@ class CvNative { ); } - late final _VecUChar_AtNoBoundCheckPtr = - _lookup Function(VecUChar, ffi.Int, ffi.Pointer)>>( - 'VecUChar_AtNoBoundCheck'); + late final _VecUChar_AtNoBoundCheckPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecUChar, ffi.Int, + ffi.Pointer)>>('VecUChar_AtNoBoundCheck'); late final _VecUChar_AtNoBoundCheck = _VecUChar_AtNoBoundCheckPtr.asFunction< ffi.Pointer Function(VecUChar, int, ffi.Pointer)>(); @@ -17818,8 +19743,10 @@ class CvNative { } late final _VecUChar_ClosePtr = - _lookup>('VecUChar_Close'); - late final _VecUChar_Close = _VecUChar_ClosePtr.asFunction(); + _lookup>( + 'VecUChar_Close'); + late final _VecUChar_Close = + _VecUChar_ClosePtr.asFunction(); ffi.Pointer VecUChar_Data( VecUChar vec, @@ -17831,11 +19758,13 @@ class CvNative { ); } - late final _VecUChar_DataPtr = - _lookup Function(VecUChar, ffi.Pointer>)>>( - 'VecUChar_Data'); + late final _VecUChar_DataPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecUChar, ffi.Pointer>)>>('VecUChar_Data'); late final _VecUChar_Data = _VecUChar_DataPtr.asFunction< - ffi.Pointer Function(VecUChar, ffi.Pointer>)>(); + ffi.Pointer Function( + VecUChar, ffi.Pointer>)>(); ffi.Pointer VecUChar_New( ffi.Pointer rval, @@ -17845,10 +19774,12 @@ class CvNative { ); } - late final _VecUChar_NewPtr = - _lookup Function(ffi.Pointer)>>('VecUChar_New'); - late final _VecUChar_New = - _VecUChar_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecUChar_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecUChar_New'); + late final _VecUChar_New = _VecUChar_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecUChar_NewFromPointer( ffi.Pointer p, @@ -17864,10 +19795,11 @@ class CvNative { late final _VecUChar_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecUChar_NewFromPointer'); + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecUChar_NewFromPointer'); late final _VecUChar_NewFromPointer = _VecUChar_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecUChar_NewFromVec( VecUChar vec, @@ -17879,11 +19811,12 @@ class CvNative { ); } - late final _VecUChar_NewFromVecPtr = - _lookup Function(VecUChar, ffi.Pointer)>>( - 'VecUChar_NewFromVec'); - late final _VecUChar_NewFromVec = - _VecUChar_NewFromVecPtr.asFunction Function(VecUChar, ffi.Pointer)>(); + late final _VecUChar_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecUChar, ffi.Pointer)>>('VecUChar_NewFromVec'); + late final _VecUChar_NewFromVec = _VecUChar_NewFromVecPtr.asFunction< + ffi.Pointer Function(VecUChar, ffi.Pointer)>(); ffi.Pointer VecUChar_Size( VecUChar vec, @@ -17895,11 +19828,12 @@ class CvNative { ); } - late final _VecUChar_SizePtr = - _lookup Function(VecUChar, ffi.Pointer)>>( - 'VecUChar_Size'); - late final _VecUChar_Size = - _VecUChar_SizePtr.asFunction Function(VecUChar, ffi.Pointer)>(); + late final _VecUChar_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecUChar, ffi.Pointer)>>('VecUChar_Size'); + late final _VecUChar_Size = _VecUChar_SizePtr.asFunction< + ffi.Pointer Function(VecUChar, ffi.Pointer)>(); ffi.Pointer VecVec4i_Append( VecVec4i vec, @@ -17911,10 +19845,11 @@ class CvNative { ); } - late final _VecVec4i_AppendPtr = - _lookup Function(VecVec4i, Vec4i)>>('VecVec4i_Append'); - late final _VecVec4i_Append = - _VecVec4i_AppendPtr.asFunction Function(VecVec4i, Vec4i)>(); + late final _VecVec4i_AppendPtr = _lookup< + ffi.NativeFunction Function(VecVec4i, Vec4i)>>( + 'VecVec4i_Append'); + late final _VecVec4i_Append = _VecVec4i_AppendPtr.asFunction< + ffi.Pointer Function(VecVec4i, Vec4i)>(); ffi.Pointer VecVec4i_At( VecVec4i vec, @@ -17928,11 +19863,12 @@ class CvNative { ); } - late final _VecVec4i_AtPtr = - _lookup Function(VecVec4i, ffi.Int, ffi.Pointer)>>( - 'VecVec4i_At'); - late final _VecVec4i_At = - _VecVec4i_AtPtr.asFunction Function(VecVec4i, int, ffi.Pointer)>(); + late final _VecVec4i_AtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVec4i, ffi.Int, ffi.Pointer)>>('VecVec4i_At'); + late final _VecVec4i_At = _VecVec4i_AtPtr.asFunction< + ffi.Pointer Function(VecVec4i, int, ffi.Pointer)>(); void VecVec4i_Close( VecVec4iPtr vec, @@ -17943,8 +19879,10 @@ class CvNative { } late final _VecVec4i_ClosePtr = - _lookup>('VecVec4i_Close'); - late final _VecVec4i_Close = _VecVec4i_ClosePtr.asFunction(); + _lookup>( + 'VecVec4i_Close'); + late final _VecVec4i_Close = + _VecVec4i_ClosePtr.asFunction(); ffi.Pointer VecVec4i_New( ffi.Pointer rval, @@ -17954,10 +19892,12 @@ class CvNative { ); } - late final _VecVec4i_NewPtr = - _lookup Function(ffi.Pointer)>>('VecVec4i_New'); - late final _VecVec4i_New = - _VecVec4i_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecVec4i_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecVec4i_New'); + late final _VecVec4i_New = _VecVec4i_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecVec4i_NewFromPointer( ffi.Pointer data, @@ -17973,10 +19913,11 @@ class CvNative { late final _VecVec4i_NewFromPointerPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecVec4i_NewFromPointer'); + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecVec4i_NewFromPointer'); late final _VecVec4i_NewFromPointer = _VecVec4i_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecVec4i_Size( VecVec4i vec, @@ -17988,11 +19929,12 @@ class CvNative { ); } - late final _VecVec4i_SizePtr = - _lookup Function(VecVec4i, ffi.Pointer)>>( - 'VecVec4i_Size'); - late final _VecVec4i_Size = - _VecVec4i_SizePtr.asFunction Function(VecVec4i, ffi.Pointer)>(); + late final _VecVec4i_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVec4i, ffi.Pointer)>>('VecVec4i_Size'); + late final _VecVec4i_Size = _VecVec4i_SizePtr.asFunction< + ffi.Pointer Function(VecVec4i, ffi.Pointer)>(); ffi.Pointer VecVecChar_Append( VecVecChar vec, @@ -18004,10 +19946,12 @@ class CvNative { ); } - late final _VecVecChar_AppendPtr = - _lookup Function(VecVecChar, VecChar)>>('VecVecChar_Append'); - late final _VecVecChar_Append = - _VecVecChar_AppendPtr.asFunction Function(VecVecChar, VecChar)>(); + late final _VecVecChar_AppendPtr = _lookup< + ffi + .NativeFunction Function(VecVecChar, VecChar)>>( + 'VecVecChar_Append'); + late final _VecVecChar_Append = _VecVecChar_AppendPtr.asFunction< + ffi.Pointer Function(VecVecChar, VecChar)>(); ffi.Pointer VecVecChar_Append_Str( VecVecChar vec, @@ -18019,9 +19963,10 @@ class CvNative { ); } - late final _VecVecChar_Append_StrPtr = - _lookup Function(VecVecChar, ffi.Pointer)>>( - 'VecVecChar_Append_Str'); + late final _VecVecChar_Append_StrPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVecChar, ffi.Pointer)>>('VecVecChar_Append_Str'); late final _VecVecChar_Append_Str = _VecVecChar_Append_StrPtr.asFunction< ffi.Pointer Function(VecVecChar, ffi.Pointer)>(); @@ -18037,11 +19982,12 @@ class CvNative { ); } - late final _VecVecChar_AtPtr = - _lookup Function(VecVecChar, ffi.Int, ffi.Pointer)>>( - 'VecVecChar_At'); - late final _VecVecChar_At = - _VecVecChar_AtPtr.asFunction Function(VecVecChar, int, ffi.Pointer)>(); + late final _VecVecChar_AtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVecChar, ffi.Int, ffi.Pointer)>>('VecVecChar_At'); + late final _VecVecChar_At = _VecVecChar_AtPtr.asFunction< + ffi.Pointer Function(VecVecChar, int, ffi.Pointer)>(); ffi.Pointer VecVecChar_At_Str( VecVecChar vec, @@ -18059,11 +20005,14 @@ class CvNative { late final _VecVecChar_At_StrPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecVecChar, ffi.Int, ffi.Pointer>, + ffi.Pointer Function( + VecVecChar, + ffi.Int, + ffi.Pointer>, ffi.Pointer)>>('VecVecChar_At_Str'); late final _VecVecChar_At_Str = _VecVecChar_At_StrPtr.asFunction< - ffi.Pointer Function( - VecVecChar, int, ffi.Pointer>, ffi.Pointer)>(); + ffi.Pointer Function(VecVecChar, int, + ffi.Pointer>, ffi.Pointer)>(); void VecVecChar_Close( VecVecCharPtr vec, @@ -18074,8 +20023,10 @@ class CvNative { } late final _VecVecChar_ClosePtr = - _lookup>('VecVecChar_Close'); - late final _VecVecChar_Close = _VecVecChar_ClosePtr.asFunction(); + _lookup>( + 'VecVecChar_Close'); + late final _VecVecChar_Close = + _VecVecChar_ClosePtr.asFunction(); ffi.Pointer VecVecChar_New( ffi.Pointer rval, @@ -18085,10 +20036,12 @@ class CvNative { ); } - late final _VecVecChar_NewPtr = - _lookup Function(ffi.Pointer)>>('VecVecChar_New'); - late final _VecVecChar_New = - _VecVecChar_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecVecChar_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecVecChar_New'); + late final _VecVecChar_New = _VecVecChar_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecVecChar_NewFromVec( VecVecChar vec, @@ -18100,9 +20053,10 @@ class CvNative { ); } - late final _VecVecChar_NewFromVecPtr = - _lookup Function(VecVecChar, ffi.Pointer)>>( - 'VecVecChar_NewFromVec'); + late final _VecVecChar_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVecChar, ffi.Pointer)>>('VecVecChar_NewFromVec'); late final _VecVecChar_NewFromVec = _VecVecChar_NewFromVecPtr.asFunction< ffi.Pointer Function(VecVecChar, ffi.Pointer)>(); @@ -18116,11 +20070,12 @@ class CvNative { ); } - late final _VecVecChar_SizePtr = - _lookup Function(VecVecChar, ffi.Pointer)>>( - 'VecVecChar_Size'); - late final _VecVecChar_Size = - _VecVecChar_SizePtr.asFunction Function(VecVecChar, ffi.Pointer)>(); + late final _VecVecChar_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVecChar, ffi.Pointer)>>('VecVecChar_Size'); + late final _VecVecChar_Size = _VecVecChar_SizePtr.asFunction< + ffi.Pointer Function(VecVecChar, ffi.Pointer)>(); ffi.Pointer VecVecDMatch_Append( VecVecDMatch vec, @@ -18132,11 +20087,12 @@ class CvNative { ); } - late final _VecVecDMatch_AppendPtr = - _lookup Function(VecVecDMatch, VecDMatch)>>( - 'VecVecDMatch_Append'); - late final _VecVecDMatch_Append = - _VecVecDMatch_AppendPtr.asFunction Function(VecVecDMatch, VecDMatch)>(); + late final _VecVecDMatch_AppendPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVecDMatch, VecDMatch)>>('VecVecDMatch_Append'); + late final _VecVecDMatch_Append = _VecVecDMatch_AppendPtr.asFunction< + ffi.Pointer Function(VecVecDMatch, VecDMatch)>(); ffi.Pointer VecVecDMatch_At( VecVecDMatch vec, @@ -18151,10 +20107,12 @@ class CvNative { } late final _VecVecDMatch_AtPtr = _lookup< - ffi.NativeFunction Function(VecVecDMatch, ffi.Int, ffi.Pointer)>>( - 'VecVecDMatch_At'); + ffi.NativeFunction< + ffi.Pointer Function(VecVecDMatch, ffi.Int, + ffi.Pointer)>>('VecVecDMatch_At'); late final _VecVecDMatch_At = _VecVecDMatch_AtPtr.asFunction< - ffi.Pointer Function(VecVecDMatch, int, ffi.Pointer)>(); + ffi.Pointer Function( + VecVecDMatch, int, ffi.Pointer)>(); void VecVecDMatch_Close( VecVecDMatchPtr vec, @@ -18165,8 +20123,10 @@ class CvNative { } late final _VecVecDMatch_ClosePtr = - _lookup>('VecVecDMatch_Close'); - late final _VecVecDMatch_Close = _VecVecDMatch_ClosePtr.asFunction(); + _lookup>( + 'VecVecDMatch_Close'); + late final _VecVecDMatch_Close = + _VecVecDMatch_ClosePtr.asFunction(); ffi.Pointer VecVecDMatch_Data( VecVecDMatch vec, @@ -18179,11 +20139,12 @@ class CvNative { } late final _VecVecDMatch_DataPtr = _lookup< - ffi - .NativeFunction Function(VecVecDMatch, ffi.Pointer>)>>( - 'VecVecDMatch_Data'); + ffi.NativeFunction< + ffi.Pointer Function(VecVecDMatch, + ffi.Pointer>)>>('VecVecDMatch_Data'); late final _VecVecDMatch_Data = _VecVecDMatch_DataPtr.asFunction< - ffi.Pointer Function(VecVecDMatch, ffi.Pointer>)>(); + ffi.Pointer Function( + VecVecDMatch, ffi.Pointer>)>(); ffi.Pointer VecVecDMatch_New( ffi.Pointer rval, @@ -18193,11 +20154,12 @@ class CvNative { ); } - late final _VecVecDMatch_NewPtr = - _lookup Function(ffi.Pointer)>>( - 'VecVecDMatch_New'); - late final _VecVecDMatch_New = - _VecVecDMatch_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecVecDMatch_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecVecDMatch_New'); + late final _VecVecDMatch_New = _VecVecDMatch_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecVecDMatch_NewFromPointer( ffi.Pointer matches, @@ -18213,10 +20175,12 @@ class CvNative { late final _VecVecDMatch_NewFromPointerPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecVecDMatch_NewFromPointer'); + late final _VecVecDMatch_NewFromPointer = + _VecVecDMatch_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecVecDMatch_NewFromPointer'); - late final _VecVecDMatch_NewFromPointer = _VecVecDMatch_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecVecDMatch_NewFromVec( VecVecDMatch vec, @@ -18228,11 +20192,13 @@ class CvNative { ); } - late final _VecVecDMatch_NewFromVecPtr = - _lookup Function(VecVecDMatch, ffi.Pointer)>>( - 'VecVecDMatch_NewFromVec'); + late final _VecVecDMatch_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecVecDMatch, + ffi.Pointer)>>('VecVecDMatch_NewFromVec'); late final _VecVecDMatch_NewFromVec = _VecVecDMatch_NewFromVecPtr.asFunction< - ffi.Pointer Function(VecVecDMatch, ffi.Pointer)>(); + ffi.Pointer Function( + VecVecDMatch, ffi.Pointer)>(); ffi.Pointer VecVecDMatch_Size( VecVecDMatch vec, @@ -18244,11 +20210,12 @@ class CvNative { ); } - late final _VecVecDMatch_SizePtr = - _lookup Function(VecVecDMatch, ffi.Pointer)>>( - 'VecVecDMatch_Size'); - late final _VecVecDMatch_Size = - _VecVecDMatch_SizePtr.asFunction Function(VecVecDMatch, ffi.Pointer)>(); + late final _VecVecDMatch_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVecDMatch, ffi.Pointer)>>('VecVecDMatch_Size'); + late final _VecVecDMatch_Size = _VecVecDMatch_SizePtr.asFunction< + ffi.Pointer Function(VecVecDMatch, ffi.Pointer)>(); ffi.Pointer VecVecPoint2f_Append( VecVecPoint2f vec, @@ -18260,11 +20227,12 @@ class CvNative { ); } - late final _VecVecPoint2f_AppendPtr = - _lookup Function(VecVecPoint2f, VecPoint2f)>>( - 'VecVecPoint2f_Append'); - late final _VecVecPoint2f_Append = - _VecVecPoint2f_AppendPtr.asFunction Function(VecVecPoint2f, VecPoint2f)>(); + late final _VecVecPoint2f_AppendPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVecPoint2f, VecPoint2f)>>('VecVecPoint2f_Append'); + late final _VecVecPoint2f_Append = _VecVecPoint2f_AppendPtr.asFunction< + ffi.Pointer Function(VecVecPoint2f, VecPoint2f)>(); ffi.Pointer VecVecPoint2f_At( VecVecPoint2f vec, @@ -18279,11 +20247,12 @@ class CvNative { } late final _VecVecPoint2f_AtPtr = _lookup< - ffi - .NativeFunction Function(VecVecPoint2f, ffi.Int, ffi.Pointer)>>( - 'VecVecPoint2f_At'); + ffi.NativeFunction< + ffi.Pointer Function(VecVecPoint2f, ffi.Int, + ffi.Pointer)>>('VecVecPoint2f_At'); late final _VecVecPoint2f_At = _VecVecPoint2f_AtPtr.asFunction< - ffi.Pointer Function(VecVecPoint2f, int, ffi.Pointer)>(); + ffi.Pointer Function( + VecVecPoint2f, int, ffi.Pointer)>(); void VecVecPoint2f_Close( VecVecPoint2fPtr vec, @@ -18294,8 +20263,10 @@ class CvNative { } late final _VecVecPoint2f_ClosePtr = - _lookup>('VecVecPoint2f_Close'); - late final _VecVecPoint2f_Close = _VecVecPoint2f_ClosePtr.asFunction(); + _lookup>( + 'VecVecPoint2f_Close'); + late final _VecVecPoint2f_Close = + _VecVecPoint2f_ClosePtr.asFunction(); ffi.Pointer VecVecPoint2f_New( ffi.Pointer rval, @@ -18305,11 +20276,12 @@ class CvNative { ); } - late final _VecVecPoint2f_NewPtr = - _lookup Function(ffi.Pointer)>>( - 'VecVecPoint2f_New'); - late final _VecVecPoint2f_New = - _VecVecPoint2f_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecVecPoint2f_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecVecPoint2f_New'); + late final _VecVecPoint2f_New = _VecVecPoint2f_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecVecPoint2f_NewFromPointer( ffi.Pointer points, @@ -18325,10 +20297,12 @@ class CvNative { late final _VecVecPoint2f_NewFromPointerPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecVecPoint2f_NewFromPointer'); + late final _VecVecPoint2f_NewFromPointer = + _VecVecPoint2f_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecVecPoint2f_NewFromPointer'); - late final _VecVecPoint2f_NewFromPointer = _VecVecPoint2f_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecVecPoint2f_NewFromVec( VecVecPoint2f vec, @@ -18340,11 +20314,14 @@ class CvNative { ); } - late final _VecVecPoint2f_NewFromVecPtr = - _lookup Function(VecVecPoint2f, ffi.Pointer)>>( - 'VecVecPoint2f_NewFromVec'); - late final _VecVecPoint2f_NewFromVec = _VecVecPoint2f_NewFromVecPtr.asFunction< - ffi.Pointer Function(VecVecPoint2f, ffi.Pointer)>(); + late final _VecVecPoint2f_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecVecPoint2f, + ffi.Pointer)>>('VecVecPoint2f_NewFromVec'); + late final _VecVecPoint2f_NewFromVec = + _VecVecPoint2f_NewFromVecPtr.asFunction< + ffi.Pointer Function( + VecVecPoint2f, ffi.Pointer)>(); ffi.Pointer VecVecPoint2f_Size( VecVecPoint2f vec, @@ -18356,9 +20333,10 @@ class CvNative { ); } - late final _VecVecPoint2f_SizePtr = - _lookup Function(VecVecPoint2f, ffi.Pointer)>>( - 'VecVecPoint2f_Size'); + late final _VecVecPoint2f_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVecPoint2f, ffi.Pointer)>>('VecVecPoint2f_Size'); late final _VecVecPoint2f_Size = _VecVecPoint2f_SizePtr.asFunction< ffi.Pointer Function(VecVecPoint2f, ffi.Pointer)>(); @@ -18372,11 +20350,12 @@ class CvNative { ); } - late final _VecVecPoint3f_AppendPtr = - _lookup Function(VecVecPoint3f, VecPoint3f)>>( - 'VecVecPoint3f_Append'); - late final _VecVecPoint3f_Append = - _VecVecPoint3f_AppendPtr.asFunction Function(VecVecPoint3f, VecPoint3f)>(); + late final _VecVecPoint3f_AppendPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVecPoint3f, VecPoint3f)>>('VecVecPoint3f_Append'); + late final _VecVecPoint3f_Append = _VecVecPoint3f_AppendPtr.asFunction< + ffi.Pointer Function(VecVecPoint3f, VecPoint3f)>(); ffi.Pointer VecVecPoint3f_At( VecVecPoint3f vec, @@ -18391,11 +20370,12 @@ class CvNative { } late final _VecVecPoint3f_AtPtr = _lookup< - ffi - .NativeFunction Function(VecVecPoint3f, ffi.Int, ffi.Pointer)>>( - 'VecVecPoint3f_At'); + ffi.NativeFunction< + ffi.Pointer Function(VecVecPoint3f, ffi.Int, + ffi.Pointer)>>('VecVecPoint3f_At'); late final _VecVecPoint3f_At = _VecVecPoint3f_AtPtr.asFunction< - ffi.Pointer Function(VecVecPoint3f, int, ffi.Pointer)>(); + ffi.Pointer Function( + VecVecPoint3f, int, ffi.Pointer)>(); void VecVecPoint3f_Close( VecVecPoint3fPtr vec, @@ -18406,8 +20386,10 @@ class CvNative { } late final _VecVecPoint3f_ClosePtr = - _lookup>('VecVecPoint3f_Close'); - late final _VecVecPoint3f_Close = _VecVecPoint3f_ClosePtr.asFunction(); + _lookup>( + 'VecVecPoint3f_Close'); + late final _VecVecPoint3f_Close = + _VecVecPoint3f_ClosePtr.asFunction(); ffi.Pointer VecVecPoint3f_New( ffi.Pointer rval, @@ -18417,11 +20399,12 @@ class CvNative { ); } - late final _VecVecPoint3f_NewPtr = - _lookup Function(ffi.Pointer)>>( - 'VecVecPoint3f_New'); - late final _VecVecPoint3f_New = - _VecVecPoint3f_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecVecPoint3f_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecVecPoint3f_New'); + late final _VecVecPoint3f_New = _VecVecPoint3f_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecVecPoint3f_NewFromPointer( ffi.Pointer points, @@ -18437,10 +20420,12 @@ class CvNative { late final _VecVecPoint3f_NewFromPointerPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecVecPoint3f_NewFromPointer'); + late final _VecVecPoint3f_NewFromPointer = + _VecVecPoint3f_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecVecPoint3f_NewFromPointer'); - late final _VecVecPoint3f_NewFromPointer = _VecVecPoint3f_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecVecPoint3f_NewFromVec( VecVecPoint3f vec, @@ -18452,11 +20437,14 @@ class CvNative { ); } - late final _VecVecPoint3f_NewFromVecPtr = - _lookup Function(VecVecPoint3f, ffi.Pointer)>>( - 'VecVecPoint3f_NewFromVec'); - late final _VecVecPoint3f_NewFromVec = _VecVecPoint3f_NewFromVecPtr.asFunction< - ffi.Pointer Function(VecVecPoint3f, ffi.Pointer)>(); + late final _VecVecPoint3f_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecVecPoint3f, + ffi.Pointer)>>('VecVecPoint3f_NewFromVec'); + late final _VecVecPoint3f_NewFromVec = + _VecVecPoint3f_NewFromVecPtr.asFunction< + ffi.Pointer Function( + VecVecPoint3f, ffi.Pointer)>(); ffi.Pointer VecVecPoint3f_Size( VecVecPoint3f vec, @@ -18468,9 +20456,10 @@ class CvNative { ); } - late final _VecVecPoint3f_SizePtr = - _lookup Function(VecVecPoint3f, ffi.Pointer)>>( - 'VecVecPoint3f_Size'); + late final _VecVecPoint3f_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVecPoint3f, ffi.Pointer)>>('VecVecPoint3f_Size'); late final _VecVecPoint3f_Size = _VecVecPoint3f_SizePtr.asFunction< ffi.Pointer Function(VecVecPoint3f, ffi.Pointer)>(); @@ -18484,11 +20473,12 @@ class CvNative { ); } - late final _VecVecPoint_AppendPtr = - _lookup Function(VecVecPoint, VecPoint)>>( - 'VecVecPoint_Append'); - late final _VecVecPoint_Append = - _VecVecPoint_AppendPtr.asFunction Function(VecVecPoint, VecPoint)>(); + late final _VecVecPoint_AppendPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVecPoint, VecPoint)>>('VecVecPoint_Append'); + late final _VecVecPoint_Append = _VecVecPoint_AppendPtr.asFunction< + ffi.Pointer Function(VecVecPoint, VecPoint)>(); ffi.Pointer VecVecPoint_At( VecVecPoint vec, @@ -18503,10 +20493,12 @@ class CvNative { } late final _VecVecPoint_AtPtr = _lookup< - ffi.NativeFunction Function(VecVecPoint, ffi.Int, ffi.Pointer)>>( - 'VecVecPoint_At'); + ffi.NativeFunction< + ffi.Pointer Function( + VecVecPoint, ffi.Int, ffi.Pointer)>>('VecVecPoint_At'); late final _VecVecPoint_At = _VecVecPoint_AtPtr.asFunction< - ffi.Pointer Function(VecVecPoint, int, ffi.Pointer)>(); + ffi.Pointer Function( + VecVecPoint, int, ffi.Pointer)>(); void VecVecPoint_Close( VecVecPointPtr vec, @@ -18517,8 +20509,10 @@ class CvNative { } late final _VecVecPoint_ClosePtr = - _lookup>('VecVecPoint_Close'); - late final _VecVecPoint_Close = _VecVecPoint_ClosePtr.asFunction(); + _lookup>( + 'VecVecPoint_Close'); + late final _VecVecPoint_Close = + _VecVecPoint_ClosePtr.asFunction(); ffi.Pointer VecVecPoint_New( ffi.Pointer rval, @@ -18528,11 +20522,12 @@ class CvNative { ); } - late final _VecVecPoint_NewPtr = - _lookup Function(ffi.Pointer)>>( - 'VecVecPoint_New'); - late final _VecVecPoint_New = - _VecVecPoint_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VecVecPoint_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VecVecPoint_New'); + late final _VecVecPoint_New = _VecVecPoint_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VecVecPoint_NewFromPointer( ffi.Pointer points, @@ -18548,10 +20543,12 @@ class CvNative { late final _VecVecPoint_NewFromPointerPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VecVecPoint_NewFromPointer'); + late final _VecVecPoint_NewFromPointer = + _VecVecPoint_NewFromPointerPtr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VecVecPoint_NewFromPointer'); - late final _VecVecPoint_NewFromPointer = _VecVecPoint_NewFromPointerPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VecVecPoint_NewFromVec( VecVecPoint vec, @@ -18563,9 +20560,10 @@ class CvNative { ); } - late final _VecVecPoint_NewFromVecPtr = - _lookup Function(VecVecPoint, ffi.Pointer)>>( - 'VecVecPoint_NewFromVec'); + late final _VecVecPoint_NewFromVecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecVecPoint, + ffi.Pointer)>>('VecVecPoint_NewFromVec'); late final _VecVecPoint_NewFromVec = _VecVecPoint_NewFromVecPtr.asFunction< ffi.Pointer Function(VecVecPoint, ffi.Pointer)>(); @@ -18579,11 +20577,12 @@ class CvNative { ); } - late final _VecVecPoint_SizePtr = - _lookup Function(VecVecPoint, ffi.Pointer)>>( - 'VecVecPoint_Size'); - late final _VecVecPoint_Size = - _VecVecPoint_SizePtr.asFunction Function(VecVecPoint, ffi.Pointer)>(); + late final _VecVecPoint_SizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecVecPoint, ffi.Pointer)>>('VecVecPoint_Size'); + late final _VecVecPoint_Size = _VecVecPoint_SizePtr.asFunction< + ffi.Pointer Function(VecVecPoint, ffi.Pointer)>(); void VideoCapture_Close( VideoCapturePtr self, @@ -18594,8 +20593,10 @@ class CvNative { } late final _VideoCapture_ClosePtr = - _lookup>('VideoCapture_Close'); - late final _VideoCapture_Close = _VideoCapture_ClosePtr.asFunction(); + _lookup>( + 'VideoCapture_Close'); + late final _VideoCapture_Close = + _VideoCapture_ClosePtr.asFunction(); ffi.Pointer VideoCapture_Get( VideoCapture self, @@ -18610,10 +20611,12 @@ class CvNative { } late final _VideoCapture_GetPtr = _lookup< - ffi.NativeFunction Function(VideoCapture, ffi.Int, ffi.Pointer)>>( - 'VideoCapture_Get'); + ffi.NativeFunction< + ffi.Pointer Function(VideoCapture, ffi.Int, + ffi.Pointer)>>('VideoCapture_Get'); late final _VideoCapture_Get = _VideoCapture_GetPtr.asFunction< - ffi.Pointer Function(VideoCapture, int, ffi.Pointer)>(); + ffi.Pointer Function( + VideoCapture, int, ffi.Pointer)>(); ffi.Pointer VideoCapture_Grab( VideoCapture self, @@ -18625,10 +20628,12 @@ class CvNative { ); } - late final _VideoCapture_GrabPtr = - _lookup Function(VideoCapture, ffi.Int)>>('VideoCapture_Grab'); - late final _VideoCapture_Grab = - _VideoCapture_GrabPtr.asFunction Function(VideoCapture, int)>(); + late final _VideoCapture_GrabPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VideoCapture, ffi.Int)>>('VideoCapture_Grab'); + late final _VideoCapture_Grab = _VideoCapture_GrabPtr.asFunction< + ffi.Pointer Function(VideoCapture, int)>(); ffi.Pointer VideoCapture_IsOpened( VideoCapture self, @@ -18640,9 +20645,10 @@ class CvNative { ); } - late final _VideoCapture_IsOpenedPtr = - _lookup Function(VideoCapture, ffi.Pointer)>>( - 'VideoCapture_IsOpened'); + late final _VideoCapture_IsOpenedPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VideoCapture, ffi.Pointer)>>('VideoCapture_IsOpened'); late final _VideoCapture_IsOpened = _VideoCapture_IsOpenedPtr.asFunction< ffi.Pointer Function(VideoCapture, ffi.Pointer)>(); @@ -18654,11 +20660,12 @@ class CvNative { ); } - late final _VideoCapture_NewPtr = - _lookup Function(ffi.Pointer)>>( - 'VideoCapture_New'); - late final _VideoCapture_New = - _VideoCapture_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VideoCapture_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VideoCapture_New'); + late final _VideoCapture_New = _VideoCapture_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VideoCapture_NewFromFile( ffi.Pointer filename, @@ -18674,10 +20681,12 @@ class CvNative { late final _VideoCapture_NewFromFilePtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('VideoCapture_NewFromFile'); + late final _VideoCapture_NewFromFile = + _VideoCapture_NewFromFilePtr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('VideoCapture_NewFromFile'); - late final _VideoCapture_NewFromFile = _VideoCapture_NewFromFilePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer VideoCapture_NewFromIndex( int index, @@ -18692,10 +20701,13 @@ class CvNative { } late final _VideoCapture_NewFromIndexPtr = _lookup< - ffi.NativeFunction Function(ffi.Int, ffi.Int, ffi.Pointer)>>( - 'VideoCapture_NewFromIndex'); - late final _VideoCapture_NewFromIndex = _VideoCapture_NewFromIndexPtr.asFunction< - ffi.Pointer Function(int, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, ffi.Int, + ffi.Pointer)>>('VideoCapture_NewFromIndex'); + late final _VideoCapture_NewFromIndex = + _VideoCapture_NewFromIndexPtr.asFunction< + ffi.Pointer Function( + int, int, ffi.Pointer)>(); ffi.Pointer VideoCapture_Open( VideoCapture self, @@ -18711,10 +20723,11 @@ class CvNative { late final _VideoCapture_OpenPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - VideoCapture, ffi.Pointer, ffi.Pointer)>>('VideoCapture_Open'); + ffi.Pointer Function(VideoCapture, ffi.Pointer, + ffi.Pointer)>>('VideoCapture_Open'); late final _VideoCapture_Open = _VideoCapture_OpenPtr.asFunction< - ffi.Pointer Function(VideoCapture, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + VideoCapture, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer VideoCapture_OpenDevice( VideoCapture self, @@ -18729,10 +20742,12 @@ class CvNative { } late final _VideoCapture_OpenDevicePtr = _lookup< - ffi.NativeFunction Function(VideoCapture, ffi.Int, ffi.Pointer)>>( - 'VideoCapture_OpenDevice'); + ffi.NativeFunction< + ffi.Pointer Function(VideoCapture, ffi.Int, + ffi.Pointer)>>('VideoCapture_OpenDevice'); late final _VideoCapture_OpenDevice = _VideoCapture_OpenDevicePtr.asFunction< - ffi.Pointer Function(VideoCapture, int, ffi.Pointer)>(); + ffi.Pointer Function( + VideoCapture, int, ffi.Pointer)>(); ffi.Pointer VideoCapture_OpenDeviceWithAPI( VideoCapture self, @@ -18750,10 +20765,12 @@ class CvNative { late final _VideoCapture_OpenDeviceWithAPIPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(VideoCapture, ffi.Int, ffi.Int, + ffi.Pointer)>>('VideoCapture_OpenDeviceWithAPI'); + late final _VideoCapture_OpenDeviceWithAPI = + _VideoCapture_OpenDeviceWithAPIPtr.asFunction< ffi.Pointer Function( - VideoCapture, ffi.Int, ffi.Int, ffi.Pointer)>>('VideoCapture_OpenDeviceWithAPI'); - late final _VideoCapture_OpenDeviceWithAPI = _VideoCapture_OpenDeviceWithAPIPtr.asFunction< - ffi.Pointer Function(VideoCapture, int, int, ffi.Pointer)>(); + VideoCapture, int, int, ffi.Pointer)>(); ffi.Pointer VideoCapture_OpenWithAPI( VideoCapture self, @@ -18771,10 +20788,12 @@ class CvNative { late final _VideoCapture_OpenWithAPIPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VideoCapture, ffi.Pointer, ffi.Int, - ffi.Pointer)>>('VideoCapture_OpenWithAPI'); - late final _VideoCapture_OpenWithAPI = _VideoCapture_OpenWithAPIPtr.asFunction< - ffi.Pointer Function(VideoCapture, ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function(VideoCapture, ffi.Pointer, + ffi.Int, ffi.Pointer)>>('VideoCapture_OpenWithAPI'); + late final _VideoCapture_OpenWithAPI = + _VideoCapture_OpenWithAPIPtr.asFunction< + ffi.Pointer Function(VideoCapture, ffi.Pointer, + int, ffi.Pointer)>(); ffi.Pointer VideoCapture_Read( VideoCapture self, @@ -18788,11 +20807,13 @@ class CvNative { ); } - late final _VideoCapture_ReadPtr = - _lookup Function(VideoCapture, Mat, ffi.Pointer)>>( - 'VideoCapture_Read'); + late final _VideoCapture_ReadPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VideoCapture, Mat, ffi.Pointer)>>('VideoCapture_Read'); late final _VideoCapture_Read = _VideoCapture_ReadPtr.asFunction< - ffi.Pointer Function(VideoCapture, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + VideoCapture, Mat, ffi.Pointer)>(); ffi.Pointer VideoCapture_Release( VideoCapture self, @@ -18803,9 +20824,10 @@ class CvNative { } late final _VideoCapture_ReleasePtr = - _lookup Function(VideoCapture)>>('VideoCapture_Release'); - late final _VideoCapture_Release = - _VideoCapture_ReleasePtr.asFunction Function(VideoCapture)>(); + _lookup Function(VideoCapture)>>( + 'VideoCapture_Release'); + late final _VideoCapture_Release = _VideoCapture_ReleasePtr.asFunction< + ffi.Pointer Function(VideoCapture)>(); ffi.Pointer VideoCapture_Set( VideoCapture self, @@ -18819,11 +20841,12 @@ class CvNative { ); } - late final _VideoCapture_SetPtr = - _lookup Function(VideoCapture, ffi.Int, ffi.Double)>>( - 'VideoCapture_Set'); - late final _VideoCapture_Set = - _VideoCapture_SetPtr.asFunction Function(VideoCapture, int, double)>(); + late final _VideoCapture_SetPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VideoCapture, ffi.Int, ffi.Double)>>('VideoCapture_Set'); + late final _VideoCapture_Set = _VideoCapture_SetPtr.asFunction< + ffi.Pointer Function(VideoCapture, int, double)>(); void VideoWriter_Close( VideoWriterPtr self, @@ -18834,8 +20857,10 @@ class CvNative { } late final _VideoWriter_ClosePtr = - _lookup>('VideoWriter_Close'); - late final _VideoWriter_Close = _VideoWriter_ClosePtr.asFunction(); + _lookup>( + 'VideoWriter_Close'); + late final _VideoWriter_Close = + _VideoWriter_ClosePtr.asFunction(); ffi.Pointer VideoWriter_Fourcc( int c1, @@ -18855,10 +20880,11 @@ class CvNative { late final _VideoWriter_FourccPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Char, ffi.Char, ffi.Char, ffi.Char, ffi.Pointer)>>('VideoWriter_Fourcc'); + ffi.Pointer Function(ffi.Char, ffi.Char, ffi.Char, ffi.Char, + ffi.Pointer)>>('VideoWriter_Fourcc'); late final _VideoWriter_Fourcc = _VideoWriter_FourccPtr.asFunction< - ffi.Pointer Function(int, int, int, int, ffi.Pointer)>(); + ffi.Pointer Function( + int, int, int, int, ffi.Pointer)>(); ffi.Pointer VideoWriter_IsOpened( VideoWriter self, @@ -18870,9 +20896,10 @@ class CvNative { ); } - late final _VideoWriter_IsOpenedPtr = - _lookup Function(VideoWriter, ffi.Pointer)>>( - 'VideoWriter_IsOpened'); + late final _VideoWriter_IsOpenedPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VideoWriter, ffi.Pointer)>>('VideoWriter_IsOpened'); late final _VideoWriter_IsOpened = _VideoWriter_IsOpenedPtr.asFunction< ffi.Pointer Function(VideoWriter, ffi.Pointer)>(); @@ -18884,11 +20911,12 @@ class CvNative { ); } - late final _VideoWriter_NewPtr = - _lookup Function(ffi.Pointer)>>( - 'VideoWriter_New'); - late final _VideoWriter_New = - _VideoWriter_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _VideoWriter_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('VideoWriter_New'); + late final _VideoWriter_New = _VideoWriter_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer VideoWriter_Open( VideoWriter self, @@ -18912,11 +20940,17 @@ class CvNative { late final _VideoWriter_OpenPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VideoWriter, ffi.Pointer, ffi.Pointer, - ffi.Double, ffi.Int, ffi.Int, ffi.Bool)>>('VideoWriter_Open'); + ffi.Pointer Function( + VideoWriter, + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Int, + ffi.Int, + ffi.Bool)>>('VideoWriter_Open'); late final _VideoWriter_Open = _VideoWriter_OpenPtr.asFunction< - ffi.Pointer Function( - VideoWriter, ffi.Pointer, ffi.Pointer, double, int, int, bool)>(); + ffi.Pointer Function(VideoWriter, ffi.Pointer, + ffi.Pointer, double, int, int, bool)>(); ffi.Pointer VideoWriter_Release( VideoWriter self, @@ -18927,9 +20961,10 @@ class CvNative { } late final _VideoWriter_ReleasePtr = - _lookup Function(VideoWriter)>>('VideoWriter_Release'); - late final _VideoWriter_Release = - _VideoWriter_ReleasePtr.asFunction Function(VideoWriter)>(); + _lookup Function(VideoWriter)>>( + 'VideoWriter_Release'); + late final _VideoWriter_Release = _VideoWriter_ReleasePtr.asFunction< + ffi.Pointer Function(VideoWriter)>(); ffi.Pointer VideoWriter_Write( VideoWriter self, @@ -18941,10 +20976,11 @@ class CvNative { ); } - late final _VideoWriter_WritePtr = - _lookup Function(VideoWriter, Mat)>>('VideoWriter_Write'); - late final _VideoWriter_Write = - _VideoWriter_WritePtr.asFunction Function(VideoWriter, Mat)>(); + late final _VideoWriter_WritePtr = _lookup< + ffi.NativeFunction Function(VideoWriter, Mat)>>( + 'VideoWriter_Write'); + late final _VideoWriter_Write = _VideoWriter_WritePtr.asFunction< + ffi.Pointer Function(VideoWriter, Mat)>(); ffi.Pointer WarpAffine( Mat src, @@ -18960,9 +20996,11 @@ class CvNative { ); } - late final _WarpAffinePtr = - _lookup Function(Mat, Mat, Mat, Size)>>('WarpAffine'); - late final _WarpAffine = _WarpAffinePtr.asFunction Function(Mat, Mat, Mat, Size)>(); + late final _WarpAffinePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Mat, Size)>>('WarpAffine'); + late final _WarpAffine = _WarpAffinePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Size)>(); ffi.Pointer WarpAffineWithParams( Mat src, @@ -18985,8 +21023,9 @@ class CvNative { } late final _WarpAffineWithParamsPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat, Size, ffi.Int, ffi.Int, Scalar)>>( - 'WarpAffineWithParams'); + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Mat, Size, ffi.Int, ffi.Int, + Scalar)>>('WarpAffineWithParams'); late final _WarpAffineWithParams = _WarpAffineWithParamsPtr.asFunction< ffi.Pointer Function(Mat, Mat, Mat, Size, int, int, Scalar)>(); @@ -19004,10 +21043,12 @@ class CvNative { ); } - late final _WarpPerspectivePtr = - _lookup Function(Mat, Mat, Mat, Size)>>('WarpPerspective'); - late final _WarpPerspective = - _WarpPerspectivePtr.asFunction Function(Mat, Mat, Mat, Size)>(); + late final _WarpPerspectivePtr = _lookup< + ffi + .NativeFunction Function(Mat, Mat, Mat, Size)>>( + 'WarpPerspective'); + late final _WarpPerspective = _WarpPerspectivePtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Size)>(); ffi.Pointer WarpPerspectiveWithParams( Mat src, @@ -19030,10 +21071,13 @@ class CvNative { } late final _WarpPerspectiveWithParamsPtr = _lookup< - ffi.NativeFunction Function(Mat, Mat, Mat, Size, ffi.Int, ffi.Int, Scalar)>>( - 'WarpPerspectiveWithParams'); - late final _WarpPerspectiveWithParams = _WarpPerspectiveWithParamsPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Mat, Size, int, int, Scalar)>(); + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Mat, Size, ffi.Int, ffi.Int, + Scalar)>>('WarpPerspectiveWithParams'); + late final _WarpPerspectiveWithParams = + _WarpPerspectiveWithParamsPtr.asFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Size, int, int, Scalar)>(); ffi.Pointer Watershed( Mat image, @@ -19046,8 +21090,10 @@ class CvNative { } late final _WatershedPtr = - _lookup Function(Mat, Mat)>>('Watershed'); - late final _Watershed = _WatershedPtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'Watershed'); + late final _Watershed = + _WatershedPtr.asFunction Function(Mat, Mat)>(); void WeChatQRCode_Close( WeChatQRCodePtr self, @@ -19058,8 +21104,10 @@ class CvNative { } late final _WeChatQRCode_ClosePtr = - _lookup>('WeChatQRCode_Close'); - late final _WeChatQRCode_Close = _WeChatQRCode_ClosePtr.asFunction(); + _lookup>( + 'WeChatQRCode_Close'); + late final _WeChatQRCode_Close = + _WeChatQRCode_ClosePtr.asFunction(); ffi.Pointer WeChatQRCode_DetectAndDecode( ffi.Pointer self, @@ -19077,11 +21125,15 @@ class CvNative { late final _WeChatQRCode_DetectAndDecodePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, Mat, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + Mat, + ffi.Pointer, ffi.Pointer)>>('WeChatQRCode_DetectAndDecode'); - late final _WeChatQRCode_DetectAndDecode = _WeChatQRCode_DetectAndDecodePtr.asFunction< - ffi.Pointer Function( - ffi.Pointer, Mat, ffi.Pointer, ffi.Pointer)>(); + late final _WeChatQRCode_DetectAndDecode = + _WeChatQRCode_DetectAndDecodePtr.asFunction< + ffi.Pointer Function(ffi.Pointer, Mat, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer WeChatQRCode_GetScaleFactor( ffi.Pointer self, @@ -19094,11 +21146,13 @@ class CvNative { } late final _WeChatQRCode_GetScaleFactorPtr = _lookup< - ffi - .NativeFunction Function(ffi.Pointer, ffi.Pointer)>>( - 'WeChatQRCode_GetScaleFactor'); - late final _WeChatQRCode_GetScaleFactor = _WeChatQRCode_GetScaleFactorPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer)>>('WeChatQRCode_GetScaleFactor'); + late final _WeChatQRCode_GetScaleFactor = + _WeChatQRCode_GetScaleFactorPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer WeChatQRCode_New( ffi.Pointer qrcode, @@ -19108,11 +21162,12 @@ class CvNative { ); } - late final _WeChatQRCode_NewPtr = - _lookup Function(ffi.Pointer)>>( - 'WeChatQRCode_New'); - late final _WeChatQRCode_New = - _WeChatQRCode_NewPtr.asFunction Function(ffi.Pointer)>(); + late final _WeChatQRCode_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('WeChatQRCode_New'); + late final _WeChatQRCode_New = _WeChatQRCode_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); ffi.Pointer WeChatQRCode_NewWithParams( ffi.Pointer detector_prototxt_path, @@ -19132,11 +21187,20 @@ class CvNative { late final _WeChatQRCode_NewWithParamsPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('WeChatQRCode_NewWithParams'); - late final _WeChatQRCode_NewWithParams = _WeChatQRCode_NewWithParamsPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('WeChatQRCode_NewWithParams'); + late final _WeChatQRCode_NewWithParams = + _WeChatQRCode_NewWithParamsPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); ffi.Pointer WeChatQRCode_SetScaleFactor( ffi.Pointer self, @@ -19148,11 +21212,13 @@ class CvNative { ); } - late final _WeChatQRCode_SetScaleFactorPtr = - _lookup Function(ffi.Pointer, ffi.Float)>>( - 'WeChatQRCode_SetScaleFactor'); - late final _WeChatQRCode_SetScaleFactor = _WeChatQRCode_SetScaleFactorPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, double)>(); + late final _WeChatQRCode_SetScaleFactorPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Float)>>('WeChatQRCode_SetScaleFactor'); + late final _WeChatQRCode_SetScaleFactor = + _WeChatQRCode_SetScaleFactorPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, double)>(); void Window_Close( ffi.Pointer winname, @@ -19163,8 +21229,10 @@ class CvNative { } late final _Window_ClosePtr = - _lookup)>>('Window_Close'); - late final _Window_Close = _Window_ClosePtr.asFunction)>(); + _lookup)>>( + 'Window_Close'); + late final _Window_Close = + _Window_ClosePtr.asFunction)>(); ffi.Pointer Window_GetProperty( ffi.Pointer winname, @@ -19180,10 +21248,11 @@ class CvNative { late final _Window_GetPropertyPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Int, ffi.Pointer)>>('Window_GetProperty'); + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Pointer)>>('Window_GetProperty'); late final _Window_GetProperty = _Window_GetPropertyPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, int, ffi.Pointer)>(); ffi.Pointer Window_IMShow( ffi.Pointer winname, @@ -19195,11 +21264,12 @@ class CvNative { ); } - late final _Window_IMShowPtr = - _lookup Function(ffi.Pointer, Mat)>>( - 'Window_IMShow'); - late final _Window_IMShow = - _Window_IMShowPtr.asFunction Function(ffi.Pointer, Mat)>(); + late final _Window_IMShowPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, Mat)>>('Window_IMShow'); + late final _Window_IMShow = _Window_IMShowPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, Mat)>(); ffi.Pointer Window_Move( ffi.Pointer winname, @@ -19213,11 +21283,12 @@ class CvNative { ); } - late final _Window_MovePtr = - _lookup Function(ffi.Pointer, ffi.Int, ffi.Int)>>( - 'Window_Move'); - late final _Window_Move = - _Window_MovePtr.asFunction Function(ffi.Pointer, int, int)>(); + late final _Window_MovePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Int, ffi.Int)>>('Window_Move'); + late final _Window_Move = _Window_MovePtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, int)>(); ffi.Pointer Window_New( ffi.Pointer winname, @@ -19229,11 +21300,12 @@ class CvNative { ); } - late final _Window_NewPtr = - _lookup Function(ffi.Pointer, ffi.Int)>>( - 'Window_New'); - late final _Window_New = - _Window_NewPtr.asFunction Function(ffi.Pointer, int)>(); + late final _Window_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Int)>>('Window_New'); + late final _Window_New = _Window_NewPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int)>(); ffi.Pointer Window_Resize( ffi.Pointer winname, @@ -19247,11 +21319,12 @@ class CvNative { ); } - late final _Window_ResizePtr = - _lookup Function(ffi.Pointer, ffi.Int, ffi.Int)>>( - 'Window_Resize'); - late final _Window_Resize = - _Window_ResizePtr.asFunction Function(ffi.Pointer, int, int)>(); + late final _Window_ResizePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Int, ffi.Int)>>('Window_Resize'); + late final _Window_Resize = _Window_ResizePtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, int)>(); ffi.Pointer Window_SelectROI( ffi.Pointer winname, @@ -19266,10 +21339,12 @@ class CvNative { } late final _Window_SelectROIPtr = _lookup< - ffi.NativeFunction Function(ffi.Pointer, Mat, ffi.Pointer)>>( - 'Window_SelectROI'); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, Mat, + ffi.Pointer)>>('Window_SelectROI'); late final _Window_SelectROI = _Window_SelectROIPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, Mat, ffi.Pointer)>(); ffi.Pointer Window_SelectROIs( ffi.Pointer winname, @@ -19284,11 +21359,12 @@ class CvNative { } late final _Window_SelectROIsPtr = _lookup< - ffi - .NativeFunction Function(ffi.Pointer, Mat, ffi.Pointer)>>( - 'Window_SelectROIs'); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, Mat, + ffi.Pointer)>>('Window_SelectROIs'); late final _Window_SelectROIs = _Window_SelectROIsPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, Mat, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, Mat, ffi.Pointer)>(); ffi.Pointer Window_SetProperty( ffi.Pointer winname, @@ -19302,11 +21378,12 @@ class CvNative { ); } - late final _Window_SetPropertyPtr = - _lookup Function(ffi.Pointer, ffi.Int, ffi.Double)>>( - 'Window_SetProperty'); - late final _Window_SetProperty = - _Window_SetPropertyPtr.asFunction Function(ffi.Pointer, int, double)>(); + late final _Window_SetPropertyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int, + ffi.Double)>>('Window_SetProperty'); + late final _Window_SetProperty = _Window_SetPropertyPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, double)>(); ffi.Pointer Window_SetTitle( ffi.Pointer winname, @@ -19319,10 +21396,12 @@ class CvNative { } late final _Window_SetTitlePtr = _lookup< - ffi.NativeFunction Function(ffi.Pointer, ffi.Pointer)>>( - 'Window_SetTitle'); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer)>>('Window_SetTitle'); late final _Window_SetTitle = _Window_SetTitlePtr.asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer Window_WaitKey( int delay, @@ -19334,11 +21413,12 @@ class CvNative { ); } - late final _Window_WaitKeyPtr = - _lookup Function(ffi.Int, ffi.Pointer)>>( - 'Window_WaitKey'); - late final _Window_WaitKey = - _Window_WaitKeyPtr.asFunction Function(int, ffi.Pointer)>(); + late final _Window_WaitKeyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int, ffi.Pointer)>>('Window_WaitKey'); + late final _Window_WaitKey = _Window_WaitKeyPtr.asFunction< + ffi.Pointer Function(int, ffi.Pointer)>(); ffi.Pointer Zeros( int rows, @@ -19355,9 +21435,11 @@ class CvNative { } late final _ZerosPtr = _lookup< - ffi - .NativeFunction Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Zeros'); - late final _Zeros = _ZerosPtr.asFunction Function(int, int, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int, ffi.Int, ffi.Int, ffi.Pointer)>>('Zeros'); + late final _Zeros = _ZerosPtr.asFunction< + ffi.Pointer Function(int, int, int, ffi.Pointer)>(); ffi.Pointer averageHashCompare( Mat a, @@ -19371,11 +21453,12 @@ class CvNative { ); } - late final _averageHashComparePtr = - _lookup Function(Mat, Mat, ffi.Pointer)>>( - 'averageHashCompare'); - late final _averageHashCompare = - _averageHashComparePtr.asFunction Function(Mat, Mat, ffi.Pointer)>(); + late final _averageHashComparePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Pointer)>>('averageHashCompare'); + late final _averageHashCompare = _averageHashComparePtr.asFunction< + ffi.Pointer Function(Mat, Mat, ffi.Pointer)>(); ffi.Pointer averageHashCompute( Mat inputArr, @@ -19388,9 +21471,10 @@ class CvNative { } late final _averageHashComputePtr = - _lookup Function(Mat, Mat)>>('averageHashCompute'); - late final _averageHashCompute = - _averageHashComputePtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'averageHashCompute'); + late final _averageHashCompute = _averageHashComputePtr + .asFunction Function(Mat, Mat)>(); ffi.Pointer blockMeanHashCompare( Mat a, @@ -19406,11 +21490,12 @@ class CvNative { ); } - late final _blockMeanHashComparePtr = - _lookup Function(Mat, Mat, ffi.Int, ffi.Pointer)>>( - 'blockMeanHashCompare'); - late final _blockMeanHashCompare = _blockMeanHashComparePtr - .asFunction Function(Mat, Mat, int, ffi.Pointer)>(); + late final _blockMeanHashComparePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Int, + ffi.Pointer)>>('blockMeanHashCompare'); + late final _blockMeanHashCompare = _blockMeanHashComparePtr.asFunction< + ffi.Pointer Function(Mat, Mat, int, ffi.Pointer)>(); ffi.Pointer blockMeanHashCompute( Mat inputArr, @@ -19424,10 +21509,12 @@ class CvNative { ); } - late final _blockMeanHashComputePtr = - _lookup Function(Mat, Mat, ffi.Int)>>('blockMeanHashCompute'); - late final _blockMeanHashCompute = - _blockMeanHashComputePtr.asFunction Function(Mat, Mat, int)>(); + late final _blockMeanHashComputePtr = _lookup< + ffi + .NativeFunction Function(Mat, Mat, ffi.Int)>>( + 'blockMeanHashCompute'); + late final _blockMeanHashCompute = _blockMeanHashComputePtr + .asFunction Function(Mat, Mat, int)>(); ffi.Pointer calibrateCamera_Async( VecVecPoint3f objectPoints, @@ -19453,11 +21540,18 @@ class CvNative { late final _calibrateCamera_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecVecPoint3f, VecVecPoint2f, Size, Mat, Mat, ffi.Int, TermCriteria, + ffi.Pointer Function( + VecVecPoint3f, + VecVecPoint2f, + Size, + Mat, + Mat, + ffi.Int, + TermCriteria, CvCallback_5)>>('calibrateCamera_Async'); late final _calibrateCamera_Async = _calibrateCamera_AsyncPtr.asFunction< - ffi.Pointer Function( - VecVecPoint3f, VecVecPoint2f, Size, Mat, Mat, int, TermCriteria, CvCallback_5)>(); + ffi.Pointer Function(VecVecPoint3f, VecVecPoint2f, Size, Mat, + Mat, int, TermCriteria, CvCallback_5)>(); ffi.Pointer colorMomentHashCompare( Mat a, @@ -19471,11 +21565,12 @@ class CvNative { ); } - late final _colorMomentHashComparePtr = - _lookup Function(Mat, Mat, ffi.Pointer)>>( - 'colorMomentHashCompare'); - late final _colorMomentHashCompare = _colorMomentHashComparePtr - .asFunction Function(Mat, Mat, ffi.Pointer)>(); + late final _colorMomentHashComparePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Pointer)>>('colorMomentHashCompare'); + late final _colorMomentHashCompare = _colorMomentHashComparePtr.asFunction< + ffi.Pointer Function(Mat, Mat, ffi.Pointer)>(); ffi.Pointer colorMomentHashCompute( Mat inputArr, @@ -19488,17 +21583,20 @@ class CvNative { } late final _colorMomentHashComputePtr = - _lookup Function(Mat, Mat)>>('colorMomentHashCompute'); - late final _colorMomentHashCompute = - _colorMomentHashComputePtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'colorMomentHashCompute'); + late final _colorMomentHashCompute = _colorMomentHashComputePtr + .asFunction Function(Mat, Mat)>(); ffi.Pointer destroyAllWindows() { return _destroyAllWindows(); } late final _destroyAllWindowsPtr = - _lookup Function()>>('destroyAllWindows'); - late final _destroyAllWindows = _destroyAllWindowsPtr.asFunction Function()>(); + _lookup Function()>>( + 'destroyAllWindows'); + late final _destroyAllWindows = + _destroyAllWindowsPtr.asFunction Function()>(); ffi.Pointer drawChessboardCorners_Async( Mat image, @@ -19514,11 +21612,13 @@ class CvNative { ); } - late final _drawChessboardCorners_AsyncPtr = - _lookup Function(Mat, Size, ffi.Bool, CvCallback_0)>>( - 'drawChessboardCorners_Async'); - late final _drawChessboardCorners_Async = _drawChessboardCorners_AsyncPtr - .asFunction Function(Mat, Size, bool, CvCallback_0)>(); + late final _drawChessboardCorners_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Size, ffi.Bool, + CvCallback_0)>>('drawChessboardCorners_Async'); + late final _drawChessboardCorners_Async = + _drawChessboardCorners_AsyncPtr.asFunction< + ffi.Pointer Function(Mat, Size, bool, CvCallback_0)>(); ffi.Pointer estimateAffine2DWithParams_Async( VecPoint2f from, @@ -19544,10 +21644,19 @@ class CvNative { late final _estimateAffine2DWithParams_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, ffi.Int, ffi.Double, ffi.Size, ffi.Double, - ffi.Size, CvCallback_2)>>('estimateAffine2DWithParams_Async'); - late final _estimateAffine2DWithParams_Async = _estimateAffine2DWithParams_AsyncPtr.asFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, int, double, int, double, int, CvCallback_2)>(); + ffi.Pointer Function( + VecPoint2f, + VecPoint2f, + ffi.Int, + ffi.Double, + ffi.Size, + ffi.Double, + ffi.Size, + CvCallback_2)>>('estimateAffine2DWithParams_Async'); + late final _estimateAffine2DWithParams_Async = + _estimateAffine2DWithParams_AsyncPtr.asFunction< + ffi.Pointer Function(VecPoint2f, VecPoint2f, int, double, + int, double, int, CvCallback_2)>(); ffi.Pointer estimateAffine2D_Async( VecPoint2f from, @@ -19561,11 +21670,12 @@ class CvNative { ); } - late final _estimateAffine2D_AsyncPtr = - _lookup Function(VecPoint2f, VecPoint2f, CvCallback_1)>>( - 'estimateAffine2D_Async'); - late final _estimateAffine2D_Async = _estimateAffine2D_AsyncPtr - .asFunction Function(VecPoint2f, VecPoint2f, CvCallback_1)>(); + late final _estimateAffine2D_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + VecPoint2f, VecPoint2f, CvCallback_1)>>('estimateAffine2D_Async'); + late final _estimateAffine2D_Async = _estimateAffine2D_AsyncPtr.asFunction< + ffi.Pointer Function(VecPoint2f, VecPoint2f, CvCallback_1)>(); ffi.Pointer estimateAffinePartial2DWithParams_Async( VecPoint2f from, @@ -19591,12 +21701,19 @@ class CvNative { late final _estimateAffinePartial2DWithParams_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(VecPoint2f, VecPoint2f, ffi.Int, ffi.Double, ffi.Size, ffi.Double, - ffi.Size, CvCallback_2)>>('estimateAffinePartial2DWithParams_Async'); + ffi.Pointer Function( + VecPoint2f, + VecPoint2f, + ffi.Int, + ffi.Double, + ffi.Size, + ffi.Double, + ffi.Size, + CvCallback_2)>>('estimateAffinePartial2DWithParams_Async'); late final _estimateAffinePartial2DWithParams_Async = _estimateAffinePartial2DWithParams_AsyncPtr.asFunction< - ffi.Pointer Function( - VecPoint2f, VecPoint2f, int, double, int, double, int, CvCallback_2)>(); + ffi.Pointer Function(VecPoint2f, VecPoint2f, int, double, + int, double, int, CvCallback_2)>(); ffi.Pointer estimateAffinePartial2D_Async( VecPoint2f from, @@ -19610,11 +21727,14 @@ class CvNative { ); } - late final _estimateAffinePartial2D_AsyncPtr = - _lookup Function(VecPoint2f, VecPoint2f, CvCallback_1)>>( - 'estimateAffinePartial2D_Async'); - late final _estimateAffinePartial2D_Async = _estimateAffinePartial2D_AsyncPtr - .asFunction Function(VecPoint2f, VecPoint2f, CvCallback_1)>(); + late final _estimateAffinePartial2D_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(VecPoint2f, VecPoint2f, + CvCallback_1)>>('estimateAffinePartial2D_Async'); + late final _estimateAffinePartial2D_Async = + _estimateAffinePartial2D_AsyncPtr.asFunction< + ffi.Pointer Function( + VecPoint2f, VecPoint2f, CvCallback_1)>(); ffi.Pointer findChessboardCornersSBWithMeta_Async( Mat image, @@ -19630,11 +21750,13 @@ class CvNative { ); } - late final _findChessboardCornersSBWithMeta_AsyncPtr = - _lookup Function(Mat, Size, ffi.Int, CvCallback_3)>>( - 'findChessboardCornersSBWithMeta_Async'); - late final _findChessboardCornersSBWithMeta_Async = _findChessboardCornersSBWithMeta_AsyncPtr - .asFunction Function(Mat, Size, int, CvCallback_3)>(); + late final _findChessboardCornersSBWithMeta_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Size, ffi.Int, + CvCallback_3)>>('findChessboardCornersSBWithMeta_Async'); + late final _findChessboardCornersSBWithMeta_Async = + _findChessboardCornersSBWithMeta_AsyncPtr.asFunction< + ffi.Pointer Function(Mat, Size, int, CvCallback_3)>(); ffi.Pointer findChessboardCornersSB_Async( Mat image, @@ -19650,11 +21772,13 @@ class CvNative { ); } - late final _findChessboardCornersSB_AsyncPtr = - _lookup Function(Mat, Size, ffi.Int, CvCallback_2)>>( - 'findChessboardCornersSB_Async'); - late final _findChessboardCornersSB_Async = _findChessboardCornersSB_AsyncPtr - .asFunction Function(Mat, Size, int, CvCallback_2)>(); + late final _findChessboardCornersSB_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Size, ffi.Int, + CvCallback_2)>>('findChessboardCornersSB_Async'); + late final _findChessboardCornersSB_Async = + _findChessboardCornersSB_AsyncPtr.asFunction< + ffi.Pointer Function(Mat, Size, int, CvCallback_2)>(); ffi.Pointer findChessboardCorners_Async( Mat image, @@ -19670,13 +21794,16 @@ class CvNative { ); } - late final _findChessboardCorners_AsyncPtr = - _lookup Function(Mat, Size, ffi.Int, CvCallback_2)>>( - 'findChessboardCorners_Async'); - late final _findChessboardCorners_Async = _findChessboardCorners_AsyncPtr - .asFunction Function(Mat, Size, int, CvCallback_2)>(); + late final _findChessboardCorners_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Size, ffi.Int, + CvCallback_2)>>('findChessboardCorners_Async'); + late final _findChessboardCorners_Async = + _findChessboardCorners_AsyncPtr.asFunction< + ffi.Pointer Function(Mat, Size, int, CvCallback_2)>(); - ffi.Pointer fisheye_estimateNewCameraMatrixForUndistortRectify_Async( + ffi.Pointer + fisheye_estimateNewCameraMatrixForUndistortRectify_Async( Mat k, Mat d, Size imgSize, @@ -19698,13 +21825,16 @@ class CvNative { ); } - late final _fisheye_estimateNewCameraMatrixForUndistortRectify_AsyncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(Mat, Mat, Size, Mat, ffi.Double, Size, ffi.Double, - CvCallback_1)>>('fisheye_estimateNewCameraMatrixForUndistortRectify_Async'); + late final _fisheye_estimateNewCameraMatrixForUndistortRectify_AsyncPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Size, Mat, + ffi.Double, Size, ffi.Double, CvCallback_1)>>( + 'fisheye_estimateNewCameraMatrixForUndistortRectify_Async'); late final _fisheye_estimateNewCameraMatrixForUndistortRectify_Async = _fisheye_estimateNewCameraMatrixForUndistortRectify_AsyncPtr.asFunction< - ffi.Pointer Function(Mat, Mat, Size, Mat, double, Size, double, CvCallback_1)>(); + ffi.Pointer Function( + Mat, Mat, Size, Mat, double, Size, double, CvCallback_1)>(); ffi.Pointer fisheye_undistortImageWithParams_Async( Mat distorted, @@ -19724,11 +21854,14 @@ class CvNative { ); } - late final _fisheye_undistortImageWithParams_AsyncPtr = - _lookup Function(Mat, Mat, Mat, Mat, Size, CvCallback_1)>>( - 'fisheye_undistortImageWithParams_Async'); - late final _fisheye_undistortImageWithParams_Async = _fisheye_undistortImageWithParams_AsyncPtr - .asFunction Function(Mat, Mat, Mat, Mat, Size, CvCallback_1)>(); + late final _fisheye_undistortImageWithParams_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, Size, + CvCallback_1)>>('fisheye_undistortImageWithParams_Async'); + late final _fisheye_undistortImageWithParams_Async = + _fisheye_undistortImageWithParams_AsyncPtr.asFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, Size, CvCallback_1)>(); ffi.Pointer fisheye_undistortImage_Async( Mat distorted, @@ -19744,11 +21877,13 @@ class CvNative { ); } - late final _fisheye_undistortImage_AsyncPtr = - _lookup Function(Mat, Mat, Mat, CvCallback_1)>>( - 'fisheye_undistortImage_Async'); - late final _fisheye_undistortImage_Async = _fisheye_undistortImage_AsyncPtr - .asFunction Function(Mat, Mat, Mat, CvCallback_1)>(); + late final _fisheye_undistortImage_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, CvCallback_1)>>('fisheye_undistortImage_Async'); + late final _fisheye_undistortImage_Async = + _fisheye_undistortImage_AsyncPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, CvCallback_1)>(); ffi.Pointer fisheye_undistortPoints_Async( Mat distorted, @@ -19768,11 +21903,14 @@ class CvNative { ); } - late final _fisheye_undistortPoints_AsyncPtr = - _lookup Function(Mat, Mat, Mat, Mat, Mat, CvCallback_1)>>( - 'fisheye_undistortPoints_Async'); - late final _fisheye_undistortPoints_Async = _fisheye_undistortPoints_AsyncPtr - .asFunction Function(Mat, Mat, Mat, Mat, Mat, CvCallback_1)>(); + late final _fisheye_undistortPoints_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, + CvCallback_1)>>('fisheye_undistortPoints_Async'); + late final _fisheye_undistortPoints_Async = + _fisheye_undistortPoints_AsyncPtr.asFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, Mat, CvCallback_1)>(); ffi.Pointer gapi_BGR2Gray( GMat src, @@ -19784,10 +21922,12 @@ class CvNative { ); } - late final _gapi_BGR2GrayPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_BGR2Gray'); - late final _gapi_BGR2Gray = - _gapi_BGR2GrayPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_BGR2GrayPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_BGR2Gray'); + late final _gapi_BGR2Gray = _gapi_BGR2GrayPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_BGR2I420( GMat src, @@ -19799,10 +21939,12 @@ class CvNative { ); } - late final _gapi_BGR2I420Ptr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_BGR2I420'); - late final _gapi_BGR2I420 = - _gapi_BGR2I420Ptr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_BGR2I420Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_BGR2I420'); + late final _gapi_BGR2I420 = _gapi_BGR2I420Ptr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_BGR2LUV( GMat src, @@ -19814,10 +21956,12 @@ class CvNative { ); } - late final _gapi_BGR2LUVPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_BGR2LUV'); - late final _gapi_BGR2LUV = - _gapi_BGR2LUVPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_BGR2LUVPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_BGR2LUV'); + late final _gapi_BGR2LUV = _gapi_BGR2LUVPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_BGR2RGB( GMat src, @@ -19829,10 +21973,12 @@ class CvNative { ); } - late final _gapi_BGR2RGBPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_BGR2RGB'); - late final _gapi_BGR2RGB = - _gapi_BGR2RGBPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_BGR2RGBPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_BGR2RGB'); + late final _gapi_BGR2RGB = _gapi_BGR2RGBPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_BGR2YUV( GMat src, @@ -19844,10 +21990,12 @@ class CvNative { ); } - late final _gapi_BGR2YUVPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_BGR2YUV'); - late final _gapi_BGR2YUV = - _gapi_BGR2YUVPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_BGR2YUVPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_BGR2YUV'); + late final _gapi_BGR2YUV = _gapi_BGR2YUVPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_BayerGR2RGB( GMat src_gr, @@ -19859,11 +22007,12 @@ class CvNative { ); } - late final _gapi_BayerGR2RGBPtr = - _lookup Function(GMat, ffi.Pointer)>>( - 'gapi_BayerGR2RGB'); - late final _gapi_BayerGR2RGB = - _gapi_BayerGR2RGBPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_BayerGR2RGBPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_BayerGR2RGB'); + late final _gapi_BayerGR2RGB = _gapi_BayerGR2RGBPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_Canny( GMat image, @@ -19885,10 +22034,11 @@ class CvNative { late final _gapi_CannyPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Double, ffi.Double, ffi.Int, ffi.Bool, ffi.Pointer)>>('gapi_Canny'); - late final _gapi_Canny = _gapi_CannyPtr - .asFunction Function(GMat, double, double, int, bool, ffi.Pointer)>(); + ffi.Pointer Function(GMat, ffi.Double, ffi.Double, ffi.Int, + ffi.Bool, ffi.Pointer)>>('gapi_Canny'); + late final _gapi_Canny = _gapi_CannyPtr.asFunction< + ffi.Pointer Function( + GMat, double, double, int, bool, ffi.Pointer)>(); void gapi_GComputation_Close( GComputationPtr self, @@ -19899,7 +22049,8 @@ class CvNative { } late final _gapi_GComputation_ClosePtr = - _lookup>('gapi_GComputation_Close'); + _lookup>( + 'gapi_GComputation_Close'); late final _gapi_GComputation_Close = _gapi_GComputation_ClosePtr.asFunction(); @@ -19915,11 +22066,12 @@ class CvNative { ); } - late final _gapi_GComputation_NewPtr = - _lookup Function(GMat, GMat, ffi.Pointer)>>( - 'gapi_GComputation_New'); - late final _gapi_GComputation_New = _gapi_GComputation_NewPtr - .asFunction Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_GComputation_NewPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, ffi.Pointer)>>('gapi_GComputation_New'); + late final _gapi_GComputation_New = _gapi_GComputation_NewPtr.asFunction< + ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_GComputation_New_1( GMat in1, @@ -19933,11 +22085,13 @@ class CvNative { ); } - late final _gapi_GComputation_New_1Ptr = - _lookup Function(GMat, GScalar, ffi.Pointer)>>( - 'gapi_GComputation_New_1'); - late final _gapi_GComputation_New_1 = _gapi_GComputation_New_1Ptr - .asFunction Function(GMat, GScalar, ffi.Pointer)>(); + late final _gapi_GComputation_New_1Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(GMat, GScalar, + ffi.Pointer)>>('gapi_GComputation_New_1'); + late final _gapi_GComputation_New_1 = _gapi_GComputation_New_1Ptr.asFunction< + ffi.Pointer Function( + GMat, GScalar, ffi.Pointer)>(); ffi.Pointer gapi_GComputation_New_2( GMat in1, @@ -19954,10 +22108,12 @@ class CvNative { } late final _gapi_GComputation_New_2Ptr = _lookup< - ffi.NativeFunction Function(GMat, GMat, GMat, ffi.Pointer)>>( - 'gapi_GComputation_New_2'); - late final _gapi_GComputation_New_2 = _gapi_GComputation_New_2Ptr - .asFunction Function(GMat, GMat, GMat, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(GMat, GMat, GMat, + ffi.Pointer)>>('gapi_GComputation_New_2'); + late final _gapi_GComputation_New_2 = _gapi_GComputation_New_2Ptr.asFunction< + ffi.Pointer Function( + GMat, GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_GComputation_New_3( GMat in1, @@ -19974,10 +22130,12 @@ class CvNative { } late final _gapi_GComputation_New_3Ptr = _lookup< - ffi.NativeFunction Function(GMat, GMat, GScalar, ffi.Pointer)>>( - 'gapi_GComputation_New_3'); - late final _gapi_GComputation_New_3 = _gapi_GComputation_New_3Ptr - .asFunction Function(GMat, GMat, GScalar, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(GMat, GMat, GScalar, + ffi.Pointer)>>('gapi_GComputation_New_3'); + late final _gapi_GComputation_New_3 = _gapi_GComputation_New_3Ptr.asFunction< + ffi.Pointer Function( + GMat, GMat, GScalar, ffi.Pointer)>(); ffi.Pointer gapi_GComputation_apply( GComputation self, @@ -19991,11 +22149,12 @@ class CvNative { ); } - late final _gapi_GComputation_applyPtr = - _lookup Function(GComputation, Mat, CvCallback_1)>>( - 'gapi_GComputation_apply'); - late final _gapi_GComputation_apply = _gapi_GComputation_applyPtr - .asFunction Function(GComputation, Mat, CvCallback_1)>(); + late final _gapi_GComputation_applyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GComputation, Mat, CvCallback_1)>>('gapi_GComputation_apply'); + late final _gapi_GComputation_apply = _gapi_GComputation_applyPtr.asFunction< + ffi.Pointer Function(GComputation, Mat, CvCallback_1)>(); ffi.Pointer gapi_GComputation_apply_1( GComputation self, @@ -20009,11 +22168,14 @@ class CvNative { ); } - late final _gapi_GComputation_apply_1Ptr = - _lookup Function(GComputation, Mat, ffi.Pointer)>>( - 'gapi_GComputation_apply_1'); - late final _gapi_GComputation_apply_1 = _gapi_GComputation_apply_1Ptr - .asFunction Function(GComputation, Mat, ffi.Pointer)>(); + late final _gapi_GComputation_apply_1Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(GComputation, Mat, + ffi.Pointer)>>('gapi_GComputation_apply_1'); + late final _gapi_GComputation_apply_1 = + _gapi_GComputation_apply_1Ptr.asFunction< + ffi.Pointer Function( + GComputation, Mat, ffi.Pointer)>(); ffi.Pointer gapi_GComputation_apply_2( GComputation self, @@ -20029,11 +22191,14 @@ class CvNative { ); } - late final _gapi_GComputation_apply_2Ptr = - _lookup Function(GComputation, Mat, Mat, ffi.Pointer)>>( - 'gapi_GComputation_apply_2'); - late final _gapi_GComputation_apply_2 = _gapi_GComputation_apply_2Ptr - .asFunction Function(GComputation, Mat, Mat, ffi.Pointer)>(); + late final _gapi_GComputation_apply_2Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(GComputation, Mat, Mat, + ffi.Pointer)>>('gapi_GComputation_apply_2'); + late final _gapi_GComputation_apply_2 = + _gapi_GComputation_apply_2Ptr.asFunction< + ffi.Pointer Function( + GComputation, Mat, Mat, ffi.Pointer)>(); ffi.Pointer gapi_GComputation_apply_3( GComputation self, @@ -20050,10 +22215,13 @@ class CvNative { } late final _gapi_GComputation_apply_3Ptr = _lookup< - ffi.NativeFunction Function(GComputation, Mat, Mat, ffi.Pointer)>>( - 'gapi_GComputation_apply_3'); - late final _gapi_GComputation_apply_3 = _gapi_GComputation_apply_3Ptr - .asFunction Function(GComputation, Mat, Mat, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(GComputation, Mat, Mat, + ffi.Pointer)>>('gapi_GComputation_apply_3'); + late final _gapi_GComputation_apply_3 = + _gapi_GComputation_apply_3Ptr.asFunction< + ffi.Pointer Function( + GComputation, Mat, Mat, ffi.Pointer)>(); void gapi_GMat_Close( GMatPtr mat, @@ -20063,8 +22231,11 @@ class CvNative { ); } - late final _gapi_GMat_ClosePtr = _lookup>('gapi_GMat_Close'); - late final _gapi_GMat_Close = _gapi_GMat_ClosePtr.asFunction(); + late final _gapi_GMat_ClosePtr = + _lookup>( + 'gapi_GMat_Close'); + late final _gapi_GMat_Close = + _gapi_GMat_ClosePtr.asFunction(); ffi.Pointer gapi_GMat_New_Empty( ffi.Pointer rval, @@ -20074,10 +22245,12 @@ class CvNative { ); } - late final _gapi_GMat_New_EmptyPtr = - _lookup Function(ffi.Pointer)>>('gapi_GMat_New_Empty'); - late final _gapi_GMat_New_Empty = - _gapi_GMat_New_EmptyPtr.asFunction Function(ffi.Pointer)>(); + late final _gapi_GMat_New_EmptyPtr = _lookup< + ffi + .NativeFunction Function(ffi.Pointer)>>( + 'gapi_GMat_New_Empty'); + late final _gapi_GMat_New_Empty = _gapi_GMat_New_EmptyPtr + .asFunction Function(ffi.Pointer)>(); ffi.Pointer gapi_GMat_New_FromMat( Mat mat, @@ -20089,11 +22262,12 @@ class CvNative { ); } - late final _gapi_GMat_New_FromMatPtr = - _lookup Function(Mat, ffi.Pointer)>>( - 'gapi_GMat_New_FromMat'); - late final _gapi_GMat_New_FromMat = - _gapi_GMat_New_FromMatPtr.asFunction Function(Mat, ffi.Pointer)>(); + late final _gapi_GMat_New_FromMatPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, ffi.Pointer)>>('gapi_GMat_New_FromMat'); + late final _gapi_GMat_New_FromMat = _gapi_GMat_New_FromMatPtr + .asFunction Function(Mat, ffi.Pointer)>(); void gapi_GScalar_Close( GScalarPtr scalar, @@ -20104,8 +22278,10 @@ class CvNative { } late final _gapi_GScalar_ClosePtr = - _lookup>('gapi_GScalar_Close'); - late final _gapi_GScalar_Close = _gapi_GScalar_ClosePtr.asFunction(); + _lookup>( + 'gapi_GScalar_Close'); + late final _gapi_GScalar_Close = + _gapi_GScalar_ClosePtr.asFunction(); ffi.Pointer gapi_GScalar_New_Empty( ffi.Pointer rval, @@ -20115,11 +22291,12 @@ class CvNative { ); } - late final _gapi_GScalar_New_EmptyPtr = - _lookup Function(ffi.Pointer)>>( - 'gapi_GScalar_New_Empty'); - late final _gapi_GScalar_New_Empty = - _gapi_GScalar_New_EmptyPtr.asFunction Function(ffi.Pointer)>(); + late final _gapi_GScalar_New_EmptyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('gapi_GScalar_New_Empty'); + late final _gapi_GScalar_New_Empty = _gapi_GScalar_New_EmptyPtr + .asFunction Function(ffi.Pointer)>(); ffi.Pointer gapi_GScalar_New_FromDouble( double v0, @@ -20131,11 +22308,13 @@ class CvNative { ); } - late final _gapi_GScalar_New_FromDoublePtr = - _lookup Function(ffi.Double, ffi.Pointer)>>( - 'gapi_GScalar_New_FromDouble'); - late final _gapi_GScalar_New_FromDouble = _gapi_GScalar_New_FromDoublePtr - .asFunction Function(double, ffi.Pointer)>(); + late final _gapi_GScalar_New_FromDoublePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Double, + ffi.Pointer)>>('gapi_GScalar_New_FromDouble'); + late final _gapi_GScalar_New_FromDouble = + _gapi_GScalar_New_FromDoublePtr.asFunction< + ffi.Pointer Function(double, ffi.Pointer)>(); ffi.Pointer gapi_GScalar_New_FromScalar( Scalar scalar, @@ -20147,11 +22326,13 @@ class CvNative { ); } - late final _gapi_GScalar_New_FromScalarPtr = - _lookup Function(Scalar, ffi.Pointer)>>( - 'gapi_GScalar_New_FromScalar'); - late final _gapi_GScalar_New_FromScalar = _gapi_GScalar_New_FromScalarPtr - .asFunction Function(Scalar, ffi.Pointer)>(); + late final _gapi_GScalar_New_FromScalarPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Scalar, ffi.Pointer)>>('gapi_GScalar_New_FromScalar'); + late final _gapi_GScalar_New_FromScalar = + _gapi_GScalar_New_FromScalarPtr.asFunction< + ffi.Pointer Function(Scalar, ffi.Pointer)>(); ffi.Pointer gapi_I4202BGR( GMat src, @@ -20163,10 +22344,12 @@ class CvNative { ); } - late final _gapi_I4202BGRPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_I4202BGR'); - late final _gapi_I4202BGR = - _gapi_I4202BGRPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_I4202BGRPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_I4202BGR'); + late final _gapi_I4202BGR = _gapi_I4202BGRPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_I4202RGB( GMat src, @@ -20178,10 +22361,12 @@ class CvNative { ); } - late final _gapi_I4202RGBPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_I4202RGB'); - late final _gapi_I4202RGB = - _gapi_I4202RGBPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_I4202RGBPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_I4202RGB'); + late final _gapi_I4202RGB = _gapi_I4202RGBPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_LUT( GMat src, @@ -20195,10 +22380,12 @@ class CvNative { ); } - late final _gapi_LUTPtr = - _lookup Function(GMat, Mat, ffi.Pointer)>>('gapi_LUT'); - late final _gapi_LUT = - _gapi_LUTPtr.asFunction Function(GMat, Mat, ffi.Pointer)>(); + late final _gapi_LUTPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, Mat, ffi.Pointer)>>('gapi_LUT'); + late final _gapi_LUT = _gapi_LUTPtr.asFunction< + ffi.Pointer Function(GMat, Mat, ffi.Pointer)>(); ffi.Pointer gapi_LUV2BGR( GMat src, @@ -20210,10 +22397,12 @@ class CvNative { ); } - late final _gapi_LUV2BGRPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_LUV2BGR'); - late final _gapi_LUV2BGR = - _gapi_LUV2BGRPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_LUV2BGRPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_LUV2BGR'); + late final _gapi_LUV2BGR = _gapi_LUV2BGRPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_Laplacian( GMat src, @@ -20237,10 +22426,11 @@ class CvNative { late final _gapi_LaplacianPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Int, ffi.Int, ffi.Double, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_Laplacian'); - late final _gapi_Laplacian = _gapi_LaplacianPtr - .asFunction Function(GMat, int, int, double, double, int, ffi.Pointer)>(); + ffi.Pointer Function(GMat, ffi.Int, ffi.Int, ffi.Double, + ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_Laplacian'); + late final _gapi_Laplacian = _gapi_LaplacianPtr.asFunction< + ffi.Pointer Function( + GMat, int, int, double, double, int, ffi.Pointer)>(); ffi.Pointer gapi_NV12toBGR( GMat src_y, @@ -20254,11 +22444,12 @@ class CvNative { ); } - late final _gapi_NV12toBGRPtr = - _lookup Function(GMat, GMat, ffi.Pointer)>>( - 'gapi_NV12toBGR'); - late final _gapi_NV12toBGR = - _gapi_NV12toBGRPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_NV12toBGRPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, ffi.Pointer)>>('gapi_NV12toBGR'); + late final _gapi_NV12toBGR = _gapi_NV12toBGRPtr.asFunction< + ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_NV12toBGRp( GMat src_y, @@ -20272,11 +22463,12 @@ class CvNative { ); } - late final _gapi_NV12toBGRpPtr = - _lookup Function(GMat, GMat, ffi.Pointer)>>( - 'gapi_NV12toBGRp'); - late final _gapi_NV12toBGRp = - _gapi_NV12toBGRpPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_NV12toBGRpPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, ffi.Pointer)>>('gapi_NV12toBGRp'); + late final _gapi_NV12toBGRp = _gapi_NV12toBGRpPtr.asFunction< + ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_NV12toGray( GMat src_y, @@ -20290,11 +22482,12 @@ class CvNative { ); } - late final _gapi_NV12toGrayPtr = - _lookup Function(GMat, GMat, ffi.Pointer)>>( - 'gapi_NV12toGray'); - late final _gapi_NV12toGray = - _gapi_NV12toGrayPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_NV12toGrayPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, ffi.Pointer)>>('gapi_NV12toGray'); + late final _gapi_NV12toGray = _gapi_NV12toGrayPtr.asFunction< + ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_NV12toRGB( GMat src_y, @@ -20308,11 +22501,12 @@ class CvNative { ); } - late final _gapi_NV12toRGBPtr = - _lookup Function(GMat, GMat, ffi.Pointer)>>( - 'gapi_NV12toRGB'); - late final _gapi_NV12toRGB = - _gapi_NV12toRGBPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_NV12toRGBPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, ffi.Pointer)>>('gapi_NV12toRGB'); + late final _gapi_NV12toRGB = _gapi_NV12toRGBPtr.asFunction< + ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_NV12toRGBp( GMat src_y, @@ -20326,11 +22520,12 @@ class CvNative { ); } - late final _gapi_NV12toRGBpPtr = - _lookup Function(GMat, GMat, ffi.Pointer)>>( - 'gapi_NV12toRGBp'); - late final _gapi_NV12toRGBp = - _gapi_NV12toRGBpPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_NV12toRGBpPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, ffi.Pointer)>>('gapi_NV12toRGBp'); + late final _gapi_NV12toRGBp = _gapi_NV12toRGBpPtr.asFunction< + ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_RGB2Gray( GMat src, @@ -20342,10 +22537,12 @@ class CvNative { ); } - late final _gapi_RGB2GrayPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_RGB2Gray'); - late final _gapi_RGB2Gray = - _gapi_RGB2GrayPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_RGB2GrayPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_RGB2Gray'); + late final _gapi_RGB2Gray = _gapi_RGB2GrayPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_RGB2Gray_1( GMat src, @@ -20365,10 +22562,11 @@ class CvNative { late final _gapi_RGB2Gray_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Float, ffi.Float, ffi.Float, ffi.Pointer)>>('gapi_RGB2Gray_1'); - late final _gapi_RGB2Gray_1 = _gapi_RGB2Gray_1Ptr - .asFunction Function(GMat, double, double, double, ffi.Pointer)>(); + ffi.Pointer Function(GMat, ffi.Float, ffi.Float, ffi.Float, + ffi.Pointer)>>('gapi_RGB2Gray_1'); + late final _gapi_RGB2Gray_1 = _gapi_RGB2Gray_1Ptr.asFunction< + ffi.Pointer Function( + GMat, double, double, double, ffi.Pointer)>(); ffi.Pointer gapi_RGB2HSV( GMat src, @@ -20380,10 +22578,12 @@ class CvNative { ); } - late final _gapi_RGB2HSVPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_RGB2HSV'); - late final _gapi_RGB2HSV = - _gapi_RGB2HSVPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_RGB2HSVPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_RGB2HSV'); + late final _gapi_RGB2HSV = _gapi_RGB2HSVPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_RGB2I420( GMat src, @@ -20395,10 +22595,12 @@ class CvNative { ); } - late final _gapi_RGB2I420Ptr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_RGB2I420'); - late final _gapi_RGB2I420 = - _gapi_RGB2I420Ptr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_RGB2I420Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_RGB2I420'); + late final _gapi_RGB2I420 = _gapi_RGB2I420Ptr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_RGB2Lab( GMat src, @@ -20410,10 +22612,12 @@ class CvNative { ); } - late final _gapi_RGB2LabPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_RGB2Lab'); - late final _gapi_RGB2Lab = - _gapi_RGB2LabPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_RGB2LabPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_RGB2Lab'); + late final _gapi_RGB2Lab = _gapi_RGB2LabPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_RGB2YUV( GMat src, @@ -20425,10 +22629,12 @@ class CvNative { ); } - late final _gapi_RGB2YUVPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_RGB2YUV'); - late final _gapi_RGB2YUV = - _gapi_RGB2YUVPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_RGB2YUVPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_RGB2YUV'); + late final _gapi_RGB2YUV = _gapi_RGB2YUVPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_RGB2YUV422( GMat src, @@ -20440,10 +22646,12 @@ class CvNative { ); } - late final _gapi_RGB2YUV422Ptr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_RGB2YUV422'); - late final _gapi_RGB2YUV422 = - _gapi_RGB2YUV422Ptr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_RGB2YUV422Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_RGB2YUV422'); + late final _gapi_RGB2YUV422 = _gapi_RGB2YUV422Ptr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_Sobel( GMat src, @@ -20473,11 +22681,20 @@ class CvNative { late final _gapi_SobelPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Int, ffi.Int, ffi.Int, ffi.Double, ffi.Double, - ffi.Int, Scalar, ffi.Pointer)>>('gapi_Sobel'); + ffi.Pointer Function( + GMat, + ffi.Int, + ffi.Int, + ffi.Int, + ffi.Int, + ffi.Double, + ffi.Double, + ffi.Int, + Scalar, + ffi.Pointer)>>('gapi_Sobel'); late final _gapi_Sobel = _gapi_SobelPtr.asFunction< - ffi.Pointer Function( - GMat, int, int, int, int, double, double, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function(GMat, int, int, int, int, double, double, + int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_SobelXY( GMat src, @@ -20507,11 +22724,20 @@ class CvNative { late final _gapi_SobelXYPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Int, ffi.Int, ffi.Double, ffi.Double, ffi.Int, - Scalar, ffi.Pointer, ffi.Pointer)>>('gapi_SobelXY'); + ffi.Pointer Function( + GMat, + ffi.Int, + ffi.Int, + ffi.Int, + ffi.Double, + ffi.Double, + ffi.Int, + Scalar, + ffi.Pointer, + ffi.Pointer)>>('gapi_SobelXY'); late final _gapi_SobelXY = _gapi_SobelXYPtr.asFunction< - ffi.Pointer Function( - GMat, int, int, int, double, double, int, Scalar, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(GMat, int, int, int, double, double, int, + Scalar, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer gapi_YUV2BGR( GMat src, @@ -20523,10 +22749,12 @@ class CvNative { ); } - late final _gapi_YUV2BGRPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_YUV2BGR'); - late final _gapi_YUV2BGR = - _gapi_YUV2BGRPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_YUV2BGRPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_YUV2BGR'); + late final _gapi_YUV2BGR = _gapi_YUV2BGRPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_YUV2RGB( GMat src, @@ -20538,10 +22766,12 @@ class CvNative { ); } - late final _gapi_YUV2RGBPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_YUV2RGB'); - late final _gapi_YUV2RGB = - _gapi_YUV2RGBPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_YUV2RGBPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_YUV2RGB'); + late final _gapi_YUV2RGB = _gapi_YUV2RGBPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_add( GMat src1, @@ -20557,11 +22787,12 @@ class CvNative { ); } - late final _gapi_addPtr = - _lookup Function(GMat, GMat, ffi.Int, ffi.Pointer)>>( - 'gapi_add'); - late final _gapi_add = - _gapi_addPtr.asFunction Function(GMat, GMat, int, ffi.Pointer)>(); + late final _gapi_addPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, ffi.Int, ffi.Pointer)>>('gapi_add'); + late final _gapi_add = _gapi_addPtr.asFunction< + ffi.Pointer Function(GMat, GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_addC( GMat src, @@ -20577,11 +22808,12 @@ class CvNative { ); } - late final _gapi_addCPtr = - _lookup Function(GMat, GScalar, ffi.Int, ffi.Pointer)>>( - 'gapi_addC'); - late final _gapi_addC = - _gapi_addCPtr.asFunction Function(GMat, GScalar, int, ffi.Pointer)>(); + late final _gapi_addCPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GScalar, ffi.Int, ffi.Pointer)>>('gapi_addC'); + late final _gapi_addC = _gapi_addCPtr.asFunction< + ffi.Pointer Function(GMat, GScalar, int, ffi.Pointer)>(); ffi.Pointer gapi_addC_1( GScalar c, @@ -20597,11 +22829,12 @@ class CvNative { ); } - late final _gapi_addC_1Ptr = - _lookup Function(GScalar, GMat, ffi.Int, ffi.Pointer)>>( - 'gapi_addC_1'); - late final _gapi_addC_1 = - _gapi_addC_1Ptr.asFunction Function(GScalar, GMat, int, ffi.Pointer)>(); + late final _gapi_addC_1Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GScalar, GMat, ffi.Int, ffi.Pointer)>>('gapi_addC_1'); + late final _gapi_addC_1 = _gapi_addC_1Ptr.asFunction< + ffi.Pointer Function(GScalar, GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_bilateralFilter( GMat src, @@ -20623,10 +22856,11 @@ class CvNative { late final _gapi_bilateralFilterPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Int, ffi.Double, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_bilateralFilter'); - late final _gapi_bilateralFilter = _gapi_bilateralFilterPtr - .asFunction Function(GMat, int, double, double, int, ffi.Pointer)>(); + ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, + ffi.Int, ffi.Pointer)>>('gapi_bilateralFilter'); + late final _gapi_bilateralFilter = _gapi_bilateralFilterPtr.asFunction< + ffi.Pointer Function( + GMat, int, double, double, int, ffi.Pointer)>(); ffi.Pointer gapi_blur( GMat src, @@ -20648,10 +22882,11 @@ class CvNative { late final _gapi_blurPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, Size, Point, ffi.Int, Scalar, ffi.Pointer)>>('gapi_blur'); - late final _gapi_blur = _gapi_blurPtr - .asFunction Function(GMat, Size, Point, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function(GMat, Size, Point, ffi.Int, Scalar, + ffi.Pointer)>>('gapi_blur'); + late final _gapi_blur = _gapi_blurPtr.asFunction< + ffi.Pointer Function( + GMat, Size, Point, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_boundingRect( GArrayPoint2f src, @@ -20663,11 +22898,13 @@ class CvNative { ); } - late final _gapi_boundingRectPtr = - _lookup Function(GArrayPoint2f, ffi.Pointer)>>( - 'gapi_boundingRect'); - late final _gapi_boundingRect = _gapi_boundingRectPtr - .asFunction Function(GArrayPoint2f, ffi.Pointer)>(); + late final _gapi_boundingRectPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GArrayPoint2f, ffi.Pointer)>>('gapi_boundingRect'); + late final _gapi_boundingRect = _gapi_boundingRectPtr.asFunction< + ffi.Pointer Function( + GArrayPoint2f, ffi.Pointer)>(); ffi.Pointer gapi_boundingRect_1( GArrayPoint2i src, @@ -20679,11 +22916,13 @@ class CvNative { ); } - late final _gapi_boundingRect_1Ptr = - _lookup Function(GArrayPoint2i, ffi.Pointer)>>( - 'gapi_boundingRect_1'); - late final _gapi_boundingRect_1 = _gapi_boundingRect_1Ptr - .asFunction Function(GArrayPoint2i, ffi.Pointer)>(); + late final _gapi_boundingRect_1Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GArrayPoint2i, ffi.Pointer)>>('gapi_boundingRect_1'); + late final _gapi_boundingRect_1 = _gapi_boundingRect_1Ptr.asFunction< + ffi.Pointer Function( + GArrayPoint2i, ffi.Pointer)>(); ffi.Pointer gapi_boundingRect_2( GMat src, @@ -20695,11 +22934,12 @@ class CvNative { ); } - late final _gapi_boundingRect_2Ptr = - _lookup Function(GMat, ffi.Pointer)>>( - 'gapi_boundingRect_2'); - late final _gapi_boundingRect_2 = - _gapi_boundingRect_2Ptr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_boundingRect_2Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_boundingRect_2'); + late final _gapi_boundingRect_2 = _gapi_boundingRect_2Ptr.asFunction< + ffi.Pointer Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_boxFilter( GMat src, @@ -20725,10 +22965,11 @@ class CvNative { late final _gapi_boxFilterPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Int, Size, Point, ffi.Bool, ffi.Int, Scalar, ffi.Pointer)>>('gapi_boxFilter'); + ffi.Pointer Function(GMat, ffi.Int, Size, Point, ffi.Bool, + ffi.Int, Scalar, ffi.Pointer)>>('gapi_boxFilter'); late final _gapi_boxFilter = _gapi_boxFilterPtr.asFunction< - ffi.Pointer Function(GMat, int, Size, Point, bool, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, int, Size, Point, bool, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_cartToPolar( GMat x, @@ -20748,10 +22989,11 @@ class CvNative { late final _gapi_cartToPolarPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, GMat, ffi.Bool, ffi.Pointer, ffi.Pointer)>>('gapi_cartToPolar'); - late final _gapi_cartToPolar = _gapi_cartToPolarPtr - .asFunction Function(GMat, GMat, bool, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(GMat, GMat, ffi.Bool, + ffi.Pointer, ffi.Pointer)>>('gapi_cartToPolar'); + late final _gapi_cartToPolar = _gapi_cartToPolarPtr.asFunction< + ffi.Pointer Function( + GMat, GMat, bool, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer gapi_concatHor( GMat src1, @@ -20765,11 +23007,12 @@ class CvNative { ); } - late final _gapi_concatHorPtr = - _lookup Function(GMat, GMat, ffi.Pointer)>>( - 'gapi_concatHor'); - late final _gapi_concatHor = - _gapi_concatHorPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_concatHorPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, ffi.Pointer)>>('gapi_concatHor'); + late final _gapi_concatHor = _gapi_concatHorPtr.asFunction< + ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_concatVert( GMat src1, @@ -20783,11 +23026,12 @@ class CvNative { ); } - late final _gapi_concatVertPtr = - _lookup Function(GMat, GMat, ffi.Pointer)>>( - 'gapi_concatVert'); - late final _gapi_concatVert = - _gapi_concatVertPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_concatVertPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, ffi.Pointer)>>('gapi_concatVert'); + late final _gapi_concatVert = _gapi_concatVertPtr.asFunction< + ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_convertTo( GMat src, @@ -20807,10 +23051,11 @@ class CvNative { late final _gapi_convertToPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Int, ffi.Double, ffi.Double, ffi.Pointer)>>('gapi_convertTo'); - late final _gapi_convertTo = _gapi_convertToPtr - .asFunction Function(GMat, int, double, double, ffi.Pointer)>(); + ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, + ffi.Pointer)>>('gapi_convertTo'); + late final _gapi_convertTo = _gapi_convertToPtr.asFunction< + ffi.Pointer Function( + GMat, int, double, double, ffi.Pointer)>(); ffi.Pointer gapi_copy_1( GMat in1, @@ -20822,10 +23067,12 @@ class CvNative { ); } - late final _gapi_copy_1Ptr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_copy_1'); - late final _gapi_copy_1 = - _gapi_copy_1Ptr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_copy_1Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_copy_1'); + late final _gapi_copy_1 = _gapi_copy_1Ptr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_crop( GMat src, @@ -20839,10 +23086,12 @@ class CvNative { ); } - late final _gapi_cropPtr = - _lookup Function(GMat, Rect, ffi.Pointer)>>('gapi_crop'); - late final _gapi_crop = - _gapi_cropPtr.asFunction Function(GMat, Rect, ffi.Pointer)>(); + late final _gapi_cropPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, Rect, ffi.Pointer)>>('gapi_crop'); + late final _gapi_crop = _gapi_cropPtr.asFunction< + ffi.Pointer Function(GMat, Rect, ffi.Pointer)>(); ffi.Pointer gapi_dilate( GMat src, @@ -20866,10 +23115,11 @@ class CvNative { late final _gapi_dilatePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, Mat, Point, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>('gapi_dilate'); - late final _gapi_dilate = _gapi_dilatePtr - .asFunction Function(GMat, Mat, Point, int, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function(GMat, Mat, Point, ffi.Int, ffi.Int, + Scalar, ffi.Pointer)>>('gapi_dilate'); + late final _gapi_dilate = _gapi_dilatePtr.asFunction< + ffi.Pointer Function( + GMat, Mat, Point, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_dilate3x3( GMat src, @@ -20888,11 +23138,12 @@ class CvNative { } late final _gapi_dilate3x3Ptr = _lookup< - ffi - .NativeFunction Function(GMat, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>( - 'gapi_dilate3x3'); - late final _gapi_dilate3x3 = _gapi_dilate3x3Ptr - .asFunction Function(GMat, int, int, Scalar, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(GMat, ffi.Int, ffi.Int, Scalar, + ffi.Pointer)>>('gapi_dilate3x3'); + late final _gapi_dilate3x3 = _gapi_dilate3x3Ptr.asFunction< + ffi.Pointer Function( + GMat, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_div( GMat src1, @@ -20912,9 +23163,11 @@ class CvNative { late final _gapi_divPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, GMat, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_div'); - late final _gapi_div = - _gapi_divPtr.asFunction Function(GMat, GMat, double, int, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, GMat, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_div'); + late final _gapi_div = _gapi_divPtr.asFunction< + ffi.Pointer Function( + GMat, GMat, double, int, ffi.Pointer)>(); ffi.Pointer gapi_divC( GMat src, @@ -20934,10 +23187,11 @@ class CvNative { late final _gapi_divCPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, GScalar, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_divC'); - late final _gapi_divC = _gapi_divCPtr - .asFunction Function(GMat, GScalar, double, int, ffi.Pointer)>(); + ffi.Pointer Function(GMat, GScalar, ffi.Double, ffi.Int, + ffi.Pointer)>>('gapi_divC'); + late final _gapi_divC = _gapi_divCPtr.asFunction< + ffi.Pointer Function( + GMat, GScalar, double, int, ffi.Pointer)>(); ffi.Pointer gapi_divRC( GScalar divident, @@ -20957,10 +23211,11 @@ class CvNative { late final _gapi_divRCPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GScalar, GMat, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_divRC'); - late final _gapi_divRC = _gapi_divRCPtr - .asFunction Function(GScalar, GMat, double, int, ffi.Pointer)>(); + ffi.Pointer Function(GScalar, GMat, ffi.Double, ffi.Int, + ffi.Pointer)>>('gapi_divRC'); + late final _gapi_divRC = _gapi_divRCPtr.asFunction< + ffi.Pointer Function( + GScalar, GMat, double, int, ffi.Pointer)>(); ffi.Pointer gapi_erode( GMat src, @@ -20984,10 +23239,11 @@ class CvNative { late final _gapi_erodePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, Mat, Point, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>('gapi_erode'); - late final _gapi_erode = _gapi_erodePtr - .asFunction Function(GMat, Mat, Point, int, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function(GMat, Mat, Point, ffi.Int, ffi.Int, + Scalar, ffi.Pointer)>>('gapi_erode'); + late final _gapi_erode = _gapi_erodePtr.asFunction< + ffi.Pointer Function( + GMat, Mat, Point, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_erode3x3( GMat src, @@ -21006,11 +23262,12 @@ class CvNative { } late final _gapi_erode3x3Ptr = _lookup< - ffi - .NativeFunction Function(GMat, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>( - 'gapi_erode3x3'); - late final _gapi_erode3x3 = _gapi_erode3x3Ptr - .asFunction Function(GMat, int, int, Scalar, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(GMat, ffi.Int, ffi.Int, Scalar, + ffi.Pointer)>>('gapi_erode3x3'); + late final _gapi_erode3x3 = _gapi_erode3x3Ptr.asFunction< + ffi.Pointer Function( + GMat, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_filter2D( GMat src, @@ -21036,10 +23293,11 @@ class CvNative { late final _gapi_filter2DPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Int, Mat, Point, Scalar, ffi.Int, Scalar, ffi.Pointer)>>('gapi_filter2D'); + ffi.Pointer Function(GMat, ffi.Int, Mat, Point, Scalar, + ffi.Int, Scalar, ffi.Pointer)>>('gapi_filter2D'); late final _gapi_filter2D = _gapi_filter2DPtr.asFunction< - ffi.Pointer Function(GMat, int, Mat, Point, Scalar, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, int, Mat, Point, Scalar, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_findContours( GMat src, @@ -21057,10 +23315,11 @@ class CvNative { late final _gapi_findContoursPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Int, ffi.Int, ffi.Pointer)>>('gapi_findContours'); - late final _gapi_findContours = _gapi_findContoursPtr - .asFunction Function(GMat, int, int, ffi.Pointer)>(); + ffi.Pointer Function(GMat, ffi.Int, ffi.Int, + ffi.Pointer)>>('gapi_findContours'); + late final _gapi_findContours = _gapi_findContoursPtr.asFunction< + ffi.Pointer Function( + GMat, int, int, ffi.Pointer)>(); ffi.Pointer gapi_findContoursH( GMat src, @@ -21080,11 +23339,15 @@ class CvNative { late final _gapi_findContoursHPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Int, ffi.Pointer, + ffi.Pointer Function( + GMat, + ffi.Int, + ffi.Int, + ffi.Pointer, ffi.Pointer)>>('gapi_findContoursH'); late final _gapi_findContoursH = _gapi_findContoursHPtr.asFunction< - ffi.Pointer Function( - GMat, int, int, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(GMat, int, int, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer gapi_findContoursH_1( GMat src, @@ -21106,11 +23369,16 @@ class CvNative { late final _gapi_findContoursH_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Int, GOpaquePoint, ffi.Pointer, + ffi.Pointer Function( + GMat, + ffi.Int, + ffi.Int, + GOpaquePoint, + ffi.Pointer, ffi.Pointer)>>('gapi_findContoursH_1'); late final _gapi_findContoursH_1 = _gapi_findContoursH_1Ptr.asFunction< - ffi.Pointer Function( - GMat, int, int, GOpaquePoint, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(GMat, int, int, GOpaquePoint, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer gapi_findContours_1( GMat src, @@ -21130,10 +23398,11 @@ class CvNative { late final _gapi_findContours_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Int, ffi.Int, GOpaquePoint, ffi.Pointer)>>('gapi_findContours_1'); + ffi.Pointer Function(GMat, ffi.Int, ffi.Int, GOpaquePoint, + ffi.Pointer)>>('gapi_findContours_1'); late final _gapi_findContours_1 = _gapi_findContours_1Ptr.asFunction< - ffi.Pointer Function(GMat, int, int, GOpaquePoint, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, int, int, GOpaquePoint, ffi.Pointer)>(); ffi.Pointer gapi_fitLine2D( GArrayPoint2d src, @@ -21155,11 +23424,16 @@ class CvNative { late final _gapi_fitLine2DPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GArrayPoint2d, ffi.Int, ffi.Double, ffi.Double, ffi.Double, + ffi.Pointer Function( + GArrayPoint2d, + ffi.Int, + ffi.Double, + ffi.Double, + ffi.Double, ffi.Pointer)>>('gapi_fitLine2D'); late final _gapi_fitLine2D = _gapi_fitLine2DPtr.asFunction< - ffi.Pointer Function( - GArrayPoint2d, int, double, double, double, ffi.Pointer)>(); + ffi.Pointer Function(GArrayPoint2d, int, double, double, double, + ffi.Pointer)>(); ffi.Pointer gapi_fitLine2D_1( GArrayPoint2f src, @@ -21181,11 +23455,16 @@ class CvNative { late final _gapi_fitLine2D_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GArrayPoint2f, ffi.Int, ffi.Double, ffi.Double, ffi.Double, + ffi.Pointer Function( + GArrayPoint2f, + ffi.Int, + ffi.Double, + ffi.Double, + ffi.Double, ffi.Pointer)>>('gapi_fitLine2D_1'); late final _gapi_fitLine2D_1 = _gapi_fitLine2D_1Ptr.asFunction< - ffi.Pointer Function( - GArrayPoint2f, int, double, double, double, ffi.Pointer)>(); + ffi.Pointer Function(GArrayPoint2f, int, double, double, double, + ffi.Pointer)>(); ffi.Pointer gapi_fitLine2D_2( GArrayPoint2i src, @@ -21207,11 +23486,16 @@ class CvNative { late final _gapi_fitLine2D_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GArrayPoint2i, ffi.Int, ffi.Double, ffi.Double, ffi.Double, + ffi.Pointer Function( + GArrayPoint2i, + ffi.Int, + ffi.Double, + ffi.Double, + ffi.Double, ffi.Pointer)>>('gapi_fitLine2D_2'); late final _gapi_fitLine2D_2 = _gapi_fitLine2D_2Ptr.asFunction< - ffi.Pointer Function( - GArrayPoint2i, int, double, double, double, ffi.Pointer)>(); + ffi.Pointer Function(GArrayPoint2i, int, double, double, double, + ffi.Pointer)>(); ffi.Pointer gapi_fitLine2D_3( GMat src, @@ -21233,10 +23517,11 @@ class CvNative { late final _gapi_fitLine2D_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, ffi.Double, - ffi.Pointer)>>('gapi_fitLine2D_3'); + ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, + ffi.Double, ffi.Pointer)>>('gapi_fitLine2D_3'); late final _gapi_fitLine2D_3 = _gapi_fitLine2D_3Ptr.asFunction< - ffi.Pointer Function(GMat, int, double, double, double, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, int, double, double, double, ffi.Pointer)>(); ffi.Pointer gapi_fitLine3D_1( GArrayPoint3d src, @@ -21258,11 +23543,16 @@ class CvNative { late final _gapi_fitLine3D_1Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GArrayPoint3d, ffi.Int, ffi.Double, ffi.Double, ffi.Double, + ffi.Pointer Function( + GArrayPoint3d, + ffi.Int, + ffi.Double, + ffi.Double, + ffi.Double, ffi.Pointer)>>('gapi_fitLine3D_1'); late final _gapi_fitLine3D_1 = _gapi_fitLine3D_1Ptr.asFunction< - ffi.Pointer Function( - GArrayPoint3d, int, double, double, double, ffi.Pointer)>(); + ffi.Pointer Function(GArrayPoint3d, int, double, double, double, + ffi.Pointer)>(); ffi.Pointer gapi_fitLine3D_2( GArrayPoint3f src, @@ -21284,11 +23574,16 @@ class CvNative { late final _gapi_fitLine3D_2Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GArrayPoint3f, ffi.Int, ffi.Double, ffi.Double, ffi.Double, + ffi.Pointer Function( + GArrayPoint3f, + ffi.Int, + ffi.Double, + ffi.Double, + ffi.Double, ffi.Pointer)>>('gapi_fitLine3D_2'); late final _gapi_fitLine3D_2 = _gapi_fitLine3D_2Ptr.asFunction< - ffi.Pointer Function( - GArrayPoint3f, int, double, double, double, ffi.Pointer)>(); + ffi.Pointer Function(GArrayPoint3f, int, double, double, double, + ffi.Pointer)>(); ffi.Pointer gapi_fitLine3D_3( GArrayPoint3i src, @@ -21310,11 +23605,16 @@ class CvNative { late final _gapi_fitLine3D_3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GArrayPoint3i, ffi.Int, ffi.Double, ffi.Double, ffi.Double, + ffi.Pointer Function( + GArrayPoint3i, + ffi.Int, + ffi.Double, + ffi.Double, + ffi.Double, ffi.Pointer)>>('gapi_fitLine3D_3'); late final _gapi_fitLine3D_3 = _gapi_fitLine3D_3Ptr.asFunction< - ffi.Pointer Function( - GArrayPoint3i, int, double, double, double, ffi.Pointer)>(); + ffi.Pointer Function(GArrayPoint3i, int, double, double, double, + ffi.Pointer)>(); ffi.Pointer gapi_fitLine3D_4( GMat src, @@ -21336,10 +23636,11 @@ class CvNative { late final _gapi_fitLine3D_4Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, ffi.Double, - ffi.Pointer)>>('gapi_fitLine3D_4'); + ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, + ffi.Double, ffi.Pointer)>>('gapi_fitLine3D_4'); late final _gapi_fitLine3D_4 = _gapi_fitLine3D_4Ptr.asFunction< - ffi.Pointer Function(GMat, int, double, double, double, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, int, double, double, double, ffi.Pointer)>(); ffi.Pointer gapi_flip( GMat src, @@ -21353,11 +23654,12 @@ class CvNative { ); } - late final _gapi_flipPtr = - _lookup Function(GMat, ffi.Int, ffi.Pointer)>>( - 'gapi_flip'); - late final _gapi_flip = - _gapi_flipPtr.asFunction Function(GMat, int, ffi.Pointer)>(); + late final _gapi_flipPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Int, ffi.Pointer)>>('gapi_flip'); + late final _gapi_flip = _gapi_flipPtr.asFunction< + ffi.Pointer Function(GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_gaussianBlur( GMat src, @@ -21381,10 +23683,11 @@ class CvNative { late final _gapi_gaussianBlurPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, Size, ffi.Double, ffi.Double, ffi.Int, Scalar, ffi.Pointer)>>('gapi_gaussianBlur'); + ffi.Pointer Function(GMat, Size, ffi.Double, ffi.Double, + ffi.Int, Scalar, ffi.Pointer)>>('gapi_gaussianBlur'); late final _gapi_gaussianBlur = _gapi_gaussianBlurPtr.asFunction< - ffi.Pointer Function(GMat, Size, double, double, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, Size, double, double, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_goodFeaturesToTrack( GMat image, @@ -21410,10 +23713,12 @@ class CvNative { late final _gapi_goodFeaturesToTrackPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, Mat, ffi.Int, ffi.Bool, - ffi.Double)>>('gapi_goodFeaturesToTrack'); - late final _gapi_goodFeaturesToTrack = _gapi_goodFeaturesToTrackPtr - .asFunction Function(GMat, int, double, double, Mat, int, bool, double)>(); + ffi.Pointer Function(GMat, ffi.Int, ffi.Double, ffi.Double, + Mat, ffi.Int, ffi.Bool, ffi.Double)>>('gapi_goodFeaturesToTrack'); + late final _gapi_goodFeaturesToTrack = + _gapi_goodFeaturesToTrackPtr.asFunction< + ffi.Pointer Function( + GMat, int, double, double, Mat, int, bool, double)>(); ffi.Pointer gapi_mask( GMat src, @@ -21427,10 +23732,12 @@ class CvNative { ); } - late final _gapi_maskPtr = - _lookup Function(GMat, GMat, ffi.Pointer)>>('gapi_mask'); - late final _gapi_mask = - _gapi_maskPtr.asFunction Function(GMat, GMat, ffi.Pointer)>(); + late final _gapi_maskPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, ffi.Pointer)>>('gapi_mask'); + late final _gapi_mask = _gapi_maskPtr.asFunction< + ffi.Pointer Function(GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_mean( GMat src, @@ -21442,10 +23749,12 @@ class CvNative { ); } - late final _gapi_meanPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_mean'); - late final _gapi_mean = - _gapi_meanPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_meanPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_mean'); + late final _gapi_mean = _gapi_meanPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_medianBlur( GMat src, @@ -21459,11 +23768,12 @@ class CvNative { ); } - late final _gapi_medianBlurPtr = - _lookup Function(GMat, ffi.Int, ffi.Pointer)>>( - 'gapi_medianBlur'); - late final _gapi_medianBlur = - _gapi_medianBlurPtr.asFunction Function(GMat, int, ffi.Pointer)>(); + late final _gapi_medianBlurPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Int, ffi.Pointer)>>('gapi_medianBlur'); + late final _gapi_medianBlur = _gapi_medianBlurPtr.asFunction< + ffi.Pointer Function(GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_merge3( GMat src1, @@ -21479,11 +23789,12 @@ class CvNative { ); } - late final _gapi_merge3Ptr = - _lookup Function(GMat, GMat, GMat, ffi.Pointer)>>( - 'gapi_merge3'); - late final _gapi_merge3 = - _gapi_merge3Ptr.asFunction Function(GMat, GMat, GMat, ffi.Pointer)>(); + late final _gapi_merge3Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, GMat, ffi.Pointer)>>('gapi_merge3'); + late final _gapi_merge3 = _gapi_merge3Ptr.asFunction< + ffi.Pointer Function(GMat, GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_merge4( GMat src1, @@ -21501,11 +23812,13 @@ class CvNative { ); } - late final _gapi_merge4Ptr = - _lookup Function(GMat, GMat, GMat, GMat, ffi.Pointer)>>( - 'gapi_merge4'); - late final _gapi_merge4 = - _gapi_merge4Ptr.asFunction Function(GMat, GMat, GMat, GMat, ffi.Pointer)>(); + late final _gapi_merge4Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, GMat, GMat, ffi.Pointer)>>('gapi_merge4'); + late final _gapi_merge4 = _gapi_merge4Ptr.asFunction< + ffi.Pointer Function( + GMat, GMat, GMat, GMat, ffi.Pointer)>(); ffi.Pointer gapi_morphologyEx( GMat src, @@ -21531,10 +23844,11 @@ class CvNative { late final _gapi_morphologyExPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Int, Mat, Point, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>('gapi_morphologyEx'); + ffi.Pointer Function(GMat, ffi.Int, Mat, Point, ffi.Int, + ffi.Int, Scalar, ffi.Pointer)>>('gapi_morphologyEx'); late final _gapi_morphologyEx = _gapi_morphologyExPtr.asFunction< - ffi.Pointer Function(GMat, int, Mat, Point, int, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, int, Mat, Point, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_mul( GMat src1, @@ -21554,9 +23868,11 @@ class CvNative { late final _gapi_mulPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, GMat, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_mul'); - late final _gapi_mul = - _gapi_mulPtr.asFunction Function(GMat, GMat, double, int, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, GMat, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_mul'); + late final _gapi_mul = _gapi_mulPtr.asFunction< + ffi.Pointer Function( + GMat, GMat, double, int, ffi.Pointer)>(); ffi.Pointer gapi_mulC( GMat src, @@ -21572,11 +23888,12 @@ class CvNative { ); } - late final _gapi_mulCPtr = - _lookup Function(GMat, GScalar, ffi.Int, ffi.Pointer)>>( - 'gapi_mulC'); - late final _gapi_mulC = - _gapi_mulCPtr.asFunction Function(GMat, GScalar, int, ffi.Pointer)>(); + late final _gapi_mulCPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GScalar, ffi.Int, ffi.Pointer)>>('gapi_mulC'); + late final _gapi_mulC = _gapi_mulCPtr.asFunction< + ffi.Pointer Function(GMat, GScalar, int, ffi.Pointer)>(); ffi.Pointer gapi_mulC_1( GMat src, @@ -21593,10 +23910,11 @@ class CvNative { } late final _gapi_mulC_1Ptr = _lookup< - ffi.NativeFunction Function(GMat, ffi.Double, ffi.Int, ffi.Pointer)>>( - 'gapi_mulC_1'); - late final _gapi_mulC_1 = - _gapi_mulC_1Ptr.asFunction Function(GMat, double, int, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_mulC_1'); + late final _gapi_mulC_1 = _gapi_mulC_1Ptr.asFunction< + ffi.Pointer Function(GMat, double, int, ffi.Pointer)>(); ffi.Pointer gapi_mulC_2( GScalar multiplier, @@ -21612,11 +23930,12 @@ class CvNative { ); } - late final _gapi_mulC_2Ptr = - _lookup Function(GScalar, GMat, ffi.Int, ffi.Pointer)>>( - 'gapi_mulC_2'); - late final _gapi_mulC_2 = - _gapi_mulC_2Ptr.asFunction Function(GScalar, GMat, int, ffi.Pointer)>(); + late final _gapi_mulC_2Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GScalar, GMat, ffi.Int, ffi.Pointer)>>('gapi_mulC_2'); + late final _gapi_mulC_2 = _gapi_mulC_2Ptr.asFunction< + ffi.Pointer Function(GScalar, GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_normalize( GMat src, @@ -21638,10 +23957,11 @@ class CvNative { late final _gapi_normalizePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Double, ffi.Double, ffi.Int, ffi.Int, ffi.Pointer)>>('gapi_normalize'); - late final _gapi_normalize = _gapi_normalizePtr - .asFunction Function(GMat, double, double, int, int, ffi.Pointer)>(); + ffi.Pointer Function(GMat, ffi.Double, ffi.Double, ffi.Int, + ffi.Int, ffi.Pointer)>>('gapi_normalize'); + late final _gapi_normalize = _gapi_normalizePtr.asFunction< + ffi.Pointer Function( + GMat, double, double, int, int, ffi.Pointer)>(); ffi.Pointer gapi_phase( GMat x, @@ -21657,11 +23977,12 @@ class CvNative { ); } - late final _gapi_phasePtr = - _lookup Function(GMat, GMat, ffi.Bool, ffi.Pointer)>>( - 'gapi_phase'); - late final _gapi_phase = - _gapi_phasePtr.asFunction Function(GMat, GMat, bool, ffi.Pointer)>(); + late final _gapi_phasePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, ffi.Bool, ffi.Pointer)>>('gapi_phase'); + late final _gapi_phase = _gapi_phasePtr.asFunction< + ffi.Pointer Function(GMat, GMat, bool, ffi.Pointer)>(); ffi.Pointer gapi_polarToCart( GMat magnitude, @@ -21677,11 +23998,12 @@ class CvNative { ); } - late final _gapi_polarToCartPtr = - _lookup Function(GMat, GMat, ffi.Bool, ffi.Pointer)>>( - 'gapi_polarToCart'); - late final _gapi_polarToCart = - _gapi_polarToCartPtr.asFunction Function(GMat, GMat, bool, ffi.Pointer)>(); + late final _gapi_polarToCartPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, ffi.Bool, ffi.Pointer)>>('gapi_polarToCart'); + late final _gapi_polarToCart = _gapi_polarToCartPtr.asFunction< + ffi.Pointer Function(GMat, GMat, bool, ffi.Pointer)>(); ffi.Pointer gapi_remap( GMat src, @@ -21705,10 +24027,11 @@ class CvNative { late final _gapi_remapPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, Mat, Mat, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>('gapi_remap'); - late final _gapi_remap = _gapi_remapPtr - .asFunction Function(GMat, Mat, Mat, int, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function(GMat, Mat, Mat, ffi.Int, ffi.Int, + Scalar, ffi.Pointer)>>('gapi_remap'); + late final _gapi_remap = _gapi_remapPtr.asFunction< + ffi.Pointer Function( + GMat, Mat, Mat, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_resize( GMat src, @@ -21730,10 +24053,11 @@ class CvNative { late final _gapi_resizePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, Size, ffi.Double, ffi.Double, ffi.Int, ffi.Pointer)>>('gapi_resize'); - late final _gapi_resize = _gapi_resizePtr - .asFunction Function(GMat, Size, double, double, int, ffi.Pointer)>(); + ffi.Pointer Function(GMat, Size, ffi.Double, ffi.Double, + ffi.Int, ffi.Pointer)>>('gapi_resize'); + late final _gapi_resize = _gapi_resizePtr.asFunction< + ffi.Pointer Function( + GMat, Size, double, double, int, ffi.Pointer)>(); ffi.Pointer gapi_resizeP( GMat src, @@ -21749,11 +24073,12 @@ class CvNative { ); } - late final _gapi_resizePPtr = - _lookup Function(GMat, Size, ffi.Int, ffi.Pointer)>>( - 'gapi_resizeP'); - late final _gapi_resizeP = - _gapi_resizePPtr.asFunction Function(GMat, Size, int, ffi.Pointer)>(); + late final _gapi_resizePPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, Size, ffi.Int, ffi.Pointer)>>('gapi_resizeP'); + late final _gapi_resizeP = _gapi_resizePPtr.asFunction< + ffi.Pointer Function(GMat, Size, int, ffi.Pointer)>(); ffi.Pointer gapi_sepFilter( GMat src, @@ -21781,10 +24106,11 @@ class CvNative { late final _gapi_sepFilterPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Int, Mat, Mat, Point, Scalar, ffi.Int, Scalar, ffi.Pointer)>>('gapi_sepFilter'); + ffi.Pointer Function(GMat, ffi.Int, Mat, Mat, Point, Scalar, + ffi.Int, Scalar, ffi.Pointer)>>('gapi_sepFilter'); late final _gapi_sepFilter = _gapi_sepFilterPtr.asFunction< - ffi.Pointer Function(GMat, int, Mat, Mat, Point, Scalar, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function(GMat, int, Mat, Mat, Point, Scalar, int, + Scalar, ffi.Pointer)>(); ffi.Pointer gapi_split3( GMat src, @@ -21802,10 +24128,11 @@ class CvNative { late final _gapi_split3Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('gapi_split3'); + ffi.Pointer Function(GMat, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('gapi_split3'); late final _gapi_split3 = _gapi_split3Ptr.asFunction< - ffi.Pointer Function(GMat, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + GMat, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer gapi_split4( GMat src, @@ -21825,11 +24152,15 @@ class CvNative { late final _gapi_split4Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(GMat, ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + GMat, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('gapi_split4'); late final _gapi_split4 = _gapi_split4Ptr.asFunction< - ffi.Pointer Function( - GMat, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(GMat, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer gapi_sqrt( GMat src, @@ -21841,9 +24172,12 @@ class CvNative { ); } - late final _gapi_sqrtPtr = - _lookup Function(GMat, ffi.Pointer)>>('gapi_sqrt'); - late final _gapi_sqrt = _gapi_sqrtPtr.asFunction Function(GMat, ffi.Pointer)>(); + late final _gapi_sqrtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, ffi.Pointer)>>('gapi_sqrt'); + late final _gapi_sqrt = _gapi_sqrtPtr + .asFunction Function(GMat, ffi.Pointer)>(); ffi.Pointer gapi_sub( GMat src1, @@ -21859,11 +24193,12 @@ class CvNative { ); } - late final _gapi_subPtr = - _lookup Function(GMat, GMat, ffi.Int, ffi.Pointer)>>( - 'gapi_sub'); - late final _gapi_sub = - _gapi_subPtr.asFunction Function(GMat, GMat, int, ffi.Pointer)>(); + late final _gapi_subPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GMat, ffi.Int, ffi.Pointer)>>('gapi_sub'); + late final _gapi_sub = _gapi_subPtr.asFunction< + ffi.Pointer Function(GMat, GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_subC( GMat src, @@ -21879,11 +24214,12 @@ class CvNative { ); } - late final _gapi_subCPtr = - _lookup Function(GMat, GScalar, ffi.Int, ffi.Pointer)>>( - 'gapi_subC'); - late final _gapi_subC = - _gapi_subCPtr.asFunction Function(GMat, GScalar, int, ffi.Pointer)>(); + late final _gapi_subCPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GMat, GScalar, ffi.Int, ffi.Pointer)>>('gapi_subC'); + late final _gapi_subC = _gapi_subCPtr.asFunction< + ffi.Pointer Function(GMat, GScalar, int, ffi.Pointer)>(); ffi.Pointer gapi_subRC( GScalar c, @@ -21899,11 +24235,12 @@ class CvNative { ); } - late final _gapi_subRCPtr = - _lookup Function(GScalar, GMat, ffi.Int, ffi.Pointer)>>( - 'gapi_subRC'); - late final _gapi_subRC = - _gapi_subRCPtr.asFunction Function(GScalar, GMat, int, ffi.Pointer)>(); + late final _gapi_subRCPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + GScalar, GMat, ffi.Int, ffi.Pointer)>>('gapi_subRC'); + late final _gapi_subRC = _gapi_subRCPtr.asFunction< + ffi.Pointer Function(GScalar, GMat, int, ffi.Pointer)>(); ffi.Pointer gapi_warpAffine( GMat src, @@ -21927,10 +24264,11 @@ class CvNative { late final _gapi_warpAffinePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, Mat, Size, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>('gapi_warpAffine'); - late final _gapi_warpAffine = _gapi_warpAffinePtr - .asFunction Function(GMat, Mat, Size, int, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function(GMat, Mat, Size, ffi.Int, ffi.Int, + Scalar, ffi.Pointer)>>('gapi_warpAffine'); + late final _gapi_warpAffine = _gapi_warpAffinePtr.asFunction< + ffi.Pointer Function( + GMat, Mat, Size, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer gapi_warpPerspective( GMat src, @@ -21954,10 +24292,11 @@ class CvNative { late final _gapi_warpPerspectivePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - GMat, Mat, Size, ffi.Int, ffi.Int, Scalar, ffi.Pointer)>>('gapi_warpPerspective'); - late final _gapi_warpPerspective = _gapi_warpPerspectivePtr - .asFunction Function(GMat, Mat, Size, int, int, Scalar, ffi.Pointer)>(); + ffi.Pointer Function(GMat, Mat, Size, ffi.Int, ffi.Int, + Scalar, ffi.Pointer)>>('gapi_warpPerspective'); + late final _gapi_warpPerspective = _gapi_warpPerspectivePtr.asFunction< + ffi.Pointer Function( + GMat, Mat, Size, int, int, Scalar, ffi.Pointer)>(); ffi.Pointer getBuildInfo( ffi.Pointer> rval, @@ -21967,11 +24306,12 @@ class CvNative { ); } - late final _getBuildInfoPtr = - _lookup Function(ffi.Pointer>)>>( - 'getBuildInfo'); - late final _getBuildInfo = - _getBuildInfoPtr.asFunction Function(ffi.Pointer>)>(); + late final _getBuildInfoPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer>)>>('getBuildInfo'); + late final _getBuildInfo = _getBuildInfoPtr.asFunction< + ffi.Pointer Function(ffi.Pointer>)>(); ffi.Pointer getOptimalNewCameraMatrix_Async( Mat cameraMatrix, @@ -21995,10 +24335,12 @@ class CvNative { late final _getOptimalNewCameraMatrix_AsyncPtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Size, ffi.Double, Size, + ffi.Bool, CvCallback_2)>>('getOptimalNewCameraMatrix_Async'); + late final _getOptimalNewCameraMatrix_Async = + _getOptimalNewCameraMatrix_AsyncPtr.asFunction< ffi.Pointer Function( - Mat, Mat, Size, ffi.Double, Size, ffi.Bool, CvCallback_2)>>('getOptimalNewCameraMatrix_Async'); - late final _getOptimalNewCameraMatrix_Async = _getOptimalNewCameraMatrix_AsyncPtr - .asFunction Function(Mat, Mat, Size, double, Size, bool, CvCallback_2)>(); + Mat, Mat, Size, double, Size, bool, CvCallback_2)>(); ffi.Pointer getPredefinedDictionary( int dictionaryId, @@ -22010,11 +24352,12 @@ class CvNative { ); } - late final _getPredefinedDictionaryPtr = - _lookup Function(ffi.Int, ffi.Pointer)>>( - 'getPredefinedDictionary'); - late final _getPredefinedDictionary = _getPredefinedDictionaryPtr - .asFunction Function(int, ffi.Pointer)>(); + late final _getPredefinedDictionaryPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int, + ffi.Pointer)>>('getPredefinedDictionary'); + late final _getPredefinedDictionary = _getPredefinedDictionaryPtr.asFunction< + ffi.Pointer Function(int, ffi.Pointer)>(); ffi.Pointer initUndistortRectifyMap_Async( Mat cameraMatrix, @@ -22037,11 +24380,13 @@ class CvNative { } late final _initUndistortRectifyMap_AsyncPtr = _lookup< - ffi - .NativeFunction Function(Mat, Mat, Mat, Mat, Size, ffi.Int, CvCallback_2)>>( - 'initUndistortRectifyMap_Async'); - late final _initUndistortRectifyMap_Async = _initUndistortRectifyMap_AsyncPtr - .asFunction Function(Mat, Mat, Mat, Mat, Size, int, CvCallback_2)>(); + ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, Size, ffi.Int, + CvCallback_2)>>('initUndistortRectifyMap_Async'); + late final _initUndistortRectifyMap_Async = + _initUndistortRectifyMap_AsyncPtr.asFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, Size, int, CvCallback_2)>(); ffi.Pointer marrHildrethHashCompare( Mat a, @@ -22061,10 +24406,11 @@ class CvNative { late final _marrHildrethHashComparePtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, ffi.Float, ffi.Float, ffi.Pointer)>>('marrHildrethHashCompare'); - late final _marrHildrethHashCompare = _marrHildrethHashComparePtr - .asFunction Function(Mat, Mat, double, double, ffi.Pointer)>(); + ffi.Pointer Function(Mat, Mat, ffi.Float, ffi.Float, + ffi.Pointer)>>('marrHildrethHashCompare'); + late final _marrHildrethHashCompare = _marrHildrethHashComparePtr.asFunction< + ffi.Pointer Function( + Mat, Mat, double, double, ffi.Pointer)>(); ffi.Pointer marrHildrethHashCompute( Mat inputArr, @@ -22080,11 +24426,12 @@ class CvNative { ); } - late final _marrHildrethHashComputePtr = - _lookup Function(Mat, Mat, ffi.Float, ffi.Float)>>( - 'marrHildrethHashCompute'); - late final _marrHildrethHashCompute = - _marrHildrethHashComputePtr.asFunction Function(Mat, Mat, double, double)>(); + late final _marrHildrethHashComputePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Float, ffi.Float)>>('marrHildrethHashCompute'); + late final _marrHildrethHashCompute = _marrHildrethHashComputePtr + .asFunction Function(Mat, Mat, double, double)>(); ffi.Pointer openCVVersion( ffi.Pointer> rval, @@ -22094,11 +24441,12 @@ class CvNative { ); } - late final _openCVVersionPtr = - _lookup Function(ffi.Pointer>)>>( - 'openCVVersion'); - late final _openCVVersion = - _openCVVersionPtr.asFunction Function(ffi.Pointer>)>(); + late final _openCVVersionPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer>)>>('openCVVersion'); + late final _openCVVersion = _openCVVersionPtr.asFunction< + ffi.Pointer Function(ffi.Pointer>)>(); ffi.Pointer pHashCompare( Mat a, @@ -22112,11 +24460,12 @@ class CvNative { ); } - late final _pHashComparePtr = - _lookup Function(Mat, Mat, ffi.Pointer)>>( - 'pHashCompare'); - late final _pHashCompare = - _pHashComparePtr.asFunction Function(Mat, Mat, ffi.Pointer)>(); + late final _pHashComparePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Pointer)>>('pHashCompare'); + late final _pHashCompare = _pHashComparePtr.asFunction< + ffi.Pointer Function(Mat, Mat, ffi.Pointer)>(); ffi.Pointer pHashCompute( Mat inputArr, @@ -22129,8 +24478,10 @@ class CvNative { } late final _pHashComputePtr = - _lookup Function(Mat, Mat)>>('pHashCompute'); - late final _pHashCompute = _pHashComputePtr.asFunction Function(Mat, Mat)>(); + _lookup Function(Mat, Mat)>>( + 'pHashCompute'); + late final _pHashCompute = + _pHashComputePtr.asFunction Function(Mat, Mat)>(); ffi.Pointer radialVarianceHashCompare( Mat a, @@ -22150,10 +24501,12 @@ class CvNative { late final _radialVarianceHashComparePtr = _lookup< ffi.NativeFunction< + ffi.Pointer Function(Mat, Mat, ffi.Double, ffi.Int, + ffi.Pointer)>>('radialVarianceHashCompare'); + late final _radialVarianceHashCompare = + _radialVarianceHashComparePtr.asFunction< ffi.Pointer Function( - Mat, Mat, ffi.Double, ffi.Int, ffi.Pointer)>>('radialVarianceHashCompare'); - late final _radialVarianceHashCompare = _radialVarianceHashComparePtr - .asFunction Function(Mat, Mat, double, int, ffi.Pointer)>(); + Mat, Mat, double, int, ffi.Pointer)>(); ffi.Pointer radialVarianceHashCompute( Mat inputArr, @@ -22169,11 +24522,12 @@ class CvNative { ); } - late final _radialVarianceHashComputePtr = - _lookup Function(Mat, Mat, ffi.Double, ffi.Int)>>( - 'radialVarianceHashCompute'); - late final _radialVarianceHashCompute = - _radialVarianceHashComputePtr.asFunction Function(Mat, Mat, double, int)>(); + late final _radialVarianceHashComputePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, ffi.Double, ffi.Int)>>('radialVarianceHashCompute'); + late final _radialVarianceHashCompute = _radialVarianceHashComputePtr + .asFunction Function(Mat, Mat, double, int)>(); void registerErrorCallback( ErrorCallback callback, @@ -22184,8 +24538,10 @@ class CvNative { } late final _registerErrorCallbackPtr = - _lookup>('registerErrorCallback'); - late final _registerErrorCallback = _registerErrorCallbackPtr.asFunction(); + _lookup>( + 'registerErrorCallback'); + late final _registerErrorCallback = + _registerErrorCallbackPtr.asFunction(); ffi.Pointer undistortPoints_Async( Mat distorted, @@ -22209,10 +24565,11 @@ class CvNative { late final _undistortPoints_AsyncPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - Mat, Mat, Mat, Mat, Mat, TermCriteria, CvCallback_1)>>('undistortPoints_Async'); - late final _undistortPoints_Async = _undistortPoints_AsyncPtr - .asFunction Function(Mat, Mat, Mat, Mat, Mat, TermCriteria, CvCallback_1)>(); + ffi.Pointer Function(Mat, Mat, Mat, Mat, Mat, TermCriteria, + CvCallback_1)>>('undistortPoints_Async'); + late final _undistortPoints_Async = _undistortPoints_AsyncPtr.asFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, Mat, TermCriteria, CvCallback_1)>(); ffi.Pointer undistort_Async( Mat src, @@ -22230,11 +24587,12 @@ class CvNative { ); } - late final _undistort_AsyncPtr = - _lookup Function(Mat, Mat, Mat, Mat, CvCallback_1)>>( - 'undistort_Async'); - late final _undistort_Async = - _undistort_AsyncPtr.asFunction Function(Mat, Mat, Mat, Mat, CvCallback_1)>(); + late final _undistort_AsyncPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + Mat, Mat, Mat, Mat, CvCallback_1)>>('undistort_Async'); + late final _undistort_Async = _undistort_AsyncPtr.asFunction< + ffi.Pointer Function(Mat, Mat, Mat, Mat, CvCallback_1)>(); late final addresses = _SymbolAddresses(this); } @@ -22242,123 +24600,140 @@ class CvNative { class _SymbolAddresses { final CvNative _library; _SymbolAddresses(this._library); - ffi.Pointer> get AKAZE_Close => _library._AKAZE_ClosePtr; + ffi.Pointer> + get AKAZE_Close => _library._AKAZE_ClosePtr; ffi.Pointer> get AgastFeatureDetector_Close => _library._AgastFeatureDetector_ClosePtr; - ffi.Pointer> get AlignMTB_Close => - _library._AlignMTB_ClosePtr; + ffi.Pointer> + get AlignMTB_Close => _library._AlignMTB_ClosePtr; ffi.Pointer> - get ArucoDetectorParameters_Close => _library._ArucoDetectorParameters_ClosePtr; - ffi.Pointer> get ArucoDetector_Close => - _library._ArucoDetector_ClosePtr; - ffi.Pointer> get ArucoDictionary_Close => - _library._ArucoDictionary_ClosePtr; - ffi.Pointer> get AsyncArray_Close => - _library._AsyncArray_ClosePtr; - ffi.Pointer> get BFMatcher_Close => - _library._BFMatcher_ClosePtr; - ffi.Pointer> get BRISK_Close => _library._BRISK_ClosePtr; + get ArucoDetectorParameters_Close => + _library._ArucoDetectorParameters_ClosePtr; + ffi.Pointer> + get ArucoDetector_Close => _library._ArucoDetector_ClosePtr; + ffi.Pointer> + get ArucoDictionary_Close => _library._ArucoDictionary_ClosePtr; + ffi.Pointer> + get AsyncArray_Close => _library._AsyncArray_ClosePtr; + ffi.Pointer> + get BFMatcher_Close => _library._BFMatcher_ClosePtr; + ffi.Pointer> + get BRISK_Close => _library._BRISK_ClosePtr; ffi.Pointer> - get BackgroundSubtractorKNN_Close => _library._BackgroundSubtractorKNN_ClosePtr; - ffi.Pointer> - get BackgroundSubtractorMOG2_Close => _library._BackgroundSubtractorMOG2_ClosePtr; - ffi.Pointer> get BlockMeanHash_Close => - _library._BlockMeanHash_ClosePtr; - ffi.Pointer> get CLAHE_Close => _library._CLAHE_ClosePtr; - ffi.Pointer> get CascadeClassifier_Close => - _library._CascadeClassifier_ClosePtr; - ffi.Pointer)>> get CvStatus_Close => - _library._CvStatus_ClosePtr; - ffi.Pointer> get FaceDetectorYN_Close => - _library._FaceDetectorYN_ClosePtr; - ffi.Pointer> get FaceRecognizerSF_Close => - _library._FaceRecognizerSF_ClosePtr; - ffi.Pointer> get FastFeatureDetector_Close => - _library._FastFeatureDetector_ClosePtr; - ffi.Pointer> get FlannBasedMatcher_Close => - _library._FlannBasedMatcher_ClosePtr; - ffi.Pointer> get GFTTDetector_Close => - _library._GFTTDetector_ClosePtr; - ffi.Pointer> get HOGDescriptor_Close => - _library._HOGDescriptor_ClosePtr; - ffi.Pointer> get KAZE_Close => _library._KAZE_ClosePtr; - ffi.Pointer> get KalmanFilter_Close => - _library._KalmanFilter_ClosePtr; - ffi.Pointer> get Layer_Close => _library._Layer_ClosePtr; - ffi.Pointer> get Layer_Close_Async => - _library._Layer_Close_AsyncPtr; - ffi.Pointer> get MSER_Close => _library._MSER_ClosePtr; - ffi.Pointer> get Mat_Close => _library._Mat_ClosePtr; - ffi.Pointer)>> get Mat_CloseVoid => - _library._Mat_CloseVoidPtr; - ffi.Pointer> get MergeMertens_Close => - _library._MergeMertens_ClosePtr; - ffi.Pointer> get Net_Close => _library._Net_ClosePtr; - ffi.Pointer> get Net_Close_Async => - _library._Net_Close_AsyncPtr; - ffi.Pointer> get ORB_Close => _library._ORB_ClosePtr; - ffi.Pointer> get QRCodeDetector_Close => - _library._QRCodeDetector_ClosePtr; - ffi.Pointer> get Rng_Close => _library._Rng_ClosePtr; - ffi.Pointer> get SIFT_Close => _library._SIFT_ClosePtr; - ffi.Pointer> get SimpleBlobDetector_Close => - _library._SimpleBlobDetector_ClosePtr; - ffi.Pointer> get Stitcher_Close => - _library._Stitcher_ClosePtr; - ffi.Pointer> get Subdiv2D_Close => - _library._Subdiv2D_ClosePtr; - ffi.Pointer> get TrackerMIL_Close => - _library._TrackerMIL_ClosePtr; - ffi.Pointer> get VecChar_Close => - _library._VecChar_ClosePtr; - ffi.Pointer> get VecDMatch_Close => - _library._VecDMatch_ClosePtr; - ffi.Pointer> get VecDouble_Close => - _library._VecDouble_ClosePtr; - ffi.Pointer> get VecFloat_Close => - _library._VecFloat_ClosePtr; - ffi.Pointer> get VecInt_Close => _library._VecInt_ClosePtr; - ffi.Pointer> get VecKeyPoint_Close => - _library._VecKeyPoint_ClosePtr; - ffi.Pointer> get VecMat_Close => _library._VecMat_ClosePtr; - ffi.Pointer> get VecPoint2f_Close => - _library._VecPoint2f_ClosePtr; - ffi.Pointer> get VecPoint3f_Close => - _library._VecPoint3f_ClosePtr; - ffi.Pointer> get VecPoint_Close => - _library._VecPoint_ClosePtr; - ffi.Pointer> get VecPrim_Close => - _library._VecPrim_ClosePtr; - ffi.Pointer> get VecRect_Close => - _library._VecRect_ClosePtr; - ffi.Pointer> get VecUChar_Close => - _library._VecUChar_ClosePtr; - ffi.Pointer> get VecVec4i_Close => - _library._VecVec4i_ClosePtr; - ffi.Pointer> get VecVecChar_Close => - _library._VecVecChar_ClosePtr; - ffi.Pointer> get VecVecDMatch_Close => - _library._VecVecDMatch_ClosePtr; - ffi.Pointer> get VecVecPoint2f_Close => - _library._VecVecPoint2f_ClosePtr; - ffi.Pointer> get VecVecPoint3f_Close => - _library._VecVecPoint3f_ClosePtr; - ffi.Pointer> get VecVecPoint_Close => - _library._VecVecPoint_ClosePtr; - ffi.Pointer> get VideoCapture_Close => - _library._VideoCapture_ClosePtr; - ffi.Pointer> get VideoWriter_Close => - _library._VideoWriter_ClosePtr; - ffi.Pointer> get WeChatQRCode_Close => - _library._WeChatQRCode_ClosePtr; - ffi.Pointer)>> get Window_Close => - _library._Window_ClosePtr; - ffi.Pointer> get gapi_GComputation_Close => - _library._gapi_GComputation_ClosePtr; - ffi.Pointer> get gapi_GMat_Close => - _library._gapi_GMat_ClosePtr; - ffi.Pointer> get gapi_GScalar_Close => - _library._gapi_GScalar_ClosePtr; + get BackgroundSubtractorKNN_Close => + _library._BackgroundSubtractorKNN_ClosePtr; + ffi.Pointer< + ffi.NativeFunction> + get BackgroundSubtractorMOG2_Close => + _library._BackgroundSubtractorMOG2_ClosePtr; + ffi.Pointer> + get BlockMeanHash_Close => _library._BlockMeanHash_ClosePtr; + ffi.Pointer> + get CLAHE_Close => _library._CLAHE_ClosePtr; + ffi.Pointer> + get CascadeClassifier_Close => _library._CascadeClassifier_ClosePtr; + ffi.Pointer)>> + get CvStatus_Close => _library._CvStatus_ClosePtr; + ffi.Pointer> + get FaceDetectorYN_Close => _library._FaceDetectorYN_ClosePtr; + ffi.Pointer> + get FaceRecognizerSF_Close => _library._FaceRecognizerSF_ClosePtr; + ffi.Pointer> + get FastFeatureDetector_Close => _library._FastFeatureDetector_ClosePtr; + ffi.Pointer> + get FlannBasedMatcher_Close => _library._FlannBasedMatcher_ClosePtr; + ffi.Pointer> + get GFTTDetector_Close => _library._GFTTDetector_ClosePtr; + ffi.Pointer> + get HOGDescriptor_Close => _library._HOGDescriptor_ClosePtr; + ffi.Pointer> get KAZE_Close => + _library._KAZE_ClosePtr; + ffi.Pointer> + get KalmanFilter_Close => _library._KalmanFilter_ClosePtr; + ffi.Pointer> + get Layer_Close => _library._Layer_ClosePtr; + ffi.Pointer> + get Layer_Close_Async => _library._Layer_Close_AsyncPtr; + ffi.Pointer> get MSER_Close => + _library._MSER_ClosePtr; + ffi.Pointer> get Mat_Close => + _library._Mat_ClosePtr; + ffi.Pointer)>> + get Mat_CloseVoid => _library._Mat_CloseVoidPtr; + ffi.Pointer> + get MergeMertens_Close => _library._MergeMertens_ClosePtr; + ffi.Pointer> get Net_Close => + _library._Net_ClosePtr; + ffi.Pointer> + get Net_Close_Async => _library._Net_Close_AsyncPtr; + ffi.Pointer> get ORB_Close => + _library._ORB_ClosePtr; + ffi.Pointer> + get QRCodeDetector_Close => _library._QRCodeDetector_ClosePtr; + ffi.Pointer> get Rng_Close => + _library._Rng_ClosePtr; + ffi.Pointer> get SIFT_Close => + _library._SIFT_ClosePtr; + ffi.Pointer> + get SimpleBlobDetector_Close => _library._SimpleBlobDetector_ClosePtr; + ffi.Pointer> + get Stitcher_Close => _library._Stitcher_ClosePtr; + ffi.Pointer> + get Subdiv2D_Close => _library._Subdiv2D_ClosePtr; + ffi.Pointer> + get TrackerMIL_Close => _library._TrackerMIL_ClosePtr; + ffi.Pointer> + get VecChar_Close => _library._VecChar_ClosePtr; + ffi.Pointer> + get VecDMatch_Close => _library._VecDMatch_ClosePtr; + ffi.Pointer> + get VecDouble_Close => _library._VecDouble_ClosePtr; + ffi.Pointer> + get VecFloat_Close => _library._VecFloat_ClosePtr; + ffi.Pointer> + get VecInt_Close => _library._VecInt_ClosePtr; + ffi.Pointer> + get VecKeyPoint_Close => _library._VecKeyPoint_ClosePtr; + ffi.Pointer> + get VecMat_Close => _library._VecMat_ClosePtr; + ffi.Pointer> + get VecPoint2f_Close => _library._VecPoint2f_ClosePtr; + ffi.Pointer> + get VecPoint3f_Close => _library._VecPoint3f_ClosePtr; + ffi.Pointer> + get VecPoint_Close => _library._VecPoint_ClosePtr; + ffi.Pointer> + get VecPrim_Close => _library._VecPrim_ClosePtr; + ffi.Pointer> + get VecRect_Close => _library._VecRect_ClosePtr; + ffi.Pointer> + get VecUChar_Close => _library._VecUChar_ClosePtr; + ffi.Pointer> + get VecVec4i_Close => _library._VecVec4i_ClosePtr; + ffi.Pointer> + get VecVecChar_Close => _library._VecVecChar_ClosePtr; + ffi.Pointer> + get VecVecDMatch_Close => _library._VecVecDMatch_ClosePtr; + ffi.Pointer> + get VecVecPoint2f_Close => _library._VecVecPoint2f_ClosePtr; + ffi.Pointer> + get VecVecPoint3f_Close => _library._VecVecPoint3f_ClosePtr; + ffi.Pointer> + get VecVecPoint_Close => _library._VecVecPoint_ClosePtr; + ffi.Pointer> + get VideoCapture_Close => _library._VideoCapture_ClosePtr; + ffi.Pointer> + get VideoWriter_Close => _library._VideoWriter_ClosePtr; + ffi.Pointer> + get WeChatQRCode_Close => _library._WeChatQRCode_ClosePtr; + ffi.Pointer)>> + get Window_Close => _library._Window_ClosePtr; + ffi.Pointer> + get gapi_GComputation_Close => _library._gapi_GComputation_ClosePtr; + ffi.Pointer> + get gapi_GMat_Close => _library._gapi_GMat_ClosePtr; + ffi.Pointer> + get gapi_GScalar_Close => _library._gapi_GScalar_ClosePtr; } final class AKAZE extends ffi.Struct { @@ -22454,23 +24829,33 @@ typedef CvCallback_1 = ffi.Pointer>; typedef CvCallback_1Function = ffi.Void Function(ffi.Pointer); typedef DartCvCallback_1Function = void Function(ffi.Pointer); typedef CvCallback_2 = ffi.Pointer>; -typedef CvCallback_2Function = ffi.Void Function(ffi.Pointer, ffi.Pointer); -typedef DartCvCallback_2Function = void Function(ffi.Pointer, ffi.Pointer); +typedef CvCallback_2Function = ffi.Void Function( + ffi.Pointer, ffi.Pointer); +typedef DartCvCallback_2Function = void Function( + ffi.Pointer, ffi.Pointer); typedef CvCallback_3 = ffi.Pointer>; typedef CvCallback_3Function = ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer); typedef DartCvCallback_3Function = void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer); typedef CvCallback_4 = ffi.Pointer>; -typedef CvCallback_4Function = ffi.Void Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer); -typedef DartCvCallback_4Function = void Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer); -typedef CvCallback_5 = ffi.Pointer>; -typedef CvCallback_5Function = ffi.Void Function(ffi.Pointer, ffi.Pointer, +typedef CvCallback_4Function = ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer); -typedef DartCvCallback_5Function = void Function(ffi.Pointer, ffi.Pointer, +typedef DartCvCallback_4Function = void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer); +typedef CvCallback_5 = ffi.Pointer>; +typedef CvCallback_5Function = ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer); +typedef DartCvCallback_5Function = void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer); final class CvStatus extends ffi.Struct { @ffi.Int() @@ -22510,8 +24895,13 @@ typedef ErrorCallbackFunction = ffi.Void Function( ffi.Pointer file_name, ffi.Int line, ffi.Pointer userdata); -typedef DartErrorCallbackFunction = void Function(int status, ffi.Pointer func_name, - ffi.Pointer err_msg, ffi.Pointer file_name, int line, ffi.Pointer userdata); +typedef DartErrorCallbackFunction = void Function( + int status, + ffi.Pointer func_name, + ffi.Pointer err_msg, + ffi.Pointer file_name, + int line, + ffi.Pointer userdata); final class FaceDetectorYN extends ffi.Struct { external ffi.Pointer> ptr; @@ -22667,7 +25057,6 @@ final class Layer extends ffi.Struct { } typedef LayerPtr = ffi.Pointer; -typedef LayerPtr1 = ffi.Pointer; final class MSER extends ffi.Struct { external ffi.Pointer ptr; @@ -22766,7 +25155,6 @@ final class Net extends ffi.Struct { } typedef NetPtr = ffi.Pointer; -typedef NetPtr1 = ffi.Pointer; final class ORB extends ffi.Struct { external ffi.Pointer ptr; diff --git a/src/dnn/dnn_async.h b/src/dnn/dnn_async.h index a52964d2..5de32dc6 100644 --- a/src/dnn/dnn_async.h +++ b/src/dnn/dnn_async.h @@ -1,6 +1,7 @@ #ifndef CVD_DNN_ASYNC_H_ #define CVD_DNN_ASYNC_H_ +#include "dnn.h" #include "core/types.h" #include @@ -10,16 +11,6 @@ extern "C" { #endif -#ifdef __cplusplus -// Define types for the C++ classes used -CVD_TYPEDEF(cv::dnn::Net, Net); -CVD_TYPEDEF(cv::Ptr, Layer); -#else -// Define types for the C-compatible interface -CVD_TYPEDEF(void, Net); -CVD_TYPEDEF(void, Layer); -#endif - // Asynchronous functions for Net CvStatus *Net_Create_Async(CvCallback_1 callback); CvStatus *Net_FromNet_Async(Net net, CvCallback_1 callback); diff --git a/src/objdetect/objdetect_async.h b/src/objdetect/objdetect_async.h index d257cf2a..f0eef021 100644 --- a/src/objdetect/objdetect_async.h +++ b/src/objdetect/objdetect_async.h @@ -1,8 +1,9 @@ -/* Created by Rainyl. Licensed: Apache 2.0 license. Copyright (c) 2024 Rainyl. */ +/* Created by Rainyl. Licensed: Apache 2.0 license. Copyright (c) 2024 Rainyl. */ #ifndef CVD_OBJDETECT_ASYNC_H_ #define CVD_OBJDETECT_ASYNC_H_ #include "core/types.h" +#include "objdetect.h" #include #ifdef __cplusplus @@ -10,22 +11,6 @@ extern "C" { #endif -#ifdef __cplusplus -// Define types for the C++ classes used -CVD_TYPEDEF(cv::CascadeClassifier, CascadeClassifier); -CVD_TYPEDEF(cv::HOGDescriptor, HOGDescriptor); -CVD_TYPEDEF(cv::QRCodeDetector, QRCodeDetector); -CVD_TYPEDEF(cv::Ptr, FaceDetectorYN); -CVD_TYPEDEF(cv::Ptr, FaceRecognizerSF); -#else -// Define types for the C-compatible interface -CVD_TYPEDEF(void, CascadeClassifier); -CVD_TYPEDEF(void, HOGDescriptor); -CVD_TYPEDEF(void, QRCodeDetector); -CVD_TYPEDEF(void *, FaceDetectorYN); -CVD_TYPEDEF(void *, FaceRecognizerSF); -#endif - // CascadeClassifier CvStatus *CascadeClassifier_New_Async(CvCallback_1 callback); CvStatus *CascadeClassifier_NewFromFile_Async(const char *filename, CvCallback_1 callback); From 0d0e444dfe9519e122749b9760b08e1340ca8361 Mon Sep 17 00:00:00 2001 From: Abdelaziz Mahdy Date: Fri, 28 Jun 2024 12:22:36 +0300 Subject: [PATCH 18/21] dnn async test --- lib/opencv_dart.dart | 1 + lib/src/dnn/dnn_async.dart | 278 +++++++++++++++++---------------- test/dnn/dnn_async_test.dart | 289 +++++++++++++++++++++++++++++++++++ test/{ => dnn}/dnn_test.dart | 0 4 files changed, 437 insertions(+), 131 deletions(-) create mode 100644 test/dnn/dnn_async_test.dart rename test/{ => dnn}/dnn_test.dart (100%) diff --git a/lib/opencv_dart.dart b/lib/opencv_dart.dart index 42164d30..9d6b3a16 100644 --- a/lib/opencv_dart.dart +++ b/lib/opencv_dart.dart @@ -28,6 +28,7 @@ export 'src/core/scalar.dart'; export 'src/core/size.dart'; export 'src/core/vec.dart'; export 'src/dnn/dnn.dart'; +export 'src/dnn/dnn_async.dart'; export 'src/features2d/features2d.dart'; export 'src/highgui/highgui.dart'; export 'src/imgcodecs/imgcodecs.dart'; diff --git a/lib/src/dnn/dnn_async.dart b/lib/src/dnn/dnn_async.dart index 2c0063bf..02bcc4fa 100644 --- a/lib/src/dnn/dnn_async.dart +++ b/lib/src/dnn/dnn_async.dart @@ -15,7 +15,7 @@ import '../core/vec.dart'; import '../opencv.g.dart' as cvg; extension LayerAsync on Layer { - Future getNameAsync() async { + Future get nameAsync async { final p = calloc>(); final rval = cvRunAsync( (callback) => CFFI.Layer_GetName_Async(ref, callback), @@ -28,7 +28,7 @@ extension LayerAsync on Layer { return rval; } - Future getTypeAsync() async { + Future get typeAsync async { final p = calloc>(); final rval = cvRunAsync( (callback) => CFFI.Layer_GetType_Async(ref, callback), @@ -73,19 +73,23 @@ extension LayerAsync on Layer { extension NetAsync on Net { static Future emptyAsync() async { - final rval = await cvRunAsync((callback) => CFFI.Net_Create_Async(callback), (c, p) { + final rval = await cvRunAsync( + (callback) => CFFI.Net_Create_Async(callback), (c, p) { return c.complete(Net.fromPointer(p.cast())); }); return rval; } - static Future fromFileAsync(String path, {String config = "", String framework = ""}) async { + static Future fromFileAsync(String path, + {String config = "", String framework = ""}) async { final cPath = path.toNativeUtf8().cast(); final cConfig = config.toNativeUtf8().cast(); final cFramework = framework.toNativeUtf8().cast(); final rval = await cvRunAsync( - (callback) => CFFI.Net_ReadNet_Async(cPath, cConfig, cFramework, callback), (c, p) { + (callback) => + CFFI.Net_ReadNet_Async(cPath, cConfig, cFramework, callback), + (c, p) { return c.complete(Net.fromPointer(p.cast())); }); calloc.free(cPath); @@ -102,7 +106,8 @@ extension NetAsync on Net { final bufM = VecUChar.fromList(bufferModel); final bufC = VecUChar.fromList(bufferConfig); final rval = await cvRunAsync( - (callback) => CFFI.Net_ReadNetBytes_Async(cFramework, bufM.ref, bufC.ref, callback), (c, p) { + (callback) => CFFI.Net_ReadNetBytes_Async( + cFramework, bufM.ref, bufC.ref, callback), (c, p) { return c.complete(Net.fromPointer(p.cast())); }); @@ -115,7 +120,8 @@ extension NetAsync on Net { final cProto = prototxt.toNativeUtf8().cast(); final cCaffe = caffeModel.toNativeUtf8().cast(); final rval = await cvRunAsync( - (callback) => CFFI.Net_ReadNetFromCaffe_Async(cProto, cCaffe, callback), (c, p) { + (callback) => CFFI.Net_ReadNetFromCaffe_Async(cProto, cCaffe, callback), + (c, p) { return c.complete(Net.fromPointer(p.cast())); }); calloc.free(cProto); @@ -124,11 +130,14 @@ extension NetAsync on Net { return rval; } - static Future fromCaffeBytesAsync(Uint8List bufferProto, Uint8List bufferModel) async { + static Future fromCaffeBytesAsync( + Uint8List bufferProto, Uint8List bufferModel) async { final bufP = VecUChar.fromList(bufferProto); final bufM = VecUChar.fromList(bufferModel); final rval = await cvRunAsync( - (callback) => CFFI.Net_ReadNetFromCaffeBytes_Async(bufP.ref, bufM.ref, callback), (c, p) { + (callback) => + CFFI.Net_ReadNetFromCaffeBytes_Async(bufP.ref, bufM.ref, callback), + (c, p) { return c.complete(Net.fromPointer(p.cast())); }); return rval; @@ -136,7 +145,8 @@ extension NetAsync on Net { static Future fromOnnxAsync(String path) async { final cpath = path.toNativeUtf8().cast(); - final rval = await cvRunAsync((callback) => CFFI.Net_ReadNetFromONNX_Async(cpath, callback), (c, p) { + final rval = await cvRunAsync( + (callback) => CFFI.Net_ReadNetFromONNX_Async(cpath, callback), (c, p) { return c.complete(Net.fromPointer(p.cast())); }); calloc.free(cpath); @@ -146,18 +156,22 @@ extension NetAsync on Net { static Future fromOnnxBytesAsync(Uint8List bufferModel) async { final bufM = VecUChar.fromList(bufferModel); - final rval = - await cvRunAsync((callback) => CFFI.Net_ReadNetFromONNXBytes_Async(bufM.ref, callback), (c, p) { + final rval = await cvRunAsync( + (callback) => CFFI.Net_ReadNetFromONNXBytes_Async(bufM.ref, callback), + (c, p) { return c.complete(Net.fromPointer(p.cast())); }); return rval; } - static Future fromTensorflowAsync(String path, {String config = ""}) async { + static Future fromTensorflowAsync(String path, + {String config = ""}) async { final cpath = path.toNativeUtf8().cast(); final cconf = config.toNativeUtf8().cast(); final rval = await cvRunAsync( - (callback) => CFFI.Net_ReadNetFromTensorflow_Async(cpath, cconf, callback), (c, p) { + (callback) => + CFFI.Net_ReadNetFromTensorflow_Async(cpath, cconf, callback), + (c, p) { return c.complete(Net.fromPointer(p.cast())); }); calloc.free(cpath); @@ -166,12 +180,14 @@ extension NetAsync on Net { return rval; } - static Future fromTensorflowBytesAsync(Uint8List bufferModel, {Uint8List? bufferConfig}) async { + static Future fromTensorflowBytesAsync(Uint8List bufferModel, + {Uint8List? bufferConfig}) async { bufferConfig ??= Uint8List(0); final bufM = VecUChar.fromList(bufferModel); final bufC = VecUChar.fromList(bufferConfig); final rval = await cvRunAsync( - (callback) => CFFI.Net_ReadNetFromTensorflowBytes_Async(bufM.ref, bufC.ref, callback), (c, p) { + (callback) => CFFI.Net_ReadNetFromTensorflowBytes_Async( + bufM.ref, bufC.ref, callback), (c, p) { return c.complete(Net.fromPointer(p.cast())); }); return rval; @@ -179,8 +195,9 @@ extension NetAsync on Net { static Future fromTFLiteAsync(String path) async { final cpath = path.toNativeUtf8().cast(); - final rval = - await cvRunAsync((callback) => CFFI.Net_ReadNetFromTFLite_Async(cpath, callback), (c, p) { + final rval = await cvRunAsync( + (callback) => CFFI.Net_ReadNetFromTFLite_Async(cpath, callback), + (c, p) { return c.complete(Net.fromPointer(p.cast())); }); calloc.free(cpath); @@ -190,16 +207,19 @@ extension NetAsync on Net { static Future fromTFLiteBytesAsync(Uint8List bufferModel) async { final bufM = VecUChar.fromList(bufferModel); final rval = await cvRunAsync( - (callback) => CFFI.Net_ReadNetFromTFLiteBytes_Async(bufM.ref, callback), (c, p) { + (callback) => CFFI.Net_ReadNetFromTFLiteBytes_Async(bufM.ref, callback), + (c, p) { return c.complete(Net.fromPointer(p.cast())); }); return rval; } - static Future fromTorchAsync(String path, {bool isBinary = true, bool evaluate = true}) async { + static Future fromTorchAsync(String path, + {bool isBinary = true, bool evaluate = true}) async { final cpath = path.toNativeUtf8().cast(); final rval = await cvRunAsync( - (callback) => CFFI.Net_ReadNetFromTorch_Async(cpath, isBinary, evaluate, callback), (c, p) { + (callback) => CFFI.Net_ReadNetFromTorch_Async( + cpath, isBinary, evaluate, callback), (c, p) { return c.complete(Net.fromPointer(p.cast())); }); calloc.free(cpath); @@ -244,7 +264,8 @@ extension NetAsync on Net { Future forwardAsync({String outputName = ""}) async { final rval = cvRunAsync( - (callback) => CFFI.Net_Forward_Async(ref, outputName.toNativeUtf8().cast(), callback), + (callback) => CFFI.Net_Forward_Async( + ref, outputName.toNativeUtf8().cast(), callback), (c, result) => c.complete(Mat.fromPointer(result.cast())), ); return rval; @@ -261,7 +282,8 @@ extension NetAsync on Net { Future setPreferableBackendAsync(int backendId) async { await cvRunAsync0( - (callback) => CFFI.Net_SetPreferableBackend_Async(ref, backendId, callback), + (callback) => + CFFI.Net_SetPreferableBackend_Async(ref, backendId, callback), (c) => c.complete(), ); } @@ -296,7 +318,8 @@ extension NetAsync on Net { Future> getLayerNamesAsync() async { final rval = cvRunAsync>( (callback) => CFFI.Net_GetLayerNames_Async(ref, callback), - (c, result) => c.complete(VecVecChar.fromPointer(result.cast()).asStringList()), + (c, result) => c.complete( + VecVecChar.fromPointer(result.cast()).asStringList()), ); return rval; } @@ -304,24 +327,10 @@ extension NetAsync on Net { Future<(VecFloat, VecInt)> getInputDetailsAsync() async { final rval = cvRunAsync2<(VecFloat, VecInt)>( (callback) => CFFI.Net_GetInputDetails_Async(ref, callback), - (c, sc, zp) => c.complete( - (VecFloat.fromPointer(sc.cast()), VecInt.fromPointer(zp.cast()))), - ); - return rval; - } - - Future getBlobChannelAsync(Mat blob, int imgidx, int chnidx) async { - final rval = cvRunAsync( - (callback) => CFFI.Net_GetBlobChannel_Async(blob.ref, imgidx, chnidx, callback), - (c, result) => c.complete(Mat.fromPointer(result.cast())), - ); - return rval; - } - - Future getBlobSizeAsync(Mat blob) async { - final rval = cvRunAsync( - (callback) => CFFI.Net_GetBlobSize_Async(blob.ref, callback), - (c, result) => c.complete(Scalar.fromPointer(result.cast())), + (c, sc, zp) => c.complete(( + VecFloat.fromPointer(sc.cast()), + VecInt.fromPointer(zp.cast()) + )), ); return rval; } @@ -333,99 +342,106 @@ extension NetAsync on Net { ); return rval; } +} - static Future blobFromImageAsync( - InputArray image, { - double scalefactor = 1.0, - (int, int) size = (0, 0), - Scalar? mean, - bool swapRB = false, - bool crop = false, - int ddepth = MatType.CV_32F, - }) async { - mean ??= Scalar.zeros; - final rval = await cvRunAsync( - (callback) => CFFI.Net_BlobFromImage_Async( - image.ref, - scalefactor, - size.cvd.ref, - mean!.ref, - swapRB, - crop, - ddepth, - callback, - ), - (c, mat) => c.complete(Mat.fromPointer(mat.cast())), - ); - return rval; - } - - static Future blobFromImagesAsync( - VecMat images, { - double scalefactor = 1.0, - (int, int) size = (0, 0), - Scalar? mean, - bool swapRB = false, - bool crop = false, - int ddepth = MatType.CV_32F, - }) async { - mean ??= Scalar.zeros; - final rval = await cvRunAsync( - (callback) => CFFI.Net_BlobFromImages_Async( - images.ref, - scalefactor, - size.cvd.ref, - mean!.ref, - swapRB, - crop, - ddepth, - callback, - ), - (c, blob) => c.complete(Mat.fromPointer(blob.cast())), - ); - return rval; - } +Future getBlobChannelAsync(Mat blob, int imgidx, int chnidx) async { + final rval = cvRunAsync( + (callback) => + CFFI.Net_GetBlobChannel_Async(blob.ref, imgidx, chnidx, callback), + (c, result) => c.complete(Mat.fromPointer(result.cast())), + ); + return rval; +} - static Future> imagesFromBlobAsync(Mat blob) async { - final rval = cvRunAsync>( - (callback) => CFFI.Net_ImagesFromBlob_Async(blob.ref, callback), - (c, result) => c.complete(VecMat.fromPointer(result.cast()).toList()), - ); - return rval; - } +Future getBlobSizeAsync(Mat blob) async { + final rval = cvRunAsync( + (callback) => CFFI.Net_GetBlobSize_Async(blob.ref, callback), + (c, result) => c.complete(Scalar.fromPointer(result.cast())), + ); + return rval; +} - static Future> NMSBoxesAsync( - VecRect bboxes, - VecFloat scores, - double scoreThreshold, - double nmsThreshold, { - double eta = 1.0, - int topK = 0, - }) async { - final rval = cvRunAsync>( - (callback) => CFFI.NMSBoxesWithParams_Async( - bboxes.ref, - scores.ref, - scoreThreshold, - nmsThreshold, - eta, - topK, - callback, - ), - (c, result) => c.complete(VecInt.fromPointer(result.cast()).toList()), - ); - return rval; - } +Future> NMSBoxesAsync( + VecRect bboxes, + VecFloat scores, + double scoreThreshold, + double nmsThreshold, { + double eta = 1.0, + int topK = 0, +}) async { + final rval = cvRunAsync>( + (callback) => CFFI.NMSBoxesWithParams_Async( + bboxes.ref, + scores.ref, + scoreThreshold, + nmsThreshold, + eta, + topK, + callback, + ), + (c, result) => + c.complete(VecInt.fromPointer(result.cast()).toList()), + ); + return rval; +} - static final finalizer = OcvFinalizer(CFFI.addresses.Net_Close); +Future blobFromImageAsync( + InputArray image, { + double scalefactor = 1.0, + (int, int) size = (0, 0), + Scalar? mean, + bool swapRB = false, + bool crop = false, + int ddepth = MatType.CV_32F, +}) async { + mean ??= Scalar.zeros; + final rval = await cvRunAsync( + (callback) => CFFI.Net_BlobFromImage_Async( + image.ref, + scalefactor, + size.cvd.ref, + mean!.ref, + swapRB, + crop, + ddepth, + callback, + ), + (c, mat) => c.complete(Mat.fromPointer(mat.cast())), + ); + return rval; +} - void dispose() { - finalizer.detach(this); - CFFI.Net_Close(ptr); - } +Future blobFromImagesAsync( + VecMat images, { + double scalefactor = 1.0, + (int, int) size = (0, 0), + Scalar? mean, + bool swapRB = false, + bool crop = false, + int ddepth = MatType.CV_32F, +}) async { + mean ??= Scalar.zeros; + final rval = await cvRunAsync( + (callback) => CFFI.Net_BlobFromImages_Async( + images.ref, + scalefactor, + size.cvd.ref, + mean!.ref, + swapRB, + crop, + ddepth, + callback, + ), + (c, blob) => c.complete(Mat.fromPointer(blob.cast())), + ); + return rval; +} - @override - List get props => [ptr.address]; - @override - cvg.Net get ref => ptr.ref; +Future> imagesFromBlobAsync(Mat blob) async { + final rval = cvRunAsync>( + (callback) => CFFI.Net_ImagesFromBlob_Async(blob.ref, callback), + (c, result) => + c.complete(VecMat.fromPointer(result.cast()).toList()), + ); + return rval; } diff --git a/test/dnn/dnn_async_test.dart b/test/dnn/dnn_async_test.dart new file mode 100644 index 00000000..e9c1ce88 --- /dev/null +++ b/test/dnn/dnn_async_test.dart @@ -0,0 +1,289 @@ +import 'dart:io'; +import 'package:opencv_dart/opencv_dart.dart' as cv; +import 'package:test/test.dart'; + +Future checkCaffeNetAsync(cv.Net net) async { + expect(net.isEmpty, false); + await net.setPreferableBackendAsync(cv.DNN_BACKEND_DEFAULT); + await net.setPreferableTargetAsync(cv.DNN_TARGET_CPU); + + final img = await cv.imreadAsync("test/images/space_shuttle.jpg", + flags: cv.IMREAD_COLOR); + expect(img.isEmpty, false); + + final blob = await cv.blobFromImageAsync( + img, + scalefactor: 1.0, + size: (224, 224), + mean: cv.Scalar.all(0), + swapRB: false, + crop: false, + ); + expect(blob.isEmpty, false); + + await net.setInputAsync(blob, name: "data"); + final layer = await net.getLayerAsync(0); + expect(await layer.inputNameToIndexAsync("notthere"), -1); + expect(await layer.outputNameToIndexAsync("notthere"), -1); + expect(await layer.nameAsync, "_input"); + expect(await layer.typeAsync, ""); + + final ids = await net.getUnconnectedOutLayersAsync(); + expect((ids.length, ids.first), (1, 142)); + + final lnames = await net.getLayerNamesAsync(); + expect((lnames.length, lnames[1]), (142, "conv1/relu_7x7")); + + final prob = await net.forwardLayersAsync(["prob"]); + expect(prob.length, greaterThan(0)); + expect(prob.first.isEmpty, false); + + final probMat = prob.first.reshape(1, 1); + final (_, maxVal, minLoc, maxLoc) = await cv.minMaxLocAsync(probMat); + expect(maxVal, closeTo(0.9998, 5e-5)); + expect((minLoc.x, minLoc.y), (955, 0)); + expect((maxLoc.x, maxLoc.y), (812, 0)); + + final perf = await net.getPerfProfileAsync(); + expect(perf, greaterThan(0)); + + return true; +} + +Future checkTensorflowAsync(cv.Net net) async { + expect(net.isEmpty, false); + final img = await cv.imreadAsync("test/images/space_shuttle.jpg", + flags: cv.IMREAD_COLOR); + expect(img.isEmpty, false); + + final blob = await cv.blobFromImageAsync( + img, + scalefactor: 1.0, + size: (224, 224), + mean: cv.Scalar.all(0), + swapRB: true, + crop: false, + ); + expect(blob.isEmpty, false); + + await net.setInputAsync(blob, name: "input"); + final prob = await net.forwardLayersAsync(["softmax2"]); + expect(prob.isEmpty, false); + + final probMat = prob.first.reshape(1, 1); + final (_, maxVal, minLoc, maxLoc) = await cv.minMaxLocAsync(probMat); + expect(maxVal, closeTo(1.0, 5e-5)); + expect((minLoc.x, minLoc.y), (481, 0)); + expect((maxLoc.x, maxLoc.y), (234, 0)); + + final perf = await net.getPerfProfileAsync(); + expect(perf, greaterThan(0)); + + return true; +} + +Future checkOnnxAsync(cv.Net net) async { + expect(net.isEmpty, false); + final img = await cv.imreadAsync("test/images/space_shuttle.jpg", + flags: cv.IMREAD_COLOR); + expect(img.isEmpty, false); + + final blob = await cv.blobFromImageAsync( + img, + scalefactor: 1.0, + size: (224, 224), + mean: cv.Scalar.all(0), + swapRB: true, + crop: false, + ); + expect(blob.isEmpty, false); + + await net.setInputAsync(blob, name: "data_0"); + final prob = await net.forwardLayersAsync(["prob_1"]); + expect(prob.isEmpty, false); + + final probMat = prob.first.reshape(1, 1); + final (_, maxVal, minLoc, maxLoc) = await cv.minMaxLocAsync(probMat); + expect(maxVal, closeTo(0.9965, 5e-3)); + expect((minLoc.x, minLoc.y), (955, 0)); + expect((maxLoc.x, maxLoc.y), (812, 0)); + + final perf = await net.getPerfProfileAsync(); + expect(perf, greaterThan(0)); + + return true; +} + +Future checkTfliteAsync(cv.Net net) async { + expect(net.isEmpty, false); + final img = await cv.imreadAsync("test/images/space_shuttle.jpg", + flags: cv.IMREAD_COLOR); + expect(img.isEmpty, false); + + final blob = await cv.blobFromImageAsync( + img, + scalefactor: 1.0, + size: (224, 224), + mean: cv.Scalar.all(0), + swapRB: true, + crop: false, + ); + expect(blob.isEmpty, false); + + // TODO: TFLite support of opencv is not complete + // print(net.getLayerNames()); + // net.setInput(blob, name: "inputs_0"); + + return true; +} + +void main() async { + test('cv.NetAsync.fromFileAsync', () async { + final net = await cv.NetAsync.emptyAsync(); + expect(net.isEmpty, true); + + final model = await cv.NetAsync.fromFileAsync( + "test/models/bvlc_googlenet.caffemodel", + config: "test/models/bvlc_googlenet.prototxt", + ); + await checkCaffeNetAsync(model); + expect(await model.dumpAsync(), isNotEmpty); + + model.dispose(); + }); + + test('cv.NetAsync.fromBytesAsync', () async { + final bytes = + await File("test/models/bvlc_googlenet.caffemodel").readAsBytes(); + final config = + await File("test/models/bvlc_googlenet.prototxt").readAsBytes(); + final model = + await cv.NetAsync.fromBytesAsync("caffe", bytes, bufferConfig: config); + await checkCaffeNetAsync(model); + + model.dispose(); + }); + + test('cv.NetAsync.fromCaffeAsync', () async { + final model = await cv.NetAsync.fromCaffeAsync( + "test/models/bvlc_googlenet.prototxt", + "test/models/bvlc_googlenet.caffemodel", + ); + await checkCaffeNetAsync(model); + }); + + test('cv.NetAsync.fromCaffeBytesAsync', () async { + final bytes = + await File("test/models/bvlc_googlenet.caffemodel").readAsBytes(); + final config = + await File("test/models/bvlc_googlenet.prototxt").readAsBytes(); + final model = await cv.NetAsync.fromCaffeBytesAsync(config, bytes); + await checkCaffeNetAsync(model); + }); + + test('cv.NetAsync.fromOnnxAsync', () async { + final model = + await cv.NetAsync.fromOnnxAsync("test/models/googlenet-9.onnx"); + await checkOnnxAsync(model); + }); + + test('cv.NetAsync.fromOnnxBytesAsync', () async { + final bytes = await File("test/models/googlenet-9.onnx").readAsBytes(); + final model = await cv.NetAsync.fromOnnxBytesAsync(bytes); + await checkOnnxAsync(model); + }); + + test('cv.NetAsync.fromTensorflowAsync', () async { + final model = await cv.NetAsync.fromTensorflowAsync( + "test/models/tensorflow_inception_graph.pb"); + expect(model.isEmpty, false); + await checkTensorflowAsync(model); + }); + + test('cv.NetAsync.fromTensorflowBytesAsync', () async { + final bytes = + await File("test/models/tensorflow_inception_graph.pb").readAsBytes(); + final model = await cv.NetAsync.fromTensorflowBytesAsync(bytes); + expect(model.isEmpty, false); + await checkTensorflowAsync(model); + }); + + test('cv.NetAsync.fromTFLiteAsync', skip: true, () async { + final model = await cv.NetAsync.fromTFLiteAsync( + "test/models/googlenet_float32.tflite"); + await checkTfliteAsync(model); + }); + + test('cv.NetAsync.fromTorchAsync', () async { + final img = + await cv.imreadAsync("test/images/lenna.png", flags: cv.IMREAD_COLOR); + expect(img.isEmpty, false); + final model = await cv.NetAsync.fromTorchAsync( + "test/models/openface.nn4.small2.v1.t7"); + expect(model.isEmpty, false); + + final blob = await cv.blobFromImageAsync( + img, + scalefactor: 1.0, + size: (224, 224), + mean: cv.Scalar.all(0), + swapRB: false, + crop: false, + ); + expect(blob.isEmpty, false); + }); + + test('cv.blobFromImagesAsync, cv.imagesFromBlobAsync, cv.getBlobChannelAsync', + () async { + final imgs = [ + await cv.imreadAsync("test/images/lenna.png", flags: cv.IMREAD_COLOR), + await cv.imreadAsync("test/images/lenna.png", flags: cv.IMREAD_COLOR), + ].cvd; + + final blob = await cv.blobFromImagesAsync(imgs); + expect(blob.isEmpty, false); + expect(await cv.getBlobSizeAsync(blob), cv.Scalar(2, 3, 480, 512)); + + final images = await cv.imagesFromBlobAsync(blob); + expect(images.length, 2); + expect((images.first.rows, images.first.cols), + (imgs.first.rows, imgs.first.cols)); + expect( + (images.last.rows, images.last.cols), (imgs.last.rows, imgs.last.cols)); + + final ch2 = await cv.getBlobChannelAsync(blob, 0, 1); + expect(ch2.isEmpty, false); + expect((ch2.rows, ch2.cols), (imgs.first.rows, imgs.first.cols)); + }); + + test('cv.blobFromImagesAsync GrayScale', () async { + final imgs = [ + await cv.imreadAsync("test/images/lenna.png", flags: cv.IMREAD_GRAYSCALE), + await cv.imreadAsync("test/images/lenna.png", flags: cv.IMREAD_GRAYSCALE), + ].cvd; + + final blob = await cv.blobFromImagesAsync(imgs); + expect(blob.isEmpty, false); + expect(await cv.getBlobSizeAsync(blob), cv.Scalar(2, 1, 480, 512)); + }); + + test('cv.NMSBoxesAsync', () async { + final img = + await cv.imreadAsync("test/images/lenna.png", flags: cv.IMREAD_COLOR); + expect(img.isEmpty, false); + + await img.convertToAsync(cv.MatType.CV_32FC1); + + final bboxes = [ + cv.Rect(53, 47, 589, 451), + cv.Rect(118, 54, 618, 450), + cv.Rect(53, 66, 605, 480), + cv.Rect(111, 65, 630, 480), + cv.Rect(156, 51, 640, 480), + ].cvd; + final scores = + [0.82094115, 0.7998236, 0.9809663, 0.99717456, 0.89628726].f32; + final indices = await cv.NMSBoxesAsync(bboxes, scores, 0.5, 0.4); + expect(indices.first, 3); + }); +} diff --git a/test/dnn_test.dart b/test/dnn/dnn_test.dart similarity index 100% rename from test/dnn_test.dart rename to test/dnn/dnn_test.dart From 168466de343afc62f461bd0782c92cca9c5f6763 Mon Sep 17 00:00:00 2001 From: abdelaziz-mahdy Date: Fri, 28 Jun 2024 09:23:32 +0000 Subject: [PATCH 19/21] =?UTF-8?q?dart=20format=20=E2=9C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/src/dnn/dnn_async.dart | 82 ++++++++++++------------------------ test/dnn/dnn_async_test.dart | 60 +++++++++----------------- 2 files changed, 47 insertions(+), 95 deletions(-) diff --git a/lib/src/dnn/dnn_async.dart b/lib/src/dnn/dnn_async.dart index 02bcc4fa..2f91db8a 100644 --- a/lib/src/dnn/dnn_async.dart +++ b/lib/src/dnn/dnn_async.dart @@ -73,23 +73,19 @@ extension LayerAsync on Layer { extension NetAsync on Net { static Future emptyAsync() async { - final rval = await cvRunAsync( - (callback) => CFFI.Net_Create_Async(callback), (c, p) { + final rval = await cvRunAsync((callback) => CFFI.Net_Create_Async(callback), (c, p) { return c.complete(Net.fromPointer(p.cast())); }); return rval; } - static Future fromFileAsync(String path, - {String config = "", String framework = ""}) async { + static Future fromFileAsync(String path, {String config = "", String framework = ""}) async { final cPath = path.toNativeUtf8().cast(); final cConfig = config.toNativeUtf8().cast(); final cFramework = framework.toNativeUtf8().cast(); final rval = await cvRunAsync( - (callback) => - CFFI.Net_ReadNet_Async(cPath, cConfig, cFramework, callback), - (c, p) { + (callback) => CFFI.Net_ReadNet_Async(cPath, cConfig, cFramework, callback), (c, p) { return c.complete(Net.fromPointer(p.cast())); }); calloc.free(cPath); @@ -106,8 +102,7 @@ extension NetAsync on Net { final bufM = VecUChar.fromList(bufferModel); final bufC = VecUChar.fromList(bufferConfig); final rval = await cvRunAsync( - (callback) => CFFI.Net_ReadNetBytes_Async( - cFramework, bufM.ref, bufC.ref, callback), (c, p) { + (callback) => CFFI.Net_ReadNetBytes_Async(cFramework, bufM.ref, bufC.ref, callback), (c, p) { return c.complete(Net.fromPointer(p.cast())); }); @@ -120,8 +115,7 @@ extension NetAsync on Net { final cProto = prototxt.toNativeUtf8().cast(); final cCaffe = caffeModel.toNativeUtf8().cast(); final rval = await cvRunAsync( - (callback) => CFFI.Net_ReadNetFromCaffe_Async(cProto, cCaffe, callback), - (c, p) { + (callback) => CFFI.Net_ReadNetFromCaffe_Async(cProto, cCaffe, callback), (c, p) { return c.complete(Net.fromPointer(p.cast())); }); calloc.free(cProto); @@ -130,14 +124,11 @@ extension NetAsync on Net { return rval; } - static Future fromCaffeBytesAsync( - Uint8List bufferProto, Uint8List bufferModel) async { + static Future fromCaffeBytesAsync(Uint8List bufferProto, Uint8List bufferModel) async { final bufP = VecUChar.fromList(bufferProto); final bufM = VecUChar.fromList(bufferModel); final rval = await cvRunAsync( - (callback) => - CFFI.Net_ReadNetFromCaffeBytes_Async(bufP.ref, bufM.ref, callback), - (c, p) { + (callback) => CFFI.Net_ReadNetFromCaffeBytes_Async(bufP.ref, bufM.ref, callback), (c, p) { return c.complete(Net.fromPointer(p.cast())); }); return rval; @@ -145,8 +136,7 @@ extension NetAsync on Net { static Future fromOnnxAsync(String path) async { final cpath = path.toNativeUtf8().cast(); - final rval = await cvRunAsync( - (callback) => CFFI.Net_ReadNetFromONNX_Async(cpath, callback), (c, p) { + final rval = await cvRunAsync((callback) => CFFI.Net_ReadNetFromONNX_Async(cpath, callback), (c, p) { return c.complete(Net.fromPointer(p.cast())); }); calloc.free(cpath); @@ -156,22 +146,18 @@ extension NetAsync on Net { static Future fromOnnxBytesAsync(Uint8List bufferModel) async { final bufM = VecUChar.fromList(bufferModel); - final rval = await cvRunAsync( - (callback) => CFFI.Net_ReadNetFromONNXBytes_Async(bufM.ref, callback), - (c, p) { + final rval = + await cvRunAsync((callback) => CFFI.Net_ReadNetFromONNXBytes_Async(bufM.ref, callback), (c, p) { return c.complete(Net.fromPointer(p.cast())); }); return rval; } - static Future fromTensorflowAsync(String path, - {String config = ""}) async { + static Future fromTensorflowAsync(String path, {String config = ""}) async { final cpath = path.toNativeUtf8().cast(); final cconf = config.toNativeUtf8().cast(); final rval = await cvRunAsync( - (callback) => - CFFI.Net_ReadNetFromTensorflow_Async(cpath, cconf, callback), - (c, p) { + (callback) => CFFI.Net_ReadNetFromTensorflow_Async(cpath, cconf, callback), (c, p) { return c.complete(Net.fromPointer(p.cast())); }); calloc.free(cpath); @@ -180,14 +166,12 @@ extension NetAsync on Net { return rval; } - static Future fromTensorflowBytesAsync(Uint8List bufferModel, - {Uint8List? bufferConfig}) async { + static Future fromTensorflowBytesAsync(Uint8List bufferModel, {Uint8List? bufferConfig}) async { bufferConfig ??= Uint8List(0); final bufM = VecUChar.fromList(bufferModel); final bufC = VecUChar.fromList(bufferConfig); final rval = await cvRunAsync( - (callback) => CFFI.Net_ReadNetFromTensorflowBytes_Async( - bufM.ref, bufC.ref, callback), (c, p) { + (callback) => CFFI.Net_ReadNetFromTensorflowBytes_Async(bufM.ref, bufC.ref, callback), (c, p) { return c.complete(Net.fromPointer(p.cast())); }); return rval; @@ -195,9 +179,8 @@ extension NetAsync on Net { static Future fromTFLiteAsync(String path) async { final cpath = path.toNativeUtf8().cast(); - final rval = await cvRunAsync( - (callback) => CFFI.Net_ReadNetFromTFLite_Async(cpath, callback), - (c, p) { + final rval = + await cvRunAsync((callback) => CFFI.Net_ReadNetFromTFLite_Async(cpath, callback), (c, p) { return c.complete(Net.fromPointer(p.cast())); }); calloc.free(cpath); @@ -207,19 +190,16 @@ extension NetAsync on Net { static Future fromTFLiteBytesAsync(Uint8List bufferModel) async { final bufM = VecUChar.fromList(bufferModel); final rval = await cvRunAsync( - (callback) => CFFI.Net_ReadNetFromTFLiteBytes_Async(bufM.ref, callback), - (c, p) { + (callback) => CFFI.Net_ReadNetFromTFLiteBytes_Async(bufM.ref, callback), (c, p) { return c.complete(Net.fromPointer(p.cast())); }); return rval; } - static Future fromTorchAsync(String path, - {bool isBinary = true, bool evaluate = true}) async { + static Future fromTorchAsync(String path, {bool isBinary = true, bool evaluate = true}) async { final cpath = path.toNativeUtf8().cast(); final rval = await cvRunAsync( - (callback) => CFFI.Net_ReadNetFromTorch_Async( - cpath, isBinary, evaluate, callback), (c, p) { + (callback) => CFFI.Net_ReadNetFromTorch_Async(cpath, isBinary, evaluate, callback), (c, p) { return c.complete(Net.fromPointer(p.cast())); }); calloc.free(cpath); @@ -264,8 +244,7 @@ extension NetAsync on Net { Future forwardAsync({String outputName = ""}) async { final rval = cvRunAsync( - (callback) => CFFI.Net_Forward_Async( - ref, outputName.toNativeUtf8().cast(), callback), + (callback) => CFFI.Net_Forward_Async(ref, outputName.toNativeUtf8().cast(), callback), (c, result) => c.complete(Mat.fromPointer(result.cast())), ); return rval; @@ -282,8 +261,7 @@ extension NetAsync on Net { Future setPreferableBackendAsync(int backendId) async { await cvRunAsync0( - (callback) => - CFFI.Net_SetPreferableBackend_Async(ref, backendId, callback), + (callback) => CFFI.Net_SetPreferableBackend_Async(ref, backendId, callback), (c) => c.complete(), ); } @@ -318,8 +296,7 @@ extension NetAsync on Net { Future> getLayerNamesAsync() async { final rval = cvRunAsync>( (callback) => CFFI.Net_GetLayerNames_Async(ref, callback), - (c, result) => c.complete( - VecVecChar.fromPointer(result.cast()).asStringList()), + (c, result) => c.complete(VecVecChar.fromPointer(result.cast()).asStringList()), ); return rval; } @@ -327,10 +304,8 @@ extension NetAsync on Net { Future<(VecFloat, VecInt)> getInputDetailsAsync() async { final rval = cvRunAsync2<(VecFloat, VecInt)>( (callback) => CFFI.Net_GetInputDetails_Async(ref, callback), - (c, sc, zp) => c.complete(( - VecFloat.fromPointer(sc.cast()), - VecInt.fromPointer(zp.cast()) - )), + (c, sc, zp) => c.complete( + (VecFloat.fromPointer(sc.cast()), VecInt.fromPointer(zp.cast()))), ); return rval; } @@ -346,8 +321,7 @@ extension NetAsync on Net { Future getBlobChannelAsync(Mat blob, int imgidx, int chnidx) async { final rval = cvRunAsync( - (callback) => - CFFI.Net_GetBlobChannel_Async(blob.ref, imgidx, chnidx, callback), + (callback) => CFFI.Net_GetBlobChannel_Async(blob.ref, imgidx, chnidx, callback), (c, result) => c.complete(Mat.fromPointer(result.cast())), ); return rval; @@ -379,8 +353,7 @@ Future> NMSBoxesAsync( topK, callback, ), - (c, result) => - c.complete(VecInt.fromPointer(result.cast()).toList()), + (c, result) => c.complete(VecInt.fromPointer(result.cast()).toList()), ); return rval; } @@ -440,8 +413,7 @@ Future blobFromImagesAsync( Future> imagesFromBlobAsync(Mat blob) async { final rval = cvRunAsync>( (callback) => CFFI.Net_ImagesFromBlob_Async(blob.ref, callback), - (c, result) => - c.complete(VecMat.fromPointer(result.cast()).toList()), + (c, result) => c.complete(VecMat.fromPointer(result.cast()).toList()), ); return rval; } diff --git a/test/dnn/dnn_async_test.dart b/test/dnn/dnn_async_test.dart index e9c1ce88..a1c0f1d7 100644 --- a/test/dnn/dnn_async_test.dart +++ b/test/dnn/dnn_async_test.dart @@ -7,8 +7,7 @@ Future checkCaffeNetAsync(cv.Net net) async { await net.setPreferableBackendAsync(cv.DNN_BACKEND_DEFAULT); await net.setPreferableTargetAsync(cv.DNN_TARGET_CPU); - final img = await cv.imreadAsync("test/images/space_shuttle.jpg", - flags: cv.IMREAD_COLOR); + final img = await cv.imreadAsync("test/images/space_shuttle.jpg", flags: cv.IMREAD_COLOR); expect(img.isEmpty, false); final blob = await cv.blobFromImageAsync( @@ -52,8 +51,7 @@ Future checkCaffeNetAsync(cv.Net net) async { Future checkTensorflowAsync(cv.Net net) async { expect(net.isEmpty, false); - final img = await cv.imreadAsync("test/images/space_shuttle.jpg", - flags: cv.IMREAD_COLOR); + final img = await cv.imreadAsync("test/images/space_shuttle.jpg", flags: cv.IMREAD_COLOR); expect(img.isEmpty, false); final blob = await cv.blobFromImageAsync( @@ -84,8 +82,7 @@ Future checkTensorflowAsync(cv.Net net) async { Future checkOnnxAsync(cv.Net net) async { expect(net.isEmpty, false); - final img = await cv.imreadAsync("test/images/space_shuttle.jpg", - flags: cv.IMREAD_COLOR); + final img = await cv.imreadAsync("test/images/space_shuttle.jpg", flags: cv.IMREAD_COLOR); expect(img.isEmpty, false); final blob = await cv.blobFromImageAsync( @@ -116,8 +113,7 @@ Future checkOnnxAsync(cv.Net net) async { Future checkTfliteAsync(cv.Net net) async { expect(net.isEmpty, false); - final img = await cv.imreadAsync("test/images/space_shuttle.jpg", - flags: cv.IMREAD_COLOR); + final img = await cv.imreadAsync("test/images/space_shuttle.jpg", flags: cv.IMREAD_COLOR); expect(img.isEmpty, false); final blob = await cv.blobFromImageAsync( @@ -153,12 +149,9 @@ void main() async { }); test('cv.NetAsync.fromBytesAsync', () async { - final bytes = - await File("test/models/bvlc_googlenet.caffemodel").readAsBytes(); - final config = - await File("test/models/bvlc_googlenet.prototxt").readAsBytes(); - final model = - await cv.NetAsync.fromBytesAsync("caffe", bytes, bufferConfig: config); + final bytes = await File("test/models/bvlc_googlenet.caffemodel").readAsBytes(); + final config = await File("test/models/bvlc_googlenet.prototxt").readAsBytes(); + final model = await cv.NetAsync.fromBytesAsync("caffe", bytes, bufferConfig: config); await checkCaffeNetAsync(model); model.dispose(); @@ -173,17 +166,14 @@ void main() async { }); test('cv.NetAsync.fromCaffeBytesAsync', () async { - final bytes = - await File("test/models/bvlc_googlenet.caffemodel").readAsBytes(); - final config = - await File("test/models/bvlc_googlenet.prototxt").readAsBytes(); + final bytes = await File("test/models/bvlc_googlenet.caffemodel").readAsBytes(); + final config = await File("test/models/bvlc_googlenet.prototxt").readAsBytes(); final model = await cv.NetAsync.fromCaffeBytesAsync(config, bytes); await checkCaffeNetAsync(model); }); test('cv.NetAsync.fromOnnxAsync', () async { - final model = - await cv.NetAsync.fromOnnxAsync("test/models/googlenet-9.onnx"); + final model = await cv.NetAsync.fromOnnxAsync("test/models/googlenet-9.onnx"); await checkOnnxAsync(model); }); @@ -194,32 +184,27 @@ void main() async { }); test('cv.NetAsync.fromTensorflowAsync', () async { - final model = await cv.NetAsync.fromTensorflowAsync( - "test/models/tensorflow_inception_graph.pb"); + final model = await cv.NetAsync.fromTensorflowAsync("test/models/tensorflow_inception_graph.pb"); expect(model.isEmpty, false); await checkTensorflowAsync(model); }); test('cv.NetAsync.fromTensorflowBytesAsync', () async { - final bytes = - await File("test/models/tensorflow_inception_graph.pb").readAsBytes(); + final bytes = await File("test/models/tensorflow_inception_graph.pb").readAsBytes(); final model = await cv.NetAsync.fromTensorflowBytesAsync(bytes); expect(model.isEmpty, false); await checkTensorflowAsync(model); }); test('cv.NetAsync.fromTFLiteAsync', skip: true, () async { - final model = await cv.NetAsync.fromTFLiteAsync( - "test/models/googlenet_float32.tflite"); + final model = await cv.NetAsync.fromTFLiteAsync("test/models/googlenet_float32.tflite"); await checkTfliteAsync(model); }); test('cv.NetAsync.fromTorchAsync', () async { - final img = - await cv.imreadAsync("test/images/lenna.png", flags: cv.IMREAD_COLOR); + final img = await cv.imreadAsync("test/images/lenna.png", flags: cv.IMREAD_COLOR); expect(img.isEmpty, false); - final model = await cv.NetAsync.fromTorchAsync( - "test/models/openface.nn4.small2.v1.t7"); + final model = await cv.NetAsync.fromTorchAsync("test/models/openface.nn4.small2.v1.t7"); expect(model.isEmpty, false); final blob = await cv.blobFromImageAsync( @@ -233,8 +218,7 @@ void main() async { expect(blob.isEmpty, false); }); - test('cv.blobFromImagesAsync, cv.imagesFromBlobAsync, cv.getBlobChannelAsync', - () async { + test('cv.blobFromImagesAsync, cv.imagesFromBlobAsync, cv.getBlobChannelAsync', () async { final imgs = [ await cv.imreadAsync("test/images/lenna.png", flags: cv.IMREAD_COLOR), await cv.imreadAsync("test/images/lenna.png", flags: cv.IMREAD_COLOR), @@ -246,10 +230,8 @@ void main() async { final images = await cv.imagesFromBlobAsync(blob); expect(images.length, 2); - expect((images.first.rows, images.first.cols), - (imgs.first.rows, imgs.first.cols)); - expect( - (images.last.rows, images.last.cols), (imgs.last.rows, imgs.last.cols)); + expect((images.first.rows, images.first.cols), (imgs.first.rows, imgs.first.cols)); + expect((images.last.rows, images.last.cols), (imgs.last.rows, imgs.last.cols)); final ch2 = await cv.getBlobChannelAsync(blob, 0, 1); expect(ch2.isEmpty, false); @@ -268,8 +250,7 @@ void main() async { }); test('cv.NMSBoxesAsync', () async { - final img = - await cv.imreadAsync("test/images/lenna.png", flags: cv.IMREAD_COLOR); + final img = await cv.imreadAsync("test/images/lenna.png", flags: cv.IMREAD_COLOR); expect(img.isEmpty, false); await img.convertToAsync(cv.MatType.CV_32FC1); @@ -281,8 +262,7 @@ void main() async { cv.Rect(111, 65, 630, 480), cv.Rect(156, 51, 640, 480), ].cvd; - final scores = - [0.82094115, 0.7998236, 0.9809663, 0.99717456, 0.89628726].f32; + final scores = [0.82094115, 0.7998236, 0.9809663, 0.99717456, 0.89628726].f32; final indices = await cv.NMSBoxesAsync(bboxes, scores, 0.5, 0.4); expect(indices.first, 3); }); From 0f87fbb8fe28299fcb10006e5a91b27e5967612c Mon Sep 17 00:00:00 2001 From: Abdelaziz Mahdy Date: Fri, 28 Jun 2024 12:32:15 +0300 Subject: [PATCH 20/21] using sync version and added todos --- test/dnn/dnn_async_test.dart | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/test/dnn/dnn_async_test.dart b/test/dnn/dnn_async_test.dart index e9c1ce88..45ed3cb9 100644 --- a/test/dnn/dnn_async_test.dart +++ b/test/dnn/dnn_async_test.dart @@ -39,7 +39,8 @@ Future checkCaffeNetAsync(cv.Net net) async { expect(prob.first.isEmpty, false); final probMat = prob.first.reshape(1, 1); - final (_, maxVal, minLoc, maxLoc) = await cv.minMaxLocAsync(probMat); + //TODO: Migrate to async + final (_, maxVal, minLoc, maxLoc) = cv.minMaxLoc(probMat); expect(maxVal, closeTo(0.9998, 5e-5)); expect((minLoc.x, minLoc.y), (955, 0)); expect((maxLoc.x, maxLoc.y), (812, 0)); @@ -71,7 +72,8 @@ Future checkTensorflowAsync(cv.Net net) async { expect(prob.isEmpty, false); final probMat = prob.first.reshape(1, 1); - final (_, maxVal, minLoc, maxLoc) = await cv.minMaxLocAsync(probMat); + //TODO: Migrate to async + final (_, maxVal, minLoc, maxLoc) = cv.minMaxLoc(probMat); expect(maxVal, closeTo(1.0, 5e-5)); expect((minLoc.x, minLoc.y), (481, 0)); expect((maxLoc.x, maxLoc.y), (234, 0)); @@ -103,7 +105,8 @@ Future checkOnnxAsync(cv.Net net) async { expect(prob.isEmpty, false); final probMat = prob.first.reshape(1, 1); - final (_, maxVal, minLoc, maxLoc) = await cv.minMaxLocAsync(probMat); + //TODO: Migrate to async + final (_, maxVal, minLoc, maxLoc) = cv.minMaxLoc(probMat); expect(maxVal, closeTo(0.9965, 5e-3)); expect((minLoc.x, minLoc.y), (955, 0)); expect((maxLoc.x, maxLoc.y), (812, 0)); @@ -271,8 +274,8 @@ void main() async { final img = await cv.imreadAsync("test/images/lenna.png", flags: cv.IMREAD_COLOR); expect(img.isEmpty, false); - - await img.convertToAsync(cv.MatType.CV_32FC1); + //TODO: Migrate to async + img.convertTo(cv.MatType.CV_32FC1); final bboxes = [ cv.Rect(53, 47, 589, 451), From 45622bd1e4fffba39a8006d4d94ca28669e9a1eb Mon Sep 17 00:00:00 2001 From: rainy liu Date: Fri, 28 Jun 2024 17:45:47 +0800 Subject: [PATCH 21/21] fix String conversion --- lib/src/dnn/dnn_async.dart | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/lib/src/dnn/dnn_async.dart b/lib/src/dnn/dnn_async.dart index 2f91db8a..a8d6c008 100644 --- a/lib/src/dnn/dnn_async.dart +++ b/lib/src/dnn/dnn_async.dart @@ -16,11 +16,10 @@ import '../opencv.g.dart' as cvg; extension LayerAsync on Layer { Future get nameAsync async { - final p = calloc>(); final rval = cvRunAsync( (callback) => CFFI.Layer_GetName_Async(ref, callback), - (c, result) { - final rval = result.cast().toDartString(); + (c, p) { + final rval = p.cast>().value.toDartString(); calloc.free(p); return c.complete(rval); }, @@ -29,11 +28,10 @@ extension LayerAsync on Layer { } Future get typeAsync async { - final p = calloc>(); final rval = cvRunAsync( (callback) => CFFI.Layer_GetType_Async(ref, callback), - (c, result) { - final rval = result.cast().toDartString(); + (c, p) { + final rval = p.cast>().value.toDartString(); calloc.free(p); return c.complete(rval); }, @@ -73,7 +71,7 @@ extension LayerAsync on Layer { extension NetAsync on Net { static Future emptyAsync() async { - final rval = await cvRunAsync((callback) => CFFI.Net_Create_Async(callback), (c, p) { + final rval = await cvRunAsync(CFFI.Net_Create_Async, (c, p) { return c.complete(Net.fromPointer(p.cast())); }); @@ -219,11 +217,10 @@ extension NetAsync on Net { } Future dumpAsync() async { - final p = calloc>(); final rval = cvRunAsync( (callback) => CFFI.Net_Dump_Async(ref, callback), - (c, result) { - final rval = result.cast().toDartString(); + (c, p) { + final rval = p.cast>().value.toDartString(); calloc.free(p); return c.complete(rval); },