-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve comments and consistency of sampling in DownsampleStrategies.
FitCenter, CenterInside, and CenterOutside now all reliably prefer quality on versions < KitKat where we can only do power of two downsampling. I’ve also fixed a bug in FitCenter and CenterInside where we would downsample to 2x the requested size in some cases where there was an exact power of 2 match in one dimension but not the other. The logic to fix the bug isn’t perfect, but it keeps this change small and avoids making any API changes.
- Loading branch information
Showing
4 changed files
with
79 additions
and
39 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
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
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
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