KinoPlus Chroma Key on Green? Will this code change work?
Alan B. Canon <acanon <at> bellsouth.net>
2004-10-05 21:21:35 GMT
Apologies if this goes in the plugin list, to which I'm not subscribed.
Please redirect me if that is the case.
I note in line 753-775 the code which performs Chroma Key on Blue
(below.) In particular, the detection of "Blue" seems to happen in the
guard clause of an if statement on page 764:
if (kb >= 240 && kr <= 5 && kg <= 5)
My question is, if I rewrite this as
if (kg >= 240 && kr <= 5 && kb <= 5)
and recompile kinoplus, am I not able to Chroma key on Green?
The next question is, rather than patching it this way, perhaps I could
contribute a configuration widget to the Chroma Key on Blue Transition
where these threshholds are set, to allow the user to select presets of
Green, Blue, or even arbitrary upper and lower bounds.
If someone familiar with the codebase can tell me this is useful, it
seems like it would be pretty trivial, as I could simply examine one of
the other, parameter-taking transitions, and copy the design pattern.
-- Alan Canon
void GetFrame( uint8_t *io, uint8_t *mesh, int width, int height, double
position, double frame_delta, bool reverse )
uint8_t *k = mesh;