mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various improvements
This commit is contained in:
@@ -110,7 +110,8 @@ final class LiveStreamMediaSource {
|
||||
kCVPixelBufferPoolMinimumBufferCountKey as String: 3 as NSNumber
|
||||
]
|
||||
let pixelBufferOptions: [String: Any] = [
|
||||
kCVPixelBufferPixelFormatTypeKey as String: kCVPixelFormatType_32BGRA as NSNumber,
|
||||
//kCVPixelBufferPixelFormatTypeKey as String: kCVPixelFormatType_32BGRA as NSNumber,
|
||||
kCVPixelBufferPixelFormatTypeKey as String: kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange as NSNumber,
|
||||
kCVPixelBufferWidthKey as String: UInt32(width),
|
||||
kCVPixelBufferHeightKey as String: UInt32(height)
|
||||
]
|
||||
@@ -168,7 +169,8 @@ final class LiveStreamMediaSource {
|
||||
outputDimensions: CGSize(width: 720.0, height: 1280.0),
|
||||
textScale: 1.0,
|
||||
videoDuration: nil,
|
||||
additionalVideoDuration: nil
|
||||
additionalVideoDuration: nil,
|
||||
outputsYuvBuffers: true
|
||||
)
|
||||
|
||||
self.mainVideoOutput = CameraVideoOutput(sink: { [weak self] buffer, mirror in
|
||||
|
||||
Reference in New Issue
Block a user