Skip to content
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

Corrected Area Sampling Range #12175

Merged

Conversation

Sam-Belliveau
Copy link
Contributor

This just cleans the code. Area sampling is only useful if the area that each pixel samples is perfectly defined. This is to prevent issues with blurring when scaling from similar resolutions. This replaces weird estimations about the size of pixels from the target and replaces them with stricter, integer coordinates from the target, that are then projected onto the source.

@Filoppi
Copy link
Contributor

Filoppi commented Sep 10, 2023

As mentioned on Discord, I'd like to give this a deeper look before approving, personally.

@Sam-Belliveau
Copy link
Contributor Author

Before:

image

After:

image

@AdmiralCurtiss AdmiralCurtiss merged commit 6309aa0 into dolphin-emu:master Nov 15, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants