// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_Media_Devices_Core_H #define WINRT_Windows_Media_Devices_Core_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.Devices.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.Media.MediaProperties.2.h" #include "winrt/impl/Windows.Perception.Spatial.2.h" #include "winrt/impl/Windows.Media.Devices.Core.2.h" namespace winrt::impl { template auto consume_Windows_Media_Devices_Core_ICameraIntrinsics::FocalLength() const { winrt::Windows::Foundation::Numerics::float2 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::ICameraIntrinsics)->get_FocalLength(put_abi(value))); return value; } template auto consume_Windows_Media_Devices_Core_ICameraIntrinsics::PrincipalPoint() const { winrt::Windows::Foundation::Numerics::float2 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::ICameraIntrinsics)->get_PrincipalPoint(put_abi(value))); return value; } template auto consume_Windows_Media_Devices_Core_ICameraIntrinsics::RadialDistortion() const { winrt::Windows::Foundation::Numerics::float3 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::ICameraIntrinsics)->get_RadialDistortion(put_abi(value))); return value; } template auto consume_Windows_Media_Devices_Core_ICameraIntrinsics::TangentialDistortion() const { winrt::Windows::Foundation::Numerics::float2 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::ICameraIntrinsics)->get_TangentialDistortion(put_abi(value))); return value; } template auto consume_Windows_Media_Devices_Core_ICameraIntrinsics::ImageWidth() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::ICameraIntrinsics)->get_ImageWidth(&value)); return value; } template auto consume_Windows_Media_Devices_Core_ICameraIntrinsics::ImageHeight() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::ICameraIntrinsics)->get_ImageHeight(&value)); return value; } template auto consume_Windows_Media_Devices_Core_ICameraIntrinsics::ProjectOntoFrame(winrt::Windows::Foundation::Numerics::float3 const& coordinate) const { winrt::Windows::Foundation::Point result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::ICameraIntrinsics)->ProjectOntoFrame(impl::bind_in(coordinate), put_abi(result))); return result; } template auto consume_Windows_Media_Devices_Core_ICameraIntrinsics::UnprojectAtUnitDepth(winrt::Windows::Foundation::Point const& pixelCoordinate) const { winrt::Windows::Foundation::Numerics::float2 result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::ICameraIntrinsics)->UnprojectAtUnitDepth(impl::bind_in(pixelCoordinate), put_abi(result))); return result; } template auto consume_Windows_Media_Devices_Core_ICameraIntrinsics::ProjectManyOntoFrame(array_view coordinates, array_view results) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::ICameraIntrinsics)->ProjectManyOntoFrame(coordinates.size(), get_abi(coordinates), results.size(), put_abi(results))); } template auto consume_Windows_Media_Devices_Core_ICameraIntrinsics::UnprojectPixelsAtUnitDepth(array_view pixelCoordinates, array_view results) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::ICameraIntrinsics)->UnprojectPixelsAtUnitDepth(pixelCoordinates.size(), get_abi(pixelCoordinates), results.size(), put_abi(results))); } template auto consume_Windows_Media_Devices_Core_ICameraIntrinsics2::UndistortedProjectionTransform() const { winrt::Windows::Foundation::Numerics::float4x4 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::ICameraIntrinsics2)->get_UndistortedProjectionTransform(put_abi(value))); return value; } template auto consume_Windows_Media_Devices_Core_ICameraIntrinsics2::DistortPoint(winrt::Windows::Foundation::Point const& input) const { winrt::Windows::Foundation::Point result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::ICameraIntrinsics2)->DistortPoint(impl::bind_in(input), put_abi(result))); return result; } template auto consume_Windows_Media_Devices_Core_ICameraIntrinsics2::DistortPoints(array_view inputs, array_view results) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::ICameraIntrinsics2)->DistortPoints(inputs.size(), get_abi(inputs), results.size(), put_abi(results))); } template auto consume_Windows_Media_Devices_Core_ICameraIntrinsics2::UndistortPoint(winrt::Windows::Foundation::Point const& input) const { winrt::Windows::Foundation::Point result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::ICameraIntrinsics2)->UndistortPoint(impl::bind_in(input), put_abi(result))); return result; } template auto consume_Windows_Media_Devices_Core_ICameraIntrinsics2::UndistortPoints(array_view inputs, array_view results) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::ICameraIntrinsics2)->UndistortPoints(inputs.size(), get_abi(inputs), results.size(), put_abi(results))); } template auto consume_Windows_Media_Devices_Core_ICameraIntrinsicsFactory::Create(winrt::Windows::Foundation::Numerics::float2 const& focalLength, winrt::Windows::Foundation::Numerics::float2 const& principalPoint, winrt::Windows::Foundation::Numerics::float3 const& radialDistortion, winrt::Windows::Foundation::Numerics::float2 const& tangentialDistortion, uint32_t imageWidth, uint32_t imageHeight) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::ICameraIntrinsicsFactory)->Create(impl::bind_in(focalLength), impl::bind_in(principalPoint), impl::bind_in(radialDistortion), impl::bind_in(tangentialDistortion), imageWidth, imageHeight, &result)); return winrt::Windows::Media::Devices::Core::CameraIntrinsics{ result, take_ownership_from_abi }; } template auto consume_Windows_Media_Devices_Core_IDepthCorrelatedCoordinateMapper::UnprojectPoint(winrt::Windows::Foundation::Point const& sourcePoint, winrt::Windows::Perception::Spatial::SpatialCoordinateSystem const& targetCoordinateSystem) const { winrt::Windows::Foundation::Numerics::float3 result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IDepthCorrelatedCoordinateMapper)->UnprojectPoint(impl::bind_in(sourcePoint), *(void**)(&targetCoordinateSystem), put_abi(result))); return result; } template auto consume_Windows_Media_Devices_Core_IDepthCorrelatedCoordinateMapper::UnprojectPoints(array_view sourcePoints, winrt::Windows::Perception::Spatial::SpatialCoordinateSystem const& targetCoordinateSystem, array_view results) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IDepthCorrelatedCoordinateMapper)->UnprojectPoints(sourcePoints.size(), get_abi(sourcePoints), *(void**)(&targetCoordinateSystem), results.size(), put_abi(results))); } template auto consume_Windows_Media_Devices_Core_IDepthCorrelatedCoordinateMapper::MapPoint(winrt::Windows::Foundation::Point const& sourcePoint, winrt::Windows::Perception::Spatial::SpatialCoordinateSystem const& targetCoordinateSystem, winrt::Windows::Media::Devices::Core::CameraIntrinsics const& targetCameraIntrinsics) const { winrt::Windows::Foundation::Point result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IDepthCorrelatedCoordinateMapper)->MapPoint(impl::bind_in(sourcePoint), *(void**)(&targetCoordinateSystem), *(void**)(&targetCameraIntrinsics), put_abi(result))); return result; } template auto consume_Windows_Media_Devices_Core_IDepthCorrelatedCoordinateMapper::MapPoints(array_view sourcePoints, winrt::Windows::Perception::Spatial::SpatialCoordinateSystem const& targetCoordinateSystem, winrt::Windows::Media::Devices::Core::CameraIntrinsics const& targetCameraIntrinsics, array_view results) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IDepthCorrelatedCoordinateMapper)->MapPoints(sourcePoints.size(), get_abi(sourcePoints), *(void**)(&targetCoordinateSystem), *(void**)(&targetCameraIntrinsics), results.size(), put_abi(results))); } template auto consume_Windows_Media_Devices_Core_IFrameControlCapabilities::Exposure() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameControlCapabilities)->get_Exposure(&value)); return winrt::Windows::Media::Devices::Core::FrameExposureCapabilities{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Devices_Core_IFrameControlCapabilities::ExposureCompensation() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameControlCapabilities)->get_ExposureCompensation(&value)); return winrt::Windows::Media::Devices::Core::FrameExposureCompensationCapabilities{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Devices_Core_IFrameControlCapabilities::IsoSpeed() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameControlCapabilities)->get_IsoSpeed(&value)); return winrt::Windows::Media::Devices::Core::FrameIsoSpeedCapabilities{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Devices_Core_IFrameControlCapabilities::Focus() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameControlCapabilities)->get_Focus(&value)); return winrt::Windows::Media::Devices::Core::FrameFocusCapabilities{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Devices_Core_IFrameControlCapabilities::PhotoConfirmationSupported() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameControlCapabilities)->get_PhotoConfirmationSupported(&value)); return value; } template auto consume_Windows_Media_Devices_Core_IFrameControlCapabilities2::Flash() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameControlCapabilities2)->get_Flash(&value)); return winrt::Windows::Media::Devices::Core::FrameFlashCapabilities{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Devices_Core_IFrameController::ExposureControl() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameController)->get_ExposureControl(&value)); return winrt::Windows::Media::Devices::Core::FrameExposureControl{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Devices_Core_IFrameController::ExposureCompensationControl() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameController)->get_ExposureCompensationControl(&value)); return winrt::Windows::Media::Devices::Core::FrameExposureCompensationControl{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Devices_Core_IFrameController::IsoSpeedControl() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameController)->get_IsoSpeedControl(&value)); return winrt::Windows::Media::Devices::Core::FrameIsoSpeedControl{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Devices_Core_IFrameController::FocusControl() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameController)->get_FocusControl(&value)); return winrt::Windows::Media::Devices::Core::FrameFocusControl{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Devices_Core_IFrameController::PhotoConfirmationEnabled() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameController)->get_PhotoConfirmationEnabled(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Devices_Core_IFrameController::PhotoConfirmationEnabled(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameController)->put_PhotoConfirmationEnabled(*(void**)(&value))); } template auto consume_Windows_Media_Devices_Core_IFrameController2::FlashControl() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameController2)->get_FlashControl(&value)); return winrt::Windows::Media::Devices::Core::FrameFlashControl{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Devices_Core_IFrameExposureCapabilities::Supported() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameExposureCapabilities)->get_Supported(&value)); return value; } template auto consume_Windows_Media_Devices_Core_IFrameExposureCapabilities::Min() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameExposureCapabilities)->get_Min(put_abi(value))); return value; } template auto consume_Windows_Media_Devices_Core_IFrameExposureCapabilities::Max() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameExposureCapabilities)->get_Max(put_abi(value))); return value; } template auto consume_Windows_Media_Devices_Core_IFrameExposureCapabilities::Step() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameExposureCapabilities)->get_Step(put_abi(value))); return value; } template auto consume_Windows_Media_Devices_Core_IFrameExposureCompensationCapabilities::Supported() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameExposureCompensationCapabilities)->get_Supported(&value)); return value; } template auto consume_Windows_Media_Devices_Core_IFrameExposureCompensationCapabilities::Min() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameExposureCompensationCapabilities)->get_Min(&value)); return value; } template auto consume_Windows_Media_Devices_Core_IFrameExposureCompensationCapabilities::Max() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameExposureCompensationCapabilities)->get_Max(&value)); return value; } template auto consume_Windows_Media_Devices_Core_IFrameExposureCompensationCapabilities::Step() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameExposureCompensationCapabilities)->get_Step(&value)); return value; } template auto consume_Windows_Media_Devices_Core_IFrameExposureCompensationControl::Value() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameExposureCompensationControl)->get_Value(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Devices_Core_IFrameExposureCompensationControl::Value(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameExposureCompensationControl)->put_Value(*(void**)(&value))); } template auto consume_Windows_Media_Devices_Core_IFrameExposureControl::Auto() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameExposureControl)->get_Auto(&value)); return value; } template auto consume_Windows_Media_Devices_Core_IFrameExposureControl::Auto(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameExposureControl)->put_Auto(value)); } template auto consume_Windows_Media_Devices_Core_IFrameExposureControl::Value() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameExposureControl)->get_Value(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Devices_Core_IFrameExposureControl::Value(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameExposureControl)->put_Value(*(void**)(&value))); } template auto consume_Windows_Media_Devices_Core_IFrameFlashCapabilities::Supported() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameFlashCapabilities)->get_Supported(&value)); return value; } template auto consume_Windows_Media_Devices_Core_IFrameFlashCapabilities::RedEyeReductionSupported() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameFlashCapabilities)->get_RedEyeReductionSupported(&value)); return value; } template auto consume_Windows_Media_Devices_Core_IFrameFlashCapabilities::PowerSupported() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameFlashCapabilities)->get_PowerSupported(&value)); return value; } template auto consume_Windows_Media_Devices_Core_IFrameFlashControl::Mode() const { winrt::Windows::Media::Devices::Core::FrameFlashMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameFlashControl)->get_Mode(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_Devices_Core_IFrameFlashControl::Mode(winrt::Windows::Media::Devices::Core::FrameFlashMode const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameFlashControl)->put_Mode(static_cast(value))); } template auto consume_Windows_Media_Devices_Core_IFrameFlashControl::Auto() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameFlashControl)->get_Auto(&value)); return value; } template auto consume_Windows_Media_Devices_Core_IFrameFlashControl::Auto(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameFlashControl)->put_Auto(value)); } template auto consume_Windows_Media_Devices_Core_IFrameFlashControl::RedEyeReduction() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameFlashControl)->get_RedEyeReduction(&value)); return value; } template auto consume_Windows_Media_Devices_Core_IFrameFlashControl::RedEyeReduction(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameFlashControl)->put_RedEyeReduction(value)); } template auto consume_Windows_Media_Devices_Core_IFrameFlashControl::PowerPercent() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameFlashControl)->get_PowerPercent(&value)); return value; } template auto consume_Windows_Media_Devices_Core_IFrameFlashControl::PowerPercent(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameFlashControl)->put_PowerPercent(value)); } template auto consume_Windows_Media_Devices_Core_IFrameFocusCapabilities::Supported() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameFocusCapabilities)->get_Supported(&value)); return value; } template auto consume_Windows_Media_Devices_Core_IFrameFocusCapabilities::Min() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameFocusCapabilities)->get_Min(&value)); return value; } template auto consume_Windows_Media_Devices_Core_IFrameFocusCapabilities::Max() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameFocusCapabilities)->get_Max(&value)); return value; } template auto consume_Windows_Media_Devices_Core_IFrameFocusCapabilities::Step() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameFocusCapabilities)->get_Step(&value)); return value; } template auto consume_Windows_Media_Devices_Core_IFrameFocusControl::Value() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameFocusControl)->get_Value(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Devices_Core_IFrameFocusControl::Value(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameFocusControl)->put_Value(*(void**)(&value))); } template auto consume_Windows_Media_Devices_Core_IFrameIsoSpeedCapabilities::Supported() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameIsoSpeedCapabilities)->get_Supported(&value)); return value; } template auto consume_Windows_Media_Devices_Core_IFrameIsoSpeedCapabilities::Min() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameIsoSpeedCapabilities)->get_Min(&value)); return value; } template auto consume_Windows_Media_Devices_Core_IFrameIsoSpeedCapabilities::Max() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameIsoSpeedCapabilities)->get_Max(&value)); return value; } template auto consume_Windows_Media_Devices_Core_IFrameIsoSpeedCapabilities::Step() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameIsoSpeedCapabilities)->get_Step(&value)); return value; } template auto consume_Windows_Media_Devices_Core_IFrameIsoSpeedControl::Auto() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameIsoSpeedControl)->get_Auto(&value)); return value; } template auto consume_Windows_Media_Devices_Core_IFrameIsoSpeedControl::Auto(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameIsoSpeedControl)->put_Auto(value)); } template auto consume_Windows_Media_Devices_Core_IFrameIsoSpeedControl::Value() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameIsoSpeedControl)->get_Value(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Devices_Core_IFrameIsoSpeedControl::Value(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IFrameIsoSpeedControl)->put_Value(*(void**)(&value))); } template auto consume_Windows_Media_Devices_Core_IVariablePhotoSequenceController::Supported() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IVariablePhotoSequenceController)->get_Supported(&value)); return value; } template auto consume_Windows_Media_Devices_Core_IVariablePhotoSequenceController::MaxPhotosPerSecond() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IVariablePhotoSequenceController)->get_MaxPhotosPerSecond(&value)); return value; } template auto consume_Windows_Media_Devices_Core_IVariablePhotoSequenceController::PhotosPerSecondLimit() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IVariablePhotoSequenceController)->get_PhotosPerSecondLimit(&value)); return value; } template auto consume_Windows_Media_Devices_Core_IVariablePhotoSequenceController::PhotosPerSecondLimit(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IVariablePhotoSequenceController)->put_PhotosPerSecondLimit(value)); } template auto consume_Windows_Media_Devices_Core_IVariablePhotoSequenceController::GetHighestConcurrentFrameRate(winrt::Windows::Media::MediaProperties::IMediaEncodingProperties const& captureProperties) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IVariablePhotoSequenceController)->GetHighestConcurrentFrameRate(*(void**)(&captureProperties), &value)); return winrt::Windows::Media::MediaProperties::MediaRatio{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Devices_Core_IVariablePhotoSequenceController::GetCurrentFrameRate() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IVariablePhotoSequenceController)->GetCurrentFrameRate(&value)); return winrt::Windows::Media::MediaProperties::MediaRatio{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Devices_Core_IVariablePhotoSequenceController::FrameCapabilities() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IVariablePhotoSequenceController)->get_FrameCapabilities(&value)); return winrt::Windows::Media::Devices::Core::FrameControlCapabilities{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_Devices_Core_IVariablePhotoSequenceController::DesiredFrameControllers() const { void* items{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::Devices::Core::IVariablePhotoSequenceController)->get_DesiredFrameControllers(&items)); return winrt::Windows::Foundation::Collections::IVector{ items, take_ownership_from_abi }; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FocalLength(winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FocalLength()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PrincipalPoint(winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PrincipalPoint()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RadialDistortion(winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RadialDistortion()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TangentialDistortion(winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TangentialDistortion()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ImageWidth(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ImageWidth()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ImageHeight(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ImageHeight()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ProjectOntoFrame(winrt::Windows::Foundation::Numerics::float3 coordinate, winrt::Windows::Foundation::Point* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ProjectOntoFrame(*reinterpret_cast(&coordinate))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall UnprojectAtUnitDepth(winrt::Windows::Foundation::Point pixelCoordinate, winrt::Windows::Foundation::Numerics::float2* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().UnprojectAtUnitDepth(*reinterpret_cast(&pixelCoordinate))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ProjectManyOntoFrame(uint32_t __coordinatesSize, winrt::Windows::Foundation::Numerics::float3* coordinates, uint32_t __resultsSize, winrt::Windows::Foundation::Point* results) noexcept final try { zero_abi(results, __resultsSize); typename D::abi_guard guard(this->shim()); this->shim().ProjectManyOntoFrame(array_view(reinterpret_cast(coordinates), reinterpret_cast(coordinates) + __coordinatesSize), array_view(reinterpret_cast(results), reinterpret_cast(results) + __resultsSize)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall UnprojectPixelsAtUnitDepth(uint32_t __pixelCoordinatesSize, winrt::Windows::Foundation::Point* pixelCoordinates, uint32_t __resultsSize, winrt::Windows::Foundation::Numerics::float2* results) noexcept final try { zero_abi(results, __resultsSize); typename D::abi_guard guard(this->shim()); this->shim().UnprojectPixelsAtUnitDepth(array_view(reinterpret_cast(pixelCoordinates), reinterpret_cast(pixelCoordinates) + __pixelCoordinatesSize), array_view(reinterpret_cast(results), reinterpret_cast(results) + __resultsSize)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_UndistortedProjectionTransform(winrt::Windows::Foundation::Numerics::float4x4* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UndistortedProjectionTransform()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DistortPoint(winrt::Windows::Foundation::Point input, winrt::Windows::Foundation::Point* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().DistortPoint(*reinterpret_cast(&input))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DistortPoints(uint32_t __inputsSize, winrt::Windows::Foundation::Point* inputs, uint32_t __resultsSize, winrt::Windows::Foundation::Point* results) noexcept final try { zero_abi(results, __resultsSize); typename D::abi_guard guard(this->shim()); this->shim().DistortPoints(array_view(reinterpret_cast(inputs), reinterpret_cast(inputs) + __inputsSize), array_view(reinterpret_cast(results), reinterpret_cast(results) + __resultsSize)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall UndistortPoint(winrt::Windows::Foundation::Point input, winrt::Windows::Foundation::Point* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().UndistortPoint(*reinterpret_cast(&input))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall UndistortPoints(uint32_t __inputsSize, winrt::Windows::Foundation::Point* inputs, uint32_t __resultsSize, winrt::Windows::Foundation::Point* results) noexcept final try { zero_abi(results, __resultsSize); typename D::abi_guard guard(this->shim()); this->shim().UndistortPoints(array_view(reinterpret_cast(inputs), reinterpret_cast(inputs) + __inputsSize), array_view(reinterpret_cast(results), reinterpret_cast(results) + __resultsSize)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(winrt::Windows::Foundation::Numerics::float2 focalLength, winrt::Windows::Foundation::Numerics::float2 principalPoint, winrt::Windows::Foundation::Numerics::float3 radialDistortion, winrt::Windows::Foundation::Numerics::float2 tangentialDistortion, uint32_t imageWidth, uint32_t imageHeight, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(*reinterpret_cast(&focalLength), *reinterpret_cast(&principalPoint), *reinterpret_cast(&radialDistortion), *reinterpret_cast(&tangentialDistortion), imageWidth, imageHeight)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall UnprojectPoint(winrt::Windows::Foundation::Point sourcePoint, void* targetCoordinateSystem, winrt::Windows::Foundation::Numerics::float3* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().UnprojectPoint(*reinterpret_cast(&sourcePoint), *reinterpret_cast(&targetCoordinateSystem))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall UnprojectPoints(uint32_t __sourcePointsSize, winrt::Windows::Foundation::Point* sourcePoints, void* targetCoordinateSystem, uint32_t __resultsSize, winrt::Windows::Foundation::Numerics::float3* results) noexcept final try { zero_abi(results, __resultsSize); typename D::abi_guard guard(this->shim()); this->shim().UnprojectPoints(array_view(reinterpret_cast(sourcePoints), reinterpret_cast(sourcePoints) + __sourcePointsSize), *reinterpret_cast(&targetCoordinateSystem), array_view(reinterpret_cast(results), reinterpret_cast(results) + __resultsSize)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MapPoint(winrt::Windows::Foundation::Point sourcePoint, void* targetCoordinateSystem, void* targetCameraIntrinsics, winrt::Windows::Foundation::Point* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().MapPoint(*reinterpret_cast(&sourcePoint), *reinterpret_cast(&targetCoordinateSystem), *reinterpret_cast(&targetCameraIntrinsics))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MapPoints(uint32_t __sourcePointsSize, winrt::Windows::Foundation::Point* sourcePoints, void* targetCoordinateSystem, void* targetCameraIntrinsics, uint32_t __resultsSize, winrt::Windows::Foundation::Point* results) noexcept final try { zero_abi(results, __resultsSize); typename D::abi_guard guard(this->shim()); this->shim().MapPoints(array_view(reinterpret_cast(sourcePoints), reinterpret_cast(sourcePoints) + __sourcePointsSize), *reinterpret_cast(&targetCoordinateSystem), *reinterpret_cast(&targetCameraIntrinsics), array_view(reinterpret_cast(results), reinterpret_cast(results) + __resultsSize)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Exposure(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Exposure()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExposureCompensation(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExposureCompensation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsoSpeed(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsoSpeed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Focus(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Focus()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PhotoConfirmationSupported(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PhotoConfirmationSupported()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Flash(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Flash()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ExposureControl(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExposureControl()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExposureCompensationControl(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExposureCompensationControl()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsoSpeedControl(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsoSpeedControl()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FocusControl(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FocusControl()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PhotoConfirmationEnabled(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().PhotoConfirmationEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PhotoConfirmationEnabled(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PhotoConfirmationEnabled(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FlashControl(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FlashControl()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Supported(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Supported()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Min(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Min()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Max(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Max()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Step(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Step()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Supported(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Supported()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Min(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Min()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Max(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Max()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Step(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Step()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Value(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Value()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Value(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Value(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Auto(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Auto()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Auto(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Auto(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Value(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Value()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Value(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Value(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Supported(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Supported()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RedEyeReductionSupported(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RedEyeReductionSupported()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PowerSupported(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PowerSupported()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Mode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Mode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Mode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Mode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Auto(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Auto()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Auto(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Auto(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RedEyeReduction(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RedEyeReduction()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RedEyeReduction(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RedEyeReduction(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PowerPercent(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PowerPercent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PowerPercent(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PowerPercent(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Supported(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Supported()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Min(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Min()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Max(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Max()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Step(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Step()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Value(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Value()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Value(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Value(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Supported(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Supported()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Min(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Min()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Max(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Max()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Step(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Step()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Auto(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Auto()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Auto(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Auto(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Value(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Value()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Value(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Value(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Supported(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Supported()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxPhotosPerSecond(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxPhotosPerSecond()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PhotosPerSecondLimit(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PhotosPerSecondLimit()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PhotosPerSecondLimit(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PhotosPerSecondLimit(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetHighestConcurrentFrameRate(void* captureProperties, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetHighestConcurrentFrameRate(*reinterpret_cast(&captureProperties))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetCurrentFrameRate(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetCurrentFrameRate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FrameCapabilities(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FrameCapabilities()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DesiredFrameControllers(void** items) noexcept final try { clear_abi(items); typename D::abi_guard guard(this->shim()); *items = detach_from>(this->shim().DesiredFrameControllers()); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::Media::Devices::Core { inline CameraIntrinsics::CameraIntrinsics(winrt::Windows::Foundation::Numerics::float2 const& focalLength, winrt::Windows::Foundation::Numerics::float2 const& principalPoint, winrt::Windows::Foundation::Numerics::float3 const& radialDistortion, winrt::Windows::Foundation::Numerics::float2 const& tangentialDistortion, uint32_t imageWidth, uint32_t imageHeight) : CameraIntrinsics(impl::call_factory([&](ICameraIntrinsicsFactory const& f) { return f.Create(focalLength, principalPoint, radialDistortion, tangentialDistortion, imageWidth, imageHeight); })) { } inline FrameController::FrameController() : FrameController(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 {}; #endif #ifdef __cpp_lib_format #endif } #endif