Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - setting bit depth for OpenVG flash-player via composition manager?: (7 Items)
   
setting bit depth for OpenVG flash-player via composition manager?  
When running /bin/flash with openvg rendering, we can set the
bit depth using the format parameter in flash.conf:

extension {
	dll = hmip-openvg.so
	config {
           format = 565
        }
}


Is it possible to set the egl config more specifically?

We tried 

extension {
	dll = hmip-compmgr.so
	config {
	  winmgr_class = Flash
          egl_config = 11
	}
}

but it seems to have no effect.

We also tried 

begin display
 begin plane
  #FRANK - uncommented this line, not sure of the affects of this
  egl-config = 11
...

in winmgr.conf but it also had no effect.

Also, how is the default value for the format
and egl config value determined?

Re: setting bit depth for OpenVG flash-player via composition manager?  
If you want to set the EGL config used for the EGL surface that Flash initially renders into (Flash makes use of 
multiple surfaces), then you either as you mentoined, use the format parameter for the hmip_openvg.so extension.  If you
 really want to be more specific than that, this same extension supports a egl_config setting as well. So you'd use:

extension {
    dll = hmip_openvg.so
	config {
		egl_config = 11
	}
}

The egl_config setting you tried setting was for the hmip_compmgr.so extension and this just affects the EGL config used
 for the composition manager window itself.

I don't believe you normally want to do this though.  The intended way of configuring the player is to set the format 
for the openvg extension and all other EGL configs are based on this.  The various egl_config settings in the extensions
 are there more as a last resort if there are other considerations that the player has not taken into account.  If these
 settings are needed it really means we need to improve the player.  Using egl_config settings directly is risky since 
the values do not have a fixed meaning. Unless you ensure that you reassess the settings with any change to your target,
 you could end up using something quite different to what you want.
Re: setting bit depth for OpenVG flash-player via composition manager?  
Thank you Roger.

Now I understand that using the "format" configuration value
is the preferred way.

Thought to set the egl_config value directly in order to have
control over the physical layer where the player is being placed.

Is there any other way to set the flash player to a specific
hardware layer?

# likely these questions are covered in the documentation
# but for some reason my IDE cannot display the documentation
# (windows host)

--
Mate
RE: setting bit depth for OpenVG flash-player via composition manager?  
No doubt it's all a little confusing.  As I mentioned in my previous
message, there are several EGL surfaces involved here.  The settings for
hmip-openvg.so only controls the surface used for rendering off-screen.
There is no reason why you would want this one to be tied to a layer
since it is never visible.  You would probably just want to set its
format depending on whether you're wanting to render using 16 or 32
bits.

The egl_config setting you will want to set will be the setting for the
other extension, hmip-compmgr.so.  This is the extension that deals with
the composition manager window itself.  You would want to pick a config
that has the window bit set, has red, green, blue and alpha size that
matches the format you've chosen for hmip-openvg.so and has the layer
you want.  The split in responsibilities between the two extensions are
because hmip-compmgr.so can also be used with software rendering.

As to the problems you had when you tried to set the egl_config setting
of hmip-openvg.so, is the list of egl-configs you provide those obtained
when io-winmgr was running or before?  The egl configs that are relevant
to Flash are those that are available when io-winmgr is running. If you
used the other set, you might have chosen ones without the OpenVG bit
and it would have failed.  To see what egl configs Flash  chooses for
itself, you can add the configuration setting (to the main part of the
configuration, not the extensions):

	log_mask = configuration

you should see messages regarding the configuration that the player has
chosen for the render surface and window. 

Re: RE: setting bit depth for OpenVG flash-player via composition manager?  
Ohhh!  So I need the to get the configs for winmgr.conf before starting io-winmgr and need to get them for flash.conf 
after starting io-winmgr.

Was trying to use the configs from before starting io-winmgr in flash.conf

Thanks for the explanation, this should let us go!
RE: RE: setting bit depth for OpenVG flash-player via composition manager?  
Yes, you should find they change significantly before and after
io-winmgr is running.
Re: setting bit depth for OpenVG flash-player via composition manager?  
Tried using 

extension {
    dll = hmip_openvg.so
	config {
		egl_config = 11
	}
}

with values for egl_config: 3, 4, 10, 11 (also tried 1 and 2 though these
are not VG renderable so no surprise).

In each case flash displayed the following lines and the screen remained blank:

emerg: hmip_openvg: Create context failed: 0x3005  config:11
emerg: framebuffer alloc (640X480) failed

The output from egl-configs is attached and the output from use -i flash is like:
NAME=flash
DESCRIPTION=FlashLite Player
DATE=2009/04/15-09:09:18-EDT
STATE=experimental
HOST=cctrunk
USER=builder
VERSION=6.4.0
TAGID=9999@218225

The board is i.mx35 custom board.

Any advice what's going wrong?

# The player displays no problem when specifying "format=565"
# and not specifying egl_config at all.

Attachment: Text egl_configs.txt 7.21 KB