[gst-devel] suggested new GST_TYPE

Julien.Isorce at alumni.enseeiht.fr Julien.Isorce at alumni.enseeiht.fr
Sun Mar 2 17:58:06 CET 2008


Thx you for reply.

Ok so I will use GST_TYPE_LIST to handle that.

> <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.
>
> J.
>
>> 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
>
> ENOSIG
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>





More information about the gstreamer-devel mailing list