SDImageAWebPCoder.h 974 B

1234567891011121314151617181920212223
  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 Google WebP and Animated WebP(AWebP) image format.
  12. Image/IO provide the WebP decoding support in iOS 14/macOS 11/tvOS 14/watchOS 7+.
  13. @note Currently Image/IO seems does not supports WebP encoding, if you need WebP encoding, use the custom codec below.
  14. @note If you need to support lower firmware version for WebP, you can have a try at https://github.com/SDWebImage/SDWebImageWebPCoder
  15. */
  16. API_AVAILABLE(ios(14.0), tvos(14.0), macos(11.0), watchos(7.0))
  17. @interface SDImageAWebPCoder : SDImageIOAnimatedCoder <SDProgressiveImageCoder, SDAnimatedImageCoder>
  18. @property (nonatomic, class, readonly, nonnull) SDImageAWebPCoder *sharedCoder;
  19. @end