Skip to content

Commit

Permalink
Update IOVideoCaptureUnit.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo4405 committed Sep 2, 2024
1 parent b9eaa09 commit 8bbf68c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Sources/IO/IOVideoCaptureUnit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,13 @@ public typealias IOVideoCaptureConfigurationBlock = (IOVideoCaptureUnit?, IOVide
public final class IOVideoCaptureUnit: IOCaptureUnit {
public typealias Output = AVCaptureVideoDataOutput

#if os(iOS) || os(macOS)
/// The default color format.
public static let colorFormat = kCVPixelFormatType_32ARGB
#else
/// The default color format.
public static let colorFormat = kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange
#endif

/// The current video device object.
public private(set) var device: AVCaptureDevice?

/// Specifies the video capture color format.
/// - Warning: If a format other than kCVPixelFormatType_32ARGB is set, the multi-camera feature will become unavailable. We intend to support this in the future.
public var colorFormat = IOVideoCaptureUnit.colorFormat

/// The track number.
Expand Down

0 comments on commit 8bbf68c

Please sign in to comment.