java - Other options for lossless image saving in Android? -
my application needs save large images in lossless format. i'm willing sacrifice disk space speed of saving , i'd prefer save in standardised format instead of rolling own.
i've found built-in .png encoder slow needs, taking 5 seconds save 1000x1000 image. i've found can save images quicker saving raw pixel values disk (i.e. no compression) , saving raw pixel values compressed java's deflate class tweaked compression settings. unfortunately, there no option alter android's png compression level know of.
what options have?
i'm prepared use ndk i'm cautious using external library hasn't been tested on android. example, libtiff candidate can't find info on getting working in ndk , how stable is.
just throwing out there newest version of opencv 2.2 comes ndk port android. includes several image libraries including libpng , libtiff.
i haven't tested use of via jni interface or stability @ least compiles readily android using ndk.
Comments
Post a Comment