You can call the function surface->getPixelFormat to know that. Or, while creating the surface itself, u can tell the format you want, by setting pixelformat and flags properly in DFBSurfaceDescription.
[EMAIL PROTECTED] wrote: > Hello, > > I have been trying to display frames captured using a webcam. I have > successfully captured the > > frames in RGB24 format but I am not able to figure out that when I Lock > the surface to > > display the frames using memcpy what format should I change my frames > into , so as to do a direct memcpy > > onto the surface. I understand that I get a void pointer to the surface > data on Locking the surface but what format > > is the surface in? > > > > When I do a direct memcpy I get skewed, imperceptible images. > > > > Please help me. > > > > > > > > > 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 _______________________________________________ directfb-users mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
