[gst-devel] dparams

Steve Baker steve at stevebaker.org
Wed Sep 25 16:07:02 CEST 2002


dparams are best for single values which may be interpolated over time.
So dparams would probably be appropriate for these:
> * audio properties (volume, mute, ...)
> * image properties (brightness, hue, ...)

but as for a 6 member struct I imagine that it doesn't make much sense
to interpolate from 1 struct to another so dparams might not be the best
solution.

Dparams are not meant to replace object props but to supplement them.
The other main advantage of using dparams is that you can add and remove
them at runtime - so if you don't even need that feature then you should
probably use an object prop for the video window.

cheers

On Fri, 2002-09-20 at 20:19, Ronald Bultje wrote:
> Hi list,
> 
> I want to add dparams for certain things in the video4linux plugins:
> * audio properties (volume, mute, ...)
> * image properties (brightness, hue, ...)
> * video window
> The first two won't be a problem, they're easy to implement. The last
> one is a problem, though, since dparams currently allow only one
> argument, and I'd need more (6, ideally) or I'd need s shared struct.
> (but the 6 arguments on a function would be better). We could try to
> implement something like the gobject signalling in dparams, so that you
> can give a variable number of arguments... I could also simply hack up a
> quick six-argument extra struct+function to the dparams (i.e. write a
> register-callback function in the plugins that need it, and an extra
> function to call this callback for use in applications), but that's
> probably a bit evil. Does anyone have better ideas? I currently use
> gobject properties to set these things, but that's not a very proper
> solution, imo.
> 
> Ronald







More information about the gstreamer-devel mailing list