Skip to content

add async core #133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ffigen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ headers:
- src/calib3d/calib3d.h
- src/calib3d/calib3d_async.h
- src/core/core.h
- src/core/core_async.h
- src/core/exception.h
- src/core/svd.h
- src/core/svd_async.h
Expand Down Expand Up @@ -51,6 +52,7 @@ headers:
- src/calib3d/calib3d.h
- src/calib3d/calib3d_async.h
- src/core/core.h
- src/core/core_async.h
- src/core/exception.h
- src/core/svd.h
- src/core/svd_async.h
Expand Down
3 changes: 3 additions & 0 deletions lib/opencv_dart.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,20 @@ export 'src/core/asyncarray.dart';
export 'src/core/base.dart';
export 'src/core/contours.dart';
export 'src/core/core.dart';
export 'src/core/core_async.dart';
export 'src/core/cv_vec.dart';
export 'src/core/dmatch.dart';
export 'src/core/error_code.dart';
export 'src/core/exception.dart';
export 'src/core/keypoint.dart';
export 'src/core/mat.dart';
export 'src/core/mat_async.dart';
export 'src/core/mat_type.dart';
export 'src/core/moments.dart';
export 'src/core/point.dart';
export 'src/core/rect.dart';
export 'src/core/rng.dart';
export 'src/core/rng_async.dart';
export 'src/core/scalar.dart';
export 'src/core/size.dart';
export 'src/core/vec.dart';
Expand Down
12 changes: 0 additions & 12 deletions lib/src/core/core.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ String openCvVersion() {
return s;
}

Future<String> openCvVersionAsync() async => cvRunAsync(CFFI.openCVVersion_Async, (c, p) {
final s = p.cast<ffi.Pointer<ffi.Char>>().value.toDartString();
calloc.free(p);
c.complete(s);
});

/// Returns full configuration time cmake output.
///
/// Returned value is raw cmake output including version control system revision, compiler version, compiler flags, enabled modules and third party libraries, etc. Output format depends on target architecture.
Expand All @@ -43,12 +37,6 @@ String getBuildInformation() {
return s;
}

Future<String> getBuildInformationAsync() async => cvRunAsync(CFFI.getBuildInfo_Async, (c, p) {
final s = p.cast<ffi.Pointer<ffi.Char>>().value.toDartString();
calloc.free(p);
c.complete(s);
});

/// AbsDiff calculates the per-element absolute difference between two arrays
/// or between an array and a scalar.
///
Expand Down
Loading
Loading