feat: 切换后端至PaddleOCR-NCNN,切换工程为CMake
1.项目后端整体迁移至PaddleOCR-NCNN算法,已通过基本的兼容性测试 2.工程改为使用CMake组织,后续为了更好地兼容第三方库,不再提供QMake工程 3.重整权利声明文件,重整代码工程,确保最小化侵权风险 Log: 切换后端至PaddleOCR-NCNN,切换工程为CMake Change-Id: I4d5d2c5d37505a4a24b389b1a4c5d12f17bfa38c
This commit is contained in:
50
3rdparty/opencv-4.5.4/samples/winrt/ImageManipulations/common/suspensionmanager.h
vendored
Normal file
50
3rdparty/opencv-4.5.4/samples/winrt/ImageManipulations/common/suspensionmanager.h
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
//*********************************************************
|
||||
//
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
|
||||
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
|
||||
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
|
||||
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
|
||||
//
|
||||
//*********************************************************
|
||||
|
||||
//
|
||||
// SuspensionManager.h
|
||||
// Declaration of the SuspensionManager class
|
||||
//
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <ppltasks.h>
|
||||
|
||||
namespace SDKSample
|
||||
{
|
||||
namespace Common
|
||||
{
|
||||
/// <summary>
|
||||
/// SuspensionManager captures global session state to simplify process lifetime management
|
||||
/// for an application. Note that session state will be automatically cleared under a variety
|
||||
/// of conditions and should only be used to store information that would be convenient to
|
||||
/// carry across sessions, but that should be disacarded when an application crashes or is
|
||||
/// upgraded.
|
||||
/// </summary>
|
||||
ref class SuspensionManager sealed
|
||||
{
|
||||
internal:
|
||||
static void RegisterFrame(Windows::UI::Xaml::Controls::Frame^ frame, Platform::String^ sessionStateKey);
|
||||
static void UnregisterFrame(Windows::UI::Xaml::Controls::Frame^ frame);
|
||||
static Concurrency::task<void> SaveAsync(void);
|
||||
static Concurrency::task<void> RestoreAsync(void);
|
||||
static property Windows::Foundation::Collections::IMap<Platform::String^, Platform::Object^>^ SessionState
|
||||
{
|
||||
Windows::Foundation::Collections::IMap<Platform::String^, Platform::Object^>^ get(void);
|
||||
};
|
||||
static Windows::Foundation::Collections::IMap<Platform::String^, Platform::Object^>^ SessionStateForFrame(
|
||||
Windows::UI::Xaml::Controls::Frame^ frame);
|
||||
|
||||
private:
|
||||
static void RestoreFrameNavigationState(Windows::UI::Xaml::Controls::Frame^ frame);
|
||||
static void SaveFrameNavigationState(Windows::UI::Xaml::Controls::Frame^ frame);
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user