Commit Graph

2096 Commits

Author SHA1 Message Date
DreamPiggy 6661575432
Merge pull request #2340 from hulizhen/optimization/replace-synchronized
Replace @synchronized with dispatch_semaphore_t in SDWebImageManager
2018-05-30 15:28:20 +08:00
Lizhen Hu 3ee1b60678 Revert replacement of @synchronized in SDWebImageCombinedOperation 2018-05-30 14:57:41 +08:00
Lizhen Hu 0b8207b1d2 Refactor in SDWebImageManager 2018-05-30 13:58:47 +08:00
Lizhen Hu 1aced8aa62 Remove unused header file 2018-05-28 23:26:09 +08:00
Lizhen Hu 09020fac87 Replace @synchronized lock with dispatch_semaphore lock for SDWebImageCombinedOperation 2018-05-28 23:14:12 +08:00
Lizhen Hu 7dc38751e9 Use non-recursive lock for runningOperations in SDWebImageManager 2018-05-28 23:10:40 +08:00
Lizhen Hu a6e3907f26 Replace @synchronized with pthread_mutex_t & dispatch_semaphore_t in SDWebImageManager 2018-05-28 13:35:19 +08:00
DreamPiggy 76f7eacdd0
Merge pull request #2329 from zhongwuzw/fix-async
Minor optimize for dispatch_queue_async_safe
2018-05-25 13:20:09 +08:00
xucg 91a8227ab1 add unit test 2018-05-24 20:27:48 +08:00
xucg 6ab801b780 remove addProgressCallback, add createDownloaderOperationWithUrl 2018-05-24 16:50:50 +08:00
DreamPiggy 994bf0fe38 Add the support for watchOS to use View Category method (sd_setImageWithURL:) on WKInterfaceImage 2018-05-24 03:08:56 +08:00
DreamPiggy 522e729094
Merge pull request #2330 from dreampiggy/bugfix_watchOS_animated_image
Fix that watchOS UIImage+WebCache does not mark as available and cause crash
2018-05-24 02:06:33 +08:00
DreamPiggy 0471861d23 Fix that watchOS UIImage+WebCache does not mark as available and cause crash 2018-05-24 01:37:11 +08:00
DreamPiggy 3ee6c01b22
Merge pull request #2328 from zhongwuzw/fix-safe-async
Remove dispatch_queue_async_safe && optimize dispatch_main_async_safe
2018-05-23 11:31:07 +08:00
DreamPiggy 6d7d89cd3b
Merge branch '5.x' into fix-safe-async 2018-05-22 20:43:57 +08:00
zhongwuzw 7515f06b44 Minor optimize for dispatch_queue_async_safe 2018-05-22 20:34:41 +08:00
zhongwuzw 7d170d47d9 Remove dispatch_queue_async_safe && optimize dispatch_main_async_safe 2018-05-21 17:51:07 +08:00
DreamPiggy 42e9376db4
Merge pull request #2327 from dreampiggy/bugfix_macOS_incremental_decoding
Fix the progressive decoding bug on macOS. Including image orientation & SDAnimatedimageView
2018-05-21 17:37:18 +08:00
DreamPiggy a34133b864 Fix the progressive decoding bug on macOS. Including image orientation & SDAnimatedimageView 2018-05-21 15:50:06 +08:00
DreamPiggy 0a0bdc92db Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x
# Conflicts:
#	SDWebImage/SDWebImageImageIOCoder.m
#	SDWebImage/SDWebImageWebPCoder.m
#	Tests/Tests/SDImageCoderTests.m
2018-05-17 11:24:47 +08:00
DreamPiggy e9527b393a Add optimalFrameCacheSize && predrawingEnabled options for FLAnimatedImage. It makes users to set optimal frame cache size of FLAnimatedImage after image load. 2018-05-16 15:35:55 +08:00
Bogdan Poplauschi 1f50833567
Merge pull request #2319 from dreampiggy/bugfix_5.x_image_cache_options
Bugfix 5.x image cache options
2018-05-11 13:15:28 +03:00
Bogdan Poplauschi 55d65569dc
Merge pull request #2318 from dreampiggy/bugfix_WebP_encode_color_mode
Fix WebP Encoding only works for RGBA8888 CGImage but not other color mode
2018-05-11 13:14:43 +03:00
DreamPiggy 55584b7e91 Remove one unused header 2018-05-10 14:49:48 +08:00
DreamPiggy 5df8f2a8b9 Fix image cache options issue, remove the unused `SDImageCacheTransformAnimatedImage` 2018-05-10 14:49:15 +08:00
DreamPiggy 18ee2352b0 Fix WebP Encoding only works for RGBA8888 CGImage but not other color mode.
Detect the current CGImage color mode, covert the all other case to RGB888/RGBA8888 using vImage
2018-05-10 14:22:51 +08:00
Bogdan Poplauschi 12fe445498
Merge pull request #2315 from dreampiggy/improvement_image_transition_user_interaction
Add `UIViewAnimationOptionAllowUserInteraction` as default options for convenient image transition
2018-05-09 12:50:53 +03:00
Bogdan Poplauschi df69e8c492
Merge pull request #2311 from dreampiggy/bugfix_WebP_encode_color_mode
Bugfix webp encode color mode
2018-05-09 12:47:07 +03:00
Bogdan Poplauschi 02b0f8cb14
Merge pull request #2312 from dreampiggy/feature_cache_query_options
Add options to specify query cache sync/async behavior
2018-05-09 12:41:57 +03:00
DreamPiggy e9c824c95f
Merge pull request #2314 from dreampiggy/fix_duplicated_force_decode_imageIO
Remove the duplicated process to force decode (draw on bitmap context) in Image/IO's progressive decoding.
2018-05-07 19:41:40 +08:00
DreamPiggy 7ae1c149ad
Merge pull request #2313 from dreampiggy/performance_image_orientation
Remove the extra calculation of image orientation for ImageIO coder
2018-05-07 18:17:06 +08:00
DreamPiggy ec37a48ba3 Add `UIViewAnimationOptionAllowUserInteraction` as default options for convenient image transition 2018-05-04 16:48:52 +08:00
DreamPiggy ab854e3575 Remove the duplicated process to force decode (draw on bitmap context) in Image/IO's progressive decoding. 2018-05-04 16:38:17 +08:00
DreamPiggy c6fa6e31fb Remove the extra calculation of image orientation for ImageIO coder 2018-05-04 16:30:39 +08:00
DreamPiggy d7ceb2764b Add options to specify query cache sync/async behavior. This can help for web cache manager to avoid flashing during cell reusing. 2018-05-03 21:00:20 +08:00
DreamPiggy 9bf79ab85b Fix WebP Encoding only works for RGBA8888 CGImage but not other color mode.
Detect the current CGImage color mode, covert the all other case to RGB888/RGBA8888 using vImage
2018-05-02 23:43:27 +08:00
Bogdan Poplauschi ebfe2cedc2 Merge pull request #2306 from dreampiggy/renaming_coder_protocol_and_coders
Renaming coder protocol and coders
2018-04-26 19:08:34 +03:00
Bogdan Poplauschi 18ecf8f96e Merge pull request #2305 from dreampiggy/renaming_coder_helper
Renaming SDWebImageFrame & SDWebImageCoderHelper
2018-04-26 18:54:50 +03:00
Bogdan Poplauschi 5bedca7473
Merge pull request #2304 from dreampiggy/renaming_image_transformer
Renaming image transformer
2018-04-26 18:49:52 +03:00
Bogdan Poplauschi f185418014
Merge pull request #2294 from dreampiggy/renaming_progressive_load
Renaming progressive load
2018-04-26 18:45:23 +03:00
DreamPiggy 0423cc2cf0 Update the test for image coder renaming 2018-04-26 23:21:26 +08:00
DreamPiggy 6e5a0ea5f0 Rename Image/IO GIF APNG WebP coders to without `Web` prefix.
Rename `SDWebImageCodersManager` to `SDImageCodersManager`
2018-04-26 23:12:54 +08:00
DreamPiggy 15bceab71c Rename `SDWebImageCoder` to `SDImageCoder`.
Rename `SDWebImageProgressiveCoder` to `SDProgressiveImageCoder`
Rename `SDWebImageAnimatedCoder` to `SDAnimatedImageCoder`
2018-04-26 23:05:13 +08:00
DreamPiggy 9ee3dac978 Renaming `SDWebImageFrame` -> `SDImageFrame`. `SDWebImageCoderHelper` -> `SDImageCoderHelper` 2018-04-26 23:04:20 +08:00
DreamPiggy a5616e2bcd Update the test for renaming 2018-04-26 23:03:44 +08:00
DreamPiggy e862ea1b8e Rename all `SDWebImageTransformer` to `SDImageTransformer` 2018-04-26 23:03:44 +08:00
DreamPiggy 5d7625f567 Fix the HTTP auth test again 2018-04-26 23:02:45 +08:00
DreamPiggy 189dc814f1 Fix the test about HTTP Auth for downloader 2018-04-26 22:08:03 +08:00
DreamPiggy 425d78de12 Renaming the `downloadOperation` to `loaderOperation` in `SDWebImageCombinedOperation` 2018-04-26 21:48:34 +08:00
DreamPiggy e9cf356e57 Renaming `SDWebImageProgressiveDownload` to `SDWebImageProgressiveLoad`. Which is more suitable for custom loader which also support progressive image loading. (No need to be download) 2018-04-26 21:42:25 +08:00