Skip to content

Commit

Permalink
Replace BGRA with 420YpCbCr8BiPlanarFullRange
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattijah committed Sep 19, 2024
1 parent 359187b commit dc7ac4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QKMRZScanner/QKMRZScannerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public class QKMRZScannerView: UIView {

videoOutput.setSampleBufferDelegate(self, queue: DispatchQueue(label: "video_frames_queue", qos: .userInteractive, attributes: [], autoreleaseFrequency: .workItem))
videoOutput.alwaysDiscardsLateVideoFrames = true
videoOutput.videoSettings = [kCVPixelBufferPixelFormatTypeKey: kCVPixelFormatType_32BGRA] as [String : Any]
videoOutput.videoSettings = [kCVPixelBufferPixelFormatTypeKey: kCVPixelFormatType_420YpCbCr8BiPlanarFullRange] as [String : Any]
videoOutput.connection(with: .video)!.videoOrientation = AVCaptureVideoOrientation(orientation: interfaceOrientation)

videoPreviewLayer.session = captureSession
Expand Down

0 comments on commit dc7ac4d

Please sign in to comment.