Skip to content

Commit

Permalink
let rect be the affine argument
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Sep 12, 2024
1 parent c8d9b2b commit 7344e12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/modules/plus/transition_affine.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion src/modules/plus/transition_affine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7344e12

Please sign in to comment.