From 4554ecf648fd07939f9bcad822b557bec2c52674 Mon Sep 17 00:00:00 2001 From: j-b-m Date: Mon, 7 Feb 2011 23:04:20 -0800 Subject: [PATCH] Make offset in affine transition keyframable. --- src/modules/plus/transition_affine.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/plus/transition_affine.c b/src/modules/plus/transition_affine.c index 3616e183..133fe623 100644 --- a/src/modules/plus/transition_affine.c +++ b/src/modules/plus/transition_affine.c @@ -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 ); } } -- 2.39.2