-
Do not use any hardware acceleration (the default).
Declaration
Swift
public static let none: AVHWDeviceType
-
Use VDPAU (Video Decode and Presentation API for Unix) hardware acceleration.
Declaration
Swift
public static let vdpau: AVHWDeviceType
-
Use CUDA (Compute Unified Device Architecture, NVIDIA) hardware acceleration.
Declaration
Swift
public static let cuda: AVHWDeviceType
-
Use DXVA2 (DirectX Video Acceleration) hardware acceleration.
Declaration
Swift
public static let dxva2: AVHWDeviceType
-
Use QSV (Intel Quick Sync Video) hardware acceleration.
Declaration
Swift
public static let qsv: AVHWDeviceType
-
Use VideoToolbox (Apple) hardware acceleration.
Declaration
Swift
public static let videoToolbox: AVHWDeviceType
-
Use D3D11VA (Direct3D 11 Graphics) hardware acceleration.
Declaration
Swift
public static let d3d11va: AVHWDeviceType
-
Use DRM (Direct Rendering Manage) hardware acceleration.
Declaration
Swift
public static let drm: AVHWDeviceType
-
Use OpenCL hardware acceleration.
Declaration
Swift
public static let openCL: AVHWDeviceType
-
Use MediaCodec (Android) hardware acceleration.
Declaration
Swift
public static let mediaCodec: AVHWDeviceType
-
Return an
AVHWDeviceType
corresponding to name, ornil
if the device type does not exist.Declaration
Swift
public init?(name: String)
Parameters
name
String name of the device type (case-insensitive).
-
The name of the device type.
Declaration
Swift
public var name: String? { get }
-
Get all supported device types.
Declaration
Swift
public static func supportedDeviceTypes() -> [AVHWDeviceType]
-
Declaration
Swift
public var description: String { get }