:: Re: [Frei0r] "rgbnoise" plugin
Kezdőlap
Delete this message
Reply to this message
Szerző: Janne Liljeblad
Dátum:  
Címzett: Minimalistic plugin API for video effects
Tárgy: Re: [Frei0r] "rgbnoise" plugin
> Are you serious -- are you worried that int might be 16 bits?

Yes I'm serious, off-by-one stuff is just boring, just add -1 and be
sure that you're within bounds here. I do not care if I'm using 32766
values of the 32767 I've created, I do this kind of stuff often to
avoid correct, but unneeded thinking.

>You ignored my part about the unneccessary branch. And the part about the
>unnecessary float-to-int conversions.


I'm going to do just as you suggested:

>Ideally, you'd just bake the entire noise*127 and float-to-int operation into
>the table at frame start.


Where's the unneccessary branch? Besides, isn't the table lookup
int-to-float instead of float-to-int?