mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
bugfixes
This commit is contained in:
parent
919c72163f
commit
d9ce409305
1 changed files with 4 additions and 1 deletions
|
|
@ -377,6 +377,7 @@ public final class OngoingGroupCallContext {
|
|||
}
|
||||
|
||||
public enum Buffer {
|
||||
case argb(NativeBuffer)
|
||||
case bgra(NativeBuffer)
|
||||
case native(NativeBuffer)
|
||||
case nv12(NV12Buffer)
|
||||
|
|
@ -393,7 +394,9 @@ public final class OngoingGroupCallContext {
|
|||
|
||||
init(frameData: CallVideoFrameData) {
|
||||
if let nativeBuffer = frameData.buffer as? CallVideoFrameNativePixelBuffer {
|
||||
if CVPixelBufferGetPixelFormatType(nativeBuffer.pixelBuffer) == kCVPixelFormatType_32BGRA {
|
||||
if CVPixelBufferGetPixelFormatType(nativeBuffer.pixelBuffer) == kCVPixelFormatType_32ARGB {
|
||||
self.buffer = .argb(NativeBuffer(pixelBuffer: nativeBuffer.pixelBuffer))
|
||||
} else if CVPixelBufferGetPixelFormatType(nativeBuffer.pixelBuffer) == kCVPixelFormatType_32BGRA {
|
||||
self.buffer = .bgra(NativeBuffer(pixelBuffer: nativeBuffer.pixelBuffer))
|
||||
} else {
|
||||
self.buffer = .native(NativeBuffer(pixelBuffer: nativeBuffer.pixelBuffer))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue