UIImage+WebP.h 790 B

1234567891011121314151617181920212223242526272829
  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. #ifdef SD_WEBP
  9. #import "SDWebImageCompat.h"
  10. @interface UIImage (WebP)
  11. /**
  12. * Get the current WebP image loop count, the default value is 0.
  13. * For static WebP image, the value is 0.
  14. * For animated WebP image, 0 means repeat the animation indefinitely.
  15. * Note that because of the limitations of categories this property can get out of sync
  16. * if you create another instance with CGImage or other methods.
  17. * @return WebP image loop count
  18. */
  19. - (NSInteger)sd_webpLoopCount;
  20. + (nullable UIImage *)sd_imageWithWebPData:(nullable NSData *)data;
  21. @end
  22. #endif