Updated `SDWebImageImageIOCoder` comments + minor coding style
This commit is contained in:
parent
62f80e0e3a
commit
3d8ce3a84a
|
@ -10,9 +10,15 @@
|
|||
#import "SDWebImageCoder.h"
|
||||
|
||||
/**
|
||||
Built in coder that supports PNG, JPEG, TIFF, includes support for progressive decoding
|
||||
Built in coder that supports PNG, JPEG, TIFF, includes support for progressive decoding.
|
||||
|
||||
GIF
|
||||
Also supports static GIF (meaning will only handle the 1st frame).
|
||||
For a full GIF support, we recommend `FLAnimatedImage` or our less performant `SDWebImageGIFCoder`
|
||||
|
||||
HEIC
|
||||
This coder also supports HEIC format because ImageIO supports it natively. But it depends on the system capabilities, so it won't work on all devices.
|
||||
Hardware works if: (iOS 11 || macOS 10.13) && (isMac || isIPhoneAndA10FusionChipAbove) && (!Simulator)
|
||||
*/
|
||||
@interface SDWebImageImageIOCoder : NSObject <SDWebImageProgressiveCoder>
|
||||
|
||||
|
|
|
@ -472,8 +472,7 @@ static const CGFloat kDestSeemOverlap = 2.0f; // the numbers of pixels to over
|
|||
return YES;
|
||||
}
|
||||
|
||||
+ (BOOL)canEncodeToHEICFormat
|
||||
{
|
||||
+ (BOOL)canEncodeToHEICFormat {
|
||||
static BOOL canEncode = NO;
|
||||
static dispatch_once_t onceToken;
|
||||
dispatch_once(&onceToken, ^{
|
||||
|
|
Loading…
Reference in New Issue