[gst-devel] fractions and aspect ratios
Thomas Vander Stichele
thomas at apestaart.org
Tue Jul 13 15:05:04 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 ?
Dave/Dina : future TV today ! - http://www.davedina.org/
<-*- thomas (dot) apestaart (dot) org -*->
on my grave
am I ok
<-*- thomas (at) apestaart (dot) org -*->
URGent, best radio on the net - 24/7 ! - http://urgent.fm/
More information about the gstreamer-devel