[gst-devel] fractions and aspect ratios

Steve Baker steve at stevebaker.org
Wed Jul 14 13:54:02 CEST 2004


> On Tue, 2004-07-13 at 23:42, Steve Baker wrote:
>> Thomas spoketh:
>> > - I also looked at creating a GST_TYPE_RANGE that would be implemented
>> > with a GArray with three members (lower, upper, increment).  A lot of
>> > code would be the same as for the LIST type, and we could convert over
>> > the GST_TYPE_INT_RANGE and GST_TYPE_DOUBLE_RANGE to it.  What do you
>> > think ?
>>
>> For GST_TYPE_RANGE to be universally useful there would need to be a
>> flag
>> which indicates the range as being logarithmic. We would then have to
>> define what the increment means for a logarithmic range.
>>
>> Examples of logarithmic ranges would be frequency and decibels.
>
> Hm, hadn't thought about that, could be an issue.  Can you give me
> simple examples of when it would make sense, for both of these, to have
> increments, and not just a range ?
>
> Anyway, the increment would then probably be treated as a multiplier,
> instead of an accumulator value, no ?
>
> Not sure yet where the information of what the increment does should be
> stored; maybe a fourth GValue holding an enum ?

I guess a flag like increment_is_multiplier would do the trick. Or an enum
- your call.

cheers







More information about the gstreamer-devel mailing list