]> git.sesse.net Git - mlt/blobdiff - src/modules/core/transition_composite.c
Luma generation and use
[mlt] / src / modules / core / transition_composite.c
index 5bc6aff51ad35cb9b7d97a0156747385e7e8ac1f..6cc1055b85b297f558b52a5dc9310cdff7a9e161 100644 (file)
@@ -554,6 +554,14 @@ static uint16_t* get_luma( mlt_properties properties, int width, int height )
        // If the filename property changed, reload the map
        char *resource = mlt_properties_get( properties, "luma" );
 
+       char temp[ 512 ];
+
+       if ( strchr( resource, '%' ) )
+       {
+               sprintf( temp, "%s/lumas/%s/%s", mlt_factory_prefix( ), mlt_environment( "MLT_NORMALISATION" ), strchr( resource, '%' ) + 1 );
+               resource = temp;
+       }
+
        if ( resource != NULL && ( luma_bitmap == NULL || luma_width != width || luma_height != height ) )
        {
                uint16_t *orig_bitmap = mlt_properties_get_data( properties, "_luma.orig_bitmap", NULL );