forked from SDWebImage/SDWebImage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSDWebImageDecoder.h
36 lines (25 loc) · 929 Bytes
/
SDWebImageDecoder.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* This file is part of the SDWebImage package.
* (c) Olivier Poitrey <[email protected]>
*
* Created by james <https://github.com/mystcolor> on 9/28/11.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#import <Foundation/Foundation.h>
#import "SDWebImageCompat.h"
@protocol SDWebImageDecoderDelegate;
@interface SDWebImageDecoder : NSObject
{
NSOperationQueue *imageDecodingQueue;
}
+ (SDWebImageDecoder *)sharedImageDecoder;
- (void)decodeImage:(UIImage *)image withDelegate:(id <SDWebImageDecoderDelegate>)delegate userInfo:(NSDictionary *)info;
@end
@protocol SDWebImageDecoderDelegate <NSObject>
- (void)imageDecoder:(SDWebImageDecoder *)decoder didFinishDecodingImage:(UIImage *)image userInfo:(NSDictionary *)userInfo;
@end
@interface UIImage (ForceDecode)
+ (UIImage *)decodedImageWithImage:(UIImage *)image;
@end