* feat: Use new photo dimensions API * Update AVCaptureDevice.Format+matchesFilter.swift * fix: Use Pixels instead of Points for video size * feat: Set `PhotoOutput`'s maximum photo resolution * fix: Compare dictionaries instead * chore: Format code * fix: Try to use hash.... failing atm * fix: Use rough comparison again * fix: Also take video HDR into consideration * chore: Format * Use contains * Update AVCaptureDevice.Format+toDictionary.swift * docs: Add better docs to Camera props * Update CameraView+AVCaptureSession.swift * Update CameraView+AVCaptureSession.swift
		
			
				
	
	
		
			17 lines
		
	
	
		
			321 B
		
	
	
	
		
			Swift
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			321 B
		
	
	
	
		
			Swift
		
	
	
	
	
	
| //
 | |
| //  CMVideoDimensions+toCGSize.swift
 | |
| //  VisionCamera
 | |
| //
 | |
| //  Created by Marc Rousavy on 05.10.23.
 | |
| //  Copyright © 2023 mrousavy. All rights reserved.
 | |
| //
 | |
| 
 | |
| import AVFoundation
 | |
| import Foundation
 | |
| 
 | |
| extension CMVideoDimensions {
 | |
|   func toCGSize() -> CGSize {
 | |
|     return CGSize(width: Int(width), height: Int(height))
 | |
|   }
 | |
| }
 |