|
Replies:
1
-
Last Post:
Jul 10, 2008 4:39 AM
by: markkurvers
|
Threads:
[
Previous
|
Next
]
|
|
|
|
|
|
Java Exception "Image Fetcher" java.lang.OutOfMemoryError
Posted:
Jul 9, 2008 11:33 AM
|
|
|
Hi all, I try to load image with MediaTracker and Toolkit.getDefaultToolkit.getImage... I created several project with smale .png without issues.
I now, I try to load several png 1920x1080 and I have this issue : ( My BD play on Power DVD but not on PS3 I can't see my images.
I though in BD-J that we can load 45MB ? and my images made 1MB, I don't understand...
Tery
|
|
|
|
|
|
|
Re: Java Exception "Image Fetcher" java.lang.OutOfMemoryError
Posted:
Jul 10, 2008 4:37 AM
in response to: terymas
|
|
|
> Hi all, I try to load image with MediaTracker and > Toolkit.getDefaultToolkit.getImage... > I created several project with smale .png without > issues. > > I now, I try to load several png 1920x1080 and I have > this issue : ( > My BD play on Power DVD but not on PS3 I can't see my > images. > > I though in BD-J that we can load 45MB ? and my > images made 1MB, I don't understand... > > Tery
Hey,
I think the problem is that while PNG images might be compressed to 1 MB, they are loaded into the image memory uncompressed (to allow them to be drawn on the screen). This means that a full HD image that is stored as uncompressed ARGB in memory takes up about 1920 x 1080 x 4 = 8 MB of memory (6 MB if they are stored RGB).
So if image memory is limited to 45 MB you could theoretically load a maximum of 5 full HD images.
Hope this helps.
Message was edited by: markkurvers
|
|
|
|
|