Various Fixes

This commit is contained in:
Ilya Laktyushin 2022-01-31 19:06:21 +03:00
parent 8fba853061
commit 1dcdde3fbd
2 changed files with 1 additions and 3 deletions

View File

@ -44,7 +44,7 @@ private final class VideoStickerFrameSourceCache {
self.width = width
self.height = height
let version: Int = 1
let version: Int = 2
self.path = "\(pathPrefix)_\(width)x\(height)-v\(version).vstickerframecache"
var file = ManagedFile(queue: queue, path: self.path, mode: .readwrite)
if let file = file {

View 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};
error = vImagePermuteChannels_ARGB8888(&dest, &dest, permuteMap, kvImageDoNotTile);