forked from aurelienpierreeng/ansel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pipeline output sizings: refactor, simplify, robustify
- Remove the stupid stack of 4 different sizes "corrections" - Disallow upsampling from pipeline config: upsampling should use a super-resolution module with proper handling ; enforcing downsampling or full-res makes it a lot more robust - Ensure pixel accuracy on export dimensions explicitly specified by user - Use proper roundings and clamping instead of flooring with magical +0.8f correction that makes zero sense - Remove hacks and make the whole thing systematic Surely, with IQ > 100, when you start stacking 4 complicated and obfuscated stacks of sizes "corrections" to uniformingly scale a 2D rectangle, you start getting a hint that your base assumptions are shit and start over from scratch. But not in Darktable. In Darktable, you manually handle all corner cases until your code passes 90 % of use cases, and the remaining 10 % are completely unpredictable and unfixable. Well done, morons !
- Loading branch information
1 parent
8dca913
commit 85f2b8b
Showing
1 changed file
with
86 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters