#define _THEME_H 1
#include <lua.hpp>
+#include <movit/effect.h>
#include <movit/flat_input.h>
#include <movit/ycbcr_input.h>
#include <stdbool.h>
IDENTITY_EFFECT,
WHITE_BALANCE_EFFECT,
+ AUTO_WHITE_BALANCE_EFFECT, // Same as WHITE_BALANCE_EFFECT, but sets its value automatically.
RESAMPLE_EFFECT,
PADDING_EFFECT,
INTEGRAL_PADDING_EFFECT,
std::string get_channel_name(unsigned channel);
int get_channel_signal(unsigned channel);
bool get_supports_set_wb(unsigned channel);
- void set_wb(unsigned channel, double r, double g, double b);
+ void set_wb(unsigned channel, float r, float g, float b);
+ void set_wb_for_signal(int signal, float r, float g, float b);
+ movit::RGBTriplet get_white_balance_for_signal(int signal);
std::string get_channel_color(unsigned channel);
+ std::unordered_map<int, movit::RGBTriplet> white_balance_for_signal;
+
std::vector<std::string> get_transition_names(float t);
void transition_clicked(int transition_num, float t);
void register_class(const char *class_name, const luaL_Reg *funcs, EffectType effect_type = NO_EFFECT_TYPE);
int set_theme_menu(lua_State *L);
Chain get_chain_from_effect_chain(movit::EffectChain *effect_chain, unsigned num, const InputState &input_state);
+ void call_lua_wb_callback(unsigned channel, float r, float g, float b);
std::string theme_path;