Hi all!
I have a problem with CIContext as well as CGContext internal caching.
The problem is formulated on StackOverflow: https://stackoverflow.com/questions/53225002/is-there-a-way-to-read-data-from-cgimage-without-internal-caching
I don't know if it matters, but my app is iOS Photo Extension.
What I'd like to ask here: do you know some "rules" when functions like CGContextDrawImage/CGDataProviderCopyData start to do internal caching? I mean, why in some cases they do it and in some cases not?
Why do they do it? How can I prevent/clear it?
I'd be glad for any suggestions.
P.S. If linking to StackOverflow isn't enough, I'll post the problem description here.