/* * This file is part of the SDWebImage package. * (c) Olivier Poitrey * * Created by james on 9/28/11. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ #import #import "SDWebImageCompat.h" @protocol SDWebImageDecoderDelegate; @interface SDWebImageDecoder : NSObject { NSOperationQueue *imageDecodingQueue; } + (SDWebImageDecoder *)sharedImageDecoder; - (void)decodeImage:(UIImage *)image withDelegate:(id )delegate userInfo:(NSDictionary *)info; @end @protocol SDWebImageDecoderDelegate - (void)imageDecoder:(SDWebImageDecoder *)decoder didFinishDecodingImage:(UIImage *)image userInfo:(NSDictionary *)userInfo; @end @interface UIImage (ForceDecode) + (UIImage *)decodedImageWithImage:(UIImage *)image; @end