Home
Support

Knowledge Base

BSPs and drivers
Community resources
Product documentation
Questions?
Contact us

io-winmgr on iMX35 and compositing a graphical application with HMI Flash player
 
________________________________________________________________________

Applicable Environment
________________________________________________________________________
  • Topic: io-winmgr, compositing a graphical application with HMI Flash Player
  • SDP: 6.4.1
  • Target: iMX35
________________________________________________________________________

Recommendation
________________________________________________________________________

The following configuration can be used for composting a graphical application (say based on OpenVG) and an Aviage HMI Flash Player instance onto the same display using the two hardware layers available in an iMx35 target.

Setup your winmgr.conf file to include the following settings:
----
begin display
begin plane
wfd-pipeline = 1
background = 000000
end plane
begin plane
wfd-pipeline = 2
source-chroma = on
background = 00ff00
end plane
end display
----
This will setup up the background layer with a black default and then a foreground layer that will use chroma-key blending (to green 00ff00 in this case).

Setup your flash.conf configuration file to include the following settings:
----
extension {
dll = hmip-compmgr.so
config {
window_manager = false
winmgr_class = Flash
winmgr_id = Flash Window
egl_config = 11
}
}
----
Where egl_config 11 has the following configuration reported from io-winmgr on the target system:
---
<config>
<id>11</id>
<config_caveat>EGL_NONE</config_caveat>
<buffer_size>16</buffer_size>
<red_size>5</red_size>
<green_size>6</green_size>
<blue_size>5</blue_size>
<alpha_size>0</alpha_size>
<alpha_mask_size>0</alpha_mask_size>
<depth_size>0</depth_size>
<stencil_size>0</stencil_size>
<level>1<level>
<renderable_type>EGL_OPENVG_BIT</renderable_type>
<native_renderable>no</native_renderable>
<native_visual_type>GF_FORMAT_PACK_RGB565</native_visual_type>
<samples>0</samples>
<sample_buffers>0</sample_buffers>
<surface_type>EGL_PBUFFER_BIT|EGL_PIXMAP_BIT|EGL_WINDOW_BIT|
EGL_SWAP_BEHAVIOR_PRESERVED_BIT|EGL_LOCK_SURFACE_BIT_KHR</surface_type>
</config>
---

Using flash in this configuration and keeping in mind that 'green' RGB=0x00ff00 in this case is the chroma key. Thus if you also use say an OpenVG application configured to draw to layer 0, any pixels in the flash application will allow the underlying (layer 0) application pixels to be seen.

This is a description of a example test case that was configured and checked on the iMx35 platform. For more details about such configuration and usage, please refer to the detailed documentation for each component.

________________________________________________________________________
NOTE: This entry has been validated against the SDP version listed above. Use caution when considering this advice for any other SDP version. For supported releases, please reach out to QNX Technical Support if you have any questions/concerns.
________________________________________________________________________


Related Attachments
 None Found





Please contact us with your questions or concerns.