Re: Question on handling very large images

2012-03-03 Thread Marco Tabini
> The problem is that if you do this in a naive way, with a single huge pixmap, > you will have poor locality of reference. Once you get to 1024 RGBA pixels > across, every scan-line will occupy its own memory page. So any operation > that crosses lots of scan lines but only uses a small fractio

Re: Question on handling very large images

2012-03-02 Thread Jens Alfke
On Mar 2, 2012, at 11:05 AM, Marco Tabini wrote: > My first instinct is to use a memory-mapped file (e.g.: using NSMutableData) > to hold the data while I work on it, but I worry that it will be very slow > and that I'm missing a much simpler solution. I don’t think you can get around the need

Question on handling very large images

2012-03-02 Thread Marco Tabini
Hi Everyone, I find myself in the situation of having to manipulate and display a few very large images in an app running on iOS (potentially in the tens of megapixels at 24 bits/pixel), and I am trying to figure out what the correct pattern for doing so is. I've Googled for solutions, but the