12345678910111213141516171819202122232425262728 |
- #import <Foundation/Foundation.h>
- #import "SDImageIOAnimatedCoder.h"
- #define kSDUTTypeHEIC ((__bridge CFStringRef)@"public.heic")
- #define kSDUTTypeHEIF ((__bridge CFStringRef)@"public.heif")
- #define kSDUTTypeHEICS ((__bridge CFStringRef)@"public.heics")
- #define kSDUTTypeWebP ((__bridge CFStringRef)@"org.webmproject.webp")
- @interface SDImageIOAnimatedCoder ()
- + (NSTimeInterval)frameDurationAtIndex:(NSUInteger)index source:(nonnull CGImageSourceRef)source;
- + (NSUInteger)imageLoopCountWithSource:(nonnull CGImageSourceRef)source;
- + (nullable UIImage *)createFrameAtIndex:(NSUInteger)index source:(nonnull CGImageSourceRef)source scale:(CGFloat)scale preserveAspectRatio:(BOOL)preserveAspectRatio thumbnailSize:(CGSize)thumbnailSize options:(nullable NSDictionary *)options;
- + (BOOL)canEncodeToFormat:(SDImageFormat)format;
- + (BOOL)canDecodeFromFormat:(SDImageFormat)format;
- @end
|