#include "filter_glsl_manager.h"
#include <movit/white_balance_effect.h>
+using namespace movit;
+
static double srgb8_to_linear(int c)
{
double x = c / 255.0f;
srgb8_to_linear((color_int >> 16) & 0xff),
srgb8_to_linear((color_int >> 8) & 0xff)
);
- mlt_properties_set_double( properties, "movit.parms.vec3.neutral_color[0]", color.r );
- mlt_properties_set_double( properties, "movit.parms.vec3.neutral_color[1]", color.g );
- mlt_properties_set_double( properties, "movit.parms.vec3.neutral_color[2]", color.b );
+ mlt_properties_set_double( properties, "_movit.parms.vec3.neutral_color[0]", color.r );
+ mlt_properties_set_double( properties, "_movit.parms.vec3.neutral_color[1]", color.g );
+ mlt_properties_set_double( properties, "_movit.parms.vec3.neutral_color[2]", color.b );
double output_color_temperature =
mlt_properties_anim_get_double( properties, "color_temperature", position, length );
- mlt_properties_set_double( properties, "movit.parms.float.output_color_temperature",
+ mlt_properties_set_double( properties, "_movit.parms.float.output_color_temperature",
output_color_temperature );
GlslManager::get_instance()->unlock_service( frame );
*format = mlt_image_glsl;
if ( glsl && ( filter = mlt_filter_new() ) ) {
mlt_properties properties = MLT_FILTER_PROPERTIES( filter );
+ glsl->add_ref( properties );
mlt_properties_set( properties, "neutral_color", arg? arg : "#7f7f7f" );
mlt_properties_set_double( properties, "color_temperature", 6500.0 );
filter->process = process;