[gst-devel] suggested new GST_TYPE

Jan Schmidt thaytan at mad.scientist.com
Sun Mar 2 17:41:27 CET 2008

<quote who="Julien.Isorce at alumni.enseeiht.fr">

> I would like to know if an existing GST_TYPE_... can do the following thing :
> [start, end, step]

No, there is no existing GST_TYPE that can handle this. It could be useful,
but might be tricky to integrate with the existing elements. On the other
hand, it might not - it's hard to know until one tries. It might turn out to
be easy, given that GST_TYPE_INT_RANGE_STEP is simply a more compact
representation of a GST_TYPE_LIST containing integers, and can always
be expanded to the equivalent GST_TYPE_LIST.


> I mean, for example with GST_TYPE_INT_RANGE, [10, 100] all value bettween
> 10 and 100 are accepted.
> But I need something like GST_TYPE_INT_RANGE_STEP, [10, 100, 5], and only
> value 10, 15, 20, 25, 30, ....., 90, 95, 100 are accepted.
> I need it in dshowvideosrc, because video size have a step. For EXAMPLE,
> accepted video width are between 80 and 768 with a step of 4, and
> accepted video height are between 60 and 576 with a step of 2.
> I am sure it is the same thing for v4l2src.
> Sincerely,
> Julien

Jan Schmidt                                  thaytan at mad.scientist.com


More information about the gstreamer-devel mailing list