7 Commits

Author SHA1 Message Date
57834c9c66 augh 2023-03-09 15:42:04 +08:00
6e22b73a21 Update runtime 2023-02-14 18:04:57 +08:00
5e974f91b1 Change and update version spec 2023-02-14 12:38:22 +08:00
b5f3b54b15 Huge update to get on par with MediaPipeUnityPlugin (#39)
* Use new MediaPipe packages and update version

* Apply updates from MediaPipeUnityPlugin

All while keeping C pointers like `void*` instead of `IntPtr`
and various other practices.

* Add VSCode task to debug tests

* Fix unset freeHGlobal delegate

This can happen because the static code of the NativeMethods class
could have not run, for some reason...

* Fix all examples

* Fix import reordering
2022-07-30 14:37:17 +08:00
0388ceaa40 fix incorrect ImageFrame memory ownership handling (#29)
* fix incorrect ImageFrame memory ownership handling

* Update runtime package

* Fix PInvoke method name

* Clean ImageFrame code

* Update ImageFrameTest

* Update Mediapipe.Net package version

* Make osu!framework asynchronous

This is to compensate for the performance drop instated by this PR.
Other examples can stay as-is.
Fortunately Mediapipe handles asynchronous code perfectly well.

* Fix linting

Co-authored-by: Speykious <speykious@gmail.com>
2022-03-22 01:44:47 +08:00
0eaa724270 Port all tests from MediaPipeUnityPlugin (#3)
* Port test attributes

* Add necessary references

* Port `TimestampTest`

* Port `CalculatorGraphTest`

* Port all `Framework.Tool` tests

* Port all `Framework.Port` tests

* Fix encoding

* Use `CharSet.Ansi` and disable warning CA2101

* Make CI run MediaPipe.NET tests

* Make `#region` names consistent

* Port all `Framework.Packet` tests

* Allow unsafe blocks

* Port `ImageFrameTest`

* Fix linting errors

* Port all `Gpu` tests

* Fix region name inconsistencies

* Fix the only GPU-side error in existence

* GPU works like a charm! (We'll have to find a way to correctly separate CPU and GPU tests.)

* `GpuOnly`: when they forgor 💀

* CI: Add tmate session for debugging

* Use corresponding runtime on tests

* Setup tmate session *after* tests

* Only setup the tmate session if previous step failed

* Fix `failure` word

* Ignore SignalAbort tests on Windows

* Circumvent OS differences for `DebugTypeName()` (Not even sure it's fine to do but anyway)

* Label some throw-exception tests as `SignalAbort`

* Maybe that's why...

* Install FFmpeg on MacOS to fix undefined symbols

* Remove MacOS test from CI

* Fix test result path
2022-01-21 08:46:28 +01:00
60653f35b5 Create Mediapipe.Net project with tests 2022-01-15 02:25:10 +01:00