84 lines
4.0 KiB
Swift
84 lines
4.0 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_CCapture_CIMediaCaptureVideoProfileMediaDescription: WindowsFoundation.IID {
|
|
.init(Data1: 0x8012AFEF, Data2: 0xB691, Data3: 0x49FF, Data4: ( 0x83,0xF2,0xC1,0xE7,0x6E,0xAA,0xEA,0x1B ))// 8012AFEF-B691-49FF-83F2-C1E76EAAEA1B
|
|
}
|
|
|
|
private var IID___x_ABI_CWindows_CMedia_CCapture_CIMediaCaptureVideoProfileMediaDescription2: WindowsFoundation.IID {
|
|
.init(Data1: 0xC6A6EF13, Data2: 0x322D, Data3: 0x413A, Data4: ( 0xB8,0x5A,0x68,0xA8,0x8E,0x02,0xF4,0xE9 ))// C6A6EF13-322D-413A-B85A-68A88E02F4E9
|
|
}
|
|
|
|
public enum __ABI_Windows_Media_Capture {
|
|
public class IMediaCaptureVideoProfileMediaDescription: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CMedia_CCapture_CIMediaCaptureVideoProfileMediaDescription }
|
|
|
|
internal func get_WidthImpl() throws -> UInt32 {
|
|
var value: UINT32 = 0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CCapture_CIMediaCaptureVideoProfileMediaDescription.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Width(pThis, &value))
|
|
}
|
|
return value
|
|
}
|
|
|
|
internal func get_HeightImpl() throws -> UInt32 {
|
|
var value: UINT32 = 0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CCapture_CIMediaCaptureVideoProfileMediaDescription.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Height(pThis, &value))
|
|
}
|
|
return value
|
|
}
|
|
|
|
internal func get_FrameRateImpl() throws -> Double {
|
|
var value: DOUBLE = 0.0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CCapture_CIMediaCaptureVideoProfileMediaDescription.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_FrameRate(pThis, &value))
|
|
}
|
|
return value
|
|
}
|
|
|
|
internal func get_IsVariablePhotoSequenceSupportedImpl() throws -> Bool {
|
|
var value: boolean = 0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CCapture_CIMediaCaptureVideoProfileMediaDescription.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsVariablePhotoSequenceSupported(pThis, &value))
|
|
}
|
|
return .init(from: value)
|
|
}
|
|
|
|
internal func get_IsHdrVideoSupportedImpl() throws -> Bool {
|
|
var value: boolean = 0
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CCapture_CIMediaCaptureVideoProfileMediaDescription.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsHdrVideoSupported(pThis, &value))
|
|
}
|
|
return .init(from: value)
|
|
}
|
|
|
|
}
|
|
|
|
public class IMediaCaptureVideoProfileMediaDescription2: WindowsFoundation.IInspectable {
|
|
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CMedia_CCapture_CIMediaCaptureVideoProfileMediaDescription2 }
|
|
|
|
internal func get_SubtypeImpl() throws -> String {
|
|
var value: HSTRING?
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CCapture_CIMediaCaptureVideoProfileMediaDescription2.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Subtype(pThis, &value))
|
|
}
|
|
return .init(from: value)
|
|
}
|
|
|
|
internal func get_PropertiesImpl() throws -> WindowsFoundation.AnyIMapView<Foundation.UUID, Any?>? {
|
|
let (value) = try ComPtrs.initialize { valueAbi in
|
|
_ = try perform(as: __x_ABI_CWindows_CMedia_CCapture_CIMediaCaptureVideoProfileMediaDescription2.self) { pThis in
|
|
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Properties(pThis, &valueAbi))
|
|
}
|
|
}
|
|
return UWP.__x_ABI_C__FIMapView_2_GUID_IInspectableWrapper.unwrapFrom(abi: value)
|
|
}
|
|
|
|
}
|
|
|
|
}
|