-
-
Notifications
You must be signed in to change notification settings - Fork 459
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
31 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
Assets/MediaPipe/SDK/Scripts/PInvoke/NativeMethods/External/Glog_Unsafe.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
using System; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace Mediapipe { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
Assets/MediaPipe/SDK/Scripts/PInvoke/NativeMethods/Util/ResourceManager_Safe.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
using System; | ||
using System.Diagnostics.Contracts; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace Mediapipe { | ||
internal static partial class SafeNativeMethods { | ||
[DllImport (MediaPipeLibrary, ExactSpelling = true)] | ||
public static extern void mp_api__PrepareResourceManager( | ||
[MarshalAs(UnmanagedType.FunctionPtr)]IntPtr resolver,[MarshalAs(UnmanagedType.FunctionPtr)]IntPtr handler); | ||
[MarshalAs(UnmanagedType.FunctionPtr)]ResourceManager.CacheFilePathResolver resolver, | ||
[MarshalAs(UnmanagedType.FunctionPtr)]ResourceManager.ReadFileHandler handler); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
using System; | ||
|
||
namespace Mediapipe { | ||
public class ResourceUtil { | ||
public static void InitializeResourceManager(ResourceManager resourceManager) { | ||
SafeNativeMethods.mp_api__PrepareResourceManager(resourceManager.GetCacheFilePathResolverPtr(), resourceManager.GetReadFileHandlerPtr()); | ||
SafeNativeMethods.mp_api__PrepareResourceManager(resourceManager.cacheFilePathResolver, resourceManager.readFileHandler); | ||
} | ||
} | ||
} |