Update WinRT to new version 2.0.250303.1

PiperOrigin-RevId: 781075193
This commit is contained in:
Guogang Li
2025-07-09 08:58:00 -07:00
committed by Copybara-Service
parent 5e558cffc4
commit 8f14bd10fc
1395 changed files with 498490 additions and 61973 deletions
@@ -1,12 +1,12 @@
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.220531.1
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.250303.1
#pragma once
#ifndef WINRT_Windows_AI_MachineLearning_0_H
#define WINRT_Windows_AI_MachineLearning_0_H
WINRT_EXPORT namespace winrt::Windows::Foundation::Collections
{
template <typename T> struct __declspec(empty_bases) IIterable;
template <typename K, typename V> struct __declspec(empty_bases) IMap;
template <typename T> struct WINRT_IMPL_EMPTY_BASES IIterable;
template <typename K, typename V> struct WINRT_IMPL_EMPTY_BASES IMap;
struct IPropertySet;
}
WINRT_EXPORT namespace winrt::Windows::Graphics
@@ -52,6 +52,12 @@ WINRT_EXPORT namespace winrt::Windows::AI::MachineLearning
Map = 2,
Image = 3,
};
enum class LearningModelPixelRange : int32_t
{
ZeroTo255 = 0,
ZeroToOne = 1,
MinusOneToOne = 2,
};
enum class TensorKind : int32_t
{
Undefined = 0,
@@ -72,6 +78,7 @@ WINRT_EXPORT namespace winrt::Windows::AI::MachineLearning
Complex128 = 15,
};
struct IImageFeatureDescriptor;
struct IImageFeatureDescriptor2;
struct IImageFeatureValue;
struct IImageFeatureValueStatics;
struct ILearningModel;
@@ -158,10 +165,12 @@ WINRT_EXPORT namespace winrt::Windows::AI::MachineLearning
struct TensorUInt32Bit;
struct TensorUInt64Bit;
struct TensorUInt8Bit;
struct MachineLearningContract;
}
namespace winrt::impl
{
template <> struct category<winrt::Windows::AI::MachineLearning::IImageFeatureDescriptor>{ using type = interface_category; };
template <> struct category<winrt::Windows::AI::MachineLearning::IImageFeatureDescriptor2>{ using type = interface_category; };
template <> struct category<winrt::Windows::AI::MachineLearning::IImageFeatureValue>{ using type = interface_category; };
template <> struct category<winrt::Windows::AI::MachineLearning::IImageFeatureValueStatics>{ using type = interface_category; };
template <> struct category<winrt::Windows::AI::MachineLearning::ILearningModel>{ using type = interface_category; };
@@ -250,6 +259,7 @@ namespace winrt::impl
template <> struct category<winrt::Windows::AI::MachineLearning::TensorUInt8Bit>{ using type = class_category; };
template <> struct category<winrt::Windows::AI::MachineLearning::LearningModelDeviceKind>{ using type = enum_category; };
template <> struct category<winrt::Windows::AI::MachineLearning::LearningModelFeatureKind>{ using type = enum_category; };
template <> struct category<winrt::Windows::AI::MachineLearning::LearningModelPixelRange>{ using type = enum_category; };
template <> struct category<winrt::Windows::AI::MachineLearning::TensorKind>{ using type = enum_category; };
template <> inline constexpr auto& name_v<winrt::Windows::AI::MachineLearning::ImageFeatureDescriptor> = L"Windows.AI.MachineLearning.ImageFeatureDescriptor";
template <> inline constexpr auto& name_v<winrt::Windows::AI::MachineLearning::ImageFeatureValue> = L"Windows.AI.MachineLearning.ImageFeatureValue";
@@ -277,8 +287,10 @@ namespace winrt::impl
template <> inline constexpr auto& name_v<winrt::Windows::AI::MachineLearning::TensorUInt8Bit> = L"Windows.AI.MachineLearning.TensorUInt8Bit";
template <> inline constexpr auto& name_v<winrt::Windows::AI::MachineLearning::LearningModelDeviceKind> = L"Windows.AI.MachineLearning.LearningModelDeviceKind";
template <> inline constexpr auto& name_v<winrt::Windows::AI::MachineLearning::LearningModelFeatureKind> = L"Windows.AI.MachineLearning.LearningModelFeatureKind";
template <> inline constexpr auto& name_v<winrt::Windows::AI::MachineLearning::LearningModelPixelRange> = L"Windows.AI.MachineLearning.LearningModelPixelRange";
template <> inline constexpr auto& name_v<winrt::Windows::AI::MachineLearning::TensorKind> = L"Windows.AI.MachineLearning.TensorKind";
template <> inline constexpr auto& name_v<winrt::Windows::AI::MachineLearning::IImageFeatureDescriptor> = L"Windows.AI.MachineLearning.IImageFeatureDescriptor";
template <> inline constexpr auto& name_v<winrt::Windows::AI::MachineLearning::IImageFeatureDescriptor2> = L"Windows.AI.MachineLearning.IImageFeatureDescriptor2";
template <> inline constexpr auto& name_v<winrt::Windows::AI::MachineLearning::IImageFeatureValue> = L"Windows.AI.MachineLearning.IImageFeatureValue";
template <> inline constexpr auto& name_v<winrt::Windows::AI::MachineLearning::IImageFeatureValueStatics> = L"Windows.AI.MachineLearning.IImageFeatureValueStatics";
template <> inline constexpr auto& name_v<winrt::Windows::AI::MachineLearning::ILearningModel> = L"Windows.AI.MachineLearning.ILearningModel";
@@ -341,7 +353,9 @@ namespace winrt::impl
template <> inline constexpr auto& name_v<winrt::Windows::AI::MachineLearning::ITensorUInt8Bit> = L"Windows.AI.MachineLearning.ITensorUInt8Bit";
template <> inline constexpr auto& name_v<winrt::Windows::AI::MachineLearning::ITensorUInt8BitStatics> = L"Windows.AI.MachineLearning.ITensorUInt8BitStatics";
template <> inline constexpr auto& name_v<winrt::Windows::AI::MachineLearning::ITensorUInt8BitStatics2> = L"Windows.AI.MachineLearning.ITensorUInt8BitStatics2";
template <> inline constexpr auto& name_v<winrt::Windows::AI::MachineLearning::MachineLearningContract> = L"Windows.AI.MachineLearning.MachineLearningContract";
template <> inline constexpr guid guid_v<winrt::Windows::AI::MachineLearning::IImageFeatureDescriptor>{ 0x365585A5,0x171A,0x4A2A,{ 0x98,0x5F,0x26,0x51,0x59,0xD3,0x89,0x5A } }; // 365585A5-171A-4A2A-985F-265159D3895A
template <> inline constexpr guid guid_v<winrt::Windows::AI::MachineLearning::IImageFeatureDescriptor2>{ 0x2B27CCA7,0xD533,0x5862,{ 0xBB,0x98,0x16,0x11,0xB1,0x55,0xB0,0xE1 } }; // 2B27CCA7-D533-5862-BB98-1611B155B0E1
template <> inline constexpr guid guid_v<winrt::Windows::AI::MachineLearning::IImageFeatureValue>{ 0xF0414FD9,0xC9AA,0x4405,{ 0xB7,0xFB,0x94,0xF8,0x7C,0x8A,0x30,0x37 } }; // F0414FD9-C9AA-4405-B7FB-94F87C8A3037
template <> inline constexpr guid guid_v<winrt::Windows::AI::MachineLearning::IImageFeatureValueStatics>{ 0x1BC317FD,0x23CB,0x4610,{ 0xB0,0x85,0xC8,0xE1,0xC8,0x7E,0xBA,0xA0 } }; // 1BC317FD-23CB-4610-B085-C8E1C87EBAA0
template <> inline constexpr guid guid_v<winrt::Windows::AI::MachineLearning::ILearningModel>{ 0x5B8E4920,0x489F,0x4E86,{ 0x91,0x28,0x26,0x5A,0x32,0x7B,0x78,0xFA } }; // 5B8E4920-489F-4E86-9128-265A327B78FA
@@ -430,7 +444,7 @@ namespace winrt::impl
template <> struct default_interface<winrt::Windows::AI::MachineLearning::TensorUInt8Bit>{ using type = winrt::Windows::AI::MachineLearning::ITensorUInt8Bit; };
template <> struct abi<winrt::Windows::AI::MachineLearning::IImageFeatureDescriptor>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_BitmapPixelFormat(int32_t*) noexcept = 0;
virtual int32_t __stdcall get_BitmapAlphaMode(int32_t*) noexcept = 0;
@@ -438,23 +452,30 @@ namespace winrt::impl
virtual int32_t __stdcall get_Height(uint32_t*) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::AI::MachineLearning::IImageFeatureDescriptor2>
{
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_PixelRange(int32_t*) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::AI::MachineLearning::IImageFeatureValue>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_VideoFrame(void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::AI::MachineLearning::IImageFeatureValueStatics>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall CreateFromVideoFrame(void*, void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ILearningModel>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_Author(void**) noexcept = 0;
virtual int32_t __stdcall get_Name(void**) noexcept = 0;
@@ -468,7 +489,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ILearningModelBinding>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall Bind(void*, void*) noexcept = 0;
virtual int32_t __stdcall BindWithProperties(void*, void*, void*) noexcept = 0;
@@ -477,14 +498,14 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ILearningModelBindingFactory>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall CreateFromSession(void*, void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ILearningModelDevice>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_AdapterId(struct struct_Windows_Graphics_DisplayAdapterId*) noexcept = 0;
virtual int32_t __stdcall get_Direct3D11Device(void**) noexcept = 0;
@@ -492,21 +513,21 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ILearningModelDeviceFactory>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall Create(int32_t, void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ILearningModelDeviceStatics>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall CreateFromDirect3D11Device(void*, void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ILearningModelEvaluationResult>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_CorrelationId(void**) noexcept = 0;
virtual int32_t __stdcall get_ErrorStatus(int32_t*) noexcept = 0;
@@ -516,7 +537,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ILearningModelFeatureDescriptor>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_Name(void**) noexcept = 0;
virtual int32_t __stdcall get_Description(void**) noexcept = 0;
@@ -526,20 +547,20 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ILearningModelFeatureValue>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_Kind(int32_t*) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ILearningModelOperatorProvider>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
};
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ILearningModelSession>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_Model(void**) noexcept = 0;
virtual int32_t __stdcall get_Device(void**) noexcept = 0;
@@ -552,7 +573,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ILearningModelSessionFactory>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall CreateFromModel(void*, void**) noexcept = 0;
virtual int32_t __stdcall CreateFromModelOnDevice(void*, void*, void**) noexcept = 0;
@@ -560,14 +581,14 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ILearningModelSessionFactory2>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall CreateFromModelOnDeviceWithSessionOptions(void*, void*, void*, void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ILearningModelSessionOptions>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_BatchSizeOverride(uint32_t*) noexcept = 0;
virtual int32_t __stdcall put_BatchSizeOverride(uint32_t) noexcept = 0;
@@ -575,7 +596,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ILearningModelSessionOptions2>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_CloseModelOnSessionCreation(bool*) noexcept = 0;
virtual int32_t __stdcall put_CloseModelOnSessionCreation(bool) noexcept = 0;
@@ -583,14 +604,14 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ILearningModelSessionOptions3>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall OverrideNamedDimension(void*, uint32_t) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ILearningModelStatics>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall LoadFromStorageFileAsync(void*, void**) noexcept = 0;
virtual int32_t __stdcall LoadFromStreamAsync(void*, void**) noexcept = 0;
@@ -604,7 +625,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::IMapFeatureDescriptor>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_KeyKind(int32_t*) noexcept = 0;
virtual int32_t __stdcall get_ValueDescriptor(void**) noexcept = 0;
@@ -612,14 +633,14 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ISequenceFeatureDescriptor>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_ElementDescriptor(void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensor>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_TensorKind(int32_t*) noexcept = 0;
virtual int32_t __stdcall get_Shape(void**) noexcept = 0;
@@ -627,14 +648,14 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorBoolean>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall GetAsVectorView(void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorBooleanStatics>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall Create(void**) noexcept = 0;
virtual int32_t __stdcall Create2(void*, void**) noexcept = 0;
@@ -644,7 +665,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorBooleanStatics2>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall CreateFromShapeArrayAndDataArray(uint32_t, int64_t*, uint32_t, bool*, void**) noexcept = 0;
virtual int32_t __stdcall CreateFromBuffer(uint32_t, int64_t*, void*, void**) noexcept = 0;
@@ -652,14 +673,14 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorDouble>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall GetAsVectorView(void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorDoubleStatics>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall Create(void**) noexcept = 0;
virtual int32_t __stdcall Create2(void*, void**) noexcept = 0;
@@ -669,7 +690,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorDoubleStatics2>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall CreateFromShapeArrayAndDataArray(uint32_t, int64_t*, uint32_t, double*, void**) noexcept = 0;
virtual int32_t __stdcall CreateFromBuffer(uint32_t, int64_t*, void*, void**) noexcept = 0;
@@ -677,7 +698,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorFeatureDescriptor>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_TensorKind(int32_t*) noexcept = 0;
virtual int32_t __stdcall get_Shape(void**) noexcept = 0;
@@ -685,21 +706,21 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorFloat>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall GetAsVectorView(void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorFloat16Bit>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall GetAsVectorView(void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorFloat16BitStatics>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall Create(void**) noexcept = 0;
virtual int32_t __stdcall Create2(void*, void**) noexcept = 0;
@@ -709,7 +730,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorFloat16BitStatics2>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall CreateFromShapeArrayAndDataArray(uint32_t, int64_t*, uint32_t, float*, void**) noexcept = 0;
virtual int32_t __stdcall CreateFromBuffer(uint32_t, int64_t*, void*, void**) noexcept = 0;
@@ -717,7 +738,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorFloatStatics>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall Create(void**) noexcept = 0;
virtual int32_t __stdcall Create2(void*, void**) noexcept = 0;
@@ -727,7 +748,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorFloatStatics2>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall CreateFromShapeArrayAndDataArray(uint32_t, int64_t*, uint32_t, float*, void**) noexcept = 0;
virtual int32_t __stdcall CreateFromBuffer(uint32_t, int64_t*, void*, void**) noexcept = 0;
@@ -735,14 +756,14 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorInt16Bit>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall GetAsVectorView(void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorInt16BitStatics>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall Create(void**) noexcept = 0;
virtual int32_t __stdcall Create2(void*, void**) noexcept = 0;
@@ -752,7 +773,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorInt16BitStatics2>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall CreateFromShapeArrayAndDataArray(uint32_t, int64_t*, uint32_t, int16_t*, void**) noexcept = 0;
virtual int32_t __stdcall CreateFromBuffer(uint32_t, int64_t*, void*, void**) noexcept = 0;
@@ -760,14 +781,14 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorInt32Bit>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall GetAsVectorView(void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorInt32BitStatics>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall Create(void**) noexcept = 0;
virtual int32_t __stdcall Create2(void*, void**) noexcept = 0;
@@ -777,7 +798,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorInt32BitStatics2>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall CreateFromShapeArrayAndDataArray(uint32_t, int64_t*, uint32_t, int32_t*, void**) noexcept = 0;
virtual int32_t __stdcall CreateFromBuffer(uint32_t, int64_t*, void*, void**) noexcept = 0;
@@ -785,14 +806,14 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorInt64Bit>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall GetAsVectorView(void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorInt64BitStatics>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall Create(void**) noexcept = 0;
virtual int32_t __stdcall Create2(void*, void**) noexcept = 0;
@@ -802,7 +823,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorInt64BitStatics2>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall CreateFromShapeArrayAndDataArray(uint32_t, int64_t*, uint32_t, int64_t*, void**) noexcept = 0;
virtual int32_t __stdcall CreateFromBuffer(uint32_t, int64_t*, void*, void**) noexcept = 0;
@@ -810,14 +831,14 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorInt8Bit>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall GetAsVectorView(void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorInt8BitStatics>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall Create(void**) noexcept = 0;
virtual int32_t __stdcall Create2(void*, void**) noexcept = 0;
@@ -827,7 +848,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorInt8BitStatics2>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall CreateFromShapeArrayAndDataArray(uint32_t, int64_t*, uint32_t, uint8_t*, void**) noexcept = 0;
virtual int32_t __stdcall CreateFromBuffer(uint32_t, int64_t*, void*, void**) noexcept = 0;
@@ -835,14 +856,14 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorString>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall GetAsVectorView(void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorStringStatics>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall Create(void**) noexcept = 0;
virtual int32_t __stdcall Create2(void*, void**) noexcept = 0;
@@ -852,21 +873,21 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorStringStatics2>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall CreateFromShapeArrayAndDataArray(uint32_t, int64_t*, uint32_t, void**, void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorUInt16Bit>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall GetAsVectorView(void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorUInt16BitStatics>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall Create(void**) noexcept = 0;
virtual int32_t __stdcall Create2(void*, void**) noexcept = 0;
@@ -876,7 +897,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorUInt16BitStatics2>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall CreateFromShapeArrayAndDataArray(uint32_t, int64_t*, uint32_t, uint16_t*, void**) noexcept = 0;
virtual int32_t __stdcall CreateFromBuffer(uint32_t, int64_t*, void*, void**) noexcept = 0;
@@ -884,14 +905,14 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorUInt32Bit>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall GetAsVectorView(void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorUInt32BitStatics>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall Create(void**) noexcept = 0;
virtual int32_t __stdcall Create2(void*, void**) noexcept = 0;
@@ -901,7 +922,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorUInt32BitStatics2>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall CreateFromShapeArrayAndDataArray(uint32_t, int64_t*, uint32_t, uint32_t*, void**) noexcept = 0;
virtual int32_t __stdcall CreateFromBuffer(uint32_t, int64_t*, void*, void**) noexcept = 0;
@@ -909,14 +930,14 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorUInt64Bit>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall GetAsVectorView(void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorUInt64BitStatics>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall Create(void**) noexcept = 0;
virtual int32_t __stdcall Create2(void*, void**) noexcept = 0;
@@ -926,7 +947,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorUInt64BitStatics2>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall CreateFromShapeArrayAndDataArray(uint32_t, int64_t*, uint32_t, uint64_t*, void**) noexcept = 0;
virtual int32_t __stdcall CreateFromBuffer(uint32_t, int64_t*, void*, void**) noexcept = 0;
@@ -934,14 +955,14 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorUInt8Bit>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall GetAsVectorView(void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorUInt8BitStatics>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall Create(void**) noexcept = 0;
virtual int32_t __stdcall Create2(void*, void**) noexcept = 0;
@@ -951,7 +972,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::AI::MachineLearning::ITensorUInt8BitStatics2>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall CreateFromShapeArrayAndDataArray(uint32_t, int64_t*, uint32_t, uint8_t*, void**) noexcept = 0;
virtual int32_t __stdcall CreateFromBuffer(uint32_t, int64_t*, void*, void**) noexcept = 0;
@@ -970,6 +991,15 @@ namespace winrt::impl
template <typename D> using type = consume_Windows_AI_MachineLearning_IImageFeatureDescriptor<D>;
};
template <typename D>
struct consume_Windows_AI_MachineLearning_IImageFeatureDescriptor2
{
[[nodiscard]] auto PixelRange() const;
};
template <> struct consume<winrt::Windows::AI::MachineLearning::IImageFeatureDescriptor2>
{
template <typename D> using type = consume_Windows_AI_MachineLearning_IImageFeatureDescriptor2<D>;
};
template <typename D>
struct consume_Windows_AI_MachineLearning_IImageFeatureValue
{
[[nodiscard]] auto VideoFrame() const;