// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_Media_Effects_H #define WINRT_Windows_Media_Effects_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.Foundation.Numerics.2.h" #include "winrt/impl/Windows.Graphics.DirectX.Direct3D11.2.h" #include "winrt/impl/Windows.Media.2.h" #include "winrt/impl/Windows.Media.Capture.2.h" #include "winrt/impl/Windows.Media.Editing.2.h" #include "winrt/impl/Windows.Media.MediaProperties.2.h" #include "winrt/impl/Windows.Media.Playback.2.h" #include "winrt/impl/Windows.Media.Render.2.h" #include "winrt/impl/Windows.Media.Transcoding.2.h" #include "winrt/impl/Windows.Storage.Streams.2.h" #include "winrt/impl/Windows.UI.2.h" #include "winrt/impl/Windows.Media.Effects.2.h" namespace winrt::impl { template auto consume_Windows_Media_Effects_IAcousticEchoCancellationConfiguration::SetEchoCancellationRenderEndpoint(param::hstring const& deviceId) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IAcousticEchoCancellationConfiguration)->SetEchoCancellationRenderEndpoint(*(void**)(&deviceId))); } template auto consume_Windows_Media_Effects_IAudioCaptureEffectsManager::AudioCaptureEffectsChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IAudioCaptureEffectsManager)->add_AudioCaptureEffectsChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_Effects_IAudioCaptureEffectsManager::AudioCaptureEffectsChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, AudioCaptureEffectsChanged(handler)); } template auto consume_Windows_Media_Effects_IAudioCaptureEffectsManager::AudioCaptureEffectsChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IAudioCaptureEffectsManager)->remove_AudioCaptureEffectsChanged(impl::bind_in(token)); } template auto consume_Windows_Media_Effects_IAudioCaptureEffectsManager::GetAudioCaptureEffects() const { void* effects{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IAudioCaptureEffectsManager)->GetAudioCaptureEffects(&effects)); return winrt::Windows::Foundation::Collections::IVectorView{ effects, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IAudioEffect::AudioEffectType() const { winrt::Windows::Media::Effects::AudioEffectType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IAudioEffect)->get_AudioEffectType(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Effects_IAudioEffect2::AcousticEchoCancellationConfiguration() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IAudioEffect2)->get_AcousticEchoCancellationConfiguration(&value)); return winrt::Windows::Media::Effects::AcousticEchoCancellationConfiguration{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IAudioEffect2::CanSetState() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IAudioEffect2)->get_CanSetState(&value)); return value; } template auto consume_Windows_Media_Effects_IAudioEffect2::State() const { winrt::Windows::Media::Effects::AudioEffectState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IAudioEffect2)->get_State(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Effects_IAudioEffect2::SetState(winrt::Windows::Media::Effects::AudioEffectState const& newState) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IAudioEffect2)->SetState(static_cast(newState))); } template auto consume_Windows_Media_Effects_IAudioEffectDefinition::ActivatableClassId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IAudioEffectDefinition)->get_ActivatableClassId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IAudioEffectDefinition::Properties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IAudioEffectDefinition)->get_Properties(&value)); return winrt::Windows::Foundation::Collections::IPropertySet{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IAudioEffectDefinitionFactory::Create(param::hstring const& activatableClassId) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IAudioEffectDefinitionFactory)->Create(*(void**)(&activatableClassId), &value)); return winrt::Windows::Media::Effects::AudioEffectDefinition{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IAudioEffectDefinitionFactory::CreateWithProperties(param::hstring const& activatableClassId, winrt::Windows::Foundation::Collections::IPropertySet const& props) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IAudioEffectDefinitionFactory)->CreateWithProperties(*(void**)(&activatableClassId), *(void**)(&props), &value)); return winrt::Windows::Media::Effects::AudioEffectDefinition{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IAudioEffectsManagerStatics::CreateAudioRenderEffectsManager(param::hstring const& deviceId, winrt::Windows::Media::Render::AudioRenderCategory const& category) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IAudioEffectsManagerStatics)->CreateAudioRenderEffectsManager(*(void**)(&deviceId), static_cast(category), &value)); return winrt::Windows::Media::Effects::AudioRenderEffectsManager{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IAudioEffectsManagerStatics::CreateAudioRenderEffectsManager(param::hstring const& deviceId, winrt::Windows::Media::Render::AudioRenderCategory const& category, winrt::Windows::Media::AudioProcessing const& mode) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IAudioEffectsManagerStatics)->CreateAudioRenderEffectsManagerWithMode(*(void**)(&deviceId), static_cast(category), static_cast(mode), &value)); return winrt::Windows::Media::Effects::AudioRenderEffectsManager{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IAudioEffectsManagerStatics::CreateAudioCaptureEffectsManager(param::hstring const& deviceId, winrt::Windows::Media::Capture::MediaCategory const& category) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IAudioEffectsManagerStatics)->CreateAudioCaptureEffectsManager(*(void**)(&deviceId), static_cast(category), &value)); return winrt::Windows::Media::Effects::AudioCaptureEffectsManager{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IAudioEffectsManagerStatics::CreateAudioCaptureEffectsManager(param::hstring const& deviceId, winrt::Windows::Media::Capture::MediaCategory const& category, winrt::Windows::Media::AudioProcessing const& mode) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IAudioEffectsManagerStatics)->CreateAudioCaptureEffectsManagerWithMode(*(void**)(&deviceId), static_cast(category), static_cast(mode), &value)); return winrt::Windows::Media::Effects::AudioCaptureEffectsManager{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IAudioRenderEffectsManager::AudioRenderEffectsChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IAudioRenderEffectsManager)->add_AudioRenderEffectsChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_Effects_IAudioRenderEffectsManager::AudioRenderEffectsChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, AudioRenderEffectsChanged(handler)); } template auto consume_Windows_Media_Effects_IAudioRenderEffectsManager::AudioRenderEffectsChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IAudioRenderEffectsManager)->remove_AudioRenderEffectsChanged(impl::bind_in(token)); } template auto consume_Windows_Media_Effects_IAudioRenderEffectsManager::GetAudioRenderEffects() const { void* effects{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IAudioRenderEffectsManager)->GetAudioRenderEffects(&effects)); return winrt::Windows::Foundation::Collections::IVectorView{ effects, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IAudioRenderEffectsManager2::EffectsProviderThumbnail() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IAudioRenderEffectsManager2)->get_EffectsProviderThumbnail(&value)); return winrt::Windows::Storage::Streams::IRandomAccessStreamWithContentType{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IAudioRenderEffectsManager2::EffectsProviderSettingsLabel() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IAudioRenderEffectsManager2)->get_EffectsProviderSettingsLabel(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IAudioRenderEffectsManager2::ShowSettingsUI() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IAudioRenderEffectsManager2)->ShowSettingsUI()); } template auto consume_Windows_Media_Effects_IBasicAudioEffect::UseInputFrameForOutput() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IBasicAudioEffect)->get_UseInputFrameForOutput(&value)); return value; } template auto consume_Windows_Media_Effects_IBasicAudioEffect::SupportedEncodingProperties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IBasicAudioEffect)->get_SupportedEncodingProperties(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IBasicAudioEffect::SetEncodingProperties(winrt::Windows::Media::MediaProperties::AudioEncodingProperties const& encodingProperties) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IBasicAudioEffect)->SetEncodingProperties(*(void**)(&encodingProperties))); } template auto consume_Windows_Media_Effects_IBasicAudioEffect::ProcessFrame(winrt::Windows::Media::Effects::ProcessAudioFrameContext const& context) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IBasicAudioEffect)->ProcessFrame(*(void**)(&context))); } template auto consume_Windows_Media_Effects_IBasicAudioEffect::Close(winrt::Windows::Media::Effects::MediaEffectClosedReason const& reason) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IBasicAudioEffect)->Close(static_cast(reason))); } template auto consume_Windows_Media_Effects_IBasicAudioEffect::DiscardQueuedFrames() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IBasicAudioEffect)->DiscardQueuedFrames()); } template auto consume_Windows_Media_Effects_IBasicVideoEffect::IsReadOnly() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IBasicVideoEffect)->get_IsReadOnly(&value)); return value; } template auto consume_Windows_Media_Effects_IBasicVideoEffect::SupportedMemoryTypes() const { winrt::Windows::Media::Effects::MediaMemoryTypes value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IBasicVideoEffect)->get_SupportedMemoryTypes(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Effects_IBasicVideoEffect::TimeIndependent() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IBasicVideoEffect)->get_TimeIndependent(&value)); return value; } template auto consume_Windows_Media_Effects_IBasicVideoEffect::SupportedEncodingProperties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IBasicVideoEffect)->get_SupportedEncodingProperties(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IBasicVideoEffect::SetEncodingProperties(winrt::Windows::Media::MediaProperties::VideoEncodingProperties const& encodingProperties, winrt::Windows::Graphics::DirectX::Direct3D11::IDirect3DDevice const& device) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IBasicVideoEffect)->SetEncodingProperties(*(void**)(&encodingProperties), *(void**)(&device))); } template auto consume_Windows_Media_Effects_IBasicVideoEffect::ProcessFrame(winrt::Windows::Media::Effects::ProcessVideoFrameContext const& context) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IBasicVideoEffect)->ProcessFrame(*(void**)(&context))); } template auto consume_Windows_Media_Effects_IBasicVideoEffect::Close(winrt::Windows::Media::Effects::MediaEffectClosedReason const& reason) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IBasicVideoEffect)->Close(static_cast(reason))); } template auto consume_Windows_Media_Effects_IBasicVideoEffect::DiscardQueuedFrames() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IBasicVideoEffect)->DiscardQueuedFrames()); } template auto consume_Windows_Media_Effects_ICompositeVideoFrameContext::SurfacesToOverlay() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::ICompositeVideoFrameContext)->get_SurfacesToOverlay(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_ICompositeVideoFrameContext::BackgroundFrame() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::ICompositeVideoFrameContext)->get_BackgroundFrame(&value)); return winrt::Windows::Media::VideoFrame{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_ICompositeVideoFrameContext::OutputFrame() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::ICompositeVideoFrameContext)->get_OutputFrame(&value)); return winrt::Windows::Media::VideoFrame{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_ICompositeVideoFrameContext::GetOverlayForSurface(winrt::Windows::Graphics::DirectX::Direct3D11::IDirect3DSurface const& surfaceToOverlay) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::ICompositeVideoFrameContext)->GetOverlayForSurface(*(void**)(&surfaceToOverlay), &value)); return winrt::Windows::Media::Editing::MediaOverlay{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IProcessAudioFrameContext::InputFrame() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IProcessAudioFrameContext)->get_InputFrame(&value)); return winrt::Windows::Media::AudioFrame{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IProcessAudioFrameContext::OutputFrame() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IProcessAudioFrameContext)->get_OutputFrame(&value)); return winrt::Windows::Media::AudioFrame{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IProcessVideoFrameContext::InputFrame() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IProcessVideoFrameContext)->get_InputFrame(&value)); return winrt::Windows::Media::VideoFrame{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IProcessVideoFrameContext::OutputFrame() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IProcessVideoFrameContext)->get_OutputFrame(&value)); return winrt::Windows::Media::VideoFrame{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IVideoCompositor::TimeIndependent() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoCompositor)->get_TimeIndependent(&value)); return value; } template auto consume_Windows_Media_Effects_IVideoCompositor::SetEncodingProperties(winrt::Windows::Media::MediaProperties::VideoEncodingProperties const& backgroundProperties, winrt::Windows::Graphics::DirectX::Direct3D11::IDirect3DDevice const& device) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoCompositor)->SetEncodingProperties(*(void**)(&backgroundProperties), *(void**)(&device))); } template auto consume_Windows_Media_Effects_IVideoCompositor::CompositeFrame(winrt::Windows::Media::Effects::CompositeVideoFrameContext const& context) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoCompositor)->CompositeFrame(*(void**)(&context))); } template auto consume_Windows_Media_Effects_IVideoCompositor::Close(winrt::Windows::Media::Effects::MediaEffectClosedReason const& reason) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoCompositor)->Close(static_cast(reason))); } template auto consume_Windows_Media_Effects_IVideoCompositor::DiscardQueuedFrames() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoCompositor)->DiscardQueuedFrames()); } template auto consume_Windows_Media_Effects_IVideoCompositorDefinition::ActivatableClassId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoCompositorDefinition)->get_ActivatableClassId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IVideoCompositorDefinition::Properties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoCompositorDefinition)->get_Properties(&value)); return winrt::Windows::Foundation::Collections::IPropertySet{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IVideoCompositorDefinitionFactory::Create(param::hstring const& activatableClassId) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoCompositorDefinitionFactory)->Create(*(void**)(&activatableClassId), &value)); return winrt::Windows::Media::Effects::VideoCompositorDefinition{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IVideoCompositorDefinitionFactory::CreateWithProperties(param::hstring const& activatableClassId, winrt::Windows::Foundation::Collections::IPropertySet const& props) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoCompositorDefinitionFactory)->CreateWithProperties(*(void**)(&activatableClassId), *(void**)(&props), &value)); return winrt::Windows::Media::Effects::VideoCompositorDefinition{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IVideoEffectDefinition::ActivatableClassId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoEffectDefinition)->get_ActivatableClassId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IVideoEffectDefinition::Properties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoEffectDefinition)->get_Properties(&value)); return winrt::Windows::Foundation::Collections::IPropertySet{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IVideoEffectDefinitionFactory::Create(param::hstring const& activatableClassId) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoEffectDefinitionFactory)->Create(*(void**)(&activatableClassId), &value)); return winrt::Windows::Media::Effects::VideoEffectDefinition{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IVideoEffectDefinitionFactory::CreateWithProperties(param::hstring const& activatableClassId, winrt::Windows::Foundation::Collections::IPropertySet const& props) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoEffectDefinitionFactory)->CreateWithProperties(*(void**)(&activatableClassId), *(void**)(&props), &value)); return winrt::Windows::Media::Effects::VideoEffectDefinition{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IVideoTransformEffectDefinition::PaddingColor() const { winrt::Windows::UI::Color value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoTransformEffectDefinition)->get_PaddingColor(put_abi(value))); return value; } template auto consume_Windows_Media_Effects_IVideoTransformEffectDefinition::PaddingColor(winrt::Windows::UI::Color const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoTransformEffectDefinition)->put_PaddingColor(impl::bind_in(value))); } template auto consume_Windows_Media_Effects_IVideoTransformEffectDefinition::OutputSize() const { winrt::Windows::Foundation::Size value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoTransformEffectDefinition)->get_OutputSize(put_abi(value))); return value; } template auto consume_Windows_Media_Effects_IVideoTransformEffectDefinition::OutputSize(winrt::Windows::Foundation::Size const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoTransformEffectDefinition)->put_OutputSize(impl::bind_in(value))); } template auto consume_Windows_Media_Effects_IVideoTransformEffectDefinition::CropRectangle() const { winrt::Windows::Foundation::Rect value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoTransformEffectDefinition)->get_CropRectangle(put_abi(value))); return value; } template auto consume_Windows_Media_Effects_IVideoTransformEffectDefinition::CropRectangle(winrt::Windows::Foundation::Rect const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoTransformEffectDefinition)->put_CropRectangle(impl::bind_in(value))); } template auto consume_Windows_Media_Effects_IVideoTransformEffectDefinition::Rotation() const { winrt::Windows::Media::MediaProperties::MediaRotation value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoTransformEffectDefinition)->get_Rotation(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Effects_IVideoTransformEffectDefinition::Rotation(winrt::Windows::Media::MediaProperties::MediaRotation const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoTransformEffectDefinition)->put_Rotation(static_cast(value))); } template auto consume_Windows_Media_Effects_IVideoTransformEffectDefinition::Mirror() const { winrt::Windows::Media::MediaProperties::MediaMirroringOptions value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoTransformEffectDefinition)->get_Mirror(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Effects_IVideoTransformEffectDefinition::Mirror(winrt::Windows::Media::MediaProperties::MediaMirroringOptions const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoTransformEffectDefinition)->put_Mirror(static_cast(value))); } template auto consume_Windows_Media_Effects_IVideoTransformEffectDefinition::ProcessingAlgorithm(winrt::Windows::Media::Transcoding::MediaVideoProcessingAlgorithm const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoTransformEffectDefinition)->put_ProcessingAlgorithm(static_cast(value))); } template auto consume_Windows_Media_Effects_IVideoTransformEffectDefinition::ProcessingAlgorithm() const { winrt::Windows::Media::Transcoding::MediaVideoProcessingAlgorithm value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoTransformEffectDefinition)->get_ProcessingAlgorithm(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Effects_IVideoTransformEffectDefinition2::SphericalProjection() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoTransformEffectDefinition2)->get_SphericalProjection(&value)); return winrt::Windows::Media::Effects::VideoTransformSphericalProjection{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Effects_IVideoTransformSphericalProjection::IsEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoTransformSphericalProjection)->get_IsEnabled(&value)); return value; } template auto consume_Windows_Media_Effects_IVideoTransformSphericalProjection::IsEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoTransformSphericalProjection)->put_IsEnabled(value)); } template auto consume_Windows_Media_Effects_IVideoTransformSphericalProjection::FrameFormat() const { winrt::Windows::Media::MediaProperties::SphericalVideoFrameFormat value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoTransformSphericalProjection)->get_FrameFormat(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Effects_IVideoTransformSphericalProjection::FrameFormat(winrt::Windows::Media::MediaProperties::SphericalVideoFrameFormat const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoTransformSphericalProjection)->put_FrameFormat(static_cast(value))); } template auto consume_Windows_Media_Effects_IVideoTransformSphericalProjection::ProjectionMode() const { winrt::Windows::Media::Playback::SphericalVideoProjectionMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoTransformSphericalProjection)->get_ProjectionMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Effects_IVideoTransformSphericalProjection::ProjectionMode(winrt::Windows::Media::Playback::SphericalVideoProjectionMode const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoTransformSphericalProjection)->put_ProjectionMode(static_cast(value))); } template auto consume_Windows_Media_Effects_IVideoTransformSphericalProjection::HorizontalFieldOfViewInDegrees() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoTransformSphericalProjection)->get_HorizontalFieldOfViewInDegrees(&value)); return value; } template auto consume_Windows_Media_Effects_IVideoTransformSphericalProjection::HorizontalFieldOfViewInDegrees(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoTransformSphericalProjection)->put_HorizontalFieldOfViewInDegrees(value)); } template auto consume_Windows_Media_Effects_IVideoTransformSphericalProjection::ViewOrientation() const { winrt::Windows::Foundation::Numerics::quaternion value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoTransformSphericalProjection)->get_ViewOrientation(put_abi(value))); return value; } template auto consume_Windows_Media_Effects_IVideoTransformSphericalProjection::ViewOrientation(winrt::Windows::Foundation::Numerics::quaternion const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Effects::IVideoTransformSphericalProjection)->put_ViewOrientation(impl::bind_in(value))); } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetEchoCancellationRenderEndpoint(void* deviceId) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetEchoCancellationRenderEndpoint(*reinterpret_cast(&deviceId)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_AudioCaptureEffectsChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().AudioCaptureEffectsChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_AudioCaptureEffectsChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().AudioCaptureEffectsChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall GetAudioCaptureEffects(void** effects) noexcept final try { clear_abi(effects); typename D::abi_guard guard(this->shim()); *effects = detach_from>(this->shim().GetAudioCaptureEffects()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AudioEffectType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AudioEffectType()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AcousticEchoCancellationConfiguration(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AcousticEchoCancellationConfiguration()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanSetState(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanSetState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_State(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().State()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetState(int32_t newState) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetState(*reinterpret_cast(&newState)); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall get_ActivatableClassId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ActivatableClassId()); return 0; } catch (...) { return to_hresult(); } 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(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* activatableClassId, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Create(*reinterpret_cast(&activatableClassId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateWithProperties(void* activatableClassId, void* props, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateWithProperties(*reinterpret_cast(&activatableClassId), *reinterpret_cast(&props))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateAudioRenderEffectsManager(void* deviceId, int32_t category, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateAudioRenderEffectsManager(*reinterpret_cast(&deviceId), *reinterpret_cast(&category))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateAudioRenderEffectsManagerWithMode(void* deviceId, int32_t category, int32_t mode, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateAudioRenderEffectsManager(*reinterpret_cast(&deviceId), *reinterpret_cast(&category), *reinterpret_cast(&mode))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateAudioCaptureEffectsManager(void* deviceId, int32_t category, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateAudioCaptureEffectsManager(*reinterpret_cast(&deviceId), *reinterpret_cast(&category))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateAudioCaptureEffectsManagerWithMode(void* deviceId, int32_t category, int32_t mode, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateAudioCaptureEffectsManager(*reinterpret_cast(&deviceId), *reinterpret_cast(&category), *reinterpret_cast(&mode))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_AudioRenderEffectsChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().AudioRenderEffectsChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_AudioRenderEffectsChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().AudioRenderEffectsChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall GetAudioRenderEffects(void** effects) noexcept final try { clear_abi(effects); typename D::abi_guard guard(this->shim()); *effects = detach_from>(this->shim().GetAudioRenderEffects()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_EffectsProviderThumbnail(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EffectsProviderThumbnail()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_EffectsProviderSettingsLabel(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EffectsProviderSettingsLabel()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowSettingsUI() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ShowSettingsUI(); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall get_UseInputFrameForOutput(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UseInputFrameForOutput()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SupportedEncodingProperties(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().SupportedEncodingProperties()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetEncodingProperties(void* encodingProperties) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetEncodingProperties(*reinterpret_cast(&encodingProperties)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ProcessFrame(void* context) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ProcessFrame(*reinterpret_cast(&context)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Close(int32_t reason) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Close(*reinterpret_cast(&reason)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DiscardQueuedFrames() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DiscardQueuedFrames(); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_IsReadOnly(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsReadOnly()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SupportedMemoryTypes(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SupportedMemoryTypes()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TimeIndependent(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TimeIndependent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SupportedEncodingProperties(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().SupportedEncodingProperties()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetEncodingProperties(void* encodingProperties, void* device) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetEncodingProperties(*reinterpret_cast(&encodingProperties), *reinterpret_cast(&device)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ProcessFrame(void* context) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ProcessFrame(*reinterpret_cast(&context)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Close(int32_t reason) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Close(*reinterpret_cast(&reason)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DiscardQueuedFrames() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DiscardQueuedFrames(); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SurfacesToOverlay(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().SurfacesToOverlay()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BackgroundFrame(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BackgroundFrame()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OutputFrame(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OutputFrame()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetOverlayForSurface(void* surfaceToOverlay, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetOverlayForSurface(*reinterpret_cast(&surfaceToOverlay))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_InputFrame(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InputFrame()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OutputFrame(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OutputFrame()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_InputFrame(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InputFrame()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OutputFrame(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OutputFrame()); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall get_TimeIndependent(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TimeIndependent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetEncodingProperties(void* backgroundProperties, void* device) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetEncodingProperties(*reinterpret_cast(&backgroundProperties), *reinterpret_cast(&device)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CompositeFrame(void* context) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CompositeFrame(*reinterpret_cast(&context)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Close(int32_t reason) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Close(*reinterpret_cast(&reason)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DiscardQueuedFrames() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DiscardQueuedFrames(); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_ActivatableClassId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ActivatableClassId()); return 0; } catch (...) { return to_hresult(); } 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(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* activatableClassId, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Create(*reinterpret_cast(&activatableClassId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateWithProperties(void* activatableClassId, void* props, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateWithProperties(*reinterpret_cast(&activatableClassId), *reinterpret_cast(&props))); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall get_ActivatableClassId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ActivatableClassId()); return 0; } catch (...) { return to_hresult(); } 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(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* activatableClassId, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Create(*reinterpret_cast(&activatableClassId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateWithProperties(void* activatableClassId, void* props, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateWithProperties(*reinterpret_cast(&activatableClassId), *reinterpret_cast(&props))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PaddingColor(struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PaddingColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PaddingColor(struct struct_Windows_UI_Color value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PaddingColor(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OutputSize(winrt::Windows::Foundation::Size* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OutputSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_OutputSize(winrt::Windows::Foundation::Size value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OutputSize(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CropRectangle(winrt::Windows::Foundation::Rect* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CropRectangle()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CropRectangle(winrt::Windows::Foundation::Rect value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CropRectangle(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Rotation(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Rotation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Rotation(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Rotation(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Mirror(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Mirror()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Mirror(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Mirror(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ProcessingAlgorithm(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ProcessingAlgorithm(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProcessingAlgorithm(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProcessingAlgorithm()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SphericalProjection(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SphericalProjection()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FrameFormat(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FrameFormat()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_FrameFormat(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().FrameFormat(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProjectionMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProjectionMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ProjectionMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ProjectionMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HorizontalFieldOfViewInDegrees(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HorizontalFieldOfViewInDegrees()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_HorizontalFieldOfViewInDegrees(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().HorizontalFieldOfViewInDegrees(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ViewOrientation(winrt::Windows::Foundation::Numerics::quaternion* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ViewOrientation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ViewOrientation(winrt::Windows::Foundation::Numerics::quaternion value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ViewOrientation(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::Media::Effects { inline AudioEffectDefinition::AudioEffectDefinition(param::hstring const& activatableClassId) : AudioEffectDefinition(impl::call_factory([&](IAudioEffectDefinitionFactory const& f) { return f.Create(activatableClassId); })) { } inline AudioEffectDefinition::AudioEffectDefinition(param::hstring const& activatableClassId, winrt::Windows::Foundation::Collections::IPropertySet const& props) : AudioEffectDefinition(impl::call_factory([&](IAudioEffectDefinitionFactory const& f) { return f.CreateWithProperties(activatableClassId, props); })) { } inline auto AudioEffectsManager::CreateAudioRenderEffectsManager(param::hstring const& deviceId, winrt::Windows::Media::Render::AudioRenderCategory const& category) { return impl::call_factory([&](IAudioEffectsManagerStatics const& f) { return f.CreateAudioRenderEffectsManager(deviceId, category); }); } inline auto AudioEffectsManager::CreateAudioRenderEffectsManager(param::hstring const& deviceId, winrt::Windows::Media::Render::AudioRenderCategory const& category, winrt::Windows::Media::AudioProcessing const& mode) { return impl::call_factory([&](IAudioEffectsManagerStatics const& f) { return f.CreateAudioRenderEffectsManager(deviceId, category, mode); }); } inline auto AudioEffectsManager::CreateAudioCaptureEffectsManager(param::hstring const& deviceId, winrt::Windows::Media::Capture::MediaCategory const& category) { return impl::call_factory([&](IAudioEffectsManagerStatics const& f) { return f.CreateAudioCaptureEffectsManager(deviceId, category); }); } inline auto AudioEffectsManager::CreateAudioCaptureEffectsManager(param::hstring const& deviceId, winrt::Windows::Media::Capture::MediaCategory const& category, winrt::Windows::Media::AudioProcessing const& mode) { return impl::call_factory([&](IAudioEffectsManagerStatics const& f) { return f.CreateAudioCaptureEffectsManager(deviceId, category, mode); }); } inline VideoCompositorDefinition::VideoCompositorDefinition(param::hstring const& activatableClassId) : VideoCompositorDefinition(impl::call_factory([&](IVideoCompositorDefinitionFactory const& f) { return f.Create(activatableClassId); })) { } inline VideoCompositorDefinition::VideoCompositorDefinition(param::hstring const& activatableClassId, winrt::Windows::Foundation::Collections::IPropertySet const& props) : VideoCompositorDefinition(impl::call_factory([&](IVideoCompositorDefinitionFactory const& f) { return f.CreateWithProperties(activatableClassId, props); })) { } inline VideoEffectDefinition::VideoEffectDefinition(param::hstring const& activatableClassId) : VideoEffectDefinition(impl::call_factory([&](IVideoEffectDefinitionFactory const& f) { return f.Create(activatableClassId); })) { } inline VideoEffectDefinition::VideoEffectDefinition(param::hstring const& activatableClassId, winrt::Windows::Foundation::Collections::IPropertySet const& props) : VideoEffectDefinition(impl::call_factory([&](IVideoEffectDefinitionFactory const& f) { return f.CreateWithProperties(activatableClassId, props); })) { } inline VideoTransformEffectDefinition::VideoTransformEffectDefinition() : VideoTransformEffectDefinition(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } } 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 {}; #endif #ifdef __cpp_lib_format #endif } #endif