Hi,

I am trying to display frames captured with a webcam.

 

The read returns the data in a buffer. I have Lock’ed the surface and got the pointer to the surface_data.

1)      Does the surface_data point to the pixel data?

2)      Now, when I try to display the data and do a memcpy for the same should I convert the buffer (in RGB24 format) data into pixels and then copy it to the surface or should I copy the buffer itself (byte by byte) onto the surface?

 

When I directly copy the buffer onto the surface I get skewed images.

 

 

Kaushik Choudhary

 


The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

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

Reply via email to