Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the default color to kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange. #1557

Merged
merged 1 commit into from
Sep 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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