Olivier Poitrey
043eb14273
Fix an LLVM warning ( fix #254 )
2012-12-19 12:16:48 +01:00
Olivier Poitrey
5f7d288645
Merge pull request #252 from reidmain/master
...
decodedImageWithImage: ignores scale and orientation
2012-12-15 15:23:06 -08:00
Reid Main
f800a52f1c
Fixed bug where decodedImageWithImage: ignored image scale and orientation.
2012-12-15 17:59:00 -05:00
Olivier Poitrey
7cd4d8e155
Merge pull request #249 from matej/early-progress-callback
...
Early progress callback
2012-12-13 15:25:28 -08:00
Matej Bukovinski
7ba77023c7
Using spaces instead of tabs for indentation.
...
- also configured the Xcode project to use spaces instead of tabs by default
2012-12-14 00:18:17 +01:00
Matej Bukovinski
85759911b7
Changed the expected size to -1 in the initial progress callback.
...
- simplifies callback code by removing possible division by 0 issues during progress computation
2012-12-14 00:18:00 +01:00
Matej Bukovinski
b4fb940cbc
Send out progress callbacks sooner.
...
- as soon as the NSURLConnection gets initialized
- helps to allocate and show progress indication sooner and prevent large delays without progress indication (for example when the server takes long to respond)
- estimated size is always 0 at this point, clients can use this to decide if they want to handle this callback or skip it
2012-12-14 00:17:24 +01:00
Matej Bukovinski
37f71de26c
Using the source image's the color space for image decoding ( fix #237 )
...
Should fix most system warnings regarding invalid context configurations
2012-12-13 23:11:40 +01:00
Olivier Poitrey
a94b3eca7c
Fix typo ( fix #246 )
2012-12-11 23:36:55 +01:00
Olivier Poitrey
d3b5fd2bd2
Fix ARC compilation warning breaking some non-ARC projects ( fix #229 )
2012-12-11 16:11:06 +01:00
Olivier Poitrey
e3d8bc8daf
Fix podspec typo ( fix #240 )
2012-12-10 15:31:44 +01:00
Olivier Poitrey
84fe4a6669
Fix indentation tab/space
2012-12-10 15:30:54 +01:00
Olivier Poitrey
616d824dc7
Return an error if the downloaded image has no pixels ( fix #241 )
2012-12-10 15:30:54 +01:00
Olivier Poitrey
21ff7bd6ff
Do not use GCD barrier for reading
2012-12-10 15:30:54 +01:00
Olivier Poitrey
43e94e7380
Fix typo
2012-12-06 09:26:19 +01:00
Olivier Poitrey
12ab710ebc
Add 2.0-compat branch info to README
2012-12-06 09:24:09 +01:00
Olivier Poitrey
0691f7cd97
Remove podspect tag
2012-12-06 09:22:35 +01:00
Olivier Poitrey
ddd03f7d2c
Add some sanity check on the URL parameter
2012-11-29 18:52:28 +01:00
Olivier Poitrey
4284b5797e
Remove no longer necessary cleanMemory on app going to background as NSCache does this by itself
2012-11-29 18:52:28 +01:00
Olivier Poitrey
d487bccf5e
Try to fix a random crash on dealloc
2012-11-29 18:52:28 +01:00
Olivier Poitrey
82faab82d3
Do not capture self in operations in categories
2012-11-29 18:52:28 +01:00
Olivier Poitrey
10c44577f6
Fix SDWebImagePrefetcher maxConcurrentDownloads property
2012-11-20 14:49:27 +01:00
Alex Barlow
44c6224763
Fix bug in SDWebImagePrefetcher where startPrefetchingAtIndex would never be called due to is always being 0
2012-11-20 14:45:34 +01:00
Olivier Poitrey
1ec36c7c99
Do not init an activity indictor if image isn't downloading in demo app (good practice)
2012-11-19 18:30:31 +01:00
Olivier Poitrey
a7af2a19e4
Try to fix decode image error message
2012-11-19 17:59:26 +01:00
Olivier Poitrey
6e99059007
Fix demo app regarding last changes
2012-11-19 16:58:45 +01:00
Matej Bukovinski
9546c84f94
Making sure cache queries always callback in the main thread.
...
- queryDiskCacheForKey:done: now always invokes the callback in the main thread
- removed the now redundant main thread dispatch in the image manager class
2012-11-19 16:17:27 +01:00
Matej Bukovinski
713a83381f
Resolved some downloader threading issues.
...
- callbacks could be released between the callback existence if check and invocation
- could be nilled out in a background thread call to done, while being prepared for invocation on the main thread
- now making sure done is always performed on the main thread
- also added some related threading fixes and optimizations
2012-11-19 16:17:20 +01:00
Matej Bukovinski
331053d26e
Calling completion callbacks in the main thread.
...
- made sure this is true even if the downloader is used on its own
- SDWebImageManager doesn't need to perform a dispatch to the main thread any longer
2012-11-19 16:06:05 +01:00
Matej Bukovinski
9a3aff4851
Always making callbacks using the main thread.
...
Even if using the downloader directly without SDWebImageManager.
2012-11-19 16:03:39 +01:00
Matej Bukovinski
ab185ea6e8
Implemented progress callbacks and related fixes.
2012-11-19 15:58:50 +01:00
Matej Bukovinski
2e8c02556a
Passing the exact cache type in the completion block.
...
- none, disk and memory
- can still be used as a bool (if true there was a cache hit)
2012-11-19 15:55:09 +01:00
Matej Bukovinski
5c94f17a17
Disk cache now uses the raw image data returned from the server.
...
This preserves the image quality and retains some image attributes, such as the alpha channel (for non-jpeg images).
2012-11-19 15:50:30 +01:00
Matej Bukovinski
d30c2ae209
Improved background image decoding performance.
...
Tests on large images indicate an up to 4x improvement with regard to the time spent in decodedImageWithImage:.
2012-11-19 15:50:22 +01:00
Olivier Poitrey
022aa2146e
Fix a race condition ( fix #220 )
2012-11-14 00:59:40 +01:00
Olivier Poitrey
0920e7a001
Add activity indicator demo
2012-11-13 18:09:39 +01:00
Olivier Poitrey
0c1dd3c857
Fix CGBitmapContextCreate errors ( fix #204 )
2012-11-12 00:05:52 +01:00
Olivier Poitrey
152c75f437
Merge pull request #219 from SRandazzo/patch-1
...
Fix documentation directive
2012-11-09 06:25:59 -08:00
Salvatore Randazzo
bd72fe1034
Fix documentation directive
2012-11-09 09:05:49 -05:00
Olivier Poitrey
7b947163da
Copy all stored blocks
2012-11-09 11:05:18 +01:00
Olivier Poitrey
8f50bf6322
Set max concurrent to 2 by default
2012-11-08 17:58:22 +01:00
Olivier Poitrey
3109110dc0
Fix lazy copy/pasted typo
2012-11-07 17:15:11 +01:00
Olivier Poitrey
2eee009392
Add some doc
2012-11-07 02:04:55 +01:00
Olivier Poitrey
e343bdfb42
Add details on `finished` parameter
2012-11-06 18:32:15 +01:00
Olivier Poitrey
95be2aad35
Inline conditions are baaad
2012-11-06 18:28:14 +01:00
Olivier Poitrey
b29bb2e2e1
Do not call completed block on categories for intermediate progressive images
2012-11-06 18:24:57 +01:00
Olivier Poitrey
e5b0d22e64
Do not break category API (cf previous commit)
2012-11-06 18:22:18 +01:00
Olivier Poitrey
2904559f54
Fix progressive mode
2012-11-06 18:14:22 +01:00
Olivier Poitrey
1f0a8f4b13
Use the correct setter sementics for dispatch (fix 213)
2012-11-06 17:18:51 +01:00
Olivier Poitrey
541f3a1284
Fix cancel not cancelling connection
2012-11-06 14:04:12 +01:00