[vlc-devel] Help offer: Adding a filter access API to libvlc

jboileau jboileau at gmail.com
Mon Jun 2 22:09:50 CEST 2008

I thought you where doing something to manipulate the var strings
directly. But if these can be used instead, great.

A few questions:

How would I get the object chain of type video_filter_chain_t? To be
able to Insert or remove we need to have the chain to start with.

How would this chain get associated with the vout_thread_t object?

I am presently using things like :
var_SetString( p_vout, "vout-filter", "magnify");
var_SetString( p_vout, "video-filter", "adjust" ); etc.
to enable filters. Is your API another way to do the same thing but
with better control?

Some remarks:

Wouldn't be useful to have:
int video_filter_Get_Position( chain, "name" )
That way we can note the position of a filter before removing so we
can insert it back at the same position later on.

I fail to see the need of both the name and position when removing.


On Mon, Jun 2, 2008 at 3:02 PM, Antoine Cellerier <dionoea at videolan.org> wrote:
> On Mon, Jun 02, 2008, jboileau wrote:
>> If I understand what you are saying correctly, these could very well
>> be of use to me. I was just looking at how to add and remove filters
>> from "video-filter", "vout-filter" and "sub-filter". If that is what
>> you are preparing to write I will certainly use it before the ink is
>> dried! :-) Let me know if's the case.
> Basically something like
> int video_filter_Insert( chain, "name", position (optional) )
> int video_filter_Remove( chain, "name", position (optional) )
> filter_t *video_filter_Find( chain, "name" )
> which would work on a video_filter_chain_t structure. (video filter2
> specific)
> --
> Antoine Cellerier
> dionoea
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel

Jacques Boileau

More information about the vlc-devel mailing list