]> git.sesse.net Git - mlt/commitdiff
Base alpha channel on width and height.
authorDan Dennedy <dan@dennedy.org>
Sat, 11 Sep 2010 05:04:44 +0000 (22:04 -0700)
committerDan Dennedy <dan@dennedy.org>
Sat, 11 Sep 2010 05:04:44 +0000 (22:04 -0700)
Removes scaled_width and scaled_height properties, which were typically
redundant with width and height, but less available. Besides, width and
height better reflect the image attributes to help keep the image and
alpha channel in sync.

src/framework/mlt_frame.c

index 546d5b478e17a0ad2e84d72b341a2cf161857d30..1a49e74ac1d5094b958d04c31b9325833586b95e 100644 (file)
@@ -493,9 +493,6 @@ int mlt_frame_get_image( mlt_frame this, uint8_t **buffer, mlt_image_format *for
                mlt_properties_set_int( properties, "test_image", 1 );
        }
 
-       mlt_properties_set_int( properties, "scaled_width", *width );
-       mlt_properties_set_int( properties, "scaled_height", *height );
-
        return error;
 }
 
@@ -517,7 +514,7 @@ uint8_t *mlt_frame_get_alpha_mask( mlt_frame this )
                        alpha = mlt_properties_get_data( &this->parent, "alpha", NULL );
                if ( alpha == NULL )
                {
-                       int size = mlt_properties_get_int( &this->parent, "scaled_width" ) * mlt_properties_get_int( &this->parent, "scaled_height" );
+                       int size = mlt_properties_get_int( &this->parent, "width" ) * mlt_properties_get_int( &this->parent, "height" );
                        alpha = mlt_pool_alloc( size );
                        memset( alpha, 255, size );
                        mlt_properties_set_data( &this->parent, "alpha", alpha, size, mlt_pool_release, NULL );