mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-15 15:16:12 -04:00
164 lines
9.1 KiB
C++
164 lines
9.1 KiB
C++
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.210505.3
|
|
|
|
#ifndef WINRT_Windows_Media_Ocr_0_H
|
|
#define WINRT_Windows_Media_Ocr_0_H
|
|
WINRT_EXPORT namespace winrt::Windows::Foundation
|
|
{
|
|
template <typename TResult> struct __declspec(empty_bases) IAsyncOperation;
|
|
template <typename T> struct __declspec(empty_bases) IReference;
|
|
struct Rect;
|
|
}
|
|
WINRT_EXPORT namespace winrt::Windows::Foundation::Collections
|
|
{
|
|
template <typename T> struct __declspec(empty_bases) IVectorView;
|
|
}
|
|
WINRT_EXPORT namespace winrt::Windows::Globalization
|
|
{
|
|
struct Language;
|
|
}
|
|
WINRT_EXPORT namespace winrt::Windows::Graphics::Imaging
|
|
{
|
|
struct SoftwareBitmap;
|
|
}
|
|
WINRT_EXPORT namespace winrt::Windows::Media::Ocr
|
|
{
|
|
struct IOcrEngine;
|
|
struct IOcrEngineStatics;
|
|
struct IOcrLine;
|
|
struct IOcrResult;
|
|
struct IOcrWord;
|
|
struct OcrEngine;
|
|
struct OcrLine;
|
|
struct OcrResult;
|
|
struct OcrWord;
|
|
}
|
|
namespace winrt::impl
|
|
{
|
|
template <> struct category<winrt::Windows::Media::Ocr::IOcrEngine>{ using type = interface_category; };
|
|
template <> struct category<winrt::Windows::Media::Ocr::IOcrEngineStatics>{ using type = interface_category; };
|
|
template <> struct category<winrt::Windows::Media::Ocr::IOcrLine>{ using type = interface_category; };
|
|
template <> struct category<winrt::Windows::Media::Ocr::IOcrResult>{ using type = interface_category; };
|
|
template <> struct category<winrt::Windows::Media::Ocr::IOcrWord>{ using type = interface_category; };
|
|
template <> struct category<winrt::Windows::Media::Ocr::OcrEngine>{ using type = class_category; };
|
|
template <> struct category<winrt::Windows::Media::Ocr::OcrLine>{ using type = class_category; };
|
|
template <> struct category<winrt::Windows::Media::Ocr::OcrResult>{ using type = class_category; };
|
|
template <> struct category<winrt::Windows::Media::Ocr::OcrWord>{ using type = class_category; };
|
|
template <> inline constexpr auto& name_v<winrt::Windows::Media::Ocr::OcrEngine> = L"Windows.Media.Ocr.OcrEngine";
|
|
template <> inline constexpr auto& name_v<winrt::Windows::Media::Ocr::OcrLine> = L"Windows.Media.Ocr.OcrLine";
|
|
template <> inline constexpr auto& name_v<winrt::Windows::Media::Ocr::OcrResult> = L"Windows.Media.Ocr.OcrResult";
|
|
template <> inline constexpr auto& name_v<winrt::Windows::Media::Ocr::OcrWord> = L"Windows.Media.Ocr.OcrWord";
|
|
template <> inline constexpr auto& name_v<winrt::Windows::Media::Ocr::IOcrEngine> = L"Windows.Media.Ocr.IOcrEngine";
|
|
template <> inline constexpr auto& name_v<winrt::Windows::Media::Ocr::IOcrEngineStatics> = L"Windows.Media.Ocr.IOcrEngineStatics";
|
|
template <> inline constexpr auto& name_v<winrt::Windows::Media::Ocr::IOcrLine> = L"Windows.Media.Ocr.IOcrLine";
|
|
template <> inline constexpr auto& name_v<winrt::Windows::Media::Ocr::IOcrResult> = L"Windows.Media.Ocr.IOcrResult";
|
|
template <> inline constexpr auto& name_v<winrt::Windows::Media::Ocr::IOcrWord> = L"Windows.Media.Ocr.IOcrWord";
|
|
template <> inline constexpr guid guid_v<winrt::Windows::Media::Ocr::IOcrEngine>{ 0x5A14BC41,0x5B76,0x3140,{ 0xB6,0x80,0x88,0x25,0x56,0x26,0x83,0xAC } }; // 5A14BC41-5B76-3140-B680-8825562683AC
|
|
template <> inline constexpr guid guid_v<winrt::Windows::Media::Ocr::IOcrEngineStatics>{ 0x5BFFA85A,0x3384,0x3540,{ 0x99,0x40,0x69,0x91,0x20,0xD4,0x28,0xA8 } }; // 5BFFA85A-3384-3540-9940-699120D428A8
|
|
template <> inline constexpr guid guid_v<winrt::Windows::Media::Ocr::IOcrLine>{ 0x0043A16F,0xE31F,0x3A24,{ 0x89,0x9C,0xD4,0x44,0xBD,0x08,0x81,0x24 } }; // 0043A16F-E31F-3A24-899C-D444BD088124
|
|
template <> inline constexpr guid guid_v<winrt::Windows::Media::Ocr::IOcrResult>{ 0x9BD235B2,0x175B,0x3D6A,{ 0x92,0xE2,0x38,0x8C,0x20,0x6E,0x2F,0x63 } }; // 9BD235B2-175B-3D6A-92E2-388C206E2F63
|
|
template <> inline constexpr guid guid_v<winrt::Windows::Media::Ocr::IOcrWord>{ 0x3C2A477A,0x5CD9,0x3525,{ 0xBA,0x2A,0x23,0xD1,0xE0,0xA6,0x8A,0x1D } }; // 3C2A477A-5CD9-3525-BA2A-23D1E0A68A1D
|
|
template <> struct default_interface<winrt::Windows::Media::Ocr::OcrEngine>{ using type = winrt::Windows::Media::Ocr::IOcrEngine; };
|
|
template <> struct default_interface<winrt::Windows::Media::Ocr::OcrLine>{ using type = winrt::Windows::Media::Ocr::IOcrLine; };
|
|
template <> struct default_interface<winrt::Windows::Media::Ocr::OcrResult>{ using type = winrt::Windows::Media::Ocr::IOcrResult; };
|
|
template <> struct default_interface<winrt::Windows::Media::Ocr::OcrWord>{ using type = winrt::Windows::Media::Ocr::IOcrWord; };
|
|
template <> struct abi<winrt::Windows::Media::Ocr::IOcrEngine>
|
|
{
|
|
struct __declspec(novtable) type : inspectable_abi
|
|
{
|
|
virtual int32_t __stdcall RecognizeAsync(void*, void**) noexcept = 0;
|
|
virtual int32_t __stdcall get_RecognizerLanguage(void**) noexcept = 0;
|
|
};
|
|
};
|
|
template <> struct abi<winrt::Windows::Media::Ocr::IOcrEngineStatics>
|
|
{
|
|
struct __declspec(novtable) type : inspectable_abi
|
|
{
|
|
virtual int32_t __stdcall get_MaxImageDimension(uint32_t*) noexcept = 0;
|
|
virtual int32_t __stdcall get_AvailableRecognizerLanguages(void**) noexcept = 0;
|
|
virtual int32_t __stdcall IsLanguageSupported(void*, bool*) noexcept = 0;
|
|
virtual int32_t __stdcall TryCreateFromLanguage(void*, void**) noexcept = 0;
|
|
virtual int32_t __stdcall TryCreateFromUserProfileLanguages(void**) noexcept = 0;
|
|
};
|
|
};
|
|
template <> struct abi<winrt::Windows::Media::Ocr::IOcrLine>
|
|
{
|
|
struct __declspec(novtable) type : inspectable_abi
|
|
{
|
|
virtual int32_t __stdcall get_Words(void**) noexcept = 0;
|
|
virtual int32_t __stdcall get_Text(void**) noexcept = 0;
|
|
};
|
|
};
|
|
template <> struct abi<winrt::Windows::Media::Ocr::IOcrResult>
|
|
{
|
|
struct __declspec(novtable) type : inspectable_abi
|
|
{
|
|
virtual int32_t __stdcall get_Lines(void**) noexcept = 0;
|
|
virtual int32_t __stdcall get_TextAngle(void**) noexcept = 0;
|
|
virtual int32_t __stdcall get_Text(void**) noexcept = 0;
|
|
};
|
|
};
|
|
template <> struct abi<winrt::Windows::Media::Ocr::IOcrWord>
|
|
{
|
|
struct __declspec(novtable) type : inspectable_abi
|
|
{
|
|
virtual int32_t __stdcall get_BoundingRect(winrt::Windows::Foundation::Rect*) noexcept = 0;
|
|
virtual int32_t __stdcall get_Text(void**) noexcept = 0;
|
|
};
|
|
};
|
|
template <typename D>
|
|
struct consume_Windows_Media_Ocr_IOcrEngine
|
|
{
|
|
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Media::Ocr::OcrResult>) RecognizeAsync(winrt::Windows::Graphics::Imaging::SoftwareBitmap const& bitmap) const;
|
|
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Globalization::Language) RecognizerLanguage() const;
|
|
};
|
|
template <> struct consume<winrt::Windows::Media::Ocr::IOcrEngine>
|
|
{
|
|
template <typename D> using type = consume_Windows_Media_Ocr_IOcrEngine<D>;
|
|
};
|
|
template <typename D>
|
|
struct consume_Windows_Media_Ocr_IOcrEngineStatics
|
|
{
|
|
[[nodiscard]] WINRT_IMPL_AUTO(uint32_t) MaxImageDimension() const;
|
|
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Globalization::Language>) AvailableRecognizerLanguages() const;
|
|
WINRT_IMPL_AUTO(bool) IsLanguageSupported(winrt::Windows::Globalization::Language const& language) const;
|
|
WINRT_IMPL_AUTO(winrt::Windows::Media::Ocr::OcrEngine) TryCreateFromLanguage(winrt::Windows::Globalization::Language const& language) const;
|
|
WINRT_IMPL_AUTO(winrt::Windows::Media::Ocr::OcrEngine) TryCreateFromUserProfileLanguages() const;
|
|
};
|
|
template <> struct consume<winrt::Windows::Media::Ocr::IOcrEngineStatics>
|
|
{
|
|
template <typename D> using type = consume_Windows_Media_Ocr_IOcrEngineStatics<D>;
|
|
};
|
|
template <typename D>
|
|
struct consume_Windows_Media_Ocr_IOcrLine
|
|
{
|
|
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Media::Ocr::OcrWord>) Words() const;
|
|
[[nodiscard]] WINRT_IMPL_AUTO(hstring) Text() const;
|
|
};
|
|
template <> struct consume<winrt::Windows::Media::Ocr::IOcrLine>
|
|
{
|
|
template <typename D> using type = consume_Windows_Media_Ocr_IOcrLine<D>;
|
|
};
|
|
template <typename D>
|
|
struct consume_Windows_Media_Ocr_IOcrResult
|
|
{
|
|
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Media::Ocr::OcrLine>) Lines() const;
|
|
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::IReference<double>) TextAngle() const;
|
|
[[nodiscard]] WINRT_IMPL_AUTO(hstring) Text() const;
|
|
};
|
|
template <> struct consume<winrt::Windows::Media::Ocr::IOcrResult>
|
|
{
|
|
template <typename D> using type = consume_Windows_Media_Ocr_IOcrResult<D>;
|
|
};
|
|
template <typename D>
|
|
struct consume_Windows_Media_Ocr_IOcrWord
|
|
{
|
|
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::Rect) BoundingRect() const;
|
|
[[nodiscard]] WINRT_IMPL_AUTO(hstring) Text() const;
|
|
};
|
|
template <> struct consume<winrt::Windows::Media::Ocr::IOcrWord>
|
|
{
|
|
template <typename D> using type = consume_Windows_Media_Ocr_IOcrWord<D>;
|
|
};
|
|
}
|
|
#endif
|