Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - QNX 6.4.1 + devg-i830 + i965 + Photon = layers?: Page 1 of 6 (6 Items)
   
QNX 6.4.1 + devg-i830 + i965 + Photon = layers?  
Hello!

I need some help about hardware compatibilities on subject set. So I have a problem on my video card i965 (vid=0x8086,
did=0x29a2) with layer support in GF+Photon.
I need 2 layers: first layer is the BGRA8888 main layer, which is used by Photon, second layer (that is reported by 
gf_layer_query) have 3 formats - all packed YUV (somthing like UVYV).
So I  wrote small programm. Here is the block scheme of it:
gf_dev_attach(); // attach the device. System have one device - i965
gf_display_attach(); // attach to the display. 1 pt
gf_layer_attach(..., 0); // attach to layer 1 (not main, but second)

After that I create a surface:
gf_surface_create_layer(...);
and graphic format parameter is GF_FORMAT_PACK_YUV_UYVY, flags without GF_SURFACE_CREATE_2D_ACCESSIBLE. With this flag 
this func return error GF_ERR_MEM...
Next:
gf_layer_set_surfaces();
After that i create a context:
gf_contex_create();
and
gf_context_set_surface();
and... It returns with error GF_ERR_PARM - no 2D access.... gf_surface_get_info() also give this information in 
(gf_surface_t*)->flags...
When I create surface with format parameter BYTE or PAL8 or some RGB (pack or planar) and surface flags includes 
GF_SURFACE_CREATE_2D_ACCESSIBLE function gf_surface_create_layer() return without error. And gf_context_set_surface(); 
too.
But layer and surfaces have different formats...
And gf_draw_<> functions draws nothing... (i do not forget about gf_draw_stsrt, gf_draw_end, gf_draw_flush)
I can see layer by gf_layer_enable(); But I can't disable layer visibility when set gf_layer_disable(); 

So help me - I need show many widgets overlayed with video on the same window. How can I create programm with multiple 
layers on i965/devg-i830? Earlier I used Radeon video card, QNX 6.2.1 and overlay system, but now I can't use Radeon 
video card, only i965/Q35 and newer...

P.S. Sorry for my bad english... Hope you can understand me... :(