Android max image/texture resolution
Asked Answered
H

1

0

I did a quick google search, but I couldn't find the max image/texture resolution for android. I currently have an image that is crashing , but when I lower the resolution it works. I dont want to just trial and error the resolutions to see if it works, some solid numbers showing limitations would be ideal.

A link to the android documentation would be fine as well. I personally don't find it intuitive.

Hillhouse answered 10/6, 2011 at 16:52 Comment(3)
Which do you want to know? Drawable image or OpenGL Texture? If the latter, it would be depend on the hardware.Barouche
What kind of exception are you seeing thrown?Carpeting
Another post: #8573678Sisyphean
C
2

If it fails at a high resolution but works with a lower resolution, it sounds to me like you might be hitting a memory limit.

Have a look at this post on Image memory cost

1200 dpi - 7200x4800  (34,560,000 pixels)  - 103,680,000 bytes (99 MB)
2400 dpi - 14400x9600 (138,240,000 pixels) - 414,720,000 bytes (396 MB)

If you are pushing into the range of 130 million pixels, you are well over on your (fair) memory consumption, at least on most of today's mobile hardware.

UPDATE

Here is another post discussing issues related to photos and memory

Carpeting answered 10/6, 2011 at 17:43 Comment(1)
I believe that is it more likely that he was hitting the texture size limit, not out of memory errors.Linsang

© 2022 - 2024 — McMap. All rights reserved.