]> git.sesse.net Git - mlt/commitdiff
Make offset in affine transition keyframable.
authorj-b-m <jb@kdenlive.org>
Tue, 8 Feb 2011 07:04:20 +0000 (23:04 -0800)
committerDan Dennedy <dan@dennedy.org>
Tue, 8 Feb 2011 07:04:20 +0000 (23:04 -0800)
src/modules/plus/transition_affine.c

index 3616e18391f6014b393fba6c3e74c5b274da03c6..133fe6232375244d12443444401ba121868bf0bf 100644 (file)
@@ -347,11 +347,14 @@ static inline void get_affine( affine_t *affine, mlt_transition this, float posi
                float shear_x = composite_calculate_key( this, "shear_x", "shear_x_info", 360, position );
                float shear_y = composite_calculate_key( this, "shear_y", "shear_y_info", 360, position );
                float shear_z = composite_calculate_key( this, "shear_z", "shear_z_info", 360, position );
-
+               float o_x = composite_calculate_key( this, "ox", "ox_info", 0, position );
+               float o_y = composite_calculate_key( this, "oy", "oy_info", 0, position );
+               
                affine_rotate_x( affine->matrix, rotate_x );
                affine_rotate_y( affine->matrix, rotate_y );
                affine_rotate_z( affine->matrix, rotate_z );
                affine_shear( affine->matrix, shear_x, shear_y, shear_z );
+               affine_offset( affine->matrix, o_x, o_y );
        }
 }