-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix various aspect ratio issues with qtblend filter/transition #1064
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have much opinion on the substance of the change. It seems a little strange that a filter would keep track of whether it has been applied already. But I don't have a better idea for how to handle that situation. Maybe there should be a generic way to indicate that the original image has already been scaled (like affine).
src/modules/qt/filter_qtblend.cpp
Outdated
@@ -1,5 +1,5 @@ | |||
/* | |||
* filter_lightshow.cpp -- animate color to the audio | |||
* filter_qtblend.cpp -- Qt composite filter | |||
* Copyright (C) 2015 Meltytech, LLC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good to update the copyright date in all of these files that are changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, thanks for looking at it. Since these changes only affect qtblend that is mostly used in Kdenlive, I will merge the changes in a few days if there is no opposition.
Compile error on Arch Linux, this include gets around that, as suggested by the compiler. Fixes mltframework#1065
…pdate copyright year
This fixes multiple issues when applying several qtblend filters on the same frame.
One issue is that the qtblend filter, like the affine filter/transition, sometimes query an image using the producer's original resolution, not in profile resolution in order to be able to display for example to zoom in a 4k clip with an HD profile, while keeping the 4K resolution.
However this caused issues because in several parts of the code, we calculate the preview scaling by comparing the size of the requested image with the size of the project profile.
Among the several fixes in this patch, we now check if another qtblend filter was applies and use a cached value for consumer scaling.