Simon Segerblom Rex
Simon Segerblom Rex
The old code looks messed up. Fixes #6575
**Short description** I just tried opening a DNG using deflate compression with only one tile. If fails miserably since `tile_length` is set to INT_MAX before reaching this if statement: https://github.com/Beep6581/RawTherapee/blob/2ce5b827c5fa39b2b5425303f79f28b78f3df4f4/rtengine/dcraw.cc#L10906...
More details here: https://numpy.org/doc/stable/dev/depending_on_numpy.html#numpy-2-0-specific-advice and regarding np.sctypes: https://github.com/numpy/numpy/issues/26778
Enabled by the solution to https://github.com/libjpeg-turbo/libjpeg-turbo/issues/768 (Planned to be included in libjpeg-turbo release 3.1.0.) There are still some Lossless JPEG encoded images that libjpeg-turbo refuses to decode, see the discussions...