/*
* This file is part of the YSSDWebImage 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 "YSSDAssociatedObject.h"
#import "UIImage+YSMetadata.h"
#import "UIImage+YSExtendedCacheData.h"
#import "UIImage+YSMemoryCacheCost.h"
#import "UIImage+YSForceDecode.h"

void YSSDImageCopyAssociatedObject(UIImage * _Nullable source, UIImage * _Nullable target) {
    if (!source || !target) {
        return;
    }
    // Image Metadata
    target.yssd_isIncremental = source.yssd_isIncremental;
    target.yssd_imageLoopCount = source.yssd_imageLoopCount;
    target.yssd_imageFormat = source.yssd_imageFormat;
    // Force Decode
    target.yssd_isDecoded = source.yssd_isDecoded;
    // Extended Cache Data
    target.yssd_extendedObject = source.yssd_extendedObject;
}
