Wes xx mediapipe integration
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
// Copyright (c) 2021 homuler
|
||||
//
|
||||
// Use of this source code is governed by an MIT-style
|
||||
// license that can be found in the LICENSE file or at
|
||||
// https://opensource.org/licenses/MIT.
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Mediapipe
|
||||
{
|
||||
internal static partial class UnsafeNativeMethods
|
||||
{
|
||||
#if UNITY_EDITOR_LINUX || UNITY_STANDALONE_LINUX || UNITY_ANDROID
|
||||
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
|
||||
public static extern MpReturnCode mp_GpuBuffer__PSgtb(IntPtr glTextureBuffer, out IntPtr gpuBuffer);
|
||||
#endif
|
||||
|
||||
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
|
||||
public static extern void mp_GpuBuffer__delete(IntPtr gpuBuffer);
|
||||
|
||||
#region StatusOr
|
||||
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
|
||||
public static extern void mp_StatusOrGpuBuffer__delete(IntPtr statusOrGpuBuffer);
|
||||
|
||||
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
|
||||
public static extern MpReturnCode mp_StatusOrGpuBuffer__status(IntPtr statusOrGpuBuffer, out IntPtr status);
|
||||
|
||||
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
|
||||
public static extern MpReturnCode mp_StatusOrGpuBuffer__value(IntPtr statusOrGpuBuffer, out IntPtr gpuBuffer);
|
||||
#endregion
|
||||
|
||||
#region Packet
|
||||
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
|
||||
public static extern MpReturnCode mp__MakeGpuBufferPacket__Rgb(IntPtr gpuBuffer, out IntPtr packet);
|
||||
|
||||
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
|
||||
public static extern MpReturnCode mp__MakeGpuBufferPacket_At__Rgb_Rts(IntPtr gpuBuffer, IntPtr timestamp, out IntPtr packet);
|
||||
|
||||
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
|
||||
public static extern MpReturnCode mp_Packet__ConsumeGpuBuffer(IntPtr packet, out IntPtr statusOrGpuBuffer);
|
||||
|
||||
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
|
||||
public static extern MpReturnCode mp_Packet__GetGpuBuffer(IntPtr packet, out IntPtr gpuBuffer);
|
||||
|
||||
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
|
||||
public static extern MpReturnCode mp_Packet__ValidateAsGpuBuffer(IntPtr packet, out IntPtr status);
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user