#include <movit/effect_chain.h>
#include <movit/image_format.h>
#include <movit/input.h>
+#include <movit/lift_gamma_gain_effect.h>
#include <movit/mix_effect.h>
#include <movit/multiply_effect.h>
#include <movit/overlay_effect.h>
luaL_testudata(L, idx, "ResizeEffect") ||
luaL_testudata(L, idx, "MultiplyEffect") ||
luaL_testudata(L, idx, "MixEffect") ||
+ luaL_testudata(L, idx, "LiftGammaGainEffect") ||
luaL_testudata(L, idx, "ImageInput")) {
return *(Effect **)lua_touserdata(L, idx);
}
return wrap_lua_object_nonowned<MixEffect>(L, "MixEffect");
}
+int LiftGammaGainEffect_new(lua_State* L)
+{
+ assert(lua_gettop(L) == 0);
+ return wrap_lua_object_nonowned<LiftGammaGainEffect>(L, "LiftGammaGainEffect");
+}
+
int InputStateInfo_get_width(lua_State* L)
{
assert(lua_gettop(L) == 2);
{ NULL, NULL }
};
+const luaL_Reg LiftGammaGainEffect_funcs[] = {
+ { "new", LiftGammaGainEffect_new },
+ { "set_float", Effect_set_float },
+ { "set_int", Effect_set_int },
+ { "set_vec3", Effect_set_vec3 },
+ { "set_vec4", Effect_set_vec4 },
+ { NULL, NULL }
+};
+
const luaL_Reg InputStateInfo_funcs[] = {
{ "get_width", InputStateInfo_get_width },
{ "get_height", InputStateInfo_get_height },
const PBOFrameAllocator::Userdata *userdata = (const PBOFrameAllocator::Userdata *)first_frame.frame->userdata;
width = userdata->last_width[first_frame.field_number];
height = userdata->last_height[first_frame.field_number];
+ if (userdata->last_interlaced) {
+ height *= 2;
+ }
}
movit::YCbCrLumaCoefficients ycbcr_coefficients = input_state.ycbcr_coefficients[signal_num];
register_class("ResizeEffect", ResizeEffect_funcs);
register_class("MultiplyEffect", MultiplyEffect_funcs);
register_class("MixEffect", MixEffect_funcs);
+ register_class("LiftGammaGainEffect", LiftGammaGainEffect_funcs);
register_class("InputStateInfo", InputStateInfo_funcs);
register_class("ThemeMenu", ThemeMenu_funcs);