| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/cppwinrt/winrt/impl/ |
Upload File : |
// C++/WinRT v2.0.190620.2
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef WINRT_Windows_Media_Ocr_0_H
#define WINRT_Windows_Media_Ocr_0_H
namespace winrt::Windows::Foundation
{
struct Rect;
}
namespace winrt::Windows::Globalization
{
struct Language;
}
namespace winrt::Windows::Graphics::Imaging
{
struct SoftwareBitmap;
}
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<Windows::Media::Ocr::IOcrEngine>
{
using type = interface_category;
};
template <> struct category<Windows::Media::Ocr::IOcrEngineStatics>
{
using type = interface_category;
};
template <> struct category<Windows::Media::Ocr::IOcrLine>
{
using type = interface_category;
};
template <> struct category<Windows::Media::Ocr::IOcrResult>
{
using type = interface_category;
};
template <> struct category<Windows::Media::Ocr::IOcrWord>
{
using type = interface_category;
};
template <> struct category<Windows::Media::Ocr::OcrEngine>
{
using type = class_category;
};
template <> struct category<Windows::Media::Ocr::OcrLine>
{
using type = class_category;
};
template <> struct category<Windows::Media::Ocr::OcrResult>
{
using type = class_category;
};
template <> struct category<Windows::Media::Ocr::OcrWord>
{
using type = class_category;
};
template <> struct name<Windows::Media::Ocr::IOcrEngine>
{
static constexpr auto & value{ L"Windows.Media.Ocr.IOcrEngine" };
};
template <> struct name<Windows::Media::Ocr::IOcrEngineStatics>
{
static constexpr auto & value{ L"Windows.Media.Ocr.IOcrEngineStatics" };
};
template <> struct name<Windows::Media::Ocr::IOcrLine>
{
static constexpr auto & value{ L"Windows.Media.Ocr.IOcrLine" };
};
template <> struct name<Windows::Media::Ocr::IOcrResult>
{
static constexpr auto & value{ L"Windows.Media.Ocr.IOcrResult" };
};
template <> struct name<Windows::Media::Ocr::IOcrWord>
{
static constexpr auto & value{ L"Windows.Media.Ocr.IOcrWord" };
};
template <> struct name<Windows::Media::Ocr::OcrEngine>
{
static constexpr auto & value{ L"Windows.Media.Ocr.OcrEngine" };
};
template <> struct name<Windows::Media::Ocr::OcrLine>
{
static constexpr auto & value{ L"Windows.Media.Ocr.OcrLine" };
};
template <> struct name<Windows::Media::Ocr::OcrResult>
{
static constexpr auto & value{ L"Windows.Media.Ocr.OcrResult" };
};
template <> struct name<Windows::Media::Ocr::OcrWord>
{
static constexpr auto & value{ L"Windows.Media.Ocr.OcrWord" };
};
template <> struct guid_storage<Windows::Media::Ocr::IOcrEngine>
{
static constexpr guid value{ 0x5A14BC41,0x5B76,0x3140,{ 0xB6,0x80,0x88,0x25,0x56,0x26,0x83,0xAC } };
};
template <> struct guid_storage<Windows::Media::Ocr::IOcrEngineStatics>
{
static constexpr guid value{ 0x5BFFA85A,0x3384,0x3540,{ 0x99,0x40,0x69,0x91,0x20,0xD4,0x28,0xA8 } };
};
template <> struct guid_storage<Windows::Media::Ocr::IOcrLine>
{
static constexpr guid value{ 0x0043A16F,0xE31F,0x3A24,{ 0x89,0x9C,0xD4,0x44,0xBD,0x08,0x81,0x24 } };
};
template <> struct guid_storage<Windows::Media::Ocr::IOcrResult>
{
static constexpr guid value{ 0x9BD235B2,0x175B,0x3D6A,{ 0x92,0xE2,0x38,0x8C,0x20,0x6E,0x2F,0x63 } };
};
template <> struct guid_storage<Windows::Media::Ocr::IOcrWord>
{
static constexpr guid value{ 0x3C2A477A,0x5CD9,0x3525,{ 0xBA,0x2A,0x23,0xD1,0xE0,0xA6,0x8A,0x1D } };
};
template <> struct default_interface<Windows::Media::Ocr::OcrEngine>
{
using type = Windows::Media::Ocr::IOcrEngine;
};
template <> struct default_interface<Windows::Media::Ocr::OcrLine>
{
using type = Windows::Media::Ocr::IOcrLine;
};
template <> struct default_interface<Windows::Media::Ocr::OcrResult>
{
using type = Windows::Media::Ocr::IOcrResult;
};
template <> struct default_interface<Windows::Media::Ocr::OcrWord>
{
using type = Windows::Media::Ocr::IOcrWord;
};
template <> struct abi<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<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<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<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<Windows::Media::Ocr::IOcrWord>
{
struct __declspec(novtable) type : inspectable_abi
{
virtual int32_t __stdcall get_BoundingRect(Windows::Foundation::Rect*) noexcept = 0;
virtual int32_t __stdcall get_Text(void**) noexcept = 0;
};
};
template <typename D>
struct consume_Windows_Media_Ocr_IOcrEngine
{
auto RecognizeAsync(Windows::Graphics::Imaging::SoftwareBitmap const& bitmap) const;
[[nodiscard]] auto RecognizerLanguage() const;
};
template <> struct consume<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]] auto MaxImageDimension() const;
[[nodiscard]] auto AvailableRecognizerLanguages() const;
auto IsLanguageSupported(Windows::Globalization::Language const& language) const;
auto TryCreateFromLanguage(Windows::Globalization::Language const& language) const;
auto TryCreateFromUserProfileLanguages() const;
};
template <> struct consume<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]] auto Words() const;
[[nodiscard]] auto Text() const;
};
template <> struct consume<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]] auto Lines() const;
[[nodiscard]] auto TextAngle() const;
[[nodiscard]] auto Text() const;
};
template <> struct consume<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]] auto BoundingRect() const;
[[nodiscard]] auto Text() const;
};
template <> struct consume<Windows::Media::Ocr::IOcrWord>
{
template <typename D> using type = consume_Windows_Media_Ocr_IOcrWord<D>;
};
}
#endif