diff --git a/Gifski/Gifski.swift b/Gifski/Gifski.swift index 1eebe84..e9f5709 100644 --- a/Gifski/Gifski.swift +++ b/Gifski/Gifski.swift @@ -236,7 +236,7 @@ final class Gifski { - Parameters: - conversion: The conversion source of the image generator. - jobKey: The string used to identify the current conversion job. - - Returns: An `AVAssetImageGenerator` along with the times of the frames requested by the conversion. + - Returns: An `AVAssetImageGenerator` along with the times of the frames requested by the conversion. */ private func imageGenerator( for conversion: Conversion, diff --git a/Gifski/Utilities.swift b/Gifski/Utilities.swift index c5cfe47..2b2a295 100644 --- a/Gifski/Utilities.swift +++ b/Gifski/Utilities.swift @@ -4190,10 +4190,10 @@ extension CGContext { case .rgba: byteOrder = .byteOrder32Big alphaInfo = withAlpha ? .premultipliedLast : .noneSkipLast - case .abgr: - byteOrder = .byteOrder32Little - alphaInfo = withAlpha ? .premultipliedFirst : .noneSkipFirst case .bgra: + byteOrder = .byteOrder32Little + alphaInfo = withAlpha ? .premultipliedFirst : .noneSkipFirst // This might look wrong, but the order is inverse because of little endian. + case .abgr: byteOrder = .byteOrder32Little alphaInfo = withAlpha ? .premultipliedLast : .noneSkipLast } @@ -4248,10 +4248,10 @@ extension CGImage { case .rgba: byteOrder = .byteOrder32Big alphaInfo = alphaLast - case .abgr: - byteOrder = .byteOrder32Little - alphaInfo = alphaFirst case .bgra: + byteOrder = .byteOrder32Little + alphaInfo = alphaFirst // This might look wrong, but the order is inverse because of little endian. + case .abgr: byteOrder = .byteOrder32Little alphaInfo = alphaLast } @@ -4337,12 +4337,12 @@ extension CGImage { /** Little-endian, alpha first. */ - case abgr + case bgra /** Little-endian, alpha last. */ - case bgra + case abgr var title: String { switch self { @@ -4350,10 +4350,10 @@ extension CGImage { return "ARGB" case .rgba: return "RGBA" - case .abgr: - return "ABGR" case .bgra: return "BGRA" + case .abgr: + return "ABGR" } } }