mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Various improvements
This commit is contained in:
parent
7b5883c115
commit
4e804bf9d9
13 changed files with 201 additions and 16 deletions
|
|
@ -109,7 +109,7 @@ final class CameraOutput: NSObject {
|
|||
private var videoConnection: AVCaptureConnection?
|
||||
private var previewConnection: AVCaptureConnection?
|
||||
|
||||
private var roundVideoFilter: CameraRoundVideoFilter?
|
||||
private var roundVideoFilter: CameraRoundLegacyVideoFilter?
|
||||
private let semaphore = DispatchSemaphore(value: 1)
|
||||
|
||||
private let videoQueue = DispatchQueue(label: "", qos: .userInitiated)
|
||||
|
|
@ -577,11 +577,11 @@ final class CameraOutput: NSObject {
|
|||
return nil
|
||||
}
|
||||
|
||||
let filter: CameraRoundVideoFilter
|
||||
let filter: CameraRoundLegacyVideoFilter
|
||||
if let current = self.roundVideoFilter {
|
||||
filter = current
|
||||
} else {
|
||||
filter = CameraRoundVideoFilter(ciContext: self.ciContext, colorSpace: self.colorSpace, simple: self.exclusive)
|
||||
filter = CameraRoundLegacyVideoFilter(ciContext: self.ciContext, colorSpace: self.colorSpace, simple: self.exclusive)
|
||||
self.roundVideoFilter = filter
|
||||
}
|
||||
if !filter.isPrepared {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue