Logo
Explore Help
Sign In
railbird/react-native-vision-camera
10
0
Fork 0
You've already forked react-native-vision-camera
Code Issues Pull Requests Packages Projects Releases Wiki Activity
react-native-vision-camera/package/ios/Extensions/CMVideoDimensions+toCGSize.swift

17 lines
321 B
Swift
Raw Normal View History

feat: Use correct photo and video format dimensions on iOS (#1929) * 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
2023-10-06 16:11:09 +02:00
//
// 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))
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.2 Page: 125ms Template: 9ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API