]> git.sesse.net Git - nageru/commit
Support auto white balance (ie., not controlled by the theme).
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 9 Feb 2020 13:43:17 +0000 (14:43 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 9 Feb 2020 13:46:25 +0000 (14:46 +0100)
commit9ece26cae09110a3c6a0c74aefb2269a6dd9a7d9
treeb2b9c7dc307d2c5a1d671ad797fcaa63800b0a3c
parent7df979279388aeee8866d59a17a19b31b9c8ef07
Support auto white balance (ie., not controlled by the theme).

This is added as a regular (optional) white balance effect, but it automatically
intercepts set_wb() calls and stores it locally. (You can still set neutral_color
manually, but it's probably sort of pointless.)

This simplifies the themes somewhat and allows in some cases for fewer different
scene instantiations (since image inputs don't get white balance), but more
importantly, it will allow exporting the white balance setting in the MJPEG
export.
nageru/scene.cpp
nageru/scene.h
nageru/theme.cpp
nageru/theme.h
nageru/theme.lua