diff options
author | TommyTheTerrible <81168766+TommyTheTerrible@users.noreply.github.com> | 2024-08-24 00:21:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-24 07:21:03 +0300 |
commit | 17f515cd3e4239d3c6e1958d998e455a8300da90 (patch) | |
tree | 996b40ce86e4a53bafca5fe7e10bd2a6845bc75d /indra/newview/llfloaterimnearbychat.cpp | |
parent | 45b2d69446a68f5b104bd61055214d17da920fae (diff) |
Update LLImageJ2C::calcDataSizeJ2C for better 2k image support (#2406)
Adjusted calculations based on dimensions and assumed maximum block size so that higher discards (4-5) of 2048x2048 images can be decoded with aux/alpha.
(It should also work for dimensions larger than 2048.)
This function will now return a reliable discard 5 data size for unknown dimensions (w and/or h equals 0), which could be used in LLTextureFetch::createRequest to skip the header fetch and go right to a discard 5 decode.
Tested on OpenJPEG 2.5 with partial decode support (opj_decoder_set_strict_mode set to false).
Should work on KDU fine but might be a good idea to test.
Diffstat (limited to 'indra/newview/llfloaterimnearbychat.cpp')
0 files changed, 0 insertions, 0 deletions