mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Various Fixes
This commit is contained in:
parent
8fba853061
commit
1dcdde3fbd
@ -44,7 +44,7 @@ private final class VideoStickerFrameSourceCache {
|
|||||||
self.width = width
|
self.width = width
|
||||||
self.height = height
|
self.height = height
|
||||||
|
|
||||||
let version: Int = 1
|
let version: Int = 2
|
||||||
self.path = "\(pathPrefix)_\(width)x\(height)-v\(version).vstickerframecache"
|
self.path = "\(pathPrefix)_\(width)x\(height)-v\(version).vstickerframecache"
|
||||||
var file = ManagedFile(queue: queue, path: self.path, mode: .readwrite)
|
var file = ManagedFile(queue: queue, path: self.path, mode: .readwrite)
|
||||||
if let file = file {
|
if let file = file {
|
||||||
|
@ -215,8 +215,6 @@ void decodeYUVAPlanesToRGBA(uint8_t const *srcYpData, int srcYpBytesPerRow, uint
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
error = vImagePremultiplyData_ARGB8888(&dest, &dest, kvImageDoNotTile);
|
|
||||||
|
|
||||||
uint8_t permuteMap[4] = {3, 2, 1, 0};
|
uint8_t permuteMap[4] = {3, 2, 1, 0};
|
||||||
error = vImagePermuteChannels_ARGB8888(&dest, &dest, permuteMap, kvImageDoNotTile);
|
error = vImagePermuteChannels_ARGB8888(&dest, &dest, permuteMap, kvImageDoNotTile);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user