Quoting Tim Lapawa: > Hello list members, > with my actual project I am acquiring imagedata from a IEEE1394 DCAM picture > sensor. > The picture is already in memory and I have to convert the colors and scale > it onto a DirectFB surface. > Can this be done by a ImageProvider? Or will I have to do it on my own > before using a blitting function on the surface?
Of which format is the data in memory? If it's supported by DirectFB, you can create a 'preallocated' surface directly. Otherwise you should Lock() the surface, convert your data by hand and Unlock(). If you want nice scaling you should either use hardware accelerated StretchBlit() on the new surface or use the yet internal function dfb_scale_linear_32() from src/misc/gfx_util.[ch]. -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" _______________________________________________ directfb-users mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
