On Sat, Oct 07, 2006 at 07:48:37PM +0530, [EMAIL PROTECTED] wrote:
> 
> Hello,
> 
> 
> 
> I have been trying to display data captured from a webcam.
> 
> When I use a surface under the Cooperative Level normal I can
> 
> see something which seems like the webcam output as when I move
> 
> the cam the data on the display on the surface seems to catch that.
> 
> This is probably because of improper handling of the data format.
> 
> 
> 
> However, when I try to create a Window on the primary layer and
> 
> then try to display the captured data (which I get using a read on the
> 
> /dev/video0) on the window's surface I get this:
> 
<snip>
> 
> +++++++++++ surface_pitch (640), win.width(320), win.height(240)
> 
> (!) [10514:    0.000] --> Caught signal 11 (at 0xb7010000, invalid
> permissions) <--
> 
> Killed
> 
> 
> 
> The ++++++++ is the result of a printf statement I used and it clearly
> shows that the surface_pitch is not correct for
> 
> the window that I'm creating. It is retaining the width of the Layer.

Pitch is in bytes. Unless your window surfaces is no 16bpp the pitch is 
correct.

PS.
You message has really bad formatting. Please try to fix your MUA.

-- 
Ville Syrjälä
[EMAIL PROTECTED]
http://www.sci.fi/~syrjala/

_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to