You need to build a shared library and place it into the 
interfaces/IDirectFBImageProviders and interfaces/IDirectFBVideoProviders 
directory (under /usr/lib/directfb-1.xxx).
The shared library must have correct entry/exit point provided.

DirectFB will then load each in turn - if loaded it will call the Probe 
function.  
This function can look at the filename extension and decide if it can handle 
the file.  If it can it reports TRUE else FALSE. 
If you return FALSE it will load the next shared library and repeat until it 
has exhausted all options.
If True is returned it will create the instance and then you can call PlayTo / 
RenderTo etc

Hope this helps
Dan

Daniel Laird

danieljla...@hotmail.com




From: cmatsu...@control4.com
To: directfb-dev@directfb.org
Date: Wed, 28 Oct 2009 07:54:29 -0600
Subject: [directfb-dev] Custom ImageProvider/VideoProviders



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
                                          
_________________________________________________________________
New Windows 7: Simplify what you do everyday. Find the right PC for you.
http://www.microsoft.com/uk/windows/buy/
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to