Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - surface and layer question: (2 Items)
   
surface and layer question  
Hello,
I have application where the frame I am receiving from Digital Camera are to be displayed on window. I know how to do 
that in Photon ad it works fine.
I want to port my application to GF and QNX 641 and started playing with GF.
Please find attached my init function for the display, layer and surface I am creating. I am directly writing received 
frames to surface_info.vaddr.
The resolution I am using is 1920X1200, 32bpp. The chipset is 945GME, driven by gma9XX.so, and I am starting the 
application having Photon running as well. The OS is QNX641.
Now the problem is that the display gets split in 4 quadrants:
 - quadrant_1: 0.0 -- 1023, 1023
 - quadrant_2: 1024,0 ---1919,1023
 - quadrant_3: 0,1024 --- 1023,1199
 - quadrant_4: 1024,1024 ---1919,1199

When I write to surface_info.vaddr, then the frame gets displayed in quadrant_1 and quadrant_2. The rest of quadrants 
are displaying whatever was displayed in Photon at these coordinates.

My problem is how to configure the surface and layed so I have only one window with the frame displayed on it? What 
wrong I am doing so that the display gets split in 4.
Please for your help!
Kosta
Attachment: Text gf_init.c 2 KB
RE: surface and layer question  
Hi Kosta,

Since Photon is already running on the main layer - you are attaching to
the same layer which is configured for 1920x1200.   Is this intentional?

Since you're using the 945GME you may want to use a separate HW layer to
display the camera data if your use case would allow for this.   If not
you would want to use surfaces and blitting to get the camera data to
the display.  This is most likely what you're doing with Photon.

If using a separate layer in addition to making the call to
gf_layer_set_surfaces() you will also want your application to setup the
source and destination viewports of the layer - to correctly size and
position the camera data.

Regards
Mike

-----Original Message-----
From: Kostadin Vardin [mailto:community-noreply@qnx.com] 
Sent: October 21, 2009 5:13 PM
To: advanced-graphics
Subject: surface and layer question

Hello,
I have application where the frame I am receiving from Digital Camera
are to be displayed on window. I know how to do that in Photon ad it
works fine.
I want to port my application to GF and QNX 641 and started playing with
GF.
Please find attached my init function for the display, layer and surface
I am creating. I am directly writing received frames to
surface_info.vaddr.
The resolution I am using is 1920X1200, 32bpp. The chipset is 945GME,
driven by gma9XX.so, and I am starting the application having Photon
running as well. The OS is QNX641.
Now the problem is that the display gets split in 4 quadrants:
 - quadrant_1: 0.0 -- 1023, 1023
 - quadrant_2: 1024,0 ---1919,1023
 - quadrant_3: 0,1024 --- 1023,1199
 - quadrant_4: 1024,1024 ---1919,1199

When I write to surface_info.vaddr, then the frame gets displayed in
quadrant_1 and quadrant_2. The rest of quadrants are displaying whatever
was displayed in Photon at these coordinates.

My problem is how to configure the surface and layed so I have only one
window with the frame displayed on it? What wrong I am doing so that the
display gets split in 4.
Please for your help!
Kosta




_______________________________________________

Advanced Graphics
http://community.qnx.com/sf/go/post40467