ios - What's the most efficient way to get a decoded CGImage from a JPEG backed CGImage? -


i surprised today jpeg backed cgimage backed calayer (i mean [[jpeg backed cgimage] backed calayer]) slow 8mp photo felt no gpu there.

i tried creating new bitmap backed cgimage drawing original cgimage cgbitmapcontext, solved speed problem somehow. brought 6xmb memory burst (from 3mb) , took 1s or drawing thing.

is there way decoded image original cgimage? or other ways make jpeg backed cgimage faster, maybe tell use cache bitmap , never trash it?


i switched cgdataprovidercopydata approach. little faster, still takes 0.8s on iphone 4s. start wonder what's mechanism behind calayer backed encoded source? gets slow when image shrunk , more part of image got shown. not slow 1fps when whole picture shown (actually can still 10fps).


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

html - Repeat image to extend header to fill screen -

javascript - Backbone.js getting target attribute -