]> git.sesse.net Git - mlt/blobdiff - src/modules/opengl/filter_movit_white_balance.cpp
Hide the movit.parms properties from serialization.
[mlt] / src / modules / opengl / filter_movit_white_balance.cpp
index 71a325d51cb94f38968b4d80ad2d7d793fc818c0..1103077a91fc4205e503fe26649d8b4b396b740d 100644 (file)
@@ -25,6 +25,8 @@
 #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;
@@ -48,12 +50,12 @@ static int get_image( mlt_frame frame, uint8_t **image, mlt_image_format *format
                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;
@@ -80,6 +82,7 @@ mlt_filter filter_white_balance_init( mlt_profile profile, mlt_service_type type
 
        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;