[FFmpeg-user] despill filter

Michael Koch astroelectronic at t-online.de
Sat Apr 25 23:44:38 EEST 2020


Hi,

I'm just testing chromakey and despill filters. I haven't yet figured 
out how to get good results. There is one thing I don't understand.

Line 70 in vf_despill.c
Is "green * factor" correct? Shouldn't that be "blue * factor"?
Similar question also in line 72, where it should be "green * factor".

It seems lines 75-77 can be simplified:
red  = FFMAX(red + spillmap * (redscale + brightness), 0.f);
And it can be made even faster if (redscale + brightness) is calculated 
in advance outside the loop.

Michael


More information about the ffmpeg-user mailing list