Hi all the work is done by "DIRECT_INTERFACE_IMPLEMENTATION" macro. see "interface_implementation.h" all implemented image providers are calling that macro with "IDirectFBImageProvider" as first argument and "implementation as second one "JPEG" "PNG" ...
to Implement a custom image provider you have to call that macro. then implement the functions. -Construct -Probe -RenderTo -SetRenderCallback . . . if your compiler supports (constructor) attribute then the interface will be automatically registred. DirectFB uses the Probe method to know which provider to use. this function is custom per provider. hth haithem. On Wed, Oct 28, 2009 at 2:54 PM, Craig Matsuura <cmatsu...@control4.com>wrote: > I wondering how I can add a custom ImageProvider. I would also like to know > how does directFB know how to use my custom image provider. I have looked at > the idirectfbimageprovider_jpeg.c and gfxdrivers/sh772x/sh7722_jpeg.c. I > wondering how DirectFB knows when when to use one provider over another. Can > some one give me some hints. > > > Thanks, > Craig > -- > > > ------------------------------ > > > Craig Matsuura - Principal Engineer > Control4 > 11734 South Election Road - Suite 200 > Salt Lake City, UT 84020-6432 > PH: 801-523-3161 > FX: 801-523-3199 > > _______________________________________________ > directfb-dev mailing list > directfb-dev@directfb.org > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev > >
_______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev