@@ -57,9 +57,8 @@ public class JXLCoder {
5757 public static func decode( srcStream: InputStream ,
5858 rescale: CGSize = . zero,
5959 scale: Int = 1 ,
60- pixelFormat: JXLPreferredPixelFormat = . optimal,
61- sampler: JxlSampler = . hann) throws -> JXLPlatformImage {
62- return try shared. decode ( srcStream, rescale: rescale, pixelFormat: pixelFormat, sampler: sampler, scale: Int32 ( scale) )
60+ pixelFormat: JXLPreferredPixelFormat = . optimal) throws -> JXLPlatformImage {
61+ return try shared. decode ( srcStream, rescale: rescale, pixelFormat: pixelFormat, scale: Int32 ( scale) )
6362 }
6463
6564 /***
@@ -70,13 +69,12 @@ public class JXLCoder {
7069 public static func decode( url: URL ,
7170 rescale: CGSize = . zero,
7271 scale: Int = 1 ,
73- pixelFormat: JXLPreferredPixelFormat = . optimal,
74- sampler: JxlSampler = . lanczos) throws -> JXLPlatformImage {
72+ pixelFormat: JXLPreferredPixelFormat = . optimal) throws -> JXLPlatformImage {
7573 guard let srcStream = InputStream ( url: url) else {
7674 throw NSError ( domain: " JXLCoder " , code: 500 ,
7775 userInfo: [ NSLocalizedDescriptionKey: " JXLCoder cannot open provided URL " ] )
7876 }
79- return try shared. decode ( srcStream, rescale: rescale, pixelFormat: pixelFormat, sampler : sampler , scale: Int32 ( scale) )
77+ return try shared. decode ( srcStream, rescale: rescale, pixelFormat: pixelFormat, scale: Int32 ( scale) )
8078 }
8179
8280 /***
@@ -87,10 +85,9 @@ public class JXLCoder {
8785 public static func decode( data: Data ,
8886 rescale: CGSize = . zero,
8987 scale: Int = 1 ,
90- pixelFormat: JXLPreferredPixelFormat = . optimal,
91- sampler: JxlSampler = . lanczos) throws -> JXLPlatformImage {
88+ pixelFormat: JXLPreferredPixelFormat = . optimal) throws -> JXLPlatformImage {
9289 let srcStream = InputStream ( data: data)
93- return try shared. decode ( srcStream, rescale: rescale, pixelFormat: pixelFormat, sampler : sampler , scale: Int32 ( scale) )
90+ return try shared. decode ( srcStream, rescale: rescale, pixelFormat: pixelFormat, scale: Int32 ( scale) )
9491 }
9592
9693 /***
0 commit comments