mipmaps to cover higher resolution screeens and increased mipf resolution #20184
+54
−37
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
DT_MIPMAP_LDR_MAXfor the full-sized 8 bit mipmap, to ease any future mipmap size adjustments.Adding higher resolution mipmaps both covers higher resolution displays and should allow for less jumpy zooming in on high megapixel files. Increasing the mipf resolution should produce better preview pipe data.
In
_get_dimensions_for_img_to_fit(), prior code looked at mip7 or smaller. This code looks at the full-sized 8 bit mipmap or smaller, which should produce more accurate results without a slowdown.In the crawler, I noticed that the code never creates a full-sized 8 bit mipmap, nor a mip0. I left that behavior unchanged.
Closes #20178.