mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-16 07:12:43 +00:00
When an image in view lacked a level for one of its drawings, warm left it to decode and counted its decode estimate, but also kept its cached levels in the bytes of other images, so a decode that fit could be left to the render. The levels the estimate covers (the levels drawn for a full decode, the levels from the one read from the blocks to the one drawn for a reduced JPEG) now count only with the image; other cached levels stay with the other images. A JPEG without a reduced estimate (CMYK) is counted at its full decode, and so are its levels. The estimates are worked out only for the images that still need decoding, after the check that two or more do. The one-at-a-time test checks the peak against the two values the thread timing allows: one large reservation, or one large and the small image's.