// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_Media_MediaProperties_H #define WINRT_Windows_Media_MediaProperties_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.240405.15" #include "winrt/Windows.Media.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.Media.Core.2.h" #include "winrt/impl/Windows.Storage.2.h" #include "winrt/impl/Windows.Storage.Streams.2.h" #include "winrt/impl/Windows.Media.MediaProperties.2.h" namespace winrt::impl { template auto consume_Windows_Media_MediaProperties_IAudioEncodingProperties::Bitrate(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAudioEncodingProperties)->put_Bitrate(value)); } template auto consume_Windows_Media_MediaProperties_IAudioEncodingProperties::Bitrate() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAudioEncodingProperties)->get_Bitrate(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IAudioEncodingProperties::ChannelCount(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAudioEncodingProperties)->put_ChannelCount(value)); } template auto consume_Windows_Media_MediaProperties_IAudioEncodingProperties::ChannelCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAudioEncodingProperties)->get_ChannelCount(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IAudioEncodingProperties::SampleRate(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAudioEncodingProperties)->put_SampleRate(value)); } template auto consume_Windows_Media_MediaProperties_IAudioEncodingProperties::SampleRate() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAudioEncodingProperties)->get_SampleRate(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IAudioEncodingProperties::BitsPerSample(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAudioEncodingProperties)->put_BitsPerSample(value)); } template auto consume_Windows_Media_MediaProperties_IAudioEncodingProperties::BitsPerSample() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAudioEncodingProperties)->get_BitsPerSample(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IAudioEncodingProperties2::IsSpatial() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAudioEncodingProperties2)->get_IsSpatial(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IAudioEncodingProperties3::Copy() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAudioEncodingProperties3)->Copy(&result)); return winrt::Windows::Media::MediaProperties::AudioEncodingProperties{ result, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IAudioEncodingPropertiesStatics::CreateAac(uint32_t sampleRate, uint32_t channelCount, uint32_t bitrate) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAudioEncodingPropertiesStatics)->CreateAac(sampleRate, channelCount, bitrate, &value)); return winrt::Windows::Media::MediaProperties::AudioEncodingProperties{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IAudioEncodingPropertiesStatics::CreateAacAdts(uint32_t sampleRate, uint32_t channelCount, uint32_t bitrate) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAudioEncodingPropertiesStatics)->CreateAacAdts(sampleRate, channelCount, bitrate, &value)); return winrt::Windows::Media::MediaProperties::AudioEncodingProperties{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IAudioEncodingPropertiesStatics::CreateMp3(uint32_t sampleRate, uint32_t channelCount, uint32_t bitrate) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAudioEncodingPropertiesStatics)->CreateMp3(sampleRate, channelCount, bitrate, &value)); return winrt::Windows::Media::MediaProperties::AudioEncodingProperties{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IAudioEncodingPropertiesStatics::CreatePcm(uint32_t sampleRate, uint32_t channelCount, uint32_t bitsPerSample) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAudioEncodingPropertiesStatics)->CreatePcm(sampleRate, channelCount, bitsPerSample, &value)); return winrt::Windows::Media::MediaProperties::AudioEncodingProperties{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IAudioEncodingPropertiesStatics::CreateWma(uint32_t sampleRate, uint32_t channelCount, uint32_t bitrate) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAudioEncodingPropertiesStatics)->CreateWma(sampleRate, channelCount, bitrate, &value)); return winrt::Windows::Media::MediaProperties::AudioEncodingProperties{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IAudioEncodingPropertiesStatics2::CreateAlac(uint32_t sampleRate, uint32_t channelCount, uint32_t bitsPerSample) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAudioEncodingPropertiesStatics2)->CreateAlac(sampleRate, channelCount, bitsPerSample, &value)); return winrt::Windows::Media::MediaProperties::AudioEncodingProperties{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IAudioEncodingPropertiesStatics2::CreateFlac(uint32_t sampleRate, uint32_t channelCount, uint32_t bitsPerSample) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAudioEncodingPropertiesStatics2)->CreateFlac(sampleRate, channelCount, bitsPerSample, &value)); return winrt::Windows::Media::MediaProperties::AudioEncodingProperties{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IAudioEncodingPropertiesWithFormatUserData::SetFormatUserData(array_view value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAudioEncodingPropertiesWithFormatUserData)->SetFormatUserData(value.size(), get_abi(value))); } template auto consume_Windows_Media_MediaProperties_IAudioEncodingPropertiesWithFormatUserData::GetFormatUserData(com_array& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAudioEncodingPropertiesWithFormatUserData)->GetFormatUserData(impl::put_size_abi(value), put_abi(value))); } template auto consume_Windows_Media_MediaProperties_IAv1ProfileIdsStatics::MainChromaSubsampling420BitDepth8() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAv1ProfileIdsStatics)->get_MainChromaSubsampling420BitDepth8(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IAv1ProfileIdsStatics::MainChromaSubsampling420BitDepth10() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAv1ProfileIdsStatics)->get_MainChromaSubsampling420BitDepth10(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IAv1ProfileIdsStatics::MainChromaSubsampling400BitDepth8() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAv1ProfileIdsStatics)->get_MainChromaSubsampling400BitDepth8(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IAv1ProfileIdsStatics::MainChromaSubsampling400BitDepth10() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAv1ProfileIdsStatics)->get_MainChromaSubsampling400BitDepth10(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IAv1ProfileIdsStatics::HighChromaSubsampling444BitDepth8() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAv1ProfileIdsStatics)->get_HighChromaSubsampling444BitDepth8(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IAv1ProfileIdsStatics::HighChromaSubsampling444BitDepth10() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAv1ProfileIdsStatics)->get_HighChromaSubsampling444BitDepth10(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IAv1ProfileIdsStatics::ProfessionalChromaSubsampling420BitDepth12() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAv1ProfileIdsStatics)->get_ProfessionalChromaSubsampling420BitDepth12(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IAv1ProfileIdsStatics::ProfessionalChromaSubsampling400BitDepth12() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAv1ProfileIdsStatics)->get_ProfessionalChromaSubsampling400BitDepth12(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IAv1ProfileIdsStatics::ProfessionalChromaSubsampling444BitDepth12() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAv1ProfileIdsStatics)->get_ProfessionalChromaSubsampling444BitDepth12(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IAv1ProfileIdsStatics::ProfessionalChromaSubsampling422BitDepth8() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAv1ProfileIdsStatics)->get_ProfessionalChromaSubsampling422BitDepth8(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IAv1ProfileIdsStatics::ProfessionalChromaSubsampling422BitDepth10() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAv1ProfileIdsStatics)->get_ProfessionalChromaSubsampling422BitDepth10(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IAv1ProfileIdsStatics::ProfessionalChromaSubsampling422BitDepth12() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IAv1ProfileIdsStatics)->get_ProfessionalChromaSubsampling422BitDepth12(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IContainerEncodingProperties2::Copy() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IContainerEncodingProperties2)->Copy(&result)); return winrt::Windows::Media::MediaProperties::ContainerEncodingProperties{ result, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IH264ProfileIdsStatics::ConstrainedBaseline() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IH264ProfileIdsStatics)->get_ConstrainedBaseline(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IH264ProfileIdsStatics::Baseline() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IH264ProfileIdsStatics)->get_Baseline(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IH264ProfileIdsStatics::Extended() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IH264ProfileIdsStatics)->get_Extended(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IH264ProfileIdsStatics::Main() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IH264ProfileIdsStatics)->get_Main(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IH264ProfileIdsStatics::High() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IH264ProfileIdsStatics)->get_High(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IH264ProfileIdsStatics::High10() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IH264ProfileIdsStatics)->get_High10(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IH264ProfileIdsStatics::High422() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IH264ProfileIdsStatics)->get_High422(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IH264ProfileIdsStatics::High444() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IH264ProfileIdsStatics)->get_High444(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IH264ProfileIdsStatics::StereoHigh() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IH264ProfileIdsStatics)->get_StereoHigh(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IH264ProfileIdsStatics::MultiviewHigh() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IH264ProfileIdsStatics)->get_MultiviewHigh(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IHevcProfileIdsStatics::MainChromaSubsampling420BitDepth8() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IHevcProfileIdsStatics)->get_MainChromaSubsampling420BitDepth8(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IHevcProfileIdsStatics::MainChromaSubsampling420BitDepth10() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IHevcProfileIdsStatics)->get_MainChromaSubsampling420BitDepth10(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IHevcProfileIdsStatics::MainChromaSubsampling420BitDepth12() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IHevcProfileIdsStatics)->get_MainChromaSubsampling420BitDepth12(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IHevcProfileIdsStatics::MainChromaSubsampling422BitDepth10() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IHevcProfileIdsStatics)->get_MainChromaSubsampling422BitDepth10(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IHevcProfileIdsStatics::MainChromaSubsampling422BitDepth12() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IHevcProfileIdsStatics)->get_MainChromaSubsampling422BitDepth12(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IHevcProfileIdsStatics::MainChromaSubsampling444BitDepth8() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IHevcProfileIdsStatics)->get_MainChromaSubsampling444BitDepth8(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IHevcProfileIdsStatics::MainChromaSubsampling444BitDepth10() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IHevcProfileIdsStatics)->get_MainChromaSubsampling444BitDepth10(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IHevcProfileIdsStatics::MainChromaSubsampling444BitDepth12() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IHevcProfileIdsStatics)->get_MainChromaSubsampling444BitDepth12(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IHevcProfileIdsStatics::MonochromeBitDepth12() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IHevcProfileIdsStatics)->get_MonochromeBitDepth12(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IHevcProfileIdsStatics::MonochromeBitDepth16() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IHevcProfileIdsStatics)->get_MonochromeBitDepth16(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IHevcProfileIdsStatics::MainIntraChromaSubsampling420BitDepth8() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IHevcProfileIdsStatics)->get_MainIntraChromaSubsampling420BitDepth8(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IHevcProfileIdsStatics::MainIntraChromaSubsampling420BitDepth10() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IHevcProfileIdsStatics)->get_MainIntraChromaSubsampling420BitDepth10(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IHevcProfileIdsStatics::MainIntraChromaSubsampling420BitDepth12() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IHevcProfileIdsStatics)->get_MainIntraChromaSubsampling420BitDepth12(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IHevcProfileIdsStatics::MainIntraChromaSubsampling422BitDepth10() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IHevcProfileIdsStatics)->get_MainIntraChromaSubsampling422BitDepth10(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IHevcProfileIdsStatics::MainIntraChromaSubsampling422BitDepth12() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IHevcProfileIdsStatics)->get_MainIntraChromaSubsampling422BitDepth12(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IHevcProfileIdsStatics::MainIntraChromaSubsampling444BitDepth8() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IHevcProfileIdsStatics)->get_MainIntraChromaSubsampling444BitDepth8(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IHevcProfileIdsStatics::MainIntraChromaSubsampling444BitDepth10() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IHevcProfileIdsStatics)->get_MainIntraChromaSubsampling444BitDepth10(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IHevcProfileIdsStatics::MainIntraChromaSubsampling444BitDepth12() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IHevcProfileIdsStatics)->get_MainIntraChromaSubsampling444BitDepth12(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IHevcProfileIdsStatics::MainIntraChromaSubsampling444BitDepth16() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IHevcProfileIdsStatics)->get_MainIntraChromaSubsampling444BitDepth16(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IHevcProfileIdsStatics::MainStillChromaSubsampling420BitDepth8() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IHevcProfileIdsStatics)->get_MainStillChromaSubsampling420BitDepth8(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IHevcProfileIdsStatics::MainStillChromaSubsampling444BitDepth8() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IHevcProfileIdsStatics)->get_MainStillChromaSubsampling444BitDepth8(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IHevcProfileIdsStatics::MainStillChromaSubsampling444BitDepth16() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IHevcProfileIdsStatics)->get_MainStillChromaSubsampling444BitDepth16(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IImageEncodingProperties::Width(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IImageEncodingProperties)->put_Width(value)); } template auto consume_Windows_Media_MediaProperties_IImageEncodingProperties::Width() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IImageEncodingProperties)->get_Width(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IImageEncodingProperties::Height(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IImageEncodingProperties)->put_Height(value)); } template auto consume_Windows_Media_MediaProperties_IImageEncodingProperties::Height() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IImageEncodingProperties)->get_Height(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IImageEncodingProperties2::Copy() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IImageEncodingProperties2)->Copy(&result)); return winrt::Windows::Media::MediaProperties::ImageEncodingProperties{ result, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IImageEncodingPropertiesStatics::CreateJpeg() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IImageEncodingPropertiesStatics)->CreateJpeg(&value)); return winrt::Windows::Media::MediaProperties::ImageEncodingProperties{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IImageEncodingPropertiesStatics::CreatePng() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IImageEncodingPropertiesStatics)->CreatePng(&value)); return winrt::Windows::Media::MediaProperties::ImageEncodingProperties{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IImageEncodingPropertiesStatics::CreateJpegXR() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IImageEncodingPropertiesStatics)->CreateJpegXR(&value)); return winrt::Windows::Media::MediaProperties::ImageEncodingProperties{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IImageEncodingPropertiesStatics2::CreateUncompressed(winrt::Windows::Media::MediaProperties::MediaPixelFormat const& format) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IImageEncodingPropertiesStatics2)->CreateUncompressed(static_cast(format), &value)); return winrt::Windows::Media::MediaProperties::ImageEncodingProperties{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IImageEncodingPropertiesStatics2::CreateBmp() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IImageEncodingPropertiesStatics2)->CreateBmp(&value)); return winrt::Windows::Media::MediaProperties::ImageEncodingProperties{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IImageEncodingPropertiesStatics3::CreateHeif() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IImageEncodingPropertiesStatics3)->CreateHeif(&result)); return winrt::Windows::Media::MediaProperties::ImageEncodingProperties{ result, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProfile::Audio(winrt::Windows::Media::MediaProperties::AudioEncodingProperties const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProfile)->put_Audio(*(void**)(&value))); } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProfile::Audio() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProfile)->get_Audio(&value)); return winrt::Windows::Media::MediaProperties::AudioEncodingProperties{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProfile::Video(winrt::Windows::Media::MediaProperties::VideoEncodingProperties const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProfile)->put_Video(*(void**)(&value))); } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProfile::Video() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProfile)->get_Video(&value)); return winrt::Windows::Media::MediaProperties::VideoEncodingProperties{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProfile::Container(winrt::Windows::Media::MediaProperties::ContainerEncodingProperties const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProfile)->put_Container(*(void**)(&value))); } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProfile::Container() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProfile)->get_Container(&value)); return winrt::Windows::Media::MediaProperties::ContainerEncodingProperties{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProfile2::SetAudioTracks(param::iterable const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProfile2)->SetAudioTracks(*(void**)(&value))); } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProfile2::GetAudioTracks() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProfile2)->GetAudioTracks(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProfile2::SetVideoTracks(param::iterable const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProfile2)->SetVideoTracks(*(void**)(&value))); } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProfile2::GetVideoTracks() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProfile2)->GetVideoTracks(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProfile3::SetTimedMetadataTracks(param::iterable const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProfile3)->SetTimedMetadataTracks(*(void**)(&value))); } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProfile3::GetTimedMetadataTracks() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProfile3)->GetTimedMetadataTracks(&result)); return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProfileStatics::CreateM4a(winrt::Windows::Media::MediaProperties::AudioEncodingQuality const& quality) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProfileStatics)->CreateM4a(static_cast(quality), &value)); return winrt::Windows::Media::MediaProperties::MediaEncodingProfile{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProfileStatics::CreateMp3(winrt::Windows::Media::MediaProperties::AudioEncodingQuality const& quality) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProfileStatics)->CreateMp3(static_cast(quality), &value)); return winrt::Windows::Media::MediaProperties::MediaEncodingProfile{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProfileStatics::CreateWma(winrt::Windows::Media::MediaProperties::AudioEncodingQuality const& quality) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProfileStatics)->CreateWma(static_cast(quality), &value)); return winrt::Windows::Media::MediaProperties::MediaEncodingProfile{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProfileStatics::CreateMp4(winrt::Windows::Media::MediaProperties::VideoEncodingQuality const& quality) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProfileStatics)->CreateMp4(static_cast(quality), &value)); return winrt::Windows::Media::MediaProperties::MediaEncodingProfile{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProfileStatics::CreateWmv(winrt::Windows::Media::MediaProperties::VideoEncodingQuality const& quality) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProfileStatics)->CreateWmv(static_cast(quality), &value)); return winrt::Windows::Media::MediaProperties::MediaEncodingProfile{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProfileStatics::CreateFromFileAsync(winrt::Windows::Storage::IStorageFile const& file) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProfileStatics)->CreateFromFileAsync(*(void**)(&file), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProfileStatics::CreateFromStreamAsync(winrt::Windows::Storage::Streams::IRandomAccessStream const& stream) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProfileStatics)->CreateFromStreamAsync(*(void**)(&stream), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProfileStatics2::CreateWav(winrt::Windows::Media::MediaProperties::AudioEncodingQuality const& quality) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProfileStatics2)->CreateWav(static_cast(quality), &value)); return winrt::Windows::Media::MediaProperties::MediaEncodingProfile{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProfileStatics2::CreateAvi(winrt::Windows::Media::MediaProperties::VideoEncodingQuality const& quality) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProfileStatics2)->CreateAvi(static_cast(quality), &value)); return winrt::Windows::Media::MediaProperties::MediaEncodingProfile{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProfileStatics3::CreateAlac(winrt::Windows::Media::MediaProperties::AudioEncodingQuality const& quality) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProfileStatics3)->CreateAlac(static_cast(quality), &value)); return winrt::Windows::Media::MediaProperties::MediaEncodingProfile{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProfileStatics3::CreateFlac(winrt::Windows::Media::MediaProperties::AudioEncodingQuality const& quality) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProfileStatics3)->CreateFlac(static_cast(quality), &value)); return winrt::Windows::Media::MediaProperties::MediaEncodingProfile{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProfileStatics3::CreateHevc(winrt::Windows::Media::MediaProperties::VideoEncodingQuality const& quality) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProfileStatics3)->CreateHevc(static_cast(quality), &value)); return winrt::Windows::Media::MediaProperties::MediaEncodingProfile{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProfileStatics4::CreateVp9(winrt::Windows::Media::MediaProperties::VideoEncodingQuality const& quality) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProfileStatics4)->CreateVp9(static_cast(quality), &result)); return winrt::Windows::Media::MediaProperties::MediaEncodingProfile{ result, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProfileStatics4::CreateAv1(winrt::Windows::Media::MediaProperties::VideoEncodingQuality const& quality) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProfileStatics4)->CreateAv1(static_cast(quality), &result)); return winrt::Windows::Media::MediaProperties::MediaEncodingProfile{ result, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProperties::Properties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProperties)->get_Properties(&value)); return winrt::Windows::Media::MediaProperties::MediaPropertySet{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProperties::Type() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProperties)->get_Type(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProperties::Subtype(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProperties)->put_Subtype(*(void**)(&value))); } template auto consume_Windows_Media_MediaProperties_IMediaEncodingProperties::Subtype() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingProperties)->get_Subtype(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Aac() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Aac(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::AacAdts() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_AacAdts(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Ac3() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Ac3(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::AmrNb() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_AmrNb(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::AmrWb() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_AmrWb(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Argb32() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Argb32(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Asf() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Asf(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Avi() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Avi(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Bgra8() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Bgra8(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Bmp() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Bmp(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Eac3() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Eac3(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Float() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Float(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Gif() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Gif(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::H263() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_H263(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::H264() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_H264(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::H264Es() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_H264Es(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Hevc() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Hevc(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::HevcEs() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_HevcEs(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Iyuv() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Iyuv(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Jpeg() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Jpeg(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::JpegXr() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_JpegXr(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Mjpg() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Mjpg(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Mpeg() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Mpeg(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Mpeg1() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Mpeg1(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Mpeg2() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Mpeg2(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Mp3() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Mp3(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Mpeg4() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Mpeg4(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Nv12() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Nv12(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Pcm() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Pcm(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Png() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Png(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Rgb24() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Rgb24(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Rgb32() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Rgb32(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Tiff() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Tiff(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Wave() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Wave(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Wma8() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Wma8(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Wma9() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Wma9(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Wmv3() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Wmv3(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Wvc1() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Wvc1(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Yuy2() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Yuy2(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics::Yv12() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics)->get_Yv12(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics2::Vp9() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics2)->get_Vp9(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics2::L8() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics2)->get_L8(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics2::L16() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics2)->get_L16(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics2::D16() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics2)->get_D16(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics3::Alac() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics3)->get_Alac(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics3::Flac() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics3)->get_Flac(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics4::P010() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics4)->get_P010(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics5::Heif() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics5)->get_Heif(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics6::Pgs() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics6)->get_Pgs(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics6::Srt() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics6)->get_Srt(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics6::Ssa() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics6)->get_Ssa(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics6::VobSub() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics6)->get_VobSub(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaEncodingSubtypesStatics7::Av1() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaEncodingSubtypesStatics7)->get_Av1(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IMediaRatio::Numerator(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaRatio)->put_Numerator(value)); } template auto consume_Windows_Media_MediaProperties_IMediaRatio::Numerator() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaRatio)->get_Numerator(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IMediaRatio::Denominator(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaRatio)->put_Denominator(value)); } template auto consume_Windows_Media_MediaProperties_IMediaRatio::Denominator() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMediaRatio)->get_Denominator(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IMpeg2ProfileIdsStatics::Simple() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMpeg2ProfileIdsStatics)->get_Simple(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IMpeg2ProfileIdsStatics::Main() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMpeg2ProfileIdsStatics)->get_Main(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IMpeg2ProfileIdsStatics::SignalNoiseRatioScalable() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMpeg2ProfileIdsStatics)->get_SignalNoiseRatioScalable(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IMpeg2ProfileIdsStatics::SpatiallyScalable() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMpeg2ProfileIdsStatics)->get_SpatiallyScalable(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IMpeg2ProfileIdsStatics::High() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IMpeg2ProfileIdsStatics)->get_High(&value)); return value; } template auto consume_Windows_Media_MediaProperties_ITimedMetadataEncodingProperties::SetFormatUserData(array_view value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::ITimedMetadataEncodingProperties)->SetFormatUserData(value.size(), get_abi(value))); } template auto consume_Windows_Media_MediaProperties_ITimedMetadataEncodingProperties::GetFormatUserData(com_array& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::ITimedMetadataEncodingProperties)->GetFormatUserData(impl::put_size_abi(value), put_abi(value))); } template auto consume_Windows_Media_MediaProperties_ITimedMetadataEncodingProperties::Copy() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::ITimedMetadataEncodingProperties)->Copy(&result)); return winrt::Windows::Media::MediaProperties::TimedMetadataEncodingProperties{ result, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_ITimedMetadataEncodingPropertiesStatics::CreatePgs() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::ITimedMetadataEncodingPropertiesStatics)->CreatePgs(&result)); return winrt::Windows::Media::MediaProperties::TimedMetadataEncodingProperties{ result, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_ITimedMetadataEncodingPropertiesStatics::CreateSrt() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::ITimedMetadataEncodingPropertiesStatics)->CreateSrt(&result)); return winrt::Windows::Media::MediaProperties::TimedMetadataEncodingProperties{ result, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_ITimedMetadataEncodingPropertiesStatics::CreateSsa(array_view formatUserData) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::ITimedMetadataEncodingPropertiesStatics)->CreateSsa(formatUserData.size(), get_abi(formatUserData), &result)); return winrt::Windows::Media::MediaProperties::TimedMetadataEncodingProperties{ result, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_ITimedMetadataEncodingPropertiesStatics::CreateVobSub(array_view formatUserData) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::ITimedMetadataEncodingPropertiesStatics)->CreateVobSub(formatUserData.size(), get_abi(formatUserData), &result)); return winrt::Windows::Media::MediaProperties::TimedMetadataEncodingProperties{ result, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IVideoEncodingProperties::Bitrate(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IVideoEncodingProperties)->put_Bitrate(value)); } template auto consume_Windows_Media_MediaProperties_IVideoEncodingProperties::Bitrate() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IVideoEncodingProperties)->get_Bitrate(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IVideoEncodingProperties::Width(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IVideoEncodingProperties)->put_Width(value)); } template auto consume_Windows_Media_MediaProperties_IVideoEncodingProperties::Width() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IVideoEncodingProperties)->get_Width(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IVideoEncodingProperties::Height(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IVideoEncodingProperties)->put_Height(value)); } template auto consume_Windows_Media_MediaProperties_IVideoEncodingProperties::Height() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IVideoEncodingProperties)->get_Height(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IVideoEncodingProperties::FrameRate() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IVideoEncodingProperties)->get_FrameRate(&value)); return winrt::Windows::Media::MediaProperties::MediaRatio{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IVideoEncodingProperties::PixelAspectRatio() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IVideoEncodingProperties)->get_PixelAspectRatio(&value)); return winrt::Windows::Media::MediaProperties::MediaRatio{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IVideoEncodingProperties2::SetFormatUserData(array_view value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IVideoEncodingProperties2)->SetFormatUserData(value.size(), get_abi(value))); } template auto consume_Windows_Media_MediaProperties_IVideoEncodingProperties2::GetFormatUserData(com_array& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IVideoEncodingProperties2)->GetFormatUserData(impl::put_size_abi(value), put_abi(value))); } template auto consume_Windows_Media_MediaProperties_IVideoEncodingProperties2::ProfileId(int32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IVideoEncodingProperties2)->put_ProfileId(value)); } template auto consume_Windows_Media_MediaProperties_IVideoEncodingProperties2::ProfileId() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IVideoEncodingProperties2)->get_ProfileId(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IVideoEncodingProperties3::StereoscopicVideoPackingMode() const { winrt::Windows::Media::MediaProperties::StereoscopicVideoPackingMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IVideoEncodingProperties3)->get_StereoscopicVideoPackingMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_MediaProperties_IVideoEncodingProperties4::SphericalVideoFrameFormat() const { winrt::Windows::Media::MediaProperties::SphericalVideoFrameFormat value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IVideoEncodingProperties4)->get_SphericalVideoFrameFormat(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_MediaProperties_IVideoEncodingProperties5::Copy() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IVideoEncodingProperties5)->Copy(&result)); return winrt::Windows::Media::MediaProperties::VideoEncodingProperties{ result, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IVideoEncodingPropertiesStatics::CreateH264() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IVideoEncodingPropertiesStatics)->CreateH264(&value)); return winrt::Windows::Media::MediaProperties::VideoEncodingProperties{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IVideoEncodingPropertiesStatics::CreateMpeg2() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IVideoEncodingPropertiesStatics)->CreateMpeg2(&value)); return winrt::Windows::Media::MediaProperties::VideoEncodingProperties{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IVideoEncodingPropertiesStatics::CreateUncompressed(param::hstring const& subtype, uint32_t width, uint32_t height) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IVideoEncodingPropertiesStatics)->CreateUncompressed(*(void**)(&subtype), width, height, &value)); return winrt::Windows::Media::MediaProperties::VideoEncodingProperties{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IVideoEncodingPropertiesStatics2::CreateHevc() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IVideoEncodingPropertiesStatics2)->CreateHevc(&value)); return winrt::Windows::Media::MediaProperties::VideoEncodingProperties{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IVideoEncodingPropertiesStatics3::CreateVp9() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IVideoEncodingPropertiesStatics3)->CreateVp9(&result)); return winrt::Windows::Media::MediaProperties::VideoEncodingProperties{ result, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IVideoEncodingPropertiesStatics3::CreateAv1() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IVideoEncodingPropertiesStatics3)->CreateAv1(&result)); return winrt::Windows::Media::MediaProperties::VideoEncodingProperties{ result, take_ownership_from_abi }; } template auto consume_Windows_Media_MediaProperties_IVp9ProfileIdsStatics::Profile0ChromaSubsampling420BitDepth8() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IVp9ProfileIdsStatics)->get_Profile0ChromaSubsampling420BitDepth8(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IVp9ProfileIdsStatics::Profile2ChromaSubsampling420BitDepth10() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IVp9ProfileIdsStatics)->get_Profile2ChromaSubsampling420BitDepth10(&value)); return value; } template auto consume_Windows_Media_MediaProperties_IVp9ProfileIdsStatics::Profile2ChromaSubsampling420BitDepth12() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::MediaProperties::IVp9ProfileIdsStatics)->get_Profile2ChromaSubsampling420BitDepth12(&value)); return value; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_Bitrate(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Bitrate(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Bitrate(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Bitrate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ChannelCount(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ChannelCount(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ChannelCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ChannelCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SampleRate(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SampleRate(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SampleRate(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SampleRate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_BitsPerSample(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().BitsPerSample(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BitsPerSample(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BitsPerSample()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsSpatial(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSpatial()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Copy(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Copy()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateAac(uint32_t sampleRate, uint32_t channelCount, uint32_t bitrate, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateAac(sampleRate, channelCount, bitrate)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateAacAdts(uint32_t sampleRate, uint32_t channelCount, uint32_t bitrate, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateAacAdts(sampleRate, channelCount, bitrate)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateMp3(uint32_t sampleRate, uint32_t channelCount, uint32_t bitrate, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateMp3(sampleRate, channelCount, bitrate)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreatePcm(uint32_t sampleRate, uint32_t channelCount, uint32_t bitsPerSample, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreatePcm(sampleRate, channelCount, bitsPerSample)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateWma(uint32_t sampleRate, uint32_t channelCount, uint32_t bitrate, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateWma(sampleRate, channelCount, bitrate)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateAlac(uint32_t sampleRate, uint32_t channelCount, uint32_t bitsPerSample, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateAlac(sampleRate, channelCount, bitsPerSample)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateFlac(uint32_t sampleRate, uint32_t channelCount, uint32_t bitsPerSample, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateFlac(sampleRate, channelCount, bitsPerSample)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetFormatUserData(uint32_t __valueSize, uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetFormatUserData(array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetFormatUserData(uint32_t* __valueSize, uint8_t** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); this->shim().GetFormatUserData(detach_abi(__valueSize, value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_MainChromaSubsampling420BitDepth8(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MainChromaSubsampling420BitDepth8()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MainChromaSubsampling420BitDepth10(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MainChromaSubsampling420BitDepth10()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MainChromaSubsampling400BitDepth8(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MainChromaSubsampling400BitDepth8()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MainChromaSubsampling400BitDepth10(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MainChromaSubsampling400BitDepth10()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HighChromaSubsampling444BitDepth8(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HighChromaSubsampling444BitDepth8()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HighChromaSubsampling444BitDepth10(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HighChromaSubsampling444BitDepth10()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProfessionalChromaSubsampling420BitDepth12(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProfessionalChromaSubsampling420BitDepth12()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProfessionalChromaSubsampling400BitDepth12(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProfessionalChromaSubsampling400BitDepth12()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProfessionalChromaSubsampling444BitDepth12(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProfessionalChromaSubsampling444BitDepth12()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProfessionalChromaSubsampling422BitDepth8(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProfessionalChromaSubsampling422BitDepth8()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProfessionalChromaSubsampling422BitDepth10(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProfessionalChromaSubsampling422BitDepth10()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProfessionalChromaSubsampling422BitDepth12(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProfessionalChromaSubsampling422BitDepth12()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Copy(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Copy()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ConstrainedBaseline(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ConstrainedBaseline()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Baseline(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Baseline()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Extended(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Extended()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Main(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Main()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_High(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().High()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_High10(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().High10()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_High422(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().High422()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_High444(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().High444()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StereoHigh(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StereoHigh()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MultiviewHigh(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MultiviewHigh()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_MainChromaSubsampling420BitDepth8(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MainChromaSubsampling420BitDepth8()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MainChromaSubsampling420BitDepth10(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MainChromaSubsampling420BitDepth10()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MainChromaSubsampling420BitDepth12(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MainChromaSubsampling420BitDepth12()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MainChromaSubsampling422BitDepth10(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MainChromaSubsampling422BitDepth10()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MainChromaSubsampling422BitDepth12(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MainChromaSubsampling422BitDepth12()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MainChromaSubsampling444BitDepth8(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MainChromaSubsampling444BitDepth8()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MainChromaSubsampling444BitDepth10(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MainChromaSubsampling444BitDepth10()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MainChromaSubsampling444BitDepth12(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MainChromaSubsampling444BitDepth12()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MonochromeBitDepth12(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MonochromeBitDepth12()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MonochromeBitDepth16(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MonochromeBitDepth16()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MainIntraChromaSubsampling420BitDepth8(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MainIntraChromaSubsampling420BitDepth8()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MainIntraChromaSubsampling420BitDepth10(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MainIntraChromaSubsampling420BitDepth10()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MainIntraChromaSubsampling420BitDepth12(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MainIntraChromaSubsampling420BitDepth12()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MainIntraChromaSubsampling422BitDepth10(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MainIntraChromaSubsampling422BitDepth10()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MainIntraChromaSubsampling422BitDepth12(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MainIntraChromaSubsampling422BitDepth12()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MainIntraChromaSubsampling444BitDepth8(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MainIntraChromaSubsampling444BitDepth8()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MainIntraChromaSubsampling444BitDepth10(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MainIntraChromaSubsampling444BitDepth10()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MainIntraChromaSubsampling444BitDepth12(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MainIntraChromaSubsampling444BitDepth12()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MainIntraChromaSubsampling444BitDepth16(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MainIntraChromaSubsampling444BitDepth16()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MainStillChromaSubsampling420BitDepth8(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MainStillChromaSubsampling420BitDepth8()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MainStillChromaSubsampling444BitDepth8(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MainStillChromaSubsampling444BitDepth8()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MainStillChromaSubsampling444BitDepth16(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MainStillChromaSubsampling444BitDepth16()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_Width(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Width(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Width(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Width()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Height(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Height(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Height(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Height()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Copy(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Copy()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateJpeg(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateJpeg()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreatePng(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreatePng()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateJpegXR(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateJpegXR()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateUncompressed(int32_t format, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateUncompressed(*reinterpret_cast(&format))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateBmp(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateBmp()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateHeif(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateHeif()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_Audio(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Audio(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Audio(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Audio()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Video(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Video(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Video(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Video()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Container(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Container(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Container(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Container()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetAudioTracks(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetAudioTracks(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAudioTracks(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().GetAudioTracks()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetVideoTracks(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetVideoTracks(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetVideoTracks(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().GetVideoTracks()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetTimedMetadataTracks(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetTimedMetadataTracks(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetTimedMetadataTracks(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetTimedMetadataTracks()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateM4a(int32_t quality, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateM4a(*reinterpret_cast(&quality))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateMp3(int32_t quality, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateMp3(*reinterpret_cast(&quality))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateWma(int32_t quality, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateWma(*reinterpret_cast(&quality))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateMp4(int32_t quality, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateMp4(*reinterpret_cast(&quality))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateWmv(int32_t quality, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateWmv(*reinterpret_cast(&quality))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateFromFileAsync(void* file, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().CreateFromFileAsync(*reinterpret_cast(&file))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateFromStreamAsync(void* stream, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().CreateFromStreamAsync(*reinterpret_cast(&stream))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateWav(int32_t quality, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateWav(*reinterpret_cast(&quality))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateAvi(int32_t quality, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateAvi(*reinterpret_cast(&quality))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateAlac(int32_t quality, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateAlac(*reinterpret_cast(&quality))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateFlac(int32_t quality, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateFlac(*reinterpret_cast(&quality))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateHevc(int32_t quality, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateHevc(*reinterpret_cast(&quality))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateVp9(int32_t quality, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateVp9(*reinterpret_cast(&quality))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateAv1(int32_t quality, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateAv1(*reinterpret_cast(&quality))); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall get_Properties(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Properties()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Type(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Type()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Subtype(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Subtype(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Subtype(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Subtype()); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Aac(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Aac()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AacAdts(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AacAdts()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Ac3(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Ac3()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AmrNb(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AmrNb()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AmrWb(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AmrWb()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Argb32(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Argb32()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Asf(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Asf()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Avi(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Avi()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Bgra8(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Bgra8()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Bmp(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Bmp()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Eac3(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Eac3()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Float(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Float()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Gif(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Gif()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_H263(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().H263()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_H264(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().H264()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_H264Es(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().H264Es()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Hevc(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Hevc()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HevcEs(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HevcEs()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Iyuv(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Iyuv()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Jpeg(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Jpeg()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_JpegXr(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().JpegXr()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Mjpg(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Mjpg()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Mpeg(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Mpeg()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Mpeg1(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Mpeg1()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Mpeg2(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Mpeg2()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Mp3(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Mp3()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Mpeg4(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Mpeg4()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Nv12(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Nv12()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Pcm(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Pcm()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Png(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Png()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Rgb24(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Rgb24()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Rgb32(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Rgb32()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Tiff(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Tiff()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Wave(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Wave()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Wma8(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Wma8()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Wma9(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Wma9()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Wmv3(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Wmv3()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Wvc1(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Wvc1()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Yuy2(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Yuy2()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Yv12(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Yv12()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Vp9(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Vp9()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_L8(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().L8()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_L16(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().L16()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_D16(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().D16()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Alac(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Alac()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Flac(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Flac()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_P010(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().P010()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Heif(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Heif()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Pgs(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Pgs()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Srt(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Srt()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Ssa(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Ssa()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VobSub(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VobSub()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Av1(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Av1()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_Numerator(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Numerator(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Numerator(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Numerator()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Denominator(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Denominator(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Denominator(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Denominator()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Simple(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Simple()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Main(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Main()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SignalNoiseRatioScalable(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SignalNoiseRatioScalable()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SpatiallyScalable(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SpatiallyScalable()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_High(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().High()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetFormatUserData(uint32_t __valueSize, uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetFormatUserData(array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetFormatUserData(uint32_t* __valueSize, uint8_t** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); this->shim().GetFormatUserData(detach_abi(__valueSize, value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Copy(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Copy()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreatePgs(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreatePgs()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateSrt(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateSrt()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateSsa(uint32_t __formatUserDataSize, uint8_t* formatUserData, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateSsa(array_view(reinterpret_cast(formatUserData), reinterpret_cast(formatUserData) + __formatUserDataSize))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateVobSub(uint32_t __formatUserDataSize, uint8_t* formatUserData, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateVobSub(array_view(reinterpret_cast(formatUserData), reinterpret_cast(formatUserData) + __formatUserDataSize))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_Bitrate(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Bitrate(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Bitrate(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Bitrate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Width(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Width(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Width(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Width()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Height(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Height(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Height(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Height()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FrameRate(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FrameRate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PixelAspectRatio(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PixelAspectRatio()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetFormatUserData(uint32_t __valueSize, uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetFormatUserData(array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetFormatUserData(uint32_t* __valueSize, uint8_t** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); this->shim().GetFormatUserData(detach_abi(__valueSize, value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ProfileId(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ProfileId(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProfileId(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProfileId()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_StereoscopicVideoPackingMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StereoscopicVideoPackingMode()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SphericalVideoFrameFormat(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SphericalVideoFrameFormat()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Copy(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Copy()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateH264(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateH264()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateMpeg2(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateMpeg2()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateUncompressed(void* subtype, uint32_t width, uint32_t height, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateUncompressed(*reinterpret_cast(&subtype), width, height)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateHevc(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateHevc()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateVp9(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateVp9()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateAv1(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateAv1()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Profile0ChromaSubsampling420BitDepth8(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Profile0ChromaSubsampling420BitDepth8()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Profile2ChromaSubsampling420BitDepth10(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Profile2ChromaSubsampling420BitDepth10()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Profile2ChromaSubsampling420BitDepth12(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Profile2ChromaSubsampling420BitDepth12()); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::Media::MediaProperties { constexpr auto operator|(MediaMirroringOptions const left, MediaMirroringOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(MediaMirroringOptions& left, MediaMirroringOptions const right) noexcept { left = left | right; return left; } constexpr auto operator&(MediaMirroringOptions const left, MediaMirroringOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(MediaMirroringOptions& left, MediaMirroringOptions const right) noexcept { left = left & right; return left; } constexpr auto operator~(MediaMirroringOptions const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(MediaMirroringOptions const left, MediaMirroringOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(MediaMirroringOptions& left, MediaMirroringOptions const right) noexcept { left = left ^ right; return left; } inline AudioEncodingProperties::AudioEncodingProperties() : AudioEncodingProperties(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto AudioEncodingProperties::CreateAac(uint32_t sampleRate, uint32_t channelCount, uint32_t bitrate) { return impl::call_factory([&](IAudioEncodingPropertiesStatics const& f) { return f.CreateAac(sampleRate, channelCount, bitrate); }); } inline auto AudioEncodingProperties::CreateAacAdts(uint32_t sampleRate, uint32_t channelCount, uint32_t bitrate) { return impl::call_factory([&](IAudioEncodingPropertiesStatics const& f) { return f.CreateAacAdts(sampleRate, channelCount, bitrate); }); } inline auto AudioEncodingProperties::CreateMp3(uint32_t sampleRate, uint32_t channelCount, uint32_t bitrate) { return impl::call_factory([&](IAudioEncodingPropertiesStatics const& f) { return f.CreateMp3(sampleRate, channelCount, bitrate); }); } inline auto AudioEncodingProperties::CreatePcm(uint32_t sampleRate, uint32_t channelCount, uint32_t bitsPerSample) { return impl::call_factory([&](IAudioEncodingPropertiesStatics const& f) { return f.CreatePcm(sampleRate, channelCount, bitsPerSample); }); } inline auto AudioEncodingProperties::CreateWma(uint32_t sampleRate, uint32_t channelCount, uint32_t bitrate) { return impl::call_factory([&](IAudioEncodingPropertiesStatics const& f) { return f.CreateWma(sampleRate, channelCount, bitrate); }); } inline auto AudioEncodingProperties::CreateAlac(uint32_t sampleRate, uint32_t channelCount, uint32_t bitsPerSample) { return impl::call_factory([&](IAudioEncodingPropertiesStatics2 const& f) { return f.CreateAlac(sampleRate, channelCount, bitsPerSample); }); } inline auto AudioEncodingProperties::CreateFlac(uint32_t sampleRate, uint32_t channelCount, uint32_t bitsPerSample) { return impl::call_factory([&](IAudioEncodingPropertiesStatics2 const& f) { return f.CreateFlac(sampleRate, channelCount, bitsPerSample); }); } inline auto Av1ProfileIds::MainChromaSubsampling420BitDepth8() { return impl::call_factory_cast([](IAv1ProfileIdsStatics const& f) { return f.MainChromaSubsampling420BitDepth8(); }); } inline auto Av1ProfileIds::MainChromaSubsampling420BitDepth10() { return impl::call_factory_cast([](IAv1ProfileIdsStatics const& f) { return f.MainChromaSubsampling420BitDepth10(); }); } inline auto Av1ProfileIds::MainChromaSubsampling400BitDepth8() { return impl::call_factory_cast([](IAv1ProfileIdsStatics const& f) { return f.MainChromaSubsampling400BitDepth8(); }); } inline auto Av1ProfileIds::MainChromaSubsampling400BitDepth10() { return impl::call_factory_cast([](IAv1ProfileIdsStatics const& f) { return f.MainChromaSubsampling400BitDepth10(); }); } inline auto Av1ProfileIds::HighChromaSubsampling444BitDepth8() { return impl::call_factory_cast([](IAv1ProfileIdsStatics const& f) { return f.HighChromaSubsampling444BitDepth8(); }); } inline auto Av1ProfileIds::HighChromaSubsampling444BitDepth10() { return impl::call_factory_cast([](IAv1ProfileIdsStatics const& f) { return f.HighChromaSubsampling444BitDepth10(); }); } inline auto Av1ProfileIds::ProfessionalChromaSubsampling420BitDepth12() { return impl::call_factory_cast([](IAv1ProfileIdsStatics const& f) { return f.ProfessionalChromaSubsampling420BitDepth12(); }); } inline auto Av1ProfileIds::ProfessionalChromaSubsampling400BitDepth12() { return impl::call_factory_cast([](IAv1ProfileIdsStatics const& f) { return f.ProfessionalChromaSubsampling400BitDepth12(); }); } inline auto Av1ProfileIds::ProfessionalChromaSubsampling444BitDepth12() { return impl::call_factory_cast([](IAv1ProfileIdsStatics const& f) { return f.ProfessionalChromaSubsampling444BitDepth12(); }); } inline auto Av1ProfileIds::ProfessionalChromaSubsampling422BitDepth8() { return impl::call_factory_cast([](IAv1ProfileIdsStatics const& f) { return f.ProfessionalChromaSubsampling422BitDepth8(); }); } inline auto Av1ProfileIds::ProfessionalChromaSubsampling422BitDepth10() { return impl::call_factory_cast([](IAv1ProfileIdsStatics const& f) { return f.ProfessionalChromaSubsampling422BitDepth10(); }); } inline auto Av1ProfileIds::ProfessionalChromaSubsampling422BitDepth12() { return impl::call_factory_cast([](IAv1ProfileIdsStatics const& f) { return f.ProfessionalChromaSubsampling422BitDepth12(); }); } inline ContainerEncodingProperties::ContainerEncodingProperties() : ContainerEncodingProperties(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto H264ProfileIds::ConstrainedBaseline() { return impl::call_factory_cast([](IH264ProfileIdsStatics const& f) { return f.ConstrainedBaseline(); }); } inline auto H264ProfileIds::Baseline() { return impl::call_factory_cast([](IH264ProfileIdsStatics const& f) { return f.Baseline(); }); } inline auto H264ProfileIds::Extended() { return impl::call_factory_cast([](IH264ProfileIdsStatics const& f) { return f.Extended(); }); } inline auto H264ProfileIds::Main() { return impl::call_factory_cast([](IH264ProfileIdsStatics const& f) { return f.Main(); }); } inline auto H264ProfileIds::High() { return impl::call_factory_cast([](IH264ProfileIdsStatics const& f) { return f.High(); }); } inline auto H264ProfileIds::High10() { return impl::call_factory_cast([](IH264ProfileIdsStatics const& f) { return f.High10(); }); } inline auto H264ProfileIds::High422() { return impl::call_factory_cast([](IH264ProfileIdsStatics const& f) { return f.High422(); }); } inline auto H264ProfileIds::High444() { return impl::call_factory_cast([](IH264ProfileIdsStatics const& f) { return f.High444(); }); } inline auto H264ProfileIds::StereoHigh() { return impl::call_factory_cast([](IH264ProfileIdsStatics const& f) { return f.StereoHigh(); }); } inline auto H264ProfileIds::MultiviewHigh() { return impl::call_factory_cast([](IH264ProfileIdsStatics const& f) { return f.MultiviewHigh(); }); } inline auto HevcProfileIds::MainChromaSubsampling420BitDepth8() { return impl::call_factory_cast([](IHevcProfileIdsStatics const& f) { return f.MainChromaSubsampling420BitDepth8(); }); } inline auto HevcProfileIds::MainChromaSubsampling420BitDepth10() { return impl::call_factory_cast([](IHevcProfileIdsStatics const& f) { return f.MainChromaSubsampling420BitDepth10(); }); } inline auto HevcProfileIds::MainChromaSubsampling420BitDepth12() { return impl::call_factory_cast([](IHevcProfileIdsStatics const& f) { return f.MainChromaSubsampling420BitDepth12(); }); } inline auto HevcProfileIds::MainChromaSubsampling422BitDepth10() { return impl::call_factory_cast([](IHevcProfileIdsStatics const& f) { return f.MainChromaSubsampling422BitDepth10(); }); } inline auto HevcProfileIds::MainChromaSubsampling422BitDepth12() { return impl::call_factory_cast([](IHevcProfileIdsStatics const& f) { return f.MainChromaSubsampling422BitDepth12(); }); } inline auto HevcProfileIds::MainChromaSubsampling444BitDepth8() { return impl::call_factory_cast([](IHevcProfileIdsStatics const& f) { return f.MainChromaSubsampling444BitDepth8(); }); } inline auto HevcProfileIds::MainChromaSubsampling444BitDepth10() { return impl::call_factory_cast([](IHevcProfileIdsStatics const& f) { return f.MainChromaSubsampling444BitDepth10(); }); } inline auto HevcProfileIds::MainChromaSubsampling444BitDepth12() { return impl::call_factory_cast([](IHevcProfileIdsStatics const& f) { return f.MainChromaSubsampling444BitDepth12(); }); } inline auto HevcProfileIds::MonochromeBitDepth12() { return impl::call_factory_cast([](IHevcProfileIdsStatics const& f) { return f.MonochromeBitDepth12(); }); } inline auto HevcProfileIds::MonochromeBitDepth16() { return impl::call_factory_cast([](IHevcProfileIdsStatics const& f) { return f.MonochromeBitDepth16(); }); } inline auto HevcProfileIds::MainIntraChromaSubsampling420BitDepth8() { return impl::call_factory_cast([](IHevcProfileIdsStatics const& f) { return f.MainIntraChromaSubsampling420BitDepth8(); }); } inline auto HevcProfileIds::MainIntraChromaSubsampling420BitDepth10() { return impl::call_factory_cast([](IHevcProfileIdsStatics const& f) { return f.MainIntraChromaSubsampling420BitDepth10(); }); } inline auto HevcProfileIds::MainIntraChromaSubsampling420BitDepth12() { return impl::call_factory_cast([](IHevcProfileIdsStatics const& f) { return f.MainIntraChromaSubsampling420BitDepth12(); }); } inline auto HevcProfileIds::MainIntraChromaSubsampling422BitDepth10() { return impl::call_factory_cast([](IHevcProfileIdsStatics const& f) { return f.MainIntraChromaSubsampling422BitDepth10(); }); } inline auto HevcProfileIds::MainIntraChromaSubsampling422BitDepth12() { return impl::call_factory_cast([](IHevcProfileIdsStatics const& f) { return f.MainIntraChromaSubsampling422BitDepth12(); }); } inline auto HevcProfileIds::MainIntraChromaSubsampling444BitDepth8() { return impl::call_factory_cast([](IHevcProfileIdsStatics const& f) { return f.MainIntraChromaSubsampling444BitDepth8(); }); } inline auto HevcProfileIds::MainIntraChromaSubsampling444BitDepth10() { return impl::call_factory_cast([](IHevcProfileIdsStatics const& f) { return f.MainIntraChromaSubsampling444BitDepth10(); }); } inline auto HevcProfileIds::MainIntraChromaSubsampling444BitDepth12() { return impl::call_factory_cast([](IHevcProfileIdsStatics const& f) { return f.MainIntraChromaSubsampling444BitDepth12(); }); } inline auto HevcProfileIds::MainIntraChromaSubsampling444BitDepth16() { return impl::call_factory_cast([](IHevcProfileIdsStatics const& f) { return f.MainIntraChromaSubsampling444BitDepth16(); }); } inline auto HevcProfileIds::MainStillChromaSubsampling420BitDepth8() { return impl::call_factory_cast([](IHevcProfileIdsStatics const& f) { return f.MainStillChromaSubsampling420BitDepth8(); }); } inline auto HevcProfileIds::MainStillChromaSubsampling444BitDepth8() { return impl::call_factory_cast([](IHevcProfileIdsStatics const& f) { return f.MainStillChromaSubsampling444BitDepth8(); }); } inline auto HevcProfileIds::MainStillChromaSubsampling444BitDepth16() { return impl::call_factory_cast([](IHevcProfileIdsStatics const& f) { return f.MainStillChromaSubsampling444BitDepth16(); }); } inline ImageEncodingProperties::ImageEncodingProperties() : ImageEncodingProperties(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto ImageEncodingProperties::CreateJpeg() { return impl::call_factory_cast([](IImageEncodingPropertiesStatics const& f) { return f.CreateJpeg(); }); } inline auto ImageEncodingProperties::CreatePng() { return impl::call_factory_cast([](IImageEncodingPropertiesStatics const& f) { return f.CreatePng(); }); } inline auto ImageEncodingProperties::CreateJpegXR() { return impl::call_factory_cast([](IImageEncodingPropertiesStatics const& f) { return f.CreateJpegXR(); }); } inline auto ImageEncodingProperties::CreateUncompressed(winrt::Windows::Media::MediaProperties::MediaPixelFormat const& format) { return impl::call_factory([&](IImageEncodingPropertiesStatics2 const& f) { return f.CreateUncompressed(format); }); } inline auto ImageEncodingProperties::CreateBmp() { return impl::call_factory_cast([](IImageEncodingPropertiesStatics2 const& f) { return f.CreateBmp(); }); } inline auto ImageEncodingProperties::CreateHeif() { return impl::call_factory_cast([](IImageEncodingPropertiesStatics3 const& f) { return f.CreateHeif(); }); } inline MediaEncodingProfile::MediaEncodingProfile() : MediaEncodingProfile(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto MediaEncodingProfile::CreateM4a(winrt::Windows::Media::MediaProperties::AudioEncodingQuality const& quality) { return impl::call_factory([&](IMediaEncodingProfileStatics const& f) { return f.CreateM4a(quality); }); } inline auto MediaEncodingProfile::CreateMp3(winrt::Windows::Media::MediaProperties::AudioEncodingQuality const& quality) { return impl::call_factory([&](IMediaEncodingProfileStatics const& f) { return f.CreateMp3(quality); }); } inline auto MediaEncodingProfile::CreateWma(winrt::Windows::Media::MediaProperties::AudioEncodingQuality const& quality) { return impl::call_factory([&](IMediaEncodingProfileStatics const& f) { return f.CreateWma(quality); }); } inline auto MediaEncodingProfile::CreateMp4(winrt::Windows::Media::MediaProperties::VideoEncodingQuality const& quality) { return impl::call_factory([&](IMediaEncodingProfileStatics const& f) { return f.CreateMp4(quality); }); } inline auto MediaEncodingProfile::CreateWmv(winrt::Windows::Media::MediaProperties::VideoEncodingQuality const& quality) { return impl::call_factory([&](IMediaEncodingProfileStatics const& f) { return f.CreateWmv(quality); }); } inline auto MediaEncodingProfile::CreateFromFileAsync(winrt::Windows::Storage::IStorageFile const& file) { return impl::call_factory([&](IMediaEncodingProfileStatics const& f) { return f.CreateFromFileAsync(file); }); } inline auto MediaEncodingProfile::CreateFromStreamAsync(winrt::Windows::Storage::Streams::IRandomAccessStream const& stream) { return impl::call_factory([&](IMediaEncodingProfileStatics const& f) { return f.CreateFromStreamAsync(stream); }); } inline auto MediaEncodingProfile::CreateWav(winrt::Windows::Media::MediaProperties::AudioEncodingQuality const& quality) { return impl::call_factory([&](IMediaEncodingProfileStatics2 const& f) { return f.CreateWav(quality); }); } inline auto MediaEncodingProfile::CreateAvi(winrt::Windows::Media::MediaProperties::VideoEncodingQuality const& quality) { return impl::call_factory([&](IMediaEncodingProfileStatics2 const& f) { return f.CreateAvi(quality); }); } inline auto MediaEncodingProfile::CreateAlac(winrt::Windows::Media::MediaProperties::AudioEncodingQuality const& quality) { return impl::call_factory([&](IMediaEncodingProfileStatics3 const& f) { return f.CreateAlac(quality); }); } inline auto MediaEncodingProfile::CreateFlac(winrt::Windows::Media::MediaProperties::AudioEncodingQuality const& quality) { return impl::call_factory([&](IMediaEncodingProfileStatics3 const& f) { return f.CreateFlac(quality); }); } inline auto MediaEncodingProfile::CreateHevc(winrt::Windows::Media::MediaProperties::VideoEncodingQuality const& quality) { return impl::call_factory([&](IMediaEncodingProfileStatics3 const& f) { return f.CreateHevc(quality); }); } inline auto MediaEncodingProfile::CreateVp9(winrt::Windows::Media::MediaProperties::VideoEncodingQuality const& quality) { return impl::call_factory([&](IMediaEncodingProfileStatics4 const& f) { return f.CreateVp9(quality); }); } inline auto MediaEncodingProfile::CreateAv1(winrt::Windows::Media::MediaProperties::VideoEncodingQuality const& quality) { return impl::call_factory([&](IMediaEncodingProfileStatics4 const& f) { return f.CreateAv1(quality); }); } inline auto MediaEncodingSubtypes::Aac() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Aac(); }); } inline auto MediaEncodingSubtypes::AacAdts() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.AacAdts(); }); } inline auto MediaEncodingSubtypes::Ac3() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Ac3(); }); } inline auto MediaEncodingSubtypes::AmrNb() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.AmrNb(); }); } inline auto MediaEncodingSubtypes::AmrWb() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.AmrWb(); }); } inline auto MediaEncodingSubtypes::Argb32() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Argb32(); }); } inline auto MediaEncodingSubtypes::Asf() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Asf(); }); } inline auto MediaEncodingSubtypes::Avi() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Avi(); }); } inline auto MediaEncodingSubtypes::Bgra8() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Bgra8(); }); } inline auto MediaEncodingSubtypes::Bmp() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Bmp(); }); } inline auto MediaEncodingSubtypes::Eac3() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Eac3(); }); } inline auto MediaEncodingSubtypes::Float() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Float(); }); } inline auto MediaEncodingSubtypes::Gif() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Gif(); }); } inline auto MediaEncodingSubtypes::H263() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.H263(); }); } inline auto MediaEncodingSubtypes::H264() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.H264(); }); } inline auto MediaEncodingSubtypes::H264Es() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.H264Es(); }); } inline auto MediaEncodingSubtypes::Hevc() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Hevc(); }); } inline auto MediaEncodingSubtypes::HevcEs() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.HevcEs(); }); } inline auto MediaEncodingSubtypes::Iyuv() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Iyuv(); }); } inline auto MediaEncodingSubtypes::Jpeg() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Jpeg(); }); } inline auto MediaEncodingSubtypes::JpegXr() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.JpegXr(); }); } inline auto MediaEncodingSubtypes::Mjpg() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Mjpg(); }); } inline auto MediaEncodingSubtypes::Mpeg() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Mpeg(); }); } inline auto MediaEncodingSubtypes::Mpeg1() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Mpeg1(); }); } inline auto MediaEncodingSubtypes::Mpeg2() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Mpeg2(); }); } inline auto MediaEncodingSubtypes::Mp3() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Mp3(); }); } inline auto MediaEncodingSubtypes::Mpeg4() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Mpeg4(); }); } inline auto MediaEncodingSubtypes::Nv12() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Nv12(); }); } inline auto MediaEncodingSubtypes::Pcm() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Pcm(); }); } inline auto MediaEncodingSubtypes::Png() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Png(); }); } inline auto MediaEncodingSubtypes::Rgb24() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Rgb24(); }); } inline auto MediaEncodingSubtypes::Rgb32() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Rgb32(); }); } inline auto MediaEncodingSubtypes::Tiff() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Tiff(); }); } inline auto MediaEncodingSubtypes::Wave() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Wave(); }); } inline auto MediaEncodingSubtypes::Wma8() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Wma8(); }); } inline auto MediaEncodingSubtypes::Wma9() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Wma9(); }); } inline auto MediaEncodingSubtypes::Wmv3() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Wmv3(); }); } inline auto MediaEncodingSubtypes::Wvc1() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Wvc1(); }); } inline auto MediaEncodingSubtypes::Yuy2() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Yuy2(); }); } inline auto MediaEncodingSubtypes::Yv12() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics const& f) { return f.Yv12(); }); } inline auto MediaEncodingSubtypes::Vp9() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics2 const& f) { return f.Vp9(); }); } inline auto MediaEncodingSubtypes::L8() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics2 const& f) { return f.L8(); }); } inline auto MediaEncodingSubtypes::L16() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics2 const& f) { return f.L16(); }); } inline auto MediaEncodingSubtypes::D16() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics2 const& f) { return f.D16(); }); } inline auto MediaEncodingSubtypes::Alac() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics3 const& f) { return f.Alac(); }); } inline auto MediaEncodingSubtypes::Flac() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics3 const& f) { return f.Flac(); }); } inline auto MediaEncodingSubtypes::P010() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics4 const& f) { return f.P010(); }); } inline auto MediaEncodingSubtypes::Heif() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics5 const& f) { return f.Heif(); }); } inline auto MediaEncodingSubtypes::Pgs() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics6 const& f) { return f.Pgs(); }); } inline auto MediaEncodingSubtypes::Srt() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics6 const& f) { return f.Srt(); }); } inline auto MediaEncodingSubtypes::Ssa() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics6 const& f) { return f.Ssa(); }); } inline auto MediaEncodingSubtypes::VobSub() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics6 const& f) { return f.VobSub(); }); } inline auto MediaEncodingSubtypes::Av1() { return impl::call_factory_cast([](IMediaEncodingSubtypesStatics7 const& f) { return f.Av1(); }); } inline MediaPropertySet::MediaPropertySet() : MediaPropertySet(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto Mpeg2ProfileIds::Simple() { return impl::call_factory_cast([](IMpeg2ProfileIdsStatics const& f) { return f.Simple(); }); } inline auto Mpeg2ProfileIds::Main() { return impl::call_factory_cast([](IMpeg2ProfileIdsStatics const& f) { return f.Main(); }); } inline auto Mpeg2ProfileIds::SignalNoiseRatioScalable() { return impl::call_factory_cast([](IMpeg2ProfileIdsStatics const& f) { return f.SignalNoiseRatioScalable(); }); } inline auto Mpeg2ProfileIds::SpatiallyScalable() { return impl::call_factory_cast([](IMpeg2ProfileIdsStatics const& f) { return f.SpatiallyScalable(); }); } inline auto Mpeg2ProfileIds::High() { return impl::call_factory_cast([](IMpeg2ProfileIdsStatics const& f) { return f.High(); }); } inline TimedMetadataEncodingProperties::TimedMetadataEncodingProperties() : TimedMetadataEncodingProperties(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto TimedMetadataEncodingProperties::CreatePgs() { return impl::call_factory_cast([](ITimedMetadataEncodingPropertiesStatics const& f) { return f.CreatePgs(); }); } inline auto TimedMetadataEncodingProperties::CreateSrt() { return impl::call_factory_cast([](ITimedMetadataEncodingPropertiesStatics const& f) { return f.CreateSrt(); }); } inline auto TimedMetadataEncodingProperties::CreateSsa(array_view formatUserData) { return impl::call_factory([&](ITimedMetadataEncodingPropertiesStatics const& f) { return f.CreateSsa(formatUserData); }); } inline auto TimedMetadataEncodingProperties::CreateVobSub(array_view formatUserData) { return impl::call_factory([&](ITimedMetadataEncodingPropertiesStatics const& f) { return f.CreateVobSub(formatUserData); }); } inline VideoEncodingProperties::VideoEncodingProperties() : VideoEncodingProperties(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto VideoEncodingProperties::CreateH264() { return impl::call_factory_cast([](IVideoEncodingPropertiesStatics const& f) { return f.CreateH264(); }); } inline auto VideoEncodingProperties::CreateMpeg2() { return impl::call_factory_cast([](IVideoEncodingPropertiesStatics const& f) { return f.CreateMpeg2(); }); } inline auto VideoEncodingProperties::CreateUncompressed(param::hstring const& subtype, uint32_t width, uint32_t height) { return impl::call_factory([&](IVideoEncodingPropertiesStatics const& f) { return f.CreateUncompressed(subtype, width, height); }); } inline auto VideoEncodingProperties::CreateHevc() { return impl::call_factory_cast([](IVideoEncodingPropertiesStatics2 const& f) { return f.CreateHevc(); }); } inline auto VideoEncodingProperties::CreateVp9() { return impl::call_factory_cast([](IVideoEncodingPropertiesStatics3 const& f) { return f.CreateVp9(); }); } inline auto VideoEncodingProperties::CreateAv1() { return impl::call_factory_cast([](IVideoEncodingPropertiesStatics3 const& f) { return f.CreateAv1(); }); } inline auto Vp9ProfileIds::Profile0ChromaSubsampling420BitDepth8() { return impl::call_factory_cast([](IVp9ProfileIdsStatics const& f) { return f.Profile0ChromaSubsampling420BitDepth8(); }); } inline auto Vp9ProfileIds::Profile2ChromaSubsampling420BitDepth10() { return impl::call_factory_cast([](IVp9ProfileIdsStatics const& f) { return f.Profile2ChromaSubsampling420BitDepth10(); }); } inline auto Vp9ProfileIds::Profile2ChromaSubsampling420BitDepth12() { return impl::call_factory_cast([](IVp9ProfileIdsStatics const& f) { return f.Profile2ChromaSubsampling420BitDepth12(); }); } } namespace std { #ifndef WINRT_LEAN_AND_MEAN template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } #endif