Update AVFrameRateRange+includes.swift
This commit is contained in:
@@ -9,6 +9,9 @@
|
|||||||
import AVFoundation
|
import AVFoundation
|
||||||
|
|
||||||
extension AVFrameRateRange {
|
extension AVFrameRateRange {
|
||||||
|
/**
|
||||||
|
* Returns true if this [AVFrameRateRange] contains the given [fps]
|
||||||
|
*/
|
||||||
func includes(fps: Double) -> Bool {
|
func includes(fps: Double) -> Bool {
|
||||||
return fps >= minFrameRate && fps <= maxFrameRate
|
return fps >= minFrameRate && fps <= maxFrameRate
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user