[gstreamer core] GST_TYPE_INT_RANGE_STEP

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[gstreamer core] GST_TYPE_INT_RANGE_STEP

Julien.Isorce
Hi,

I am imporving dshowvideosrc plugin and I would like to know if an
existing GST_TYPE_... can do the following thing :

[start, end, step]

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 bettween 80 and 768 with a step of 4, and
accepted video height are bettween 60 and 576 with a step of 2.

I am sure it is the same thing for v4l2src. And I am also sure they bypass
it in v4l2 (by using static video sizes) but not resolved it.

Sincerely,

Julien

-------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel