mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-23 22:13:38 +00:00
winml/ was previously excluded from lintrunner config. This change includes the directory and adds the clang-format config file specific to winml/ that fits existing style. --------- Signed-off-by: Justin Chu <justinchu@microsoft.com>
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
//-----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//
|
|
//-----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include <winrt/Windows.Media.h>
|
|
#include <winrt/Windows.Graphics.Imaging.h>
|
|
|
|
enum OutputBindingStrategy {
|
|
Bound,
|
|
Unbound,
|
|
Empty
|
|
};
|
|
enum EvaluationStrategy {
|
|
Async,
|
|
Sync
|
|
};
|
|
enum ModelInputOutputType {
|
|
Image,
|
|
Tensor
|
|
};
|
|
enum InputImageSource {
|
|
FromVideoFrame,
|
|
FromImageFeatureValue,
|
|
FromCPUResource,
|
|
FromGPUResource
|
|
};
|
|
enum VideoFrameSource {
|
|
FromSoftwareBitmap,
|
|
FromDirect3DSurface,
|
|
FromUnsupportedD3DSurface
|
|
};
|
|
|
|
namespace ImageTestHelper {
|
|
wgi::BitmapPixelFormat GetPixelFormat(const std::wstring& inputPixelFormat);
|
|
|
|
winml::TensorFloat LoadInputImageFromCPU(wgi::SoftwareBitmap softwareBitmap, const std::wstring& modelPixelFormat);
|
|
|
|
winml::TensorFloat LoadInputImageFromGPU(wgi::SoftwareBitmap softwareBitmap, const std::wstring& modelPixelFormat);
|
|
|
|
bool VerifyHelper(wm::VideoFrame actual, wm::VideoFrame expected);
|
|
|
|
}// namespace ImageTestHelper
|