Skip to main content

Background Layer

3 replies [Last post]
hooligancat
Offline
Joined: 2009-10-20
Points: 0

Does the backgound layer make use of the available image buffer memory, thereby reducing the available memory or does it have its' own buffer?

According to the MHP spec disposing of the HBackgroundDevice will free the resources but on some implementations, it will also remove the image. Does this apply to blu-ray?

I am assuming that even though it loads as a jpg it gets converted to a bitmap, so the normal paradigm of 1920*1080*4 is still appropriate for buffer management.

Thanks for any insight.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joe Rice

My understanding is that it consumes image buffer when the image object is created, before it's loaded into the background device, after which point the image data can be flushed and the image buffer memory reclaimed. And yes, as a 16-bit image, H * W * 4 is the appropriate calculation.

Cheers,
Joe

On Dec 28, 2009, at 8:50 AM, bd-j-dev@mobileandembedded.org wrote:

> Does the backgound layer make use of the available image buffer memory, thereby reducing the available memory or does it have its' own buffer?
>
> According to the MHP spec disposing of the HBackgroundDevice will free the resources but on some implementations, it will also remove the image. Does this apply to blu-ray?
>
> I am assuming that even though it loads as a jpg it gets converted to a bitmap, so the normal paradigm of 1920*1080*4 is still appropriate for buffer management.
>
> Thanks for any insight.
> [Message sent by forum member 'hooligancat' (adame@tellx.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=377813
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: bd-j-dev-unsubscribe@hdcookbook.dev.java.net
> For additional commands, e-mail: bd-j-dev-help@hdcookbook.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: bd-j-dev-unsubscribe@hdcookbook.dev.java.net
For additional commands, e-mail: bd-j-dev-help@hdcookbook.dev.java.net

hooligancat
Offline
Joined: 2009-10-20
Points: 0

Ah, so the image can be loaded with

HBackgroundImage backimage = new HBackgroundImage(filename);

then displayed with

backconfig.displayImage(backimage);

and then released with

backimage.flush();

which will flush the image from the image buffer. The image is only released from the display when

backdevice.releaseDevice();

is called. Which means we only need to be careful with the buffer when the image is first loaded.

Thanks

jkinzer
Offline
Joined: 2006-04-18
Points: 0

I believe that the background plane uses video memory for displaying background images.

Someone please correct me if I am wrong.