The Source for Java Technology Collaboration

Home » java.net Forums » Mobile & Embedded » Blu-ray Disc Java

Thread: Java Exception "Image Fetcher" java.lang.OutOfMemoryError

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 1 - Last Post: Jul 10, 2008 4:39 AM by: markkurvers Threads: [ Previous | Next ]
terymas

Posts: 37
Java Exception "Image Fetcher" java.lang.OutOfMemoryError
Posted: Jul 9, 2008 11:33 AM
  Click to reply to this thread Reply

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

markkurvers

Posts: 4
Re: Java Exception "Image Fetcher" java.lang.OutOfMemoryError
Posted: Jul 10, 2008 4:37 AM   in response to: terymas
  Click to reply to this thread Reply

> 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




 XML java.net RSS