SDImageHEICCoder.h 1.2 KB

12345678910111213141516171819202122232425
  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 "SDImageIOAnimatedCoder.h"
  10. /**
  11. This coder is used for HEIC (HEIF with HEVC container codec) image format.
  12. Image/IO provide the static HEIC (.heic) support in iOS 11/macOS 10.13/tvOS 11/watchOS 4+.
  13. Image/IO provide the animated HEIC (.heics) support in iOS 13/macOS 10.15/tvOS 13/watchOS 6+.
  14. See https://nokiatech.github.io/heif/technical.html for the standard.
  15. @note This coder is not in the default coder list for now, since HEIC animated image is really rare, and Apple's implementation still contains performance issues. You can enable if you need this.
  16. @note If you need to support lower firmware version for HEIF, you can have a try at https://github.com/SDWebImage/SDWebImageHEIFCoder
  17. */
  18. API_AVAILABLE(ios(13.0), tvos(13.0), macos(10.15), watchos(6.0))
  19. @interface SDImageHEICCoder : SDImageIOAnimatedCoder <SDProgressiveImageCoder, SDAnimatedImageCoder>
  20. @property (nonatomic, class, readonly, nonnull) SDImageHEICCoder *sharedCoder;
  21. @end