text: /*
   * This file is part of the HDWebImage package.
   * (c) Olivier Poitrey <rs@dailymotion.com>
   *
   * For the full copyright and license information, please view the LICENSE
   * file that was distributed with this source code.
   */
  
  #import "HDWebImageCompat.h"
  #import "NSData+ImageContentType.h"
  
  @interface UIImage (MultiFormat)
  
  /**
   * UIKit:
   * For static image format, this value is always 0.
   * For animated image format, 0 means infinite looping.
   * @note Note that because of the limitations of categories this property can get out of sync if you create another instance with CGImage or other methods.
   * AppKit:
   * NSImage currently only support animated via GIF imageRep unlike UIImage.
   * The getter of this property will get the loop count from GIF imageRep
   * The setter of this property will set the loop count from GIF imageRep
   */
  @property (nonatomic, assign) NSUInteger HD_imageLoopCount;
  
  /**
   * The image format represent the original compressed image data format.
   * If you don't manually specify a format, this information is retrieve from CGImage using `CGImageGetUTType`, which may return nil for non-CG based image. At this time it will return `HDImageFormatUndefined` as default value.
   * @note Note that because of the limitations of categories this property can get out of sync if you create another instance with CGImage or other methods.
   */
  @property (nonatomic, assign) HDImageFormat HD_imageFormat;
  
  + (nullable UIImage *)HD_imageWithData:(nullable NSData *)data;
  - (nullable NSData *)HD_imageData;
  - (nullable NSData *)HD_imageDataAsFormat:(HDImageFormat)imageFormat;
  
  @end
  