From 7344e12167ac6c62da657450580da675f82dcbc6 Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Thu, 12 Sep 2024 12:21:41 -0700 Subject: [PATCH] let `rect` be the `affine` argument --- src/modules/plus/transition_affine.c | 4 +++- src/modules/plus/transition_affine.yml | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modules/plus/transition_affine.c b/src/modules/plus/transition_affine.c index 1da1e991c..e769a94f3 100644 --- a/src/modules/plus/transition_affine.c +++ b/src/modules/plus/transition_affine.c @@ -713,7 +713,9 @@ mlt_transition transition_affine_init(mlt_profile profile, mlt_transition transition = mlt_transition_new(); if (transition != NULL) { mlt_properties_set_int(MLT_TRANSITION_PROPERTIES(transition), "distort", 0); - mlt_properties_set(MLT_TRANSITION_PROPERTIES(transition), "rect", "0%/0%:100%x100%:100%"); + mlt_properties_set(MLT_TRANSITION_PROPERTIES(transition), + "rect", + arg ? arg : "0%/0%:100%x100%:100%"); // Inform apps and framework that this is a video only transition mlt_properties_set_int(MLT_TRANSITION_PROPERTIES(transition), "_transition_type", 1); mlt_properties_set_int(MLT_TRANSITION_PROPERTIES(transition), "fill", 1); diff --git a/src/modules/plus/transition_affine.yml b/src/modules/plus/transition_affine.yml index 0a9873e47..b6b7878c0 100644 --- a/src/modules/plus/transition_affine.yml +++ b/src/modules/plus/transition_affine.yml @@ -2,7 +2,7 @@ schema_version: 7.0 type: transition identifier: affine title: Transform -version: 6 +version: 7 copyright: Meltytech, LLC creator: Charles Yates contributor: @@ -298,6 +298,7 @@ parameters: default: 0 - identifier: rect + argument: yes title: Rectangle description: > This specifies the size and position of the image. The format of this is