ibireme / YYImage

Image framework for iOS to display/encode/decode animated WebP, APNG, GIF, and more.
MIT License
1.77k stars 482 forks source link

Support progressive webp decoding #87

Open neil4dong opened 7 years ago

neil4dong commented 7 years ago

请问现在有计划在将来支持webp的渐进式加载吗

dreampiggy commented 7 years ago

I think it can't be simply implement. The built-in progressive image always use ImageIO, which use CGImageSourceCreateIncremental to create and CGImageSourceUpdateData to update the image data each time it downloaded from NSURLSession delegate.

libwebp support progressive load with WebIRGBA() or something. It currently (version 0.6) only support progressive decoding for static WebP. If you're interested in this, try to learn from this PR ?(I do not have time to contribute to YY):

https://github.com/rs/SDWebImage/pull/1987/files#diff-29646b04d769e34438b2d7f56ca35323R168