ios- decompress PNG directly to disk -


i have large png want uncompressed file, don't have memory capacity on device expand png in memory, file.

is there native ios method uncompress png each scan line? alternatives?

update:

libpng - reading image data - http://www.libpng.org/pub/png/libpng-1.2.5-manual.html#section-3.8

for non-interlaced pngs

png_read_rows(png_ptr, row_pointers, null, number_of_rows);

as , idea how start:

take how doing java png decompressing algorithm. java should have open-source files. maybe has ios idk. uncompress algorithm idea. should around 1k-5k lines of code.

when know how it, implement @ ios read chunk of file , export file, read chunk , process , export it. know easy , @ least theoretically working. maybe public in site. libpng can starting point.

png looseness compression zip. there have remember runtime built data table. table depends how big is, maybe need swapped to disk, makes longer decompression process.

good luck!


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo