]> git.sesse.net Git - mlt/blobdiff - src/modules/opengl/filter_movit_lift_gamma_gain.cpp
Hide the movit.parms properties from serialization.
[mlt] / src / modules / opengl / filter_movit_lift_gamma_gain.cpp
index de934d035aabde99c33b289e26299729255ee48d..4107c31b94c372a6ccb13a78b2fdbe9194689ea7 100644 (file)
@@ -24,6 +24,8 @@
 #include "filter_glsl_manager.h"
 #include <movit/lift_gamma_gain_effect.h>
 
+using namespace movit;
+
 static int get_image( mlt_frame frame, uint8_t **image, mlt_image_format *format, int *width, int *height, int writable )
 {
        mlt_filter filter = (mlt_filter) mlt_frame_pop_service( frame );
@@ -31,23 +33,23 @@ static int get_image( mlt_frame frame, uint8_t **image, mlt_image_format *format
        GlslManager::get_instance()->lock_service( frame );
        mlt_position position = mlt_filter_get_position( filter, frame );
        mlt_position length = mlt_filter_get_length2( filter, frame );
-       mlt_properties_set_double( properties, "movit.parms.vec3.lift[0]",
+       mlt_properties_set_double( properties, "_movit.parms.vec3.lift[0]",
                mlt_properties_anim_get_double( properties, "lift_r", position, length ) );
-       mlt_properties_set_double( properties, "movit.parms.vec3.lift[1]",
+       mlt_properties_set_double( properties, "_movit.parms.vec3.lift[1]",
                mlt_properties_anim_get_double( properties, "lift_g", position, length ) );
-       mlt_properties_set_double( properties, "movit.parms.vec3.lift[2]",
+       mlt_properties_set_double( properties, "_movit.parms.vec3.lift[2]",
                mlt_properties_anim_get_double( properties, "lift_b", position, length ) );
-       mlt_properties_set_double( properties, "movit.parms.vec3.gamma[0]",
+       mlt_properties_set_double( properties, "_movit.parms.vec3.gamma[0]",
                mlt_properties_anim_get_double( properties, "gamma_r", position, length ) );
-       mlt_properties_set_double( properties, "movit.parms.vec3.gamma[1]",
+       mlt_properties_set_double( properties, "_movit.parms.vec3.gamma[1]",
                mlt_properties_anim_get_double( properties, "gamma_g", position, length ) );
-       mlt_properties_set_double( properties, "movit.parms.vec3.gamma[2]",
+       mlt_properties_set_double( properties, "_movit.parms.vec3.gamma[2]",
                mlt_properties_anim_get_double( properties, "gamma_b", position, length ) );
-       mlt_properties_set_double( properties, "movit.parms.vec3.gain[0]",
+       mlt_properties_set_double( properties, "_movit.parms.vec3.gain[0]",
                mlt_properties_anim_get_double( properties, "gain_r", position, length ) );
-       mlt_properties_set_double( properties, "movit.parms.vec3.gain[1]",
+       mlt_properties_set_double( properties, "_movit.parms.vec3.gain[1]",
                mlt_properties_anim_get_double( properties, "gain_g", position, length ) );
-       mlt_properties_set_double( properties, "movit.parms.vec3.gain[2]",
+       mlt_properties_set_double( properties, "_movit.parms.vec3.gain[2]",
                mlt_properties_anim_get_double( properties, "gain_b", position, length ) );
        GlslManager::get_instance()->unlock_service( frame );
        *format = mlt_image_glsl;
@@ -74,6 +76,7 @@ mlt_filter filter_lift_gamma_gain_init( mlt_profile profile, mlt_service_type ty
 
        if ( glsl && ( filter = mlt_filter_new() ) ) {
                mlt_properties properties = MLT_FILTER_PROPERTIES( filter );
+               glsl->add_ref( properties );
                mlt_properties_set_double( properties, "lift_r", 0.0 );
                mlt_properties_set_double( properties, "lift_g", 0.0 );
                mlt_properties_set_double( properties, "lift_b", 0.0 );