Commit Graph

1911 Commits

Author SHA1 Message Date
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
DreamPiggy ac47ce3a0d
Merge pull request #2303 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-04-26 10:43:35 +08:00
DreamPiggy 8f49d753b4 Remove the duplicated process to force decode (draw on bitmap context) in Image/IO's progressive decoding.
This is the bug in early version of Image/IO framework, but now it's already been fixed and duplicated process impact performance
2018-04-25 15:54:17 +08:00
DreamPiggy 5f85848aaa Merge branch 'fix_downloader_crash_iOS8' into 5.x 2018-04-25 14:22:55 +08:00
DreamPiggy 65537c4983 Remove the check for URLProtocol in custom loader to avoid crash on iOS 8. Let URLSession itself or download operation to parse the result. 2018-04-25 14:21:38 +08:00
DreamPiggy 830fb0d358 Merge branch 'fix_coder_implementation' into 5.x 2018-04-25 14:14:41 +08:00
DreamPiggy 0832da8d7c Avoid duplicated force decode for progressive WebP images 2018-04-25 13:39:06 +08:00
DreamPiggy 072b832375 Fix the issue for progressive decoding that do not parse the correct animated image scale. Update all coders 2018-04-25 12:59:44 +08:00
DreamPiggy a22a0e25f7 Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x
# Conflicts:
#	SDWebImage/SDImageCache.h
2018-04-25 10:56:51 +08:00
DreamPiggy 22e532c9e3 Fix function storeImageDataToDisk description 2018-04-24 21:32:26 +08:00
Bogdan Poplauschi bfa9670c2d
Merge pull request #2301 from plokijuhhb/plokijuhhb-patch-2
Fix function storeImageDataToDisk description
2018-04-24 16:05:57 +03:00
Bogdan Poplauschi 778322daf9
Merge pull request #2296 from dreampiggy/refactor_manager_logic
Refactor manager logic - Also suppoort ignore cache query
2018-04-24 15:39:17 +03:00
Bogdan Poplauschi e8ce9e89c5
Merge pull request #2299 from dreampiggy/feature_cache_namespace_prefix
Add the ability to custom the cache namespace prefix
2018-04-24 08:57:43 +03:00
plokijuhhb 745dc38986
Fix function storeImageDataToDisk description
New Pull Request Checklist

 I have read and understood the CONTRIBUTING guide

 I have read the Documentation

 I have searched for a similar pull request in the project and found none

 I have updated this branch with the latest master to avoid conflicts (via merge from master or rebase)

 I have added the required tests to prove the fix/feature I am adding

 I have updated the documentation (if necessary)

 I have run the tests and they pass

 I have run the lint and it passes (pod lib lint)

This merge request fixes / reffers to the following issues: ...

Pull Request Description

####Description
There are some problems in this description

Or using marco like SDWebImageCompat avoid deadlocks

#ifndef dispatch_queue_sync_safe
#define dispatch_queue_sync_safe(queue, block)\
if (strcmp(dispatch_queue_get_label(DISPATCH_CURRENT_QUEUE_LABEL), dispatch_queue_get_label(queue)) == 0) {\
block();\
} else {\
dispatch_sync(queue, block);\
}
#endif
2018-04-24 00:33:54 +08:00
DreamPiggy cfd68422dc Refactor current manager's internal implementation for that `loadImageWithURL:`. Separate to 3 parts (context preprocess, cache process, download process). Also introduce `SDWebImageFromLoaderOnly` feature to ignore cache at all
This is useful for some custom image loader where user does not need memory cache at all.
2018-04-21 15:12:17 +08:00
DreamPiggy bf85c53b77 Remove the unused header files in download operation 2018-04-21 14:33:02 +08:00
DreamPiggy 8269a0cd8e Add the ability to custom the cache namespace prefix. Which allow user to specify the correct namespace prefix by their own 2018-04-21 14:00:46 +08:00
DreamPiggy 3c478cbdf2 Merge branch 'refactor_loader_protocol' into 5.x 2018-04-21 10:53:42 +08:00
DreamPiggy 4b69f49c13 Rename the progressive download helper function to using `operation` instead of pass a progressive coder to make the logic more suitable for the caller 2018-04-21 10:53:23 +08:00
DreamPiggy be8fce5ddb Fix the download operation to specify correct error code for bad image data 2018-04-20 11:05:53 +08:00
DreamPiggy 70d9d31c0f Fix the wrong options issue 2018-04-20 11:05:35 +08:00
Bogdan Poplauschi efb764d587
Merge pull request #2265 from dreampiggy/improvement_module_framework
Improvement module framework
2018-04-19 14:13:44 +03:00
DreamPiggy 8ed4dcb884 Fix the warning of high version API on macOS 2018-04-19 17:51:55 +08:00
DreamPiggy 9c11886dc0 Update the test project to use modular headers instead of massive headers... 2018-04-19 17:25:39 +08:00
DreamPiggy 55e4ce35bd Replace all the demo project to use `#import <SDWebImage/SDWebImage.h>` module headers instead of massive headers 2018-04-19 17:25:39 +08:00
DreamPiggy f81480189d Add modulemap files for SDWebImage to support modular framework, move the WebP & GIF into subdirectory to make Podspec works 2018-04-19 17:25:39 +08:00
DreamPiggy 31b3726439 Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x
# Conflicts:
#	SDWebImage/SDWebImageCodersManager.m
2018-04-19 17:04:23 +08:00
Bogdan Poplauschi af0eaccbc5 Merge pull request #2292 from dreampiggy/refactor_cache_webcache_protocol
Fix the custom cache protocol naming
2018-04-19 10:39:39 +03:00
Bogdan Poplauschi eded5f026c Merge pull request #2293 from dreampiggy/refactor_naming_NSImge_category
Renaming the NSImage category naming to `NSImage+Compatibility`
2018-04-19 10:26:51 +03:00
Bogdan Poplauschi 09cb3ec083
Merge pull request #2256 from dreampiggy/feature_custom_loader
Feature custom image loader - Supports loader protocol
2018-04-19 10:07:06 +03:00
Bogdan Poplauschi 8154d16bb2
Merge pull request #2274 from dreampiggy/fix_coders_array
Fix the thread-safe issue for coders manager.
2018-04-19 08:34:43 +03:00
DreamPiggy 7cf58ad7c5 Renaming the NSImage category naming to `NSImage+Compatibility`, because it's only used for Cross-platform compatibility code. `Additions` is too wide 2018-04-18 21:14:34 +08:00
DreamPiggy d5074429f0 Add tests for custom loader protocol, using a test loader to specify loader function 2018-04-18 20:46:00 +08:00
DreamPiggy 60759f812a Refactor to only use one publish protocol for custom loader. Renaming image downloader description to loader 2018-04-18 20:46:00 +08:00
DreamPiggy 8292c0c1e9 Update the loader protocol to refactor the common image decoding process. 2018-04-18 20:26:14 +08:00
DreamPiggy 57db312cc5 Add `SDWebImageLoader` protocol for custom image loader. Also introduce the `SDWebImageLoadersManager` to manage multiple loaders with priority 2018-04-18 20:26:14 +08:00