Daniel Laird schrieb:
> I was wondering what people thought about adding a 
> IDirectFB_CreateVideoProviderByName function:
> 
> this would have a prototype like:
> IDirectFB_CreateVideoProviderByName(
>     IDirectFB *thiz, 
>     const char* filename, 
>     const char* videoprovidername, 
>     IDirectFBVideoProvider **interface)

Some explicit implementation selection should be there, not only for 
video providers.

> The reason for this is that if you have a number of VideoProviders calling
> Probe on each in turn can be time consuming and also requires data to be
> going through the system.  
> If you could shortcut this by specifying a name which could be the
> VideoProviderName without lib or .so then this would allow a quick way of
> saying - I know I am getting AVI data and I know which VideoProvider I need.

It's also necessary to select between different suitable implementations.

> The only problem is that CreateVideoProvider uses a common function
> DirectGetInterface and this change does not appear to fit easily with the
> current implementation. 
> 
> I am a bit confused by the 'implementation' parameter to the
> DirectGetInterface function, is this maybe what i should use to implement
> the IDirectFB_CreateVideoProviderByName function?

Yes. The "implementation" is e.g. "ffmpeg" or "hw264".

-- 
Best regards,
   Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to