VSE: bilinear upscaling no longer adds transparent border around the image #117717

Merged
Aras Pranckevicius merged 8 commits from aras_p/blender:vse_filter_aa into main 2024-02-02 16:29:01 +01:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit ca8788d034 - Show all commits

View File

@ -413,12 +413,12 @@ static void edge_aa(const TransformContext &ctx)
constexpr float NO_ROTATION = 1.0e-6f;
constexpr float NO_AA_CONTRIB = 1.0e-2f;
if (is_steep) {
if (abs_delta.x < NO_ROTATION && fabsf(ptA.x - roundf(ptA.x) < NO_AA_CONTRIB)) {
if ((abs_delta.x < NO_ROTATION) && (fabsf(ptA.x - roundf(ptA.x)) < NO_AA_CONTRIB)) {
continue;
}
}
else {
if (abs_delta.y < NO_ROTATION && fabsf(ptA.y - roundf(ptA.y) < NO_AA_CONTRIB)) {
if ((abs_delta.y < NO_ROTATION) && (fabsf(ptA.y - roundf(ptA.y)) < NO_AA_CONTRIB)) {
continue;
}
}