Add iOS
This commit is contained in:
15
ios/Extensions/AVFrameRateRange+includes.swift
Normal file
15
ios/Extensions/AVFrameRateRange+includes.swift
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// AVFrameRateRange+includes.swift
|
||||
// Cuvent
|
||||
//
|
||||
// Created by Marc Rousavy on 15.01.21.
|
||||
// Copyright © 2021 Facebook. All rights reserved.
|
||||
//
|
||||
|
||||
import AVFoundation
|
||||
|
||||
extension AVFrameRateRange {
|
||||
func includes(fps: Double) -> Bool {
|
||||
return fps >= minFrameRate && fps <= maxFrameRate
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user