phoenix-firestorm/indra/llimage
TommyTheTerrible 17f515cd3e
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.
2024-08-24 07:21:03 +03:00
..
tests Merge remote-tracking branch 'origin/main' into DRTVWR-600-maint-A 2024-05-22 19:04:52 +02:00
CMakeLists.txt Remove setting of HEADER_FILE_ONLY on .h* files, cmake automatically 2022-05-01 00:38:40 +02:00
llimage.cpp Merge remote-tracking branch 'origin/release/maint-a' into project/gltf_development 2024-06-11 17:42:17 -07:00
llimage.h Remove unnecessary code and (re-)add some more compile time constants (#2057) 2024-07-18 10:48:24 +03:00
llimagebmp.cpp Fix line endlings 2024-05-22 22:40:26 +03:00
llimagebmp.h Fix line endlings 2024-05-22 22:40:26 +03:00
llimagedimensionsinfo.cpp Fix line endlings 2024-05-22 22:40:26 +03:00
llimagedimensionsinfo.h #824 Process source files in bulk: replace tabs with spaces, convert CRLF to LF, and trim trailing whitespaces as needed 2024-04-29 07:56:09 +03:00
llimagedxt.cpp Re-enable a lot of compiler warnings for MSVC and address the C4267 "possible loss of precision" warnings 2024-06-01 15:49:26 +02:00
llimagedxt.h #824 Process source files in bulk: replace tabs with spaces, convert CRLF to LF, and trim trailing whitespaces as needed 2024-04-29 07:56:09 +03:00
llimagefilter.cpp Re-enable compiler warnings C4244 and C4396 except for lltracerecording.h and llunittype.h for now 2024-07-08 20:27:14 +02:00
llimagefilter.h #824 Process source files in bulk: replace tabs with spaces, convert CRLF to LF, and trim trailing whitespaces as needed 2024-04-29 07:56:09 +03:00
llimagej2c.cpp Update LLImageJ2C::calcDataSizeJ2C for better 2k image support (#2406) 2024-08-24 07:21:03 +03:00
llimagej2c.h Clean up boost includes and remove compiler warning pragma for unreachable code in PCH (#2361) 2024-08-20 18:41:48 +03:00
llimagejpeg.cpp Fix line endlings 2024-05-22 22:40:26 +03:00
llimagejpeg.h Enable /permissive- on MSVC for better standards conformance (#2251) 2024-08-14 08:01:02 -07:00
llimagepng.cpp Fix line endlings 2024-05-22 22:40:26 +03:00
llimagepng.h #824 Process source files in bulk: replace tabs with spaces, convert CRLF to LF, and trim trailing whitespaces as needed 2024-04-29 07:56:09 +03:00
llimagetga.cpp Re-enable compiler warnings C4018, C4100, C4231 and C4506 2024-06-10 16:42:43 +02:00
llimagetga.h #824 Process source files in bulk: replace tabs with spaces, convert CRLF to LF, and trim trailing whitespaces as needed 2024-04-29 07:56:09 +03:00
llimageworker.cpp Fix texture fetch request getting canceled if request counter flips over 2024-06-21 12:56:57 +02:00
llimageworker.h Fix line endlings 2024-05-22 22:40:26 +03:00
llmapimagetype.h #824 Process source files in bulk: replace tabs with spaces, convert CRLF to LF, and trim trailing whitespaces as needed 2024-04-29 07:56:09 +03:00
llpngwrapper.cpp Re-enable a lot of compiler warnings for MSVC and address the C4267 "possible loss of precision" warnings 2024-06-01 15:49:26 +02:00
llpngwrapper.h Fix line endlings 2024-05-22 22:40:26 +03:00