CGImage+WebP.h 873 B

12345678910111213141516171819202122232425262728
  1. //
  2. // CGImage+WebP.h
  3. // Pods
  4. //
  5. // Created by yeatse on 2016/10/20.
  6. //
  7. //
  8. #import <CoreGraphics/CoreGraphics.h>
  9. CF_IMPLICIT_BRIDGING_ENABLED
  10. CF_ASSUME_NONNULL_BEGIN
  11. // still image
  12. CGImageRef __nullable WebPImageCreateWithData(CFDataRef webpData);
  13. CFDataRef __nullable WebPDataCreateWithImage(CGImageRef image, bool isLossy, float quality);
  14. // animated image
  15. CG_EXTERN const CFStringRef kWebPAnimatedImageDuration;
  16. CG_EXTERN const CFStringRef kWebPAnimatedImageLoopCount;
  17. CG_EXTERN const CFStringRef kWebPAnimatedImageFrames; // CFArrayRef of CGImageRef
  18. uint32_t WebPImageFrameCountGetFromData(CFDataRef webpData);
  19. CFDictionaryRef __nullable WebPAnimatedImageInfoCreateWithData(CFDataRef webpData);
  20. CFDataRef __nullable WebPDataCreateWithAnimatedImageInfo(CFDictionaryRef imageInfo, bool isLossy, float quality);
  21. CF_ASSUME_NONNULL_END
  22. CF_IMPLICIT_BRIDGING_DISABLED