SDWebImageImageIOCoder.h 1.2 KB

123456789101112131415161718192021222324252627282930
  1. /*
  2. * This file is part of the SDWebImage package.
  3. * (c) Olivier Poitrey <rs@dailymotion.com>
  4. *
  5. * For the full copyright and license information, please view the LICENSE
  6. * file that was distributed with this source code.
  7. */
  8. #import <Foundation/Foundation.h>
  9. #import "SDWebImageCoder.h"
  10. /**
  11. Built in coder that supports PNG, JPEG, TIFF, includes support for progressive decoding.
  12. GIF
  13. Also supports static GIF (meaning will only handle the 1st frame).
  14. For a full GIF support, we recommend `FLAnimatedImage` or our less performant `SDWebImageGIFCoder`
  15. HEIC
  16. 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, see: https://devstreaming-cdn.apple.com/videos/wwdc/2017/511tj33587vdhds/511/511_working_with_heif_and_hevc.pdf
  17. Decode(Software): !Simulator && (iOS 11 || tvOS 11 || macOS 10.13)
  18. Decode(Hardware): !Simulator && ((iOS 11 && A9Chip) || (macOS 10.13 && 6thGenerationIntelCPU))
  19. Encode(Software): macOS 10.13
  20. Encode(Hardware): !Simulator && ((iOS 11 && A10FusionChip) || (macOS 10.13 && 6thGenerationIntelCPU))
  21. */
  22. @interface SDWebImageImageIOCoder : NSObject <SDWebImageProgressiveCoder>
  23. + (nonnull instancetype)sharedCoder;
  24. @end