mapmapteam / mapmap

Open source video mapping software
http://www.mapmap.info
GNU General Public License v3.0
431 stars 64 forks source link

Brightness contrast and saturation adjustments #235

Open aalex opened 8 years ago

aalex commented 8 years ago

There are excellent GStreamer video elements for adjusting BrCoSa. We should definitely use it.

sofian commented 8 years ago

We could actually support filters from the frei0r library (which includes these settings). The only issue with it is that it runs on the CPU and we might want to run everything using shaders instead.

aalex commented 8 years ago

I have some GLSL shaders around: https://github.com/aalex/toonloop/blob/master/src/shaders/brcosa.glsl

aalex commented 8 years ago

I have some chroma keying shader, as well: https://github.com/aalex/toonloop/blob/1.3/toon/effects/chromakey.py#L31

aalex commented 8 years ago

Also, leavecolor and blur shaders: https://github.com/aalex/toonloop/tree/1.3/toon/effects

aalex commented 8 years ago

Actually, the videobalance GStreamer element should to the trick. I believe it can run on the GPU, using some shader, internally, when possible, and will fallback to the CPU if it's the only option. https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-videobalance.html