Skip to content

Commit 24d4432

Browse files
committed
Fix Mask: Apply filter should use qtblend now
Only the qtblend transition supports 10-bit via rgba64.
1 parent 97b783d commit 24d4432

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

src/mltxmlchecker.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ void MltXmlChecker::processProperties()
265265
checkUnlinkedFile(mlt_service);
266266
checkIncludesSelf(newProperties);
267267
checkLumaAlphaOver(mlt_service, newProperties);
268+
updateMaskApply(mlt_service, newProperties);
268269
checkAudioGain(mlt_service, newProperties);
269270
replaceWebVfxCropFilters(mlt_service, newProperties);
270271
replaceWebVfxChoppyFilter(mlt_service, newProperties);
@@ -561,6 +562,19 @@ void MltXmlChecker::checkIncludesSelf(QVector<MltProperty> &properties)
561562
}
562563
}
563564

565+
void MltXmlChecker::updateMaskApply(const QString &mlt_service, QVector<MltProperty> &properties)
566+
{
567+
if (mlt_service == "mask_apply") {
568+
for (auto &p : properties) {
569+
if (p.first == "transition") {
570+
p.second = "qtblend";
571+
m_isUpdated = true;
572+
break;
573+
}
574+
}
575+
}
576+
}
577+
564578
void MltXmlChecker::checkAudioGain(const QString &mlt_service, QVector<MltProperty> &properties)
565579
{
566580
if (mlt_service == "volume") {

src/mltxmlchecker.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ class MltXmlChecker
6767
bool fixVersion1701WindowsPathBug(QString &value);
6868
void checkIncludesSelf(QVector<MltProperty> &properties);
6969
void checkLumaAlphaOver(const QString &mlt_service, QVector<MltProperty> &properties);
70+
void updateMaskApply(const QString &mlt_service, QVector<MltProperty> &properties);
7071
void checkAudioGain(const QString &mlt_service, QVector<MltProperty> &properties);
7172
void replaceWebVfxCropFilters(QString &mlt_service, QVector<MltProperty> &properties);
7273
void replaceWebVfxChoppyFilter(QString &mlt_service, QVector<MltProperty> &properties);

src/qml/filters/mask_apply/ui.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020-2025 Meltytech, LLC
2+
* Copyright (c) 2020-2026 Meltytech, LLC
33
*
44
* This program is free software: you can redistribute it and/or modify
55
* it under the terms of the GNU General Public License as published by
@@ -20,7 +20,7 @@ Item {
2020
width: 10
2121
height: 10
2222
Component.onCompleted: {
23-
filter.set('transition', 'frei0r.cairoblend')
23+
filter.set('transition', 'qtblend')
2424
filter.set('transition.threads', 0);
2525
}
2626
}

0 commit comments

Comments
 (0)