755 lines
37 KiB
Swift
755 lines
37 KiB
Swift
// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1
|
|
// swiftlint:disable all
|
|
import Foundation
|
|
@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation
|
|
import CWinRT
|
|
|
|
private var IID___x_ABI_CWindows_CMedia_CDevices_CCore_CICameraIntrinsics: WindowsFoundation.IID {
|
|
.init(Data1: 0x0AA6ED32, Data2: 0x6589, Data3: 0x49DA, Data4: ( 0xAF,0xDE,0x59,0x42,0x70,0xCA,0x0A,0xAC ))// 0AA6ED32-6589-49DA-AFDE-594270CA0AAC
|
|
}
|
|
|
|
private var IID___x_ABI_CWindows_CMedia_CDevices_CCore_CICameraIntrinsics2: WindowsFoundation.IID {
|
|
.init(Data1: 0x0CDAA447, Data2: 0x0798, Data3: 0x4B4D, Data4: ( 0x83,0x9F,0xC5,0xEC,0x41,0x4D,0xB2,0x7A ))// 0CDAA447-0798-4B4D-839F-C5EC414DB27A
|
|
}
|
|
|
|
private var IID___x_ABI_CWindows_CMedia_CDevices_CCore_CICameraIntrinsicsFactory: WindowsFoundation.IID {
|
|
.init(Data1: 0xC0DDC486, Data2: 0x2132, Data3: 0x4A34, Data4: ( 0xA6,0x59,0x9B,0xFE,0x2A,0x05,0x57,0x12 ))// C0DDC486-2132-4A34-A659-9BFE2A055712
|
|
}
|
|
|
|
private var IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameControlCapabilities: WindowsFoundation.IID {
|
|
.init(Data1: 0xA8FFAE60, Data2: 0x4E9E, Data3: 0x4377, Data4: ( 0xA7,0x89,0xE2,0x4C,0x4A,0xE7,0xE5,0x44 ))// A8FFAE60-4E9E-4377-A789-E24C4AE7E544
|
|
}
|
|
|
|
private var IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameControlCapabilities2: WindowsFoundation.IID {
|
|
.init(Data1: 0xCE9B0464, Data2: 0x4730, Data3: 0x440F, Data4: ( 0xBD,0x3E,0xEF,0xE8,0xA8,0xF2,0x30,0xA8 ))// CE9B0464-4730-440F-BD3E-EFE8A8F230A8
|
|
}
|
|
|
|
private var IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameController: WindowsFoundation.IID {
|
|
.init(Data1: 0xC16459D9, Data2: 0xBAEF, Data3: 0x4052, Data4: ( 0x91,0x77,0x48,0xAF,0xF2,0xAF,0x75,0x22 ))// C16459D9-BAEF-4052-9177-48AFF2AF7522
|
|
}
|
|
|
|
private var IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameController2: WindowsFoundation.IID {
|
|
.init(Data1: 0x00D3BC75, Data2: 0xD87C, Data3: 0x485B, Data4: ( 0x8A,0x09,0x5C,0x35,0x85,0x68,0xB4,0x27 ))// 00D3BC75-D87C-485B-8A09-5C358568B427
|
|
}
|
|
|
|
private var IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameExposureCapabilities: WindowsFoundation.IID {
|
|
.init(Data1: 0xBDBE9CE3, Data2: 0x3985, Data3: 0x4E72, Data4: ( 0x97,0xC2,0x05,0x90,0xD6,0x13,0x07,0xA1 ))// BDBE9CE3-3985-4E72-97C2-0590D61307A1
|
|
}
|
|
|
|
private var IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameExposureCompensationCapabilities: WindowsFoundation.IID {
|
|
.init(Data1: 0xB988A823, Data2: 0x8065, Data3: 0x41EE, Data4: ( 0xB0,0x4F,0x72,0x22,0x65,0x95,0x45,0x00 ))// B988A823-8065-41EE-B04F-722265954500
|
|
}
|
|
|
|
private var IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameExposureCompensationControl: WindowsFoundation.IID {
|
|
.init(Data1: 0xE95896C9, Data2: 0xF7F9, Data3: 0x48CA, Data4: ( 0x85,0x91,0xA2,0x65,0x31,0xCB,0x15,0x78 ))// E95896C9-F7F9-48CA-8591-A26531CB1578
|
|
}
|
|
|
|
private var IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameExposureControl: WindowsFoundation.IID {
|
|
.init(Data1: 0xB1605A61, Data2: 0xFFAF, Data3: 0x4752, Data4: ( 0xB6,0x21,0xF5,0xB6,0xF1,0x17,0xF4,0x32 ))// B1605A61-FFAF-4752-B621-F5B6F117F432
|
|
}
|
|
|
|
private var IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameFlashCapabilities: WindowsFoundation.IID {
|
|
.init(Data1: 0xBB9341A2, Data2: 0x5EBE, Data3: 0x4F62, Data4: ( 0x82,0x23,0x0E,0x2B,0x05,0xBF,0xBB,0xD0 ))// BB9341A2-5EBE-4F62-8223-0E2B05BFBBD0
|
|
}
|
|
|
|
private var IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameFlashControl: WindowsFoundation.IID {
|
|
.init(Data1: 0x75D5F6C7, Data2: 0xBD45, Data3: 0x4FAB, Data4: ( 0x93,0x75,0x45,0xAC,0x04,0xB3,0x32,0xC2 ))// 75D5F6C7-BD45-4FAB-9375-45AC04B332C2
|
|
}
|
|
|
|
private var IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameFocusCapabilities: WindowsFoundation.IID {
|
|
.init(Data1: 0x7B25CD58, Data2: 0x01C0, Data3: 0x4065, Data4: ( 0x9C,0x40,0xC1,0xA7,0x21,0x42,0x5C,0x1A ))// 7B25CD58-01C0-4065-9C40-C1A721425C1A
|
|
}
|
|
|
|
private var IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameFocusControl: WindowsFoundation.IID {
|
|
.init(Data1: 0x272DF1D0, Data2: 0xD912, Data3: 0x4214, Data4: ( 0xA6,0x7B,0xE3,0x8A,0x8D,0x48,0xD8,0xC6 ))// 272DF1D0-D912-4214-A67B-E38A8D48D8C6
|
|
}
|
|
|
|
private var IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameIsoSpeedCapabilities: WindowsFoundation.IID {
|
|
.init(Data1: 0x16BDFF61, Data2: 0x6DF6, Data3: 0x4AC9, Data4: ( 0xB9,0x2A,0x9F,0x6E,0xCD,0x1A,0xD2,0xFA ))// 16BDFF61-6DF6-4AC9-B92A-9F6ECD1AD2FA
|
|
}
|
|
|
|
private var IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameIsoSpeedControl: WindowsFoundation.IID {
|
|
.init(Data1: 0x1A03EFED, Data2: 0x786A, Data3: 0x4C75, Data4: ( 0xA5,0x57,0x7A,0xB9,0xA8,0x5F,0x58,0x8C ))// 1A03EFED-786A-4C75-A557-7AB9A85F588C
|
|
}
|
|
|
|
private var IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIVariablePhotoSequenceController: WindowsFoundation.IID {
|
|
.init(Data1: 0x7FBFF880, Data2: 0xED8C, Data3: 0x43FD, Data4: ( 0xA7,0xC3,0xB3,0x58,0x09,0xE4,0x22,0x9A ))// 7FBFF880-ED8C-43FD-A7C3-B35809E4229A
|
|
}
|
|
|
|
public enum __ABI_Windows_Media_Devices_Core {
|
|
public class ICameraIntrinsics: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CMedia_CDevices_CCore_CICameraIntrinsics }
|
|
|
|
internal func get_FocalLengthImpl() throws -> WindowsFoundation.Vector2 {
|
|
var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init()
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CICameraIntrinsics.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocalLength(pThis, &value))
|
|
}
|
|
return .from(abi: value)
|
|
}
|
|
|
|
internal func get_PrincipalPointImpl() throws -> WindowsFoundation.Vector2 {
|
|
var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init()
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CICameraIntrinsics.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_PrincipalPoint(pThis, &value))
|
|
}
|
|
return .from(abi: value)
|
|
}
|
|
|
|
internal func get_RadialDistortionImpl() throws -> WindowsFoundation.Vector3 {
|
|
var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init()
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CICameraIntrinsics.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_RadialDistortion(pThis, &value))
|
|
}
|
|
return .from(abi: value)
|
|
}
|
|
|
|
internal func get_TangentialDistortionImpl() throws -> WindowsFoundation.Vector2 {
|
|
var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init()
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CICameraIntrinsics.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_TangentialDistortion(pThis, &value))
|
|
}
|
|
return .from(abi: value)
|
|
}
|
|
|
|
internal func get_ImageWidthImpl() throws -> UInt32 {
|
|
var value: UINT32 = 0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CICameraIntrinsics.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ImageWidth(pThis, &value))
|
|
}
|
|
return value
|
|
}
|
|
|
|
internal func get_ImageHeightImpl() throws -> UInt32 {
|
|
var value: UINT32 = 0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CICameraIntrinsics.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ImageHeight(pThis, &value))
|
|
}
|
|
return value
|
|
}
|
|
|
|
internal func ProjectOntoFrameImpl(_ coordinate: WindowsFoundation.Vector3) throws -> WindowsFoundation.Point {
|
|
var result: __x_ABI_CWindows_CFoundation_CPoint = .init()
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CICameraIntrinsics.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.ProjectOntoFrame(pThis, .from(swift: coordinate), &result))
|
|
}
|
|
return .from(abi: result)
|
|
}
|
|
|
|
internal func UnprojectAtUnitDepthImpl(_ pixelCoordinate: WindowsFoundation.Point) throws -> WindowsFoundation.Vector2 {
|
|
var result: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init()
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CICameraIntrinsics.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.UnprojectAtUnitDepth(pThis, .from(swift: pixelCoordinate), &result))
|
|
}
|
|
return .from(abi: result)
|
|
}
|
|
|
|
}
|
|
|
|
public class ICameraIntrinsics2: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CMedia_CDevices_CCore_CICameraIntrinsics2 }
|
|
|
|
internal func get_UndistortedProjectionTransformImpl() throws -> WindowsFoundation.Matrix4x4 {
|
|
var value: __x_ABI_CWindows_CFoundation_CNumerics_CMatrix4x4 = .init()
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CICameraIntrinsics2.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_UndistortedProjectionTransform(pThis, &value))
|
|
}
|
|
return .from(abi: value)
|
|
}
|
|
|
|
internal func DistortPointImpl(_ input: WindowsFoundation.Point) throws -> WindowsFoundation.Point {
|
|
var result: __x_ABI_CWindows_CFoundation_CPoint = .init()
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CICameraIntrinsics2.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.DistortPoint(pThis, .from(swift: input), &result))
|
|
}
|
|
return .from(abi: result)
|
|
}
|
|
|
|
internal func UndistortPointImpl(_ input: WindowsFoundation.Point) throws -> WindowsFoundation.Point {
|
|
var result: __x_ABI_CWindows_CFoundation_CPoint = .init()
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CICameraIntrinsics2.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.UndistortPoint(pThis, .from(swift: input), &result))
|
|
}
|
|
return .from(abi: result)
|
|
}
|
|
|
|
}
|
|
|
|
public class ICameraIntrinsicsFactory: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CMedia_CDevices_CCore_CICameraIntrinsicsFactory }
|
|
|
|
internal func CreateImpl(_ focalLength: WindowsFoundation.Vector2, _ principalPoint: WindowsFoundation.Vector2, _ radialDistortion: WindowsFoundation.Vector3, _ tangentialDistortion: WindowsFoundation.Vector2, _ imageWidth: UInt32, _ imageHeight: UInt32) throws -> ICameraIntrinsics {
|
|
let (result) = try ComPtrs.initialize { resultAbi in
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CICameraIntrinsicsFactory.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.Create(pThis, .from(swift: focalLength), .from(swift: principalPoint), .from(swift: radialDistortion), .from(swift: tangentialDistortion), imageWidth, imageHeight, &resultAbi))
|
|
}
|
|
}
|
|
return ICameraIntrinsics(result!)
|
|
}
|
|
|
|
}
|
|
|
|
public class IFrameControlCapabilities: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameControlCapabilities }
|
|
|
|
internal func get_ExposureImpl() throws -> UWP.FrameExposureCapabilities? {
|
|
let (value) = try ComPtrs.initialize { valueAbi in
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameControlCapabilities.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Exposure(pThis, &valueAbi))
|
|
}
|
|
}
|
|
return .from(abi: value)
|
|
}
|
|
|
|
internal func get_ExposureCompensationImpl() throws -> UWP.FrameExposureCompensationCapabilities? {
|
|
let (value) = try ComPtrs.initialize { valueAbi in
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameControlCapabilities.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExposureCompensation(pThis, &valueAbi))
|
|
}
|
|
}
|
|
return .from(abi: value)
|
|
}
|
|
|
|
internal func get_IsoSpeedImpl() throws -> UWP.FrameIsoSpeedCapabilities? {
|
|
let (value) = try ComPtrs.initialize { valueAbi in
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameControlCapabilities.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsoSpeed(pThis, &valueAbi))
|
|
}
|
|
}
|
|
return .from(abi: value)
|
|
}
|
|
|
|
internal func get_FocusImpl() throws -> UWP.FrameFocusCapabilities? {
|
|
let (value) = try ComPtrs.initialize { valueAbi in
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameControlCapabilities.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Focus(pThis, &valueAbi))
|
|
}
|
|
}
|
|
return .from(abi: value)
|
|
}
|
|
|
|
internal func get_PhotoConfirmationSupportedImpl() throws -> Bool {
|
|
var value: boolean = 0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameControlCapabilities.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_PhotoConfirmationSupported(pThis, &value))
|
|
}
|
|
return .init(from: value)
|
|
}
|
|
|
|
}
|
|
|
|
public class IFrameControlCapabilities2: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameControlCapabilities2 }
|
|
|
|
internal func get_FlashImpl() throws -> UWP.FrameFlashCapabilities? {
|
|
let (value) = try ComPtrs.initialize { valueAbi in
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameControlCapabilities2.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Flash(pThis, &valueAbi))
|
|
}
|
|
}
|
|
return .from(abi: value)
|
|
}
|
|
|
|
}
|
|
|
|
public class IFrameController: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameController }
|
|
|
|
internal func get_ExposureControlImpl() throws -> UWP.FrameExposureControl? {
|
|
let (value) = try ComPtrs.initialize { valueAbi in
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameController.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExposureControl(pThis, &valueAbi))
|
|
}
|
|
}
|
|
return .from(abi: value)
|
|
}
|
|
|
|
internal func get_ExposureCompensationControlImpl() throws -> UWP.FrameExposureCompensationControl? {
|
|
let (value) = try ComPtrs.initialize { valueAbi in
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameController.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExposureCompensationControl(pThis, &valueAbi))
|
|
}
|
|
}
|
|
return .from(abi: value)
|
|
}
|
|
|
|
internal func get_IsoSpeedControlImpl() throws -> UWP.FrameIsoSpeedControl? {
|
|
let (value) = try ComPtrs.initialize { valueAbi in
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameController.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsoSpeedControl(pThis, &valueAbi))
|
|
}
|
|
}
|
|
return .from(abi: value)
|
|
}
|
|
|
|
internal func get_FocusControlImpl() throws -> UWP.FrameFocusControl? {
|
|
let (value) = try ComPtrs.initialize { valueAbi in
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameController.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusControl(pThis, &valueAbi))
|
|
}
|
|
}
|
|
return .from(abi: value)
|
|
}
|
|
|
|
internal func get_PhotoConfirmationEnabledImpl() throws -> Bool? {
|
|
let (value) = try ComPtrs.initialize { valueAbi in
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameController.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_PhotoConfirmationEnabled(pThis, &valueAbi))
|
|
}
|
|
}
|
|
return UWP.__x_ABI_C__FIReference_1_booleanWrapper.unwrapFrom(abi: value)
|
|
}
|
|
|
|
internal func put_PhotoConfirmationEnabledImpl(_ value: Bool?) throws {
|
|
let valueWrapper = UWP.__x_ABI_C__FIReference_1_booleanWrapper(value)
|
|
let _value = try! valueWrapper?.toABI { $0 }
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameController.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.put_PhotoConfirmationEnabled(pThis, _value))
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public class IFrameController2: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameController2 }
|
|
|
|
internal func get_FlashControlImpl() throws -> UWP.FrameFlashControl? {
|
|
let (value) = try ComPtrs.initialize { valueAbi in
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameController2.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_FlashControl(pThis, &valueAbi))
|
|
}
|
|
}
|
|
return .from(abi: value)
|
|
}
|
|
|
|
}
|
|
|
|
public class IFrameExposureCapabilities: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameExposureCapabilities }
|
|
|
|
internal func get_SupportedImpl() throws -> Bool {
|
|
var value: boolean = 0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameExposureCapabilities.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Supported(pThis, &value))
|
|
}
|
|
return .init(from: value)
|
|
}
|
|
|
|
internal func get_MinImpl() throws -> WindowsFoundation.TimeSpan {
|
|
var value: __x_ABI_CWindows_CFoundation_CTimeSpan = .init()
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameExposureCapabilities.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Min(pThis, &value))
|
|
}
|
|
return .from(abi: value)
|
|
}
|
|
|
|
internal func get_MaxImpl() throws -> WindowsFoundation.TimeSpan {
|
|
var value: __x_ABI_CWindows_CFoundation_CTimeSpan = .init()
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameExposureCapabilities.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Max(pThis, &value))
|
|
}
|
|
return .from(abi: value)
|
|
}
|
|
|
|
internal func get_StepImpl() throws -> WindowsFoundation.TimeSpan {
|
|
var value: __x_ABI_CWindows_CFoundation_CTimeSpan = .init()
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameExposureCapabilities.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Step(pThis, &value))
|
|
}
|
|
return .from(abi: value)
|
|
}
|
|
|
|
}
|
|
|
|
public class IFrameExposureCompensationCapabilities: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameExposureCompensationCapabilities }
|
|
|
|
internal func get_SupportedImpl() throws -> Bool {
|
|
var value: boolean = 0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameExposureCompensationCapabilities.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Supported(pThis, &value))
|
|
}
|
|
return .init(from: value)
|
|
}
|
|
|
|
internal func get_MinImpl() throws -> Float {
|
|
var value: FLOAT = 0.0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameExposureCompensationCapabilities.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Min(pThis, &value))
|
|
}
|
|
return value
|
|
}
|
|
|
|
internal func get_MaxImpl() throws -> Float {
|
|
var value: FLOAT = 0.0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameExposureCompensationCapabilities.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Max(pThis, &value))
|
|
}
|
|
return value
|
|
}
|
|
|
|
internal func get_StepImpl() throws -> Float {
|
|
var value: FLOAT = 0.0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameExposureCompensationCapabilities.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Step(pThis, &value))
|
|
}
|
|
return value
|
|
}
|
|
|
|
}
|
|
|
|
public class IFrameExposureCompensationControl: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameExposureCompensationControl }
|
|
|
|
internal func get_ValueImpl() throws -> Float? {
|
|
let (value) = try ComPtrs.initialize { valueAbi in
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameExposureCompensationControl.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Value(pThis, &valueAbi))
|
|
}
|
|
}
|
|
return UWP.__x_ABI_C__FIReference_1_floatWrapper.unwrapFrom(abi: value)
|
|
}
|
|
|
|
internal func put_ValueImpl(_ value: Float?) throws {
|
|
let valueWrapper = UWP.__x_ABI_C__FIReference_1_floatWrapper(value)
|
|
let _value = try! valueWrapper?.toABI { $0 }
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameExposureCompensationControl.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Value(pThis, _value))
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public class IFrameExposureControl: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameExposureControl }
|
|
|
|
internal func get_AutoImpl() throws -> Bool {
|
|
var value: boolean = 0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameExposureControl.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Auto(pThis, &value))
|
|
}
|
|
return .init(from: value)
|
|
}
|
|
|
|
internal func put_AutoImpl(_ value: Bool) throws {
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameExposureControl.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Auto(pThis, .init(from: value)))
|
|
}
|
|
}
|
|
|
|
internal func get_ValueImpl() throws -> WindowsFoundation.TimeSpan? {
|
|
let (value) = try ComPtrs.initialize { valueAbi in
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameExposureControl.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Value(pThis, &valueAbi))
|
|
}
|
|
}
|
|
return UWP.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CTimeSpanWrapper.unwrapFrom(abi: value)
|
|
}
|
|
|
|
internal func put_ValueImpl(_ value: WindowsFoundation.TimeSpan?) throws {
|
|
let valueWrapper = UWP.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CTimeSpanWrapper(value)
|
|
let _value = try! valueWrapper?.toABI { $0 }
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameExposureControl.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Value(pThis, _value))
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public class IFrameFlashCapabilities: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameFlashCapabilities }
|
|
|
|
internal func get_SupportedImpl() throws -> Bool {
|
|
var value: boolean = 0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameFlashCapabilities.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Supported(pThis, &value))
|
|
}
|
|
return .init(from: value)
|
|
}
|
|
|
|
internal func get_RedEyeReductionSupportedImpl() throws -> Bool {
|
|
var value: boolean = 0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameFlashCapabilities.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_RedEyeReductionSupported(pThis, &value))
|
|
}
|
|
return .init(from: value)
|
|
}
|
|
|
|
internal func get_PowerSupportedImpl() throws -> Bool {
|
|
var value: boolean = 0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameFlashCapabilities.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_PowerSupported(pThis, &value))
|
|
}
|
|
return .init(from: value)
|
|
}
|
|
|
|
}
|
|
|
|
public class IFrameFlashControl: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameFlashControl }
|
|
|
|
internal func get_ModeImpl() throws -> UWP.FrameFlashMode {
|
|
var value: __x_ABI_CWindows_CMedia_CDevices_CCore_CFrameFlashMode = .init(0)
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameFlashControl.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Mode(pThis, &value))
|
|
}
|
|
return value
|
|
}
|
|
|
|
internal func put_ModeImpl(_ value: UWP.FrameFlashMode) throws {
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameFlashControl.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Mode(pThis, value))
|
|
}
|
|
}
|
|
|
|
internal func get_AutoImpl() throws -> Bool {
|
|
var value: boolean = 0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameFlashControl.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Auto(pThis, &value))
|
|
}
|
|
return .init(from: value)
|
|
}
|
|
|
|
internal func put_AutoImpl(_ value: Bool) throws {
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameFlashControl.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Auto(pThis, .init(from: value)))
|
|
}
|
|
}
|
|
|
|
internal func get_RedEyeReductionImpl() throws -> Bool {
|
|
var value: boolean = 0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameFlashControl.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_RedEyeReduction(pThis, &value))
|
|
}
|
|
return .init(from: value)
|
|
}
|
|
|
|
internal func put_RedEyeReductionImpl(_ value: Bool) throws {
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameFlashControl.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.put_RedEyeReduction(pThis, .init(from: value)))
|
|
}
|
|
}
|
|
|
|
internal func get_PowerPercentImpl() throws -> Float {
|
|
var value: FLOAT = 0.0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameFlashControl.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_PowerPercent(pThis, &value))
|
|
}
|
|
return value
|
|
}
|
|
|
|
internal func put_PowerPercentImpl(_ value: Float) throws {
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameFlashControl.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.put_PowerPercent(pThis, value))
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public class IFrameFocusCapabilities: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameFocusCapabilities }
|
|
|
|
internal func get_SupportedImpl() throws -> Bool {
|
|
var value: boolean = 0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameFocusCapabilities.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Supported(pThis, &value))
|
|
}
|
|
return .init(from: value)
|
|
}
|
|
|
|
internal func get_MinImpl() throws -> UInt32 {
|
|
var value: UINT32 = 0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameFocusCapabilities.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Min(pThis, &value))
|
|
}
|
|
return value
|
|
}
|
|
|
|
internal func get_MaxImpl() throws -> UInt32 {
|
|
var value: UINT32 = 0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameFocusCapabilities.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Max(pThis, &value))
|
|
}
|
|
return value
|
|
}
|
|
|
|
internal func get_StepImpl() throws -> UInt32 {
|
|
var value: UINT32 = 0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameFocusCapabilities.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Step(pThis, &value))
|
|
}
|
|
return value
|
|
}
|
|
|
|
}
|
|
|
|
public class IFrameFocusControl: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameFocusControl }
|
|
|
|
internal func get_ValueImpl() throws -> UInt32? {
|
|
let (value) = try ComPtrs.initialize { valueAbi in
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameFocusControl.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Value(pThis, &valueAbi))
|
|
}
|
|
}
|
|
return UWP.__x_ABI_C__FIReference_1_UINT32Wrapper.unwrapFrom(abi: value)
|
|
}
|
|
|
|
internal func put_ValueImpl(_ value: UInt32?) throws {
|
|
let valueWrapper = UWP.__x_ABI_C__FIReference_1_UINT32Wrapper(value)
|
|
let _value = try! valueWrapper?.toABI { $0 }
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameFocusControl.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Value(pThis, _value))
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public class IFrameIsoSpeedCapabilities: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameIsoSpeedCapabilities }
|
|
|
|
internal func get_SupportedImpl() throws -> Bool {
|
|
var value: boolean = 0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameIsoSpeedCapabilities.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Supported(pThis, &value))
|
|
}
|
|
return .init(from: value)
|
|
}
|
|
|
|
internal func get_MinImpl() throws -> UInt32 {
|
|
var value: UINT32 = 0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameIsoSpeedCapabilities.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Min(pThis, &value))
|
|
}
|
|
return value
|
|
}
|
|
|
|
internal func get_MaxImpl() throws -> UInt32 {
|
|
var value: UINT32 = 0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameIsoSpeedCapabilities.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Max(pThis, &value))
|
|
}
|
|
return value
|
|
}
|
|
|
|
internal func get_StepImpl() throws -> UInt32 {
|
|
var value: UINT32 = 0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameIsoSpeedCapabilities.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Step(pThis, &value))
|
|
}
|
|
return value
|
|
}
|
|
|
|
}
|
|
|
|
public class IFrameIsoSpeedControl: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameIsoSpeedControl }
|
|
|
|
internal func get_AutoImpl() throws -> Bool {
|
|
var value: boolean = 0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameIsoSpeedControl.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Auto(pThis, &value))
|
|
}
|
|
return .init(from: value)
|
|
}
|
|
|
|
internal func put_AutoImpl(_ value: Bool) throws {
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameIsoSpeedControl.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Auto(pThis, .init(from: value)))
|
|
}
|
|
}
|
|
|
|
internal func get_ValueImpl() throws -> UInt32? {
|
|
let (value) = try ComPtrs.initialize { valueAbi in
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameIsoSpeedControl.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Value(pThis, &valueAbi))
|
|
}
|
|
}
|
|
return UWP.__x_ABI_C__FIReference_1_UINT32Wrapper.unwrapFrom(abi: value)
|
|
}
|
|
|
|
internal func put_ValueImpl(_ value: UInt32?) throws {
|
|
let valueWrapper = UWP.__x_ABI_C__FIReference_1_UINT32Wrapper(value)
|
|
let _value = try! valueWrapper?.toABI { $0 }
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIFrameIsoSpeedControl.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Value(pThis, _value))
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public class IVariablePhotoSequenceController: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CMedia_CDevices_CCore_CIVariablePhotoSequenceController }
|
|
|
|
internal func get_SupportedImpl() throws -> Bool {
|
|
var value: boolean = 0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIVariablePhotoSequenceController.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Supported(pThis, &value))
|
|
}
|
|
return .init(from: value)
|
|
}
|
|
|
|
internal func get_MaxPhotosPerSecondImpl() throws -> Float {
|
|
var value: FLOAT = 0.0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIVariablePhotoSequenceController.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxPhotosPerSecond(pThis, &value))
|
|
}
|
|
return value
|
|
}
|
|
|
|
internal func get_PhotosPerSecondLimitImpl() throws -> Float {
|
|
var value: FLOAT = 0.0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIVariablePhotoSequenceController.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_PhotosPerSecondLimit(pThis, &value))
|
|
}
|
|
return value
|
|
}
|
|
|
|
internal func put_PhotosPerSecondLimitImpl(_ value: Float) throws {
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIVariablePhotoSequenceController.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.put_PhotosPerSecondLimit(pThis, value))
|
|
}
|
|
}
|
|
|
|
internal func GetHighestConcurrentFrameRateImpl(_ captureProperties: UWP.AnyIMediaEncodingProperties?) throws -> UWP.MediaRatio? {
|
|
let (value) = try ComPtrs.initialize { valueAbi in
|
|
let capturePropertiesWrapper = __ABI_Windows_Media_MediaProperties.IMediaEncodingPropertiesWrapper(captureProperties)
|
|
let _captureProperties = try! capturePropertiesWrapper?.toABI { $0 }
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIVariablePhotoSequenceController.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetHighestConcurrentFrameRate(pThis, _captureProperties, &valueAbi))
|
|
}
|
|
}
|
|
return .from(abi: value)
|
|
}
|
|
|
|
internal func GetCurrentFrameRateImpl() throws -> UWP.MediaRatio? {
|
|
let (value) = try ComPtrs.initialize { valueAbi in
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIVariablePhotoSequenceController.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.GetCurrentFrameRate(pThis, &valueAbi))
|
|
}
|
|
}
|
|
return .from(abi: value)
|
|
}
|
|
|
|
internal func get_FrameCapabilitiesImpl() throws -> UWP.FrameControlCapabilities? {
|
|
let (value) = try ComPtrs.initialize { valueAbi in
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIVariablePhotoSequenceController.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_FrameCapabilities(pThis, &valueAbi))
|
|
}
|
|
}
|
|
return .from(abi: value)
|
|
}
|
|
|
|
internal func get_DesiredFrameControllersImpl() throws -> WindowsFoundation.AnyIVector<UWP.FrameController?>? {
|
|
let (items) = try ComPtrs.initialize { itemsAbi in
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CDevices_CCore_CIVariablePhotoSequenceController.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_DesiredFrameControllers(pThis, &itemsAbi))
|
|
}
|
|
}
|
|
return UWP.__x_ABI_C__FIVector_1___x_ABI_CWindows__CMedia__CDevices__CCore__CFrameControllerWrapper.unwrapFrom(abi: items)
|
|
}
|
|
|
|
}
|
|
|
|
}
|