2

I am new to android and i want to decode JPEG images for further processing. I used BitmapFactory.decodeByteArray but it takes a lot of time to decode. How can SKIA be used to decode JPEGs efficiently any sample codes aur link to tutorial would be appreciated

Ahmed_Faraz
  • 615
  • 4
  • 25
  • are you already using skia in the app? – lelloman Mar 22 '17 at 12:18
  • Have you applied necessary optimization flags to `BitmapConfig` before decoding the resource? E.g. maybe your source is 100MB, you don't need that much memory occupied (which will result in OutOfMemoryException), you can ask to decode a downsampled image. – azizbekian Mar 22 '17 at 12:18
  • Optimization flags didn't really help moreover i am decoding an image of size 1024x768 and i cant subsample it because i need the the same resolution for further processing. how can i verify that my code is using hardware jpeg decoder – Ahmed_Faraz Mar 27 '17 at 05:52

0 Answers0