Wes xx mediapipe integration
This commit is contained in:
24
Assets/MediaPipeUnity/Common/Scripts/RunningMode.cs
Normal file
24
Assets/MediaPipeUnity/Common/Scripts/RunningMode.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
// 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.
|
||||
|
||||
namespace Mediapipe.Unity
|
||||
{
|
||||
[System.Serializable]
|
||||
public enum RunningMode
|
||||
{
|
||||
Async,
|
||||
NonBlockingSync,
|
||||
Sync,
|
||||
}
|
||||
|
||||
public static class RunningModeExtension
|
||||
{
|
||||
public static bool IsSynchronous(this RunningMode runningMode)
|
||||
{
|
||||
return runningMode == RunningMode.Sync || runningMode == RunningMode.NonBlockingSync;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user