Skip to content

Commit

Permalink
Merge pull request #1557 from shogo4405/feature/default-color-format
Browse files Browse the repository at this point in the history
Change the default color to kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange.
  • Loading branch information
shogo4405 authored Sep 2, 2024
2 parents b9eaa09 + 8bbf68c commit a5d87ee
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 a5d87ee

Please sign in to comment.